public class DefaultInAppMessageManagerListener extends java.lang.Object implements IInAppMessageManagerListener
Constructor and Description |
---|
DefaultInAppMessageManagerListener() |
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) |
public InAppMessageOperation beforeInAppMessageDisplayed(IInAppMessage inAppMessage)
beforeInAppMessageDisplayed
in interface IInAppMessageManagerListener
inAppMessage
- The in-app message that is currently requested for display.public boolean onInAppMessageClicked(IInAppMessage inAppMessage, InAppMessageCloser inAppMessageCloser)
onInAppMessageClicked
in interface IInAppMessageManagerListener
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.public boolean onInAppMessageButtonClicked(IInAppMessage inAppMessage, MessageButton button, InAppMessageCloser inAppMessageCloser)
onInAppMessageButtonClicked
in interface IInAppMessageManagerListener
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.public void onInAppMessageDismissed(IInAppMessage inAppMessage)
onInAppMessageDismissed
in interface IInAppMessageManagerListener
inAppMessage
- the in-app message that was closed.public void beforeInAppMessageViewOpened(android.view.View inAppMessageView, IInAppMessage inAppMessage)
IInAppMessageManagerListener
Note that this is called before any default processing in
DefaultInAppMessageViewLifecycleListener
takes place.
beforeInAppMessageViewOpened
in interface IInAppMessageManagerListener
inAppMessageView
- The View
representing the IInAppMessage
.inAppMessage
- The IInAppMessage
being displayed.public void afterInAppMessageViewOpened(android.view.View inAppMessageView, IInAppMessage inAppMessage)
IInAppMessageManagerListener
Note that this is called after any default processing in
DefaultInAppMessageViewLifecycleListener
takes place.
afterInAppMessageViewOpened
in interface IInAppMessageManagerListener
inAppMessageView
- The View
representing the IInAppMessage
.inAppMessage
- The IInAppMessage
being displayed.public void beforeInAppMessageViewClosed(android.view.View inAppMessageView, IInAppMessage inAppMessage)
IInAppMessageManagerListener
Note that this is called before any default processing in
DefaultInAppMessageViewLifecycleListener
takes place.
beforeInAppMessageViewClosed
in interface IInAppMessageManagerListener
inAppMessageView
- The View
representing the IInAppMessage
.inAppMessage
- The IInAppMessage
being displayed.public void afterInAppMessageViewClosed(IInAppMessage inAppMessage)
IInAppMessageManagerListener
Note that this is called after any default processing in
DefaultInAppMessageViewLifecycleListener
takes place.
afterInAppMessageViewClosed
in interface IInAppMessageManagerListener
inAppMessage
- The IInAppMessage
being displayed.