From 199d945b9e637099d781295358ad380ea2cf4eab Mon Sep 17 00:00:00 2001 From: Danny Tuppeny Date: Wed, 6 Jun 2018 19:06:17 +0100 Subject: [PATCH] Add emulators to docs (#18231) --- packages/flutter_tools/doc/daemon.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/flutter_tools/doc/daemon.md b/packages/flutter_tools/doc/daemon.md index 5b2d6e8e52e..4cd8ea4b735 100644 --- a/packages/flutter_tools/doc/daemon.md +++ b/packages/flutter_tools/doc/daemon.md @@ -180,6 +180,18 @@ This is sent when a device is connected (and polling has been enabled via `enabl This is sent when a device is disconnected (and polling has been enabled via `enable()`). The `params` field will be a map with the fields `id`, `name`, `platform`, and `emulator`. +### emulator domain + +#### emulator.getEmulators + +Return a list of all available emulators. The `params` field will be a List; each item is a map with the fields `id` and `name`. + +#### emulator.launch + +The `launch()` command takes allows launching an emulator/simulator by its `id`. + +- `emulatorId`: the id of an emulator as returned by `getEmulators`. + ## Flutter Run --machine When running `flutter run --machine` the following subset of the daemon is available: