DeviceFilter class

Represents a device filter used to select a set of devices to be included in a test run. This data structure is passed in as the deviceSelectionConfiguration parameter to ScheduleRun. For an example of the JSON request syntax, see ScheduleRun.

It is also passed in as the filters parameter to ListDevices. For an example of the JSON request syntax, see ListDevices.

Constructors

DeviceFilter({DeviceFilterAttribute? attribute, RuleOperator? operator, List<String>? values})
DeviceFilter.fromJson(Map<String, dynamic> json)
factory

Properties

attribute DeviceFilterAttribute?
The aspect of a device such as platform or model used as the selection criteria in a device filter.
final
hashCode int
The hash code for this object.
no setterinherited
operator RuleOperator?
Specifies how Device Farm compares the filter's attribute to the value. See the attribute descriptions.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values List<String>?
An array of one or more filter values used in a device filter.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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