public final class AVAudioSessionInterruptionReason
extends java.lang.Object
Values for AVAudioSessionInterruptionReasonKey in AVAudioSessionInterruptionNotification's userInfo dictionary.
[@var] AVAudioSessionInterruptionReasonDefault The audio session was interrupted because another session was activated.
[@var] AVAudioSessionInterruptionReasonAppWasSuspended The audio session was interrupted due to the app being suspended by the operating sytem.
Starting in iOS 10, the system will deactivate the audio session of most apps in response to the app process being suspended. When the app starts running again, it will receive the notification that its session has been deactivated by the system. Note that the notification is necessarily delayed in time, due to the fact that the application was suspended at the time the session was deactivated by the system and the notification can only be delivered once the app is running again.
[@var] AVAudioSessionInterruptionReasonBuiltInMicMuted The audio session was interrupted due to the built-in mic being muted e.g. due to an iPad's Smart Folio being closed.
| Modifier and Type | Field and Description |
|---|---|
static long |
AppWasSuspended |
static long |
BuiltInMicMuted |
static long |
Default |
public static final long Default
public static final long AppWasSuspended
public static final long BuiltInMicMuted