Class DeviceSourceManager
Hierarchy
- DeviceSourceManager
Implements
- IDisposable
- IObservableManager
Index
Constructors
Properties
Methods
Constructors
constructor
Default constructor
Parameters
engine: Engine
Used to get canvas (if applicable)
Returns DeviceSourceManager
Properties
Readonly on Device Connected ObservableSearch playground for onDeviceConnectedObservable
Observable to be triggered when after a device is connected, any new observers added will be triggered against already connected devices
Readonly on Device Disconnected ObservableSearch playground for onDeviceDisconnectedObservable
Observable to be triggered when after a device is disconnected
Methods
disposeSearch playground for dispose
Dispose of DeviceSourceManager
Returns void
get Device SourceSearch playground for getDeviceSource
Gets a DeviceSource, given a type and slot
Type Parameters
T extends DeviceType
Parameters
deviceType: T
Type of Device
Optional deviceSlot: number
Slot or ID of device
Returns Nullable<DeviceSource<T>>
DeviceSource
get Device SourcesSearch playground for getDeviceSources
Gets an array of DeviceSource objects for a given device type
Type Parameters
T extends DeviceType
Parameters
deviceType: T
Type of Device
Returns readonly DeviceSource<T>[]
All available DeviceSources of a given type
Class to keep track of devices