TwclBluetoothManager Class

The Bluetooth Manager component.

Namespace: wclBluetooth
TComponent
  wclBluetooth.TwclBluetoothManager
type
 TwclBluetoothManager = class(TComponent)
 end;

The TwclBluetoothManager type exposes the following members.

Show:
 NameDescription
Create(TComponent)

Creates a new Bluetooth Manager component.

Destroy

Frees the component.

Top
Show:
 NameDescription
Active

Gets the Bluetooth Manager state.

AfterOpen

The event fires after the Bluetooth Manager has been successfuly opened.

BeforeClose

The event fires before the Bluetooth Manager will be closed.

Count

Gets the number of available Bluetooth Radios.

Discovering

Gets the discovering state.

HandlePairing

Gets the pairing handling flag.

OnClosed

The event fires when the Bluetooth Manager has completely been closed.

Radios[Integer]

Gets the Bluetooth Radio by its index.

Top
Show:
 NameDescription
Close

Closes the Bluetooth Manager and releases all allocated resources.

DoAfterOpen

Fires the AfterOpen event.

DoAuthenticationCompleted(TwclBluetoothRadio,Int64,Integer)

Fires the OnAuthenticationCompleted event.

DoBeforeClose

Fires the BeforeClose event.

DoClosed

Fires the OnClosed event.

DoConfirm(TwclBluetoothRadio,Int64,Boolean)

Fires the OnConfirm event.

DoDeviceFound(TwclBluetoothRadio,Int64)

Fires the OnDeviceFound event.

DoDiscoveringCompleted(TwclBluetoothRadio,Integer)

Fires the OnDiscoveringCompleted event.

DoDiscoveringStarted(TwclBluetoothRadio)

Fires the OnDiscoveringStarted event.

DoIoCapabilityRequest(TwclBluetoothRadio,Int64,TwclBluetoothMitmProtection,TwclBluetoothIoCapability,Boolean)

Fires the OnIoCapabilityRequest event.

DoNumericComparison(TwclBluetoothRadio,Int64,Cardinal,Boolean)

Fires the OnNumericComparison event.

DoOobDataRequest(TwclBluetoothRadio,Int64,TwclBluetoothOobData)

Fires the OnOobDataRequest event.

DoPasskeyNotification(TwclBluetoothRadio,Int64,Cardinal)

Fores the OnPasskeyNotification event.

DoPasskeyRequest(TwclBluetoothRadio,Int64,Cardinal)

Fires the OnPasskeyRequest event.

DoPinRequest(TwclBluetoothRadio,Int64,string)

Fires the OnPinRequest event.

DoProtectionLevelRequest(TwclBluetoothRadio,Int64,TwclBluetoothLeProtectionLevel)

Fires the OnProtectionLevelRequest event.

DoStatusChanged(TwclBluetoothRadio)

Fires the OnStatusChanged event.

GetClassicRadio(TwclBluetoothRadio)

Overloaded. Gets the first available Radio object that supports Classic Bluetooth features.

GetLeRadio(TwclBluetoothRadio)

Overloaded. Gets the first available Radio object that supports Bluetooth Low Energy features.

GetRadio(TwclBluetoothRadio)

Overloaded. Gets the first available Radio object.

Open(Boolean)

Overloaded. Opens the Bluetooth Manager and allocated required hardware resources.

Open(TwclBluetoothApis,Boolean)

Overloaded. Opens the Bluetooth Manager and allocated required hardware resources.

Top
Show:
 NameDescription
OnAuthenticationCompleted

The event fires when authentication (pairing) with a remote Bluetooth device has completed.

OnConfirm

The event fires when a remote Bluetooth device requires a pairing confirmation.

OnDeviceFound

The event fires when a new remote Bluetooth device found during discovering.

OnDiscoveringCompleted

The event fires when discovering for remote Bluetooth devices has been completed.

OnDiscoveringStarted

The event fires when discovering for remote Bluetooth devices has been started.

OnIoCapabilityRequest

The event fires when a remote device requests an IO capability of the local Bluetooth device.

OnNumericComparison

The event fires when a remote Bluetooth device requires a numeric comparison pairing.

OnOobDataRequest

The veen tfires when a remote device requests an Out Of Band pairing data.

OnPasskeyNotification

The event fires when a remote Bluetooth device notifies an application about its passkey.

OnPasskeyRequest

The event fires when a remote Bluetooth device requires a passkey for pairing.

OnPinRequest

The event fires when a remote Bluetooth device requires a legacy PIN pairing.

OnProtectionLevelRequest

The event fires during BLE pairing to request required pairing protection level.

OnStatusChanged

The event fires when a status of a Bluetooth hardware or driver has been changed.

Top

The TwclBluetoothManager is the main component of the Bluetooth Framework. Each application that uses the Bluetooth Framework must have one and only one active instance of the Bluetooth Manager.

This component must be created and opened in an application's main thread only.