PolarDeviceManager class

A Polar DeviceManager.

Inheritance

Constructors

PolarDeviceManager.new(String type, [PolarDevice? configuration])

Properties

batteryEvents Stream<int>
The stream of battery level events.
no setteroverride
batteryLevel int?
The runtime battery level of this hardware device. Returns null if unknown.
no setteroverride
btleAddress String
The Bluetooth address of this device in the form 00:04:79:00:0F:4D. Returns empty string if unknown.
getter/setter pairoverride
btleName String
The Bluetooth name of this device. Returns empty string if unknown.
getter/setter pairoverride
configuration PolarDevice?
The configuration for this device.
getter/setter pairinherited
displayName String?
no setteroverride
executors Set<TaskControlExecutor>
The set of task control executors that use this device manager.
finalinherited
features List<PolarDataType>
List of PolarDataTypes that are available in Polar devices for online streaming or offline recording.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String
Get a unique id for this device.
no setteroverride
isConnected bool
Is this device manager connected to the real device?
no setterinherited
isConnecting bool
Is this device manager connecting or connected to the real device?
no setterinherited
isInitialized bool
Has this device manager been initialized?
no setterinherited
polar → Polar
The Polar device handler.
no setter
polarFeaturesAvailable bool
Are the features available (i.e., received from the device)?
no setter
restartOnReconnect bool
Is data sampling resumed when this device is (re)connected?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status ↔ DeviceStatus
The runtime status of this device.
getter/setter pairinherited
statusEvents Stream<DeviceStatus>
The stream of status events for this device.
no setterinherited
supportedDataTypes Set<String>
The set of data types defining which data can be collected on this device.
no setterinherited
type String
The type of this device
getter/setter pairinherited
typeName String
The name of the type without the namespace.
no setterinherited

Methods

canConnect() Future<bool>
Determines whether a connection can be made at this point in time to the device.
override
connect() Future<DeviceStatus>
Ask this DeviceManager to start connecting to the device.
inherited
disconnect() Future<bool>
Ask this DeviceManager to disconnect from the device.
inherited
hasPermissions() Future<bool>
Does this device manager have the permissions to run?
inherited
initialize(PolarDevice configuration) → void
Initialize the device manager by specifying its configuration.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onConnect() Future<DeviceStatus>
Callback on connect. Returns the DeviceStatus of the device.
override
onDisconnect() Future<bool>
Callback on disconnect.
override
onHasPermissions() Future<bool>
Callback on hasPermissions.
inherited
onInitialize(PolarDevice configuration) → void
Callback on initialize.
inherited
onRequestPermissions() Future<void>
Callback on requestPermissions.
inherited
requestPermissions() Future<void>
Request all permissions for this device manager.
inherited
restart() → void
Restart sampling of the measures using this device.
inherited
startHeartbeatMonitoring(SmartphoneDeploymentController controller) → void
Start heartbeat monitoring for this device for the deployment controlled by controller.
inherited
stop() → void
Stop sampling the measures using this device.
inherited
stopHeartbeatMonitoring() → void
Stop heartbeat monitoring for this device.
inherited
toString() String
A string representation of this object.
inherited

Operators

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