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
,org.robovm.objc.ObjCProtocol
public class AVAudioSession extends NSObject
- Since:
- Available in iOS 3.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AVAudioSession.AVAudioSessionPtr
static class
AVAudioSession.Notifications
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description AVAudioSession()
protected
AVAudioSession(NSObject.Handle h, long handle)
protected
AVAudioSession(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, willChangeValues
-
-
-
-
Constructor Detail
-
AVAudioSession
public AVAudioSession()
-
AVAudioSession
protected AVAudioSession(NSObject.Handle h, long handle)
-
AVAudioSession
protected AVAudioSession(NSObject.SkipInit skipInit)
-
-
Method Detail
-
getAvailableCategories
public java.util.List<AVAudioSessionCategory> getAvailableCategories()
- Since:
- Available in iOS 9.0 and later.
-
getCategory
public AVAudioSessionCategory getCategory()
- Since:
- Available in iOS 3.0 and later.
-
getCategoryOptions
public AVAudioSessionCategoryOptions getCategoryOptions()
- Since:
- Available in iOS 6.0 and later.
-
getRouteSharingPolicy
public AVAudioSessionRouteSharingPolicy getRouteSharingPolicy()
- Since:
- Available in iOS 11.0 and later.
-
getAvailableModes
public java.util.List<AVAudioSessionMode> getAvailableModes()
- Since:
- Available in iOS 9.0 and later.
-
getMode
public AVAudioSessionMode getMode()
- Since:
- Available in iOS 5.0 and later.
-
getRecordPermission
public AVAudioSessionRecordPermission getRecordPermission()
- Since:
- Available in iOS 8.0 and later.
-
isOtherAudioPlaying
public boolean isOtherAudioPlaying()
- Since:
- Available in iOS 6.0 and later.
-
secondaryAudioShouldBeSilencedHint
public boolean secondaryAudioShouldBeSilencedHint()
- Since:
- Available in iOS 8.0 and later.
-
getCurrentRoute
public AVAudioSessionRouteDescription getCurrentRoute()
- Since:
- Available in iOS 6.0 and later.
-
getPreferredInput
public AVAudioSessionPortDescription getPreferredInput()
- Since:
- Available in iOS 7.0 and later.
-
getAvailableInputs
public NSArray<AVAudioSessionPortDescription> getAvailableInputs()
- Since:
- Available in iOS 7.0 and later.
-
getPromptStyle
public AVAudioSessionPromptStyle getPromptStyle()
- Since:
- Available in iOS 12.2 and later.
-
getPreferredSampleRate
public double getPreferredSampleRate()
- Since:
- Available in iOS 6.0 and later.
-
getPreferredIOBufferDuration
public double getPreferredIOBufferDuration()
- Since:
- Available in iOS 3.0 and later.
-
getPreferredInputNumberOfChannels
public long getPreferredInputNumberOfChannels()
- Since:
- Available in iOS 7.0 and later.
-
getPreferredOutputNumberOfChannels
public long getPreferredOutputNumberOfChannels()
- Since:
- Available in iOS 7.0 and later.
-
getMaximumInputNumberOfChannels
public long getMaximumInputNumberOfChannels()
- Since:
- Available in iOS 7.0 and later.
-
getMaximumOutputNumberOfChannels
public long getMaximumOutputNumberOfChannels()
- Since:
- Available in iOS 7.0 and later.
-
getInputGain
public float getInputGain()
- Since:
- Available in iOS 6.0 and later.
-
isInputGainSettable
public boolean isInputGainSettable()
- Since:
- Available in iOS 6.0 and later.
-
isInputAvailable
public boolean isInputAvailable()
- Since:
- Available in iOS 6.0 and later.
-
getInputDataSources
public NSArray<AVAudioSessionDataSourceDescription> getInputDataSources()
- Since:
- Available in iOS 6.0 and later.
-
getInputDataSource
public AVAudioSessionDataSourceDescription getInputDataSource()
- Since:
- Available in iOS 6.0 and later.
-
getOutputDataSources
public NSArray<AVAudioSessionDataSourceDescription> getOutputDataSources()
- Since:
- Available in iOS 6.0 and later.
-
getOutputDataSource
public AVAudioSessionDataSourceDescription getOutputDataSource()
- Since:
- Available in iOS 6.0 and later.
-
getSampleRate
public double getSampleRate()
- Since:
- Available in iOS 6.0 and later.
-
getInputNumberOfChannels
public long getInputNumberOfChannels()
- Since:
- Available in iOS 6.0 and later.
-
getOutputNumberOfChannels
public long getOutputNumberOfChannels()
- Since:
- Available in iOS 6.0 and later.
-
getOutputVolume
public float getOutputVolume()
- Since:
- Available in iOS 6.0 and later.
-
getInputLatency
public double getInputLatency()
- Since:
- Available in iOS 6.0 and later.
-
getOutputLatency
public double getOutputLatency()
- Since:
- Available in iOS 6.0 and later.
-
getIOBufferDuration
public double getIOBufferDuration()
- Since:
- Available in iOS 6.0 and later.
-
InterruptionNotification
public static NSString InterruptionNotification()
- Since:
- Available in iOS 6.0 and later.
-
RouteChangeNotification
public static NSString RouteChangeNotification()
- Since:
- Available in iOS 6.0 and later.
-
MediaServicesWereLostNotification
public static NSString MediaServicesWereLostNotification()
- Since:
- Available in iOS 7.0 and later.
-
MediaServicesWereResetNotification
public static NSString MediaServicesWereResetNotification()
- Since:
- Available in iOS 6.0 and later.
-
SilenceSecondaryAudioHintNotification
public static NSString SilenceSecondaryAudioHintNotification()
- Since:
- Available in iOS 8.0 and later.
-
SilenceSecondaryAudioHintTypeKey
protected static NSString SilenceSecondaryAudioHintTypeKey()
- Since:
- Available in iOS 8.0 and later.
-
setActive
public boolean setActive(boolean active) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 3.0 and later.
-
setActive
public boolean setActive(boolean active, AVAudioSessionSetActiveOptions options) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 6.0 and later.
-
setCategory
public boolean setCategory(AVAudioSessionCategory category) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 3.0 and later.
-
setCategory
public boolean setCategory(AVAudioSessionCategory category, AVAudioSessionCategoryOptions options) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 6.0 and later.
-
setCategory
public boolean setCategory(AVAudioSessionCategory category, java.lang.String mode, AVAudioSessionCategoryOptions options) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 10.0 and later.
-
setCategory
public boolean setCategory(AVAudioSessionCategory category, java.lang.String mode, AVAudioSessionRouteSharingPolicy policy, AVAudioSessionCategoryOptions options) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 11.0 and later.
-
setMode
public boolean setMode(AVAudioSessionMode mode) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 5.0 and later.
-
requestRecordPermission
public void requestRecordPermission(org.robovm.objc.block.VoidBooleanBlock response)
- Since:
- Available in iOS 7.0 and later.
-
overrideOutputAudioPort
public boolean overrideOutputAudioPort(AVAudioSessionPortOverride portOverride) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 6.0 and later.
-
setPreferredInput
public boolean setPreferredInput(AVAudioSessionPortDescription inPort) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 7.0 and later.
-
getSharedInstance
public static AVAudioSession getSharedInstance()
- Since:
- Available in iOS 3.0 and later.
-
setPreferredSampleRate
public boolean setPreferredSampleRate(double sampleRate) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 6.0 and later.
-
setPreferredIOBufferDuration
public boolean setPreferredIOBufferDuration(double duration) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 3.0 and later.
-
setPreferredInputNumberOfChannels
public boolean setPreferredInputNumberOfChannels(long count) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 7.0 and later.
-
setPreferredOutputNumberOfChannels
public boolean setPreferredOutputNumberOfChannels(long count) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 7.0 and later.
-
setInputGain
public boolean setInputGain(float gain) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 6.0 and later.
-
setInputDataSource
public boolean setInputDataSource(AVAudioSessionDataSourceDescription dataSource) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 6.0 and later.
-
setOutputDataSource
public boolean setOutputDataSource(AVAudioSessionDataSourceDescription dataSource) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 6.0 and later.
-
setAggregatedIOPreference
public boolean setAggregatedIOPreference(AVAudioSessionIOType inIOType) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 10.0 and later.
-
-