WebAPI/WebBluetooth: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 19: Line 19:
===== Adapter =====
===== Adapter =====


interface nsIDOMBluetoothAdapter : nsIDOMEventTarget
  interface nsIDOMBluetoothAdapter : nsIDOMEventTarget
{
  {
  attribute boolean powered;
    attribute boolean powered;
  attribute boolean discoverable;
    attribute boolean discoverable;
  readonly attribute DOMString address;
    readonly attribute DOMString address;
readonly attribute unsigned long class;
    readonly attribute unsigned long class;
attribute DOMString name;
    attribute DOMString name;
attribute boolean pairable;
    attribute boolean pairable;
attribute unsigned long pairabletimeout;
    attribute unsigned long pairabletimeout;
attribute unsigned long discoverabletimeout;
    attribute unsigned long discoverabletimeout;
readonly attribute boolean discovering;
    readonly attribute boolean discovering;
 
   
void startDiscovery();
    void startDiscovery();
void stopDiscovery();
    void stopDiscovery();
     
    attribute nsIDOMEventListener ondevicefound;
    attribute nsIDOMEventListener onpropertychanged;
    attribute nsIDOMEventListener ondevicedisappeared;
    attribute nsIDOMEventListener ondevicecreated;
    attribute nsIDOMEventListener ondeviceremoved; 
  };
    
    
attribute nsIDOMEventListener ondevicefound;
  attribute nsIDOMEventListener onpropertychanged;
attribute nsIDOMEventListener ondevicedisappeared;
attribute nsIDOMEventListener ondevicecreated;
attribute nsIDOMEventListener ondeviceremoved; 
};


===== Device =====
===== Device =====
44

edits