Permissions Result Request
class PermissionsResultRequest : ActivityResultContractRequest<List<String>, Map<String, Boolean>, Map<String, PermissionsResultRequest.PermissionResult>>
Class returned from ActivityNavigator.registerForPermissionsResult.
This class has two purposes:
It exposes a
resultsFlowthat can be used to observe incoming permission resultsIt can be passed to ActivityNavigator.requestPermissions to trigger the execution of a permissions request
This provides extra functionality over ActivityResultRequest by also checking android.app.Activity.shouldShowRequestPermissionRationale for each permission that was denied. It returns a PermissionResult instead of just a simple boolean to also provide information about the whether a permission rationale should be shown.
Functions
Link copied to clipboard
Deliver a new result to results. This method should be called by ActivityNavigatorEffect.