mergemilitary/Assets/Plugins/ToukaGames/ToponSDK/unityads/UnityAds.framework/Headers/UnityServices.h

60 lines
1.8 KiB
Objective-C
Executable File

#import <UnityAds/UnityAdsInitializationDelegate.h>
NS_ASSUME_NONNULL_BEGIN
@interface UnityServices : NSObject
- (instancetype)init NS_UNAVAILABLE;
+ (instancetype)initialize NS_UNAVAILABLE;
/**
* Initializes UnityAds. UnityAds should be initialized when app starts.
*
* @param gameId Unique identifier for a game, given by Unity Ads admin tools or Unity editor.
* @param testMode Set this flag to `YES` to indicate test mode and show only test ads.
* @param initializationDelegate Delegate for UnityAdsInitializationDelegate callbacks
*/
+ (void) initialize: (NSString *)gameId
testMode: (BOOL)testMode
initializationDelegate: (nullable id<UnityAdsInitializationDelegate>)initializationDelegate;
/**
* Get the current debug status of `UnityAds`.
*
* @return If `YES`, `UnityAds` will provide verbose logs.
*/
+ (BOOL) getDebugMode;
/**
* Set the logging verbosity of `UnityAds`. Debug mode indicates verbose logging.
* @warning Does not relate to test mode for ad content.
* @param enableDebugMode `YES` for verbose logging.
*/
+ (void)setDebugMode: (BOOL)enableDebugMode;
/**
* Check to see if the current device supports using Unity Ads.
*
* @return If `NO`, the current device cannot initialize `UnityAds` or show ads.
*/
+ (BOOL) isSupported;
/**
* Check the version of this `UnityAds` SDK
*
* @return String representing the current version name.
*/
+ (NSString *)getVersion;
/**
* Check that `UnityAds` has been initialized. This might be useful for debugging initialization problems.
*
* @return If `YES`, Unity Ads has been successfully initialized.
*/
+ (BOOL) isInitialized;
+ (NSString *)createExpectedParametersString: (NSString *)fieldName current: (NSString *)current received: (NSString *)received;
@end
NS_ASSUME_NONNULL_END