lpw
2 days ago 49b5f8ec0881daeb9c8bc62822a7e59e4e63e58d
frameworks/Didomi.xcframework/ios-arm64_x86_64-simulator/Didomi.framework/Headers/Didomi-Swift.h
@@ -1,6 +1,6 @@
#if 0
#elif defined(__arm64__) && __arm64__
// Generated by Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
// Generated by Apple Swift version 6.1 effective-5.10 (swiftlang-6.1.0.110.21 clang-1700.0.13.3)
#ifndef DIDOMI_SWIFT_H
#define DIDOMI_SWIFT_H
#pragma clang diagnostic push
@@ -42,6 +42,8 @@
#include <string.h>
#endif
#if defined(__cplusplus)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
#if defined(__arm64e__) && __has_include(<ptrauth.h>)
# include <ptrauth.h>
#else
@@ -55,6 +57,7 @@
# endif
#pragma clang diagnostic pop
#endif
#pragma clang diagnostic pop
#endif
#if !defined(SWIFT_TYPEDEFS)
@@ -62,6 +65,7 @@
# if __has_include(<uchar.h>)
#  include <uchar.h>
# elif !defined(__cplusplus)
typedef unsigned char char8_t;
typedef uint_least16_t char16_t;
typedef uint_least32_t char32_t;
# endif
@@ -290,6 +294,7 @@
#pragma clang diagnostic ignored "-Wunknown-pragmas"
#pragma clang diagnostic ignored "-Wnullability"
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
#if __has_attribute(external_source_symbol)
# pragma push_macro("any")
@@ -299,7 +304,6 @@
#endif
#if defined(__OBJC__)
/// Consent status to a vendor or purpose.
typedef SWIFT_ENUM(NSInteger, ConsentStatus, open) {
@@ -312,7 +316,6 @@
@class DDMCurrentUserStatusPurpose;
@class DDMCurrentUserStatusVendor;
enum Regulation : NSInteger;
SWIFT_CLASS_NAMED("CurrentUserStatus")
@interface DDMCurrentUserStatus : NSObject
@property (nonatomic, readonly, copy) NSDictionary<NSString *, DDMCurrentUserStatusPurpose *> * _Nonnull purposes;
@@ -324,15 +327,31 @@
@property (nonatomic, readonly, copy) NSString * _Nonnull additionalConsent;
@property (nonatomic, readonly) enum Regulation regulation;
@property (nonatomic, readonly, copy) NSString * _Nonnull didomiDCS;
@property (nonatomic, readonly, copy) NSString * _Nonnull gppString;
- (nonnull instancetype)initWithPurposes:(NSDictionary<NSString *, DDMCurrentUserStatusPurpose *> * _Nonnull)purposes vendors:(NSDictionary<NSString *, DDMCurrentUserStatusVendor *> * _Nonnull)vendors OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
@interface DDMCurrentUserStatus (SWIFT_EXTENSION(Didomi))
/// Determine if the User Status (consent) should be collected or not based on the current instance. This function will return <em>true</em> if:
/// <ul>
///   <li>
///     Regulation is different from NONE and
///   </li>
///   <li>
///     Current user status is partial and
///   </li>
///   <li>
///     The number of days before displaying the notice again has exceeded the limit specified on the Console or no User Status has been saved
///     This function will return <em>false</em> otherwise.
///   </li>
/// </ul>
///
/// returns:
/// A boolean depending if the Current User Status (consent) should be collected or not.
- (BOOL)shouldUserStatusBeCollected SWIFT_WARN_UNUSED_RESULT;
@end
SWIFT_CLASS_NAMED("PurposeStatus")
@interface DDMCurrentUserStatusPurpose : NSObject
@@ -344,7 +363,6 @@
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
SWIFT_CLASS_NAMED("VendorStatus")
@interface DDMCurrentUserStatusVendor : NSObject
@property (nonatomic, readonly, copy) NSString * _Nonnull id;
@@ -354,7 +372,6 @@
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
/// Class used to asynchronously enable and disable purposes and vendors through different methods.
/// These changes will not be reflected on the user status until the <code>commit</code> method is called.
@@ -425,20 +442,23 @@
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
@protocol ViewProviderDelegate;
@class DidomiInitializeParameters;
@class DDMErrorEvent;
@class DDMEventListener;
@class DDMPurpose;
@class DDMVendor;
SWIFT_CLASS("_TtC6Didomi6Didomi")
@interface Didomi : NSObject
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) Didomi * _Nonnull shared;)
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) Didomi * _Nonnull shared;)
+ (Didomi * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
+ (void)setShared:(Didomi * _Nonnull)value;
@property (nonatomic, weak) id <ViewProviderDelegate> _Nullable viewProviderDelegate;
/// Determine the regulation applicable for the user.
/// If no regulation is applicable, will return <code>.none</code> in Swift or <code>RegulationNone</code> in Objective-C.
///
/// returns:
/// the applicable regulation as <code>Regulation</code>.
@property (nonatomic, readonly) enum Regulation applicableRegulation;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
/// Initialize the Didomi SDK
/// \param parameters object specifying parameters to initialize the SDK.
@@ -463,23 +483,6 @@
/// returns:
/// <em>true</em> if consent status has been updated, <em>false</em> otherwise.
- (BOOL)setUserConsentStatusWithEnabledPurposeIds:(NSSet<NSString *> * _Nonnull)enabledPurposeIds disabledPurposeIds:(NSSet<NSString *> * _Nonnull)disabledPurposeIds enabledVendorIds:(NSSet<NSString *> * _Nonnull)enabledVendorIds disabledVendorIds:(NSSet<NSString *> * _Nonnull)disabledVendorIds SWIFT_WARN_UNUSED_RESULT;
/// Determine if the user is subject to a regulation that requires consent collection.
/// This along with the choices that the user has or has not made
/// will determine each time that the SDK is initialized if the notice should be displayed or not.
///
/// returns:
/// <em>true</em> if consent is required, <em>false</em> if it is not required.
- (BOOL)isConsentRequired SWIFT_WARN_UNUSED_RESULT SWIFT_DEPRECATED_MSG("Use shouldUserStatusBeCollected() instead.");
/// Determine if consent information is available for all purposes and vendors that are required
///
/// returns:
/// <em>true</em> if consent is required and consent information is available, <em>false</em> otherwise.
- (BOOL)isUserConsentStatusPartial SWIFT_WARN_UNUSED_RESULT SWIFT_DEPRECATED_MSG("Use shouldUserStatusBeCollected() instead.");
/// Determine if legitimate interest information is available for all purposes and vendors that are required
///
/// returns:
/// <em>true</em> if consent is required and legitimate interest information is available, <em>false</em> otherwise.
- (BOOL)isUserLegitimateInterestStatusPartial SWIFT_WARN_UNUSED_RESULT SWIFT_DEPRECATED_MSG("Use shouldUserStatusBeCollected() instead.");
/// Set the user status for purposes and vendors for consent and legitimate interest.
/// \param purposesConsentStatus boolean used to determine if consent will be enabled or disabled for all purposes.
///
@@ -541,10 +544,14 @@
/// Remove all consents for the user
- (void)reset;
/// Get the configured purpose IDs
/// @return
///
/// returns:
/// array of required purpose IDs.
- (NSSet<NSString *> * _Nonnull)getRequiredPurposeIds SWIFT_WARN_UNUSED_RESULT;
/// Get the configured vendor IDs
/// @return
///
/// returns:
/// array of required vendor IDs.
- (NSSet<NSString *> * _Nonnull)getRequiredVendorIds SWIFT_WARN_UNUSED_RESULT;
/// Add an event listener
/// \param listener listener to be added.
@@ -633,7 +640,6 @@
};
@class UIViewController;
/// Protocol used to provide the view controllers for the preferences/purposes and notice view.
/// To provide customs views, this protocol will have to be implemented.
/// This protocol is implemented by the Didomi singleton to provide the default view controllers.
@@ -642,7 +648,7 @@
/// Method used to provide a view controller that will be used to display the notice.
/// \param position string that represents the position of the notice (e.g.: bottom, popup, etc.).
///
/// \param skipped Whether notice display is skipped and Preferences are displayed directly
/// \param noticeSkipped Whether notice display is skipped and Preferences are displayed directly
///
///
/// returns:
@@ -655,15 +661,16 @@
- (UIViewController * _Nonnull)getPreferencesViewController SWIFT_WARN_UNUSED_RESULT;
@end
@interface Didomi (SWIFT_EXTENSION(Didomi)) <ViewProviderDelegate>
- (UIViewController * _Nonnull)getNoticeViewControllerWithPosition:(NSString * _Nonnull)position noticeSkipped:(BOOL)noticeSkipped SWIFT_WARN_UNUSED_RESULT;
- (UIViewController * _Nonnull)getPreferencesViewController SWIFT_WARN_UNUSED_RESULT;
@end
@class DidomiUserParameters;
@class UserAuthParams;
@class LoadUserStatusResult;
@class DDMUserStatus;
@protocol UserAuth;
@interface Didomi (SWIFT_EXTENSION(Didomi))
/// Provide the objects required to display UI elements
- (void)setupUIWithContainerController:(UIViewController * _Nonnull)containerController;
@@ -675,8 +682,14 @@
/// Hide the notice if it is currently displayed
- (void)hideNotice;
/// Check if the consent notice is currently displayed
/// @return
- (BOOL)isNoticeVisible SWIFT_WARN_UNUSED_RESULT;
/// Determine if the user is subject to a regulation that requires consent collection.
/// This along with the choices that the user has or has not made
/// will determine each time that the SDK is initialized if the notice should be displayed or not.
///
/// returns:
/// <em>true</em> if consent is required, <em>false</em> if it is not required.
- (BOOL)isConsentRequired SWIFT_WARN_UNUSED_RESULT SWIFT_DEPRECATED_MSG("Instead, check that applicableRegulation is not .none in Swift or RegulationNone in Objective-C");
/// Check if the consent should be collected depending on if we have any consents or if we have some consents but the number of days before displaying the notice again has not expired yet
///
/// returns:
@@ -703,10 +716,20 @@
/// returns:
/// <em>true</em> if user status is partial, <em>false</em> otherwise
- (BOOL)isUserStatusPartial SWIFT_WARN_UNUSED_RESULT;
/// Determine if consent information is available for all purposes and vendors that are required
///
/// returns:
/// <em>true</em> if consent is required and consent information is available, <em>false</em> otherwise.
- (BOOL)isUserConsentStatusPartial SWIFT_WARN_UNUSED_RESULT SWIFT_DEPRECATED_MSG("Use shouldUserStatusBeCollected() instead.");
/// Determine if legitimate interest information is available for all purposes and vendors that are required
///
/// returns:
/// <em>true</em> if consent is required and legitimate interest information is available, <em>false</em> otherwise.
- (BOOL)isUserLegitimateInterestStatusPartial SWIFT_WARN_UNUSED_RESULT SWIFT_DEPRECATED_MSG("Use shouldUserStatusBeCollected() instead.");
/// Show the preferences screen when/if the SDK is ready. By default the purposes list will be displayed.
/// \param controller view controller from where preferences will be presented.
///
/// \param view a value from <code>Didomi.Views</code>. It can be <code>.purposes</code> or <code>.sensitivePersonalInformation</code> or <code>.vendors</code> (<code>ViewsPurposes</code> or <code>ViewsSensitivePersonalInformation</code> or <code>ViewsVendors</code> in Objective-C)
/// \param view a value from <code>Didomi.Views</code>. It can be <code>.purposes</code> or <code>.vendors</code> (<code>ViewsPurposes</code> or <code>ViewsVendors</code> in Objective-C). <code>.sensitivePersonalInformation</code> is now deprecated.
///
- (void)showPreferencesWithController:(UIViewController * _Nullable)controller view:(enum Views)view;
/// Hide the preferences popup for purposes
@@ -783,21 +806,25 @@
///
- (void)setLogLevelWithMinLevel:(uint8_t)minLevel;
/// Set organization user information
/// \param parameters The organization user parameters
///
- (void)setUser:(DidomiUserParameters * _Nonnull)parameters;
/// Set organization user information
/// \param id Organization user ID
///
- (void)setUserWithId:(NSString * _Nonnull)id;
- (void)setUserWithId:(NSString * _Nonnull)id SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
/// Set organization user information
/// \param id Organization user ID
///
/// \param isUnderage Underage status of the user
///
- (void)setUserWithId:(NSString * _Nonnull)id isUnderage:(BOOL)isUnderage;
- (void)setUserWithId:(NSString * _Nonnull)id isUnderage:(BOOL)isUnderage SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
/// Set organization user information and display consent notice if it is needed after synchronization
/// \param id Organization user ID
///
/// \param containerController View controller from which we can setup Didomi UI
///
- (void)setUserWithId:(NSString * _Nonnull)id containerController:(UIViewController * _Nonnull)containerController;
- (void)setUserWithId:(NSString * _Nonnull)id containerController:(UIViewController * _Nonnull)containerController SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
/// Set organization user information and display consent notice if it is needed after synchronization
/// \param id Organization user ID
///
@@ -805,23 +832,25 @@
///
/// \param containerController View controller from which we can setup Didomi UI
///
- (void)setUserWithId:(NSString * _Nonnull)id isUnderage:(BOOL)isUnderage containerController:(UIViewController * _Nonnull)containerController;
- (void)setUserWithId:(NSString * _Nonnull)id isUnderage:(BOOL)isUnderage containerController:(UIViewController * _Nonnull)containerController SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
/// Set organization user information with authentication
/// \param userAuthParams Organization user authentication params
///
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams;
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
/// Set organization user information with authentication
/// \param userAuthParams Organization user authentication params
///
/// \param isUnderage Underage status of the user
///
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams isUnderage:(BOOL)isUnderage;
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams isUnderage:(BOOL)isUnderage SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
/// Set organization user information with authentication
/// \param userAuthParams Organization user authentication params.
///
/// \param synchronizedUsers Additional users to synchronize user status.
///
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams synchronizedUsers:(NSArray<UserAuthParams *> * _Nonnull)synchronizedUsers;
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams synchronizedUsers:(NSArray<UserAuthParams *> * _Nonnull)synchronizedUsers SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams dcsUser:(UserAuthParams * _Nonnull)dcsUser SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams synchronizedUsers:(NSArray<UserAuthParams *> * _Nonnull)synchronizedUsers dcsUser:(UserAuthParams * _Nonnull)dcsUser SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
/// Set organization user information with authentication
/// \param userAuthParams Organization user authentication params.
///
@@ -829,13 +858,37 @@
///
/// \param isUnderage Underage status of the user
///
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams synchronizedUsers:(NSArray<UserAuthParams *> * _Nonnull)synchronizedUsers isUnderage:(BOOL)isUnderage;
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams synchronizedUsers:(NSArray<UserAuthParams *> * _Nonnull)synchronizedUsers isUnderage:(BOOL)isUnderage SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
/// Set organization user information with authentication
/// \param userAuthParams Organization user authentication params.
///
/// \param dcsUser User authentication parameters used for DCS signature.
///
/// \param isUnderage Underage status of the user
///
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams dcsUser:(UserAuthParams * _Nonnull)dcsUser isUnderage:(BOOL)isUnderage SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
/// Set organization user information with authentication
/// \param userAuthParams Organization user authentication params.
///
/// \param synchronizedUsers Additional users to synchronize user status.
///
/// \param dcsUser User authentication parameters used for DCS signature
///
/// \param isUnderage Underage status of the user
///
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams synchronizedUsers:(NSArray<UserAuthParams *> * _Nonnull)synchronizedUsers dcsUser:(UserAuthParams * _Nonnull)dcsUser isUnderage:(BOOL)isUnderage SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
/// Set organization user information with authentication, and display consent notice if it is needed after synchronization
/// \param userAuthParams Organization user authentication params
///
/// \param containerController View controller from which we can setup Didomi UI
///
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams containerController:(UIViewController * _Nonnull)containerController;
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams containerController:(UIViewController * _Nonnull)containerController SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
/// Set organization user information with authentication, and display consent notice if it is needed after synchronization
/// \param userAuthParams Organization user authentication params
///
/// \param containerController View controller from which we can setup Didomi UI
///
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams dcsUser:(UserAuthParams * _Nonnull)dcsUser containerController:(UIViewController * _Nonnull)containerController SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
/// Set organization user information with authentication, and display consent notice if it is needed after synchronization
/// \param userAuthParams Organization user authentication params
///
@@ -843,7 +896,7 @@
///
/// \param containerController View controller from which we can setup Didomi UI
///
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams isUnderage:(BOOL)isUnderage containerController:(UIViewController * _Nonnull)containerController;
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams isUnderage:(BOOL)isUnderage containerController:(UIViewController * _Nonnull)containerController SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
/// Set organization user information with authentication, and display consent notice if it is needed after synchronization
/// \param userAuthParams Organization user authentication params.
///
@@ -851,7 +904,7 @@
///
/// \param containerController View controller from which we can setup Didomi UI
///
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams synchronizedUsers:(NSArray<UserAuthParams *> * _Nonnull)synchronizedUsers containerController:(UIViewController * _Nonnull)containerController;
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams synchronizedUsers:(NSArray<UserAuthParams *> * _Nonnull)synchronizedUsers containerController:(UIViewController * _Nonnull)containerController SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
/// Set organization user information with authentication, and display consent notice if it is needed after synchronization
/// \param userAuthParams Organization user authentication params.
///
@@ -861,13 +914,24 @@
///
/// \param containerController View controller from which we can setup Didomi UI
///
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams synchronizedUsers:(NSArray<UserAuthParams *> * _Nonnull)synchronizedUsers isUnderage:(BOOL)isUnderage containerController:(UIViewController * _Nonnull)containerController;
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams synchronizedUsers:(NSArray<UserAuthParams *> * _Nonnull)synchronizedUsers isUnderage:(BOOL)isUnderage containerController:(UIViewController * _Nonnull)containerController SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams synchronizedUsers:(NSArray<UserAuthParams *> * _Nonnull)synchronizedUsers dcsUser:(UserAuthParams * _Nonnull)dcsUser isUnderage:(BOOL)isUnderage containerController:(UIViewController * _Nonnull)containerController SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
/// Remove organization user information (should be called when the SDK is initialized).
- (void)clearUser;
/// Remove organization user information for all users (should be called when the SDK is initialized).
- (void)clearAllUsers;
/// Load the current user status for the specified users.
/// \param users An array of <code>DidomiUserParameters</code> representing the specified users’ authentication parameters.
///
/// \param callback A closure that returns an array of <code>LoadUserStatusResult</code> representing the current user status result for the specified users.
///
- (void)loadUserStatuses:(NSArray<DidomiUserParameters *> * _Nonnull)users callback:(void (^ _Nonnull)(NSArray<LoadUserStatusResult *> * _Nonnull))callback;
/// Get an instance of <code>UserStatus</code> containing all the information related to the user’s choices.
- (DDMUserStatus * _Nonnull)getUserStatus SWIFT_WARN_UNUSED_RESULT SWIFT_DEPRECATED_MSG("Use getCurrentUserStatus() instead.");
/// Get an instance of <code>CurrentUserStatus</code> containing all the information related to the user’s choices.
- (DDMCurrentUserStatus * _Nonnull)getCurrentUserStatus SWIFT_WARN_UNUSED_RESULT;
/// Get an instance of <code>CurrentUserStatus</code> containing all the information related to the user’s choices.
- (DDMCurrentUserStatus * _Nullable)getCurrentUserStatusWithUserAuth:(id <UserAuth> _Nonnull)userAuth SWIFT_WARN_UNUSED_RESULT;
/// Save user’s choices.
/// \param currentUserStatus instance of CurrentUserStatus containing the user’s choices.
///
@@ -885,7 +949,6 @@
@end
enum DDMErrorEventType : NSInteger;
/// Type used to represent unexpected situations during SDK initialization.
SWIFT_CLASS_NAMED("DidomiErrorEvent")
@interface DDMErrorEvent : NSObject
@@ -902,8 +965,8 @@
  DDMErrorEventTypeFailedAlready = 2,
  DDMErrorEventTypeConfigFileError = 3,
  DDMErrorEventTypeInvalidApiKey = 4,
  DDMErrorEventTypeErrorLoadingUIResource = 5,
};
/// Initialization parameters for Didomi SDK
SWIFT_CLASS("_TtC6Didomi26DidomiInitializeParameters")
@@ -913,10 +976,54 @@
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
@class NSNumber;
/// User parameters for the Didomi SDK.
/// \param userAuth The user’s main authentication.
///
/// \param dcsUserAuth The user authentication specific to the Didomi Consent String (DCS).
///
/// \param containerController The <code>UIViewController</code> used to display the notice if the consent has expired or the user is new.
///
/// \param isUnderage Indicates whether the user is underage (<code>nil</code> will keep the previous setting).
///
SWIFT_CLASS("_TtC6Didomi20DidomiUserParameters")
@interface DidomiUserParameters : NSObject
/// Initializer for Objective-C compatibility
- (nonnull instancetype)initWithUserAuth:(id <UserAuth> _Nonnull)userAuth dcsUserAuth:(UserAuthParams * _Nullable)dcsUserAuth containerController:(UIViewController * _Nullable)containerController isUnderage:(NSNumber * _Nonnull)isUnderage;
/// Initializer for Objective-C compatibility
- (nonnull instancetype)initWithUserAuth:(id <UserAuth> _Nonnull)userAuth dcsUserAuth:(UserAuthParams * _Nullable)dcsUserAuth containerController:(UIViewController * _Nullable)containerController;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
/// User parameters for Didomi SDK
/// \param userAuth The main user authentication.
///
/// \param dcsUserAuth The user authentication for Didomi Consent String.
///
/// \param synchronizedUser The synchronized user list.
///
/// \param activity The <code>UIViewController</code> if the notice should be displayed when the consent expired or the user is new.
///
/// \param isUnderage If the user is underage (<code>nil</code> will keep the previous setting).
///
/// \param overrideMainStorage If the main storage should be overridden (when multi-storage feature is enabled).
///
SWIFT_CLASS("_TtC6Didomi25DidomiMultiUserParameters")
@interface DidomiMultiUserParameters : DidomiUserParameters
/// Initializer for Objective-C compatibility
- (nonnull instancetype)initWithUserAuth:(id <UserAuth> _Nonnull)userAuth dcsUserAuth:(UserAuthParams * _Nullable)dcsUserAuth synchronizedUsers:(NSArray<UserAuthParams *> * _Nullable)synchronizedUsers containerController:(UIViewController * _Nullable)containerController isUnderage:(NSNumber * _Nonnull)isUnderage overrideMainStorage:(BOOL)overrideMainStorage;
/// Initializer for Objective-C compatibility
- (nonnull instancetype)initWithUserAuth:(id <UserAuth> _Nonnull)userAuth dcsUserAuth:(UserAuthParams * _Nullable)dcsUserAuth synchronizedUsers:(NSArray<UserAuthParams *> * _Nullable)synchronizedUsers containerController:(UIViewController * _Nullable)containerController isUnderage:(NSNumber * _Nonnull)isUnderage;
/// Initializer for Objective-C compatibility
- (nonnull instancetype)initWithUserAuth:(id <UserAuth> _Nonnull)userAuth dcsUserAuth:(UserAuthParams * _Nullable)dcsUserAuth synchronizedUsers:(NSArray<UserAuthParams *> * _Nullable)synchronizedUsers containerController:(UIViewController * _Nullable)containerController overrideMainStorage:(BOOL)overrideMainStorage;
/// Initializer for Objective-C compatibility
- (nonnull instancetype)initWithUserAuth:(id <UserAuth> _Nonnull)userAuth dcsUserAuth:(UserAuthParams * _Nullable)dcsUserAuth synchronizedUsers:(NSArray<UserAuthParams *> * _Nullable)synchronizedUsers containerController:(UIViewController * _Nullable)containerController;
@end
enum DDMEventType : NSInteger;
@class DDMSyncUserChangedEvent;
@class DDMSyncReadyEvent;
/// Class used as a listener for internal events occurred in the SDK.
SWIFT_CLASS_NAMED("EventListener")
@interface DDMEventListener : NSObject
@@ -932,7 +1039,7 @@
@property (nonatomic, copy) void (^ _Nonnull onNoticeClickDisagree)(enum DDMEventType);
@property (nonatomic, copy) void (^ _Nonnull onNoticeClickMoreInfo)(enum DDMEventType);
@property (nonatomic, copy) void (^ _Nonnull onNoticeClickViewVendors)(enum DDMEventType);
@property (nonatomic, copy) void (^ _Nonnull onNoticeClickViewSPIPurposes)(enum DDMEventType);
@property (nonatomic, copy) void (^ _Nonnull onNoticeClickViewSPIPurposes)(enum DDMEventType) SWIFT_DEPRECATED_MSG("SPI purposes are now displayed in preferences screen, please use onNoticeClickMoreInfo() instead.");
@property (nonatomic, copy) void (^ _Nonnull onNoticeClickPrivacyPolicy)(enum DDMEventType);
/// Preferences
@property (nonatomic, copy) void (^ _Nonnull onHidePreferences)(enum DDMEventType);
@@ -940,7 +1047,7 @@
/// Preferences - Views
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickViewPurposes)(enum DDMEventType);
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickViewVendors)(enum DDMEventType);
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickViewSPIPurposes)(enum DDMEventType);
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickViewSPIPurposes)(enum DDMEventType) SWIFT_DEPRECATED_MSG("SPI purposes are now displayed in preferences screen.");
/// Preferences - Purpose
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickAgreeToAll)(enum DDMEventType);
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickDisagreeToAll)(enum DDMEventType);
@@ -958,12 +1065,14 @@
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickVendorAgree)(enum DDMEventType, NSString * _Nullable);
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickVendorDisagree)(enum DDMEventType, NSString * _Nullable);
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickVendorSaveChoices)(enum DDMEventType);
/// Preferences - Sensitive Personal Information
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickSPIPurposeAgree)(enum DDMEventType, NSString * _Nullable);
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickSPIPurposeDisagree)(enum DDMEventType, NSString * _Nullable);
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickSPICategoryAgree)(enum DDMEventType, NSString * _Nullable);
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickSPICategoryDisagree)(enum DDMEventType, NSString * _Nullable);
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickSPIPurposeSaveChoices)(enum DDMEventType);
/// Preferences - Sensitive Personal Information (deprecated)
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickSPIPurposeAgree)(enum DDMEventType, NSString * _Nullable) SWIFT_DEPRECATED_MSG("SPI purposes are now treated as other purposes, please use onPreferencesClickPurposeAgree() instead.");
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickSPIPurposeDisagree)(enum DDMEventType, NSString * _Nullable) SWIFT_DEPRECATED_MSG("SPI purposes are now treated as other purposes, please use onPreferencesClickPurposeDisagree() instead.");
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickSPICategoryAgree)(enum DDMEventType, NSString * _Nullable) SWIFT_DEPRECATED_MSG("SPI purposes are now treated as other purposes, please use onPreferencesClickCategoryAgree() instead.");
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickSPICategoryDisagree)(enum DDMEventType, NSString * _Nullable) SWIFT_DEPRECATED_MSG("SPI purposes are now treated as other purposes, please use onPreferencesClickCategoryDisagree() instead.");
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickSPIPurposeSaveChoices)(enum DDMEventType) SWIFT_DEPRECATED_MSG("SPI purposes are now treated as other purposes, please use onPreferencesClickSaveChoices() instead.");
/// User
@property (nonatomic, copy) void (^ _Nonnull onSyncUserChanged)(DDMSyncUserChangedEvent * _Nonnull);
/// Sync
@property (nonatomic, copy) void (^ _Nonnull onSyncDone)(enum DDMEventType, NSString * _Nullable) SWIFT_DEPRECATED_MSG("Please use onSyncReady() instead");
@property (nonatomic, copy) void (^ _Nonnull onSyncReady)(DDMSyncReadyEvent * _Nonnull);
@@ -971,6 +1080,8 @@
/// Language
@property (nonatomic, copy) void (^ _Nonnull onLanguageUpdated)(enum DDMEventType, NSString * _Nullable);
@property (nonatomic, copy) void (^ _Nonnull onLanguageUpdateFailed)(enum DDMEventType, NSString * _Nullable);
@property (nonatomic, copy) void (^ _Nonnull onDCSSignatureReady)(enum DDMEventType);
@property (nonatomic, copy) void (^ _Nonnull onDCSSignatureError)(enum DDMEventType);
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
@@ -1005,30 +1116,71 @@
  DDMEventTypePreferencesClickVendorAgree = 25,
  DDMEventTypePreferencesClickVendorDisagree = 26,
  DDMEventTypePreferencesClickVendorSaveChoices = 27,
