ControlTransferInfo class
ControlTransferInfo represents that parameters to a single USB control transfer.
class ControlTransferInfo extends ChromeObject { ControlTransferInfo({Direction direction, Recipient recipient, RequestType requestType, int request, int value, int index, int length, ArrayBuffer data}) { if (direction != null) this.direction = direction; if (recipient != null) this.recipient = recipient; if (requestType != null) this.requestType = requestType; if (request != null) this.request = request; if (value != null) this.value = value; if (index != null) this.index = index; if (length != null) this.length = length; if (data != null) this.data = data; } ControlTransferInfo.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy); Direction get direction => _createDirection(jsProxy['direction']); set direction(Direction value) => jsProxy['direction'] = jsify(value); Recipient get recipient => _createRecipient(jsProxy['recipient']); set recipient(Recipient value) => jsProxy['recipient'] = jsify(value); RequestType get requestType => _createRequestType(jsProxy['requestType']); set requestType(RequestType value) => jsProxy['requestType'] = jsify(value); int get request => jsProxy['request']; set request(int value) => jsProxy['request'] = value; int get value => jsProxy['value']; set value(int value) => jsProxy['value'] = value; int get index => jsProxy['index']; set index(int value) => jsProxy['index'] = value; int get length => jsProxy['length']; set length(int value) => jsProxy['length'] = value; ArrayBuffer get data => _createArrayBuffer(jsProxy['data']); set data(ArrayBuffer value) => jsProxy['data'] = jsify(value); }
Extends
ChromeObject > ControlTransferInfo
Constructors
new ControlTransferInfo({Direction direction, Recipient recipient, RequestType requestType, int request, int value, int index, int length, ArrayBuffer data}) #
Create a new instance of a ChromeObject
, which creates and delegates to
a JsObject proxy.
docs inherited from ChromeObject
ControlTransferInfo({Direction direction, Recipient recipient, RequestType requestType, int request, int value, int index, int length, ArrayBuffer data}) { if (direction != null) this.direction = direction; if (recipient != null) this.recipient = recipient; if (requestType != null) this.requestType = requestType; if (request != null) this.request = request; if (value != null) this.value = value; if (index != null) this.index = index; if (length != null) this.length = length; if (data != null) this.data = data; }
new ControlTransferInfo.fromProxy(JsObject jsProxy) #
Create a new instance of a ChromeObject
, which delegates to the given
JsObject proxy.
docs inherited from ChromeObject
ControlTransferInfo.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
Properties
ArrayBuffer data #
ArrayBuffer get data => _createArrayBuffer(jsProxy['data']);
set data(ArrayBuffer value) => jsProxy['data'] = jsify(value);
Direction direction #
Direction get direction => _createDirection(jsProxy['direction']);
set direction(Direction value) => jsProxy['direction'] = jsify(value);
int index #
int get index => jsProxy['index'];
set index(int value) => jsProxy['index'] = value;
int length #
int get length => jsProxy['length'];
set length(int value) => jsProxy['length'] = value;
Recipient recipient #
Recipient get recipient => _createRecipient(jsProxy['recipient']);
set recipient(Recipient value) => jsProxy['recipient'] = jsify(value);
int request #
int get request => jsProxy['request'];
set request(int value) => jsProxy['request'] = value;
RequestType requestType #
RequestType get requestType => _createRequestType(jsProxy['requestType']);
set requestType(RequestType value) => jsProxy['requestType'] = jsify(value);
int value #
int get value => jsProxy['value'];
set value(int value) => jsProxy['value'] = value;
Methods
String toString() #
inherited from ChromeObject
Returns a string representation of this object.
docs inherited from Object
String toString() => jsProxy.toString();