Package com.batch.android
Class BatchPushData
- java.lang.Object
-
- com.batch.android.BatchPushData
-
@Deprecated public class BatchPushData extends java.lang.ObjectDeprecated.UseBatchPushPayloadConvenience 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.StringgetBigPictureURL()Deprecated.Get the big picture url contained in this push.
You should always check if the push contains a big picture usinghasBigPicture().
The url returned by this method is already optimized for the device, you have to download the image and use it in the notificationjava.lang.StringgetCustomLargeIconURL()Deprecated.Get the custom large icon url contained in this push.
You should always check if the push contains a custom large icon usinghasCustomLargeIcon().
The url returned by this method is already optimized for the device, you have to download the image and use it in the notificationjava.lang.StringgetDeeplink()Deprecated.Get the deeplink url contained in this push.
You should always check if the push contains a deeplink usinghasDeeplink()booleanhasBigPicture()Deprecated.Does this push contains a big picturebooleanhasCustomLargeIcon()Deprecated.Does this push contains a custom large iconbooleanhasDeeplink()Deprecated.Does this push contains a deeplink
-
-
-
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 applicationintent- Batch push intent- Throws:
java.lang.NullPointerException- if context or intent is nulljava.lang.IllegalArgumentException- if the intent is not a Batch Push one (always check withBatch.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 usinghasDeeplink()- 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 usinghasCustomLargeIcon().
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 usinghasBigPicture().
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
-
-