/// User
  DDMEventTypeSyncUserChanged = 28,
/// Sync
  DDMEventTypeSyncDone = 28,
  DDMEventTypeSyncReady = 29,
  DDMEventTypeSyncError = 30,
  DDMEventTypeSyncDone = 29,
  DDMEventTypeSyncReady = 30,
  DDMEventTypeSyncError = 31,
/// Language
  DDMEventTypeLanguageUpdated = 31,
  DDMEventTypeLanguageUpdateFailed = 32,
  DDMEventTypeLanguageUpdated = 32,
  DDMEventTypeLanguageUpdateFailed = 33,
/// Preferences - Sensitive Personal Information
  DDMEventTypeNoticeClickViewSPIPurposes = 33,
  DDMEventTypePreferencesClickViewSPIPurposes = 34,
  DDMEventTypePreferencesClickSPIPurposeAgree = 35,
  DDMEventTypePreferencesClickSPIPurposeDisagree = 36,
  DDMEventTypePreferencesClickSPICategoryAgree = 37,
  DDMEventTypePreferencesClickSPICategoryDisagree = 38,
  DDMEventTypePreferencesClickSPIPurposeSaveChoices = 39,
  DDMEventTypeNoticeClickViewSPIPurposes = 34,
  DDMEventTypePreferencesClickViewSPIPurposes = 35,
  DDMEventTypePreferencesClickSPIPurposeAgree = 36,
  DDMEventTypePreferencesClickSPIPurposeDisagree = 37,
  DDMEventTypePreferencesClickSPICategoryAgree = 38,
  DDMEventTypePreferencesClickSPICategoryDisagree = 39,
  DDMEventTypePreferencesClickSPIPurposeSaveChoices = 40,
