-
public final class GooglePlayServicesHelperHelper to get GooglePlayServices data with introspection
-
-
Method Summary
Modifier and Type Method Description static StringgetGooglePlayServicesAvailabilityString(Integer availability)retrieve the google play services' isGooglePlayServicesAvailable result as a string static IntegergetGooglePlayServicesAvailabilityInteger(Context context)static IntegergetGooglePlayServicesLibVersion(Context context)retrieve the google play services version if the lib regardless if it is availableon rutime or not static booleanisAdvertisingIDAvailable(Context context)Check if the advertising ID is available by checking the version of the lib static IntegerisPushAvailable(Context context)Check if GCM is available static StringgetPushToken(Context context, String senderID)Get the push token from GCM. static IntegerisInstanceIdPushAvailable(Context context)Check if InstanceID based GCM is available static StringgetInstancePushToken(Context context, String senderID)Get the instance token (not the instance id itself), usable with GCM static IntegerisFCMAvailable(Context context)Check if FCM is available -
-
Method Detail
-
getGooglePlayServicesAvailabilityString
static String getGooglePlayServicesAvailabilityString(Integer availability)
retrieve the google play services' isGooglePlayServicesAvailable result as a string
-
getGooglePlayServicesAvailabilityInteger
static Integer getGooglePlayServicesAvailabilityInteger(Context context)
-
getGooglePlayServicesLibVersion
static Integer getGooglePlayServicesLibVersion(Context context)
retrieve the google play services version if the lib regardless if it is availableon rutime or not
-
isAdvertisingIDAvailable
static boolean isAdvertisingIDAvailable(Context context)
Check if the advertising ID is available by checking the version of the lib
-
isPushAvailable
static Integer isPushAvailable(Context context)
Check if GCM is available
-
getPushToken
static String getPushToken(Context context, String senderID)
Get the push token from GCM. Be careful, this method is synchronous and can take a long time.
- Parameters:
context- Application context
-
isInstanceIdPushAvailable
static Integer isInstanceIdPushAvailable(Context context)
Check if InstanceID based GCM is available
-
getInstancePushToken
static String getInstancePushToken(Context context, String senderID)
Get the instance token (not the instance id itself), usable with GCM
-
isFCMAvailable
static Integer isFCMAvailable(Context context)
Check if FCM is available
-
-
-
-