Package org.robolectric.shadows.gms
Class ShadowGooglePlayServicesUtil
java.lang.Object
org.robolectric.shadows.gms.ShadowGooglePlayServicesUtil
@Implements(com.google.android.gms.common.GooglePlayServicesUtil.class)
public class ShadowGooglePlayServicesUtil
extends Object
Calls to static method of
GooglePlayServicesUtil will be redirected to the provided
ShadowGooglePlayServicesUtil.GooglePlayServicesUtilImpl implementation. Use provideImpl(GooglePlayServicesUtilImpl) to set the implementation instance. By default, a
ShadowGooglePlayServicesUtil.GooglePlayServicesUtilImpl is used in call redirection. Use mocks or subclassing ShadowGooglePlayServicesUtil.GooglePlayServicesUtilImpl to achieve desired behaviors.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classClass containing methods with same signatures of the static methods ofGooglePlayServicesUtil. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DialoggetErrorDialog(int errorCode, Activity activity, int requestCode) static DialoggetErrorDialog(int errorCode, Activity activity, int requestCode, DialogInterface.OnCancelListener cancelListener) static PendingIntentgetErrorPendingIntent(int errorCode, Context context, int requestCode) getImpl()static ContextgetRemoteContext(Context context) static ResourcesgetRemoteResource(Context context) static intisGooglePlayServicesAvailable(Context context) static voidstatic voidreset()static booleanshowErrorDialogFragment(int errorCode, Activity activity, int requestCode) static booleanshowErrorDialogFragment(int errorCode, Activity activity, int requestCode, DialogInterface.OnCancelListener cancelListener) static booleanshowErrorDialogFragment(int errorCode, Activity activity, androidx.fragment.app.Fragment fragment, int requestCode, DialogInterface.OnCancelListener cancelListener) static voidshowErrorNotification(int errorCode, Context context)
-
Constructor Details
-
ShadowGooglePlayServicesUtil
public ShadowGooglePlayServicesUtil()
-
-
Method Details
-
getImpl
-
provideImpl
-
reset
-
getRemoteContext
-
getRemoteResource
-
showErrorDialogFragment
@Implementation public static boolean showErrorDialogFragment(int errorCode, Activity activity, androidx.fragment.app.Fragment fragment, int requestCode, DialogInterface.OnCancelListener cancelListener) -
showErrorDialogFragment
@Implementation public static boolean showErrorDialogFragment(int errorCode, Activity activity, int requestCode) -
showErrorDialogFragment
@Implementation public static boolean showErrorDialogFragment(int errorCode, Activity activity, int requestCode, DialogInterface.OnCancelListener cancelListener) -
getErrorDialog
@Implementation public static Dialog getErrorDialog(int errorCode, Activity activity, int requestCode) -
getErrorDialog
@Implementation public static Dialog getErrorDialog(int errorCode, Activity activity, int requestCode, DialogInterface.OnCancelListener cancelListener) -
getErrorPendingIntent
@Implementation public static PendingIntent getErrorPendingIntent(int errorCode, Context context, int requestCode) -
isGooglePlayServicesAvailable
-
showErrorNotification
-