Skip to main content

Manage, Fetch & Request Device Permissions

Manage, Fetch & Request Device Permissions

Use this component to request runtime permissions and fetch permission status (whether the permission is granted or not).

To get started using it, you must use KmpPermissionsManager.

Request a runtime permission

To request a device runtime permission, please use the following:


_3
KmpPermissionsManager.requestPermission(permission: Permission){
_3
val response = it // whether the permission has been granted or not
_3
}

Check Permission Status

To check if a permission has already been enabled by the user, use the following:


_3
KmpPermissionsManager.isPermissionGranted(permission: Permission){
_3
val response = it // whether the permission has been granted or not
_3
}

Any Required Setup?

None