| | |
| | | #if 0 |
| | | #elif defined(__arm64__) && __arm64__ |
| | | // Generated by Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5) |
| | | // Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2) |
| | | #ifndef DIDOMI_SWIFT_H |
| | | #define DIDOMI_SWIFT_H |
| | | #pragma clang diagnostic push |
| | |
| | | enum DDMEventType : NSInteger; |
| | | @class DDMSyncUserChangedEvent; |
| | | @class DDMSyncReadyEvent; |
| | | @class DDMIntegrationErrorEvent; |
| | | /// Class used as a listener for internal events occurred in the SDK. |
| | | SWIFT_CLASS_NAMED("EventListener") |
| | | @interface DDMEventListener : NSObject |
| | |
| | | @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); |
| | | @property (nonatomic, copy) void (^ _Nonnull onIntegrationError)(DDMIntegrationErrorEvent * _Nonnull); |
| | | - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
| | | @end |
| | | |
| | |
| | | /// DCS Signature |
| | | DDMEventTypeDcsSignatureReady = 41, |
| | | DDMEventTypeDcsSignatureError = 42, |
| | | /// Integrations |
| | | DDMEventTypeIntegrationError = 43, |
| | | }; |
| | | |
| | | /// Class used to contain information about the external dependencies integration error event. |
| | | SWIFT_CLASS_NAMED("IntegrationErrorEvent") |
| | | @interface DDMIntegrationErrorEvent : NSObject |
| | | /// Indicates the dependency for which the error was triggered |
| | | @property (nonatomic, readonly, copy) NSString * _Nonnull integrationName; |
| | | /// Description of the error |
| | | @property (nonatomic, readonly, copy) NSString * _Nonnull reason; |
| | | - (nonnull instancetype)init SWIFT_UNAVAILABLE; |
| | | + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
| | | @end |
| | | |
| | | enum Status : NSInteger; |
| | | SWIFT_CLASS("_TtC6Didomi20LoadUserStatusResult") |
| | |
| | | @interface LoadUserStatusResult (SWIFT_EXTENSION(Didomi)) |
| | | @end |
| | | |
| | | typedef SWIFT_ENUM(NSInteger, Status, open) { |
| | | /// Consent was loaded from cache |
| | | StatusCached = 0, |
| | | /// Invalid - See <code>error</code> for more details |
| | | StatusInvalid = 1, |
| | | /// New User - no consent |
| | | StatusNewUser = 2, |
| | | /// Consent was successfully synced |
| | | StatusSynced = 3, |
| | | }; |
| | | |
| | | @interface LoadUserStatusResult (SWIFT_EXTENSION(Didomi)) |
| | | @end |
| | | |
| | | /// Error status for <code>loadUserStatuses</code> API |
| | | typedef SWIFT_ENUM(NSInteger, ErrorStatus, open) { |
| | | /// Multi-Storage disabled |
| | |
| | | ErrorStatusSyncFailed = 2, |
| | | /// DCS signature failed |
| | | ErrorStatusDcsSignatureFailed = 3, |
| | | }; |
| | | |
| | | @interface LoadUserStatusResult (SWIFT_EXTENSION(Didomi)) |
| | | @end |
| | | |
| | | typedef SWIFT_ENUM(NSInteger, Status, open) { |
| | | /// Consent was loaded from cache |
| | | StatusCached = 0, |
| | | /// Invalid - See <code>error</code> for more details |
| | | StatusInvalid = 1, |
| | | /// New User - no consent |
| | | StatusNewUser = 2, |
| | | /// Consent was successfully synced |
| | | StatusSynced = 3, |
| | | }; |
| | | |
| | | /// Public class representing a single Purpose configuration. |
| | |
| | | RegulationDpdpa = 5, |
| | | RegulationFdbr = 6, |
| | | RegulationIcdpa = 7, |
| | | RegulationMcdpa = 8, |
| | | RegulationNhpa = 9, |
| | | RegulationNjdpa = 10, |
| | | RegulationOcpa = 11, |
| | | RegulationTdpsa = 12, |
| | | RegulationUcpa = 13, |
| | | RegulationVcdpa = 14, |
| | | RegulationNone = 15, |
| | | RegulationIncdpa = 8, |
| | | RegulationKcdpa = 9, |
| | | RegulationMcdpa = 10, |
| | | RegulationMncdpa = 11, |
| | | RegulationModpa = 12, |
| | | RegulationNdpa = 13, |
| | | RegulationNhpa = 14, |
| | | RegulationNjdpa = 15, |
| | | RegulationOcpa = 16, |
| | | RegulationRidtppa = 17, |
| | | RegulationTdpsa = 18, |
| | | RegulationTipa = 19, |
| | | RegulationUcpa = 20, |
| | | RegulationVcdpa = 21, |
| | | RegulationNone = 22, |
| | | }; |
| | | |
| | | /// Class used to contain information about the occurrence of the Sync Ready event. |
| | |
| | | @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; |
| | | 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"); |
| | |
| | | @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; |
| | | 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"); |
| | |
| | | @interface DDMVendor (SWIFT_EXTENSION(Didomi)) |
| | | @end |
| | | |
| | | /// Store localized URLs for privacy policy and LI claim. |
| | | SWIFT_CLASS_NAMED("URL") |
| | | @interface DDMVendorURL : NSObject |
| | | @property (nonatomic, readonly, copy) NSString * _Nullable langID; |
| | | @property (nonatomic, readonly, copy) NSString * _Nullable privacy; |
| | | @property (nonatomic, readonly, copy) NSString * _Nullable legIntClaim; |
| | | /// 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"); |
| | |
| | | @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; |
| | | /// Store localized URLs for privacy policy and LI claim. |
| | | SWIFT_CLASS_NAMED("URL") |
| | | @interface DDMVendorURL : NSObject |
| | | @property (nonatomic, readonly, copy) NSString * _Nullable langID; |
| | | @property (nonatomic, readonly, copy) NSString * _Nullable privacy; |
| | | @property (nonatomic, readonly, copy) NSString * _Nullable legIntClaim; |
| | | - (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT; |
| | | - (nonnull instancetype)init SWIFT_UNAVAILABLE; |
| | | + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |