InstalledAppLauncher class

Opens an already-installed debug build and finds its Dart VM service, with no rebuild and no flutter_tools.

Constructors

InstalledAppLauncher({String adbPath = 'adb'})
const

Properties

adbPath → String
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

bringToFront(String udid, String appId) → Future<void>
Brings the running appId on simulator udid to the front; simctl reactivates the same process instead of starting another.
isSimulator(String udid) → Future<bool>
Whether udid is a simulator on this Mac, as opposed to a physical device.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open({required DevicePlatform platform, required String deviceId, required String appId, Duration timeout = const Duration(seconds: 30), Duration progressEvery = const Duration(seconds: 15), void onProgress(int elapsedSec, String? phase)?}) → Future<Uri>
Reopens appId fresh on deviceId and returns the VM service URI it logged; on Android its port is the device's, for flutter attach to forward.
runningPid({required DevicePlatform platform, required String deviceId, required String appId}) → Future<int?>
The pid of appId on deviceId when it runs, null when closed; throws when it is not installed.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited