@@ -229,7 +229,7 @@ typedef SWIFT_ENUM(NSInteger, AdErrorCode, open) {
229229SWIFT_CLASS("_TtC8TeadsSDK12AdFailReason")
230230@interface AdFailReason : NSObject
231231/// Error code
232- @property (nonatomic) enum AdErrorCode errorCode ;
232+ @property (nonatomic) enum AdErrorCode code ;
233233/// String that describes the error reason
234234@property (nonatomic, copy) NSString * _Nonnull errorMessage;
235235@property (nonatomic, readonly, copy) NSString * _Nonnull description;
@@ -240,6 +240,7 @@ SWIFT_CLASS("_TtC8TeadsSDK12AdFailReason")
240240
241241
242242
243+
243244/// CommonComponent
244245SWIFT_CLASS("_TtC8TeadsSDK15CommonComponent")
245246@interface CommonComponent : NSObject
@@ -263,7 +264,6 @@ SWIFT_CLASS("_TtC8TeadsSDK14ImageComponent")
263264
264265
265266
266-
267267SWIFT_CLASS("_TtC8TeadsSDK16OverlayComponent")
268268@interface OverlayComponent : CommonComponent
269269@end
@@ -339,13 +339,14 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK15TeadsAdDelegate_")
339339- (UIViewController * _Nullable)willPresentModalViewWithAd:(TeadsAd * _Nonnull)ad SWIFT_WARN_UNUSED_RESULT;
340340@optional
341341/// 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+ ///
345346- (void)didCatchErrorWithAd:(TeadsAd * _Nonnull)ad error:(NSError * _Nonnull)error;
346347/// 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+ ///
349350- (void)didCloseWithAd:(TeadsAd * _Nonnull)ad;
350351/// Called when Teads has recorded an impression for the current ad
351352/// \param ad The teadsAd object
@@ -538,14 +539,8 @@ SWIFT_CLASS("_TtC8TeadsSDK22TeadsInReadAdPlacement")
538539
539540
540541
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
549544/// Called when the Teads SDK has not received an ad, the reason will be detailled in the parameter
550545/// \param reason an object that contains the fail reason
551546///
@@ -554,6 +549,24 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK30TeadsInReadAdPlacementDelegate_")
554549/// \param trackerView the view that will monitor your inventory
555550///
556551- (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;
557570/// Called when the Teads SDK needs you to resize your adView the creative inform us of its new ratio
558571/// When it called it is the right place to update your view ratio. A basic implementation may look litke this:
559572/// <h1>Code</h1>
@@ -631,21 +644,13 @@ SWIFT_CLASS("_TtC8TeadsSDK22TeadsNativeAdPlacement")
631644
632645
633646SWIFT_PROTOCOL("_TtP8TeadsSDK30TeadsNativeAdPlacementDelegate_")
634- @protocol TeadsNativeAdPlacementDelegate
647+ @protocol TeadsNativeAdPlacementDelegate <TeadsdPlacementDelegate>
635648/// 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+ ///
639653- (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;
649654@end
650655
651656@class UILabel;
@@ -680,14 +685,14 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK21TeadsPlaybackDelegate_")
680685/// \param ad The teadsAd object
681686///
682687- (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;
687688/// Called when the ad starts or resumes
688689/// \param ad The teadsAd object
689690///
690691- (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;
691696/// Called when the ad ended
692697/// \param ad The teadsAd object
693698///
@@ -711,6 +716,7 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK18TeadsSoundDelegate_") SWIFT_UNAVAILABLE_MSG("'Tea
711716
712717
713718
719+
714720@interface UIButton (SWIFT_EXTENSION(TeadsSDK))
715721- (void)bindWithComponent:(CommonComponent * _Nullable)component;
716722@end
@@ -983,7 +989,7 @@ typedef SWIFT_ENUM(NSInteger, AdErrorCode, open) {
983989SWIFT_CLASS("_TtC8TeadsSDK12AdFailReason")
984990@interface AdFailReason : NSObject
985991/// Error code
986- @property (nonatomic) enum AdErrorCode errorCode ;
992+ @property (nonatomic) enum AdErrorCode code ;
987993/// String that describes the error reason
988994@property (nonatomic, copy) NSString * _Nonnull errorMessage;
989995@property (nonatomic, readonly, copy) NSString * _Nonnull description;
@@ -994,6 +1000,7 @@ SWIFT_CLASS("_TtC8TeadsSDK12AdFailReason")
9941000
9951001
9961002
1003+
9971004/// CommonComponent
9981005SWIFT_CLASS("_TtC8TeadsSDK15CommonComponent")
9991006@interface CommonComponent : NSObject
@@ -1017,7 +1024,6 @@ SWIFT_CLASS("_TtC8TeadsSDK14ImageComponent")
10171024
10181025
10191026
1020-
10211027SWIFT_CLASS("_TtC8TeadsSDK16OverlayComponent")
10221028@interface OverlayComponent : CommonComponent
10231029@end
@@ -1093,13 +1099,14 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK15TeadsAdDelegate_")
10931099- (UIViewController * _Nullable)willPresentModalViewWithAd:(TeadsAd * _Nonnull)ad SWIFT_WARN_UNUSED_RESULT;
10941100@optional
10951101/// 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+ ///
10991106- (void)didCatchErrorWithAd:(TeadsAd * _Nonnull)ad error:(NSError * _Nonnull)error;
11001107/// 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+ ///
11031110- (void)didCloseWithAd:(TeadsAd * _Nonnull)ad;
11041111/// Called when Teads has recorded an impression for the current ad
11051112/// \param ad The teadsAd object
@@ -1292,14 +1299,8 @@ SWIFT_CLASS("_TtC8TeadsSDK22TeadsInReadAdPlacement")
12921299
12931300
12941301
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
13031304/// Called when the Teads SDK has not received an ad, the reason will be detailled in the parameter
13041305/// \param reason an object that contains the fail reason
13051306///
@@ -1308,6 +1309,24 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK30TeadsInReadAdPlacementDelegate_")
13081309/// \param trackerView the view that will monitor your inventory
13091310///
13101311- (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;
13111330/// Called when the Teads SDK needs you to resize your adView the creative inform us of its new ratio
13121331/// When it called it is the right place to update your view ratio. A basic implementation may look litke this:
13131332/// <h1>Code</h1>
@@ -1385,21 +1404,13 @@ SWIFT_CLASS("_TtC8TeadsSDK22TeadsNativeAdPlacement")
13851404
13861405
13871406SWIFT_PROTOCOL("_TtP8TeadsSDK30TeadsNativeAdPlacementDelegate_")
1388- @protocol TeadsNativeAdPlacementDelegate
1407+ @protocol TeadsNativeAdPlacementDelegate <TeadsdPlacementDelegate>
13891408/// 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+ ///
13931413- (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;
14031414@end
14041415
14051416@class UILabel;
@@ -1434,14 +1445,14 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK21TeadsPlaybackDelegate_")
14341445/// \param ad The teadsAd object
14351446///
14361447- (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;
14411448/// Called when the ad starts or resumes
14421449/// \param ad The teadsAd object
14431450///
14441451- (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;
14451456/// Called when the ad ended
14461457/// \param ad The teadsAd object
14471458///
@@ -1465,6 +1476,7 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK18TeadsSoundDelegate_") SWIFT_UNAVAILABLE_MSG("'Tea
14651476
14661477
14671478
1479+
14681480@interface UIButton (SWIFT_EXTENSION(TeadsSDK))
14691481- (void)bindWithComponent:(CommonComponent * _Nullable)component;
14701482@end
0 commit comments