[NGAAppEvents.sharedInstance recordEvent:@"TestEventA"];
[NGAAppEvents.sharedInstance recordEvent:@"TestEventC" values:@{@"level" : @"10"}];
- (void)gaLogEventWithName:(NSString *)name parameters:(NSDictionary<NSString *, id> *)parameters;
根据需求确认是否调用Google Firebase的事件记录.
Purchase事件单独调用 (不会传送至Firebase)
/**
记录购买事件
@param contentID 物品ID
@param contentType 物品类型
@param product iOS 商品对象
@param trans iOS 交易对象
@param serverID 服务器ID
*/
- (void)recordPurchaseEventWithContentID:(NSString *)contentID contentType:(NSString *)contentType product:(SKProduct *)product transaction:(SKPaymentTransaction *)trans serverID:(NSString *)serverID;
/**
记录购买事件
@param contentID 物品ID
@param contentType 物品类型
@param revenue 金额
@param currency 货币单位 例如 @"USD", @"HKD", @"CNY", @"TWD" 等等, 更多请参考 https://www.xe.com/iso4217.php
@param serverID 服务器ID
*/
- (void)recordPurchaseEventWithContentID:(NSString *)contentID contentType:(NSString *)contentType revenue:(double)revenue currency:(NSString *)currency serverID:(NSString *)serverID DEPRECATED_MSG_ATTRIBUTE("Use - recordPurchaseEventWithContentID: contentType: product: transaction: serverID: instead");
[NGAAppEvents.sharedInstance recordPurchaseEventWithContentID:item.contentID
contentType:@"金币" product:product
transaction:transaction
serverID:self.serverID];