Package com.batch.android
Class BatchPushData
java.lang.Object
com.batch.android.BatchPushData
Deprecated.
Convenience object to retrieve Batch data out of a Batch Push intent
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.
-
Constructor Details
-
BatchPushData
Deprecated.Build a BatchPushData object out of a Batch Push intent- Parameters:
context
- context of your applicationintent
- Batch push intent- Throws:
NullPointerException
- if context or intent is nullIllegalArgumentException
- if the intent is not a Batch Push one (always check withBatch.Push#isBatchPush(Intent)
)
-
-
Method Details
-
hasDeeplink
Deprecated.Does this push contains a deeplink- Returns:
- true if this push contains a deeplink, false otherwise
-
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
Deprecated.Does this push contains a custom large icon- Returns:
- true if this push contains a custom large icon to download, false otherwise
-
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
Deprecated.Does this push contains a big picture- Returns:
- true if this push contains a big picture to download, false otherwise
-
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
-
BatchPushPayload