System.Bluetooth.TBluetoothAdapter.StartDiscovery

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure StartDiscovery(Timeout: Cardinal);

C++

void __fastcall StartDiscovery(unsigned Timeout);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
System.Bluetooth.pas
System.Bluetooth.hpp
System.Bluetooth TBluetoothAdapter

Description

Starts a discovery operation to find remote devices using Bluetooth.

The StartDiscovery method of the manager of your adapter calls StartDiscovery.

StartDiscovery expects a single argument, Timeout, which is how much time you want to spend discovering remote devices using Bluetooth.

When the discovery operation finishes, the OnDiscoveryEnd event of the manager of your adapter occurs. OnDiscoveryEnd provides a list of discovered remote devices.

Platform Support

Platform Notes

32-bit Windows
64-bit Windows

OS X

  • Timeout is ignored.

Android

  • Timeout is ignored.

See Also