UNPKG

@react-native-firebase/analytics

Version:

React Native Firebase - The analytics module provides out of the box support with Google Analytics for Firebase. Integration with the Android & iOS allows for in-depth analytical insight reporting, such as device information, location, user actions and mo

37 lines 1.46 kB
import type { AnalyticsEventParameters, AnalyticsUserProperties, AnalyticsConsent, AnalyticsApi as IAnalyticsApi } from '../types/web'; declare class AnalyticsApi implements IAnalyticsApi { readonly appName: string; readonly measurementId: string; private eventQueue; private queueTimer; private readonly queueInterval; private defaultEventParameters; private userId; private userProperties; private consent; private analyticsCollectionEnabled; private started; private installationId; private debug; private currentScreen; private sessionId?; private cid?; constructor(appName: string, measurementId: string); setDefaultEventParameters(params: AnalyticsEventParameters | null): void; setDebug(enabled: boolean): void; setUserId(userId: string | null): void; setCurrentScreen(screenName: string | null): void; setUserProperty(key: string, value: string | null): void; setUserProperties(properties: AnalyticsUserProperties): void; setConsent(consentSettings: AnalyticsConsent): void; setAnalyticsCollectionEnabled(enabled: boolean): void; logEvent(eventName: string, eventParams?: AnalyticsEventParameters): void; private _getInstallationId; private _startQueueProcessing; private _stopQueueProcessing; private _processQueue; _getCid(): Promise<string>; private _sendEvents; } export { AnalyticsApi }; //# sourceMappingURL=api.d.ts.map