Package com.mixpanel.android.mpmetrics
Class InAppNotification
- java.lang.Object
-
- com.mixpanel.android.mpmetrics.InAppNotification
-
- All Implemented Interfaces:
android.os.Parcelable
- Direct Known Subclasses:
MiniInAppNotification
,TakeoverInAppNotification
public abstract class InAppNotification extends java.lang.Object implements android.os.Parcelable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class 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.
-
Field Summary
Fields Modifier and Type Field Description protected org.json.JSONObject
mDescription
protected org.json.JSONObject
mExtras
protected int
mId
protected int
mMessageId
-
Constructor Summary
Constructors Constructor Description InAppNotification()
InAppNotification(android.os.Parcel in)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
getId
public int getId()
-
getMessageId
public int getMessageId()
-
getType
public abstract InAppNotification.Type getType()
-
getBackgroundColor
public int getBackgroundColor()
-
hasBody
public boolean hasBody()
-
getBody
public java.lang.String getBody()
-
getBodyColor
public int getBodyColor()
-
getImageUrl
public java.lang.String getImageUrl()
-
getImage2xUrl
public java.lang.String getImage2xUrl()
-
getImage4xUrl
public java.lang.String getImage4xUrl()
-
getImage
public android.graphics.Bitmap getImage()
-
isEventTriggered
public boolean isEventTriggered()
-
matchesEventDescription
public boolean matchesEventDescription(com.mixpanel.android.mpmetrics.AnalyticsMessages.EventDescription eventDescription)
-
getExtras
protected org.json.JSONObject getExtras()
-
describeContents
public int describeContents()
- Specified by:
describeContents
in interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)
- Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-