-
- All Implemented Interfaces:
-
android.os.Parcelable
public class CleverTapDisplayUnit implements Parcelable
This model class holds the data of an individual Display Unit.
-
-
Field Summary
Fields Modifier and Type Field Description public final static Parcelable.Creator<CleverTapDisplayUnit>CREATORprivate StringbgColorprivate ArrayList<CleverTapDisplayUnitContent>contentsprivate HashMap<String, String>customExtrasprivate Stringerrorprivate JSONObjectjsonObjectprivate CTDisplayUnitTypetypeprivate StringunitID
-
Method Summary
Modifier and Type Method Description StringgetBgColor()Getter for the hex-value background color of the Display Unit e.g. ArrayList<CleverTapDisplayUnitContent>getContents()Getter for the list of Content Display Unit Items. HashMap<String, String>getCustomExtras()Getter for the Key Value pairs of the Display Unit StringgetError()JSONObjectgetJsonObject()Getter for the JsonObject corresponding to the CleverTapDisplayUnit object CTDisplayUnitTypegetType()Getter for the DisplayUnitType of the Display Unit, ReferCTDisplayUnitType StringgetUnitID()Getter for the unitId of the Display Unit static CleverTapDisplayUnittoDisplayUnit(JSONObject jsonObject)static method to convert json to Display Unit intdescribeContents()JSONObjectgetWZRKFields()Getter for the WiZRK fields obj to be passed in the data for recording event. StringtoString()voidwriteToParcel(Parcel parcel, int i)-
-
Method Detail
-
getBgColor
String getBgColor()
Getter for the hex-value background color of the Display Unit e.g. #000000
-
getContents
ArrayList<CleverTapDisplayUnitContent> getContents()
Getter for the list of Content Display Unit Items.
-
getCustomExtras
HashMap<String, String> getCustomExtras()
Getter for the Key Value pairs of the Display Unit
-
getJsonObject
JSONObject getJsonObject()
Getter for the JsonObject corresponding to the CleverTapDisplayUnit object
-
getType
CTDisplayUnitType getType()
Getter for the DisplayUnitType of the Display Unit, ReferCTDisplayUnitType
-
toDisplayUnit
@NonNull() static CleverTapDisplayUnit toDisplayUnit(JSONObject jsonObject)
static method to convert json to Display Unit
- Parameters:
jsonObject- - Display Unit Item in Json form
-
describeContents
int describeContents()
-
getWZRKFields
JSONObject getWZRKFields()
Getter for the WiZRK fields obj to be passed in the data for recording event.
-
writeToParcel
void writeToParcel(Parcel parcel, int i)
-
-
-
-