| | |
| | | #import <UIKit/UIKit.h> |
| | | #import "ChartboostDelegate.h" |
| | | @class CBInPlay; |
| | | FOUNDATION_EXPORT BOOL ChartboostInitialized(const char* function); |
| | | @interface Chartboost : NSObject |
| | | #pragma mark - Main Chartboost API |
| | | |
| | |
| | | the method will attempt to fetch data from the Chartboost API server. |
| | | */ |
| | | + (void)cacheInterstitial:(CBLocation)location; |
| | | |
| | | /*! |
| | | @abstract |
| | | Present an interstitial for the given CBLocation. |
| | |
| | | the method will attempt to fetch data from the Chartboost API server. |
| | | */ |
| | | + (void)cacheRewardedVideo:(CBLocation)location; |
| | | |
| | | |
| | | |
| | | /*! |
| | | @abstract |
| | |
| | | /*! |
| | | @abstract |
| | | Set a custom mediation library to append to the POST body of every request. |
| | | example setMediation:CBMediationMoPub withVersion:@"3.8.0" |
| | | example setMediation:CBMediationMoPub withLibraryVersion:@"3.8.0" adapterVersionn:@"2.0" |
| | | |
| | | @param library The constant for the name of the mediation library. |
| | | @param libraryVersion The version sent as a string. |
| | | @param libraryVersion The mediation library version sent as a string. |
| | | @param adapterVersion The adapter version sent as a string. |
| | | |
| | | @discussion This is an internal method used by mediation partners to track their usage. |
| | | */ |
| | | + (void)setMediation:(CBMediation)library withVersion:(NSString*)libraryVersion; |
| | | + (void)setMediation:(CBMediation)library withLibraryVersion:(NSString*)libraryVersion adapterVersion:(NSString*)adapterVersion; |
| | | |
| | | /*! |
| | | @abstract |
| | |
| | | |
| | | /*! |
| | | @abstract |
| | | Set to control how the fullscreen ad units should interact with the status bar. (CBStatusBarBehaviorIgnore by default). |
| | | |
| | | @param statusBarBehavior The param to set if fullscreen video should respect the status bar. |
| | | |
| | | @discussion See the enum value comments for descriptions on the values and their behavior. Only use this feature if your |
| | | application has the status bar enabled. |
| | | */ |
| | | + (void)setStatusBarBehavior:(CBStatusBarBehavior)statusBarBehavior; |
| | | |
| | | |
| | | /*! |
| | | @abstract |
| | | returns YES if auto IAP tracking is enabled, NO if it isn't. |
| | | |
| | | @discussion Call to check if automatic tracking of in-app purchases is enabled. |
| | |
| | | */ |
| | | + (BOOL)getAutoIAPTracking; |
| | | |
| | | /*! |
| | | @abstract |
| | | Mute/unmute chartboost ads. |
| | | @param mute YES all sounds, NO activates them. Default is NO |
| | | @discussion default value is NO |
| | | */ |
| | | + (void)setMuted:(BOOL)mute; |
| | | |
| | | /*! |
| | | @abstract |
| | | Set to restrict Chartboost's ability to collect personal data from the device. See CBPIDataUseConsent declaration for details |
| | | Note: This method should be called before starting the Chartboost SDK with startWithAppId:appSignature:delegate. |
| | | @param consent: set the consent level |
| | | @discussion Default value is Unknown |
| | | */ |
| | | + (void)setPIDataUseConsent:(CBPIDataUseConsent)consent; |
| | | |
| | | /*! |
| | | @abstract |
| | | Get the current consent setting |
| | | */ |
| | | + (CBPIDataUseConsent)getPIDataUseConsent; |
| | | |
| | | #pragma mark - Deprecated |
| | | + (void)restrictDataCollection:(BOOL)shouldRestrict __attribute__((deprecated("Use setPIDataUseConsent:(CBPIDataUseConsent)consent instead"))); |
| | | |
| | | + (BOOL)hasMoreApps:(CBLocation)location __attribute__((deprecated("This method is deprecated will always return false"))); |
| | | + (void)showMoreApps:(CBLocation)location __attribute__((deprecated("This method is deprecated and is a no-op"))); |
| | | + (void)showMoreApps:(UIViewController *)viewController |
| | | location:(CBLocation)location __attribute__((deprecated("This method is deprecated and is a no-op"))); |
| | | + (void)setShouldDisplayLoadingViewForMoreApps:(BOOL)shouldDisplay __attribute__((deprecated("This method is deprecated and is a no-op"))); |
| | | + (void)cacheMoreApps:(CBLocation)location __attribute__((deprecated("This method is deprecated and is a no-op"))); |
| | | + (void)setStatusBarBehavior:(CBStatusBarBehavior)statusBarBehavior __attribute__((deprecated("This method is deprecated and is a no-op"))); |
| | | + (void)setMediation:(CBMediation)library withVersion:(NSString*)libraryVersion DEPRECATED_MSG_ATTRIBUTE("Please use setMediation:withLibraryVersion:adapterVersion: instead."); |
| | | |
| | | @end |