@Implements(com.google.android.gms.common.GooglePlayServicesUtil.class) public class ShadowGooglePlayServicesUtil extends Object
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.Modifier and Type | Class | Description |
---|---|---|
static class |
ShadowGooglePlayServicesUtil.GooglePlayServicesUtilImpl |
Class containing methods with same signatures of the static methods of
GooglePlayServicesUtil . |
Constructor | Description |
---|---|
ShadowGooglePlayServicesUtil() |
public static ShadowGooglePlayServicesUtil.GooglePlayServicesUtilImpl getImpl()
public static void provideImpl(ShadowGooglePlayServicesUtil.GooglePlayServicesUtilImpl impl)
@Resetter public static void reset()
@Implementation public static Context getRemoteContext(Context context)
@Implementation public static Resources getRemoteResource(Context context)
@Implementation public static boolean showErrorDialogFragment(int errorCode, Activity activity, android.support.v4.app.Fragment fragment, int requestCode, DialogInterface.OnCancelListener cancelListener)
@Implementation public static boolean showErrorDialogFragment(int errorCode, Activity activity, int requestCode)
@Implementation public static boolean showErrorDialogFragment(int errorCode, Activity activity, int requestCode, DialogInterface.OnCancelListener cancelListener)
@Implementation public static Dialog getErrorDialog(int errorCode, Activity activity, int requestCode)
@Implementation public static Dialog getErrorDialog(int errorCode, Activity activity, int requestCode, DialogInterface.OnCancelListener cancelListener)
@Implementation public static PendingIntent getErrorPendingIntent(int errorCode, Context context, int requestCode)
@Implementation public static String getOpenSourceSoftwareLicenseInfo(Context context)
@Implementation public static int isGooglePlayServicesAvailable(Context context)
@Implementation public static void showErrorNotification(int errorCode, Context context)