DeviceReference class
A DeviceReference
is an API abstraction that lets you supply a device
argument to a method using one of the following identifier types: * A
numeric API resource ID.
- Real-world hardware IDs, such as IMEI number, belonging to the
manufactured device. Methods that operate on devices take a
DeviceReference
as a parameter type because it's more flexible for the caller. To learn more about device identifiers, read Identifiers.
Constructors
- DeviceReference({String? deviceId, DeviceIdentifier? deviceIdentifier})
- DeviceReference.fromJson(Map json_)
Properties
- deviceId ↔ String?
-
The ID of the device.
getter/setter pair
- deviceIdentifier ↔ DeviceIdentifier?
-
The hardware IDs of the device.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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