requirePermissions

fun requirePermissions(activity: Activity, onSuccess: () -> Unit)

Ask the system for the required permissions.

Parameters

activity

The android Activity instance.

onSuccess

Calls this closure if the user gives permission.