From RAD Studio API Documentation
Jump to: navigation, search



TBluetoothLEManager = class(TInterfacedObject)


class PASCALIMPLEMENTATION TBluetoothLEManager : public System::TInterfacedObject


Type Visibility Source Unit Parent
class public
System.Bluetooth System.Bluetooth


Main class for Bluetooth Low Energy communications.

A manager is the main component in Bluetooth Low Energy connections. Managers can discover remote devices, publish services for remote devices, and give you access to instances of other classes that provide further functionality, such as TBluetoothLEAdapter (CurrentAdapter) or TBluetoothLEDevice (LastDiscoveredDevices).

Since your application only needs one TBluetoothLEManager, you do not need to create instances of TBluetoothLEManager manually. Instead, you can call Current to obtain a global instance of TBluetoothLEManager and use TBluetoothLEManager as a singleton.

TBluetoothLEManager provides some class-level methods, properties, and events. For example, you can use GetKnownServiceName to get the display name of a known Bluetooth Low Energy service, given its service identifier.

Note: If your iOS application needs to run in the background for managing specific bluetooth events, you need to set the required values for the key UIBackgroundModesProject in the Info.plist file. See how to add support for background execution on iOS for further information.

See Also