@@ -376,6 +376,13 @@ SWIFT_PROTOCOL("_TtP21ConsentViewController17MessageController_")
376
376
@end
377
377
378
378
379
+ SWIFT_CLASS("_TtC21ConsentViewController21MissingChildPmIdError")
380
+ @interface MissingChildPmIdError : SPError
381
+ @property (nonatomic, readonly, copy) NSString * _Nonnull spCode;
382
+ @property (nonatomic, readonly, copy) NSString * _Nonnull description;
383
+ @end
384
+
385
+
379
386
@interface NSObject (SWIFT_EXTENSION(ConsentViewController))
380
387
- (NSString * _Nullable)toJSON SWIFT_WARN_UNUSED_RESULT;
381
388
@end
@@ -445,7 +452,7 @@ enum SPPrivacyManagerTab : NSInteger;
445
452
446
453
SWIFT_PROTOCOL("_TtP21ConsentViewController6SPCCPA_")
447
454
@protocol SPCCPA
448
- - (void)loadCCPAPrivacyManagerWithId:(NSString * _Nonnull)id tab:(enum SPPrivacyManagerTab)tab;
455
+ - (void)loadCCPAPrivacyManagerWithId:(NSString * _Nonnull)id tab:(enum SPPrivacyManagerTab)tab useGroupPmIfAvailable:(BOOL)useGroupPmIfAvailable ;
449
456
@property (nonatomic, readonly) BOOL ccpaApplies;
450
457
@end
451
458
@@ -473,7 +480,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _No
473
480
/// that’s the internal Sourcepoint id we give to this consent profile
474
481
@property (nonatomic, copy) NSString * _Nullable uuid;
475
482
+ (SPCCPAConsent * _Nonnull)rejectedNone SWIFT_WARN_UNUSED_RESULT;
476
- - (nonnull instancetype)initWithUuid:(NSString * _Nullable)uuid status:(enum CCPAConsentStatus)status rejectedVendors:(NSArray<NSString *> * _Nonnull)rejectedVendors rejectedCategories:(NSArray<NSString *> * _Nonnull)rejectedCategories uspstring:(NSString * _Nonnull)uspstring OBJC_DESIGNATED_INITIALIZER;
483
+ - (nonnull instancetype)initWithUuid:(NSString * _Nullable)uuid status:(enum CCPAConsentStatus)status rejectedVendors:(NSArray<NSString *> * _Nonnull)rejectedVendors rejectedCategories:(NSArray<NSString *> * _Nonnull)rejectedCategories uspstring:(NSString * _Nonnull)uspstring childPmId:(NSString * _Nullable)childPmId OBJC_DESIGNATED_INITIALIZER;
477
484
@property (nonatomic, readonly, copy) NSString * _Nonnull description;
478
485
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
479
486
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
@@ -484,7 +491,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _No
484
491
/// Contains information about the property/campaign.
485
492
SWIFT_CLASS("_TtC21ConsentViewController10SPCampaign")
486
493
@interface SPCampaign : NSObject
487
- - (nonnull instancetype)initWithTargetingParams:(NSDictionary<NSString *, NSString *> * _Nonnull)targetingParams OBJC_DESIGNATED_INITIALIZER;
494
+ - (nonnull instancetype)initWithTargetingParams:(NSDictionary<NSString *, NSString *> * _Nonnull)targetingParams groupPmId:(NSString * _Nullable)groupPmId OBJC_DESIGNATED_INITIALIZER;
488
495
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
489
496
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
490
497
@end
@@ -611,7 +618,7 @@ SWIFT_PROTOCOL("_TtP21ConsentViewController19SPMessageUIDelegate_")
611
618
612
619
SWIFT_PROTOCOL("_TtP21ConsentViewController6SPGDPR_")
613
620
@protocol SPGDPR
614
- - (void)loadGDPRPrivacyManagerWithId:(NSString * _Nonnull)id tab:(enum SPPrivacyManagerTab)tab;
621
+ - (void)loadGDPRPrivacyManagerWithId:(NSString * _Nonnull)id tab:(enum SPPrivacyManagerTab)tab useGroupPmIfAvailable:(BOOL)useGroupPmIfAvailable ;
615
622
@property (nonatomic, readonly) BOOL gdprApplies;
616
623
@end
617
624
@@ -642,8 +649,8 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _No
642
649
/// Returns the user data <em>stored in the <code>UserDefaults</code></em>.
643
650
@property (nonatomic, readonly, strong) SPUserData * _Nonnull userData;
644
651
- (void)loadMessageForAuthId:(NSString * _Nullable)authId publisherData:(NSDictionary<NSString *, NSString *> * _Nullable)publisherData;
645
- - (void)loadGDPRPrivacyManagerWithId:(NSString * _Nonnull)id tab:(enum SPPrivacyManagerTab)tab;
646
- - (void)loadCCPAPrivacyManagerWithId:(NSString * _Nonnull)id tab:(enum SPPrivacyManagerTab)tab;
652
+ - (void)loadGDPRPrivacyManagerWithId:(NSString * _Nonnull)id tab:(enum SPPrivacyManagerTab)tab useGroupPmIfAvailable:(BOOL)useGroupPmIfAvailable ;
653
+ - (void)loadCCPAPrivacyManagerWithId:(NSString * _Nonnull)id tab:(enum SPPrivacyManagerTab)tab useGroupPmIfAvailable:(BOOL)useGroupPmIfAvailable ;
647
654
- (void)customConsentGDPRWithVendors:(NSArray<NSString *> * _Nonnull)vendors categories:(NSArray<NSString *> * _Nonnull)categories legIntCategories:(NSArray<NSString *> * _Nonnull)legIntCategories handler:(void (^ _Nonnull)(SPGDPRConsent * _Nonnull))handler;
648
655
@end
649
656
@@ -1328,6 +1335,13 @@ SWIFT_PROTOCOL("_TtP21ConsentViewController17MessageController_")
1328
1335
@end
1329
1336
1330
1337
1338
+ SWIFT_CLASS("_TtC21ConsentViewController21MissingChildPmIdError")
1339
+ @interface MissingChildPmIdError : SPError
1340
+ @property (nonatomic, readonly, copy) NSString * _Nonnull spCode;
1341
+ @property (nonatomic, readonly, copy) NSString * _Nonnull description;
1342
+ @end
1343
+
1344
+
1331
1345
@interface NSObject (SWIFT_EXTENSION(ConsentViewController))
1332
1346
- (NSString * _Nullable)toJSON SWIFT_WARN_UNUSED_RESULT;
1333
1347
@end
@@ -1397,7 +1411,7 @@ enum SPPrivacyManagerTab : NSInteger;
1397
1411
1398
1412
SWIFT_PROTOCOL("_TtP21ConsentViewController6SPCCPA_")
1399
1413
@protocol SPCCPA
1400
- - (void)loadCCPAPrivacyManagerWithId:(NSString * _Nonnull)id tab:(enum SPPrivacyManagerTab)tab;
1414
+ - (void)loadCCPAPrivacyManagerWithId:(NSString * _Nonnull)id tab:(enum SPPrivacyManagerTab)tab useGroupPmIfAvailable:(BOOL)useGroupPmIfAvailable ;
1401
1415
@property (nonatomic, readonly) BOOL ccpaApplies;
1402
1416
@end
1403
1417
@@ -1425,7 +1439,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _No
1425
1439
/// that’s the internal Sourcepoint id we give to this consent profile
1426
1440
@property (nonatomic, copy) NSString * _Nullable uuid;
1427
1441
+ (SPCCPAConsent * _Nonnull)rejectedNone SWIFT_WARN_UNUSED_RESULT;
1428
- - (nonnull instancetype)initWithUuid:(NSString * _Nullable)uuid status:(enum CCPAConsentStatus)status rejectedVendors:(NSArray<NSString *> * _Nonnull)rejectedVendors rejectedCategories:(NSArray<NSString *> * _Nonnull)rejectedCategories uspstring:(NSString * _Nonnull)uspstring OBJC_DESIGNATED_INITIALIZER;
1442
+ - (nonnull instancetype)initWithUuid:(NSString * _Nullable)uuid status:(enum CCPAConsentStatus)status rejectedVendors:(NSArray<NSString *> * _Nonnull)rejectedVendors rejectedCategories:(NSArray<NSString *> * _Nonnull)rejectedCategories uspstring:(NSString * _Nonnull)uspstring childPmId:(NSString * _Nullable)childPmId OBJC_DESIGNATED_INITIALIZER;
1429
1443
@property (nonatomic, readonly, copy) NSString * _Nonnull description;
1430
1444
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
1431
1445
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
@@ -1436,7 +1450,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _No
1436
1450
/// Contains information about the property/campaign.
1437
1451
SWIFT_CLASS("_TtC21ConsentViewController10SPCampaign")
1438
1452
@interface SPCampaign : NSObject
1439
- - (nonnull instancetype)initWithTargetingParams:(NSDictionary<NSString *, NSString *> * _Nonnull)targetingParams OBJC_DESIGNATED_INITIALIZER;
1453
+ - (nonnull instancetype)initWithTargetingParams:(NSDictionary<NSString *, NSString *> * _Nonnull)targetingParams groupPmId:(NSString * _Nullable)groupPmId OBJC_DESIGNATED_INITIALIZER;
1440
1454
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
1441
1455
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
1442
1456
@end
@@ -1563,7 +1577,7 @@ SWIFT_PROTOCOL("_TtP21ConsentViewController19SPMessageUIDelegate_")
1563
1577
1564
1578
SWIFT_PROTOCOL("_TtP21ConsentViewController6SPGDPR_")
1565
1579
@protocol SPGDPR
1566
- - (void)loadGDPRPrivacyManagerWithId:(NSString * _Nonnull)id tab:(enum SPPrivacyManagerTab)tab;
1580
+ - (void)loadGDPRPrivacyManagerWithId:(NSString * _Nonnull)id tab:(enum SPPrivacyManagerTab)tab useGroupPmIfAvailable:(BOOL)useGroupPmIfAvailable ;
1567
1581
@property (nonatomic, readonly) BOOL gdprApplies;
1568
1582
@end
1569
1583
@@ -1594,8 +1608,8 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _No
1594
1608
/// Returns the user data <em>stored in the <code>UserDefaults</code></em>.
1595
1609
@property (nonatomic, readonly, strong) SPUserData * _Nonnull userData;
1596
1610
- (void)loadMessageForAuthId:(NSString * _Nullable)authId publisherData:(NSDictionary<NSString *, NSString *> * _Nullable)publisherData;
1597
- - (void)loadGDPRPrivacyManagerWithId:(NSString * _Nonnull)id tab:(enum SPPrivacyManagerTab)tab;
1598
- - (void)loadCCPAPrivacyManagerWithId:(NSString * _Nonnull)id tab:(enum SPPrivacyManagerTab)tab;
1611
+ - (void)loadGDPRPrivacyManagerWithId:(NSString * _Nonnull)id tab:(enum SPPrivacyManagerTab)tab useGroupPmIfAvailable:(BOOL)useGroupPmIfAvailable ;
1612
+ - (void)loadCCPAPrivacyManagerWithId:(NSString * _Nonnull)id tab:(enum SPPrivacyManagerTab)tab useGroupPmIfAvailable:(BOOL)useGroupPmIfAvailable ;
1599
1613
- (void)customConsentGDPRWithVendors:(NSArray<NSString *> * _Nonnull)vendors categories:(NSArray<NSString *> * _Nonnull)categories legIntCategories:(NSArray<NSString *> * _Nonnull)legIntCategories handler:(void (^ _Nonnull)(SPGDPRConsent * _Nonnull))handler;
1600
1614
@end
1601
1615
0 commit comments