System.Bluetooth.TBluetoothLEAdapter.DoStartDiscovery

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

Delphi

function DoStartDiscovery(Timeout: Cardinal; const AFilterUUIDList: TBluetoothUUIDsList = nil;  const ABluetoothLEScanFilterList: TBluetoothLEScanFilterList = nil): Boolean; virtual; abstract;

C++

virtual bool __fastcall DoStartDiscovery(unsigned Timeout, TBluetoothUUIDsList* const AFilterUUIDList = (TBluetoothUUIDsList*)(0x0), TBluetoothLEScanFilterList* const ABluetoothLEScanFilterList = (TBluetoothLEScanFilterList*)(0x0)) = 0 ;

プロパティ

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


説明

メモ: これは、TBluetoothLEAdapter のプラットフォーム固有のサブクラスで実装される抽象メソッドです。

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

StartDiscoveryDoStartDiscovery を呼び出します。

DoStartDiscovery は、次のパラメータを取ります:

  • Timeout: Bluetooth Low Energy を使用したリモート デバイスの検知に、どれだけの時間を使用するか
  • AFilterUUIDList(任意): 1 つまたは複数の Bluetooth UUIDs のリスト
  • ABluetoothLEScanFilterList: 1 つまたは複数の BLE スキャン フィルタからなるリストで、そのフィルタ内の特定の BLE デバイスに対してのみスキャンをかけることができます。

検知オペレーションが完了した際、アダプタが DoDiscoveryEnd を呼び出し、これが検知されたリモート デバイスのリストを提供します。

DoStartDiscovery は、検体が正常に開始した場合に True を、何らかの原因により開始に支障があった場合には False を返します。

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

プラットフォーム メモ

32 ビット Windows
64 ビット Windows

OS X

  • OnDiscoveryEnd は、常に指定された Timeout の後のいずれかのタイミングで発生し、前に発生することはありません。
  • 常に True を返します。

iOS

  • OnDiscoveryEnd は、常に指定された Timeout の後のいずれかのタイミングで発生し、前に発生することはありません。
  • 常に True を返します。

Android

  • OnDiscoveryEnd は、常に指定された Timeout の後に発生し、前に発生することはありません。

関連項目