Service Discovery API

Class DeviceList

Object
   |
   +--DeviceList

class DeviceList


A list of devices.

DeviceList is exposed as the opera.nearbyDevices property.

You can access elements in the list as you would access a dictionary, either through the index or the identifier of a device.

device = opera.nearbyDevices[3];
service = opera.nearbyDevices[deviceId];
 

Defined in service-discovery.js


Field Summary
 int size
          Number of devices in this list.
 
Constructor Summary
DeviceList()
            This class has no public constructor.
 
Method Summary
 DeviceDescriptor getDeviceByID( <String> id )
           Get the device with the given id from the list.
 DeviceDescriptor getDeviceByIndex( <int> index )
           Get the device at the given position in the list

Field Detail

size

int size

Constructor Detail

DeviceList

DeviceList()

Method Detail

getDeviceByID

DeviceDescriptor getDeviceByID( <String> id )

getDeviceByIndex

DeviceDescriptor getDeviceByIndex( <int> index )

Service Discovery API

Documentation generated by JSDoc on Fri Aug 14 11:46:31 2009