createActionFlowActivityResultContract

Create a new ActivityResultContract for launching a flow an Action.

When launching the activity using the contract, UnauthenticatedException will be thrown if not authenticated, and ActionNotLaunchableException will be thrown if the action is not launchable.

The disclaimer might be shown first if not accepted yet, see authenticate&AuthenticateResult.Success.

See Get result from an activity on how to use an ActivityResultContract.