skio_core library

Shared types for the skio hardware plugins.

The skio plugins (skio_usb_serial, skio_uvc_camera) re-export this library, so apps handle permissions, errors and device matching the same way for every device.

Classes

AccessReport
A detailed access result returned by HardwareAccess.
DeviceAttached
A device was attached (USB) or connected (BLE).
DeviceDetached
A device was detached (USB) or disconnected (BLE).
DeviceEvent
A change in the set of attached or connected devices.
DeviceFilter
Declarative criteria for selecting devices.
DeviceHandle
A stable description of one hardware device.
HardwareAccess
The permission API every skio plugin implements.
LogRecord
One log entry from a skio package.
SkioLog
Opt-in logging shared by all skio packages.

Enums

AccessStatus
The result of checking or requesting access to a hardware capability.
LogLevel
Severity of a LogRecord, from most to least detailed.

Exceptions / Errors

AccessConfigurationError
The app is misconfigured, for example a permission is missing from AndroidManifest.xml.
AccessDenied
The user or system refused access to the device.
DeviceBusy
The device is held by another app, tab or connection.
DeviceNotFound
The requested device is not attached or not found.
Disconnected
The device went away during use (unplugged, powered off, suspended).
HardwareException
Base class of every runtime error a skio plugin throws.
OperationTimeout
A command did not complete within its timeout.
ProtocolError
The device responded in an unexpected way.
Unsupported
The platform or device does not support the requested operation.