Dart Documentationchrome.bluetoothGetDevicesOptions

GetDevicesOptions class

Options for the getDevices function. If profile is not provided, all devices known to the system are returned.

class GetDevicesOptions extends ChromeObject {
 GetDevicesOptions({Profile profile, DeviceCallback deviceCallback}) {
   if (profile != null) this.profile = profile;
   if (deviceCallback != null) this.deviceCallback = deviceCallback;
 }
 GetDevicesOptions.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

 Profile get profile => _createProfile(jsProxy['profile']);
 set profile(Profile value) => jsProxy['profile'] = jsify(value);

 DeviceCallback get deviceCallback => _createDeviceCallback(jsProxy['deviceCallback']);
 set deviceCallback(DeviceCallback value) => jsProxy['deviceCallback'] = jsify(value);
}

Extends

ChromeObject > GetDevicesOptions

Constructors

new GetDevicesOptions({Profile profile, DeviceCallback deviceCallback}) #

Create a new instance of a ChromeObject, which creates and delegates to a JsObject proxy.

docs inherited from ChromeObject
GetDevicesOptions({Profile profile, DeviceCallback deviceCallback}) {
 if (profile != null) this.profile = profile;
 if (deviceCallback != null) this.deviceCallback = deviceCallback;
}

new GetDevicesOptions.fromProxy(JsObject jsProxy) #

Create a new instance of a ChromeObject, which delegates to the given JsObject proxy.

docs inherited from ChromeObject
GetDevicesOptions.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

Properties

DeviceCallback deviceCallback #

DeviceCallback get deviceCallback => _createDeviceCallback(jsProxy['deviceCallback']);
set deviceCallback(DeviceCallback value) => jsProxy['deviceCallback'] = jsify(value);

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

Profile profile #

Profile get profile => _createProfile(jsProxy['profile']);
set profile(Profile value) => jsProxy['profile'] = jsify(value);

Methods

JsObject toJs() #

inherited from ChromeObject
JsObject toJs() => jsProxy;

String toString() #

inherited from ChromeObject

Returns a string representation of this object.

docs inherited from Object
String toString() => jsProxy.toString();