Share via


AudioManager.Mode Property

Definition

Returns the current audio mode. -or- Sets the audio mode.

public virtual Android.Media.Mode Mode { [Android.Runtime.Register("getMode", "()I", "GetGetModeHandler")] get; [Android.Runtime.Register("setMode", "(I)V", "GetSetMode_IHandler")] set; }
[<get: Android.Runtime.Register("getMode", "()I", "GetGetModeHandler")>]
[<set: Android.Runtime.Register("setMode", "(I)V", "GetSetMode_IHandler")>]
member this.Mode : Android.Media.Mode with get, set

Property Value

the current audio mode.

Attributes

Remarks

Property getter documentation:

Returns the current audio mode.

Java documentation for android.media.AudioManager.getMode().

Property setter documentation:

Sets the audio mode.

The audio mode encompasses audio routing AND the behavior of the telephony layer. Therefore this method should only be used by applications that replace the platform-wide management of audio settings or the main telephony application. In particular, the #MODE_IN_CALL mode should only be used by the telephony application when it places a phone call, as it will cause signals from the radio layer to feed the platform mixer.

Java documentation for android.media.AudioManager.setMode(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to