System.Tether.AppProfile.TCustomLocalItem

From RAD Studio API Documentation
Jump to: navigation, search

System.Classes.TCollectionItemSystem.Classes.TPersistentSystem.TObjectTCustomLocalItem

Delphi

TCustomLocalItem = class(TCollectionItem)

C++

class PASCALIMPLEMENTATION DECLSPEC_DRTTI TCustomLocalItem : public System::Classes::TCollectionItem

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 shared item from the point of view of the profile that is sharing that item. See also TCustomRemoteItem.

Local items are collection items. When you create a local item, you must specify a parent TCollection that takes ownership of the local item.

A local 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 local 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 local item must be shared with remote profiles. By default, local items are public (IsPublic is True). Application profiles use protected (IsPublic is False) local items for one-time exchanges of data, such as receiving strings or receiving streams.

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

See Also