checkPermissions
Function to check if the application has permissions
Return
Does the application has the requested 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