create Action Flow Activity Result Contract
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.
See Get result from an activity on how to use an ActivityResultContract
.