| | |
| | | /* |
| | | * CBAnalytics.h |
| | | * Chartboost |
| | | * 6.6.0 |
| | | * |
| | | * Copyright 2011 Chartboost. All rights reserved. |
| | | */ |
| | | // |
| | | // CBAnalytics.h |
| | | // Chartboost |
| | | // |
| | | // Copyright 2018 Chartboost. All rights reserved. |
| | | // |
| | | // |
| | | |
| | | #import <Foundation/Foundation.h> |
| | | #import <StoreKit/StoreKit.h> |
| | | |
| | | /*! |
| | | @typedef NS_ENUM (NSUInteger, CBLevelType) |
| | | |
| | | @abstract |
| | | Used with trackLevelInfo calls to describe meta information about the level value as it |
| | | Used with trackLevelInfo calls to describe meta information about the level value as it |
| | | pertains to the game's context. |
| | | */ |
| | | typedef NS_ENUM(NSUInteger, CBLevelType) { |
| | |
| | | /*! |
| | | @abstract |
| | | Track an In App Purchase Event. |
| | | |
| | | |
| | | @param receipt The transaction receipt used to validate the purchase. |
| | | |
| | | @param productTitle The localized title of the product. |
| | |
| | | @param productCurrency The localized currency of the product. |
| | | |
| | | @param productIdentifier The IOS identifier for the product. |
| | | |
| | | |
| | | @discussion Tracks In App Purchases for later use with user segmentation |
| | | and targeting. |
| | | */ |
| | | */ |
| | | + (void)trackInAppPurchaseEvent:(NSData *)receipt |
| | | productTitle:(NSString *)productTitle |
| | | productDescription:(NSString *)productDescription |
| | | productPrice:(NSDecimalNumber *)productPrice |
| | | productCurrency:(NSString *)productCurrency |
| | | productIdentifier:(NSString *)productIdentifier; |
| | | productIdentifier:(NSString *)productIdentifier |
| | | DEPRECATED_MSG_ATTRIBUTE("This method is deprecated and will be removed in a future version."); |
| | | |
| | | /*! |
| | | @abstract |
| | | Track an In App Purchase Event. |
| | | |
| | | |
| | | @param receiptString The base64 encoded receipt string used to validate the purchase. |
| | | |
| | | @param productTitle The localized title of the product. |
| | |
| | | @param productCurrency The localized currency of the product. |
| | | |
| | | @param productIdentifier The IOS identifier for the product. |
| | | |
| | | |
| | | @discussion Tracks In App Purchases for later use with user segmentation |
| | | and targeting. |
| | | */ |
| | | */ |
| | | + (void)trackInAppPurchaseEventWithString:(NSString *)receiptString |
| | | productTitle:(NSString *)productTitle |
| | | productDescription:(NSString *)productDescription |
| | | productPrice:(NSDecimalNumber *)productPrice |
| | | productCurrency:(NSString *)productCurrency |
| | | productIdentifier:(NSString *)productIdentifier; |
| | | productTitle:(NSString *)productTitle |
| | | productDescription:(NSString *)productDescription |
| | | productPrice:(NSDecimalNumber *)productPrice |
| | | productCurrency:(NSString *)productCurrency |
| | | productIdentifier:(NSString *)productIdentifier |
| | | DEPRECATED_MSG_ATTRIBUTE("This method is deprecated and will be removed in a future version."); |
| | | /*! |
| | | @abstract |
| | | Track an In App Purchase Event. |
| | |
| | | and targeting. |
| | | */ |
| | | + (void)trackInAppPurchaseEvent:(NSData *)receipt |
| | | product:(SKProduct *)product; |
| | | product:(SKProduct *)product |
| | | DEPRECATED_MSG_ATTRIBUTE("This method is deprecated and will be removed in a future version."); |
| | | |
| | | |
| | | /*! |
| | | @abstract |
| | | Track level information about your user. Can be sequential levelling, non-sequential levelling, character level, or other. |
| | | Track level information about your user. Can be sequential levelling, non-sequential levelling, character level, or other. |
| | | |
| | | @param eventLabel A string that disambiguates the eventField. Use it to provides a human readable string to answer the question - What are we tracking ? |
| | | |
| | |
| | | eventField:(CBLevelType)eventField |
| | | mainLevel:(NSUInteger)mainLevel |
| | | subLevel:(NSUInteger)subLevel |
| | | description:(NSString*)description; |
| | | description:(NSString*)description |
| | | DEPRECATED_MSG_ATTRIBUTE("This method is deprecated and will be removed in a future version."); |
| | | |
| | | /*! |
| | | @abstract |
| | | Track level information about your user. Can be sequential levelling, non-sequential levelling, character level, or other. |
| | | Track level information about your user. Can be sequential levelling, non-sequential levelling, character level, or other. |
| | | |
| | | @param eventLabel A string that disambiguates the eventField. Use it to provides a human readable string to answer the question - What are we tracking ? |
| | | |
| | |
| | | + (void)trackLevelInfo:(NSString*)eventLabel |
| | | eventField:(CBLevelType)eventField |
| | | mainLevel:(NSUInteger)mainLevel |
| | | description:(NSString*)description; |
| | | description:(NSString*)description |
| | | DEPRECATED_MSG_ATTRIBUTE("This method is deprecated and will be removed in a future version."); |
| | | |
| | | @end |