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 -
Method Summary
Modifier and TypeMethodDescriptiongetErrorDialog(Activity activity, int errorCode, int requestCode) getErrorDialog(Activity activity, int errorCode, int requestCode, DialogInterface.OnCancelListener cancelListener) static com.google.android.gms.common.GoogleApiAvailabilitygetOpenSourceSoftwareLicenseInfo(Context context) intisGooglePlayServicesAvailable(Context context) final booleanisUserResolvableError(int errorCode) voidsetErrorDialog(Dialog errorDialog) voidsetIsGooglePlayServicesAvailable(int availabilityCode) voidsetIsUserResolvableError(boolean isUserResolvableError)
-
Constructor Details
-
ShadowGoogleApiAvailability
public ShadowGoogleApiAvailability()
-
-
Method Details
-
getInstance
-
isGooglePlayServicesAvailable
-
setIsGooglePlayServicesAvailable
public void setIsGooglePlayServicesAvailable(int availabilityCode) -
isUserResolvableError
-
setIsUserResolvableError
public void setIsUserResolvableError(boolean isUserResolvableError) -
getOpenSourceSoftwareLicenseInfo
-
getErrorDialog
-
getErrorDialog
@Implementation public Dialog getErrorDialog(Activity activity, int errorCode, int requestCode, DialogInterface.OnCancelListener cancelListener) -
setErrorDialog
-