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

36 lines 1.66 kB
export interface AnalyticsEventParameters { [key: string]: string | number | boolean | undefined | null; } export interface AnalyticsUserProperties { [key: string]: string | number | boolean | undefined | null; } export interface AnalyticsConsent { ad_personalization?: boolean; [key: string]: boolean | undefined; } export interface AnalyticsApi { logEvent(name: string, params?: AnalyticsEventParameters): void; setUserId(userId: string | null): void; setUserProperty(key: string, value: string | null): void; setUserProperties(properties: AnalyticsUserProperties): void; setDefaultEventParameters(params: AnalyticsEventParameters | null): void; setConsent(consent: AnalyticsConsent): void; setAnalyticsCollectionEnabled(enabled: boolean): void; setDebug(enabled: boolean): void; setCurrentScreen(screenName: string | null): void; _getCid(): Promise<string>; } export interface RNFBAnalyticsModule { logEvent(name: string, params?: AnalyticsEventParameters): Promise<null>; setUserId(userId: string | null): Promise<null>; setUserProperty(key: string, value: string | null): Promise<null>; setUserProperties(properties: AnalyticsUserProperties): Promise<null>; setDefaultEventParameters(params: AnalyticsEventParameters | null): Promise<null>; setConsent(consent: AnalyticsConsent): Promise<null>; setAnalyticsCollectionEnabled(enabled: boolean): Promise<null>; resetAnalyticsData(): Promise<null>; setSessionTimeoutDuration(): Promise<null>; getAppInstanceId(): Promise<string | null>; getSessionId(): Promise<null>; } //# sourceMappingURL=web.d.ts.map