Service Discovery API

Class DeviceDescriptor

Object
   |
   +--DeviceDescriptor

class DeviceDescriptor


Metadata about a device

A device is most commonly a computer, but can also be cell phones, media centre consoles and the likes. Objects of this class give you access to meta information about the device, such as a name and description and the URL the device is exposed on.

Devices are exposed in a DeviceList object through the opera.nearbyDevices property.

Each device can run zero or more services, exposed in a ServiceList object in the services property.


Defined in service-discovery.js


Field Summary
 String description
          Human-readable description of this device.
 String id
          Unique identifier of this device.
 String name
          Human-readable name of this device.
 int OFFLINE
          Constant for whether a device is offline.
 int ONLINE
          Constant for whether a device is online.
 ServiceList services
          Services running on this device.
 int status
          The availability status of this device.
 String uniteDeviceName
          Opera Unite device name for this device.
 String uniteUser
          Opera Unite username of the owner of this device.
 String url
          URL this device is exposed on.
 
Constructor Summary
DeviceDescriptor()
            This class has no public constructor.
 

Field Detail

description

String description

id

String id

name

String name

OFFLINE

int OFFLINE

ONLINE

int ONLINE

services

ServiceList services

status

int status

uniteDeviceName

String uniteDeviceName

uniteUser

String uniteUser

url

String url

Constructor Detail

DeviceDescriptor

DeviceDescriptor()

Service Discovery API

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