AudioToolbox.AudioSession.SetActive Method
Enables or Disables the audio session.

Syntax

[ObjCRuntime.Availability(Deprecated=ObjCRuntime.Platform.iOS_7_0)]
public static void SetActive (bool active)

Parameters

active
Whether to enable the audio session.

Remarks

This method is used to enable and disable the audio session.

This method can throw an AudioSessionException if another application is currently using the AudioSession in the foreground and does not support audio mixing.

Requirements

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