-
public interface Batch.Messaging.LifecycleListenerListener interface for messaging views lifecycle events.
Implement this if you want to be notified of what happens to the messaging view (for example, perform some analytics on show/hide).You're also required to implement this if you want to add actions with a "callback" type.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumBatch.Messaging.LifecycleListener.MessagingCloseReasonEnum for the different reasons why an In-App message can be closed.
-
Method Summary
Modifier and Type Method Description abstract voidonBatchMessageShown(@Nullable() String messageIdentifier)Called when the message view appeared on screen. voidonBatchMessageActionTriggered(@Nullable() String messageIdentifier, @Nullable() String ctaIdentifier, @NonNull() BatchMessageAction action)Called when the message view will be dismissed due to the user pressing a CTA or the global tap action. abstract voidonBatchMessageClosed(@Nullable() String messageIdentifier, Batch.Messaging.LifecycleListener.MessagingCloseReason reason)Called when the message view disappeared from the screen. -
-
Method Detail
-
onBatchMessageShown
abstract void onBatchMessageShown(@Nullable() String messageIdentifier)
Called when the message view appeared on screen.
- Parameters:
messageIdentifier- Analytics message identifier string.
-
onBatchMessageActionTriggered
void onBatchMessageActionTriggered(@Nullable() String messageIdentifier, @Nullable() String ctaIdentifier, @NonNull() BatchMessageAction action)
Called when the message view will be dismissed due to the user pressing a CTA or the global tap action.
- Parameters:
messageIdentifier- Analytics message identifier string.ctaIdentifier- Identifier of the action/CTA.action- Action that will be performed.
-
onBatchMessageClosed
abstract void onBatchMessageClosed(@Nullable() String messageIdentifier, Batch.Messaging.LifecycleListener.MessagingCloseReason reason)
Called when the message view disappeared from the screen.
- Parameters:
messageIdentifier- Analytics message identifier string.reason- Reason why the message was closed.
-
-
-
-