construct Location Permission Request
fun FragmentActivity.constructLocationPermissionRequest(vararg permissions: LocationPermission, onShowRationale: ShowRationaleFun? = null, onPermissionDenied: Fun? = null, onNeverAskAgain: Fun? = null, requiresPermission: Fun): PermissionsRequester
Content copied to clipboard
fun Fragment.constructLocationPermissionRequest(vararg permissions: LocationPermission, onShowRationale: ShowRationaleFun? = null, onPermissionDenied: Fun? = null, onNeverAskAgain: Fun? = null, requiresPermission: Fun): PermissionsRequester
Content copied to clipboard
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.