Avds class
The Android virtual devices on this host: which exist, which one runs where, and booting one from glint's own process.
Properties
- adbPath → String
-
final
- emulatorPath → String?
-
The SDK's
emulatorbinary, found next to adb or under ANDROID_HOME, ANDROID_SDK_ROOT or the default SDK folder.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
avdOf(
String serial) → Future< String?> -
The AVD the emulator behind
serialruns, from its console. -
awaitOnline(
String serial, String avd, {void onProgress(int elapsedSec, String phase)?, Duration limit = const Duration(seconds: 60), Duration progressEvery = const Duration(seconds: 15)}) → Future< void> -
Waits up to
limitfor the already running emulator behindserialto leaveofflinein adb; it never restarts an emulator glint did not start. -
boot(
String avd, {String? webcam, void onProgress(int elapsedSec, String phase)?, Duration timeout = const Duration(minutes: 5), Duration progressEvery = const Duration(seconds: 15), Duration offlineLimit = const Duration(seconds: 60), List< String> ? notes}) → Future<String> -
Boots
avddetached from glint on a free console port, with gRPC asked for (the emulator does not always start it alone), and waits until Android has booted; returns its serial. Awebcamid becomes its front camera; one Mac camera cannot back both, so the back keeps the AVD's own. When adb shows the emulator offline forofflineLimit, glint stops it (it started it) and boots once more with-no-snapshot-load, recording that innotes. -
list(
) → Future< List< String> > -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
runningSerial(
String avd) → Future< String?> -
The serial of the emulator already running
avd. -
runningSerials(
) → Future< List< String> > -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited