From RAD Studio API Documentation
Jump to: navigation, search



TBluetoothManager = class


class PASCALIMPLEMENTATION TBluetoothManager : public System::TObject


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


Main class for Classic Bluetooth communications.

A manager is the main component in Classic Bluetooth connections. Managers can discover remote devices, request to make the device running your application discoverable, publish services for remote devices, and give you access to instances of other classes that provide further functionality, such as TBluetoothAdapter (CurrentAdapter) or TBluetoothDevice (LastDiscoveredDevices, GetPairedDevices).

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

TBluetoothManager provides some class-level methods, properties, and events. For example, you can use SocketTimeOut to define the maximum time that Classic Bluetooth data transfers can take, or use GetKnownServiceName to get the display name of a known Classic Bluetooth service, given its service identifier.

See Also