com.urbanairship.push.PushProvider |
Defines a push provider.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
@interface | PushProvider.DeliveryType | ||||||||||
class | PushProvider.RegistrationException | Registration exceptions |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ADM_DELIVERY_TYPE | ||||||||||
String | FCM_DELIVERY_TYPE | ||||||||||
String | HMS_DELIVERY_TYPE |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract String |
getDeliveryType()
Returns the delivery type.
| ||||||||||
abstract int |
getPlatform()
Returns the platform type.
| ||||||||||
abstract String |
getRegistrationToken(Context context)
Gets the push registration token.
| ||||||||||
abstract boolean |
isAvailable(Context context)
If the underlying push provider is currently available.
| ||||||||||
abstract boolean |
isSupported(Context context)
If the underlying push provider is supported on the device.
|
Returns the platform type. Value must be either AMAZON_PLATFORM
or ANDROID_PLATFORM
.
Gets the push registration token.
context | The application context. |
---|
PushProvider.RegistrationException | If the registration fails. |
---|
If the underlying push provider is currently available.
context | The application context. |
---|
true
if the push provider is currently available, otherwise false
.
If the underlying push provider is supported on the device.
context | The application context. |
---|
true
if the push provider is supported on the device, otherwise false
.