putAll

abstract fun putAll(dataObject: DataObject, expiry: Expiry): DataStore.Editor

Adds all key-value pairs from the dataObject into the storage.

Return

Editor to continue editing this storage

Parameters

dataObject

A DataObject containing the key-value pairs to be stored

expiry

The time frame for this data to remain stored