Constructor
(abstract) new DeviceManager(type)
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
type |
string | The type of device managed. |
Extends
- EventEmitter
Methods
(abstract) allDevices() → {Array.<physical.Device>}
- Description:
All devices being managed.
- Source:
Returns:
All devices being managed.
- Type
- Array.<physical.Device>
info() → {Array.<physical.DeviceInfo>}
- Description:
Returns information about known devices. Known devices are either connected devices or devices that were once connected and then got disconnected.
- Source:
Returns:
Device info list.
- Type
- Array.<physical.DeviceInfo>
logInfo(loggeropt)
- Description:
Logs information about known devices.
- Source:
- See:
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
logger |
object |
<optional> |
console
|
A Console-like object for logging, with a log function. |
startMonitoring()
- Description:
Starts monitoring for devices. No-op by default.
- Source:
Fires:
stopMonitoring()
- Description:
Stops monitoring for devices. No-op by default.
- Source:
supportsMonitoring() → {boolean}
- Description:
If this device manager supports monitoring,
trueby default.
- Source:
Returns:
If this device manager supports monitoring.
- Type
- boolean
Events
added
- Description:
Device added event. A monitoring Device Manager should fire this event when a device is added (connected).
- Source:
removed
- Description:
Device removed event. A monitoring Device Manager should fire this event when a device is removed (disconnected).
- Source: