System.Tether.BluetoothAdapter.TTetheringBluetoothAdapter.GetClientPeer

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetClientPeer(const ProtocolId: TTetheringProtocolType): TTetheringCustomComm; override;

C++

virtual System::Tether::Comm::TTetheringCustomComm* __fastcall GetClientPeer(const System::UnicodeString ProtocolId);

Properties

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

Description

Returns an object that a protocol of the specified protocol type can use for connections as a client over Classic Bluetooth communication.

GetClientPeer provides an object of a class that protocols of the specified protocol type support. GetClientPeer must provide an instance of TTetheringCustomComm to communicate over Classic Bluetooth.

If your adapter does not support the specified protocol type, GetClientPeer returns null.

See Also