/// DCS Signature
  DDMEventTypeDcsSignatureReady = 41,
  DDMEventTypeDcsSignatureError = 42,
};
enum Status : NSInteger;
SWIFT_CLASS("_TtC6Didomi20LoadUserStatusResult")
@interface LoadUserStatusResult : NSObject
@property (nonatomic, readonly, strong) DDMCurrentUserStatus * _Nonnull userStatus;
@property (nonatomic, readonly, copy) NSString * _Nonnull syncDate;
@property (nonatomic, readonly, strong) id <UserAuth> _Nonnull userAuth;
@property (nonatomic, readonly) enum Status status;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
@interface LoadUserStatusResult (SWIFT_EXTENSION(Didomi))
@end
typedef SWIFT_ENUM(NSInteger, Status, open) {
/// Consent was loaded from cache
  StatusCached = 0,
/// Consent was canceled
  StatusCanceled = 1,
/// Invalid - See <code>error</code> for more details
  StatusInvalid = 2,
/// New User - no consent
  StatusNewUser = 3,
/// Consent was successfully synced
  StatusSynced = 4,
};
@interface LoadUserStatusResult (SWIFT_EXTENSION(Didomi))
@end
/// Error status for <code>loadUserStatuses</code> API
typedef SWIFT_ENUM(NSInteger, ErrorStatus, open) {
/// Max user count has been reached
  ErrorStatusMaxUserCountReached = 0,
/// Multi-Storage disabled
  ErrorStatusMultiStorageDisabled = 1,
/// Sync disabled
  ErrorStatusSyncDisabled = 2,
/// Sync failed
  ErrorStatusSyncFailed = 3,
/// DCS signature failed
  ErrorStatusDcsSignatureFailed = 4,
};
/// Public class representing a single Purpose configuration.
SWIFT_CLASS_NAMED("Purpose")
@@ -1052,7 +1204,6 @@
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
/// Regulation for which Didomi SDK is currently configured. Only one regulation is active at each run.
typedef SWIFT_ENUM(NSInteger, Regulation, open) {
  RegulationGdpr = 0,
@@ -1073,10 +1224,11 @@
  RegulationNone = 15,
};
/// Class used to contain information about the occurrence of the Sync Ready event.
SWIFT_CLASS_NAMED("SyncReadyEvent")
@interface DDMSyncReadyEvent : NSObject
/// String that indicates the organization user ID used during sync.
@property (nonatomic, readonly, copy) NSString * _Nullable organizationUserId;
/// Boolean that indicates whether remote user status has been applied locally.
@property (nonatomic, readonly) BOOL statusApplied;
/// Closure used to send a Sync Acknowledged API Event. Returns <em>true</em> if the API Event was sent, <em>false</em> otherwise.
@@ -1085,75 +1237,78 @@
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
/// Protocol for User Authentication
/// declare the user id
SWIFT_PROTOCOL("_TtP6Didomi8UserAuth_")
@protocol UserAuth
/// Organization ID to associate with the user
@property (nonatomic, readonly, copy) NSString * _Nonnull id;
/// Class used to contain information about the occurrence of the Sync User Changed event.
SWIFT_CLASS_NAMED("SyncUserChangedEvent")
@interface DDMSyncUserChangedEvent : NSObject
/// String that indicates the organization user ID used during sync.
@property (nonatomic, readonly, strong) id <UserAuth> _Nullable userAuth;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
/// Protocol for User Authentication
/// declare the Organization User ID
SWIFT_PROTOCOL("_TtP6Didomi8UserAuth_")
@protocol UserAuth
/// Organization User ID
@property (nonatomic, readonly, copy) NSString * _Nonnull id;
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
@end
/// Protocol for User Authentication Parameters
/// declare the common properties of encryption / hash parameters
SWIFT_CLASS("_TtC6Didomi14UserAuthParams")
@interface UserAuthParams : NSObject <UserAuth>
/// Organization ID to associate with the user
/// Organization User ID
@property (nonatomic, copy) NSString * _Nonnull id;
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
@property (nonatomic, readonly) NSUInteger hash;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
/// User Authentication Parameters with encryption
SWIFT_CLASS("_TtC6Didomi28UserAuthWithEncryptionParams")
@interface UserAuthWithEncryptionParams : UserAuthParams
/// Convenience initializers without optional TimeInterval, necessary for Objective-C
- (nonnull instancetype)initWithId:(NSString * _Nonnull)id algorithm:(NSString * _Nonnull)algorithm secretID:(NSString * _Nonnull)secretID initializationVector:(NSString * _Nonnull)initializationVector;
/// Initializer for Objective-C
- (nonnull instancetype)initWithId:(NSString * _Nonnull)id algorithm:(NSString * _Nonnull)algorithm secretID:(NSString * _Nonnull)secretID initializationVector:(NSString * _Nonnull)initializationVector legacyExpiration:(NSTimeInterval)legacyExpiration;
/// Initialization Vector used for computing the user ID
@property (nonatomic, copy) NSString * _Nonnull initializationVector;
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
@property (nonatomic, readonly) NSUInteger hash;
@end
/// User Authentication Parameters with hash
SWIFT_CLASS("_TtC6Didomi22UserAuthWithHashParams")
@interface UserAuthWithHashParams : UserAuthParams
/// Convenience initializers without optional TimeInterval, necessary for Objective-C
- (nonnull instancetype)initWithId:(NSString * _Nonnull)id algorithm:(NSString * _Nonnull)algorithm secretID:(NSString * _Nonnull)secretID digest:(NSString * _Nonnull)digest salt:(NSString * _Nullable)salt;
/// Initializer for Objective-C
- (nonnull instancetype)initWithId:(NSString * _Nonnull)id algorithm:(NSString * _Nonnull)algorithm secretID:(NSString * _Nonnull)secretID digest:(NSString * _Nonnull)digest salt:(NSString * _Nullable)salt legacyExpiration:(NSTimeInterval)legacyExpiration;
/// Salt used for computing the user ID (optional)
/// Salt used for computing the OUID (optional)
@property (nonatomic, copy) NSString * _Nullable salt;
/// Digest used for representing the user ID
/// Digest used for representing the OUID
@property (nonatomic, copy) NSString * _Nonnull digest;
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
@property (nonatomic, readonly) NSUInteger hash;
@end
/// User Authentication Parameters without encryption
SWIFT_CLASS("_TtC6Didomi21UserAuthWithoutParams")
@interface UserAuthWithoutParams : NSObject <UserAuth>
- (nonnull instancetype)initWithId:(NSString * _Nonnull)id OBJC_DESIGNATED_INITIALIZER;
/// Organization User ID
@property (nonatomic, copy) NSString * _Nonnull id;
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
@property (nonatomic, readonly) NSUInteger hash;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
@class DDMUserStatusPurposes;
@class DDMUserStatusVendors;
SWIFT_CLASS_NAMED("UserStatus")
@interface DDMUserStatus : NSObject
@property (nonatomic, readonly, strong) DDMUserStatusPurposes * _Nonnull purposes;
@@ -1170,11 +1325,35 @@
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
@interface DDMUserStatus (SWIFT_EXTENSION(Didomi))
@end
@class DDMUserStatusIDs;
SWIFT_CLASS_NAMED("Purposes")
@interface DDMUserStatusPurposes : NSObject
@property (nonatomic, readonly, strong) DDMUserStatusIDs * _Nonnull consent;
@property (nonatomic, readonly, strong) DDMUserStatusIDs * _Nonnull legitimateInterest;
@property (nonatomic, readonly, strong) DDMUserStatusIDs * _Nonnull global;
@property (nonatomic, readonly, copy) NSSet<NSString *> * _Nonnull essential;
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
@interface DDMUserStatus (SWIFT_EXTENSION(Didomi))
@end
SWIFT_CLASS_NAMED("IDs")
@interface DDMUserStatusIDs : NSObject
@property (nonatomic, readonly, copy) NSSet<NSString *> * _Nonnull enabled;
@property (nonatomic, readonly, copy) NSSet<NSString *> * _Nonnull disabled;
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
@interface DDMUserStatus (SWIFT_EXTENSION(Didomi))
@end
SWIFT_CLASS_NAMED("Vendors")
@interface DDMUserStatusVendors : NSObject
@@ -1188,39 +1367,8 @@
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
@interface DDMUserStatus (SWIFT_EXTENSION(Didomi))
@end
SWIFT_CLASS_NAMED("Purposes")
@interface DDMUserStatusPurposes : NSObject
@property (nonatomic, readonly, strong) DDMUserStatusIDs * _Nonnull consent;
@property (nonatomic, readonly, strong) DDMUserStatusIDs * _Nonnull legitimateInterest;
@property (nonatomic, readonly, strong) DDMUserStatusIDs * _Nonnull global;
@property (nonatomic, readonly, copy) NSSet<NSString *> * _Nonnull essential;
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
@interface DDMUserStatus (SWIFT_EXTENSION(Didomi))
@end
SWIFT_CLASS_NAMED("IDs")
@interface DDMUserStatusIDs : NSObject
@property (nonatomic, readonly, copy) NSSet<NSString *> * _Nonnull enabled;
@property (nonatomic, readonly, copy) NSSet<NSString *> * _Nonnull disabled;
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
@class DDMVendorNamespaces;
@class DDMVendorURL;
/// Public class representing a single Vendor configuration.
SWIFT_CLASS_NAMED("Vendor")
@interface DDMVendor : NSObject
@@ -1279,10 +1427,20 @@
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
@interface DDMVendor (SWIFT_EXTENSION(Didomi))
@end
/// Store additional IDs (IAB, num) for the Vendor.
SWIFT_CLASS_NAMED("Namespaces")
@interface DDMVendorNamespaces : NSObject
@property (nonatomic, readonly, copy) NSString * _Nullable iab2;
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
@interface DDMVendor (SWIFT_EXTENSION(Didomi))
@end
/// Store localized URLs for privacy policy and LI claim.
SWIFT_CLASS_NAMED("URL")
@@ -1294,22 +1452,6 @@
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
@interface DDMVendor (SWIFT_EXTENSION(Didomi))
@end
/// Store additional IDs (IAB, num) for the Vendor.
SWIFT_CLASS_NAMED("Namespaces")
@interface DDMVendorNamespaces : NSObject
@property (nonatomic, readonly, copy) NSString * _Nullable iab2;
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
#endif
#if __has_attribute(external_source_symbol)
@@ -1321,7 +1463,7 @@
#endif
#elif defined(__x86_64__) && __x86_64__
// Generated by Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
// Generated by Apple Swift version 6.1 effective-5.10 (swiftlang-6.1.0.110.21 clang-1700.0.13.3)
#ifndef DIDOMI_SWIFT_H
#define DIDOMI_SWIFT_H
#pragma clang diagnostic push
@@ -1363,6 +1505,8 @@
#include <string.h>
#endif
#if defined(__cplusplus)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
#if defined(__arm64e__) && __has_include(<ptrauth.h>)
# include <ptrauth.h>
#else
@@ -1376,6 +1520,7 @@
# endif
#pragma clang diagnostic pop
#endif
#pragma clang diagnostic pop
#endif
#if !defined(SWIFT_TYPEDEFS)
@@ -1383,6 +1528,7 @@
# if __has_include(<uchar.h>)
#  include <uchar.h>
# elif !defined(__cplusplus)
typedef unsigned char char8_t;
typedef uint_least16_t char16_t;
typedef uint_least32_t char32_t;
# endif
@@ -1611,6 +1757,7 @@
#pragma clang diagnostic ignored "-Wunknown-pragmas"
#pragma clang diagnostic ignored "-Wnullability"
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
#if __has_attribute(external_source_symbol)
# pragma push_macro("any")
@@ -1620,7 +1767,6 @@
#endif
#if defined(__OBJC__)
/// Consent status to a vendor or purpose.
typedef SWIFT_ENUM(NSInteger, ConsentStatus, open) {
@@ -1633,7 +1779,6 @@
@class DDMCurrentUserStatusPurpose;
@class DDMCurrentUserStatusVendor;
enum Regulation : NSInteger;
SWIFT_CLASS_NAMED("CurrentUserStatus")
@interface DDMCurrentUserStatus : NSObject
@property (nonatomic, readonly, copy) NSDictionary<NSString *, DDMCurrentUserStatusPurpose *> * _Nonnull purposes;
@@ -1645,15 +1790,31 @@
@property (nonatomic, readonly, copy) NSString * _Nonnull additionalConsent;
@property (nonatomic, readonly) enum Regulation regulation;
@property (nonatomic, readonly, copy) NSString * _Nonnull didomiDCS;
@property (nonatomic, readonly, copy) NSString * _Nonnull gppString;
- (nonnull instancetype)initWithPurposes:(NSDictionary<NSString *, DDMCurrentUserStatusPurpose *> * _Nonnull)purposes vendors:(NSDictionary<NSString *, DDMCurrentUserStatusVendor *> * _Nonnull)vendors OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
@interface DDMCurrentUserStatus (SWIFT_EXTENSION(Didomi))
/// Determine if the User Status (consent) should be collected or not based on the current instance. This function will return <em>true</em> if:
/// <ul>
///   <li>
///     Regulation is different from NONE and
///   </li>
///   <li>
///     Current user status is partial and
///   </li>
///   <li>
///     The number of days before displaying the notice again has exceeded the limit specified on the Console or no User Status has been saved
///     This function will return <em>false</em> otherwise.
///   </li>
/// </ul>
///
/// returns:
/// A boolean depending if the Current User Status (consent) should be collected or not.
- (BOOL)shouldUserStatusBeCollected SWIFT_WARN_UNUSED_RESULT;
@end
SWIFT_CLASS_NAMED("PurposeStatus")
@interface DDMCurrentUserStatusPurpose : NSObject
@@ -1665,7 +1826,6 @@
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
SWIFT_CLASS_NAMED("VendorStatus")
@interface DDMCurrentUserStatusVendor : NSObject
@property (nonatomic, readonly, copy) NSString * _Nonnull id;
@@ -1675,7 +1835,6 @@
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
/// Class used to asynchronously enable and disable purposes and vendors through different methods.
/// These changes will not be reflected on the user status until the <code>commit</code> method is called.
@@ -1746,20 +1905,23 @@
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
@protocol ViewProviderDelegate;
@class DidomiInitializeParameters;
@class DDMErrorEvent;
@class DDMEventListener;
@class DDMPurpose;
@class DDMVendor;
SWIFT_CLASS("_TtC6Didomi6Didomi")
@interface Didomi : NSObject
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) Didomi * _Nonnull shared;)
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) Didomi * _Nonnull shared;)
+ (Didomi * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
+ (void)setShared:(Didomi * _Nonnull)value;
@property (nonatomic, weak) id <ViewProviderDelegate> _Nullable viewProviderDelegate;
/// Determine the regulation applicable for the user.
/// If no regulation is applicable, will return <code>.none</code> in Swift or <code>RegulationNone</code> in Objective-C.
///
/// returns:
/// the applicable regulation as <code>Regulation</code>.
@property (nonatomic, readonly) enum Regulation applicableRegulation;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
/// Initialize the Didomi SDK
/// \param parameters object specifying parameters to initialize the SDK.
@@ -1784,23 +1946,6 @@
/// returns:
/// <em>true</em> if consent status has been updated, <em>false</em> otherwise.
- (BOOL)setUserConsentStatusWithEnabledPurposeIds:(NSSet<NSString *> * _Nonnull)enabledPurposeIds disabledPurposeIds:(NSSet<NSString *> * _Nonnull)disabledPurposeIds enabledVendorIds:(NSSet<NSString *> * _Nonnull)enabledVendorIds disabledVendorIds:(NSSet<NSString *> * _Nonnull)disabledVendorIds SWIFT_WARN_UNUSED_RESULT;
/// Determine if the user is subject to a regulation that requires consent collection.
/// This along with the choices that the user has or has not made
/// will determine each time that the SDK is initialized if the notice should be displayed or not.
///
/// returns:
/// <em>true</em> if consent is required, <em>false</em> if it is not required.
- (BOOL)isConsentRequired SWIFT_WARN_UNUSED_RESULT SWIFT_DEPRECATED_MSG("Use shouldUserStatusBeCollected() instead.");
/// Determine if consent information is available for all purposes and vendors that are required
///
/// returns:
/// <em>true</em> if consent is required and consent information is available, <em>false</em> otherwise.
- (BOOL)isUserConsentStatusPartial SWIFT_WARN_UNUSED_RESULT SWIFT_DEPRECATED_MSG("Use shouldUserStatusBeCollected() instead.");
/// Determine if legitimate interest information is available for all purposes and vendors that are required
///
/// returns:
/// <em>true</em> if consent is required and legitimate interest information is available, <em>false</em> otherwise.
- (BOOL)isUserLegitimateInterestStatusPartial SWIFT_WARN_UNUSED_RESULT SWIFT_DEPRECATED_MSG("Use shouldUserStatusBeCollected() instead.");
/// Set the user status for purposes and vendors for consent and legitimate interest.
/// \param purposesConsentStatus boolean used to determine if consent will be enabled or disabled for all purposes.
///
@@ -1862,10 +2007,14 @@
/// Remove all consents for the user
- (void)reset;
/// Get the configured purpose IDs
/// @return
///
/// returns:
/// array of required purpose IDs.
- (NSSet<NSString *> * _Nonnull)getRequiredPurposeIds SWIFT_WARN_UNUSED_RESULT;
/// Get the configured vendor IDs
/// @return
///
/// returns:
/// array of required vendor IDs.
- (NSSet<NSString *> * _Nonnull)getRequiredVendorIds SWIFT_WARN_UNUSED_RESULT;
/// Add an event listener
/// \param listener listener to be added.
@@ -1954,7 +2103,6 @@
};
@class UIViewController;
/// Protocol used to provide the view controllers for the preferences/purposes and notice view.
/// To provide customs views, this protocol will have to be implemented.
/// This protocol is implemented by the Didomi singleton to provide the default view controllers.
@@ -1963,7 +2111,7 @@
/// Method used to provide a view controller that will be used to display the notice.
/// \param position string that represents the position of the notice (e.g.: bottom, popup, etc.).
///
/// \param skipped Whether notice display is skipped and Preferences are displayed directly
/// \param noticeSkipped Whether notice display is skipped and Preferences are displayed directly
///
///
/// returns:
@@ -1976,15 +2124,16 @@
- (UIViewController * _Nonnull)getPreferencesViewController SWIFT_WARN_UNUSED_RESULT;
@end
@interface Didomi (SWIFT_EXTENSION(Didomi)) <ViewProviderDelegate>
- (UIViewController * _Nonnull)getNoticeViewControllerWithPosition:(NSString * _Nonnull)position noticeSkipped:(BOOL)noticeSkipped SWIFT_WARN_UNUSED_RESULT;
- (UIViewController * _Nonnull)getPreferencesViewController SWIFT_WARN_UNUSED_RESULT;
@end
@class DidomiUserParameters;
@class UserAuthParams;
@class LoadUserStatusResult;
@class DDMUserStatus;
@protocol UserAuth;
@interface Didomi (SWIFT_EXTENSION(Didomi))
/// Provide the objects required to display UI elements
- (void)setupUIWithContainerController:(UIViewController * _Nonnull)containerController;
@@ -1996,8 +2145,14 @@
/// Hide the notice if it is currently displayed
- (void)hideNotice;
/// Check if the consent notice is currently displayed
/// @return
- (BOOL)isNoticeVisible SWIFT_WARN_UNUSED_RESULT;
/// Determine if the user is subject to a regulation that requires consent collection.
/// This along with the choices that the user has or has not made
/// will determine each time that the SDK is initialized if the notice should be displayed or not.
///
/// returns:
/// <em>true</em> if consent is required, <em>false</em> if it is not required.
- (BOOL)isConsentRequired SWIFT_WARN_UNUSED_RESULT SWIFT_DEPRECATED_MSG("Instead, check that applicableRegulation is not .none in Swift or RegulationNone in Objective-C");
/// Check if the consent should be collected depending on if we have any consents or if we have some consents but the number of days before displaying the notice again has not expired yet
///
/// returns:
@@ -2024,10 +2179,20 @@
/// returns:
/// <em>true</em> if user status is partial, <em>false</em> otherwise
- (BOOL)isUserStatusPartial SWIFT_WARN_UNUSED_RESULT;
/// Determine if consent information is available for all purposes and vendors that are required
///
/// returns:
/// <em>true</em> if consent is required and consent information is available, <em>false</em> otherwise.
- (BOOL)isUserConsentStatusPartial SWIFT_WARN_UNUSED_RESULT SWIFT_DEPRECATED_MSG("Use shouldUserStatusBeCollected() instead.");
/// Determine if legitimate interest information is available for all purposes and vendors that are required
///
/// returns:
/// <em>true</em> if consent is required and legitimate interest information is available, <em>false</em> otherwise.
- (BOOL)isUserLegitimateInterestStatusPartial SWIFT_WARN_UNUSED_RESULT SWIFT_DEPRECATED_MSG("Use shouldUserStatusBeCollected() instead.");
/// Show the preferences screen when/if the SDK is ready. By default the purposes list will be displayed.
/// \param controller view controller from where preferences will be presented.
///
/// \param view a value from <code>Didomi.Views</code>. It can be <code>.purposes</code> or <code>.sensitivePersonalInformation</code> or <code>.vendors</code> (<code>ViewsPurposes</code> or <code>ViewsSensitivePersonalInformation</code> or <code>ViewsVendors</code> in Objective-C)
/// \param view a value from <code>Didomi.Views</code>. It can be <code>.purposes</code> or <code>.vendors</code> (<code>ViewsPurposes</code> or <code>ViewsVendors</code> in Objective-C). <code>.sensitivePersonalInformation</code> is now deprecated.
///
- (void)showPreferencesWithController:(UIViewController * _Nullable)controller view:(enum Views)view;
/// Hide the preferences popup for purposes
@@ -2104,21 +2269,25 @@
///
- (void)setLogLevelWithMinLevel:(uint8_t)minLevel;
/// Set organization user information
/// \param parameters The organization user parameters
///
- (void)setUser:(DidomiUserParameters * _Nonnull)parameters;
/// Set organization user information
/// \param id Organization user ID
///
- (void)setUserWithId:(NSString * _Nonnull)id;
- (void)setUserWithId:(NSString * _Nonnull)id SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
/// Set organization user information
/// \param id Organization user ID
///
/// \param isUnderage Underage status of the user
///
- (void)setUserWithId:(NSString * _Nonnull)id isUnderage:(BOOL)isUnderage;
- (void)setUserWithId:(NSString * _Nonnull)id isUnderage:(BOOL)isUnderage SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
/// Set organization user information and display consent notice if it is needed after synchronization
/// \param id Organization user ID
///
/// \param containerController View controller from which we can setup Didomi UI
///
- (void)setUserWithId:(NSString * _Nonnull)id containerController:(UIViewController * _Nonnull)containerController;
- (void)setUserWithId:(NSString * _Nonnull)id containerController:(UIViewController * _Nonnull)containerController SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
/// Set organization user information and display consent notice if it is needed after synchronization
/// \param id Organization user ID
///
@@ -2126,23 +2295,25 @@
///
/// \param containerController View controller from which we can setup Didomi UI
///
- (void)setUserWithId:(NSString * _Nonnull)id isUnderage:(BOOL)isUnderage containerController:(UIViewController * _Nonnull)containerController;
- (void)setUserWithId:(NSString * _Nonnull)id isUnderage:(BOOL)isUnderage containerController:(UIViewController * _Nonnull)containerController SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
/// Set organization user information with authentication
/// \param userAuthParams Organization user authentication params
///
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams;
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
/// Set organization user information with authentication
/// \param userAuthParams Organization user authentication params
///
/// \param isUnderage Underage status of the user
///
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams isUnderage:(BOOL)isUnderage;
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams isUnderage:(BOOL)isUnderage SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
/// Set organization user information with authentication
/// \param userAuthParams Organization user authentication params.
///
/// \param synchronizedUsers Additional users to synchronize user status.
///
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams synchronizedUsers:(NSArray<UserAuthParams *> * _Nonnull)synchronizedUsers;
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams synchronizedUsers:(NSArray<UserAuthParams *> * _Nonnull)synchronizedUsers SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams dcsUser:(UserAuthParams * _Nonnull)dcsUser SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams synchronizedUsers:(NSArray<UserAuthParams *> * _Nonnull)synchronizedUsers dcsUser:(UserAuthParams * _Nonnull)dcsUser SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
/// Set organization user information with authentication
/// \param userAuthParams Organization user authentication params.
///
@@ -2150,13 +2321,37 @@
///
/// \param isUnderage Underage status of the user
///
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams synchronizedUsers:(NSArray<UserAuthParams *> * _Nonnull)synchronizedUsers isUnderage:(BOOL)isUnderage;
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams synchronizedUsers:(NSArray<UserAuthParams *> * _Nonnull)synchronizedUsers isUnderage:(BOOL)isUnderage SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
/// Set organization user information with authentication
/// \param userAuthParams Organization user authentication params.
///
/// \param dcsUser User authentication parameters used for DCS signature.
///
/// \param isUnderage Underage status of the user
///
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams dcsUser:(UserAuthParams * _Nonnull)dcsUser isUnderage:(BOOL)isUnderage SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
/// Set organization user information with authentication
/// \param userAuthParams Organization user authentication params.
///
/// \param synchronizedUsers Additional users to synchronize user status.
///
/// \param dcsUser User authentication parameters used for DCS signature
///
/// \param isUnderage Underage status of the user
///
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams synchronizedUsers:(NSArray<UserAuthParams *> * _Nonnull)synchronizedUsers dcsUser:(UserAuthParams * _Nonnull)dcsUser isUnderage:(BOOL)isUnderage SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
/// Set organization user information with authentication, and display consent notice if it is needed after synchronization
/// \param userAuthParams Organization user authentication params
///
/// \param containerController View controller from which we can setup Didomi UI
///
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams containerController:(UIViewController * _Nonnull)containerController;
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams containerController:(UIViewController * _Nonnull)containerController SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
/// Set organization user information with authentication, and display consent notice if it is needed after synchronization
/// \param userAuthParams Organization user authentication params
///
/// \param containerController View controller from which we can setup Didomi UI
///
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams dcsUser:(UserAuthParams * _Nonnull)dcsUser containerController:(UIViewController * _Nonnull)containerController SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
/// Set organization user information with authentication, and display consent notice if it is needed after synchronization
/// \param userAuthParams Organization user authentication params
///
@@ -2164,7 +2359,7 @@
///
/// \param containerController View controller from which we can setup Didomi UI
///
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams isUnderage:(BOOL)isUnderage containerController:(UIViewController * _Nonnull)containerController;
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams isUnderage:(BOOL)isUnderage containerController:(UIViewController * _Nonnull)containerController SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
/// Set organization user information with authentication, and display consent notice if it is needed after synchronization
/// \param userAuthParams Organization user authentication params.
///
@@ -2172,7 +2367,7 @@
///
/// \param containerController View controller from which we can setup Didomi UI
///
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams synchronizedUsers:(NSArray<UserAuthParams *> * _Nonnull)synchronizedUsers containerController:(UIViewController * _Nonnull)containerController;
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams synchronizedUsers:(NSArray<UserAuthParams *> * _Nonnull)synchronizedUsers containerController:(UIViewController * _Nonnull)containerController SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
/// Set organization user information with authentication, and display consent notice if it is needed after synchronization
/// \param userAuthParams Organization user authentication params.
///
@@ -2182,13 +2377,24 @@
///
/// \param containerController View controller from which we can setup Didomi UI
///
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams synchronizedUsers:(NSArray<UserAuthParams *> * _Nonnull)synchronizedUsers isUnderage:(BOOL)isUnderage containerController:(UIViewController * _Nonnull)containerController;
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams synchronizedUsers:(NSArray<UserAuthParams *> * _Nonnull)synchronizedUsers isUnderage:(BOOL)isUnderage containerController:(UIViewController * _Nonnull)containerController SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
- (void)setUserWithUserAuthParams:(UserAuthParams * _Nonnull)userAuthParams synchronizedUsers:(NSArray<UserAuthParams *> * _Nonnull)synchronizedUsers dcsUser:(UserAuthParams * _Nonnull)dcsUser isUnderage:(BOOL)isUnderage containerController:(UIViewController * _Nonnull)containerController SWIFT_DEPRECATED_MSG("Use setUser(DidomiUserParameters) instead.");
/// Remove organization user information (should be called when the SDK is initialized).
- (void)clearUser;
/// Remove organization user information for all users (should be called when the SDK is initialized).
- (void)clearAllUsers;
/// Load the current user status for the specified users.
/// \param users An array of <code>DidomiUserParameters</code> representing the specified users’ authentication parameters.
///
/// \param callback A closure that returns an array of <code>LoadUserStatusResult</code> representing the current user status result for the specified users.
///
- (void)loadUserStatuses:(NSArray<DidomiUserParameters *> * _Nonnull)users callback:(void (^ _Nonnull)(NSArray<LoadUserStatusResult *> * _Nonnull))callback;
/// Get an instance of <code>UserStatus</code> containing all the information related to the user’s choices.
- (DDMUserStatus * _Nonnull)getUserStatus SWIFT_WARN_UNUSED_RESULT SWIFT_DEPRECATED_MSG("Use getCurrentUserStatus() instead.");
/// Get an instance of <code>CurrentUserStatus</code> containing all the information related to the user’s choices.
- (DDMCurrentUserStatus * _Nonnull)getCurrentUserStatus SWIFT_WARN_UNUSED_RESULT;
/// Get an instance of <code>CurrentUserStatus</code> containing all the information related to the user’s choices.
- (DDMCurrentUserStatus * _Nullable)getCurrentUserStatusWithUserAuth:(id <UserAuth> _Nonnull)userAuth SWIFT_WARN_UNUSED_RESULT;
/// Save user’s choices.
/// \param currentUserStatus instance of CurrentUserStatus containing the user’s choices.
///
@@ -2206,7 +2412,6 @@
@end
enum DDMErrorEventType : NSInteger;
/// Type used to represent unexpected situations during SDK initialization.
SWIFT_CLASS_NAMED("DidomiErrorEvent")
@interface DDMErrorEvent : NSObject
@@ -2223,8 +2428,8 @@
  DDMErrorEventTypeFailedAlready = 2,
  DDMErrorEventTypeConfigFileError = 3,
  DDMErrorEventTypeInvalidApiKey = 4,
  DDMErrorEventTypeErrorLoadingUIResource = 5,
};
/// Initialization parameters for Didomi SDK
SWIFT_CLASS("_TtC6Didomi26DidomiInitializeParameters")
@@ -2234,10 +2439,54 @@
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
@class NSNumber;
/// User parameters for the Didomi SDK.
/// \param userAuth The user’s main authentication.
///
/// \param dcsUserAuth The user authentication specific to the Didomi Consent String (DCS).
///
/// \param containerController The <code>UIViewController</code> used to display the notice if the consent has expired or the user is new.
///
/// \param isUnderage Indicates whether the user is underage (<code>nil</code> will keep the previous setting).
///
SWIFT_CLASS("_TtC6Didomi20DidomiUserParameters")
@interface DidomiUserParameters : NSObject
/// Initializer for Objective-C compatibility
- (nonnull instancetype)initWithUserAuth:(id <UserAuth> _Nonnull)userAuth dcsUserAuth:(UserAuthParams * _Nullable)dcsUserAuth containerController:(UIViewController * _Nullable)containerController isUnderage:(NSNumber * _Nonnull)isUnderage;
/// Initializer for Objective-C compatibility
- (nonnull instancetype)initWithUserAuth:(id <UserAuth> _Nonnull)userAuth dcsUserAuth:(UserAuthParams * _Nullable)dcsUserAuth containerController:(UIViewController * _Nullable)containerController;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
/// User parameters for Didomi SDK
/// \param userAuth The main user authentication.
///
/// \param dcsUserAuth The user authentication for Didomi Consent String.
///
/// \param synchronizedUser The synchronized user list.
///
/// \param activity The <code>UIViewController</code> if the notice should be displayed when the consent expired or the user is new.
///
/// \param isUnderage If the user is underage (<code>nil</code> will keep the previous setting).
///
/// \param overrideMainStorage If the main storage should be overridden (when multi-storage feature is enabled).
///
SWIFT_CLASS("_TtC6Didomi25DidomiMultiUserParameters")
@interface DidomiMultiUserParameters : DidomiUserParameters
/// Initializer for Objective-C compatibility
- (nonnull instancetype)initWithUserAuth:(id <UserAuth> _Nonnull)userAuth dcsUserAuth:(UserAuthParams * _Nullable)dcsUserAuth synchronizedUsers:(NSArray<UserAuthParams *> * _Nullable)synchronizedUsers containerController:(UIViewController * _Nullable)containerController isUnderage:(NSNumber * _Nonnull)isUnderage overrideMainStorage:(BOOL)overrideMainStorage;
/// Initializer for Objective-C compatibility
- (nonnull instancetype)initWithUserAuth:(id <UserAuth> _Nonnull)userAuth dcsUserAuth:(UserAuthParams * _Nullable)dcsUserAuth synchronizedUsers:(NSArray<UserAuthParams *> * _Nullable)synchronizedUsers containerController:(UIViewController * _Nullable)containerController isUnderage:(NSNumber * _Nonnull)isUnderage;
/// Initializer for Objective-C compatibility
- (nonnull instancetype)initWithUserAuth:(id <UserAuth> _Nonnull)userAuth dcsUserAuth:(UserAuthParams * _Nullable)dcsUserAuth synchronizedUsers:(NSArray<UserAuthParams *> * _Nullable)synchronizedUsers containerController:(UIViewController * _Nullable)containerController overrideMainStorage:(BOOL)overrideMainStorage;
/// Initializer for Objective-C compatibility
- (nonnull instancetype)initWithUserAuth:(id <UserAuth> _Nonnull)userAuth dcsUserAuth:(UserAuthParams * _Nullable)dcsUserAuth synchronizedUsers:(NSArray<UserAuthParams *> * _Nullable)synchronizedUsers containerController:(UIViewController * _Nullable)containerController;
@end
enum DDMEventType : NSInteger;
@class DDMSyncUserChangedEvent;
@class DDMSyncReadyEvent;
/// Class used as a listener for internal events occurred in the SDK.
SWIFT_CLASS_NAMED("EventListener")
@interface DDMEventListener : NSObject
@@ -2253,7 +2502,7 @@
@property (nonatomic, copy) void (^ _Nonnull onNoticeClickDisagree)(enum DDMEventType);
@property (nonatomic, copy) void (^ _Nonnull onNoticeClickMoreInfo)(enum DDMEventType);
@property (nonatomic, copy) void (^ _Nonnull onNoticeClickViewVendors)(enum DDMEventType);
@property (nonatomic, copy) void (^ _Nonnull onNoticeClickViewSPIPurposes)(enum DDMEventType);
@property (nonatomic, copy) void (^ _Nonnull onNoticeClickViewSPIPurposes)(enum DDMEventType) SWIFT_DEPRECATED_MSG("SPI purposes are now displayed in preferences screen, please use onNoticeClickMoreInfo() instead.");
@property (nonatomic, copy) void (^ _Nonnull onNoticeClickPrivacyPolicy)(enum DDMEventType);
/// Preferences
@property (nonatomic, copy) void (^ _Nonnull onHidePreferences)(enum DDMEventType);
@@ -2261,7 +2510,7 @@
/// Preferences - Views
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickViewPurposes)(enum DDMEventType);
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickViewVendors)(enum DDMEventType);
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickViewSPIPurposes)(enum DDMEventType);
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickViewSPIPurposes)(enum DDMEventType) SWIFT_DEPRECATED_MSG("SPI purposes are now displayed in preferences screen.");
/// Preferences - Purpose
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickAgreeToAll)(enum DDMEventType);
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickDisagreeToAll)(enum DDMEventType);
@@ -2279,12 +2528,14 @@
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickVendorAgree)(enum DDMEventType, NSString * _Nullable);
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickVendorDisagree)(enum DDMEventType, NSString * _Nullable);
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickVendorSaveChoices)(enum DDMEventType);
/// Preferences - Sensitive Personal Information
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickSPIPurposeAgree)(enum DDMEventType, NSString * _Nullable);
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickSPIPurposeDisagree)(enum DDMEventType, NSString * _Nullable);
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickSPICategoryAgree)(enum DDMEventType, NSString * _Nullable);
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickSPICategoryDisagree)(enum DDMEventType, NSString * _Nullable);
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickSPIPurposeSaveChoices)(enum DDMEventType);
/// Preferences - Sensitive Personal Information (deprecated)
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickSPIPurposeAgree)(enum DDMEventType, NSString * _Nullable) SWIFT_DEPRECATED_MSG("SPI purposes are now treated as other purposes, please use onPreferencesClickPurposeAgree() instead.");
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickSPIPurposeDisagree)(enum DDMEventType, NSString * _Nullable) SWIFT_DEPRECATED_MSG("SPI purposes are now treated as other purposes, please use onPreferencesClickPurposeDisagree() instead.");
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickSPICategoryAgree)(enum DDMEventType, NSString * _Nullable) SWIFT_DEPRECATED_MSG("SPI purposes are now treated as other purposes, please use onPreferencesClickCategoryAgree() instead.");
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickSPICategoryDisagree)(enum DDMEventType, NSString * _Nullable) SWIFT_DEPRECATED_MSG("SPI purposes are now treated as other purposes, please use onPreferencesClickCategoryDisagree() instead.");
@property (nonatomic, copy) void (^ _Nonnull onPreferencesClickSPIPurposeSaveChoices)(enum DDMEventType) SWIFT_DEPRECATED_MSG("SPI purposes are now treated as other purposes, please use onPreferencesClickSaveChoices() instead.");
/// User
@property (nonatomic, copy) void (^ _Nonnull onSyncUserChanged)(DDMSyncUserChangedEvent * _Nonnull);
/// Sync
@property (nonatomic, copy) void (^ _Nonnull onSyncDone)(enum DDMEventType, NSString * _Nullable) SWIFT_DEPRECATED_MSG("Please use onSyncReady() instead");
@property (nonatomic, copy) void (^ _Nonnull onSyncReady)(DDMSyncReadyEvent * _Nonnull);
@@ -2292,6 +2543,8 @@
/// Language
@property (nonatomic, copy) void (^ _Nonnull onLanguageUpdated)(enum DDMEventType, NSString * _Nullable);
@property (nonatomic, copy) void (^ _Nonnull onLanguageUpdateFailed)(enum DDMEventType, NSString * _Nullable);
@property (nonatomic, copy) void (^ _Nonnull onDCSSignatureReady)(enum DDMEventType);
@property (nonatomic, copy) void (^ _Nonnull onDCSSignatureError)(enum DDMEventType);
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
@@ -2326,30 +2579,71 @@
  DDMEventTypePreferencesClickVendorAgree = 25,
  DDMEventTypePreferencesClickVendorDisagree = 26,
  DDMEventTypePreferencesClickVendorSaveChoices = 27,
