From RAD Studio API Documentation
Jump to: navigation, search



TCustomRemoteItem = class


class PASCALIMPLEMENTATION DECLSPEC_DRTTI TCustomRemoteItem : public System::TObject


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


Represents an item shared by a remote profile. See also TCustomLocalItem.

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

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

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

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

ItemType determines whether the remote item represents an action or a resource.

See Also