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 Details

    • ShadowGoogleApiAvailability

      public ShadowGoogleApiAvailability()
  • Method Details

    • getInstance

      @Implementation public static com.google.android.gms.common.GoogleApiAvailability getInstance()
    • isGooglePlayServicesAvailable

      @Implementation public int isGooglePlayServicesAvailable(Context context)
    • setIsGooglePlayServicesAvailable

      public void setIsGooglePlayServicesAvailable(int availabilityCode)
    • isUserResolvableError

      @Implementation public final boolean isUserResolvableError(int errorCode)
    • setIsUserResolvableError

      public void setIsUserResolvableError(boolean isUserResolvableError)
    • getOpenSourceSoftwareLicenseInfo

      @Implementation public String getOpenSourceSoftwareLicenseInfo(Context context)
    • setOpenSourceSoftwareLicenseInfo

      public void setOpenSourceSoftwareLicenseInfo(String openSourceSoftwareLicenseInfo)
    • getErrorDialog

      @Implementation public Dialog getErrorDialog(Activity activity, int errorCode, int requestCode)
    • getErrorDialog

      @Implementation public Dialog getErrorDialog(Activity activity, int errorCode, int requestCode, DialogInterface.OnCancelListener cancelListener)
    • setErrorDialog

      public void setErrorDialog(Dialog errorDialog)