Class AVAudioSessionPortDescription

  • All Implemented Interfaces:
    NSObject

    public class AVAudioSessionPortDescription
    extends NSObject
    Information about a port, a physical connector or audio device. API-Since: 6.0
    • Constructor Detail

      • AVAudioSessionPortDescription

        protected AVAudioSessionPortDescription​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • UID

        @NotNull
        public @NotNull java.lang.String UID()
        A system-assigned unique identifier for the associated hardware port API-Since: 6.0
      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hasHardwareVoiceCallProcessing

        public boolean hasHardwareVoiceCallProcessing()
        This property's value will be true if the associated hardware port has built-in processing for two-way voice communication. Applications that use their own proprietary voice processing algorithms should use this property to decide when to disable processing. On the other hand, if using Apple's Voice Processing I/O unit (subtype kAudioUnitSubType_VoiceProcessingIO), the system will automatically manage this for the application. In particular, ports of type AVAudioSessionPortBluetoothHFP and AVAudioSessionPortCarAudio often have hardware voice processing. API-Since: 10.0
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSpatialAudioEnabled

        public boolean isSpatialAudioEnabled()
        This property's value will be true if the port supports spatial audio playback and the feature is enabled. 'Now Playing' apps should also inform the system if they support multichannel audio content using -setSupportsMultichannelContent:error: method. Apps may also register to receive the AVAudioSessionSpatialPlaybackCapabilitiesChanged notification to detect changes in user preferences that affect spatial audio playback. This property is only relevant in the context of ports that have a small number of hardware channels (typically 2), but have enhanced capabilities for rendering multi-channel content. Note that some port types such as USB and HDMI may support multi-channel playback because they have hardware formats supporting more than 2 channels. For example, many HDMI receivers are connected to multiple speakers and are capable of rendering 5.1, 7.1, or other popular surround sound formats. Applications interested in utilizing multi-channel formats should also query AVAudioSession's maximumOutputNumberOfChannels property and make use of -setPreferredOutputNumberOfChannels:error: to set the preferred number of hardware channels. API-Since: 15.0
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • portName

        @NotNull
        public @NotNull java.lang.String portName()
        A descriptive name for the associated hardware port API-Since: 6.0
      • portType

        @NotNull
        public @NotNull java.lang.String portType()
        API-Since: 6.0
      • preferredDataSource

        @Nullable
        public @Nullable AVAudioSessionDataSourceDescription preferredDataSource()
        This property reflects the application's preferred data source for the Port. Will be nil if there are no selectable data sources or if no preference has been set. API-Since: 7.0
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • selectedDataSource

        @Nullable
        public @Nullable AVAudioSessionDataSourceDescription selectedDataSource()
        Will be nil if there are no selectable data sources. In all other cases, this property reflects the currently selected data source. API-Since: 7.0
      • setPreferredDataSourceError

        public boolean setPreferredDataSourceError​(@Nullable
                                                   @Nullable AVAudioSessionDataSourceDescription dataSource,
                                                   @Nullable
                                                   @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)
        Select the preferred data source for this port. The input dataSource parameter must be one of the dataSources exposed by the dataSources property. Setting a nil value will clear the preference. Note: if the port is part of the active audio route, changing the data source will likely result in a route reconfiguration. If the port is not part of the active route, selecting a new data source will not result in an immediate route reconfiguration. Use AVAudioSession's -setPreferredInput:error: method to activate the port. API-Since: 7.0
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.