System.Bluetooth.TBluetoothAdapter.DoPair
Delphi
function DoPair(const ADevice: TBluetoothDevice): Boolean; virtual; abstract;
C++
virtual bool __fastcall DoPair(TBluetoothDevice* const ADevice) = 0 ;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | System.Bluetooth.pas System.Bluetooth.hpp |
System.Bluetooth | TBluetoothAdapter |
Description
- Note: This is an abstract method that platform-specific subclasses of TBluetoothAdapter implement.
Requests to pair the device running your application with the specified remote device.
DoPair returns False
if an immediate error prevents the pairing operation from succeeding. Otherwise, it returns True
, and the pairing operation starts. A True
result means that the pairing operation started successfully, but the operation may not finish successfully.
There is no event that you can handle to know when the pairing process finishes or whether it finishes successfully or not. Instead, you can check TBluetoothDevice.IsPaired on the remote device after some time or after feedback from your user.
Platform Support
Platform | Supported |
---|---|
32-bit Windows |
|
OS X |
|
Android |
|