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.
45 lines
945 B
45 lines
945 B
![]()
2 years ago
|
//
|
||
|
// AlicloudTracker.h
|
||
|
// AlicloudUtils
|
||
|
//
|
||
|
// Created by junmo on 2017/6/30.
|
||
|
// Copyright © 2017年 Ali. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#ifndef AlicloudTracker_h
|
||
|
#define AlicloudTracker_h
|
||
|
|
||
|
@interface AlicloudTracker : NSObject
|
||
|
|
||
|
@property (nonatomic, copy) NSString *sdkId;
|
||
|
@property (nonatomic, copy) NSString *sdkVersion;
|
||
|
|
||
|
/**
|
||
|
设置Tracker的通用打点属性,每次上报都携带该参数
|
||
|
|
||
|
@param key 通用属性Key
|
||
|
@param value 通用属性Value
|
||
|
*/
|
||
|
- (void)setGlobalProperty:(NSString *)key value:(NSString *)value;
|
||
|
|
||
|
/**
|
||
|
删除Tracker通用打点属性
|
||
|
|
||
|
@param key 通用属性Key
|
||
|
*/
|
||
|
- (void)removeGlobalProperty:(NSString *)key;
|
||
|
|
||
|
/**
|
||
|
自定义打点上报
|
||
|
|
||
|
@param eventName 事件名
|
||
|
@param duration 时长
|
||
|
@param properties 额外参数
|
||
|
*/
|
||
|
- (void)sendCustomHit:(NSString *)eventName
|
||
|
duration:(long long)duration
|
||
|
properties:(NSDictionary *)properties;
|
||
|
|
||
|
@end
|
||
|
#endif /* AlicloudTracker_h */
|