Language

AVAudioSessionInterruptionEventArgs Class

Definition

Provides data for an event based on a posted NSNotification object.

public class AVAudioSessionInterruptionEventArgs : Foundation.NSNotificationEventArgs
type AVAudioSessionInterruptionEventArgs = class
    inherit NSNotificationEventArgs
Inheritance
AVAudioSessionInterruptionEventArgs

Constructors

Name Description
AVAudioSessionInterruptionEventArgs(NSNotification)

Initializes a new instance of the AVAudioSessionInterruptionEventArgs class.

Properties

Name Description
InterruptionType

Gets a value that tells whether the interruption began or ended.

Notification

Gets the underlying NSNotification object from the posted notification.

(Inherited from NSNotificationEventArgs)
Option

Gets a value that tells whether playback should resume.

Reason

The value of the AVAudioSessionInterruptionReasonKey key from the underlying NSNotification's user info dictionary.

WasSuspended

Gets a Boolean value that tells whether the reason for the interruption was that the app was suspended.

Applies to