@@ -230,6 +230,7 @@ SWIFT_CLASS("_TtC8TeadsSDK16OverlayComponent")
230
230
231
231
232
232
/// Native Component containing AdChoices <code>clickThroughUrl</code>
233
+ /// Teads is partner of DAA <a href="https://youradchoices.com/participating#CompanyT">Digital Advertising Alliance</a>
233
234
/// note:
234
235
/// AdChoices component and associated logo is automatically added to <code>TeadsNativeAdView</code>
235
236
SWIFT_CLASS("_TtC8TeadsSDK18AdChoicesComponent")
@@ -378,6 +379,17 @@ SWIFT_CLASS("_TtC8TeadsSDK7TeadsAd")
378
379
379
380
380
381
382
+ @class NSCoder;
383
+
384
+ /// The Teads AdChoices view is responsible to render the optionView or AdChoices view.
385
+ /// Teads is partner of DAA <a href="https://youradchoices.com/participating#CompanyT">Digital Advertising Alliance</a>
386
+ SWIFT_CLASS("_TtC8TeadsSDK18TeadsAdChoicesView")
387
+ @interface TeadsAdChoicesView : UIView
388
+ - (nonnull instancetype)initWithBinding:(CommonComponent * _Nullable)component OBJC_DESIGNATED_INITIALIZER;
389
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)_ SWIFT_UNAVAILABLE;
390
+ - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
391
+ @end
392
+
381
393
@class UIViewController;
382
394
383
395
/// Delegate methods needed to follow Teads ads lifecycle.
@@ -423,7 +435,6 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK15TeadsAdDelegate_")
423
435
- (void)didCollapsedFromFullscreenWithAd:(TeadsAd * _Nonnull)ad;
424
436
@end
425
437
426
- @class NSCoder;
427
438
428
439
/// adOpportunity is a key metrics to evaluate the performance of your inventory.
429
440
/// It builds the visibility score of your placement in publisher dashboards.
@@ -433,7 +444,8 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK15TeadsAdDelegate_")
433
444
SWIFT_CLASS("_TtC8TeadsSDK29TeadsAdOpportunityTrackerView")
434
445
@interface TeadsAdOpportunityTrackerView : UIView
435
446
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
436
- - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
447
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)_ SWIFT_UNAVAILABLE;
448
+ - (void)removeFromSuperview;
437
449
@end
438
450
439
451
@@ -688,6 +700,8 @@ SWIFT_CLASS("_TtC8TeadsSDK13TeadsInReadAd")
688
700
/// In order to create placement, call <code>Teads.createInReadPlacement()</code>
689
701
SWIFT_CLASS("_TtC8TeadsSDK22TeadsInReadAdPlacement")
690
702
@interface TeadsInReadAdPlacement : TeadsAdPlacement
703
+ /// TeadsInReadAdPlacementDelegate to follow ad placement lifecycle
704
+ @property (nonatomic, weak) id <TeadsInReadAdPlacementDelegate> _Nullable delegate;
691
705
/// Request a native ad on this placement
692
706
/// listen for events by implementing <code>TeadsInReadAdPlacementDelegate</code>
693
707
/// requires:
@@ -702,9 +716,22 @@ SWIFT_CLASS("_TtC8TeadsSDK22TeadsInReadAdPlacement")
702
716
703
717
704
718
719
+ /// Log delegate enabling you to route every log message written in console into a dedicated area of your choice
720
+ SWIFT_PROTOCOL("_TtP8TeadsSDK23TeadsLogMessageDelegate_")
721
+ @protocol TeadsLogMessageDelegate
722
+ @optional
723
+ /// Called each time TeadsSDK triggers a log message
724
+ /// \param message log message
725
+ ///
726
+ /// \param note If no subscribers is set, log message will be written into console
727
+ ///
728
+ - (void)didLogMessageWithMessage:(NSString * _Nonnull)message;
729
+ @end
730
+
731
+
705
732
/// Root placement delegate methods needed to follow Teads ad requests flow
706
733
SWIFT_PROTOCOL("_TtP8TeadsSDK23TeadsdPlacementDelegate_")
707
- @protocol TeadsdPlacementDelegate
734
+ @protocol TeadsdPlacementDelegate <TeadsLogMessageDelegate>
708
735
/// Called when the Teads SDK has not received an ad, the reason will be detailled in the parameter
709
736
/// \param reason an object that contains the fail reason
710
737
///
@@ -713,13 +740,6 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK23TeadsdPlacementDelegate_")
713
740
/// \param trackerView the view that will monitor your inventory
714
741
///
715
742
- (void)adOpportunityTrackerViewWithTrackerView:(TeadsAdOpportunityTrackerView * _Nonnull)trackerView;
716
- @optional
717
- /// Called each time TeadsSDK triggers a log message
718
- /// \param message log message
719
- ///
720
- /// \param note If no subscribers is set, log message will be written into console
721
- ///
722
- - (void)didLogMessageWithMessage:(NSString * _Nonnull)message;
723
743
@end
724
744
725
745
@@ -771,6 +791,7 @@ SWIFT_CLASS("_TtC8TeadsSDK17TeadsInReadAdView")
771
791
772
792
773
793
794
+
774
795
@class VideoComponent;
775
796
776
797
/// The TeadsMediaView can load either images, videos and VPAID content.
@@ -889,21 +910,21 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK30TeadsNativeAdPlacementDelegate_")
889
910
SWIFT_CLASS("_TtC8TeadsSDK17TeadsNativeAdView")
890
911
@interface TeadsNativeAdView : TeadsAdView
891
912
/// The native ad title label.
892
- @property (nonatomic, weak ) IBOutlet UILabel * _Nullable titleLabel;
913
+ @property (nonatomic, strong ) IBOutlet UILabel * _Nullable titleLabel;
893
914
/// The native ad content / body label.
894
- @property (nonatomic, weak ) IBOutlet UILabel * _Nullable contentLabel;
915
+ @property (nonatomic, strong ) IBOutlet UILabel * _Nullable contentLabel;
895
916
/// The native ad media view (for images and videos).
896
- @property (nonatomic, weak ) IBOutlet TeadsMediaView * _Nullable mediaView;
917
+ @property (nonatomic, strong ) IBOutlet TeadsMediaView * _Nullable mediaView;
897
918
/// The native ad icon image view.
898
- @property (nonatomic, weak ) IBOutlet UIImageView * _Nullable iconImageView;
919
+ @property (nonatomic, strong ) IBOutlet UIImageView * _Nullable iconImageView;
899
920
/// The native ad advertiser / sponsored label.
900
- @property (nonatomic, weak ) IBOutlet UILabel * _Nullable advertiserLabel;
921
+ @property (nonatomic, strong ) IBOutlet UILabel * _Nullable advertiserLabel;
901
922
/// The native ad call to action button.
902
- @property (nonatomic, weak ) IBOutlet UIButton * _Nullable callToActionButton;
923
+ @property (nonatomic, strong ) IBOutlet UIButton * _Nullable callToActionButton;
903
924
/// The native ad rating view.
904
- @property (nonatomic, weak ) IBOutlet UIView * _Nullable ratingView;
925
+ @property (nonatomic, strong ) IBOutlet UIView * _Nullable ratingView;
905
926
/// The native ad price label.
906
- @property (nonatomic, weak ) IBOutlet UILabel * _Nullable priceLabel;
927
+ @property (nonatomic, strong ) IBOutlet UILabel * _Nullable priceLabel;
907
928
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
908
929
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
909
930
@end
@@ -952,6 +973,7 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK18TeadsSoundDelegate_") SWIFT_UNAVAILABLE_MSG("'Tea
952
973
953
974
954
975
976
+
955
977
@interface UIButton (SWIFT_EXTENSION(TeadsSDK))
956
978
- (void)bindWithComponent:(CommonComponent * _Nullable)component;
957
979
@end
@@ -1230,6 +1252,7 @@ SWIFT_CLASS("_TtC8TeadsSDK16OverlayComponent")
1230
1252
1231
1253
1232
1254
/// Native Component containing AdChoices <code>clickThroughUrl</code>
1255
+ /// Teads is partner of DAA <a href="https://youradchoices.com/participating#CompanyT">Digital Advertising Alliance</a>
1233
1256
/// note:
1234
1257
/// AdChoices component and associated logo is automatically added to <code>TeadsNativeAdView</code>
1235
1258
SWIFT_CLASS("_TtC8TeadsSDK18AdChoicesComponent")
@@ -1378,6 +1401,17 @@ SWIFT_CLASS("_TtC8TeadsSDK7TeadsAd")
1378
1401
1379
1402
1380
1403
1404
+ @class NSCoder;
1405
+
1406
+ /// The Teads AdChoices view is responsible to render the optionView or AdChoices view.
1407
+ /// Teads is partner of DAA <a href="https://youradchoices.com/participating#CompanyT">Digital Advertising Alliance</a>
1408
+ SWIFT_CLASS("_TtC8TeadsSDK18TeadsAdChoicesView")
1409
+ @interface TeadsAdChoicesView : UIView
1410
+ - (nonnull instancetype)initWithBinding:(CommonComponent * _Nullable)component OBJC_DESIGNATED_INITIALIZER;
1411
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)_ SWIFT_UNAVAILABLE;
1412
+ - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
1413
+ @end
1414
+
1381
1415
@class UIViewController;
1382
1416
1383
1417
/// Delegate methods needed to follow Teads ads lifecycle.
@@ -1423,7 +1457,6 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK15TeadsAdDelegate_")
1423
1457
- (void)didCollapsedFromFullscreenWithAd:(TeadsAd * _Nonnull)ad;
1424
1458
@end
1425
1459
1426
- @class NSCoder;
1427
1460
1428
1461
/// adOpportunity is a key metrics to evaluate the performance of your inventory.
1429
1462
/// It builds the visibility score of your placement in publisher dashboards.
@@ -1433,7 +1466,8 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK15TeadsAdDelegate_")
1433
1466
SWIFT_CLASS("_TtC8TeadsSDK29TeadsAdOpportunityTrackerView")
1434
1467
@interface TeadsAdOpportunityTrackerView : UIView
1435
1468
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
1436
- - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
1469
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)_ SWIFT_UNAVAILABLE;
1470
+ - (void)removeFromSuperview;
1437
1471
@end
1438
1472
1439
1473
@@ -1688,6 +1722,8 @@ SWIFT_CLASS("_TtC8TeadsSDK13TeadsInReadAd")
1688
1722
/// In order to create placement, call <code>Teads.createInReadPlacement()</code>
1689
1723
SWIFT_CLASS("_TtC8TeadsSDK22TeadsInReadAdPlacement")
1690
1724
@interface TeadsInReadAdPlacement : TeadsAdPlacement
1725
+ /// TeadsInReadAdPlacementDelegate to follow ad placement lifecycle
1726
+ @property (nonatomic, weak) id <TeadsInReadAdPlacementDelegate> _Nullable delegate;
1691
1727
/// Request a native ad on this placement
1692
1728
/// listen for events by implementing <code>TeadsInReadAdPlacementDelegate</code>
1693
1729
/// requires:
@@ -1702,9 +1738,22 @@ SWIFT_CLASS("_TtC8TeadsSDK22TeadsInReadAdPlacement")
1702
1738
1703
1739
1704
1740
1741
+ /// Log delegate enabling you to route every log message written in console into a dedicated area of your choice
1742
+ SWIFT_PROTOCOL("_TtP8TeadsSDK23TeadsLogMessageDelegate_")
1743
+ @protocol TeadsLogMessageDelegate
1744
+ @optional
1745
+ /// Called each time TeadsSDK triggers a log message
1746
+ /// \param message log message
1747
+ ///
1748
+ /// \param note If no subscribers is set, log message will be written into console
1749
+ ///
1750
+ - (void)didLogMessageWithMessage:(NSString * _Nonnull)message;
1751
+ @end
1752
+
1753
+
1705
1754
/// Root placement delegate methods needed to follow Teads ad requests flow
1706
1755
SWIFT_PROTOCOL("_TtP8TeadsSDK23TeadsdPlacementDelegate_")
1707
- @protocol TeadsdPlacementDelegate
1756
+ @protocol TeadsdPlacementDelegate <TeadsLogMessageDelegate>
1708
1757
/// Called when the Teads SDK has not received an ad, the reason will be detailled in the parameter
1709
1758
/// \param reason an object that contains the fail reason
1710
1759
///
@@ -1713,13 +1762,6 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK23TeadsdPlacementDelegate_")
1713
1762
/// \param trackerView the view that will monitor your inventory
1714
1763
///
1715
1764
- (void)adOpportunityTrackerViewWithTrackerView:(TeadsAdOpportunityTrackerView * _Nonnull)trackerView;
1716
- @optional
1717
- /// Called each time TeadsSDK triggers a log message
1718
- /// \param message log message
1719
- ///
1720
- /// \param note If no subscribers is set, log message will be written into console
1721
- ///
1722
- - (void)didLogMessageWithMessage:(NSString * _Nonnull)message;
1723
1765
@end
1724
1766
1725
1767
@@ -1771,6 +1813,7 @@ SWIFT_CLASS("_TtC8TeadsSDK17TeadsInReadAdView")
1771
1813
1772
1814
1773
1815
1816
+
1774
1817
@class VideoComponent;
1775
1818
1776
1819
/// The TeadsMediaView can load either images, videos and VPAID content.
@@ -1889,21 +1932,21 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK30TeadsNativeAdPlacementDelegate_")
1889
1932
SWIFT_CLASS("_TtC8TeadsSDK17TeadsNativeAdView")
1890
1933
@interface TeadsNativeAdView : TeadsAdView
1891
1934
/// The native ad title label.
1892
- @property (nonatomic, weak ) IBOutlet UILabel * _Nullable titleLabel;
1935
+ @property (nonatomic, strong ) IBOutlet UILabel * _Nullable titleLabel;
1893
1936
/// The native ad content / body label.
1894
- @property (nonatomic, weak ) IBOutlet UILabel * _Nullable contentLabel;
1937
+ @property (nonatomic, strong ) IBOutlet UILabel * _Nullable contentLabel;
1895
1938
/// The native ad media view (for images and videos).
1896
- @property (nonatomic, weak ) IBOutlet TeadsMediaView * _Nullable mediaView;
1939
+ @property (nonatomic, strong ) IBOutlet TeadsMediaView * _Nullable mediaView;
1897
1940
/// The native ad icon image view.
1898
- @property (nonatomic, weak ) IBOutlet UIImageView * _Nullable iconImageView;
1941
+ @property (nonatomic, strong ) IBOutlet UIImageView * _Nullable iconImageView;
1899
1942
/// The native ad advertiser / sponsored label.
1900
- @property (nonatomic, weak ) IBOutlet UILabel * _Nullable advertiserLabel;
1943
+ @property (nonatomic, strong ) IBOutlet UILabel * _Nullable advertiserLabel;
1901
1944
/// The native ad call to action button.
1902
- @property (nonatomic, weak ) IBOutlet UIButton * _Nullable callToActionButton;
1945
+ @property (nonatomic, strong ) IBOutlet UIButton * _Nullable callToActionButton;
1903
1946
/// The native ad rating view.
1904
- @property (nonatomic, weak ) IBOutlet UIView * _Nullable ratingView;
1947
+ @property (nonatomic, strong ) IBOutlet UIView * _Nullable ratingView;
1905
1948
/// The native ad price label.
1906
- @property (nonatomic, weak ) IBOutlet UILabel * _Nullable priceLabel;
1949
+ @property (nonatomic, strong ) IBOutlet UILabel * _Nullable priceLabel;
1907
1950
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
1908
1951
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
1909
1952
@end
@@ -1952,6 +1995,7 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK18TeadsSoundDelegate_") SWIFT_UNAVAILABLE_MSG("'Tea
1952
1995
1953
1996
1954
1997
1998
+
1955
1999
@interface UIButton (SWIFT_EXTENSION(TeadsSDK))
1956
2000
- (void)bindWithComponent:(CommonComponent * _Nullable)component;
1957
2001
@end
0 commit comments