SmartphoneDeviceManager class

A device manager for this smartphone.

Inheritance

Constructors

SmartphoneDeviceManager()

Properties

batteryLevel int
The runtime battery level of this device.
read-only, override
deviceRegistration DeviceRegistration
The registration for this device.
read / write, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
id String
Get a unique id for this device.
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
status DeviceStatus
The runtime status of this device.
read / write, inherited
statusEvents Stream<DeviceStatus>
The stream of status events for this device.
read-only, inherited
supportedDataTypes Set<String>
The set of data types defining which data can be collected on this device.
read-only, inherited
type String
The type of this device
read-only, inherited

Methods

canConnect() bool
Determines whether a connection can be made at this point in time to the device.
override
connect() Future
Ask this DeviceManager to connect to the device.
override
disconnect() Future
Ask this DeviceManager to disconnect from the device.
override
initialize(String type) → void
Initialize the device data collector by specifying its type. [...]
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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