requestAccess method
- @Deprecated(r'This function was Chrome OS specific and calling it on other platforms would fail. This operation is now implicitly performed as part of $(ref:openDevice) and this function will return <code>true</code> on all platforms.')
Requests access from the permission broker to a device claimed by Chrome OS if the given interface on the device is not claimed.
|device|: The Device to request access to. |interfaceId|: The particular interface requested.
Implementation
@Deprecated(
r'This function was Chrome OS specific and calling it on other platforms would fail. This operation is now implicitly performed as part of $(ref:openDevice) and this function will return <code>true</code> on all platforms.')
Future<bool> requestAccess(
Device device,
int interfaceId,
) async {
var $res = await promiseToFuture<bool>($js.chrome.usb.requestAccess(
device.toJS,
interfaceId,
));
return $res;
}