Package org.robovm.apple.avfoundation
Class AVAudioSession
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.objc.ObjCObject
org.robovm.apple.foundation.NSObject
org.robovm.apple.avfoundation.AVAudioSession
- All Implemented Interfaces:
NSObjectProtocol,ObjCProtocol
public class AVAudioSession extends NSObject
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAVAudioSession.AVAudioSessionPtrstatic classAVAudioSession.NotificationsNested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInitNested classes/interfaces inherited from class org.robovm.objc.ObjCObject
ObjCObject.ObjCObjectPtr, ObjCObject.Super -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description AVAudioSession()protectedAVAudioSession(NSObject.Handle h, long handle)protectedAVAudioSession(NSObject.SkipInit skipInit) -
Method Summary
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRef
-
Constructor Details
-
AVAudioSession
public AVAudioSession() -
AVAudioSession
-
AVAudioSession
-
-
Method Details
-
getAvailableCategories
- Since:
- Available in iOS 9.0 and later.
-
getCategory
-
getCategoryOptions
-
getRouteSharingPolicy
- Since:
- Available in iOS 11.0 and later.
-
getAvailableModes
- Since:
- Available in iOS 9.0 and later.
-
getMode
-
isAllowHapticsAndSystemSoundsDuringRecording
public boolean isAllowHapticsAndSystemSoundsDuringRecording()- Since:
- Available in iOS 13.0 and later.
-
getRecordPermission
-
getPreferredInput
-
prefersNoInterruptionsFromSystemAlerts
public boolean prefersNoInterruptionsFromSystemAlerts()- Since:
- Available in iOS 14.5 and later.
-
getPreferredSampleRate
public double getPreferredSampleRate() -
getPreferredIOBufferDuration
public double getPreferredIOBufferDuration() -
getPreferredInputNumberOfChannels
public long getPreferredInputNumberOfChannels() -
getPreferredOutputNumberOfChannels
public long getPreferredOutputNumberOfChannels() -
getPreferredInputOrientation
- Since:
- Available in iOS 14.0 and later.
-
getInputOrientation
- Since:
- Available in iOS 14.0 and later.
-
getMaximumInputNumberOfChannels
public long getMaximumInputNumberOfChannels() -
getMaximumOutputNumberOfChannels
public long getMaximumOutputNumberOfChannels() -
getInputGain
public float getInputGain() -
isInputGainSettable
public boolean isInputGainSettable() -
isInputAvailable
public boolean isInputAvailable() -
getInputDataSources
-
getInputDataSource
-
getOutputDataSources
-
getOutputDataSource
-
getSampleRate
public double getSampleRate() -
getInputNumberOfChannels
public long getInputNumberOfChannels() -
getOutputNumberOfChannels
public long getOutputNumberOfChannels() -
getInputLatency
public double getInputLatency() -
getOutputLatency
public double getOutputLatency() -
getIOBufferDuration
public double getIOBufferDuration() -
isOtherAudioPlaying
public boolean isOtherAudioPlaying() -
secondaryAudioShouldBeSilencedHint
public boolean secondaryAudioShouldBeSilencedHint() -
getOutputVolume
public float getOutputVolume() -
getPromptStyle
- Since:
- Available in iOS 13.0 and later.
-
getAvailableInputs
-
getCurrentRoute
-
supportsMultichannelContent
public boolean supportsMultichannelContent()- Since:
- Available in iOS 15.0 and later.
-
InterruptionNotification
-
RouteChangeNotification
-
MediaServicesWereLostNotification
-
MediaServicesWereResetNotification
-
SilenceSecondaryAudioHintNotification
-
SpatialPlaybackCapabilitiesChangedNotification
- Since:
- Available in iOS 15.0 and later.
-
SilenceSecondaryAudioHintTypeKey
-
setCategory
- Throws:
NSErrorException
-
setCategory
public boolean setCategory(AVAudioSessionCategory category, AVAudioSessionCategoryOptions options) throws NSErrorException- Throws:
NSErrorException
-
setCategory
public boolean setCategory(AVAudioSessionCategory category, String mode, AVAudioSessionCategoryOptions options) throws NSErrorException- Throws:
NSErrorException- Since:
- Available in iOS 10.0 and later.
-
setCategory
public boolean setCategory(AVAudioSessionCategory category, String mode, AVAudioSessionRouteSharingPolicy policy, AVAudioSessionCategoryOptions options) throws NSErrorException- Throws:
NSErrorException- Since:
- Available in iOS 11.0 and later.
-
setMode
- Throws:
NSErrorException
-
setAllowHapticsAndSystemSoundsDuringRecording
public boolean setAllowHapticsAndSystemSoundsDuringRecording(boolean inValue) throws NSErrorException- Throws:
NSErrorException- Since:
- Available in iOS 13.0 and later.
-
requestRecordPermission
-
overrideOutputAudioPort
public boolean overrideOutputAudioPort(AVAudioSessionPortOverride portOverride) throws NSErrorException- Throws:
NSErrorException
-
setPreferredInput
- Throws:
NSErrorException
-
setPrefersNoInterruptionsFromSystemAlerts
- Throws:
NSErrorException- Since:
- Available in iOS 14.5 and later.
-
getSharedInstance
-
setActive
- Throws:
NSErrorException
-
setActive
public boolean setActive(boolean active, AVAudioSessionSetActiveOptions options) throws NSErrorException- Throws:
NSErrorException
-
setPreferredSampleRate
- Throws:
NSErrorException
-
setPreferredIOBufferDuration
- Throws:
NSErrorException
-
setPreferredInputNumberOfChannels
- Throws:
NSErrorException
-
setPreferredOutputNumberOfChannels
- Throws:
NSErrorException
-
setPreferredInputOrientation
public boolean setPreferredInputOrientation(AVAudioStereoOrientation orientation) throws NSErrorException- Throws:
NSErrorException- Since:
- Available in iOS 14.0 and later.
-
setInputGain
- Throws:
NSErrorException
-
setInputDataSource
public boolean setInputDataSource(AVAudioSessionDataSourceDescription dataSource) throws NSErrorException- Throws:
NSErrorException
-
setOutputDataSource
public boolean setOutputDataSource(AVAudioSessionDataSourceDescription dataSource) throws NSErrorException- Throws:
NSErrorException
-
setAggregatedIOPreference
- Throws:
NSErrorException- Since:
- Available in iOS 10.0 and later.
-
setSupportsMultichannelContent
- Throws:
NSErrorException- Since:
- Available in iOS 15.0 and later.
-