@@ -229,7 +229,7 @@ typedef SWIFT_ENUM(NSInteger, AdErrorCode, open) {
229
229
SWIFT_CLASS("_TtC8TeadsSDK12AdFailReason")
230
230
@interface AdFailReason : NSObject
231
231
/// Error code
232
- @property (nonatomic) enum AdErrorCode errorCode ;
232
+ @property (nonatomic) enum AdErrorCode code ;
233
233
/// String that describes the error reason
234
234
@property (nonatomic, copy) NSString * _Nonnull errorMessage;
235
235
@property (nonatomic, readonly, copy) NSString * _Nonnull description;
@@ -240,6 +240,7 @@ SWIFT_CLASS("_TtC8TeadsSDK12AdFailReason")
240
240
241
241
242
242
243
+
243
244
/// CommonComponent
244
245
SWIFT_CLASS("_TtC8TeadsSDK15CommonComponent")
245
246
@interface CommonComponent : NSObject
@@ -263,7 +264,6 @@ SWIFT_CLASS("_TtC8TeadsSDK14ImageComponent")
263
264
264
265
265
266
266
-
267
267
SWIFT_CLASS("_TtC8TeadsSDK16OverlayComponent")
268
268
@interface OverlayComponent : CommonComponent
269
269
@end
@@ -339,13 +339,14 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK15TeadsAdDelegate_")
339
339
- (UIViewController * _Nullable)willPresentModalViewWithAd:(TeadsAd * _Nonnull)ad SWIFT_WARN_UNUSED_RESULT;
340
340
@optional
341
341
/// Called when the ad has encountered an issue, in this case you need to remove the slot or you will have a blank space
342
- /// /// - parameters:
343
- /// - ad: The teadsAd object
344
- /// - error: error object
342
+ /// \param ad The teadsAd object
343
+ ///
344
+ /// \param error error object
345
+ ///
345
346
- (void)didCatchErrorWithAd:(TeadsAd * _Nonnull)ad error:(NSError * _Nonnull)error;
346
347
/// Called when the ad has been close, in this case you need to close the slot or you will have a blank space
347
- /// /// - parameters:
348
- /// - ad: The teadsAd object
348
+ /// \param ad The teadsAd object
349
+ ///
349
350
- (void)didCloseWithAd:(TeadsAd * _Nonnull)ad;
350
351
/// Called when Teads has recorded an impression for the current ad
351
352
/// \param ad The teadsAd object
@@ -538,14 +539,8 @@ SWIFT_CLASS("_TtC8TeadsSDK22TeadsInReadAdPlacement")
538
539
539
540
540
541
541
- SWIFT_PROTOCOL("_TtP8TeadsSDK30TeadsInReadAdPlacementDelegate_")
542
- @protocol TeadsInReadAdPlacementDelegate
543
- /// Called when the Teads SDK has received an ad for you to display
544
- /// \param ad The teadsAd object
545
- ///
546
- /// \param adRatio an object that will help you display the ad correctly
547
- ///
548
- - (void)didReceiveAdWithAd:(TeadsInReadAd * _Nonnull)ad adRatio:(TeadsAdRatio * _Nonnull)adRatio;
542
+ SWIFT_PROTOCOL("_TtP8TeadsSDK23TeadsdPlacementDelegate_")
543
+ @protocol TeadsdPlacementDelegate
549
544
/// Called when the Teads SDK has not received an ad, the reason will be detailled in the parameter
550
545
/// \param reason an object that contains the fail reason
551
546
///
@@ -554,6 +549,24 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK30TeadsInReadAdPlacementDelegate_")
554
549
/// \param trackerView the view that will monitor your inventory
555
550
///
556
551
- (void)adOpportunityTrackerViewWithTrackerView:(TeadsAdOpportunityTrackerView * _Nonnull)trackerView;
552
+ @optional
553
+ /// Called each time TeadsSDK triggers a log message
554
+ /// \param message log message
555
+ ///
556
+ /// \param note If no subscribers is set, log message will be written into console
557
+ ///
558
+ - (void)didLogMessageWithMessage:(NSString * _Nonnull)message;
559
+ @end
560
+
561
+
562
+ SWIFT_PROTOCOL("_TtP8TeadsSDK30TeadsInReadAdPlacementDelegate_")
563
+ @protocol TeadsInReadAdPlacementDelegate <TeadsdPlacementDelegate>
564
+ /// Called when the Teads SDK has received an ad for you to display
565
+ /// \param ad The teadsAd object
566
+ ///
567
+ /// \param adRatio an object that will help you display the ad correctly
568
+ ///
569
+ - (void)didReceiveAdWithAd:(TeadsInReadAd * _Nonnull)ad adRatio:(TeadsAdRatio * _Nonnull)adRatio;
557
570
/// Called when the Teads SDK needs you to resize your adView the creative inform us of its new ratio
558
571
/// When it called it is the right place to update your view ratio. A basic implementation may look litke this:
559
572
/// <h1>Code</h1>
@@ -631,21 +644,13 @@ SWIFT_CLASS("_TtC8TeadsSDK22TeadsNativeAdPlacement")
631
644
632
645
633
646
SWIFT_PROTOCOL("_TtP8TeadsSDK30TeadsNativeAdPlacementDelegate_")
634
- @protocol TeadsNativeAdPlacementDelegate
647
+ @protocol TeadsNativeAdPlacementDelegate <TeadsdPlacementDelegate>
635
648
/// Called when the Teads SDK has received an ad for you to display
636
- /// /// - parameters:
637
- /// - ad: The teadsAd object
638
- /// - adRatio: an object that will help you display the ad correctly
649
+ /// \param ad The teadsAd object
650
+ ///
651
+ /// \param adRatio an object that will help you display the ad correctly
652
+ ///
639
653
- (void)didReceiveAdWithAd:(TeadsNativeAd * _Nonnull)ad;
640
- /// Called when the Teads SDK has not received an ad, the reason will be detailled in the parameter
641
- /// /// - parameters:
642
- /// - reason: an object that contains the fail reason
643
- - (void)didFailToReceiveAdWithReason:(AdFailReason * _Nonnull)reason;
644
- /// Called when the Teads SDK needs you to resize your adView the creative inform us of its new ratio
645
- /// /// - parameters:
646
- /// - ad: The teadsAd object
647
- /// - adRatio: an object that will help you display the ad correctly
648
- - (void)adOpportunityTrackerViewWithTrackerView:(TeadsAdOpportunityTrackerView * _Nonnull)trackerView;
649
654
@end
650
655
651
656
@class UILabel;
@@ -680,14 +685,14 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK21TeadsPlaybackDelegate_")
680
685
/// \param ad The teadsAd object
681
686
///
682
687
- (void)adStopPlayingAudio:(TeadsAd * _Nonnull)ad;
683
- /// Called when the ad is paused
684
- /// \param ad The teadsAd object
685
- ///
686
- - (void)didPause:(TeadsAd * _Nonnull)ad;
687
688
/// Called when the ad starts or resumes
688
689
/// \param ad The teadsAd object
689
690
///
690
691
- (void)didPlay:(TeadsAd * _Nonnull)ad;
692
+ /// Called when the ad is paused
693
+ /// \param ad The teadsAd object
694
+ ///
695
+ - (void)didPause:(TeadsAd * _Nonnull)ad;
691
696
/// Called when the ad ended
692
697
/// \param ad The teadsAd object
693
698
///
@@ -711,6 +716,7 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK18TeadsSoundDelegate_") SWIFT_UNAVAILABLE_MSG("'Tea
711
716
712
717
713
718
719
+
714
720
@interface UIButton (SWIFT_EXTENSION(TeadsSDK))
715
721
- (void)bindWithComponent:(CommonComponent * _Nullable)component;
716
722
@end
@@ -983,7 +989,7 @@ typedef SWIFT_ENUM(NSInteger, AdErrorCode, open) {
983
989
SWIFT_CLASS("_TtC8TeadsSDK12AdFailReason")
984
990
@interface AdFailReason : NSObject
985
991
/// Error code
986
- @property (nonatomic) enum AdErrorCode errorCode ;
992
+ @property (nonatomic) enum AdErrorCode code ;
987
993
/// String that describes the error reason
988
994
@property (nonatomic, copy) NSString * _Nonnull errorMessage;
989
995
@property (nonatomic, readonly, copy) NSString * _Nonnull description;
@@ -994,6 +1000,7 @@ SWIFT_CLASS("_TtC8TeadsSDK12AdFailReason")
994
1000
995
1001
996
1002
1003
+
997
1004
/// CommonComponent
998
1005
SWIFT_CLASS("_TtC8TeadsSDK15CommonComponent")
999
1006
@interface CommonComponent : NSObject
@@ -1017,7 +1024,6 @@ SWIFT_CLASS("_TtC8TeadsSDK14ImageComponent")
1017
1024
1018
1025
1019
1026
1020
-
1021
1027
SWIFT_CLASS("_TtC8TeadsSDK16OverlayComponent")
1022
1028
@interface OverlayComponent : CommonComponent
1023
1029
@end
@@ -1093,13 +1099,14 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK15TeadsAdDelegate_")
1093
1099
- (UIViewController * _Nullable)willPresentModalViewWithAd:(TeadsAd * _Nonnull)ad SWIFT_WARN_UNUSED_RESULT;
1094
1100
@optional
1095
1101
/// Called when the ad has encountered an issue, in this case you need to remove the slot or you will have a blank space
1096
- /// /// - parameters:
1097
- /// - ad: The teadsAd object
1098
- /// - error: error object
1102
+ /// \param ad The teadsAd object
1103
+ ///
1104
+ /// \param error error object
1105
+ ///
1099
1106
- (void)didCatchErrorWithAd:(TeadsAd * _Nonnull)ad error:(NSError * _Nonnull)error;
1100
1107
/// Called when the ad has been close, in this case you need to close the slot or you will have a blank space
1101
- /// /// - parameters:
1102
- /// - ad: The teadsAd object
1108
+ /// \param ad The teadsAd object
1109
+ ///
1103
1110
- (void)didCloseWithAd:(TeadsAd * _Nonnull)ad;
1104
1111
/// Called when Teads has recorded an impression for the current ad
1105
1112
/// \param ad The teadsAd object
@@ -1292,14 +1299,8 @@ SWIFT_CLASS("_TtC8TeadsSDK22TeadsInReadAdPlacement")
1292
1299
1293
1300
1294
1301
1295
- SWIFT_PROTOCOL("_TtP8TeadsSDK30TeadsInReadAdPlacementDelegate_")
1296
- @protocol TeadsInReadAdPlacementDelegate
1297
- /// Called when the Teads SDK has received an ad for you to display
1298
- /// \param ad The teadsAd object
1299
- ///
1300
- /// \param adRatio an object that will help you display the ad correctly
1301
- ///
1302
- - (void)didReceiveAdWithAd:(TeadsInReadAd * _Nonnull)ad adRatio:(TeadsAdRatio * _Nonnull)adRatio;
1302
+ SWIFT_PROTOCOL("_TtP8TeadsSDK23TeadsdPlacementDelegate_")
1303
+ @protocol TeadsdPlacementDelegate
1303
1304
/// Called when the Teads SDK has not received an ad, the reason will be detailled in the parameter
1304
1305
/// \param reason an object that contains the fail reason
1305
1306
///
@@ -1308,6 +1309,24 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK30TeadsInReadAdPlacementDelegate_")
1308
1309
/// \param trackerView the view that will monitor your inventory
1309
1310
///
1310
1311
- (void)adOpportunityTrackerViewWithTrackerView:(TeadsAdOpportunityTrackerView * _Nonnull)trackerView;
1312
+ @optional
1313
+ /// Called each time TeadsSDK triggers a log message
1314
+ /// \param message log message
1315
+ ///
1316
+ /// \param note If no subscribers is set, log message will be written into console
1317
+ ///
1318
+ - (void)didLogMessageWithMessage:(NSString * _Nonnull)message;
1319
+ @end
1320
+
1321
+
1322
+ SWIFT_PROTOCOL("_TtP8TeadsSDK30TeadsInReadAdPlacementDelegate_")
1323
+ @protocol TeadsInReadAdPlacementDelegate <TeadsdPlacementDelegate>
1324
+ /// Called when the Teads SDK has received an ad for you to display
1325
+ /// \param ad The teadsAd object
1326
+ ///
1327
+ /// \param adRatio an object that will help you display the ad correctly
1328
+ ///
1329
+ - (void)didReceiveAdWithAd:(TeadsInReadAd * _Nonnull)ad adRatio:(TeadsAdRatio * _Nonnull)adRatio;
1311
1330
/// Called when the Teads SDK needs you to resize your adView the creative inform us of its new ratio
1312
1331
/// When it called it is the right place to update your view ratio. A basic implementation may look litke this:
1313
1332
/// <h1>Code</h1>
@@ -1385,21 +1404,13 @@ SWIFT_CLASS("_TtC8TeadsSDK22TeadsNativeAdPlacement")
1385
1404
1386
1405
1387
1406
SWIFT_PROTOCOL("_TtP8TeadsSDK30TeadsNativeAdPlacementDelegate_")
1388
- @protocol TeadsNativeAdPlacementDelegate
1407
+ @protocol TeadsNativeAdPlacementDelegate <TeadsdPlacementDelegate>
1389
1408
/// Called when the Teads SDK has received an ad for you to display
1390
- /// /// - parameters:
1391
- /// - ad: The teadsAd object
1392
- /// - adRatio: an object that will help you display the ad correctly
1409
+ /// \param ad The teadsAd object
1410
+ ///
1411
+ /// \param adRatio an object that will help you display the ad correctly
1412
+ ///
1393
1413
- (void)didReceiveAdWithAd:(TeadsNativeAd * _Nonnull)ad;
1394
- /// Called when the Teads SDK has not received an ad, the reason will be detailled in the parameter
1395
- /// /// - parameters:
1396
- /// - reason: an object that contains the fail reason
1397
- - (void)didFailToReceiveAdWithReason:(AdFailReason * _Nonnull)reason;
1398
- /// Called when the Teads SDK needs you to resize your adView the creative inform us of its new ratio
1399
- /// /// - parameters:
1400
- /// - ad: The teadsAd object
1401
- /// - adRatio: an object that will help you display the ad correctly
1402
- - (void)adOpportunityTrackerViewWithTrackerView:(TeadsAdOpportunityTrackerView * _Nonnull)trackerView;
1403
1414
@end
1404
1415
1405
1416
@class UILabel;
@@ -1434,14 +1445,14 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK21TeadsPlaybackDelegate_")
1434
1445
/// \param ad The teadsAd object
1435
1446
///
1436
1447
- (void)adStopPlayingAudio:(TeadsAd * _Nonnull)ad;
1437
- /// Called when the ad is paused
1438
- /// \param ad The teadsAd object
1439
- ///
1440
- - (void)didPause:(TeadsAd * _Nonnull)ad;
1441
1448
/// Called when the ad starts or resumes
1442
1449
/// \param ad The teadsAd object
1443
1450
///
1444
1451
- (void)didPlay:(TeadsAd * _Nonnull)ad;
1452
+ /// Called when the ad is paused
1453
+ /// \param ad The teadsAd object
1454
+ ///
1455
+ - (void)didPause:(TeadsAd * _Nonnull)ad;
1445
1456
/// Called when the ad ended
1446
1457
/// \param ad The teadsAd object
1447
1458
///
@@ -1465,6 +1476,7 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK18TeadsSoundDelegate_") SWIFT_UNAVAILABLE_MSG("'Tea
1465
1476
1466
1477
1467
1478
1479
+
1468
1480
@interface UIButton (SWIFT_EXTENSION(TeadsSDK))
1469
1481
- (void)bindWithComponent:(CommonComponent * _Nullable)component;
1470
1482
@end
0 commit comments