public interface

PushProvider

com.urbanairship.push.PushProvider

Class Overview

Defines a push provider.

Summary

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.

Constants

public static final String ADM_DELIVERY_TYPE

Constant Value: "adm"

public static final String FCM_DELIVERY_TYPE

Constant Value: "fcm"

public static final String HMS_DELIVERY_TYPE

Constant Value: "hms"

Public Methods

public abstract String getDeliveryType ()

Returns the delivery type.

Returns
  • The delivery type.

public abstract int getPlatform ()

Returns the platform type. Value must be either AMAZON_PLATFORM or ANDROID_PLATFORM.

Returns
  • The platform type.

public abstract String getRegistrationToken (Context context)

Gets the push registration token.

Parameters
context The application context.
Returns
  • The registration ID.
Throws
PushProvider.RegistrationException If the registration fails.

public abstract boolean isAvailable (Context context)

If the underlying push provider is currently available.

Parameters
context The application context.
Returns
  • true if the push provider is currently available, otherwise false.

public abstract boolean isSupported (Context context)

If the underlying push provider is supported on the device.

Parameters
context The application context.
Returns
  • true if the push provider is supported on the device, otherwise false.