AudioManager.GetRouting(Mode) Method

Definition

Caution

deprecated

Returns the current audio routing bit vector for a specified mode.

[Android.Runtime.Register("getRouting", "(I)I", "GetGetRouting_IHandler")]
[System.Obsolete("deprecated")]
public virtual Android.Media.Route GetRouting (Android.Media.Mode mode);
[<Android.Runtime.Register("getRouting", "(I)I", "GetGetRouting_IHandler")>]
[<System.Obsolete("deprecated")>]
abstract member GetRouting : Android.Media.Mode -> Android.Media.Route
override this.GetRouting : Android.Media.Mode -> Android.Media.Route

Parameters

mode
Mode

audio mode to get route (e.g., MODE_RINGTONE)

Returns

an audio route bit vector that can be compared with ROUTE_xxx bits

Attributes

Remarks

Returns the current audio routing bit vector for a specified mode.

This member is deprecated. Do not query audio routing directly, use isSpeakerphoneOn(), isBluetoothScoOn(), isBluetoothA2dpOn() and isWiredHeadsetOn() methods instead.

Java documentation for android.media.AudioManager.getRouting(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