LiveProcesses class
Runs the programs a recording needs: xcrun, adb, scrcpy and
ffmpeg.
Tests stand in for it, so recording can be tested without a device.
Constructors
- LiveProcesses()
-
Creates a LiveProcesses that runs real programs.
const
Properties
-
environment
→ Map<
String, String> -
The environment programs are found and run in.
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
-
delay(
Duration duration) → Future< void> -
Waits for
duration. -
find(
String name, {List< String> extraDirectories = const []}) → String? -
The path of the program
name, or null when it isn't installed. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
String executable, List< String> arguments) → Future<ProcessResult> -
Runs
executableto the end and returns what it printed. -
start(
String executable, List< String> arguments, {Map<String, String> ? environment}) → Future<LiveProcess> -
Starts
executablein its own process group, so a Ctrl+C typed in the terminal doesn't reach it. Metro stops it with LiveProcess.interrupt once the playbook has finished. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited