forked from NativeScript/firebase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.ts
27 lines (24 loc) · 763 Bytes
/
common.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
export interface IAnalytics {
readonly appInstanceId: string;
logEvent(name: string, parameters: EventParameter): void;
setUserId(userId: string): void;
resetAnalyticsData(): void;
setAnalyticsCollectionEnabled(analyticsCollectionEnabled: boolean): void;
setUserProperty(value: string, name: string): void;
setSessionTimeoutInterval(sessionTimeoutInterval: number): void;
setDefaultEventParameters(parameters: EventParameter): void;
setConsent(consentSettings: Map<ConsentType, ConsentStatus>): void;
handleOpenURL(url: string): void;
handleUserActivity(userActivity: any): void;
}
export interface EventParameter {
[key: string]: any;
}
export enum ConsentType {
Ad_Storage,
Analytics_Storage,
}
export enum ConsentStatus {
Denied,
Granted,
}