Function

ImageProvider

Image resource from an Android Drawable resource.

ImageProvider

Source set: Android
public fun ImageProvider(@DrawableRes resId: Int): ImageProvider

Image resource from an Android Drawable resource.

Parameters

resId The resource ID of the Drawable resource to be used.

ImageProvider

Source set: Android
public fun ImageProvider(bitmap: Bitmap): ImageProvider

Image resource from a bitmap.

Parameters

bitmap The bitmap to be displayed.

ImageProvider

Source set: Android
public fun ImageProvider(icon: Icon): ImageProvider

Image resource from an icon.

Parameters

icon The icon to be displayed.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: