AudioSession.Category Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Controls how the operating system treats the audio from your application.
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.None, "AudioSession[Get|Set]Property are deprecated in iOS7")]
public static AudioToolbox.AudioSessionCategory Category { get; set; }
member this.Category : AudioToolbox.AudioSessionCategory with get, set
Property Value
- Attributes
Remarks
This property is used to control how the operating system treat your audio. It can be used to control whether your application needs exclusive access to the microphones or speakers or to configure if the audio can be mixed with background music.
If there is an error reading or setting the property, this will raise an AudioSessionException.