-
- All Implemented Interfaces:
-
com.batch.android.Batch.Messaging.LifecycleListener
public interface Batch.Messaging.LifecycleListener2 implements Batch.Messaging.LifecycleListener
Listener interface for messaging events.If you'd like to opt-in to additional lifecycle events, you should implement this methods,as it gives you more control about how and when to display In-App Messages
-
-
Method Summary
Modifier and Type Method Description abstract booleanonBatchInAppMessageReady(@NonNull() BatchInAppMessage message)Called when an In-App Message is about to be displayed, giving a chance to cancel it andhandle it manually. -
Methods inherited from class com.batch.android.Batch.Messaging.LifecycleListener
onBatchMessageActionTriggered, onBatchMessageCancelledByAutoclose, onBatchMessageCancelledByError, onBatchMessageCancelledByUser, onBatchMessageClosed, onBatchMessageShown, onBatchMessageWebViewActionTriggered -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
onBatchInAppMessageReady
abstract boolean onBatchInAppMessageReady(@NonNull() BatchInAppMessage message)
Called when an In-App Message is about to be displayed, giving a chance to cancel it andhandle it manually.
This method can be called from any thread.
- Parameters:
message- The In-App message about to be displayed
-
-
-
-