Dart Documentationchrome.audioOutputDeviceInfo

OutputDeviceInfo class

class OutputDeviceInfo extends ChromeObject {
 OutputDeviceInfo({String id, String name, bool isActive, bool isMuted, num volume}) {
   if (id != null) this.id = id;
   if (name != null) this.name = name;
   if (isActive != null) this.isActive = isActive;
   if (isMuted != null) this.isMuted = isMuted;
   if (volume != null) this.volume = volume;
 }
 OutputDeviceInfo.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

 String get id => jsProxy['id'];
 set id(String value) => jsProxy['id'] = value;

 String get name => jsProxy['name'];
 set name(String value) => jsProxy['name'] = value;

 bool get isActive => jsProxy['isActive'];
 set isActive(bool value) => jsProxy['isActive'] = value;

 bool get isMuted => jsProxy['isMuted'];
 set isMuted(bool value) => jsProxy['isMuted'] = value;

 num get volume => jsProxy['volume'];
 set volume(num value) => jsProxy['volume'] = jsify(value);
}

Extends

ChromeObject > OutputDeviceInfo

Constructors

new OutputDeviceInfo({String id, String name, bool isActive, bool isMuted, num volume}) #

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

docs inherited from ChromeObject
OutputDeviceInfo({String id, String name, bool isActive, bool isMuted, num volume}) {
 if (id != null) this.id = id;
 if (name != null) this.name = name;
 if (isActive != null) this.isActive = isActive;
 if (isMuted != null) this.isMuted = isMuted;
 if (volume != null) this.volume = volume;
}

new OutputDeviceInfo.fromProxy(JsObject jsProxy) #

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

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

Properties

String id #

String get id => jsProxy['id'];
set id(String value) => jsProxy['id'] = value;

bool isActive #

bool get isActive => jsProxy['isActive'];
set isActive(bool value) => jsProxy['isActive'] = value;

bool isMuted #

bool get isMuted => jsProxy['isMuted'];
set isMuted(bool value) => jsProxy['isMuted'] = value;

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

String name #

String get name => jsProxy['name'];
set name(String value) => jsProxy['name'] = value;

num volume #

num get volume => jsProxy['volume'];
set volume(num value) => jsProxy['volume'] = 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();