UNPKG

1.31 kBTypeScriptView Raw
1import { PermissionResponse, PermissionStatus, PermissionExpiration } from 'expo-modules-core';
2export declare type AdLogLevel = 'none' | 'debug' | 'verbose' | 'warning' | 'error' | 'notification';
3export { PermissionResponse, PermissionStatus, PermissionExpiration };
4declare const _default: {
5 /**
6 * Contains hash of the device id
7 */
8 readonly currentDeviceHash: string;
9 requestPermissionsAsync(): Promise<PermissionResponse>;
10 getPermissionsAsync(): Promise<PermissionResponse>;
11 /**
12 * Sets whether Facebook SDK should enable advertising tracking.
13 */
14 setAdvertiserTrackingEnabled(enabled: boolean): void;
15 /**
16 * Registers given device with `deviceHash` to receive test Facebook ads.
17 */
18 addTestDevice(deviceHash: string): void;
19 /**
20 * Clears previously set test devices
21 */
22 clearTestDevices(): void;
23 /**
24 * Sets current SDK log level
25 */
26 setLogLevel(logLevel: AdLogLevel): void;
27 /**
28 * Specifies whether ads are treated as child-directed
29 */
30 setIsChildDirected(isDirected: boolean): void;
31 /**
32 * Sets mediation service name
33 */
34 setMediationService(mediationService: string): void;
35 /**
36 * Sets URL prefix
37 */
38 setUrlPrefix(urlPrefix: string): void;
39};
40export default _default;