public class InAppMessageManagerBase
extends java.lang.Object
Constructor and Description |
---|
InAppMessageManagerBase() |
public IInAppMessageManagerListener getInAppMessageManagerListener()
public IInAppMessageManagerListener getControlInAppMessageManagerListener()
IInAppMessageManagerListener
to be used only for control in-app messages.
see IInAppMessage.isControl()
public IHtmlInAppMessageActionListener getHtmlInAppMessageActionListener()
public IInAppMessageViewFactory getDefaultInAppMessageViewFactory(IInAppMessage inAppMessage)
IInAppMessageViewFactory
as returned by the BrazeInAppMessageManager
for the given IInAppMessage
.IInAppMessageViewFactory
or null if the message type does not have a IInAppMessageViewFactory
.public IInAppMessageViewWrapperFactory getInAppMessageViewWrapperFactory()
public boolean getDoesBackButtonDismissInAppMessageView()
public boolean getDoesClickOutsideModalViewDismissInAppMessageView()
public IInAppMessageAnimationFactory getInAppMessageAnimationFactory()
public IInAppMessageViewFactory getInAppMessageViewFactory(IInAppMessage inAppMessage)
public android.app.Activity getActivity()
public android.content.Context getApplicationContext()
public void setBackButtonDismissesInAppMessageView(boolean backButtonDismissesInAppMessageView)
Activity
's
Activity.onKeyDown(int, KeyEvent)
method will be called).public void setClickOutsideModalViewDismissInAppMessageView(boolean doesDismiss)
public void setCustomInAppMessageManagerListener(IInAppMessageManagerListener inAppMessageManagerListener)
IInAppMessageManagerListener
that will be used when displaying in-app messages. To revert
back to the default IInAppMessageManagerListener
, call this method with null.
see IInAppMessage.isControl()
inAppMessageManagerListener
- A custom IInAppMessageManagerListener
or null (to revert back to the
default IInAppMessageManagerListener
).public void setCustomControlInAppMessageManagerListener(IInAppMessageManagerListener inAppMessageManagerListener)
IInAppMessageManagerListener
that will be used when displaying control in-app messages. To revert
back to the default IInAppMessageManagerListener
, call this method with null.inAppMessageManagerListener
- A custom IInAppMessageManagerListener
for control in-app messages or null (to revert back to the
default IInAppMessageManagerListener
).public void setCustomHtmlInAppMessageActionListener(IHtmlInAppMessageActionListener htmlInAppMessageActionListener)
htmlInAppMessageActionListener
- A custom IHtmlInAppMessageActionListener or null (to revert back to the
default IHtmlInAppMessageActionListener).public void setCustomInAppMessageAnimationFactory(IInAppMessageAnimationFactory inAppMessageAnimationFactory)
inAppMessageAnimationFactory
- A custom IInAppMessageAnimationFactory or null (to revert back to the default
IInAppMessageAnimationFactory).public void setCustomInAppMessageViewFactory(IInAppMessageViewFactory inAppMessageViewFactory)
inAppMessageViewFactory
- A custom IInAppMessageViewFactory or null (to revert back to the default
IInAppMessageViewFactory).public void setCustomInAppMessageViewWrapperFactory(IInAppMessageViewWrapperFactory inAppMessageViewWrapperFactory)
IInAppMessageViewWrapperFactory
that will be used to
display an IInAppMessage
to the user.