/// User
  DDMEventTypeSyncUserChanged = 28,
/// Sync
  DDMEventTypeSyncDone = 28,
  DDMEventTypeSyncReady = 29,
  DDMEventTypeSyncError = 30,
  DDMEventTypeSyncDone = 29,
  DDMEventTypeSyncReady = 30,
  DDMEventTypeSyncError = 31,
/// Language
  DDMEventTypeLanguageUpdated = 31,
  DDMEventTypeLanguageUpdateFailed = 32,
  DDMEventTypeLanguageUpdated = 32,
  DDMEventTypeLanguageUpdateFailed = 33,
/// Preferences - Sensitive Personal Information
  DDMEventTypeNoticeClickViewSPIPurposes = 33,
  DDMEventTypePreferencesClickViewSPIPurposes = 34,
  DDMEventTypePreferencesClickSPIPurposeAgree = 35,
  DDMEventTypePreferencesClickSPIPurposeDisagree = 36,
  DDMEventTypePreferencesClickSPICategoryAgree = 37,
  DDMEventTypePreferencesClickSPICategoryDisagree = 38,
  DDMEventTypePreferencesClickSPIPurposeSaveChoices = 39,
  DDMEventTypeNoticeClickViewSPIPurposes = 34,
  DDMEventTypePreferencesClickViewSPIPurposes = 35,
  DDMEventTypePreferencesClickSPIPurposeAgree = 36,
  DDMEventTypePreferencesClickSPIPurposeDisagree = 37,
  DDMEventTypePreferencesClickSPICategoryAgree = 38,
  DDMEventTypePreferencesClickSPICategoryDisagree = 39,
  DDMEventTypePreferencesClickSPIPurposeSaveChoices = 40,
