registerForPermissionsResult

Register for receiving permission results.

The returned com.freeletics.khonshu.navigation.PermissionsResultRequest can be used to collect incoming permission results (via com.freeletics.khonshu.navigation.PermissionsResultRequest.results) and to launch the actual permission result call via requestPermissions.

Compared to using registerForActivityResult with androidx.activity.result.contract.ActivityResultContracts.RequestPermission this provides a PermissionResult instead of a boolean. See com.freeletics.khonshu.navigation.PermissionsResultRequest.PermissionResult` for more information.

Note: You must call this before ActivityNavigatorEffect is called with this navigator.