System.Bluetooth.TBluetoothAdapter.Pair
Delphi
function Pair(const ADevice: TBluetoothDevice): Boolean;
C++
bool __fastcall Pair(TBluetoothDevice* const ADevice);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Bluetooth.pas System.Bluetooth.hpp |
System.Bluetooth | TBluetoothAdapter |
Description
Requests to pair the device running your application with the specified remote device.
Pair 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 |
|