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
Constructors Constructor Description ShadowIcon()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Bitmap
getBitmap()
byte[]
getDataBytes()
int
getDataLength()
int
getDataOffset()
int
getResId()
int
getType()
Uri
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.
-
-
-
Method Detail
-
overrideExecutor
public static void overrideExecutor(Executor executor)
Set the executor where async drawable loading will run.
-
getType
@HiddenApi @Implementation public int getType()
-
getResId
@HiddenApi @Implementation public int getResId()
-
getBitmap
@HiddenApi @Implementation public Bitmap getBitmap()
-
getUri
@HiddenApi @Implementation public Uri getUri()
-
getDataLength
@HiddenApi @Implementation public int getDataLength()
-
getDataOffset
@HiddenApi @Implementation public int getDataOffset()
-
getDataBytes
@HiddenApi @Implementation public byte[] getDataBytes()
-
loadDrawableAsync
@Implementation protected void loadDrawableAsync(Context context, Message andThen)
-
loadDrawableAsync
@Implementation protected void loadDrawableAsync(Context context, Icon.OnDrawableLoadedListener listener, Handler handler)
-
-