requestPermissions
Starts to request the permissions. Ensure startMonitoring was called to get notified of the permission change. Sets the state to AndroidPermissionState.DENIED_DO_NOT_ASK if the permission cannot be requested.
Starts to request a specific subset of permissions. Ensure startMonitoring was called to get notified of the permission change. Sets the state to AndroidPermissionState.DENIED_DO_NOT_ASK if the permission cannot be requested. Useful when permissions must be requested in separate phases — e.g. Android requires the background location permission to be requested separately from, and after, foreground location on API 30+.
Parameters
permissionsToRequest
the subset of permissions to request.