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()
DeviceReference.fromJson(Map _json)

Properties

deviceId ↔ String
The ID of the device.
read / write
deviceIdentifier DeviceIdentifier
The hardware IDs of the device.
read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

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