// // XSCollector.h // XenonSDK // // Created by SAGESSE on 2019/5/30. // Copyright © 2019 SAGESSE. All rights reserved. // #import #import "TalkingDataGA.h" #import "TalkingDataAppCpa.h" @interface XSCollector : NSObject //单例 + (instancetype)sharedManager; - (instancetype)initWithAppId:(id)appId gameId:(id)gameId; @property (nonatomic, class) XSCollector* shared; @property (nonatomic, readonly) NSString* identifer; /// Register a user for data analyzer. - (void)registerWithAccount:(NSString*)account name:(NSString*)name; /// Login a user for data analyzer. - (void)loginWithAccount:(NSString*)account name:(NSString*)name; /// Update account. - (void)reportWithAccount:(NSString*)account name:(NSString*)name level:(NSInteger)level server:(NSString*)sever; ///新增接口: Update age and gender(0:未知, 1:男, 2:女) -(void)reportWithAccount:(NSString *)account name:(NSString *)name age:(int)age gender:(NSInteger)gender; //充值请求 - (void)onChargeRequst:(NSString *)orderId iapId:(NSString *)iapId currencyAmount:(double)currencyAmount currencyType:(NSString *)currencyType virtualCurrencyAmount:(double)virtualCurrencyAmount paymentType:(NSString *)paymentType; //充值成功,确认玩家支付成功时调用. - (void)onChargeSuccess:(NSString *)orderId; //TD 自定义事件 -(void)onEvent:(NSString *)eventId eventData:(id)parm; @end