-
- All Implemented Interfaces:
-
android.os.Parcelable
public class CleverTapDisplayUnitContent implements Parcelable
Content class for holding Display Unit Content Data
-
-
Field Summary
Fields Modifier and Type Field Description public final static Parcelable.Creator<CleverTapDisplayUnitContent>CREATORprivate StringactionUrlprivate StringcontentTypeprivate Stringerrorprivate Stringiconprivate Stringmediaprivate Stringmessageprivate StringmessageColorprivate StringposterUrlprivate Stringtitleprivate StringtitleColor
-
Method Summary
Modifier and Type Method Description StringgetActionUrl()Getter for the action URL of the body of the Display Unit Content StringgetContentType()Getter for the content type of the media(image/gif/audio/video etc. voidsetContentType(String contentType)StringgetError()StringgetIcon()Getter for the URL as String for the icon in case of Icon Message template StringgetMedia()Getter for the media URL of the Display Unit Content StringgetMessage()Getter for the message section of the Display Unit Content StringgetMessageColor()Getter for the hex-code value of the message color e.g. StringgetPosterUrl()Getter for the URL for the thumbnail of the video StringgetTitle()Getter for the title section of the Display Unit Content StringgetTitleColor()Getter for the hex-code value of the title color e.g. intdescribeContents()booleanmediaIsAudio()Method to check whether media in the CleverTapDisplayUnitContent object is an audio. booleanmediaIsGIF()Method to check whether media in the CleverTapDisplayUnitContent object is a GIF. booleanmediaIsImage()Method to check whether media in the CleverTapDisplayUnitContent object is an image. booleanmediaIsVideo()Method to check whether media in the CleverTapDisplayUnitContent object is a video. StringtoString()voidwriteToParcel(Parcel dest, int flags)-
-
Method Detail
-
getActionUrl
String getActionUrl()
Getter for the action URL of the body of the Display Unit Content
-
getContentType
String getContentType()
Getter for the content type of the media(image/gif/audio/video etc.)
-
setContentType
void setContentType(String contentType)
-
getMessage
String getMessage()
Getter for the message section of the Display Unit Content
-
getMessageColor
String getMessageColor()
Getter for the hex-code value of the message color e.g. #000000
-
getPosterUrl
String getPosterUrl()
Getter for the URL for the thumbnail of the video
-
getTitleColor
String getTitleColor()
Getter for the hex-code value of the title color e.g. #000000
-
describeContents
int describeContents()
-
mediaIsAudio
boolean mediaIsAudio()
Method to check whether media in the CleverTapDisplayUnitContent object is an audio.
-
mediaIsGIF
boolean mediaIsGIF()
Method to check whether media in the CleverTapDisplayUnitContent object is a GIF.
-
mediaIsImage
boolean mediaIsImage()
Method to check whether media in the CleverTapDisplayUnitContent object is an image.
-
mediaIsVideo
boolean mediaIsVideo()
Method to check whether media in the CleverTapDisplayUnitContent object is a video.
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
-
-
-