getConfiguration method

Future<ConfigDescriptor> getConfiguration(
  1. ConnectionHandle handle
)

Gets the configuration descriptor for the currently selected configuration. |handle|: An open connection to the device.

Implementation

Future<ConfigDescriptor> getConfiguration(ConnectionHandle handle) async {
  var $res = await promiseToFuture<$js.ConfigDescriptor>(
      $js.chrome.usb.getConfiguration(handle.toJS));
  return ConfigDescriptor.fromJS($res);
}