Class BatchPushData


  • @Deprecated
    public class BatchPushData
    extends java.lang.Object
    Deprecated.
    Convenience object to retrieve Batch data out of a Batch Push intent
    • Constructor Summary

      Constructors 
      Constructor Description
      BatchPushData​(android.content.Context context, android.content.Intent intent)
      Deprecated.
      Build a BatchPushData object out of a Batch Push intent
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.lang.String getBigPictureURL()
      Deprecated.
      Get the big picture url contained in this push.
      You should always check if the push contains a big picture using hasBigPicture().

      The url returned by this method is already optimized for the device, you have to download the image and use it in the notification
      java.lang.String getCustomLargeIconURL()
      Deprecated.
      Get the custom large icon url contained in this push.
      You should always check if the push contains a custom large icon using hasCustomLargeIcon().

      The url returned by this method is already optimized for the device, you have to download the image and use it in the notification
      java.lang.String getDeeplink()
      Deprecated.
      Get the deeplink url contained in this push.
      You should always check if the push contains a deeplink using hasDeeplink()
      boolean hasBigPicture()
      Deprecated.
      Does this push contains a big picture
      boolean hasCustomLargeIcon()
      Deprecated.
      Does this push contains a custom large icon
      boolean hasDeeplink()
      Deprecated.
      Does this push contains a deeplink
      • Methods inherited from class java.lang.Object

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

      • BatchPushData

        public BatchPushData​(android.content.Context context,
                             android.content.Intent intent)
        Deprecated.
        Build a BatchPushData object out of a Batch Push intent
        Parameters:
        context - context of your application
        intent - Batch push intent
        Throws:
        java.lang.NullPointerException - if context or intent is null
        java.lang.IllegalArgumentException - if the intent is not a Batch Push one (always check with Batch.Push.isBatchPush(Intent) )
    • Method Detail

      • hasDeeplink

        public boolean hasDeeplink()
        Deprecated.
        Does this push contains a deeplink
        Returns:
        true if this push contains a deeplink, false otherwise
      • getDeeplink

        public java.lang.String getDeeplink()
        Deprecated.
        Get the deeplink url contained in this push.
        You should always check if the push contains a deeplink using hasDeeplink()
        Returns:
        the deeplink if any, null otherwise
      • hasCustomLargeIcon

        public boolean hasCustomLargeIcon()
        Deprecated.
        Does this push contains a custom large icon
        Returns:
        true if this push contains a custom large icon to download, false otherwise
      • getCustomLargeIconURL

        public java.lang.String getCustomLargeIconURL()
        Deprecated.
        Get the custom large icon url contained in this push.
        You should always check if the push contains a custom large icon using hasCustomLargeIcon().

        The url returned by this method is already optimized for the device, you have to download the image and use it in the notification
        Returns:
        the custom large icon url if any, null otherwise
      • hasBigPicture

        public boolean hasBigPicture()
        Deprecated.
        Does this push contains a big picture
        Returns:
        true if this push contains a big picture to download, false otherwise
      • getBigPictureURL

        public java.lang.String getBigPictureURL()
        Deprecated.
        Get the big picture url contained in this push.
        You should always check if the push contains a big picture using hasBigPicture().

        The url returned by this method is already optimized for the device, you have to download the image and use it in the notification
        Returns:
        the big picture url if any, null otherwise