Språk

Connection.SetAudioRoute(CallAudioRoute) Method

Definition

Sets the audio route (speaker, bluetooth, etc.

[Android.Runtime.Register("setAudioRoute", "(I)V", "", ApiSince=26)]
public void SetAudioRoute(Android.Telecom.CallAudioRoute route);
[<Android.Runtime.Register("setAudioRoute", "(I)V", "", ApiSince=26)>]
member this.SetAudioRoute : Android.Telecom.CallAudioRoute -> unit

Parameters

route
CallAudioRoute

The audio route to use (one of Bluetooth, Earpiece, Speaker, or WiredHeadset).

Attributes

Remarks

Sets the audio route (speaker, bluetooth, etc...). When this request is honored, there will be change to the CallAudioState.

Used by self-managed ConnectionServices which wish to change the audio route for a self-managed Connection (see SelfManaged.)

See also SetAudioRoute(CallAudioRoute).

This member is deprecated. Use RequestCallEndpointChange(CallEndpoint, IExecutor, IOutcomeReceiver) instead.

Java documentation for android.telecom.Connection.setAudioRoute(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