@Implements(com.google.android.gms.common.GoogleApiAvailability.class) public class ShadowGoogleApiAvailability extends Object
Constructor | Description |
---|---|
ShadowGoogleApiAvailability() |
Modifier and Type | Method | Description |
---|---|---|
Dialog |
getErrorDialog(Activity activity,
int errorCode,
int requestCode) |
|
Dialog |
getErrorDialog(Activity activity,
int errorCode,
int requestCode,
DialogInterface.OnCancelListener cancelListener) |
|
static com.google.android.gms.common.GoogleApiAvailability |
getInstance() |
|
String |
getOpenSourceSoftwareLicenseInfo(Context context) |
|
int |
isGooglePlayServicesAvailable(Context context) |
|
boolean |
isUserResolvableError(int errorCode) |
|
void |
setErrorDialog(Dialog errorDialog) |
|
void |
setIsGooglePlayServicesAvailable(int availabilityCode) |
|
void |
setIsUserResolvableError(boolean isUserResolvableError) |
|
void |
setOpenSourceSoftwareLicenseInfo(String openSourceSoftwareLicenseInfo) |
@Implementation public static com.google.android.gms.common.GoogleApiAvailability getInstance()
@Implementation public int isGooglePlayServicesAvailable(Context context)
public void setIsGooglePlayServicesAvailable(int availabilityCode)
@Implementation public final boolean isUserResolvableError(int errorCode)
public void setIsUserResolvableError(boolean isUserResolvableError)
@Implementation public String getOpenSourceSoftwareLicenseInfo(Context context)
public void setOpenSourceSoftwareLicenseInfo(String openSourceSoftwareLicenseInfo)
@Implementation public Dialog getErrorDialog(Activity activity, int errorCode, int requestCode)
@Implementation public Dialog getErrorDialog(Activity activity, int errorCode, int requestCode, DialogInterface.OnCancelListener cancelListener)
public void setErrorDialog(Dialog errorDialog)