SoundContextDelegate
Objective-C
@protocol SoundContextDelegate <NSObject>
Swift
protocol SoundContextDelegate : NSObjectProtocol
A set of delegate methods for sound context objects.
-
Notifies the delegate that sound session interruption began.
Declaration
Objective-C
- (void)soundContextNotifyInterruptionBegin: (nonnull SoundContext *)soundContext;
Swift
optional func soundContextNotifyInterruptionBegin(_ soundContext: SoundContext)
Parameters
SoundContext
The sound context informing the delegate of this event.
-
Notifies the delegate that sound session interruption ended.
Declaration
Objective-C
- (void)soundContextNotifyInterruptionEnded: (nonnull SoundContext *)soundContext;
Swift
optional func soundContextNotifyInterruptionEnded(_ soundContext: SoundContext)
Parameters
SoundContext
The sound context informing the delegate of this event.