Lens Scripting API

    The filters to be used with BluetoothCentralModule.startScan.

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    • Experimental Wearable Only

      Construct a new filter.

      Returns ScanFilter

    Properties

    deviceName?: string
    manufacturerDataPrefix?: Uint8Array

    Filter for devices based on a prefix of manufacturer data. If undefined, no filtering on manufacturer data is applied.

    manufacturerId?: number

    Filter for devices based on a manufacturer ID. If undefined, no filtering on manufacturer ID is applied.

    serviceUUID?: string

    Filter for devices based on a service UUID. If undefined, no filtering on service UUID is applied.

    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

    MMNEPVFCICPMFPCPTTAAATR