AVFoundation.AVAudioSession.SetCategory Method
Requests a change to the AVAudioSession.Category.

Syntax

public Foundation.NSError SetCategory (AVAudioSessionCategory category, AVAudioSessionCategoryOptions options)

Parameters

category
The desired category.
options
Options on how to handle audio.

Returns

null on success, or an instance of NSError in case of failure with the details about the error.

Remarks

In general, you should set the category before activating your audio session with AVAudioSession.SetActive. If you change the category at runtime, the route will change.

Requirements

Namespace: AVFoundation
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0