System.Tether.Manager.TTetheringAdapter.DoPairedToRemote

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure DoPairedToRemote(const AManagerIdentifier, AManagerName, AManagerText, AConnectionString: string; AVersion: Integer); virtual;

C++

virtual void __fastcall DoPairedToRemote(const System::UnicodeString AManagerIdentifier, const System::UnicodeString AManagerName, const System::UnicodeString AManagerText, const System::UnicodeString AConnectionString, int AVersion);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
System.Tether.Manager.pas
System.Tether.Manager.hpp
System.Tether.Manager TTetheringAdapter

Description

Dispatcher of the OnPairedToRemote event of the manager of the adapter, also responsible for starting the discovery of remote profiles provided by the paired remote manager.

During a pairing operation, your adapter calls DoPairedToRemote when the remote adapter that received your pairing request accepts your pairing request.

This event dispatcher receives the following parameters with information about the remote manager that received your pairing request:

  • AManagerIdentifier is the identifier of the manager.
  • AManagerName is the name of the manager.
  • AManagerText is the text that describes the manager.
  • AConnectionString is the connection string of the manager.

DoPairedToRemote creates an instance of TTetheringManagerInfo with this information, and passes this instance to its manager.

The manager of your adapter:

  1. Adds the specified remote manager to its internal list of paired remote managers.
  2. Starts the discovery of profiles provided by the paired remote manager.
  3. Passes both a reference to itself and information about the remote manager to the handler of its OnPairedToRemote event.

See Also