IconCompat
Helper for accessing features in android.graphics.drawable.Icon.
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
An icon that was created using createWithAdaptiveBitmap.
Link copied to clipboard
An icon that was created using createWithBitmap.
Link copied to clipboard
An icon that was created using createWithData.
Link copied to clipboard
An icon that was created using createWithResource.
Link copied to clipboard
Value returned when the type of an Icon cannot be determined.
Link copied to clipboard
An icon that was created using createWithAdaptiveBitmapContentUri.
Functions
Link copied to clipboard
Link copied to clipboard
Extracts an icon from a bundle that was added using toBundle.
Link copied to clipboard
Creates an IconCompat from an Icon.
Link copied to clipboard
Creates an IconCompat from an Icon, or returns null if the given Icon is created from resource 0.
Link copied to clipboard
Create an Icon pointing to a bitmap in memory that follows the icon design guideline defined by android.graphics.drawable.AdaptiveIconDrawable.
Link copied to clipboard
Create an Icon pointing to an image file specified by URI.
Link copied to clipboard
Create an Icon pointing to a bitmap in memory.
Link copied to clipboard
Create an Icon pointing to an image file specified by URI.
Link copied to clipboard
Create an Icon pointing to a compressed bitmap stored in a byte array.
Link copied to clipboard
Create an Icon pointing to a drawable resource.
open fun createWithResource(@Nullable r: Resources, @NonNull pkg: String, @DrawableRes resId: Int): IconCompat
Link copied to clipboard
Gets the bitmap used to create this icon.
Link copied to clipboard
Gets the drawable resource id used to create this icon.
Link copied to clipboard
Gets the package used to create this icon.
Link copied to clipboard
Create an input stream for bitmap by resolving corresponding content uri.
Link copied to clipboard
Returns a Drawable that can be used to draw the image inside this Icon, constructing it if necessary.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Store a color to use whenever this Icon is drawn.
Link copied to clipboard
Store a blending mode to use whenever this Icon is drawn.
Link copied to clipboard
Adds this Icon to a Bundle that can be read back with the same parameters to createFromBundle.