System.Tether.AppProfile.TTetheringAppProfile.Notify
Delphi
procedure Notify(const ANotification, Data: string); override;
C++
virtual void __fastcall Notify(const System::UnicodeString ANotification, const System::UnicodeString Data);
Sommaire
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
procedure function |
public | System.Tether.AppProfile.pas System.Tether.AppProfile.hpp |
System.Tether.AppProfile | TTetheringAppProfile |
Description
Gère une notification du gestionnaire envoyée à l'origine par un profil distant.
- Remarque : Vous n'avez pas besoin d'appeler Notify lorsque vous utilisez TTetheringAppProfile. Cependant, vous pouvez, si vous le souhaitez, réimplémenter Notify si vous sous-classez TTetheringAppProfile ou TTetheringProfile.
Notify reçoit les paramètres suivants :
- La chaîne
ANotification
. - La chaîne
Data
contient plusieurs paramètres séparés par un token,#*#
.
Valeur possibles de ANotification
Valeur | Description |
---|---|
"NOT_SNDRES" |
Annonce qu'une ressource distante temporelle contenant une chaîne a été envoyée par un profil d'application distant et attend que vous la récupérez.
|
"NOT_UPDPRO" |
Annonce qu'un profil d'application distant a changé.
|
"NOT_UPDRES" |
Annonce qu'un élément distant publié par un profil d'application distant a changé.
|
Conversion de Data
en tableau
Dans Delphi :
Parameters := Data.Split(['#*#'], TStringSplitOptions.None);
Dans C++ :
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/iter_find.hpp>
std::list<std::wstring> Parameters;
std::wstring DataAsWideString = Data.w_str();
boost::iter_split(Parameters, DataAsWideString, boost::first_finder(L"#*#"));
Voir aussi
- System.String
- System.Tether.Manager.TTetheringProfile.Manager
- System.Tether.Manager.TTetheringProfile.Notify
- System.Tether.Manager.TTetheringProfileInfo.ProfileIdentifier
- System.Tether.AppProfile.TCustomRemoteItem.Name
- System.Tether.AppProfile.TCustomRemoteItem.Hint
- System.Tether.AppProfile.TCustomRemoteItem.ItemType