System.Bluetooth.TBluetoothAdapter.StartDiscovery

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

Delphi

procedure StartDiscovery(Timeout: Cardinal);

C++

void __fastcall StartDiscovery(unsigned Timeout);

プロパティ

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


説明

Bluetooth を使用するリモート デバイスを探すための検出操作を開始します。

お使いのアダプタのマネージャStartDiscovery メソッドの結果、StartDiscovery が呼び出されます。

StartDiscovery は 1 つの引数 Timeout を受け取ります。これは、Bluetooth を使用するリモート デバイスの検出にどれだけの時間をかけるかを示します。

検出操作が終了すると、お使いのアダプタのマネージャOnDiscoveryEnd イベントが発生します。OnDiscoveryEnd からは、検出されたリモート デバイスのリストが提供されます。

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

プラットフォーム 備考

32 ビット Windows
64 ビット Windows

OS X

  • Timeout は無視されます。

Android

  • Timeout は無視されます。

関連項目