Skip to content

Commit a954466

Browse files
v5.0.7
1 parent 164ccc0 commit a954466

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+631
-488
lines changed
292 KB
Binary file not shown.

Frameworks/TeadsSDK.xcframework/ios-arm64_armv7/TeadsSDK.framework/Headers/TeadsSDK-Swift.h

Lines changed: 76 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ typedef SWIFT_ENUM(NSInteger, AdErrorCode, open) {
229229
SWIFT_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
244245
SWIFT_CLASS("_TtC8TeadsSDK15CommonComponent")
245246
@interface CommonComponent : NSObject
@@ -263,7 +264,6 @@ SWIFT_CLASS("_TtC8TeadsSDK14ImageComponent")
263264

264265

265266

266-
267267
SWIFT_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

633646
SWIFT_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) {
983989
SWIFT_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
9981005
SWIFT_CLASS("_TtC8TeadsSDK15CommonComponent")
9991006
@interface CommonComponent : NSObject
@@ -1017,7 +1024,6 @@ SWIFT_CLASS("_TtC8TeadsSDK14ImageComponent")
10171024

10181025

10191026

1020-
10211027
SWIFT_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

13871406
SWIFT_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 Bytes
Binary file not shown.
-1.09 KB
Binary file not shown.

Frameworks/TeadsSDK.xcframework/ios-arm64_armv7/TeadsSDK.framework/Modules/TeadsSDK.swiftmodule/arm.swiftinterface

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@ extension UIView {
2727
@objc override dynamic public init()
2828
@objc deinit
2929
}
30-
@objc public protocol TeadsNativeAdPlacementDelegate {
30+
@objc public protocol TeadsNativeAdPlacementDelegate : TeadsSDK.TeadsdPlacementDelegate {
3131
@objc func didReceiveAd(ad: TeadsSDK.TeadsNativeAd)
32-
@objc func didFailToReceiveAd(reason: TeadsSDK.AdFailReason)
33-
@objc func adOpportunityTrackerView(trackerView: TeadsSDK.TeadsAdOpportunityTrackerView)
3432
}
3533
@_hasMissingDesignatedInitializers @objc final public class TeadsNativeAdPlacement : TeadsSDK.TeadsAdPlacement {
3634
final public func requestAd(requestSettings: TeadsSDK.TeadsNativeAdRequestSettings)
@@ -122,14 +120,12 @@ internal protocol AnyDecodableProtocol {
122120
extension AnyDecodableProtocol {
123121
public init(from decoder: Swift.Decoder) throws
124122
}
125-
@objc public protocol TeadsInReadAdPlacementDelegate {
123+
@objc public protocol TeadsInReadAdPlacementDelegate : TeadsSDK.TeadsdPlacementDelegate {
126124
@objc func didReceiveAd(ad: TeadsSDK.TeadsInReadAd, adRatio: TeadsSDK.TeadsAdRatio)
127-
@objc func didFailToReceiveAd(reason: TeadsSDK.AdFailReason)
128-
@objc func adOpportunityTrackerView(trackerView: TeadsSDK.TeadsAdOpportunityTrackerView)
129125
@objc func didUpdateRatio(ad: TeadsSDK.TeadsInReadAd, adRatio: TeadsSDK.TeadsAdRatio)
130126
}
131127
@_hasMissingDesignatedInitializers @objc final public class TeadsInReadAdPlacement : TeadsSDK.TeadsAdPlacement {
132-
@objc final public func requestAd(requestSettings: TeadsSDK.TeadsAdRequestSettings)
128+
@objc final public func requestAd(requestSettings: TeadsSDK.TeadsInReadAdRequestSettings)
133129
@objc deinit
134130
}
135131
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objc final public class TeadsNativeAd : TeadsSDK.TeadsAd {
@@ -186,6 +182,8 @@ public protocol TeadsAdRequestSettingsProtocol {
186182
@objc final public func registerAdView(_ adView: UIKit.UIView, delegate: TeadsSDK.TeadsMediatedAdViewDelegate?)
187183
@objc deinit
188184
}
185+
public typealias TeadsNativeAdRequestSettings = TeadsSDK.TeadsAdRequestSettings
186+
public typealias TeadsInReadAdRequestSettings = TeadsSDK.TeadsAdRequestSettings
189187
@objc public enum TCFVersion : Swift.Int, Swift.Codable {
190188
case v1 = 1
191189
case v2 = 2
@@ -208,7 +206,11 @@ extension UIButton {
208206
@objc required dynamic public init?(coder: Foundation.NSCoder)
209207
@objc deinit
210208
}
211-
public typealias TeadsNativeAdRequestSettings = TeadsSDK.TeadsAdRequestSettings
209+
@objc public protocol TeadsdPlacementDelegate {
210+
@objc func didFailToReceiveAd(reason: TeadsSDK.AdFailReason)
211+
@objc func adOpportunityTrackerView(trackerView: TeadsSDK.TeadsAdOpportunityTrackerView)
212+
@objc optional func didLogMessage(message: Swift.String)
213+
}
212214
@_hasMissingDesignatedInitializers @objc public class TeadsAdPlacement : ObjectiveC.NSObject {
213215
@objc deinit
214216
@objc override dynamic public init()
@@ -271,8 +273,8 @@ extension TeadsInReadAd {
271273
@objc public protocol TeadsPlaybackDelegate {
272274
@objc optional func adStartPlayingAudio(_ ad: TeadsSDK.TeadsAd)
273275
@objc optional func adStopPlayingAudio(_ ad: TeadsSDK.TeadsAd)
274-
@objc optional func didPause(_ ad: TeadsSDK.TeadsAd)
275276
@objc optional func didPlay(_ ad: TeadsSDK.TeadsAd)
277+
@objc optional func didPause(_ ad: TeadsSDK.TeadsAd)
276278
@objc optional func didComplete(_ ad: TeadsSDK.TeadsAd)
277279
}
278280
@available(*, unavailable, renamed: "TeadsPlaybackDelegate", message: "Use TeadsPlaybackDelegate instead")
@@ -354,17 +356,25 @@ extension CommonComponent {
354356
}
355357
}
356358
@_hasMissingDesignatedInitializers @objc final public class AdFailReason : ObjectiveC.NSObject {
357-
@objc final public var errorCode: TeadsSDK.AdErrorCode
359+
@objc final public var code: TeadsSDK.AdErrorCode
358360
@objc final public var errorMessage: Swift.String
359361
@objc override final public var description: Swift.String {
360362
@objc get
361363
}
362-
final public var error: Swift.Error {
363-
get
364-
}
365364
@objc override dynamic public init()
366365
@objc deinit
367366
}
367+
extension AdFailReason : Foundation.CustomNSError {
368+
public static var errorDomain: Swift.String {
369+
get
370+
}
371+
final public var errorCode: Swift.Int {
372+
get
373+
}
374+
final public var errorUserInfo: [Swift.String : Any] {
375+
get
376+
}
377+
}
368378
extension TeadsSDK.TCFVersion : Swift.Equatable {}
369379
extension TeadsSDK.TCFVersion : Swift.Hashable {}
370380
extension TeadsSDK.TCFVersion : Swift.RawRepresentable {}
-1.09 KB
Binary file not shown.

0 commit comments

Comments
 (0)