Package com.batch.android.adsidentifier
Class GCMAdsIdentifierProvider
- java.lang.Object
-
- com.batch.android.adsidentifier.GCMAdsIdentifierProvider
-
- All Implemented Interfaces:
AdsIdentifierProvider
public class GCMAdsIdentifierProvider extends java.lang.Object implements AdsIdentifierProvider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.batch.android.AdsIdentifierProvider
AdsIdentifierProvider.AdsIdentifierListener
-
-
Constructor Summary
Constructors Constructor Description GCMAdsIdentifierProvider(android.content.Context context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckAvailability()Is this provider available to use? This is the place to check if the libraries are here at runtime and if the user enabled/disabled your provider.voidgetAdsIdentifier(AdsIdentifierProvider.AdsIdentifierListener listener)Retrieve the advertising id value and the opt-out state asynchronously
-
-
-
Method Detail
-
checkAvailability
public void checkAvailability() throws AdsIdentifierProviderAvailabilityExceptionDescription copied from interface:AdsIdentifierProviderIs this provider available to use? This is the place to check if the libraries are here at runtime and if the user enabled/disabled your provider.If not available, you should throw a
AdsIdentifierProviderAvailabilityExceptionwith the human-readable error message.- Specified by:
checkAvailabilityin interfaceAdsIdentifierProvider- Throws:
AdsIdentifierProviderAvailabilityException
-
getAdsIdentifier
public void getAdsIdentifier(AdsIdentifierProvider.AdsIdentifierListener listener)
Description copied from interface:AdsIdentifierProviderRetrieve the advertising id value and the opt-out state asynchronously- Specified by:
getAdsIdentifierin interfaceAdsIdentifierProvider
-
-