putAll

abstract fun putAll(dataObject: DataObject, expiry: Expiry): Single<TealiumResult<Unit>>

Attempts to update all key-value pairs from the dataObject and inserts them into the DataStore.

The data will be expired according to the given Expiry

Return

A Single which can be used to subscribe a block of code to receive any errors that occur

Parameters

dataObject

The DataObject containing multiple items to be stored.

expiry

The expiration policy for these DataItems


abstract fun putAll(dataObject: DataObject): Single<TealiumResult<Unit>>

Attempts to update all key-value pairs from the dataObject and inserts them into the DataStore.

The data will be expired according to the default Expiry

Return

A Single which can be used to subscribe a block of code to receive any errors that occur

Parameters

dataObject

The DataObject containing multiple items to be stored.