checkPermissions
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