System.Tether.BluetoothAdapter.TTetheringBluetoothAdapter
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 for app tethering that provides support for connecting applications over Classic Bluetooth.
See Connecting to Remote Applications Using App Tethering.
Requirements
To use TTetheringBluetoothAdapter:
- Before trying to connect two applications using Classic Bluetooth, ensure to pair the two devices on the system level.
- To reduce the discovery timeout remove any not-connected Bluetooth device (but paired) from the TBluetoothManager before you try to discover Bluetooth managers.
- To run your application in an Android device, you need to enable the required Uses Permissions. Set Bluetooth and Bluetooth Admin values to
True.
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.