requestIntentValue method

  1. @override
Future<Object?> requestIntentValue(
  1. String executionId,
  2. String parameter
)
override

Asks the running intent to prompt the user for a parameter value (#131).

Resolves once the user answers, so it can stay outstanding for as long as the system dialog is on screen.

Implementation

@override
Future<Object?> requestIntentValue(String executionId, String parameter) {
  // Deliberately NOT swallowing MissingPluginException the way the
  // fire-and-forget calls do: a value request has a return value the handler
  // is about to use, so failing quietly would hand it a null the user never
  // chose.
  return methodChannel.invokeMethod<Object?>('requestIntentValue', {
    'executionId': executionId,
    'parameter': parameter,
  });
}