@@ -261,13 +261,15 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK13TFAAdDelegate_")
261261// /
262262- (void )adPlaybackChange:(TFACustomAdView * _Nonnull)ad state:(enum TeadsAdPlaybackState)state;
263263// / Called when ad changes volume state
264+ // / @deprecated since 4.1.2 please use TFASoundDelegate instead
264265// / \param ad The teadsAd object
265266// /
266267// / \param muted true if the sound is off false otherwise
267268// /
268269- (void )adDidChangeVolume:(TFACustomAdView * _Nonnull)ad muted:(BOOL )muted;
269270@end
270271
272+ @protocol TFASoundDelegate;
271273@class NSCoder ;
272274@class TeadsAdSettings;
273275
@@ -282,6 +284,7 @@ SWIFT_CLASS("_TtC8TeadsSDK15TFACustomAdView")
282284// / Ad sound enabled state
283285@property (nonatomic, readonly) BOOL isSoundActive;
284286@property (nonatomic, weak) id <TFAAdDelegate> _Nullable delegate;
287+ @property (nonatomic, weak) id <TFASoundDelegate> _Nullable soundDelegate;
285288@property (nonatomic) NSInteger pid;
286289@property (nonatomic) CGRect bounds;
287290@property (nonatomic) CGRect frame;
@@ -411,8 +414,18 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK21TFARewardedAdDelegate_")
411414@end
412415
413416
417+ SWIFT_PROTOCOL (" _TtP8TeadsSDK16TFASoundDelegate_" )
418+ @protocol TFASoundDelegate
419+ // / Called when the ad will start playing audio
420+ - (void )adWillStartPlayingAudio:(TFACustomAdView * _Nonnull)ad;
421+ // / Called when the ad will stop playing audio
422+ - (void )adDidStopPlayingAudio:(TFACustomAdView * _Nonnull)ad;
423+ @end
424+
425+
414426SWIFT_CLASS (" _TtC8TeadsSDK15TeadsAdSettings" )
415427@interface TeadsAdSettings : NSObject
428+ - (void )disableTeadsAudioSessionManagement;
416429- (void )enableDebug;
417430- (void )disableLocation;
418431- (void )enableLigtEndScreen;
0 commit comments