Class: DeviceList

DeviceList()

List of devices

Constructor

new DeviceList()

Source:

Members

back

Get the last device
Source:

front

Get the first device
Source:

size

Determines number of devices in a list.
Source:

Methods

contains(device) → {Boolean}

Checks if a specific device is contained inside a device list.
Parameters:
Name Type Description
device Device the camera to be checked
Source:
Returns:
true if the camera is contained in the list, otherwise false
Type
Boolean

destroy()

Release resources associated with the object
Source:

getDevice(index) → {Device|undefined}

Creates a device by index. The device object represents a physical camera and provides the means to manipulate it.
Parameters:
Name Type Description
index Integer the zero based index of the device in the device list
Source:
Returns:
Type
Device | undefined