IconCompat

@VersionedParcelize(allowSerialization = true, ignoreParcelables = true, isCustom = true, jetifyAs = "android.support.v4.graphics.drawable.IconCompat") public class IconCompat


Helper for accessing features in android.graphics.drawable.Icon.

Summary

Constants

static final int

An icon that was created using createWithAdaptiveBitmap.

static final int

An icon that was created using createWithBitmap.

static final int

An icon that was created using createWithData.

static final int

An icon that was created using createWithResource.

static final int

Value returned when the type of an Icon cannot be determined.

static final int

An icon that was created using createWithContentUri.

static final int

An icon that was created using createWithAdaptiveBitmapContentUri.

Public constructors

Public methods

static @Nullable IconCompat

Extracts an icon from a bundle that was added using toBundle.

static @RequiresApi(value = 23) @Nullable IconCompat

Creates an IconCompat from an Icon.

static IconCompat

Create an Icon pointing to a bitmap in memory that follows the icon design guideline defined by android.graphics.drawable.AdaptiveIconDrawable.

static @NonNull IconCompat

Create an Icon pointing to an image file specified by URI.

static @NonNull IconCompat

Create an Icon pointing to an image file specified by URI.