awaitResult

suspend fun awaitResult(feature: ActivityResultFeature, intent: Intent, conflictPolicy: ActivityResultRegistry.ConflictPolicy = ConflictPolicy.WAIT): ActivityResultOutcome

Start an activity for result and suspend until result arrives.

Return

Outcome with result data or Ignored status

Parameters

feature

The feature requesting the result

intent

The intent to start

conflictPolicy

How to handle concurrent requests

Throws

if Activity is not attached