Lens Scripting API

    Provides access to the Bluetooth connection.

    Hierarchy (View Summary, Expand)

    Index

    Properties

    connectionState: ConnectionState

    The state of the GATT connection represented as a Bluetooth.ConnectionState enum.

    mtu: number

    The current Maximum Transmission Unit (MTU).

    onConnectionStateChangedEvent: event1<ConnectionStateChangedEvent, void>

    Event to observe changes in connection state.

    onMtuChangedEvent: event1<MtuChangedEvent, void>

    Event to observe changes in Maximum Transmission Unit (MTU).

    Methods

    • Experimental Wearable Only

      Terminate the Bluetooth client connection, disconnection included if applicable.

      Returns void

    • Returns true if the object matches or derives from the passed in type.

      Parameters

      • type: string

      Returns boolean

    • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

      Parameters

      Returns boolean

    MMNEPVFCICPMFPCPTTAAATR