-
public interface InAppMessageListenerListener interface to be notified of in app messaging events. Use to register your listener.
This works as follows
InAppMessageListener.onMessageTrigger is called before the message is rendered. The method is called repeatedly for a message if it needs to be re-rendered during activity transitions
InAppMessageListener.onMessageClick is called when a message with a configured action is clicked. If the clicked message does not have a configured action, it is dismissed and InAppMessageListener.onMessageDismiss is invoked
Called when the message is dismissed either automatically after a timeout or by the user or when a clicked message has no associated action
InAppMessageListener.onError is called when any part faces an error. the error then is reported through ErrorMessageReason enum to indicate it's type. if there is additional data (like message ID) is provided it'll reported as a nullable String message.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumInAppMessageListener.ErrorMessageReason
-
Method Summary
Modifier and Type Method Description abstract UnitonMessageTrigger(IAMMessage details)abstract UnitonMessageClick(IAMMessage details)abstract UnitonMessageDismiss(IAMMessage details)abstract UnitonError(InAppMessageListener.ErrorMessageReason reason, String message)-
-
Method Detail
-
onMessageTrigger
abstract Unit onMessageTrigger(IAMMessage details)
-
onMessageClick
abstract Unit onMessageClick(IAMMessage details)
-
onMessageDismiss
abstract Unit onMessageDismiss(IAMMessage details)
-
onError
abstract Unit onError(InAppMessageListener.ErrorMessageReason reason, String message)
-
-
-
-