Unverified Commit 16c363ac authored by Todd Volkert's avatar Todd Volkert Committed by GitHub

Clarify docs in FlutterDriver.requestData() (#12909)

parent 8f796436
......@@ -418,7 +418,10 @@ class FlutterDriver {
/// Sends a string and returns a string.
///
/// The application can respond to this by providing a handler to [enableFlutterDriverExtension].
/// This enables generic communication between the driver and the application.
/// It's expected that the application has registered a [DataHandler]
/// callback in [enableFlutterDriverExtension] that can successfully handle
/// these requests.
Future<String> requestData(String message, { Duration timeout }) async {
return RequestDataResult.fromJson(await _sendCommand(new RequestData(message, timeout: timeout))).message;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment