Package org.robolectric.shadows.gms
Class ShadowGooglePlayServicesUtil
java.lang.Object
org.robolectric.shadows.gms.ShadowGooglePlayServicesUtil
@Deprecated
@Implements(com.google.android.gms.common.GooglePlayServicesUtil.class)
public class ShadowGooglePlayServicesUtil
extends Object
Deprecated.
This package is no longer maintained and will be removed in Robolectric 4.16.
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 classDeprecated.Class 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) Deprecated.static DialoggetErrorDialog(int errorCode, Activity activity, int requestCode, DialogInterface.OnCancelListener cancelListener) Deprecated.static PendingIntentgetErrorPendingIntent(int errorCode, Context context, int requestCode) Deprecated.getImpl()Deprecated.static ContextgetRemoteContext(Context context) Deprecated.static ResourcesgetRemoteResource(Context context) Deprecated.static intisGooglePlayServicesAvailable(Context context) Deprecated.static voidDeprecated.static voidreset()Deprecated.static booleanshowErrorDialogFragment(int errorCode, Activity activity, int requestCode) Deprecated.static booleanshowErrorDialogFragment(int errorCode, Activity activity, int requestCode, DialogInterface.OnCancelListener cancelListener) Deprecated.static booleanshowErrorDialogFragment(int errorCode, Activity activity, androidx.fragment.app.Fragment fragment, int requestCode, DialogInterface.OnCancelListener cancelListener) Deprecated.static voidshowErrorNotification(int errorCode, Context context) Deprecated.
-
Constructor Details
-
ShadowGooglePlayServicesUtil
public ShadowGooglePlayServicesUtil()Deprecated.
-
-
Method Details
-
getImpl
Deprecated. -
provideImpl
Deprecated. -
reset
Deprecated. -
getRemoteContext
Deprecated. -
getRemoteResource
Deprecated. -
showErrorDialogFragment
@Implementation public static boolean showErrorDialogFragment(int errorCode, Activity activity, androidx.fragment.app.Fragment fragment, int requestCode, DialogInterface.OnCancelListener cancelListener) Deprecated. -
showErrorDialogFragment
@Implementation public static boolean showErrorDialogFragment(int errorCode, Activity activity, int requestCode) Deprecated. -
showErrorDialogFragment
@Implementation public static boolean showErrorDialogFragment(int errorCode, Activity activity, int requestCode, DialogInterface.OnCancelListener cancelListener) Deprecated. -
getErrorDialog
@Implementation public static Dialog getErrorDialog(int errorCode, Activity activity, int requestCode) Deprecated. -
getErrorDialog
@Implementation public static Dialog getErrorDialog(int errorCode, Activity activity, int requestCode, DialogInterface.OnCancelListener cancelListener) Deprecated. -
getErrorPendingIntent
@Implementation public static PendingIntent getErrorPendingIntent(int errorCode, Context context, int requestCode) Deprecated. -
isGooglePlayServicesAvailable
Deprecated. -
showErrorNotification
Deprecated.
-