Skip to main content

Bluetooth

Namespace

Namespace in the Lens Scripting API.

  • Snapchat: not supported
  • SPECS: fully supported
  • Camera Kit Web: not supported
  • Camera Kit Mobile: not supported
  • SnapchatNot supported — Available on SPECS only
  • SPECSFully supported
  • Camera Kit WebNot supported — Available on SPECS only
  • Camera Kit MobileNot supported — Available on SPECS only

Platform details

  • Snapchat — Not supported — Available on SPECS only.

  • SPECS — Fully supported.

  • Camera Kit Web — Not supported — Available on SPECS only.

  • Camera Kit Mobile — Not supported — Available on SPECS only.

Enumerations

EnumerationDescription
BluetoothStatusThe statuses for Bluetooth availability. Currently unsupported.
CharacteristicPropertyProperties of a Bluetooth.BluetoothGattCharacteristic.
ScanModeDefines how Bluetooth devices should be scanned. Used with BluetoothCentralModule.startScan.

Classes

ClassDescription
BluetoothCentralModuleProvides access to Bluetooth GATT devices. APIs include scanning for and connecting to these devices, and reading and writing to their descriptors and characteristics.
BluetoothGattProvides access to the Bluetooth connection.
BluetoothGattCharacteristicA characteristic of the Bluetooth GATT device.
BluetoothGattDescriptorDescriptors contain additional information and attributes of a Bluetooth.BluetoothGattCharacteristic.
BluetoothGattServiceBluetooth GATT Services are collections of related Bluetooth.BluetoothGattCharacteristics representing specific functions or features of a device. For example, a heart rate sensor might have a "Heart Rate" service, which in turn has characteristics like "Heart Rate Measurement".
BluetoothStatusChangedEventThe event received when Bluetooth status has changed. Currently unsupported.
MtuChangedEventThe event received when Maximum Transmission Unit (MTU) of a Bluetooth device has changed.
ScanFilterThe filters to be used with BluetoothCentralModule.startScan.
ScanResultThe results of a Bluetooth scan.
ScanSettingsSettings when scanning for Bluetooth devices via BluetoothCentralModule.startScan.