This repository was archived by the owner on Feb 20, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathindex.d.ts
61 lines (50 loc) · 1.6 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
declare module 'react-native-flurry-analytics' {
interface FlurryAnalyticsStatic {
/**
* FlurryAnalytics.startSession('YOUR_API_KEY');
*/
startSession(apiKey: string);
/**
* !!! method must be called prior to invoking startSession, e.g. FlurryAnalytics.setAppVersion('1.0.0');
*/
setAppVersion(version: string);
/**
* !!! method must be called prior to invoking startSession, e.g. FlurryAnalytics.setDebugLogEnabled(false)
*/
setDebugLogEnabled(enabled: boolean);
/**
* !!! method must be called prior to invoking startSession, e.g. FlurryAnalytics.setSessionContinueSeconds(10);
*/
setSessionContinueSeconds(seconds: number);
/**
* !!! method must be called prior to invoking startSession, e.g. FlurryAnalytics.setCrashReportingEnabled(true);
*/
setCrashReportingEnabled(enabled: boolean);
/**
* e.g. FlurryAnalytics.logEvent('eventName'); FlurryAnalytics.logEvent('eventName', {param: 'true'}, true);
*/
logEvent(eventName: string, params?: any, timed?: boolean);
/**
* e.g. FlurryAnalytics.endTimedEvent('eventName'); FlurryAnalytics.endTimedEvent('eventName', {param: 'true'});
*/
endTimedEvent(eventName: string, params?: any);
/**
* e.g. FlurryAnalytics.logPageView();
*/
logPageView();
/**
* e.g. FlurryAnalytics.setUserId('userId');
*/
setUserId(userId: string);
/**
* e.g. FlurryAnalytics.setUserAge(28);
*/
setUserAge(age: number);
/**
* e.g. FlurryAnalytics.setUserGender('m');
*/
setUserGender(gender: 'm' | 'f');
}
const FlurryAnalytics: FlurryAnalyticsStatic;
export default FlurryAnalytics;
}