System.Bluetooth.TBluetoothAdapter.DoStartDiscoverable

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure DoStartDiscoverable(Timeout: Cardinal); virtual; abstract;

C++

virtual void __fastcall DoStartDiscoverable(unsigned Timeout) = 0 ;

Properties

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

Description

Note: This is an abstract method that platform-specific subclasses of TBluetoothAdapter implement.

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

StartDiscoverable calls DoStartDiscoverable.

DoStartDiscoverable 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, your adapter calls DoDiscoverableEnd.

Platform Support

Platform Supported Notes

32-bit Windows
64-bit Windows

YesC++11Feature.png
  • Your adapter always calls DoDiscoverableEnd 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