Class AN_GoogleApiAvailability
Inheritance
Inherited Members
Namespace: SA.Android.GMS.Common
Assembly: cs.temp.dll.dll
Syntax
public class AN_GoogleApiAvailability
Methods
IsGooglePlayServicesAvailable()
Verifies that Google Play services is installed and enabled on this device, and that the version installed on this device is no older than the one required by this client.
Declaration
public static int IsGooglePlayServicesAvailable()
Returns
Type | Description |
---|---|
System.Int32 | status code indicating whether there was an error. Can be one of following in AN_ConnectionResult SUCCESS, SERVICE_MISSING, SERVICE_UPDATING, SERVICE_VERSION_UPDATE_REQUIRED SERVICE_DISABLED, SERVICE_INVALID. |
MakeGooglePlayServicesAvailable(Action<SA_Result>)
Attempts to make Google Play services available on this device. If Play Services is already available, the returned Task may complete immediately.
f it is necessary to display UI in order to complete this request (e.g. sending the user to the Google Play store) the AN_MainActivity will be used to display this UI.
This method must be called from the main thread.
Declaration
public static void MakeGooglePlayServicesAvailable(Action<SA_Result> callback)
Parameters
Type | Name | Description |
---|---|---|
Action<SA_Result> | callback | If callback completes with Success result, Play Services is available on this device. |