No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UnityServices.h 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #import <UnityAds/UnityAdsInitializationDelegate.h>
  2. NS_ASSUME_NONNULL_BEGIN
  3. @interface UnityServices : NSObject
  4. - (instancetype)init NS_UNAVAILABLE;
  5. + (instancetype)initialize NS_UNAVAILABLE;
  6. /**
  7. * Initializes UnityAds. UnityAds should be initialized when app starts.
  8. *
  9. * @param gameId Unique identifier for a game, given by Unity Ads admin tools or Unity editor.
  10. * @param testMode Set this flag to `YES` to indicate test mode and show only test ads.
  11. * @param initializationDelegate Delegate for UnityAdsInitializationDelegate callbacks
  12. */
  13. + (void) initialize: (NSString *)gameId
  14. testMode: (BOOL)testMode
  15. initializationDelegate: (nullable id<UnityAdsInitializationDelegate>)initializationDelegate;
  16. /**
  17. * Get the current debug status of `UnityAds`.
  18. *
  19. * @return If `YES`, `UnityAds` will provide verbose logs.
  20. */
  21. + (BOOL) getDebugMode;
  22. /**
  23. * Set the logging verbosity of `UnityAds`. Debug mode indicates verbose logging.
  24. * @warning Does not relate to test mode for ad content.
  25. * @param enableDebugMode `YES` for verbose logging.
  26. */
  27. + (void)setDebugMode: (BOOL)enableDebugMode;
  28. /**
  29. * Check to see if the current device supports using Unity Ads.
  30. *
  31. * @return If `NO`, the current device cannot initialize `UnityAds` or show ads.
  32. */
  33. + (BOOL) isSupported;
  34. /**
  35. * Check the version of this `UnityAds` SDK
  36. *
  37. * @return String representing the current version name.
  38. */
  39. + (NSString *)getVersion;
  40. /**
  41. * Check that `UnityAds` has been initialized. This might be useful for debugging initialization problems.
  42. *
  43. * @return If `YES`, Unity Ads has been successfully initialized.
  44. */
  45. + (BOOL) isInitialized;
  46. + (NSString *)createExpectedParametersString: (NSString *)fieldName current: (NSString *)current received: (NSString *)received;
  47. @end
  48. NS_ASSUME_NONNULL_END