You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When permission is denied i am trying to open the setting page but it's working
val factory: PermissionsControllerFactory = rememberPermissionsControllerFactory() val viewModel = PermissionViewModel(factory.createPermissionsController())BindEffect(viewModel.permissionsController)
private val _permissionState = MutableStateFlow(Pair(Permission.COARSE_LOCATION, PermissionState.NotDetermined)) val permissionState = _permissionState.asStateFlow()
When permission is denied i am trying to open the setting page but it's working
val factory: PermissionsControllerFactory = rememberPermissionsControllerFactory()
val viewModel = PermissionViewModel(factory.createPermissionsController())
BindEffect(viewModel.permissionsController)
viewModel.askPermission(Permission.COARSE_LOCATION)
Viewmodel code
private val _permissionState = MutableStateFlow(Pair(Permission.COARSE_LOCATION, PermissionState.NotDetermined))
val permissionState = _permissionState.asStateFlow()
The text was updated successfully, but these errors were encountered: