Package com.mixpanel.android.mpmetrics
Class TakeoverInAppNotification
- java.lang.Object
-
- com.mixpanel.android.mpmetrics.InAppNotification
-
- com.mixpanel.android.mpmetrics.TakeoverInAppNotification
-
- All Implemented Interfaces:
android.os.Parcelable
public class TakeoverInAppNotification extends InAppNotification
Represents a takeover in-app notification delivered from Mixpanel. Under ordinary circumstances, most code won't have to interact with this class directly, but rather will display InAppNotifications usingMixpanelAPI.People.showNotificationIfAvailable(Activity)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.mixpanel.android.mpmetrics.InAppNotification
InAppNotification.Type
-
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<TakeoverInAppNotification>
CREATOR
-
Fields inherited from class com.mixpanel.android.mpmetrics.InAppNotification
mDescription, mExtras, mId, mMessageId
-
-
Constructor Summary
Constructors Constructor Description TakeoverInAppNotification(android.os.Parcel in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InAppButton
getButton(int index)
int
getCloseColor()
int
getNumButtons()
java.lang.String
getTitle()
int
getTitleColor()
InAppNotification.Type
getType()
boolean
hasTitle()
boolean
setShouldShowShadow()
void
writeToParcel(android.os.Parcel dest, int flags)
-
Methods inherited from class com.mixpanel.android.mpmetrics.InAppNotification
describeContents, getBackgroundColor, getBody, getBodyColor, getExtras, getId, getImage, getImage2xUrl, getImage4xUrl, getImageUrl, getMessageId, hasBody, isEventTriggered, matchesEventDescription, toString
-
-
-
-
Field Detail
-
CREATOR
public static final android.os.Parcelable.Creator<TakeoverInAppNotification> CREATOR
-
-
Method Detail
-
hasTitle
public boolean hasTitle()
-
getTitle
public java.lang.String getTitle()
-
getTitleColor
public int getTitleColor()
-
getCloseColor
public int getCloseColor()
-
getButton
public InAppButton getButton(int index)
-
getNumButtons
public int getNumButtons()
-
setShouldShowShadow
public boolean setShouldShowShadow()
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)
- Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
- Overrides:
writeToParcel
in classInAppNotification
-
getType
public InAppNotification.Type getType()
- Specified by:
getType
in classInAppNotification
-
-