Package org.robolectric.shadows
Class ShadowIcon
java.lang.Object
org.robolectric.shadows.ShadowIcon
@Implements(value=android.graphics.drawable.Icon.class,
minSdk=23)
public class ShadowIcon
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
int
int
int
getResId()
int
getType()
getUri()
protected void
loadDrawableAsync
(Context context, Icon.OnDrawableLoadedListener listener, Handler handler) protected void
loadDrawableAsync
(Context context, Message andThen) static void
overrideExecutor
(Executor executor) Set the executor where async drawable loading will run.
-
Constructor Details
-
ShadowIcon
public ShadowIcon()
-
-
Method Details
-
overrideExecutor
Set the executor where async drawable loading will run. -
getType
-
getResId
-
getBitmap
-
getUri
-
getDataLength
-
getDataOffset
-
getDataBytes
-
loadDrawableAsync
-
loadDrawableAsync
@Implementation protected void loadDrawableAsync(Context context, Icon.OnDrawableLoadedListener listener, Handler handler)
-