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, setLocalAssetsDirectoryUrl
enableDarkTheme, 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, setOrientation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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, setOrientation
public InAppMessageHtml()
public InAppMessageHtml(org.json.JSONObject object, IBrazeManager appboyManager) throws org.json.JSONException
org.json.JSONException
public MessageType getMessageType()
IInAppMessage
MessageType
of this in-app message.public void setLocalPrefetchedAssetPaths(java.util.Map<java.lang.String,java.lang.String> remotePathToLocalAssetMap)
InAppMessageBase
setLocalPrefetchedAssetPaths
in interface IInAppMessage
setLocalPrefetchedAssetPaths
in class InAppMessageHtmlBase
remotePathToLocalAssetMap
- A map of remote assets Uris to local asset Uri paths.public java.util.Map<java.lang.String,java.lang.String> getLocalPrefetchedAssetPaths()
InAppMessageBase
getLocalPrefetchedAssetPaths
in interface IInAppMessage
getLocalPrefetchedAssetPaths
in class InAppMessageBase
public java.util.List<java.lang.String> getRemoteAssetPathsForPrefetch()
IInAppMessage
IInAppMessage.setLocalPrefetchedAssetPaths(Map)
getRemoteAssetPathsForPrefetch
in interface IInAppMessage
getRemoteAssetPathsForPrefetch
in class InAppMessageBase
public 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()
InAppMessageBase
forJsonPut
in interface IPutIntoJson<org.json.JSONObject>
forJsonPut
in class InAppMessageBase