-
Notifications
You must be signed in to change notification settings - Fork 0
app update available message
milan jurkulák edited this page May 2, 2024
·
1 revision
//tvlib/org.mjdev.tvlib.ui.components.tv/AppUpdateAvailableMessage
[androidJvm]\
fun AppUpdateAvailableMessage(title: Any? = R.string.title_app_update, message: Any? = R.string.msg_update_available, githubUser: String = "mimoccc", githubRepository: String = "tvapp", backgroundColor: Color = Color(0, 132, 0, 255), buttonText: Any? = R.string.bt_update, appUpdater: AppUpdater = rememberAppUpdater( githubUser = githubUser, githubRepository = githubRepository, ), isEdit: Boolean = isEditMode(), updateAvailable: State<Boolean> = appUpdater.isUpdateAvailable.collectAsState(false), visibleState: MutableState<Boolean> = mutableStateOf(isEdit || updateAvailable.value), onButtonClick: () -> Unit = { appUpdater.updateApp() })