reply method

Future<void> reply(
  1. AppControl reply,
  2. AppControlReplyResult result
)

Replies to a launch request.

reply and result are sent back to the caller application and set as arguments of AppControlReplyCallback.

Implementation

Future<void> reply(AppControl reply, AppControlReplyResult result) async {
  await reply._setAppControlData();

  final Map<String, dynamic> args = <String, dynamic>{
    'id': _id,
    'replyId': reply._id,
    'result': result.name,
  };
  await AppControl._methodChannel.invokeMethod<void>('reply', args);
}