AudioSession.OverrideCategoryDefaultToSpeaker 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 whether the audio should be routed to the speaker if no headset is plugged.
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.None, "AudioSession[Get|Set]Property are deprecated in iOS7")]
public static bool OverrideCategoryDefaultToSpeaker { get; set; }
member this.OverrideCategoryDefaultToSpeaker : bool with get, set
Property Value
Defaults to false.
- Attributes
Remarks
If there is an error reading or setting the property, this will raise an AudioSessionException.