Android UsbManager¶
- class enamlnative.android.android_usb.UsbManager(*args, **kwargs)[source]¶
Bases:
enamlnative.android.android_content.SystemService
Use UsbManger.get().then(on_ready) to get an instance.
- hasPermission_¶
These names are changed to support both signatures
- devices¶
Hold references to devices
- device_attached¶
You can listen for this
- async on_device_action_received(ctx, intent: enamlnative.android.android_content.Intent)[source]¶
Invoked when the receiver fires
- async get_devices() list[enamlnative.android.android_usb.UsbDevice] [source]¶
Load devices and update the internal list. Since the bridge caches a reference here it important to not delete it until it detaches.