/// DCS Signature
  DDMEventTypeDcsSignatureReady = 41,
  DDMEventTypeDcsSignatureError = 42,
};
enum Status : NSInteger;
SWIFT_CLASS("_TtC6Didomi20LoadUserStatusResult")
@interface LoadUserStatusResult : NSObject
@property (nonatomic, readonly, strong) DDMCurrentUserStatus * _Nonnull userStatus;
@property (nonatomic, readonly, copy) NSString * _Nonnull syncDate;
@property (nonatomic, readonly, strong) id <UserAuth> _Nonnull userAuth;
@property (nonatomic, readonly) enum Status status;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
@interface LoadUserStatusResult (SWIFT_EXTENSION(Didomi))
@end
typedef SWIFT_ENUM(NSInteger, Status, open) {
/// Consent was loaded from cache
  StatusCached = 0,
/// Consent was canceled
  StatusCanceled = 1,
/// Invalid - See <code>error</code> for more details
  StatusInvalid = 2,
/// New User - no consent
  StatusNewUser = 3,
/// Consent was successfully synced
  StatusSynced = 4,
};
@interface LoadUserStatusResult (SWIFT_EXTENSION(Didomi))
@end
/// Error status for <code>loadUserStatuses</code> API
typedef SWIFT_ENUM(NSInteger, ErrorStatus, open) {
/// Max user count has been reached
  ErrorStatusMaxUserCountReached = 0,
/// Multi-Storage disabled
  ErrorStatusMultiStorageDisabled = 1,
/// Sync disabled
  ErrorStatusSyncDisabled = 2,
/// Sync failed
  ErrorStatusSyncFailed = 3,
/// DCS signature failed
  ErrorStatusDcsSignatureFailed = 4,
};
/// Public class representing a single Purpose configuration.
SWIFT_CLASS_NAMED("Purpose")
@@ -2373,7 +2667,6 @@
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
/// Regulation for which Didomi SDK is currently configured. Only one regulation is active at each run.
typedef SWIFT_ENUM(NSInteger, Regulation, open) {
  RegulationGdpr = 0,
@@ -2394,10 +2687,11 @@
  RegulationNone = 15,
};
/// Class used to contain information about the occurrence of the Sync Ready event.
SWIFT_CLASS_NAMED("SyncReadyEvent")
@interface DDMSyncReadyEvent : NSObject
/// String that indicates the organization user ID used during sync.
@property (nonatomic, readonly, copy) NSString * _Nullable organizationUserId;
/// Boolean that indicates whether remote user status has been applied locally.
@property (nonatomic, readonly) BOOL statusApplied;
/// Closure used to send a Sync Acknowledged API Event. Returns <em>true</em> if the API Event was sent, <em>false</em> otherwise.
@@ -2406,75 +2700,78 @@
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
/// Protocol for User Authentication
/// declare the user id
SWIFT_PROTOCOL("_TtP6Didomi8UserAuth_")
@protocol UserAuth
/// Organization ID to associate with the user
@property (nonatomic, readonly, copy) NSString * _Nonnull id;
/// Class used to contain information about the occurrence of the Sync User Changed event.
SWIFT_CLASS_NAMED("SyncUserChangedEvent")
@interface DDMSyncUserChangedEvent : NSObject
/// String that indicates the organization user ID used during sync.
@property (nonatomic, readonly, strong) id <UserAuth> _Nullable userAuth;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
/// Protocol for User Authentication
/// declare the Organization User ID
SWIFT_PROTOCOL("_TtP6Didomi8UserAuth_")
@protocol UserAuth
/// Organization User ID
@property (nonatomic, readonly, copy) NSString * _Nonnull id;
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
@end
/// Protocol for User Authentication Parameters
/// declare the common properties of encryption / hash parameters
SWIFT_CLASS("_TtC6Didomi14UserAuthParams")
@interface UserAuthParams : NSObject <UserAuth>
/// Organization ID to associate with the user
/// Organization User ID
@property (nonatomic, copy) NSString * _Nonnull id;
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
@property (nonatomic, readonly) NSUInteger hash;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
/// User Authentication Parameters with encryption
SWIFT_CLASS("_TtC6Didomi28UserAuthWithEncryptionParams")
@interface UserAuthWithEncryptionParams : UserAuthParams
/// Convenience initializers without optional TimeInterval, necessary for Objective-C
- (nonnull instancetype)initWithId:(NSString * _Nonnull)id algorithm:(NSString * _Nonnull)algorithm secretID:(NSString * _Nonnull)secretID initializationVector:(NSString * _Nonnull)initializationVector;
/// Initializer for Objective-C
- (nonnull instancetype)initWithId:(NSString * _Nonnull)id algorithm:(NSString * _Nonnull)algorithm secretID:(NSString * _Nonnull)secretID initializationVector:(NSString * _Nonnull)initializationVector legacyExpiration:(NSTimeInterval)legacyExpiration;
/// Initialization Vector used for computing the user ID
@property (nonatomic, copy) NSString * _Nonnull initializationVector;
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
@property (nonatomic, readonly) NSUInteger hash;
@end
/// User Authentication Parameters with hash
SWIFT_CLASS("_TtC6Didomi22UserAuthWithHashParams")
@interface UserAuthWithHashParams : UserAuthParams
/// Convenience initializers without optional TimeInterval, necessary for Objective-C
- (nonnull instancetype)initWithId:(NSString * _Nonnull)id algorithm:(NSString * _Nonnull)algorithm secretID:(NSString * _Nonnull)secretID digest:(NSString * _Nonnull)digest salt:(NSString * _Nullable)salt;
/// Initializer for Objective-C
- (nonnull instancetype)initWithId:(NSString * _Nonnull)id algorithm:(NSString * _Nonnull)algorithm secretID:(NSString * _Nonnull)secretID digest:(NSString * _Nonnull)digest salt:(NSString * _Nullable)salt legacyExpiration:(NSTimeInterval)legacyExpiration;
/// Salt used for computing the user ID (optional)
/// Salt used for computing the OUID (optional)
@property (nonatomic, copy) NSString * _Nullable salt;
/// Digest used for representing the user ID
/// Digest used for representing the OUID
@property (nonatomic, copy) NSString * _Nonnull digest;
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
@property (nonatomic, readonly) NSUInteger hash;
@end
/// User Authentication Parameters without encryption
SWIFT_CLASS("_TtC6Didomi21UserAuthWithoutParams")
@interface UserAuthWithoutParams : NSObject <UserAuth>
- (nonnull instancetype)initWithId:(NSString * _Nonnull)id OBJC_DESIGNATED_INITIALIZER;
/// Organization User ID
@property (nonatomic, copy) NSString * _Nonnull id;
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
@property (nonatomic, readonly) NSUInteger hash;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
@class DDMUserStatusPurposes;
@class DDMUserStatusVendors;
SWIFT_CLASS_NAMED("UserStatus")
@interface DDMUserStatus : NSObject
@property (nonatomic, readonly, strong) DDMUserStatusPurposes * _Nonnull purposes;
@@ -2491,11 +2788,35 @@
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
@interface DDMUserStatus (SWIFT_EXTENSION(Didomi))
@end
@class DDMUserStatusIDs;
SWIFT_CLASS_NAMED("Purposes")
@interface DDMUserStatusPurposes : NSObject
@property (nonatomic, readonly, strong) DDMUserStatusIDs * _Nonnull consent;
@property (nonatomic, readonly, strong) DDMUserStatusIDs * _Nonnull legitimateInterest;
@property (nonatomic, readonly, strong) DDMUserStatusIDs * _Nonnull global;
@property (nonatomic, readonly, copy) NSSet<NSString *> * _Nonnull essential;
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
@interface DDMUserStatus (SWIFT_EXTENSION(Didomi))
@end
SWIFT_CLASS_NAMED("IDs")
@interface DDMUserStatusIDs : NSObject
@property (nonatomic, readonly, copy) NSSet<NSString *> * _Nonnull enabled;
@property (nonatomic, readonly, copy) NSSet<NSString *> * _Nonnull disabled;
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
@interface DDMUserStatus (SWIFT_EXTENSION(Didomi))
@end
SWIFT_CLASS_NAMED("Vendors")
@interface DDMUserStatusVendors : NSObject
@@ -2509,39 +2830,8 @@
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
@interface DDMUserStatus (SWIFT_EXTENSION(Didomi))
@end
SWIFT_CLASS_NAMED("Purposes")
@interface DDMUserStatusPurposes : NSObject
@property (nonatomic, readonly, strong) DDMUserStatusIDs * _Nonnull consent;
@property (nonatomic, readonly, strong) DDMUserStatusIDs * _Nonnull legitimateInterest;
@property (nonatomic, readonly, strong) DDMUserStatusIDs * _Nonnull global;
@property (nonatomic, readonly, copy) NSSet<NSString *> * _Nonnull essential;
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
@interface DDMUserStatus (SWIFT_EXTENSION(Didomi))
@end
SWIFT_CLASS_NAMED("IDs")
@interface DDMUserStatusIDs : NSObject
@property (nonatomic, readonly, copy) NSSet<NSString *> * _Nonnull enabled;
@property (nonatomic, readonly, copy) NSSet<NSString *> * _Nonnull disabled;
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
@class DDMVendorNamespaces;
@class DDMVendorURL;
/// Public class representing a single Vendor configuration.
SWIFT_CLASS_NAMED("Vendor")
@interface DDMVendor : NSObject
@@ -2600,10 +2890,20 @@
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
@interface DDMVendor (SWIFT_EXTENSION(Didomi))
@end
/// Store additional IDs (IAB, num) for the Vendor.
SWIFT_CLASS_NAMED("Namespaces")
@interface DDMVendorNamespaces : NSObject
@property (nonatomic, readonly, copy) NSString * _Nullable iab2;
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
@interface DDMVendor (SWIFT_EXTENSION(Didomi))
@end
/// Store localized URLs for privacy policy and LI claim.
SWIFT_CLASS_NAMED("URL")
@@ -2615,22 +2915,6 @@
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
@interface DDMVendor (SWIFT_EXTENSION(Didomi))
@end
/// Store additional IDs (IAB, num) for the Vendor.
SWIFT_CLASS_NAMED("Namespaces")
@interface DDMVendorNamespaces : NSObject
@property (nonatomic, readonly, copy) NSString * _Nullable iab2;
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
#endif
#if __has_attribute(external_source_symbol)