DeviceListΒΆ

DeviceList Class Reference

The DeviceList class represents a list of Device objects. More...

Inherits List< Device >.

Public Member Functions

 DeviceList ()
 Constructs an empty list of devices. More...
 

Properties

Device ActiveDevice [get]
 The device that is currently streaming tracking data. More...
 
bool IsEmpty [get]
 Reports whether the list is empty. More...
 

Detailed Description

The DeviceList class represents a list of Device objects.

Get a DeviceList object by calling Controller::devices().

Since
1.0

Constructor & Destructor Documentation

Constructs an empty list of devices.

Since
1.0

Property Documentation

Device ActiveDevice
get

The device that is currently streaming tracking data.

If no streaming devices are found, returns a default object.

Since
3.0
bool IsEmpty
get

Reports whether the list is empty.

if (!controller.Devices.IsEmpty) {
Device leapDevice = controller.Devices [0];
}
Returns
True, if the list has no members.
Since
1.0