MAIDR JavaScript API
    Preparing search index...

    Interface DotPadState

    Connection state, plus what to tell the user about it.

    interface DotPadState {
        status: DotPadStatus;
        deviceName: string | null;
        transport: DotPadTransport | null;
        geometry: DotPadGeometry | null;
        message: string;
    }
    Index

    Properties

    status: DotPadStatus
    deviceName: string | null

    Model name reported by the device, or null when nothing is connected.

    transport: DotPadTransport | null

    How the connected device is attached, or null when nothing is connected. Worth saying out loud in the UI: the two differ enough in responsiveness that a reader on a slow display should be able to see which one they got.

    geometry: DotPadGeometry | null

    Layout of the connected device, or null when nothing is connected.

    message: string

    Why the last attempt failed, for display next to the connect control. Empty when there is nothing to report.