Skip to main content

@dialstack/sdk-dev / webrtc/src / PlatformStorage

Interface: PlatformStorage

Defined in: sdk/webrtc/src/platform.ts:182

Synchronous key/value persistence for the E911 address id. This web default is backed by localStorage, guarded so the core also works in non-browser hosts (Node/tests) where localStorage is absent — there, persistence is a no-op and the app supplies PhoneOptions.emergencyAddressId itself. React Native has no localStorage, so the RN softphone provider injects a host-backed adapter via PhoneOptions.storage (MMKV/AsyncStorage); this default is never reached there.

Methods

getItem()

TypeScript
getItem(key): string | null;

Defined in: sdk/webrtc/src/platform.ts:183

Parameters

key

string

Returns

string | null


removeItem()

TypeScript
removeItem(key): void;

Defined in: sdk/webrtc/src/platform.ts:185

Parameters

key

string

Returns

void


setItem()

TypeScript
setItem(key, value): void;

Defined in: sdk/webrtc/src/platform.ts:184

Parameters

key

string

value

string

Returns

void