Lens Scripting API
    Preparing search index...

    Settings when scanning for Bluetooth devices via BluetoothCentralModule.startScan.

    Hierarchy (View Summary)

    Index

    Constructors

    • Experimental Wearable Only

      Construct a new setting.

      Returns ScanSettings

    Properties

    scanMode: ScanMode

    Set the scanning method.

    timeoutSeconds: number

    Set the scanning timeout duration in seconds. After the timeout period the scan will stop and the promise will resolve.

    uniqueDevices: boolean

    Specify whether to call the predicate function only for unique devices or not.

    Methods

    • 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