System.Bluetooth.TBluetoothLEManager
Delphi
TBluetoothLEManager = class(TInterfacedObject)
C++
class PASCALIMPLEMENTATION TBluetoothLEManager : public System::TInterfacedObject
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | System.Bluetooth.pas System.Bluetooth.hpp |
System.Bluetooth | System.Bluetooth |
Description
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
- System.Bluetooth.TBluetoothLEManager.Current
- System.Bluetooth.TBluetoothLEManager.GetKnownServiceName
- System.Bluetooth.TBluetoothLEManager.OnIdentifyCustomUUID
- System.Bluetooth.TBluetoothLEManager.CancelDiscovery
- System.Bluetooth.TBluetoothLEManager.GetGattServer
- System.Bluetooth.TBluetoothLEManager.StartDiscovery