Expose emulator creation to daemon API (#18905)
* Fix typo * Add emulator.create to Daemon API * Swap order of daemon changelog entries
This commit is contained in:
@@ -188,10 +188,22 @@ Return a list of all available emulators. The `params` field will be a List; eac
|
||||
|
||||
#### emulator.launch
|
||||
|
||||
The `launch()` command takes allows launching an emulator/simulator by its `id`.
|
||||
The `launch()` command allows launching an emulator/simulator by its `id`.
|
||||
|
||||
- `emulatorId`: the id of an emulator as returned by `getEmulators`.
|
||||
|
||||
#### emulator.create
|
||||
|
||||
The `create()` command creates a new Android emulator with an optional `name`.
|
||||
|
||||
- `name`: an optional name for this emulator
|
||||
|
||||
The returned `params` will contain:
|
||||
|
||||
- `success` - whether the emulator was successfully created
|
||||
- `emulatorName` - the name of the emulator created; this will have been auto-generated if you did not supply one
|
||||
- `error` - when `success`=`false`, a message explaining why the creation of the emulator failed
|
||||
|
||||
## Flutter Run --machine
|
||||
|
||||
When running `flutter run --machine` the following subset of the daemon is available:
|
||||
@@ -229,4 +241,5 @@ See the [source](https://github.com/flutter/flutter/blob/master/packages/flutter
|
||||
|
||||
## Changelog
|
||||
|
||||
- 0.4.0: Added `emulator.create` command
|
||||
- 0.3.0: Added `daemon.connected` event at startup
|
||||
|
||||
Reference in New Issue
Block a user