code-craft-studio
Version:
A comprehensive QR code and barcode scanning/generation library for React. Works with or without Capacitor. Supports 22+ QR data types and 14+ barcode formats (EAN, UPC, Code 128, etc.), with customizable designs, analytics, and React components. Provider
12 lines (11 loc) • 397 B
TypeScript
import type { StorageAdapter } from '../types';
export declare class CapacitorStorageAdapter implements StorageAdapter {
private preferences;
private prefix;
constructor(prefix?: string);
private loadPreferences;
get(key: string): Promise<string | null>;
set(key: string, value: string): Promise<void>;
remove(key: string): Promise<void>;
clear(): Promise<void>;
}