Bearbeiten

Freigeben über


AudioSession.RoutingOverride Property

Definition

Controls the output route, overriding the default set by the Category.

[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.None, "AudioSession[Get|Set]Property are deprecated in iOS7")]
public static AudioToolbox.AudioSessionRoutingOverride RoutingOverride { set; }
member this.RoutingOverride : AudioToolbox.AudioSessionRoutingOverride

Property Value

Attributes

Remarks

This property is only valid if the Category is set to PlayAndRecord.

If this property is set to Speaker when a headset is plugged, this will also switch the input to use the system microphone, and not the one on the headset.

The setting of this variable is reset when a headset are plugged or unplugged.

If there is an error reading or setting the property, this will raise an AudioSessionException.

Applies to