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 InAppButtongetButton(int index)intgetCloseColor()intgetNumButtons()java.lang.StringgetTitle()intgetTitleColor()InAppNotification.TypegetType()booleanhasTitle()booleansetShouldShowShadow()voidwriteToParcel(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:
writeToParcelin interfaceandroid.os.Parcelable- Overrides:
writeToParcelin classInAppNotification
-
getType
public InAppNotification.Type getType()
- Specified by:
getTypein classInAppNotification
-
-