DataLayer
The DataLayer is available to store key-value data that should be present on every event tracked through the Tealium SDK.
There are a variety of getter/setter methods to store/retrieve common data types. All methods operate on the Tealium thread.
For updating multiple entries at once, the transactionally method is available to use.
Properties
Returns a Subscribable object with which to receive notifications of DataLayer entries being removed.
Returns a Subscribable object with which to receive notifications of DataLayer entries being updated.
Functions
Gets a single DataItem if available.
Gets all entries in the DataLayer and returns them as a DataObject
Retrieves a DataObject value at the given key.
Puts a single key-value pair into the DataStore
Stores a DataItemConvertible at the given key. The value will be eagerly converted to a DataItem on the caller thread.
Allows editing of the DataLayer using a DataStore.Editor to enable more fine-grained control over key-value additions and removals.