FlagMessage

constructor(message: Message, reason: String?, customData: Map<String, String>, resultHandler: (Result<Flag>) -> Unit = { })

Parameters

message

The message to be flagged.

resultHandler

Lambda function that handles the result of the operation. e.g. if the message was successfully flagged or not.