UNPKG

@kirz/react-native-toolkit

Version:

Toolkit to speed up React Native development

30 lines 1.59 kB
import { AppMetricaConfig } from '@kirz/react-native-appmetrica'; import { Plugin, PluginFeature } from '../Plugin'; import type { IAnalyticsProvider } from '../types'; export declare class AppMetricaPlugin extends Plugin implements IAnalyticsProvider { readonly options: AppMetricaConfig; readonly name = "AppMetricaPlugin"; readonly features: PluginFeature[]; readonly initializationTimeout = 5000; get instance(): { activate(config: AppMetricaConfig): void; getLibraryVersion(): Promise<string>; pauseSession(): void; reportAppOpen(deeplink?: string | null): void; reportError(error: string, reason: Object): void; reportEvent(eventName: string, attributes?: Object | null): void; reportReferralUrl(referralUrl: string): void; requestAppMetricaDeviceID(listener: (deviceId?: String | undefined, reason?: import("@kirz/react-native-appmetrica").AppMetricaDeviceIdReason | undefined) => void): void; resumeSession(): void; sendEventsBuffer(): void; setLocation(location: import("@kirz/react-native-appmetrica").Location | null): void; setLocationTracking(enabled: boolean): void; setStatisticsSending(enabled: boolean): void; setUserProfileID(userProfileID?: string | undefined): void; getLibraryApiLevel(): Promise<number>; }; constructor(options: AppMetricaConfig); initialize(): Promise<void>; logEvent(event: string, parameters?: Record<string, any> | undefined): Promise<void>; } //# sourceMappingURL=AppMetricaPlugin.d.ts.map