Class ShadowGoogleApiAvailability
java.lang.Object
org.robolectric.shadows.gms.common.ShadowGoogleApiAvailability
@Implements(com.google.android.gms.common.GoogleApiAvailability.class) public class ShadowGoogleApiAvailability extends Object
-
Constructor Summary
Constructors Constructor Description ShadowGoogleApiAvailability()
-
Method Summary
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)
-
Constructor Details
-
ShadowGoogleApiAvailability
public ShadowGoogleApiAvailability()
-
-
Method Details
-
getInstance
-
isGooglePlayServicesAvailable
-
setIsGooglePlayServicesAvailable
public void setIsGooglePlayServicesAvailable(int availabilityCode) -
isUserResolvableError
-
setIsUserResolvableError
public void setIsUserResolvableError(boolean isUserResolvableError) -
getOpenSourceSoftwareLicenseInfo
-
setOpenSourceSoftwareLicenseInfo
-
getErrorDialog
-
getErrorDialog
@Implementation public Dialog getErrorDialog(Activity activity, int errorCode, int requestCode, DialogInterface.OnCancelListener cancelListener) -
setErrorDialog
-