onMessageAction
A nullable property that allows setting a function or lambda to react to message action events. This function is invoked whenever a new message action is received, providing a convenient way to process or react to message actions.
Note that this property allows for the assignment of a singular behavior at a time, as any new assignment will override the previous one. For scenarios requiring multiple behaviors in response to message action events, it is advisable to utilize EventEmitter.addListener.
To deactivate the current behavior, simply set this property to null.
Setting a Behavior Example:
onMessageAction = { pnMessageActionResult ->
println("Message action event: ${pnMessageActionResult.data}")
}Content copied to clipboard
Removing a Behavior Example:
onMessageAction = nullContent copied to clipboard