Package com.batch.android.push
Class GCMIidRegistrationProvider
- java.lang.Object
-
- com.batch.android.push.GCMAbstractRegistrationProvider
-
- com.batch.android.push.GCMIidRegistrationProvider
-
- All Implemented Interfaces:
PushRegistrationProvider
public class GCMIidRegistrationProvider extends GCMAbstractRegistrationProvider
-
-
Field Summary
-
Fields inherited from class com.batch.android.push.GCMAbstractRegistrationProvider
context, senderID
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckLibraryAvailability()Is this provider implemented in the app? This is the place to check if the libraries are here at runtime and if the user enabled/disabled your provider.protected java.lang.IntegergetGMSAvailability()java.lang.StringgetRegistration()Returns the registration if possible.java.lang.StringgetShortname()Returns the short name of the provider.-
Methods inherited from class com.batch.android.push.GCMAbstractRegistrationProvider
checkServiceAvailability, getAdsIdentifierProvider, getSenderID
-
-
-
-
Method Detail
-
getShortname
public java.lang.String getShortname()
Description copied from interface:PushRegistrationProviderReturns the short name of the provider. For example: "FCM".
-
getGMSAvailability
protected java.lang.Integer getGMSAvailability()
- Specified by:
getGMSAvailabilityin classGCMAbstractRegistrationProvider
-
checkLibraryAvailability
public void checkLibraryAvailability() throws PushRegistrationProviderAvailabilityExceptionDescription copied from interface:PushRegistrationProviderIs this provider implemented in the app? This is the place to check if the libraries are here at runtime and if the user enabled/disabled your provider.This method will be called right before requesting a push token.
If not available, you should throw a
PushRegistrationProviderAvailabilityExceptionwith the human-readable error message.- Specified by:
checkLibraryAvailabilityin interfacePushRegistrationProvider- Overrides:
checkLibraryAvailabilityin classGCMAbstractRegistrationProvider- Throws:
PushRegistrationProviderAvailabilityException
-
getRegistration
@Nullable public java.lang.String getRegistration()
Description copied from interface:PushRegistrationProviderReturns the registration if possible. Some providers might not have it right away. Return null in these cases.
-
-