DeviceListΒΆ

Methods:

class com::leapmotion::leap::DeviceList

The DeviceList class represents a list of Device objects.

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

Since
1.0

Public Functions

DeviceList append(DeviceList other)

Appends the members of the specified DeviceList to this DeviceList.

Since
1.0
Parameters

int count()

Returns the number of devices in this list.

Return
The number of devices in this list.
Since
1.0

DeviceList()

Constructs an empty list of devices.

Since
1.0

Device get(int index)

Access a list member by its position in the list.

Return
The Device object at the specified index.
Since
1.0
Parameters
  • index -

    The zero-based list position index.

boolean isEmpty()

Reports whether the list is empty.

if (!controller.devices().isEmpty()) {
    Device leapDevice = controller.devices().get(0);
}

Return
True, if the list has no members.
Since
1.0

class DeviceListIterator