![]() |
Leap Motion Java API Reference
0.8.0
|
The DeviceList class represents a list of Device objects. More...
Inherits com.leapmotion.leap.Interface, and Iterable< Device >.
Public Member Functions | |
DeviceList | append (DeviceList other) |
Appends the members of the specifed DeviceList to this DeviceList. | |
int | count () |
Returns the number of devices in this list. | |
DeviceList () | |
Constructs an empty list of devices. | |
Device | get (int index) |
Access a list member by its position in the list. | |
boolean | isEmpty () |
Reports whether the list is empty. | |
The DeviceList class represents a list of Device objects.
Get a DeviceList object by calling Controller::devices().
com.leapmotion.leap.DeviceList.DeviceList | ( | ) |
Constructs an empty list of devices.
DeviceList com.leapmotion.leap.DeviceList.append | ( | DeviceList | other | ) |
Appends the members of the specifed DeviceList to this DeviceList.
other | A DeviceList object containing Device objects to append to the end of this DeviceList. |
int com.leapmotion.leap.DeviceList.count | ( | ) |
Returns the number of devices in this list.
Device com.leapmotion.leap.DeviceList.get | ( | int | index | ) |
Access a list member by its position in the list.
index | The zero-based list position index. |
boolean com.leapmotion.leap.DeviceList.isEmpty | ( | ) |
Reports whether the list is empty.