Skip to content

error message

milan jurkulák edited this page May 2, 2024 · 1 revision

//tvlib/org.mjdev.tvlib.ui.components.tv/ErrorMessage

ErrorMessage

[androidJvm]\

@Composable

fun ErrorMessage(title: Any? = null, error: Throwable? = Exception("An unknown error happen, please contact developer, if issue does not disappear."), dismissText: Any? = R.string.bt_dismiss, color: Color = Color.White, backgroundColor: Color = Color.Red, fontSizeTitle: TextUnit = 14.sp, fontSizeMessage: TextUnit = 11.sp, fontSizeButton: TextUnit = 11.sp, fontWeight: FontWeight = FontWeight.Bold, paddingTitle: Dp = 8.dp, paddingContent: Dp = 4.dp, roundSize: Dp = 8.dp, borderSize: Dp = 1.dp, borderColor: Color = Color.DarkGray, backgroundShape: Shape = RoundedCornerShape(roundSize), dismissible: Boolean = true, visible: Boolean = isEditMode(), visibleState: MutableState<Boolean> = mutableStateOf(visible), enter: EnterTransition = EnterTransition.None, exit: ExitTransition = ExitTransition.None, dismissOnClick: () -> Unit? = null)

Clone this wiki locally