Ortho Remote - v0.4.0 / DeviceDiscoveryManager
A device manager is the main entry for connecting to Ortho Remote devices. It offers device discovery and
-
EventEmitter
↳ DeviceDiscoveryManager
- addListener
- listenerCount
- listeners
- off
- on
- once
- prependListener
- prependOnceListener
- removeListener
- startDiscoverySession
- stopDiscovery
- stopDiscoverySession
• get discoveredDevices(): OrthoRemote[]
All discovered devices by the device manager
Returns: OrthoRemote[]
• get discoveryState(): DeviceDiscoveryState
Active discovery state
Returns: DeviceDiscoveryState
• Static
get defaultManager(): DeviceDiscoveryManager
Default device discovery manager to manage discovery of one or more Ortho Remote devices
Returns: DeviceDiscoveryManager
▸ addListener(eventName
: "device"
, listener
: OnDeviceDiscoveredCallback): DeviceDiscoveryManager
Name | Type |
---|---|
eventName |
"device" |
listener |
OnDeviceDiscoveredCallback |
Returns: DeviceDiscoveryManager
Inherited from: EventEmitter.addListener
▸ addListener(eventName
: "error"
, listener
: OnErrorCallback): DeviceDiscoveryManager
Name | Type |
---|---|
eventName |
"error" |
listener |
OnErrorCallback |
Returns: DeviceDiscoveryManager
Inherited from: EventEmitter.addListener
▸ addListener(eventName
: "started"
| "stopped"
, listener
: OnEventCallback): DeviceDiscoveryManager
Name | Type |
---|---|
eventName |
"started" | "stopped" |
listener |
OnEventCallback |
Returns: DeviceDiscoveryManager
Inherited from: EventEmitter.addListener
▸ listenerCount(type
: "error"
| "device"
| "started"
| "stopped"
): number
Name | Type |
---|---|
type |
"error" | "device" | "started" | "stopped" |
Returns: number
Inherited from: EventEmitter.listenerCount
▸ listeners(eventName
: "device"
): OnDeviceDiscoveredCallback[]
Name | Type |
---|---|
eventName |
"device" |
Returns: OnDeviceDiscoveredCallback[]
Inherited from: EventEmitter.listeners
▸ listeners(eventName
: "error"
): OnErrorCallback[]
Name | Type |
---|---|
eventName |
"error" |
Returns: OnErrorCallback[]
Inherited from: EventEmitter.listeners
▸ listeners(eventName
: "started"
| "stopped"
): OnEventCallback[]
Name | Type |
---|---|
eventName |
"started" | "stopped" |
Returns: OnEventCallback[]
Inherited from: EventEmitter.listeners
▸ off(eventName
: "device"
, listener
: OnDeviceDiscoveredCallback): DeviceDiscoveryManager
Name | Type |
---|---|
eventName |
"device" |
listener |
OnDeviceDiscoveredCallback |
Returns: DeviceDiscoveryManager
Inherited from: EventEmitter.off
▸ off(eventName
: "error"
, listener
: OnErrorCallback): DeviceDiscoveryManager
Name | Type |
---|---|
eventName |
"error" |
listener |
OnErrorCallback |
Returns: DeviceDiscoveryManager
Inherited from: EventEmitter.off
▸ off(eventName
: "started"
| "stopped"
, listener
: OnEventCallback): DeviceDiscoveryManager
Name | Type |
---|---|
eventName |
"started" | "stopped" |
listener |
OnEventCallback |
Returns: DeviceDiscoveryManager
Inherited from: EventEmitter.off
▸ on(eventName
: "device"
, listener
: OnDeviceDiscoveredCallback): DeviceDiscoveryManager
Name | Type |
---|---|
eventName |
"device" |
listener |
OnDeviceDiscoveredCallback |
Returns: DeviceDiscoveryManager
Inherited from: EventEmitter.on
▸ on(eventName
: "error"
, listener
: OnErrorCallback): DeviceDiscoveryManager
Name | Type |
---|---|
eventName |
"error" |
listener |
OnErrorCallback |
Returns: DeviceDiscoveryManager
Inherited from: EventEmitter.on
▸ on(eventName
: "started"
| "stopped"
, listener
: OnEventCallback): DeviceDiscoveryManager
Name | Type |
---|---|
eventName |
"started" | "stopped" |
listener |
OnEventCallback |
Returns: DeviceDiscoveryManager
Inherited from: EventEmitter.on
▸ once(eventName
: "device"
, listener
: OnDeviceDiscoveredCallback): DeviceDiscoveryManager
Name | Type |
---|---|
eventName |
"device" |
listener |
OnDeviceDiscoveredCallback |
Returns: DeviceDiscoveryManager
Inherited from: EventEmitter.once
▸ once(eventName
: "error"
, listener
: OnErrorCallback): DeviceDiscoveryManager
Name | Type |
---|---|
eventName |
"error" |
listener |
OnErrorCallback |
Returns: DeviceDiscoveryManager
Inherited from: EventEmitter.once
▸ once(eventName
: "started"
| "stopped"
, listener
: OnEventCallback): DeviceDiscoveryManager
Name | Type |
---|---|
eventName |
"started" | "stopped" |
listener |
OnEventCallback |
Returns: DeviceDiscoveryManager
Inherited from: EventEmitter.once
▸ prependListener(eventName
: "device"
, listener
: OnDeviceDiscoveredCallback): DeviceDiscoveryManager
Name | Type |
---|---|
eventName |
"device" |
listener |
OnDeviceDiscoveredCallback |
Returns: DeviceDiscoveryManager
Inherited from: EventEmitter.prependListener
▸ prependListener(eventName
: "error"
, listener
: OnErrorCallback): DeviceDiscoveryManager
Name | Type |
---|---|
eventName |
"error" |
listener |
OnErrorCallback |
Returns: DeviceDiscoveryManager
Inherited from: EventEmitter.prependListener
▸ prependListener(eventName
: "started"
| "stopped"
, listener
: OnEventCallback): DeviceDiscoveryManager
Name | Type |
---|---|
eventName |
"started" | "stopped" |
listener |
OnEventCallback |
Returns: DeviceDiscoveryManager
Inherited from: EventEmitter.prependListener
▸ prependOnceListener(eventName
: "device"
, listener
: OnDeviceDiscoveredCallback): DeviceDiscoveryManager
Name | Type |
---|---|
eventName |
"device" |
listener |
OnDeviceDiscoveredCallback |
Returns: DeviceDiscoveryManager
Inherited from: EventEmitter.prependOnceListener
▸ prependOnceListener(eventName
: "error"
, listener
: OnErrorCallback): DeviceDiscoveryManager
Name | Type |
---|---|
eventName |
"error" |
listener |
OnErrorCallback |
Returns: DeviceDiscoveryManager
Inherited from: EventEmitter.prependOnceListener
▸ prependOnceListener(eventName
: "started"
| "stopped"
, listener
: OnEventCallback): DeviceDiscoveryManager
Name | Type |
---|---|
eventName |
"started" | "stopped" |
listener |
OnEventCallback |
Returns: DeviceDiscoveryManager
Inherited from: EventEmitter.prependOnceListener
▸ removeListener(eventName
: "device"
, listener
: OnDeviceDiscoveredCallback): DeviceDiscoveryManager
Name | Type |
---|---|
eventName |
"device" |
listener |
OnDeviceDiscoveredCallback |
Returns: DeviceDiscoveryManager
Inherited from: EventEmitter.removeListener
▸ removeListener(eventName
: "error"
, listener
: OnErrorCallback): DeviceDiscoveryManager
Name | Type |
---|---|
eventName |
"error" |
listener |
OnErrorCallback |
Returns: DeviceDiscoveryManager
Inherited from: EventEmitter.removeListener
▸ removeListener(eventName
: "started"
| "stopped"
, listener
: OnEventCallback): DeviceDiscoveryManager
Name | Type |
---|---|
eventName |
"started" | "stopped" |
listener |
OnEventCallback |
Returns: DeviceDiscoveryManager
Inherited from: EventEmitter.removeListener
▸ startDiscoverySession(options?
: DeviceDiscoverySessionOptions): DeviceDiscoverySession
Start a new discovery session to discover Ortho Remote devices
Name | Type | Description |
---|---|---|
options? |
DeviceDiscoverySessionOptions | discovery session options |
Returns: DeviceDiscoverySession
Session object initialized based on options and to observe discovery events on
▸ stopDiscovery(): void
Stops all discovery sessions in progress
Returns: void
▸ stopDiscoverySession(session
: DeviceDiscoverySession): void
Stops and removes a session from the list of managed sessions. When all session have been removed discovery will cease.
Use DeviceDiscoverySession.stop
Name | Type | Description |
---|---|---|
session |
DeviceDiscoverySession | session to remove |
Returns: void