-
Notifications
You must be signed in to change notification settings - Fork 145
Closed
Description
Hi,
I'm trying to create a stream for listening to the USB status (permission allowed/denied, OTG available or not, etc.). Is there any functionality built into this library to check for the same?
here is the sample pseudo code:
class USBStatusMonitor implements ReactiveState<USBStatus> {
const USBStatusMonitor(this._usb);
final UsbSerial _usb;
@override
Stream<USBStatus> get state => _usb.statusStream;
}
Is this functionality like statusStream or USBStatus available in this library for easy detection of sudden changes from the user (user suddenly disables OTG, OTG is not available on this device etc.)?
Metadata
Metadata
Assignees
Labels
No labels