Skip to main content

BackgroundSafeClientStorage

No behavioral description is attached to this declaration. The public signature, parameter and return types, and source location below document its published contract.

Kind: Interface
Package: @ovok/native

Import​

import { BackgroundSafeClientStorage } from '@ovok/native/background-sync';

TypeScript shape​

interface BackgroundSafeClientStorage {
getItem: (key: string) => Promise<string | null>;
setItem: (key: string, value: string) => Promise<void>;
removeItem: (key: string) => Promise<void>;
clear: () => Promise<void>;
reload: () => Promise<void>;
}

This is a type-level export; it has no call parameters.

Public members​

MemberTypeDetails
getItem(key: string): Promise<string | null>—
setItem(key: string, value: string): Promise<void>—
removeItem(key: string): Promise<void>—
clear(): Promise<void>—
reload(): Promise<void>Re-reads the key index after the device has completed first unlock.

Learn the workflow​

Continue with Background Sync for the workflow context and examples.

Source​

View the declaration in the SDK source.