Package org.robolectric.shadows
Class ResourceModeShadowPicker<T>
java.lang.Object
org.robolectric.shadows.ResourceModeShadowPicker<T>
- All Implemented Interfaces:
ShadowPicker<T>
- Direct Known Subclasses:
ShadowApkAssets.Picker
,ShadowAssetInputStream.Picker
,ShadowAssetManager.Picker
,ShadowResources.ShadowTheme.Picker
,ShadowResourcesImpl.Picker
,ShadowResourcesImpl.ShadowThemeImpl.Picker
,ShadowTypedArray.Picker
-
Constructor Summary
ConstructorDescriptionResourceModeShadowPicker
(Class<? extends T> legacyShadowClass, Class<? extends T> binaryShadowClass, Class<? extends T> binary9ShadowClass) ResourceModeShadowPicker
(Class<? extends T> legacyShadowClass, Class<? extends T> binaryShadowClass, Class<? extends T> binary9ShadowClass, Class<? extends T> binary10ShadowClass, Class<? extends T> binary14ShadowClass) -
Method Summary
Modifier and TypeMethodDescriptionDetermines the shadow class to be used depending on the configuration of theorg.robolectric.internal.Environment
.
-
Constructor Details
-
ResourceModeShadowPicker
-
ResourceModeShadowPicker
-
-
Method Details
-
pickShadowClass
Description copied from interface:ShadowPicker
Determines the shadow class to be used depending on the configuration of theorg.robolectric.internal.Environment
. Must be deterministic.- Specified by:
pickShadowClass
in interfaceShadowPicker<T>
- Returns:
- the shadow class to be used
-