Bewerken

Delen via


AudioSession.OverrideCategoryDefaultToSpeaker Property

Definition

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.

Applies to