觉醒时刻
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
juexingshike/assets/libs/GravityAnalyticsSDK.d.ts

87 lines
2.9 KiB

1 week ago
declare class GravityAnalyticsAPI {
constructor(config: any);
setupAndStart(): void;
track(eventName: string): void;
track(eventName: string, properties: any): void;
track(eventName: string, properties: any, time: any): void;
track(eventName: string, properties: any, time: any, onComplete: any): void;
track(taEvent: any): void;
timeEvent(eventName: string): void;
login(accoundId: string): void;
logout(): void;
setSuperProperties(properties: any): void;
unsetSuperProperty(properties: any): void;
clearSuperProperties(): void;
getSuperProperties(): any;
getSendProperties(): any;
registerEvent(): void;
loginEvent(): void;
logoutEvent(): void;
payEvent(
pay_amount: number,
pay_type: string,
order_id: string,
pay_reason: string,
pay_method: string
): void;
adShowEvent(ad_type: string, ad_unit_id: string, otherProperties: any): void;
bindTAThirdPlatform(taAccountId: string, taDistinctId: string): void;
initialize(data: any): any;
initializeWithHistoryUserInfo(
data: any,
history_info: {
company: string;
create_time: number;
}
): any;
queryUserInfo(): any;
registerApp(properties: any): void;
userSet(properties: any): void;
userSetOnce(properties: any): void;
userAppend(properties: any): void;
userUniqAppend(properties: any): void;
userAdd(properties: any): void;
userUnset(property: string): void;
userDel(): void;
authorizeOpenID(distinctId: string): void;
identify(distinctId: string): void;
initInstance(name: string): GravityAnalyticsAPI;
initInstance(name: string, config: any): GravityAnalyticsAPI;
lightInstance(name: string): any;
setDynamicSuperProperties(properties: any): void;
getDeviceId(callback?: any): string;
getDistinctId(callback?: any): string;
getAccountId(callback?: any): string;
getPresetProperties(callback?: any): any;
/**
* /
* @param {bool} enabled YES NO
* @deprecated This method is deprecated, use setTrackStatus() instand.
*/
enableTracking(enabled: boolean): void;
/**
*
* @deprecated This method is deprecated, use setTrackStatus() instand.
*/
optOutTracking(): void;
/**
* user_del
* @deprecated This method is deprecated, use setTrackStatus() instand.
*/
optOutTrackingAndDeleteUser(): void;
/**
*
* @deprecated This method is deprecated, use setTrackStatus() instand.
*/
optInTracking(): void;
/**
*
* PAUSE
* STOP
* SAVE_ONLY (Native原生可支持JS暂不支持此状态 NORMAL)
* NORMAL
* @param {string} status
*/
setTrackStatus(status: string): void;
}