先修复一下,错误的场景 删除不必要的钓场资产 修复into场景 update:更新meta文件,修复报错 update:修复资源 修复第一章节建造 修复建造第三章 update:删除多余内容 update:更新README.md update:还原图标 update:更新README update:更新配置
46 lines
1.3 KiB
Objective-C
46 lines
1.3 KiB
Objective-C
//
|
|
// TAAppExtensionAnalytic.h
|
|
// ThinkingSDK
|
|
//
|
|
// Created by Yangxiongon 2022/5/25.
|
|
// Copyright © 2022 thinking. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
/// key: event name in App Extension
|
|
extern NSString * const kTAAppExtensionEventName;
|
|
/// key: event properties in App Extension
|
|
extern NSString * const kTAAppExtensionEventProperties;
|
|
/// key: event properties
|
|
extern NSString * const kTAAppExtensionTime;
|
|
/// key: event properties
|
|
extern NSString * const kTAAppExtensionEventPropertiesSource;
|
|
|
|
@interface TAAppExtensionAnalytic : NSObject
|
|
|
|
+ (void)calibrateTime:(NSTimeInterval)timestamp;
|
|
|
|
+ (void)calibrateTimeWithNtp:(NSString *)ntpServer;
|
|
|
|
/// Initialize an event collection object
|
|
/// @param instanceName The unique identifier of the event collection object
|
|
/// @param appGroupId share App Group ID
|
|
+ (TAAppExtensionAnalytic *)analyticWithInstanceName:(NSString * _Nonnull)instanceName appGroupId:(NSString * _Nonnull)appGroupId;
|
|
|
|
/// write event
|
|
/// @param eventName eventName
|
|
/// @param properties properties
|
|
/// @return Whether (YES/NO) write success
|
|
- (BOOL)writeEvent:(NSString * _Nonnull)eventName properties:(NSDictionary * _Nullable)properties;
|
|
|
|
- (NSArray *)readAllEvents;
|
|
|
|
- (BOOL)deleteEvents;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|