public class MixpanelPushNotification
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PUSH_DISMISS_ACTION |
static java.lang.String |
PUSH_TAP_ACTION |
protected int |
ROUTING_REQUEST_CODE |
protected static java.lang.String |
TAP_TARGET_BUTTON |
protected static java.lang.String |
TAP_TARGET_NOTIFICATION |
| Constructor and Description |
|---|
MixpanelPushNotification(android.content.Context context) |
MixpanelPushNotification(android.content.Context context,
android.app.Notification.Builder builder,
long now) |
| Modifier and Type | Method and Description |
|---|---|
protected android.os.Bundle |
buildBundle(com.mixpanel.android.mpmetrics.MixpanelNotificationData.PushTapAction onTap)
Util method to let subclasses customize the payload through the push notification intent.
|
protected android.os.Bundle |
buildBundle(com.mixpanel.android.mpmetrics.MixpanelNotificationData.PushTapAction onTap,
java.lang.String buttonId,
java.lang.CharSequence buttonLabel)
Util method to let subclasses customize the payload through the push notification intent.
|
protected java.util.List<com.mixpanel.android.mpmetrics.MixpanelNotificationData.MixpanelNotificationButtonData> |
buildButtons(java.lang.String buttonsJsonStr) |
protected void |
buildNotificationFromData() |
protected com.mixpanel.android.mpmetrics.MixpanelNotificationData.PushTapAction |
buildOnTap(java.lang.String onTapStr) |
protected com.mixpanel.android.mpmetrics.MixpanelNotificationData.PushTapAction |
buildOnTapFromURI(java.lang.String uriString) |
protected android.app.Notification.Action |
createAction(java.lang.CharSequence title,
com.mixpanel.android.mpmetrics.MixpanelNotificationData.PushTapAction onTap,
java.lang.String actionId,
int index) |
protected android.app.PendingIntent |
createActionIntent(com.mixpanel.android.mpmetrics.MixpanelNotificationData.PushTapAction onTap,
java.lang.String buttonId,
java.lang.CharSequence label,
int index) |
protected android.content.pm.ApplicationInfo |
getAppInfo() |
protected java.lang.String |
getCanonicalIdentifier() |
protected int |
getDefaultIcon() |
protected com.mixpanel.android.mpmetrics.MixpanelNotificationData.PushTapAction |
getDefaultOnTap() |
protected java.lang.CharSequence |
getDefaultTitle() |
protected android.content.Intent |
getDeleteIntent() |
protected int |
getNotificationId() |
protected android.content.Intent |
getRoutingIntent(com.mixpanel.android.mpmetrics.MixpanelNotificationData.PushTapAction onTap) |
protected android.content.Intent |
getRoutingIntent(com.mixpanel.android.mpmetrics.MixpanelNotificationData.PushTapAction onTap,
java.lang.String buttonId,
java.lang.CharSequence label) |
protected boolean |
isValid() |
protected void |
maybeAddActionButtons() |
protected void |
maybeSetChannel() |
protected void |
maybeSetCustomIconColor() |
protected void |
maybeSetExpandableNotification() |
protected void |
maybeSetLargeIcon() |
protected void |
maybeSetNotificationBadge() |
protected void |
maybeSetNotificationBarIcon() |
protected void |
maybeSetSubText() |
protected void |
maybeSetTime() |
protected void |
maybeSetVisibility() |
protected void |
setBigPictureStyle(android.graphics.Bitmap imageBitmap) |
protected void |
setBigTextStyle(java.lang.String message) |
protected void |
trackCampaignReceived() |
public static final java.lang.String PUSH_TAP_ACTION
public static final java.lang.String PUSH_DISMISS_ACTION
protected static final java.lang.String TAP_TARGET_BUTTON
protected static final java.lang.String TAP_TARGET_NOTIFICATION
protected final int ROUTING_REQUEST_CODE
public MixpanelPushNotification(android.content.Context context)
public MixpanelPushNotification(android.content.Context context,
android.app.Notification.Builder builder,
long now)
protected void buildNotificationFromData()
protected void maybeSetSubText()
protected void maybeSetNotificationBarIcon()
protected void maybeSetLargeIcon()
protected void maybeSetExpandableNotification()
protected void setBigTextStyle(java.lang.String message)
protected void setBigPictureStyle(android.graphics.Bitmap imageBitmap)
protected void maybeSetCustomIconColor()
protected void maybeAddActionButtons()
protected java.util.List<com.mixpanel.android.mpmetrics.MixpanelNotificationData.MixpanelNotificationButtonData> buildButtons(java.lang.String buttonsJsonStr)
protected com.mixpanel.android.mpmetrics.MixpanelNotificationData.PushTapAction buildOnTap(java.lang.String onTapStr)
protected com.mixpanel.android.mpmetrics.MixpanelNotificationData.PushTapAction buildOnTapFromURI(java.lang.String uriString)
protected com.mixpanel.android.mpmetrics.MixpanelNotificationData.PushTapAction getDefaultOnTap()
protected android.app.Notification.Action createAction(java.lang.CharSequence title,
com.mixpanel.android.mpmetrics.MixpanelNotificationData.PushTapAction onTap,
java.lang.String actionId,
int index)
protected android.app.PendingIntent createActionIntent(com.mixpanel.android.mpmetrics.MixpanelNotificationData.PushTapAction onTap,
java.lang.String buttonId,
java.lang.CharSequence label,
int index)
protected android.content.Intent getRoutingIntent(com.mixpanel.android.mpmetrics.MixpanelNotificationData.PushTapAction onTap,
java.lang.String buttonId,
java.lang.CharSequence label)
protected android.content.Intent getRoutingIntent(com.mixpanel.android.mpmetrics.MixpanelNotificationData.PushTapAction onTap)
protected android.content.Intent getDeleteIntent()
protected android.os.Bundle buildBundle(com.mixpanel.android.mpmetrics.MixpanelNotificationData.PushTapAction onTap)
onTap - The PushTapAction for the intent this bundle is a member of.protected android.os.Bundle buildBundle(com.mixpanel.android.mpmetrics.MixpanelNotificationData.PushTapAction onTap,
java.lang.String buttonId,
java.lang.CharSequence buttonLabel)
onTap - The PushTapAction for the intent this bundle is a member ofbuttonId - The buttonId for the Notification action this bundle will be a member ofbuttonLabel - The label for the button that will appear in the notification which
this bundle will me a member ofprotected void maybeSetChannel()
protected void maybeSetNotificationBadge()
protected void maybeSetTime()
protected void maybeSetVisibility()
protected android.content.pm.ApplicationInfo getAppInfo()
protected java.lang.CharSequence getDefaultTitle()
protected int getDefaultIcon()
protected int getNotificationId()
protected java.lang.String getCanonicalIdentifier()
protected boolean isValid()
protected void trackCampaignReceived()