UNPKG

2.4 kBTypeScriptView Raw
1export interface AmplitudeTrackingOptions {
2 disableAdid?: boolean;
3 disableCarrier?: boolean;
4 disableCity?: boolean;
5 disableCountry?: boolean;
6 disableDeviceBrand?: boolean;
7 disableDeviceManufacturer?: boolean;
8 disableDeviceModel?: boolean;
9 disableDMA?: boolean;
10 disableIDFV?: boolean;
11 disableIPAddress?: boolean;
12 disableLanguage?: boolean;
13 disableLatLng?: boolean;
14 disableOSName?: boolean;
15 disableOSVersion?: boolean;
16 disablePlatform?: boolean;
17 disableRegion?: boolean;
18 disableVersionName?: boolean;
19}
20export declare function initializeAsync(apiKey: string): Promise<void>;
21export declare function setUserIdAsync(userId: string): Promise<void>;
22export declare function setUserPropertiesAsync(userProperties: {
23 [name: string]: any;
24}): Promise<void>;
25export declare function clearUserPropertiesAsync(): Promise<void>;
26export declare function logEventAsync(eventName: string): Promise<void>;
27export declare function logEventWithPropertiesAsync(eventName: string, properties: {
28 [name: string]: any;
29}): Promise<void>;
30export declare function setGroupAsync(groupType: string, groupNames: string[]): Promise<void>;
31export declare function setTrackingOptionsAsync(options: AmplitudeTrackingOptions): Promise<void>;
32/**
33 * @deprecated Use initializeAsync instead
34 */
35export declare function initialize(apiKey: string): Promise<void>;
36/**
37 * @deprecated Use setUserIdAsync instead
38 */
39export declare function setUserId(userId: string): Promise<void>;
40/**
41 * @deprecated Use setUserPropertiesAsync instead
42 */
43export declare function setUserProperties(userProperties: {
44 [name: string]: any;
45}): Promise<void>;
46/**
47 * @deprecated Use clearUserPropertiesAsync instead
48 */
49export declare function clearUserProperties(): Promise<void>;
50/**
51 * @deprecated Use logEventAsync instead
52 */
53export declare function logEvent(eventName: string): Promise<void>;
54/**
55 * @deprecated Use logEventWithPropertiesAsync instead
56 */
57export declare function logEventWithProperties(eventName: string, properties: {
58 [name: string]: any;
59}): Promise<void>;
60/**
61 * @deprecated Use setGroupAsync instead
62 */
63export declare function setGroup(groupType: string, groupNames: string[]): Promise<void>;
64/**
65 * @deprecated Use setTrackingOptionsAsync instead
66 */
67export declare function setTrackingOptions(options: AmplitudeTrackingOptions): Promise<void>;