Class BatchPushHelper


  • public class BatchPushHelper
    extends java.lang.Object
    Set of helper methods shared between BatchPushNotificationPresenter and methods exposed to devs via the push module
    • Constructor Summary

      Constructors 
      Constructor Description
      BatchPushHelper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static android.os.Bundle firebaseMessageToReceiverBundle​(com.google.firebase.messaging.RemoteMessage message)
      Convert a Firebase RemoteMessage to a bundle, for compatibility with all the methods that used to deal with a BroadcastReceiver started by GCM
      static boolean isPushValid​(android.content.Context context, InternalPushData batchData)
      Internal method
      static void markPushAsShown​(android.content.Context context, java.lang.String pushId)
      Internal method
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BatchPushHelper

        public BatchPushHelper()
    • Method Detail

      • isPushValid

        public static boolean isPushValid​(android.content.Context context,
                                          InternalPushData batchData)
        Internal method
      • markPushAsShown

        public static void markPushAsShown​(android.content.Context context,
                                           java.lang.String pushId)
        Internal method
      • firebaseMessageToReceiverBundle

        @Nullable
        public static android.os.Bundle firebaseMessageToReceiverBundle​(@Nullable
                                                                        com.google.firebase.messaging.RemoteMessage message)
        Convert a Firebase RemoteMessage to a bundle, for compatibility with all the methods that used to deal with a BroadcastReceiver started by GCM