System.Bluetooth.TBluetoothManager

From RAD Studio API Documentation
Jump to: navigation, search

System.TObjectTBluetoothManager

Delphi

TBluetoothManager = class

C++

class PASCALIMPLEMENTATION TBluetoothManager : public System::TObject

Properties

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

Description

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