Class of android.graphics.drawable · Icon.java · Android's reference
public final class Icon implements android.os.Parcelable
An icon by its source: a bitmap, a resource, a content URI or data. Drawn through a Drawable when loaded.
public static final int TYPE_BITMAP = 1 sourcepublic static final int TYPE_RESOURCE = 2 sourcepublic static final int TYPE_DATA = 3 sourcepublic static final int TYPE_URI = 4 sourcepublic static final int TYPE_ADAPTIVE_BITMAP = 5 sourcepublic static final int TYPE_URI_ADAPTIVE_BITMAP = 6 sourcepublic static Icon createWithBitmap(Bitmap bits) sourcepublic static Icon createWithAdaptiveBitmap(Bitmap bits) sourcepublic static Icon createWithResource(Context context, int resId) sourcepublic static Icon createWithResource(String resPackage, int resId) sourcepublic static Icon createWithData(byte[] data, int offset, int length) sourcepublic static Icon createWithContentUri(String uri) sourcepublic static Icon createWithContentUri(Uri uri) sourcepublic static Icon createWithAdaptiveBitmapContentUri(Uri uri) sourcepublic int getType() sourcepublic int getResId() sourcepublic String getResPackage() sourcepublic Uri getUri() sourcepublic Icon setTint(int tint) sourcepublic Icon setTintList(ColorStateList tintList) sourcepublic Icon setTintMode(PorterDuff.Mode mode) sourcepublic Drawable loadDrawable(Context context) sourceThe icon's drawable: its bitmap, or its resource's drawable
public String toString() sourcepublic int describeContents() sourcepublic void writeToParcel(android.os.Parcel dest, int flags) sourceMade from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.