System.Tether.AppProfile.TTetheringAppProfile.NotifyUpdate
Delphi
procedure NotifyUpdate(ALocalItem: TCustomLocalItem; const Data: string = '');
C++
void __fastcall NotifyUpdate(TCustomLocalItem* ALocalItem, const System::UnicodeString Data = System::UnicodeString());
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Tether.AppProfile.pas System.Tether.AppProfile.hpp |
System.Tether.AppProfile | TTetheringAppProfile |
Description
Sends a notification to connected remote profiles subscribed to the specified resource with the current data of the resource. See Subscribing to Remote Resources Using SubscribeToRemoteItem.
This method receives the following parameters:
ALocalItem
is an instance of TCustomLocalItem (or a subclass, such as TLocalAction or TLocalResource). See Actions and Resources.Data
is a JSON representation of the data of the local item.
- Tip: Call Broadcast on the target TCustomLocalItem instead of using NotifyUpdate. Broadcast has the same effect as calling
NotifyUpdate(LocalItem, LocalItem.ToJsonString)
on the application profile ofLocalItem
.