System.Bluetooth.TBluetoothManager.StartDiscoverable

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure StartDiscoverable(Timeout: Cardinal);

C++

void __fastcall StartDiscoverable(unsigned Timeout);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Bluetooth.pas
System.Bluetooth.hpp
System.Bluetooth TBluetoothManager

Description

Starts a request to make the device that is running your application discoverable via Bluetooth.

StartDiscoverable expects a single argument, Timeout, which is how long you want the device that is running your application to be discoverable via Bluetooth (in seconds).

If the user accepts and your request succeeds, the OnDiscoverableEnd event occurs.

Platform Support

Platform Supported Notes

32-bit Windows
64-bit Windows

YesC++11Feature.png
  • The OnDiscoverableEnd event always occurs after Timeout. Windows always grants discoverable requests, user permission is not necessary.

OS X

  • Users must actively choose to make the device that is running your application discoverable. You cannot request to make the device discoverable from your application.

Android

YesC++11Feature.png
  • Timeout cannot be greater than 300 seconds. If you specify a value greater than 300 seconds, 300 seconds are used instead.

See Also