Package com.netmera.callbacks
Interface NMPushActionCallbacks
public interface NMPushActionCallbacks
-
Method Summary
Modifier and TypeMethodDescriptionvoidonCarouselObjectSelected(android.content.Context context, android.os.Bundle bundle, NetmeraPushObject netmeraPushObject, int selectedIndex, NetmeraCarouselObject netmeraCarouselObject) Called when a carousel object was selected from carousel notificationvoidonPushButtonClicked(android.content.Context context, android.os.Bundle bundle, NetmeraPushObject netmeraPushObject) Called when any of notification button is clicked.voidonPushDismiss(android.content.Context context, android.os.Bundle bundle, NetmeraPushObject netmeraPushObject) Called when the push notification is dismissed by the user.voidonPushOpen(android.content.Context context, android.os.Bundle bundle, NetmeraPushObject netmeraPushObject) Called when the push notification is opened by the user.voidonPushReceive(android.content.Context context, android.os.Bundle bundle, NetmeraPushObject netmeraPushObject) Called when a push message is received.voidonPushRegister(android.content.Context context, String appSenderId, String pushToken) Called when push registration is completed.
-
Method Details
-
onPushRegister
Called when push registration is completed.- Parameters:
context- TheContextin which the receiver is running.appSenderId- AStringfor which pushToken has been retrieved.pushToken- AStringuniquely identifying the device for sending push messages.
-
onPushReceive
void onPushReceive(android.content.Context context, android.os.Bundle bundle, NetmeraPushObject netmeraPushObject) Called when a push message is received. If message comes from NetmeraNetmeraPushObjectwill be non-null and a notification will be shown by default. However, if message doesn't come from Netmera,NetmeraPushObjectwill be null to indicate it is not a Netmera message and data of received message will be served via bundle parameter.- Parameters:
context- TheContextin which the receiver is running.bundle- ABundlecontaining the data of the current push message.netmeraPushObject- AnNetmeraPushObjectcontaining structured data of the current push message if it has come from Netmera, null otherwise.
-
onPushOpen
void onPushOpen(android.content.Context context, android.os.Bundle bundle, NetmeraPushObject netmeraPushObject) Called when the push notification is opened by the user.- Parameters:
context- TheContextin which the receiver is running.bundle- ABundlecontaining the data of the current push message.netmeraPushObject- AnNetmeraPushObjectcontaining structured data of the opened push message.
-
onPushDismiss
void onPushDismiss(android.content.Context context, android.os.Bundle bundle, NetmeraPushObject netmeraPushObject) Called when the push notification is dismissed by the user.- Parameters:
context- TheContextin which the receiver is running.bundle- ABundlecontaining the data of the current push message.netmeraPushObject- AnNetmeraPushObjectcontaining structured data of the dismissed push message
-
onPushButtonClicked
void onPushButtonClicked(android.content.Context context, android.os.Bundle bundle, NetmeraPushObject netmeraPushObject) Called when any of notification button is clicked.- Parameters:
context- TheContextin which the receiver is running.bundle- ABundlecontaining the data of the current push message.netmeraPushObject- ANetmeraPushObjectcontaining structured data of the current push message of which action button is clicked.
-
onCarouselObjectSelected
void onCarouselObjectSelected(android.content.Context context, android.os.Bundle bundle, NetmeraPushObject netmeraPushObject, int selectedIndex, NetmeraCarouselObject netmeraCarouselObject) Called when a carousel object was selected from carousel notification- Parameters:
context- TheContextin which the receiver is running.bundle- ABundlecontaining the data of the current push message.netmeraPushObject- ANetmeraPushObjectcontaining structured data of the current push message of which action button is clicked.selectedIndex- The index of the selected carousel objectnetmeraCarouselObject- The selected carousel object
-