public abstract class InAppMessageWithImageBase extends InAppMessageBase implements IInAppMessageWithImage
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 |
InAppMessageWithImageBase() |
|
InAppMessageWithImageBase(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.
|
android.graphics.Bitmap |
getBitmap()
Gets the bitmap on this in-app message.
|
boolean |
getImageDownloadSuccessful()
Returns the status of the image download on this in-app message.
|
java.lang.String |
getImageUrl()
Gets the image url on this in-app message.
|
java.lang.String |
getLocalImageUrl()
Gets the local image url on this in-app message.
|
java.util.List<java.lang.String> |
getRemoteAssetPathsForPrefetch()
Returns a path to remote assets that can be pre-fetched.
|
java.lang.String |
getRemoteImageUrl()
Gets the remote image url on this in-app message.
|
void |
setBitmap(android.graphics.Bitmap bitmap)
Explicitly sets the bitmap on this in-app message.
|
void |
setImageDownloadSuccessful(boolean imageDownloadSuccessful)
Sets the status of the image download on this in-app message.
|
void |
setImageUrl(java.lang.String remoteImageUrl) |
void |
setLocalImageUrl(java.lang.String localImageUrl)
Sets the image on this in-app message to a local uri.
|
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 |
setRemoteImageUrl(java.lang.String remoteImageUrl)
Sets the image on this in-app message to a remote uri.
|
enableDarkTheme, getAnimateIn, getAnimateOut, getBackgroundColor, getClickAction, getCropType, getDismissType, getDurationInMilliseconds, getExpirationTimestamp, getExtras, getIcon, getIconBackgroundColor, getIconColor, getLocalPrefetchedAssetPaths, getMessage, getMessageTextAlign, getMessageTextColor, getOpenUriInWebView, getOrientation, getUri, isControl, logClick, logDisplayFailure, logImpression, onAfterClosed, 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
getMessageType
protected InAppMessageWithImageBase()
public InAppMessageWithImageBase(org.json.JSONObject object, IBrazeManager appboyManager) throws org.json.JSONException
org.json.JSONException
public void setImageUrl(java.lang.String remoteImageUrl)
setImageUrl
in interface IInAppMessageWithImage
public java.lang.String getImageUrl()
IInAppMessageWithImage
IInAppMessageWithImage.getRemoteImageUrl()
.getImageUrl
in interface IInAppMessageWithImage
public void setRemoteImageUrl(java.lang.String remoteImageUrl)
IInAppMessageWithImage
IInAppMessageWithImage.setLocalImageUrl(String)
See IInAppMessageWithImage.setBitmap(android.graphics.Bitmap)
setRemoteImageUrl
in interface IInAppMessageWithImage
remoteImageUrl
- Url for the desired image.public java.lang.String getRemoteImageUrl()
IInAppMessageWithImage
getRemoteImageUrl
in interface IInAppMessageWithImage
public void setLocalImageUrl(java.lang.String localImageUrl)
IInAppMessageWithImage
IInAppMessageWithImage.setRemoteImageUrl(String)
See IInAppMessageWithImage.setBitmap(android.graphics.Bitmap)
setLocalImageUrl
in interface IInAppMessageWithImage
localImageUrl
- Url for the desired image.public java.lang.String getLocalImageUrl()
IInAppMessageWithImage
getLocalImageUrl
in interface IInAppMessageWithImage
public void setImageDownloadSuccessful(boolean imageDownloadSuccessful)
IInAppMessageWithImage
IInAppMessageWithImage.getImageDownloadSuccessful()
.
See IInAppMessage#getImageDownloadSuccessful()
.setImageDownloadSuccessful
in interface IInAppMessageWithImage
imageDownloadSuccessful
- value for the success of the image downloadpublic boolean getImageDownloadSuccessful()
IInAppMessageWithImage
IInAppMessageWithImage.getRemoteImageUrl()
could not be downloaded successfully then this should return false. Returns false by default.getImageDownloadSuccessful
in interface IInAppMessageWithImage
public void setBitmap(android.graphics.Bitmap bitmap)
IInAppMessageWithImage
IInAppMessageWithImage.setLocalImageUrl(String)
See IInAppMessageWithImage.setRemoteImageUrl(String)
setBitmap
in interface IInAppMessageWithImage
bitmap
- An optimized bitmap image.public android.graphics.Bitmap getBitmap()
IInAppMessageWithImage
IInAppMessageWithImage.setBitmap(android.graphics.Bitmap)
getBitmap
in interface IInAppMessageWithImage
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 java.util.List<java.lang.String> getRemoteAssetPathsForPrefetch()
IInAppMessage
IInAppMessage.setLocalPrefetchedAssetPaths(Map)
getRemoteAssetPathsForPrefetch
in interface IInAppMessage
getRemoteAssetPathsForPrefetch
in class InAppMessageBase
public org.json.JSONObject forJsonPut()
InAppMessageBase
forJsonPut
in interface IPutIntoJson<org.json.JSONObject>
forJsonPut
in class InAppMessageBase