Package-level declarations

Types

Link copied to clipboard

An exception thrown when a resource is not found through reflection.

Properties

Link copied to clipboard

A composition local for accessing the provider's resources. This will be usually configured by the app itself.

Functions

Link copied to clipboard

Converts a drawable to a bitmap.

Link copied to clipboard
fun Resources.getDrawable(name: String, packageName: String): Drawable?

A reflective way to get drawable from resources.

Link copied to clipboard
fun Resources.getString(name: String, packageName: String): String

A reflective way to get string from resources.

Link copied to clipboard
fun painterResource(name: String, packageName: String): Painter

A reflective way of loading a drawable resource to a painter.

Link copied to clipboard
fun stringResource(name: String, packageName: String): String

A reflective way of loading a string in a composable function.