agora-meeting-sdk
Version:
For publishing npm package agora-metting-sdk (Web). Get more information from https://docs.agora.io
22 lines (21 loc) • 651 B
TypeScript
export declare type AppStorage = Storage | MemoryStorage;
export declare class MemoryStorage {
private readonly _storage;
constructor(_storage?: Map<string, string>);
getItem(name: string): string | undefined;
setItem(name: string, value: string): void;
removeItem(name: string): void;
clear(): void;
}
export declare class CustomStorage {
private storage;
languageKey: string;
private keyList;
constructor();
useSessionStorage(): void;
read(key: string): any;
save(key: string, val: any): void;
remove(key: string): void;
clear(): void;
}
export declare const GlobalStorage: CustomStorage;