public interface IInAppMessageManagerListener
If you are implementing Unity, you must use IAppboyUnityInAppMessageListener instead.
Modifier and Type | Method and Description |
---|---|
void |
afterInAppMessageViewClosed(IInAppMessage inAppMessage)
Called after the in-app message View has been removed from the
layout (and the disappearing animation has completed).
|
void |
afterInAppMessageViewOpened(android.view.View inAppMessageView,
IInAppMessage inAppMessage)
Called after the in-app message View has been added to the layout
(and the appearing animation has completed).
|
InAppMessageOperation |
beforeInAppMessageDisplayed(IInAppMessage inAppMessage) |
void |
beforeInAppMessageViewClosed(android.view.View inAppMessageView,
IInAppMessage inAppMessage)
Called before the in-app message View is removed from the layout
(and before any closing animation starts).
|
void |
beforeInAppMessageViewOpened(android.view.View inAppMessageView,
IInAppMessage inAppMessage)
Called before the in-app message View is added to the layout.
|
boolean |
onInAppMessageButtonClicked(IInAppMessage inAppMessage,
MessageButton button,
InAppMessageCloser inAppMessageCloser) |
boolean |
onInAppMessageClicked(IInAppMessage inAppMessage,
InAppMessageCloser inAppMessageCloser) |
void |
onInAppMessageDismissed(IInAppMessage inAppMessage) |
InAppMessageOperation beforeInAppMessageDisplayed(IInAppMessage inAppMessage)
inAppMessage
- The in-app message that is currently requested for display.boolean onInAppMessageClicked(IInAppMessage inAppMessage, InAppMessageCloser inAppMessageCloser)
inAppMessage
- The clicked in-app message.inAppMessageCloser
- Closing should not be animated if transitioning to a new activity.
If remaining in the same activity, closing should be animated.boolean onInAppMessageButtonClicked(IInAppMessage inAppMessage, MessageButton button, InAppMessageCloser inAppMessageCloser)
inAppMessage
- The clicked in-app message.button
- The clicked message button.inAppMessageCloser
- Closing should not be animated if transitioning to a new activity.
If remaining in the same activity, closing should be animated.void onInAppMessageDismissed(IInAppMessage inAppMessage)
inAppMessage
- the in-app message that was closed.void beforeInAppMessageViewOpened(android.view.View inAppMessageView, IInAppMessage inAppMessage)
Note that this is called before any default processing in
DefaultInAppMessageViewLifecycleListener
takes place.
inAppMessageView
- The View
representing the IInAppMessage
.inAppMessage
- The IInAppMessage
being displayed.void afterInAppMessageViewOpened(android.view.View inAppMessageView, IInAppMessage inAppMessage)
Note that this is called after any default processing in
DefaultInAppMessageViewLifecycleListener
takes place.
inAppMessageView
- The View
representing the IInAppMessage
.inAppMessage
- The IInAppMessage
being displayed.void beforeInAppMessageViewClosed(android.view.View inAppMessageView, IInAppMessage inAppMessage)
Note that this is called before any default processing in
DefaultInAppMessageViewLifecycleListener
takes place.
inAppMessageView
- The View
representing the IInAppMessage
.inAppMessage
- The IInAppMessage
being displayed.void afterInAppMessageViewClosed(IInAppMessage inAppMessage)
Note that this is called after any default processing in
DefaultInAppMessageViewLifecycleListener
takes place.
inAppMessage
- The IInAppMessage
being displayed.