ALTermsAndPrivacyPolicyFlowSettings.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. //
  2. // ALTermsAndPrivacyPolicyFlowSettings.h
  3. // AppLovinSDK
  4. //
  5. // Created by Chris Cong on 1/22/24.
  6. //
  7. #import <AppLovinSDK/ALSdkConfiguration.h>
  8. NS_ASSUME_NONNULL_BEGIN
  9. /**
  10. * DEPRECATED. This property is deprecated and will be removed in a future SDK version. Use the new MAX Terms and Privacy Policy Flow instead (see @c ALSdkSettings.termsAndPrivacyPolicyFlowSettings).
  11. */
  12. @interface ALConsentFlowSettings : NSObject
  13. @property (nonatomic, assign, getter=isEnabled) BOOL enabled;
  14. @property (nonatomic, copy, nullable) NSURL *privacyPolicyURL;
  15. @property (nonatomic, copy, nullable) NSURL *termsOfServiceURL;
  16. - (instancetype)init NS_UNAVAILABLE;
  17. + (instancetype)new NS_UNAVAILABLE;
  18. @end
  19. /**
  20. * This interface contains settings that enable the MAX Terms and Privacy Policy Flow.
  21. */
  22. @interface ALTermsAndPrivacyPolicyFlowSettings : ALConsentFlowSettings
  23. /**
  24. * Set this to @c YES to enable the Terms Flow. You must also provide your privacy policy and terms of service URLs in this object, and you must provide a @c NSUserTrackingUsageDescription string in your @code Info.plist @endcode file.
  25. *
  26. * This defaults to the value that you entered into your @code Info.plist @endcode file via @c AppLovinConsentFlowInfo ⇒ @c AppLovinConsentFlowEnabled.
  27. */
  28. @property (nonatomic, assign, getter=isEnabled) BOOL enabled;
  29. /**
  30. * URL for your company’s privacy policy. This is required in order to enable the Terms Flow.
  31. *
  32. * This defaults to the value that you entered into your @code Info.plist @endcode file via @c AppLovinConsentFlowInfo ⇒ @c AppLovinConsentFlowPrivacyPolicy.
  33. */
  34. @property (nonatomic, copy, nullable) NSURL *privacyPolicyURL;
  35. /**
  36. * URL for your company’s terms of service. This is optional; you can enable the Terms Flow with or without it.
  37. *
  38. * This defaults to the value that you entered into your @code Info.plist @endcode file via @c AppLovinConsentFlowInfo ⇒ @c AppLovinConsentFlowTermsOfService.
  39. */
  40. @property (nonatomic, copy, nullable) NSURL *termsOfServiceURL;
  41. /**
  42. * Set debug user geography. You may use this to test CMP flow by setting this to @c ALConsentFlowUserGeographyGDPR.
  43. *
  44. * The flow would only be shown to new users. If you wish to test the flow after completing the CMP prompt, you would need to delete and re-install the app.
  45. *
  46. * NOTE: The debug geography is used only when the app is in debug mode.
  47. */
  48. @property (nonatomic, assign) ALConsentFlowUserGeography debugUserGeography;
  49. @end
  50. NS_ASSUME_NONNULL_END