public abstract class InAppNotification
extends java.lang.Object
implements android.os.Parcelable
| Modifier and Type | Class and Description |
|---|---|
static class |
InAppNotification.Type
InApp Notifications in Mixpanel are either TAKEOVERs, that display full screen,
or MINI notifications that appear and disappear on the margins of the screen.
|
| Modifier and Type | Field and Description |
|---|---|
protected org.json.JSONObject |
mDescription |
protected org.json.JSONObject |
mExtras |
protected int |
mId |
protected int |
mMessageId |
| Constructor and Description |
|---|
InAppNotification() |
InAppNotification(android.os.Parcel in) |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
int |
getBackgroundColor() |
java.lang.String |
getBody() |
int |
getBodyColor() |
protected org.json.JSONObject |
getExtras() |
int |
getId() |
android.graphics.Bitmap |
getImage() |
java.lang.String |
getImage2xUrl() |
java.lang.String |
getImage4xUrl() |
java.lang.String |
getImageUrl() |
int |
getMessageId() |
abstract InAppNotification.Type |
getType() |
boolean |
hasBody() |
boolean |
isEventTriggered() |
boolean |
matchesEventDescription(com.mixpanel.android.mpmetrics.AnalyticsMessages.EventDescription eventDescription) |
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
protected final org.json.JSONObject mDescription
protected final org.json.JSONObject mExtras
protected final int mId
protected final int mMessageId
public InAppNotification()
public InAppNotification(android.os.Parcel in)
public int getId()
public int getMessageId()
public abstract InAppNotification.Type getType()
public int getBackgroundColor()
public boolean hasBody()
public java.lang.String getBody()
public int getBodyColor()
public java.lang.String getImageUrl()
public java.lang.String getImage2xUrl()
public java.lang.String getImage4xUrl()
public android.graphics.Bitmap getImage()
public boolean isEventTriggered()
public boolean matchesEventDescription(com.mixpanel.android.mpmetrics.AnalyticsMessages.EventDescription eventDescription)
protected org.json.JSONObject getExtras()
public int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelablepublic java.lang.String toString()
toString in class java.lang.Object