UNPKG

react-native-avo-inspector

Version:

[![npm version](https://badge.fury.io/js/react-native-avo-inspector.svg)](https://badge.fury.io/js/react-native-avo-inspector)

21 lines (20 loc) 679 B
export declare class AvoStreamId { private static _anonymousId; private static _initializationPromise; /** * Returns the persistent anonymous ID (Model A). * Generates a UUID once and persists it via AsyncStorage. * Never resets based on time. * Concurrent calls before cache is populated all return the same UUID. */ static initialize(): Promise<string>; /** * Sets a custom anonymous ID. Persists to storage. */ static setAnonymousId(id: string): void; /** * Clears the cached anonymous ID. The next access will reload from storage. */ static clearCache(): void; static get cacheKey(): string; }