PermissionsResultRequest

Class returned from ActivityNavigator.registerForPermissionsResult.

This class has two purposes:

  • It exposes a results Flow that can be used to observe incoming permission results

  • It 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.

Types

Link copied to clipboard
sealed interface PermissionResult

The status of the requested permission.

Properties

Link copied to clipboard

Emits any result received by the ActivityResultContract.

Functions

Link copied to clipboard

Deliver a new result to results. This method should be called by ActivityNavigatorEffect.