Dart Documentationchrome.usbGenericTransferInfo

GenericTransferInfo class

GenericTransferInfo is used by both bulk and interrupt transfers to specify the parameters of the transfer.

class GenericTransferInfo extends ChromeObject {
 GenericTransferInfo({Direction direction, int endpoint, int length, ArrayBuffer data}) {
   if (direction != null) this.direction = direction;
   if (endpoint != null) this.endpoint = endpoint;
   if (length != null) this.length = length;
   if (data != null) this.data = data;
 }
 GenericTransferInfo.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

 Direction get direction => _createDirection(jsProxy['direction']);
 set direction(Direction value) => jsProxy['direction'] = jsify(value);

 int get endpoint => jsProxy['endpoint'];
 set endpoint(int value) => jsProxy['endpoint'] = 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 > GenericTransferInfo

Constructors

new GenericTransferInfo({Direction direction, int endpoint, int length, ArrayBuffer data}) #

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

docs inherited from ChromeObject
GenericTransferInfo({Direction direction, int endpoint, int length, ArrayBuffer data}) {
 if (direction != null) this.direction = direction;
 if (endpoint != null) this.endpoint = endpoint;
 if (length != null) this.length = length;
 if (data != null) this.data = data;
}

new GenericTransferInfo.fromProxy(JsObject jsProxy) #

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

docs inherited from ChromeObject
GenericTransferInfo.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 endpoint #

int get endpoint => jsProxy['endpoint'];
set endpoint(int value) => jsProxy['endpoint'] = value;

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

int length #

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