System.Tether.Manager.TTetheringManager.SendNotification

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

procedure SendNotification(const AManagerId, AProfileId, ANotification, Data: string);

C++

void __fastcall SendNotification(const System::UnicodeString AManagerId, const System::UnicodeString AProfileId, const System::UnicodeString ANotification, const System::UnicodeString Data);

Propriétés

Type Visibilité  Source Unité  Parent
procedure
function
public
System.Tether.Manager.pas
System.Tether.Manager.hpp
System.Tether.Manager TTetheringManager


Description

Envoie la notification spécifiée vers le profil distant spécifié.

Les gestionnaires distants ne sont pas censés envoyer des notifications eux-mêmes. SendNotification fait partie d'une chaîne qui va d'un profil à un deuxième profil :

  1. Un profil appelle SendNotification sur son gestionnaire, en spécifiant un gestionnaire distant cible, un profil distant cible, un type de notification et une notification.
    La classe TTetheringAppProfile, par exemple, appelle SendNotification depuis l'une de ses méthodes, comme SendString ou NotifyProfileUpdate.
  2. Le gestionnaire appelle SendNotification sur l'adaptateur qui gère la connexion au gestionnaire distant cible spécifié.
  3. L'adaptateur envoie les données cible et de notification à l'adaptateur distant qui gère la connexion au gestionnaire distant cible spécifié.
  4. La procédure DoLaunchNotification de l'adaptateur distant reçoit les données cible et de notification et les appels transmettent ces données au gestionnaire.
  5. Le gestionnaire distant appelle Notify sur le profil cible.
  6. Le gestionnaire distant gère la notification.

SendNotification reçoit les paramètres suivants :

  • AManagerId est l'identificateur du gestionnaire qui publie le profil devant recevoir la notification.
  • AProfileId est l'identificateur du profil devant recevoir la notification.
  • ANotification est une chaîne qui identifie le type de la notification.
  • Data est une chaîne qui contient un tableau de valeurs, encodées sous forme de chaînes séparées par #*#. Par exemple : Value1#*#Value2.

Voir aussi