| Modifier and Type | Class and Description |
|---|---|
static interface |
AVAudioSession.Block_prepareRouteSelectionForPlaybackWithCompletionHandler |
static interface |
AVAudioSession.Block_requestRecordPermission |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
AVAudioSession(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static AVAudioSession |
alloc() |
static AVAudioSession |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
boolean |
allowHapticsAndSystemSoundsDuringRecording()
Whether system sounds and haptics can play while the session is actively using audio input.
|
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
NSArray<java.lang.String> |
availableCategories()
Get the list of categories available on the device.
|
NSArray<? extends AVAudioSessionPortDescription> |
availableInputs()
Get the set of input ports that are available for routing.
|
NSArray<java.lang.String> |
availableModes()
Get the list of modes available on the device.
|
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
java.lang.String |
category()
Get session category.
|
long |
categoryOptions()
Get the current set of AVAudioSessionCategoryOptions.
|
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
long |
currentHardwareInputNumberOfChannels()
Deprecated.
|
long |
currentHardwareOutputNumberOfChannels()
Deprecated.
|
double |
currentHardwareSampleRate()
Deprecated.
|
AVAudioSessionRouteDescription |
currentRoute()
A description of the current route, consisting of zero or more input ports and zero or more
output ports
|
static java.lang.String |
debugDescription_static() |
AVAudioSessionDelegate |
delegate()
Deprecated.
|
static java.lang.String |
description_static() |
static long |
hash_static() |
AVAudioSession |
init()
AVAudioSession is a singleton.
|
AVAudioSessionDataSourceDescription |
inputDataSource()
Obtain the currently selected input data source.
|
NSArray<? extends AVAudioSessionDataSourceDescription> |
inputDataSources()
DataSource methods are for use with routes that support input or output data source
selection.
|
float |
inputGain()
value in range [0.0, 1.0]
|
boolean |
inputIsAvailable()
Deprecated.
|
double |
inputLatency()
The current hardware input latency in seconds.
|
long |
inputNumberOfChannels()
The current number of hardware input channels.
|
long |
inputOrientation()
Describes the orientation of the input data source (valid for the built-in mic input data source when a stereo polar pattern is selected).
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
double |
IOBufferDuration()
The current hardware IO buffer duration in seconds.
|
boolean |
isInputAvailable()
True if input hardware is available.
|
boolean |
isInputGainSettable()
True when audio input gain is available.
|
boolean |
isOtherAudioPlaying()
True when another application is playing audio.
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
long |
maximumInputNumberOfChannels()
Returns the largest number of audio input channels available for the current route
|
long |
maximumOutputNumberOfChannels()
Returns the largest number of audio output channels available for the current route
|
java.lang.String |
mode()
Get the session's mode.
|
static AVAudioSession |
new_objc() |
AVAudioSessionDataSourceDescription |
outputDataSource()
Obtain the currently selected output data source.
|
NSArray<? extends AVAudioSessionDataSourceDescription> |
outputDataSources()
See inputDataSources for background.
|
double |
outputLatency()
The current hardware output latency in seconds.
|
long |
outputNumberOfChannels()
The current number of hardware output channels.
|
float |
outputVolume()
The current output volume.
|
boolean |
overrideOutputAudioPortError(long portOverride,
org.moe.natj.general.ptr.Ptr<NSError> outError)
Use this method to temporarily override the output to built-in speaker.
|
double |
preferredHardwareSampleRate()
Deprecated.
|
AVAudioSessionPortDescription |
preferredInput()
Get the preferred input port.
|
long |
preferredInputNumberOfChannels() |
long |
preferredInputOrientation() |
double |
preferredIOBufferDuration() |
long |
preferredOutputNumberOfChannels() |
double |
preferredSampleRate() |
boolean |
prefersNoInterruptionsFromSystemAlerts() |
void |
prepareRouteSelectionForPlaybackWithCompletionHandler(AVAudioSession.Block_prepareRouteSelectionForPlaybackWithCompletionHandler completionHandler)
prepareRouteSelectionForPlaybackWithCompletionHandler:
|
long |
promptStyle()
The prompt style is a hint to sessions using AVAudioSessionModeVoicePrompt to alter the type of
prompts they issue in response to other audio activity on the system, such as Siri and phone
calls.
|
long |
recordPermission()
Returns an enum indicating whether the user has granted or denied permission to record, or has
not been asked
|
void |
requestRecordPermission(AVAudioSession.Block_requestRecordPermission response)
Checks to see if calling process has permission to record audio.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
long |
routeSharingPolicy()
Get the route sharing policy.
|
double |
sampleRate()
The current hardware sample rate
|
boolean |
secondaryAudioShouldBeSilencedHint()
True when another application with a non-mixable audio session is playing audio.
|
boolean |
setActiveError(boolean active,
org.moe.natj.general.ptr.Ptr<NSError> outError)
Set the session active or inactive.
|
boolean |
setActiveWithFlagsError(boolean active,
long flags,
org.moe.natj.general.ptr.Ptr<NSError> outError)
Deprecated.
|
boolean |
setActiveWithOptionsError(boolean active,
long options,
org.moe.natj.general.ptr.Ptr<NSError> outError) |
boolean |
setAggregatedIOPreferenceError(long inIOType,
org.moe.natj.general.ptr.Ptr<NSError> outError)
Controls whether audio input and output are aggregated.
|
boolean |
setAllowHapticsAndSystemSoundsDuringRecordingError(boolean inValue,
org.moe.natj.general.ptr.Ptr<NSError> outError)
Set allowHapticsAndSystemSoundsDuringRecording to YES in order to allow system sounds and haptics to play while the session is actively using audio input.
|
boolean |
setCategoryError(java.lang.String category,
org.moe.natj.general.ptr.Ptr<NSError> outError)
Set session category.
|
boolean |
setCategoryModeOptionsError(java.lang.String category,
java.lang.String mode,
long options,
org.moe.natj.general.ptr.Ptr<NSError> outError)
Set session category and mode with options.
|
boolean |
setCategoryModeRouteSharingPolicyOptionsError(java.lang.String category,
java.lang.String mode,
long policy,
long options,
org.moe.natj.general.ptr.Ptr<NSError> outError)
Set session category, mode, routing sharing policy, and options.
|
boolean |
setCategoryWithOptionsError(java.lang.String category,
long options,
org.moe.natj.general.ptr.Ptr<NSError> outError)
Set session category with options.
|
void |
setDelegate_unsafe(AVAudioSessionDelegate value)
Deprecated.
|
void |
setDelegate(AVAudioSessionDelegate value)
Deprecated.
|
boolean |
setInputDataSourceError(AVAudioSessionDataSourceDescription dataSource,
org.moe.natj.general.ptr.Ptr<NSError> outError)
Select a new input data source.
|
boolean |
setInputGainError(float gain,
org.moe.natj.general.ptr.Ptr<NSError> outError)
A value defined over the range [0.0, 1.0], with 0.0 corresponding to the lowest analog
gain setting and 1.0 corresponding to the highest analog gain setting.
|
boolean |
setModeError(java.lang.String mode,
org.moe.natj.general.ptr.Ptr<NSError> outError)
Set the session's mode.
|
boolean |
setOutputDataSourceError(AVAudioSessionDataSourceDescription dataSource,
org.moe.natj.general.ptr.Ptr<NSError> outError)
Select a new output data source.
|
boolean |
setPreferredHardwareSampleRateError(double sampleRate,
org.moe.natj.general.ptr.Ptr<NSError> outError)
Deprecated.
|
boolean |
setPreferredInputError(AVAudioSessionPortDescription inPort,
org.moe.natj.general.ptr.Ptr<NSError> outError)
Select a preferred input port for audio routing.
|
boolean |
setPreferredInputNumberOfChannelsError(long count,
org.moe.natj.general.ptr.Ptr<NSError> outError)
Sets the number of input channels that the app would prefer for the current route
|
boolean |
setPreferredInputOrientationError(long orientation,
org.moe.natj.general.ptr.Ptr<NSError> outError)
Sets the preferred input orientation.
|
boolean |
setPreferredIOBufferDurationError(double duration,
org.moe.natj.general.ptr.Ptr<NSError> outError)
The preferred hardware IO buffer duration in seconds.
|
boolean |
setPreferredOutputNumberOfChannelsError(long count,
org.moe.natj.general.ptr.Ptr<NSError> outError)
Sets the number of output channels that the app would prefer for the current route
|
boolean |
setPreferredSampleRateError(double sampleRate,
org.moe.natj.general.ptr.Ptr<NSError> outError)
The preferred hardware sample rate for the session.
|
boolean |
setPrefersNoInterruptionsFromSystemAlertsError(boolean inValue,
org.moe.natj.general.ptr.Ptr<NSError> outError)
Set ringtone and alert interruption preference.
|
boolean |
setSupportsMultichannelContentError(boolean inValue,
org.moe.natj.general.ptr.Ptr<NSError> outError)
Set YES to inform the system if the app can supply multichannel audio content.
|
static void |
setVersion_static(long aVersion) |
static AVAudioSession |
sharedInstance()
Return singleton instance.
|
static org.moe.natj.objc.Class |
superclass_static() |
boolean |
supportsMultichannelContent() |
static long |
version_static() |
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic double IOBufferDuration()
public static boolean accessInstanceVariablesDirectly()
public static AVAudioSession alloc()
public static AVAudioSession allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public boolean allowHapticsAndSystemSoundsDuringRecording()
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public NSArray<java.lang.String> availableCategories()
public NSArray<? extends AVAudioSessionPortDescription> availableInputs()
Note that this property only applies to the session's current category and mode. For example, if the session's current category is AVAudioSessionCategoryPlayback, there will be no available inputs.
public NSArray<java.lang.String> availableModes()
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public java.lang.String category()
public long categoryOptions()
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
@Deprecated public long currentHardwareInputNumberOfChannels()
@Deprecated public long currentHardwareOutputNumberOfChannels()
@Deprecated public double currentHardwareSampleRate()
public AVAudioSessionRouteDescription currentRoute()
public static java.lang.String debugDescription_static()
@Deprecated public AVAudioSessionDelegate delegate()
public static java.lang.String description_static()
public static long hash_static()
public AVAudioSession init()
public AVAudioSessionDataSourceDescription inputDataSource()
public NSArray<? extends AVAudioSessionDataSourceDescription> inputDataSources()
If the attached accessory supports data source selection, the data source properties/methods provide for discovery and selection of input and/or output data sources. Note that the properties and methods for data source selection below are equivalent to the properties and methods on AVAudioSessionPortDescription. The methods below only apply to the currently routed ports.
Key-value observable.
public float inputGain()
@Deprecated public boolean inputIsAvailable()
public double inputLatency()
public long inputNumberOfChannels()
public long inputOrientation()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public boolean isInputAvailable()
public boolean isInputGainSettable()
public boolean isOtherAudioPlaying()
Note: As of iOS 8.0, Apple recommends that most applications use secondaryAudioShouldBeSilencedHint instead of this property. The otherAudioPlaying property will be true if any other audio (including audio from an app using AVAudioSessionCategoryAmbient) is playing, whereas the secondaryAudioShouldBeSilencedHint property is more restrictive in its consideration of whether primary audio from another application is playing.
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public long maximumInputNumberOfChannels()
public long maximumOutputNumberOfChannels()
public java.lang.String mode()
public static AVAudioSession new_objc()
public AVAudioSessionDataSourceDescription outputDataSource()
public NSArray<? extends AVAudioSessionDataSourceDescription> outputDataSources()
public double outputLatency()
public long outputNumberOfChannels()
public float outputVolume()
public boolean overrideOutputAudioPortError(long portOverride,
org.moe.natj.general.ptr.Ptr<NSError> outError)
This method is only valid for a session using PlayAndRecord category. This change remains in effect only until the current route changes or you call this method again with the AVAudioSessionPortOverrideNone option. Sessions using PlayAndRecord category that always want to prefer the built-in speaker output over the receiver, should use AVAudioSessionCategoryOptionDefaultToSpeaker instead.
@Deprecated public double preferredHardwareSampleRate()
public double preferredIOBufferDuration()
public AVAudioSessionPortDescription preferredInput()
public long preferredInputNumberOfChannels()
public long preferredInputOrientation()
public long preferredOutputNumberOfChannels()
public double preferredSampleRate()
public boolean prefersNoInterruptionsFromSystemAlerts()
public void prepareRouteSelectionForPlaybackWithCompletionHandler(AVAudioSession.Block_prepareRouteSelectionForPlaybackWithCompletionHandler completionHandler)
A call to this method is an indication that playback is about to start. This gives the receiver an opportunity to prompt the user to pick an output destination if necessary. The receiver will only prompt if the audio session has been configured with a long-form video route sharing policy.
Presenting playback UI (e.g. AVPlayerViewController) and commencing playback should be performed in the completionHandler.
completionHandler - Once any potential routing is complete, the completion handler is called with the selected route type and with a BOOL indicating whether playback should begin or not.public long promptStyle()
public long recordPermission()
public void requestRecordPermission(AVAudioSession.Block_requestRecordPermission response)
The 'response' block will be called immediately if permission has already been granted or denied. Otherwise, it presents a dialog to notify the user and allow them to choose, and calls the block once the UI has been dismissed. 'granted' indicates whether permission has been granted. Note that the block may be called in a different thread context.
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public long routeSharingPolicy()
See AVAudioSessionRouteSharingPolicy for a description of the available policies. See setCategory:mode:routeSharingPolicy:options:error: for additional discussion.
public double sampleRate()
public boolean secondaryAudioShouldBeSilencedHint()
Applications may use this property as a hint to silence audio that is secondary to the functionality of the application. For example, a game app using AVAudioSessionCategoryAmbient may use this property to decide to mute its soundtrack while leaving its sound effects unmuted. Note: This property is closely related to AVAudioSessionSilenceSecondaryAudioHintNotification.
public boolean setActiveError(boolean active,
org.moe.natj.general.ptr.Ptr<NSError> outError)
Note that activating an audio session is a synchronous (blocking) operation. Therefore, we recommend that applications not activate their session from a thread where a long blocking operation will be problematic. Apps may activate a AVAudioSessionCategoryPlayback session when another app is hosting a call (to start a SharePlay activity for example). However, they are not permitted to capture the microphone of the active call, so attempts to activate a session with category AVAudioSessionCategoryRecord or AVAudioSessionCategoryPlayAndRecord will fail with error AVAudioSessionErrorCodeInsufficientPriority. When deactivating a session, the caller is required to first stop or pause all running I/Os (e.g. audio queues, players, recorders, converters, remote I/Os, etc.). Starting in iOS 8, if the session has running I/Os at the time that deactivation is requested, the session will be deactivated, but the method will return NO and populate the NSError with the code property set to AVAudioSessionErrorCodeIsBusy to indicate the misuse of the API. Prior to iOS 8, the session would have remained active if it had running I/Os at the time of the deactivation request.
@Deprecated
public boolean setActiveWithFlagsError(boolean active,
long flags,
org.moe.natj.general.ptr.Ptr<NSError> outError)
public boolean setActiveWithOptionsError(boolean active,
long options,
org.moe.natj.general.ptr.Ptr<NSError> outError)
public boolean setAggregatedIOPreferenceError(long inIOType,
org.moe.natj.general.ptr.Ptr<NSError> outError)
See the AVAudioSessionIOType documentation for a more detailed explanation of why a client may want to change the IO type.
public boolean setAllowHapticsAndSystemSoundsDuringRecordingError(boolean inValue,
org.moe.natj.general.ptr.Ptr<NSError> outError)
public boolean setCategoryError(java.lang.String category,
org.moe.natj.general.ptr.Ptr<NSError> outError)
public boolean setCategoryModeOptionsError(java.lang.String category,
java.lang.String mode,
long options,
org.moe.natj.general.ptr.Ptr<NSError> outError)
public boolean setCategoryModeRouteSharingPolicyOptionsError(java.lang.String category,
java.lang.String mode,
long policy,
long options,
org.moe.natj.general.ptr.Ptr<NSError> outError)
Use of the long-form route sharing policy is only valid in conjunction with a limited set of category, mode, and option values.
Allowed categories: AVAudioSessionCategoryPlayback.
Allowed modes: AVAudioSessionModeDefault, AVAudioSessionModeMoviePlayback, AVAudioSessionModeSpokenAudio.
Allowed options: None. Options are allowed when changing the routing policy back to Default, however.
public boolean setCategoryWithOptionsError(java.lang.String category,
long options,
org.moe.natj.general.ptr.Ptr<NSError> outError)
@Deprecated public void setDelegate_unsafe(AVAudioSessionDelegate value)
@Deprecated public void setDelegate(AVAudioSessionDelegate value)
public boolean setInputDataSourceError(AVAudioSessionDataSourceDescription dataSource, org.moe.natj.general.ptr.Ptr<NSError> outError)
public boolean setInputGainError(float gain,
org.moe.natj.general.ptr.Ptr<NSError> outError)
Attempting to set values outside of the defined range will result in the value being "clamped" to a valid input. This is a global input gain setting that applies to the current input source for the entire system. When no applications are using the input gain control, the system will restore the default input gain setting for the input source. Note that some audio accessories, such as USB devices, may not have a default value. This property is only valid if inputGainSettable is true. Note: inputGain is key-value observable.
public boolean setModeError(java.lang.String mode,
org.moe.natj.general.ptr.Ptr<NSError> outError)
Modes modify the audio category in order to introduce behavior that is tailored to the specific use of audio within an application. Examples: AVAudioSessionModeVideoRecording, AVAudioSessionModeVoiceChat, AVAudioSessionModeMeasurement, etc.
public boolean setOutputDataSourceError(AVAudioSessionDataSourceDescription dataSource, org.moe.natj.general.ptr.Ptr<NSError> outError)
@Deprecated
public boolean setPreferredHardwareSampleRateError(double sampleRate,
org.moe.natj.general.ptr.Ptr<NSError> outError)
public boolean setPreferredIOBufferDurationError(double duration,
org.moe.natj.general.ptr.Ptr<NSError> outError)
public boolean setPreferredInputError(AVAudioSessionPortDescription inPort, org.moe.natj.general.ptr.Ptr<NSError> outError)
If the input port is already part of the current audio route, this will have no effect. Otherwise, selecting an input port for routing will initiate a route change to use the preferred input port. Setting a nil value will clear the preference.
public boolean setPreferredInputNumberOfChannelsError(long count,
org.moe.natj.general.ptr.Ptr<NSError> outError)
public boolean setPreferredInputOrientationError(long orientation,
org.moe.natj.general.ptr.Ptr<NSError> outError)
public boolean setPreferredOutputNumberOfChannelsError(long count,
org.moe.natj.general.ptr.Ptr<NSError> outError)
public boolean setPreferredSampleRateError(double sampleRate,
org.moe.natj.general.ptr.Ptr<NSError> outError)
public boolean setPrefersNoInterruptionsFromSystemAlertsError(boolean inValue,
org.moe.natj.general.ptr.Ptr<NSError> outError)
Inform the system when the session prefers to not be interrupted by ringtones and alerts. By setting this property to YES, clients will not be interrupted by incoming call notifications and other alerts. Starting in iOS 14.0, users can set a global preference for incoming call display style to "Banner" or "Full Screen". With "Banner" display style, if below property is set to YES then clients will not be interrupted on incoming call notification and user will have opportunity to accept or decline the call. If call is declined, the session will not be interrupted, but if user accepts the incoming call, the session will be interrupted. With display style set as "Full Screen", below property will have no effect and clients will be interrupted by incoming calls. Apps that record audio and/or video and apps that are used for music performance are candidates for using this feature.
public boolean setSupportsMultichannelContentError(boolean inValue,
org.moe.natj.general.ptr.Ptr<NSError> outError)
public static void setVersion_static(long aVersion)
public static AVAudioSession sharedInstance()
public static org.moe.natj.objc.Class superclass_static()
public boolean supportsMultichannelContent()
public static long version_static()