public class InAppMessageHtml extends InAppMessageHtmlBase
IInAppMessage that renders HTML without a corresponding zip file asset. Instead,
assets are all self-contained within a single HTML file. Certain URLs within the HTML
file may be specified for download; these URLS are referred to as the "asset URLs" of
this in-app message type.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| Constructor and Description |
|---|
InAppMessageHtml() |
InAppMessageHtml(org.json.JSONObject object,
IBrazeManager appboyManager) |
| Modifier and Type | Method and Description |
|---|---|
org.json.JSONObject |
forJsonPut()
Storing in-app messages serialized with this method is primarily
for storage as triggered actions.
|
java.util.List<java.lang.String> |
getAssetUrls() |
java.util.Map<java.lang.String,java.lang.String> |
getLocalPrefetchedAssetPaths()
Note that this class does not have an implementation for this method.
|
org.json.JSONObject |
getMessageFields() |
MessageType |
getMessageType()
The
MessageType of this in-app message. |
java.util.List<java.lang.String> |
getRemoteAssetPathsForPrefetch()
Returns a path to remote assets that can be pre-fetched.
|
void |
setAssetUrls(java.util.List<java.lang.String> assetUrls)
Sets the list of asset urls associated with this message for prefetch.
|
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.
|
void |
setMessageFields(org.json.JSONObject messageFields) |
getLocalAssetsDirectoryUrl, logButtonClick, onAfterClosed, setLocalAssetsDirectoryUrlenableDarkTheme, getAnimateIn, getAnimateOut, getBackgroundColor, getClickAction, getCropType, getDismissType, getDurationInMilliseconds, getExpirationTimestamp, getExtras, getIcon, getIconBackgroundColor, getIconColor, getMessage, getMessageTextAlign, getMessageTextColor, getOpenUriInWebView, getOrientation, getUri, isControl, logClick, logDisplayFailure, logImpression, setAnimateIn, setAnimateOut, setBackgroundColor, setClickAction, setClickAction, setCropType, setDismissType, setDurationInMilliseconds, setExpirationTimestamp, setExtras, setIcon, setIconBackgroundColor, setIconColor, setMessage, setMessageTextAlign, setMessageTextColor, setOpenUriInWebView, setOrientationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAnimateIn, getAnimateOut, getBackgroundColor, getClickAction, getCropType, getDismissType, getDurationInMilliseconds, getExpirationTimestamp, getExtras, getIcon, getIconBackgroundColor, getIconColor, getMessage, getMessageTextAlign, getMessageTextColor, getOpenUriInWebView, getOrientation, getUri, isControl, logClick, logDisplayFailure, logImpression, setAnimateIn, setAnimateOut, setBackgroundColor, setClickAction, setClickAction, setCropType, setDismissType, setDurationInMilliseconds, setExpirationTimestamp, setExtras, setIcon, setIconBackgroundColor, setIconColor, setMessage, setMessageTextAlign, setMessageTextColor, setOpenUriInWebView, setOrientationpublic InAppMessageHtml()
public InAppMessageHtml(org.json.JSONObject object,
IBrazeManager appboyManager)
throws org.json.JSONException
org.json.JSONExceptionpublic MessageType getMessageType()
IInAppMessageMessageType of this in-app message.public void setLocalPrefetchedAssetPaths(java.util.Map<java.lang.String,java.lang.String> remotePathToLocalAssetMap)
InAppMessageBasesetLocalPrefetchedAssetPaths in interface IInAppMessagesetLocalPrefetchedAssetPaths in class InAppMessageHtmlBaseremotePathToLocalAssetMap - A map of remote assets Uris to local asset Uri paths.public java.util.Map<java.lang.String,java.lang.String> getLocalPrefetchedAssetPaths()
InAppMessageBasegetLocalPrefetchedAssetPaths in interface IInAppMessagegetLocalPrefetchedAssetPaths in class InAppMessageBasepublic java.util.List<java.lang.String> getRemoteAssetPathsForPrefetch()
IInAppMessageIInAppMessage.setLocalPrefetchedAssetPaths(Map)getRemoteAssetPathsForPrefetch in interface IInAppMessagegetRemoteAssetPathsForPrefetch in class InAppMessageBasepublic void setMessageFields(org.json.JSONObject messageFields)
public void setAssetUrls(java.util.List<java.lang.String> assetUrls)
getRemoteAssetPathsForPrefetch()public org.json.JSONObject getMessageFields()
public java.util.List<java.lang.String> getAssetUrls()
public org.json.JSONObject forJsonPut()
InAppMessageBaseforJsonPut in interface IPutIntoJson<org.json.JSONObject>forJsonPut in class InAppMessageBase