PermissionDeniedDialog

fun PermissionDeniedDialog(modifier: Modifier = Modifier, message: String = stringResource(R.string.media_maestro_local_network_permission_denied), buttonText: String = stringResource(R.string.media_maestro_open_settings), onClickRequest: (context: Context) -> Unit = { context -> context.startActivity(LocalNetworkPermission.createSettingsIntent(context)) }, onDismissRequest: () -> Unit)

Dialog informing the user that the local network permission, required to discover devices on Android 17+, was denied. It offers to open the application settings, where the permission can be granted.

Parameters

modifier

The Modifier to be applied to this dialog.

message

The message of the dialog.

buttonText

The text of the confirm button.

onClickRequest

The action to perform when the confirm button is clicked. The dialog is dismissed afterward. By default, the application settings are opened.

onDismissRequest

The action to perform when this dialog is dismissed.

See also