UNPKG

@kirz/react-native-toolkit

Version:

Toolkit to speed up React Native development

55 lines 3.16 kB
import { Plugin, PluginFeature } from '../Plugin'; import type { IAnalyticsProvider } from '../types'; export declare class FacebookPlugin extends Plugin implements IAnalyticsProvider { readonly name = "FacebookPlugin"; readonly features: PluginFeature[]; readonly initializationTimeout = 5000; get instance(): { getAdvertiserTrackingEnabled(): Promise<boolean>; setAdvertiserTrackingEnabled(ATE: boolean): Promise<boolean>; setDataProcessingOptions(options: string[], ...args: number[]): void; initializeSDK(): void; setAppID(appID: string): void; setClientToken(clientToken: string): void; setAppName(appName: string): void; setGraphAPIVersion(version: string): void; setAutoLogAppEventsEnabled(enabled: boolean): void; setAdvertiserIDCollectionEnabled(enabled: boolean): void; fetchDeferredAppLink(): Promise<string | null>; setFlushBehavior(flushBehavior: import("react-native-fbsdk-next").AppEventsFlushBehavior): void; logEvent(eventName: string, ...args: (number | import("react-native-fbsdk-next").Params)[]): void; logPurchase(purchaseAmount: number, currencyCode: string, parameters?: import("react-native-fbsdk-next").Params | undefined): void; logPushNotificationOpen(payload?: Record<string, string | number> | undefined): void; logProductItem(itemID: string, availability: import("react-native-fbsdk-next").ProductAvailability, condition: import("react-native-fbsdk-next").ProductCondition, description: string, imageLink: string, link: string, title: string, priceAmount: number, currency: string, gtin?: string | undefined, mpn?: string | undefined, brand?: string | undefined, parameters?: import("react-native-fbsdk-next").Params | undefined): void; flush(): void; setUserID(userID: string | null): void; clearUserID(): void; getUserID(): Promise<string | null>; getAnonymousID(): Promise<string | null>; getAdvertiserID(): Promise<string | null>; getAttributionID(): Promise<string | null>; setUserData(userData: Readonly<{ email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; phone?: string | undefined; dateOfBirth?: string | undefined; gender?: "m" | "f" | undefined; city?: string | undefined; state?: string | undefined; zip?: string | undefined; country?: string | undefined; }>): void; setPushNotificationsDeviceToken(deviceToken: string): void; setPushNotificationsRegistrationId(registrationId: string): void; AppEvents: import("react-native-fbsdk-next").AppEvent; AppEventParams: import("react-native-fbsdk-next").AppEventParam; }; /** * Requires FACEBOOK_APP_ID and FACEBOOK_CLIENT_TOKEN environment variables to exist */ constructor(); initialize(): Promise<void>; logEvent(event: string, parameters?: Record<string, any> | undefined): Promise<void>; } //# sourceMappingURL=FacebookPlugin.d.ts.map