checkPermissions

fun checkPermissions(permissions: List<String>): Boolean

Function to check if the application has permissions

Return

is the application has the permissions?

Parameters

permissions

array of the permission to check


fun checkPermissions(permissions: List<String>, onPermissionGranted: () -> Unit, onPermissionNotGranted: () -> Unit)

Function to check permission to the user

Parameters

permissions

List of String permission to ask the user

onPermissionGranted

action to run when all the permissions is granted

onPermissionNotGranted

action to run when all or one of the permissions is not granted