IosSimulator class

Inheritance

Constructors

IosSimulator({String? model, String? name, required String osVersion, required OperatingSystem os, String? status, String? uuid})

Properties

hashCode int
The hash code for this object.
no setterinherited
model String?
Example: "iPad Air 2"
final
name String?
The humanized name of the device. Implementers of VirtualDevice should generate the name in a way that increments prior creations of the model and osVersion.
final
os OperatingSystem
final
osVersion String
Example: "14.2"
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status String?
final
uuid String?
A unique identifier used to communicate with the platform. This is the udid (simctl CLI) or identifier (Xcode GUI).
getter/setter pairoverride-getter

Methods

create() Future<void>
Creates a new version of the device. uuid is usually assigned by the platform within this method.
override
createOrStart({bool showAfterStart = true}) Future<void>
Start an existing simulator or create a new one
override
delete() Future<void>
Permanently delete the device. For removing data only, see wipe.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start() Future<void>
Boots the device
override
stop() Future<void>
Turns off the device
override
toString() String
A string representation of this object.
inherited
wipe() Future<void>
Remove all data from the device. To permanently remove the device, see delete.
override

Operators

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

Static Methods

availableDevices() Future<List<IosSimulator>>
Created and available simulators
availableDeviceTypes() Future<Map<String, String>>
Segment available devices by humanizedDeviceName: deviceTypeId. See SimctlCli#availableDeviceTypes
availableRuntimes() Future<Map<String, Map<String, String>>>
Segment available OS versions by os: { verionNumber: runtimeId }. See SimctlCli#availableRuntimes
stopAll() Future<void>
wipeAll() Future<void>
Wipe data from all simulators