MLGAItem Class Reference

Inherits from NSObject
Declared in MLGameAnalytics.h

Overview

Track the game item events.

+ onPurchase:itemCount:itemType:virtualCurrency:

Tracks the occurrence of purchasing item.

+ (void)onPurchase:(NSString *)item itemCount:(int)count itemType:(NSString *)type virtualCurrency:(double)virtualCurrencyAmount

Parameters

item

The customize item id.

count

The purchase number of items.

type

The customize item type.

virtualCurrencyAmount

The virtual currency amount.

Declared In

MLGameAnalytics.h

+ onUse:itemType:itemCount:

Tracks the occurrence of using item.

+ (void)onUse:(NSString *)item itemType:(NSString *)type itemCount:(int)count

Parameters

item

The customize item id.

type

The item type

count

The used number of items.

Declared In

MLGameAnalytics.h

+ onReward:itemType:itemCount:reason:

Tracks the occurrence of rewarding item.

+ (void)onReward:(NSString *)item itemType:(NSString *)type itemCount:(int)count reason:(nullable NSString *)reason

Parameters

item

The customize item id.

type

The customize item type.

count

The purchase number of items.

reason

The reason why rewarding the item.

Declared In

MLGameAnalytics.h