AVFoundation.AVAudioSession.SetCategory Method
Weakly typed; Requests a change to the AVAudioSession.Category.

Syntax

public Foundation.NSError SetCategory (Foundation.NSString theCategory)

Parameters

theCategory
Documentation for this section has not yet been entered.

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