constructLocationPermissionRequest

fun FragmentActivity.constructLocationPermissionRequest(vararg permissions: LocationPermission, onShowRationale: ShowRationaleFun? = null, onPermissionDenied: Fun? = null, onNeverAskAgain: Fun? = null, requiresPermission: Fun): PermissionsRequester
fun Fragment.constructLocationPermissionRequest(vararg permissions: LocationPermission, onShowRationale: ShowRationaleFun? = null, onPermissionDenied: Fun? = null, onNeverAskAgain: Fun? = null, requiresPermission: Fun): PermissionsRequester

Constructs a request for location permissions that require a grant from the user. Be sure to invoke the method when an activity is created to capture the valid callbacks.

See also

Parameters

onShowRationale

the method explains why the permissions are required.

onPermissionDenied

the method invoked if the user doesn't grant the permissions.

requiresPermission

the action requires permissions.