Interface NMPushActionCallbacks


  • public interface NMPushActionCallbacks
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      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
      void onPushButtonClicked​(android.content.Context context, android.os.Bundle bundle, NetmeraPushObject netmeraPushObject)
      Called when any of notification button is clicked.
      void onPushDismiss​(android.content.Context context, android.os.Bundle bundle, NetmeraPushObject netmeraPushObject)
      Called when the push notification is dismissed by the user.
      void onPushOpen​(android.content.Context context, android.os.Bundle bundle, NetmeraPushObject netmeraPushObject)
      Called when the push notification is opened by the user.
      void onPushReceive​(android.content.Context context, android.os.Bundle bundle, NetmeraPushObject netmeraPushObject)
      Called when a push message is received.
      void onPushRegister​(android.content.Context context, java.lang.String appSenderId, java.lang.String pushToken)
      Called when push registration is completed.
    • Method Detail

      • onPushRegister

        void onPushRegister​(android.content.Context context,
                            java.lang.String appSenderId,
                            java.lang.String pushToken)
        Called when push registration is completed.
        Parameters:
        context - The Context in which the receiver is running.
        appSenderId - A String for which pushToken has been retrieved.
        pushToken - A String uniquely 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 Netmera NetmeraPushObject will be non-null and a notification will be shown by default. However, if message doesn't come from Netmera, NetmeraPushObject will be null to indicate it is not a Netmera message and data of received message will be served via bundle parameter.
        Parameters:
        context - The Context in which the receiver is running.
        bundle - A Bundle containing the data of the current push message.
        netmeraPushObject - An NetmeraPushObject containing 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 - The Context in which the receiver is running.
        bundle - A Bundle containing the data of the current push message.
        netmeraPushObject - An NetmeraPushObject containing 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 - The Context in which the receiver is running.
        bundle - A Bundle containing the data of the current push message.
        netmeraPushObject - An NetmeraPushObject containing 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 - The Context in which the receiver is running.
        bundle - A Bundle containing the data of the current push message.
        netmeraPushObject - A NetmeraPushObject containing 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 - The Context in which the receiver is running.
        bundle - A Bundle containing the data of the current push message.
        netmeraPushObject - A NetmeraPushObject containing structured data of the current push message of which action button is clicked.
        selectedIndex - The index of the selected carousel object
        netmeraCarouselObject - The selected carousel object