AVFoundation.AVAudioSession: Method Members

The methods of AVFoundation.AVAudioSession are listed below. For a list of all members, see the AVAudioSession Members list.

See Also: Inherited members from Foundation.NSObject

Public Methods

GetPreferredInputNumberOfChannels() : nint
Retrieves the preferred number of input channels.
GetPreferredOutputNumberOfChannels() : nint
Retrieves the preferred number of output channels.
OverrideOutputAudioPort(AVAudioSessionPortOverride, out Foundation.NSError) : bool
Requests to temporarily change the output audio port.
RequestRecordPermission(AVPermissionGranted)
Presents a standard UI to the app user, asking for permission to record.
SetActive(bool) : Foundation.NSError
Activates or deactivates the audio session for the application.
SetActive(bool, AVAudioSessionSetActiveOptions) : Foundation.NSError
Activates and deactivates the audio session for the application.
SetActive(bool, out Foundation.NSError) : bool
Activates or deactivates the audio session for the application.
SetActive(bool, AVAudioSessionFlags, out Foundation.NSError) : bool
Application developers should not use this deprecated method.
SetActive(bool, AVAudioSessionSetActiveOptions, out Foundation.NSError) : bool
Activates and deactivates the audio session for the application.
SetCategory(AVAudioSessionCategory) : Foundation.NSError
Requests a change to the AVAudioSession.Category.
SetCategory(Foundation.NSString) : Foundation.NSError
Weakly typed; Requests a change to the AVAudioSession.Category.
SetCategory(AVAudioSessionCategory, AVAudioSessionCategoryOptions) : Foundation.NSError
Requests a change to the AVAudioSession.Category.
SetCategory(Foundation.NSString, out Foundation.NSError) : bool
Weakly typed; Requests a change to the AVAudioSession.Category.
SetCategory(string, AVAudioSessionCategoryOptions, out Foundation.NSError) : bool
Weakly typed; Requests a change to the AVAudioSession.Category.
SetInputDataSource(AVAudioSessionDataSourceDescription, out Foundation.NSError) : bool
Selects the specified dataSource.
SetInputGain(float, out Foundation.NSError) : bool
Requests a specific gain level.
SetMode(Foundation.NSString, out Foundation.NSError) : bool
Requests a specific mode.
SetOutputDataSource(AVAudioSessionDataSourceDescription, out Foundation.NSError) : bool
Selects the specific output dataSource.
SetPreferredHardwareSampleRate(double, out Foundation.NSError) : bool
Application developers should not use this deprecated method. Instead use AVAudioSession.SetPreferredSampleRate(Double, out NSError)
SetPreferredInput(AVAudioSessionPortDescription, out Foundation.NSError) : bool
Sets the preferred input data source.
SetPreferredInputNumberOfChannels(out Foundation.NSError, nint) : bool
Sets the preferred number of input channels.
SetPreferredIOBufferDuration(double, out Foundation.NSError) : bool
Sets the preferred duration, in seconds, of the IO buffer.
SetPreferredOutputNumberOfChannels(out Foundation.NSError, nint) : bool
Sets the preferred number of output channels.
SetPreferredSampleRate(double, out Foundation.NSError) : bool
Sets the preferred sample rate, in Hz.
static
SharedInstance() : AVAudioSession
Factory method that returns the shared AVFoundation.AVAudioSession object.

Protected Methods

override
Dispose(bool)
Releases the resources used by the AVAudioSession object.