public abstract class InAppMessageHtmlBase extends InAppMessageBase implements IInAppMessageHtml
ANIMATE_IN, ANIMATE_OUT, CROP_TYPE, INAPP_MESSAGE_DURATION_DEFAULT_MILLIS, INAPP_MESSAGE_DURATION_MIN_MILLIS, IS_CONTROL, mBrazeManager, mCropType, MESSAGE_TEXT_ALIGN, mInAppMessageDarkThemeWrapper, mJsonObject, mMessageTextAlign, mOpenUriInWebview, OPEN_URI_IN_WEBVIEW, TYPE
Modifier | Constructor and Description |
---|---|
protected |
InAppMessageHtmlBase() |
|
InAppMessageHtmlBase(org.json.JSONObject object,
IBrazeManager appboyManager) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLocalAssetsDirectoryUrl()
Gets the local URL of the assets.
|
boolean |
logButtonClick(java.lang.String buttonId)
Logs a click on a button in your html in-app message.
|
void |
onAfterClosed()
Should be called on the in-app message once it is no longer being displayed, to allow it
to perform any cleanup or trigger further actions.
|
void |
setLocalAssetsDirectoryUrl(java.lang.String assetsLocalDirectoryUrl)
Sets the local URL of the assets directory for the html In-App Message.
|
void |
setLocalPrefetchedAssetPaths(java.util.Map<java.lang.String,java.lang.String> remotePathToLocalAssetMap)
The base In-App Message class does not have
assets of its own.
|
enableDarkTheme, forJsonPut, getAnimateIn, getAnimateOut, getBackgroundColor, getClickAction, getCropType, getDismissType, getDurationInMilliseconds, getExpirationTimestamp, getExtras, getIcon, getIconBackgroundColor, getIconColor, getLocalPrefetchedAssetPaths, getMessage, getMessageTextAlign, getMessageTextColor, getOpenUriInWebView, getOrientation, getRemoteAssetPathsForPrefetch, getUri, isControl, logClick, logDisplayFailure, logImpression, setAnimateIn, setAnimateOut, setBackgroundColor, setClickAction, setClickAction, setCropType, setDismissType, setDurationInMilliseconds, setExpirationTimestamp, setExtras, setIcon, setIconBackgroundColor, setIconColor, setMessage, setMessageTextAlign, setMessageTextColor, setOpenUriInWebView, setOrientation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnimateIn, getAnimateOut, getBackgroundColor, getClickAction, getCropType, getDismissType, getDurationInMilliseconds, getExpirationTimestamp, getExtras, getIcon, getIconBackgroundColor, getIconColor, getLocalPrefetchedAssetPaths, getMessage, getMessageTextAlign, getMessageTextColor, getMessageType, getOpenUriInWebView, getOrientation, getRemoteAssetPathsForPrefetch, getUri, isControl, logClick, logDisplayFailure, logImpression, setAnimateIn, setAnimateOut, setBackgroundColor, setClickAction, setClickAction, setCropType, setDismissType, setDurationInMilliseconds, setExpirationTimestamp, setExtras, setIcon, setIconBackgroundColor, setIconColor, setMessage, setMessageTextAlign, setMessageTextColor, setOpenUriInWebView, setOrientation
forJsonPut
protected InAppMessageHtmlBase()
public InAppMessageHtmlBase(org.json.JSONObject object, IBrazeManager appboyManager) throws org.json.JSONException
org.json.JSONException
public java.lang.String getLocalAssetsDirectoryUrl()
IInAppMessageHtml
getLocalAssetsDirectoryUrl
in interface IInAppMessageHtml
public void setLocalAssetsDirectoryUrl(java.lang.String assetsLocalDirectoryUrl)
IInAppMessageHtml
setLocalAssetsDirectoryUrl
in interface IInAppMessageHtml
assetsLocalDirectoryUrl
- Local file URL for the unpacked assets directory.public void setLocalPrefetchedAssetPaths(java.util.Map<java.lang.String,java.lang.String> remotePathToLocalAssetMap)
InAppMessageBase
setLocalPrefetchedAssetPaths
in interface IInAppMessage
setLocalPrefetchedAssetPaths
in class InAppMessageBase
remotePathToLocalAssetMap
- A map of remote assets Uris to local asset Uri paths.public boolean logButtonClick(java.lang.String buttonId)
IInAppMessageHtml
Button clicks may only be logged once per in-app message.
logButtonClick
in interface IInAppMessageHtml
buttonId
- the id of the buttonpublic void onAfterClosed()
IInAppMessage
onAfterClosed
in interface IInAppMessage
onAfterClosed
in class InAppMessageBase