System.Bluetooth.TBluetoothAdapter.Pair

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function Pair(const ADevice: TBluetoothDevice): Boolean;

C++

bool __fastcall Pair(TBluetoothDevice* const ADevice);

プロパティ

種類 可視性 ソース ユニット
function public
System.Bluetooth.pas
System.Bluetooth.hpp
System.Bluetooth TBluetoothAdapter


説明

こちらのアプリケーションが動作しているデバイスと指定したリモート デバイスとをペアにするよう要求します。

Pair は、即座にエラーが発生してペア設定操作が成功しなかった場合に False を返します。そうでなければ True が返され、ペア設定操作が開始します。True という結果が意味するのはペア設定操作が問題なく始まったということであって、操作が成功するとは限りません。

ペア設定処理が終了したか、あるいは成功したかどうかを判断するために処理できるイベントはありません。その代わりに、ある程度の時間が経ってから、またはユーザーのフィードバックがあってから、リモート デバイスの TBluetoothDevice.IsPaired を確認することができます。

プラットフォーム サポート

プラットフォーム サポート状況

32 ビット Windows
64 ビット Windows

YesC++11Feature.png

OS X

Android

4.4 以降

関連項目