AudioManager.SetRouting(Mode, Route, Route) Method

Definition

Caution

deprecated

Sets the audio routing for a specified mode

[Android.Runtime.Register("setRouting", "(III)V", "GetSetRouting_IIIHandler")]
[System.Obsolete("deprecated")]
public virtual void SetRouting (Android.Media.Mode mode, Android.Media.Route routes, Android.Media.Route mask);
[<Android.Runtime.Register("setRouting", "(III)V", "GetSetRouting_IIIHandler")>]
[<System.Obsolete("deprecated")>]
abstract member SetRouting : Android.Media.Mode * Android.Media.Route * Android.Media.Route -> unit
override this.SetRouting : Android.Media.Mode * Android.Media.Route * Android.Media.Route -> unit

Parameters

mode
Mode

audio mode to change route. E.g., MODE_RINGTONE.

routes
Route

bit vector of routes requested, created from one or more of ROUTE_xxx types. Set bits indicate that route should be on

mask
Route

bit vector of routes to change, created from one or more of ROUTE_xxx types. Unset bits indicate the route should be left unchanged

Attributes

Remarks

Sets the audio routing for a specified mode

This member is deprecated. Do not set audio routing directly, use setSpeakerphoneOn(), setBluetoothScoOn() methods instead.

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