PermissionState

The state of a Camera or Microphone permission, as returned by rememberCameraPermission or rememberMicrophonePermission.

Properties

Link copied to clipboard

Whether the app can still request this permission (status is PermissionStatus.NOT_DETERMINED). If this is false but hasPermission is also false, the user must grant the permission from the system Settings.

Link copied to clipboard

Whether the app has been granted this permission (status is PermissionStatus.AUTHORIZED).

Link copied to clipboard

Functions

Link copied to clipboard
suspend fun requestPermission(): Boolean

Requests the permission from the user. Can only be called if canRequestPermission is true.