@Documented @Retention(RUNTIME) @Target(TYPE) public @interface Implements
Implementation
annotation and calls them in place of the methods on the Android
class.Modifier and Type | Optional Element | Description |
---|---|---|
boolean |
callThroughByDefault |
If true, Robolectric will invoke the actual Android code for any method that isn't shadowed.
|
String |
className |
Android class name (if the Class object is not accessible).
|
boolean |
isInAndroidSdk |
Denotes that this type exists in the public Android SDK.
|
boolean |
looseSignatures |
If true, when an exact method signature match isn't found, Robolectric will look for a method
with the same name but with all argument types replaced with java.lang.Object.
|
int |
maxSdk |
If specified, the shadow class will be applied only for this SDK or lesser.
|
int |
minSdk |
If specified, the shadow class will be applied only for this SDK or greater.
|
Class<? extends ShadowPicker<?>> |
shadowPicker |
If specified, the
picker will be instantiated and called from within the newly-created
Robolectric classloader. |
Class<?> |
value |
The Android class to be shadowed.
|
Class<?> value
String className
boolean isInAndroidSdk
boolean callThroughByDefault
boolean looseSignatures
int minSdk
int maxSdk
Class<? extends ShadowPicker<?>> shadowPicker
picker
will be instantiated and called from within the newly-created
Robolectric classloader. All shadow classes implementing the same Android class must use the
same ShadowPicker
.