AndroidDsImages

Android-specific contract for design system image assets. Image keys generated or defined on Android must implement this interface to resolve to theme attributes.

Properties

Link copied to clipboard
val DsImages.uiImage: UIImage

Resolves and loads this DsImages key to a native iOS UIImage instance from our bundle.

Functions

Link copied to clipboard
abstract fun toAttrId(): Int

Maps the image key to its corresponding Android theme attribute ID.

Link copied to clipboard
@Composable
actual fun DsImages.toCoilModel(): Any

Resolves the DsImages asset to a platform-specific model suitable for third-party image loading libraries (such as Coil, Kamel, etc.) without introducing direct library dependencies into the design system.

@Composable
expect fun DsImages.toCoilModel(): Any

Resolves the DsImages asset to a platform-specific model suitable for third-party image loading libraries (such as Coil, Kamel, etc.) without introducing direct library dependencies into the design system.

actual fun DsImages.toCoilModel(): Any

Resolves the DsImages asset to a platform-specific model suitable for third-party image loading libraries (such as Coil, Kamel, etc.) without introducing direct library dependencies into the design system.