39 lines
891 B
Objective-C
39 lines
891 B
Objective-C
//
|
|
// StatisticsService.h
|
|
// YUMI
|
|
//
|
|
// Created by YUMI on 2021/9/27.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface StatisticsService : NSObject
|
|
#if 0
|
|
/// 埋点数据 不带参数的
|
|
/// @param event key
|
|
/// @param describe 描述
|
|
+ (void)trackEvent:(NSString *)event eventDescribe:(NSString *)describe;
|
|
|
|
/// 埋点的 代参数的
|
|
/// @param event key
|
|
/// @param describe 描述
|
|
/// @param attributes 参数
|
|
+ (void)trackEvent:(NSString *)event eventDescribe:(NSString *)describe eventAttributes:(nullable NSDictionary *)attributes;
|
|
|
|
/// 统计时长的 开始
|
|
/// @param event key
|
|
/// @param describe 描述
|
|
+ (void)trackEvent:(NSString *)event eventStart:(NSString *)describe;
|
|
|
|
/// 统计时长 结束
|
|
/// @param event key
|
|
/// @param describe 描述
|
|
+ (void)trackEvent:(NSString *)event eventEnd:(NSString *)describe;
|
|
#endif
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|