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 classInAppNotification.TypeInApp 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.JSONObjectmDescriptionprotected org.json.JSONObjectmExtrasprotected intmIdprotected intmMessageId
-
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 intdescribeContents()intgetBackgroundColor()java.lang.StringgetBody()intgetBodyColor()protected org.json.JSONObjectgetExtras()intgetId()android.graphics.BitmapgetImage()java.lang.StringgetImage2xUrl()java.lang.StringgetImage4xUrl()java.lang.StringgetImageUrl()intgetMessageId()abstract InAppNotification.TypegetType()booleanhasBody()booleanisEventTriggered()booleanmatchesEventDescription(com.mixpanel.android.mpmetrics.AnalyticsMessages.EventDescription eventDescription)java.lang.StringtoString()voidwriteToParcel(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:
describeContentsin interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)- Specified by:
writeToParcelin interfaceandroid.os.Parcelable
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-