System.Tether.AppProfile.TRemoteResource

From RAD Studio API Documentation
Jump to: navigation, search

System.Tether.AppProfile.TCustomRemoteItemSystem.TObjectTRemoteResource

Delphi

TRemoteResource = class(TCustomRemoteItem)

C++

class PASCALIMPLEMENTATION DECLSPEC_DRTTI TRemoteResource : public TCustomRemoteItem

Properties

Type Visibility Source Unit Parent
class public
System.Tether.AppProfile.pas
System.Tether.AppProfile.hpp
System.Tether.AppProfile System.Tether.AppProfile

Description

Represents a resource shared by a remote profile. See also TLocalResource.

TRemoteResource is a subclass of TCustomRemoteItem that wraps an instance of TResourceValue. Use the Value property to set this wrapped resource. ResType specifies whether the resource value is a standard data type or a stream.

Remote resources are collection resources. When you create a remote resource, you must specify a parent TCollection that takes ownership of the remote resource.

A remote resource provides a Name that uniquely identifies the resource within the Profile that shares the resource, and a Hint that describes the resource.

Call Broadcast on a remote resource to announce changes to the resource to remote profiles at any time. You can also make NotifyUpdates True to enable automatic notifications when the value of the resource changes.

IsPublic determines whether or not the remote resource must be shared with remote profiles, and IsTemp determines whether or not the resource is meant to be read more than once by remote profiles. By default, remote resources are public (IsPublic is True) and persistent (IsTemp is False). Application profiles use protected (IsPublic is False), temporary (IsTemp is True) remote resources for one-time exchanges of data, such as sending strings or receiving streams.

Kind determines whether the value of the remote resource is defined on the profile that shares the resource (default), or is mirrored from a another remote resource. When the value of a remote resource is mirrored (Kind is TTetheringRemoteKind.Mirror), the value is obtained from another remote resource shared by a remote profile. The Kind of the remote resource must be TTetheringRemoteKind.Shared.

See Also