System.Tether.AppProfile.TTetheringAppProfile.DoResourceUpdated
Delphi
procedure DoResourceUpdated(LRemoteRes: TRemoteResource); virtual;
C++
virtual void __fastcall DoResourceUpdated(TRemoteResource* LRemoteRes);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | System.Tether.AppProfile.pas System.Tether.AppProfile.hpp |
System.Tether.AppProfile | TTetheringAppProfile |
Description
Called when the application profile receives a notification about the update of a resource sent from a remote application profile.
This method receives a single parameter, AResource
, which is the received remote resource.
If the profile of the remote resource is in the same Group as this application profile, DoResourceUpdated searches the Resources collection for a local resource with TTetheringRemoteKind.Mirror as Kind and the same Name as the remote resource. If it finds such a local resource, DoResourceUpdated updates this resource and calls DoResourceReceived on the local, mirror resource.
Otherwise, and if there is an event handler associated with the OnRemoteProfileUpdate event, DoResourceUpdated calls that event handler.
See Also
- System.Tether.AppProfile.TRemoteResource
- System.Tether.Manager.TTetheringManager.SendNotification
- System.Tether.AppProfile.TCustomRemoteItem.Broadcast
- System.Tether.Manager.TTetheringProfile.Group
- System.Tether.AppProfile.TTetheringAppProfile.Resources
- System.Tether.AppProfile.TLocalResource
- System.Tether.AppProfile.TCustomRemoteItem.Kind
- System.Tether.AppProfile.TCustomRemoteItem.Name
- System.Tether.AppProfile.TLocalResource.DoResourceReceived
- System.Tether.AppProfile.TTetheringAppProfile.OnResourceUpdated