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, ShadowResourcesImpl.Picker

public class ResourceModeShadowPicker<T> extends Object implements ShadowPicker<T>
  • Constructor Details

    • ResourceModeShadowPicker

      public ResourceModeShadowPicker(Class<? extends T> binaryShadowClass, Class<? extends T> binary9ShadowClass)
    • ResourceModeShadowPicker

      public ResourceModeShadowPicker(Class<? extends T> binaryShadowClass, Class<? extends T> binary9ShadowClass, Class<? extends T> binary10ShadowClass, Class<? extends T> binary14ShadowClass)
  • Method Details

    • pickShadowClass

      public Class<? extends T> pickShadowClass()
      Description copied from interface: ShadowPicker
      Determines the shadow class to be used depending on the configuration of the org.robolectric.internal.Environment. Must be deterministic.
      Specified by:
      pickShadowClass in interface ShadowPicker<T>
      Returns:
      the shadow class to be used