Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
sealed class State

The current state of the Image.

Link copied to clipboard

Functions

Link copied to clipboard
fun Illustration(painter: Painter?, contentDescription: String?, modifier: Modifier = Modifier, alignment: Alignment = Alignment.Center, contentScale: ContentScale = ContentScale.Fit, alpha: Float = DefaultAlpha, colorFilter: ColorFilter? = null)

Creates a composable that lays out and draws a given Painter. This will attempt to size the composable according to the Painter's intrinsic size. However, an optional Modifier parameter can be provided to adjust sizing or draw additional content (ex. background)

fun Illustration(imageVector: ImageVector, contentDescription: String?, modifier: Modifier = Modifier, alignment: Alignment = Alignment.Center, contentScale: ContentScale = ContentScale.Fit, alpha: Float = DefaultAlpha, colorFilter: ColorFilter? = null)

A composable that lays out and draws a given ImageVector. This will attempt to size the composable according to the ImageVector's given width and height. However, an optional Modifier parameter can be provided to adjust sizing or draw additional content (ex. background). Any unspecified dimension will leverage the ImageVector's size as a minimum constraint.

fun Illustration(sparkIcon: SparkIcon, contentDescription: String?, modifier: Modifier = Modifier, alignment: Alignment = Alignment.Center, contentScale: ContentScale = ContentScale.Fit, alpha: Float = DefaultAlpha, colorFilter: ColorFilter? = null)

Creates a composable that lays out and draws a given SparkIcon. This will attempt to size the composable according to the SparkIcon's intrinsic size (should be already normalized but some exception may still exist). However, an optional Modifier parameter can be provided to adjust sizing or draw additional content (ex. background)

fun Illustration(@DrawableRes drawableRes: Int, contentDescription: String?, modifier: Modifier = Modifier, alignment: Alignment = Alignment.Center, contentScale: ContentScale = ContentScale.Fit, alpha: Float = DefaultAlpha, colorFilter: ColorFilter? = null)

Creates a composable that lays out and draws a given android.graphics.drawable.Drawable. This will attempt to size the composable according to the android.graphics.drawable.Drawable's intrinsic size. However, an optional Modifier parameter can be provided to adjust sizing or draw additional content (ex. background)

fun Illustration(bitmap: ImageBitmap, contentDescription: String?, modifier: Modifier = Modifier, alignment: Alignment = Alignment.Center, contentScale: ContentScale = ContentScale.Fit, alpha: Float = DefaultAlpha, colorFilter: ColorFilter? = null, filterQuality: FilterQuality = DrawScope.DefaultFilterQuality)

A composable that lays out and draws a given ImageBitmap. This will attempt to size the composable according to the ImageBitmap's given width and height. However, an optional Modifier parameter can be provided to adjust sizing or draw additional content (ex. background). Any unspecified dimension will leverage the ImageBitmap's size as a minimum constraint.

Link copied to clipboard
fun Image(model: Any?, contentDescription: String?, modifier: Modifier = Modifier, onState: (State) -> Unit? = null, emptyIcon: @Composable () -> Unit = { ImageIconState(SparkIcons.NoPhoto) }, errorIcon: @Composable () -> Unit = { ImageIconState(SparkIcons.ErrorPhoto) }, alignment: Alignment = Alignment.Center, contentScale: ContentScale = ContentScale.Fit, alpha: Float = DefaultAlpha, colorFilter: ColorFilter? = null, filterQuality: FilterQuality = DrawScope.DefaultFilterQuality, loadingPlaceholder: @Composable () -> Unit = ImageDefaults.placeholder)

A composable that lays out and draws a given Image. This will attempt to size the composable according to the Image's given width and height. However, an optional Modifier parameter can be provided to adjust sizing or draw additional content (ex. background). Any unspecified dimension will leverage the Image's size as a minimum constraint.

Link copied to clipboard
fun UserAvatar(modifier: Modifier = Modifier, style: UserAvatarStyle = UserAvatarStyle.SMALL, fillParentSize: Boolean = false, model: Any? = null, color: Color = Color.Unspecified, isPro: Boolean = false, isOnline: Boolean = false)