ShadowPicker<T>
ShadowApkAssets.Picker
, ShadowAssetInputStream.Picker
, ShadowAssetManager.Picker
, ShadowResources.ShadowTheme.Picker
, ShadowResourcesImpl.Picker
, ShadowResourcesImpl.ShadowThemeImpl.Picker
, ShadowTypedArray.Picker
public class ResourceModeShadowPicker<T> extends Object implements ShadowPicker<T>
Constructor | Description |
---|---|
ResourceModeShadowPicker(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) |
Modifier and Type | Method | Description |
---|---|---|
Class<? extends T> |
pickShadowClass() |
Determines the shadow class to be used depending on the configuration of the
org.robolectric.internal.Environment . |
public ResourceModeShadowPicker(Class<? extends T> legacyShadowClass, Class<? extends T> binaryShadowClass, Class<? extends T> binary9ShadowClass)
public Class<? extends T> pickShadowClass()
ShadowPicker
org.robolectric.internal.Environment
. Must be deterministic.pickShadowClass
in interface ShadowPicker<T>