Class AVAudioSessionRouteChangeReason


  • public final class AVAudioSessionRouteChangeReason
    extends java.lang.Object
    Values for AVAudioSessionRouteChangeReasonKey in AVAudioSessionRouteChangeNotification's userInfo dictionary
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long CategoryChange
      The audio category has changed (e.g.
      static long NewDeviceAvailable
      A new device became available (e.g. headphones have been plugged in).
      static long NoSuitableRouteForCategory
      Returned when there is no route for the current category (for instance, the category is AVAudioSessionCategoryRecord but no input device is available).
      static long OldDeviceUnavailable
      The old device became unavailable (e.g. headphones have been unplugged).
      static long Override
      The route has been overridden (e.g. category is AVAudioSessionCategoryPlayAndRecord and the output has been changed from the receiver, which is the default, to the speaker).
      static long RouteConfigurationChange
      Indicates that the set of input and/our output ports has not changed, but some aspect of their configuration has changed.
      static long Unknown
      The reason is unknown.
      static long WakeFromSleep
      The device woke from sleep.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • NewDeviceAvailable

        public static final long NewDeviceAvailable
        A new device became available (e.g. headphones have been plugged in).
        See Also:
        Constant Field Values
      • OldDeviceUnavailable

        public static final long OldDeviceUnavailable
        The old device became unavailable (e.g. headphones have been unplugged).
        See Also:
        Constant Field Values
      • CategoryChange

        public static final long CategoryChange
        The audio category has changed (e.g. AVAudioSessionCategoryPlayback has been changed to AVAudioSessionCategoryPlayAndRecord).
        See Also:
        Constant Field Values
      • Override

        public static final long Override
        The route has been overridden (e.g. category is AVAudioSessionCategoryPlayAndRecord and the output has been changed from the receiver, which is the default, to the speaker).
        See Also:
        Constant Field Values
      • WakeFromSleep

        public static final long WakeFromSleep
        The device woke from sleep.
        See Also:
        Constant Field Values
      • NoSuitableRouteForCategory

        public static final long NoSuitableRouteForCategory
        Returned when there is no route for the current category (for instance, the category is AVAudioSessionCategoryRecord but no input device is available).
        See Also:
        Constant Field Values
      • RouteConfigurationChange

        public static final long RouteConfigurationChange
        Indicates that the set of input and/our output ports has not changed, but some aspect of their configuration has changed. For example, a port's selected data source has changed. (Introduced in iOS 7.0, watchOS 2.0, tvOS 9.0).
        See Also:
        Constant Field Values