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 -
Method Summary
Modifier and TypeMethodDescriptionbyte[]intintintgetResId()intgetType()getUri()protected voidloadDrawableAsync(Context context, Icon.OnDrawableLoadedListener listener, Handler handler) protected voidloadDrawableAsync(Context context, Message andThen) static voidoverrideExecutor(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
@HiddenApi @Implementation public int getType() -
getResId
@HiddenApi @Implementation public int getResId() -
getBitmap
-
getUri
-
getDataLength
@HiddenApi @Implementation public int getDataLength() -
getDataOffset
@HiddenApi @Implementation public int getDataOffset() -
getDataBytes
@HiddenApi @Implementation public byte[] getDataBytes() -
loadDrawableAsync
-
loadDrawableAsync
@Implementation protected void loadDrawableAsync(Context context, Icon.OnDrawableLoadedListener listener, Handler handler)
-