IconKt

Added in 1.1.0

public final class IconKt


Summary

Public methods

static final @NonNull Icon
@RequiresApi(value = 26)
toAdaptiveIcon(@NonNull Bitmap receiver)

Create an Icon from this adaptive Bitmap.

static final @NonNull Icon
@RequiresApi(value = 26)
toIcon(@NonNull Bitmap receiver)

Create an Icon from this Bitmap.

static final @NonNull Icon
@RequiresApi(value = 26)
toIcon(@NonNull byte[] receiver)

Create an Icon from this ByteArray.

static final @NonNull Icon
@RequiresApi(value = 26)
toIcon(@NonNull Uri receiver)

Create an Icon from this Uri.

Public methods

toAdaptiveIcon

@RequiresApi(value = 26)
public static final @NonNull Icon toAdaptiveIcon(@NonNull Bitmap receiver)

Create an Icon from this adaptive Bitmap.

toIcon

@RequiresApi(value = 26)
public static final @NonNull Icon toIcon(@NonNull Bitmap receiver)

Create an Icon from this Bitmap.

See also
createWithBitmap

toIcon

@RequiresApi(value = 26)
public static final @NonNull Icon toIcon(@NonNull byte[] receiver)

Create an Icon from this ByteArray.

See also
createWithData

toIcon

@RequiresApi(value = 26)
public static final @NonNull Icon toIcon(@NonNull Uri receiver)

Create an Icon from this Uri.