System.Tether.BluetoothAdapter.TTetheringBluetoothAdapter

From RAD Studio API Documentation
Jump to: navigation, search

System.Tether.Manager.TTetheringAdapterSystem.TObjectTTetheringBluetoothAdapter

Delphi

TTetheringBluetoothAdapter = class(TTetheringAdapter)

C++

class PASCALIMPLEMENTATION DECLSPEC_DRTTI TTetheringBluetoothAdapter : public System::Tether::Manager::TTetheringAdapter

Properties

Type Visibility Source Unit Parent
class public
System.Tether.BluetoothAdapter.pas
System.Tether.BluetoothAdapter.hpp
System.Tether.BluetoothAdapter System.Tether.BluetoothAdapter

Description

Adapter to connect applications over Classic Bluetooth.

Prerequisites

To use TTetheringBluetoothAdapter:

  • Before trying to connect two applications using Classic Bluetooth, ensure to pair the two devices on the system level.
  • To run your application in an Android device, you need to enable the required Uses Permissions. Set Bluetooth and Bluetooth Admin values to True.

Target Syntax

TTetheringBluetoothAdapter supports the following syntax for the ATarget parameter of TTetheringManager.DiscoverManagers:

Reducing Discovery Timeout

To reduce the time that it takes to discover Bluetooth managers, unpair any paired device of the global Bluetooth manager that is not connected. To unpair a device, use the UnPair method of the Bluetooth adapter of the global Bluetooth manager.

Limitations

There are 30 available Classic Bluetooth physical channels. You can only have up to 7 instances of TTetheringBluetoothAdapter on the same device at once, since a Classic Bluetooth application with a TBluetoothManager and a Bluetooth profile uses 4 of these channels.

See Also