Tealium Prism React Native
    Preparing search index...

    Interface DataLayer

    Data layer of a Tealium instance. Mirrors the native Prism DataLayer module. Reach it with Tealium.dataLayer.

    interface DataLayer {
        clear(): Promise<void>;
        get(key: string): Promise<JsonValue | undefined>;
        getAll(): Promise<JsonValueObject>;
        put(key: string, value: JsonValue, expiry?: Expiry): Promise<void>;
        putAll(data: JsonValueObject, expiry?: Expiry): Promise<void>;
        remove(key: string): Promise<void>;
        remove(keys: string[]): Promise<void>;
    }
    Index
    • Resolves the value stored under key, or undefined if the key is absent. A stored JSON null resolves null, distinct from an absent key.

      Parameters

      • key: string

      Returns Promise<JsonValue | undefined>

    • Stores a single key/value pair, replacing any existing value for that key. An omitted expiry stores the entry forever. A Date expires the entry at that time. Rejects without calling native if expiry is an invalid Date.

      Parameters

      Returns Promise<void>

    • Stores every key/value pair in data, replacing any existing value for each key. An omitted expiry stores the entries forever. A Date expires the entries at that time. Rejects without calling native if expiry is an invalid Date.

      Parameters

      Returns Promise<void>