共用方式為


InCallService.SetAudioRoute Method

Definition

Overloads

SetAudioRoute(CallAudioRoute)

Sets the audio route (speaker, bluetooth, etc.

SetAudioRoute(VideoQuality)
Obsolete.

Sets the audio route (speaker, bluetooth, etc.

SetAudioRoute(CallAudioRoute)

Sets the audio route (speaker, bluetooth, etc.

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

Parameters

route
CallAudioRoute

The audio route to use.

Attributes

Remarks

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

This member is deprecated. Use #requestCallEndpointChange(CallEndpoint, Executor, OutcomeReceiver) instead.

Java documentation for android.telecom.InCallService.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

SetAudioRoute(VideoQuality)

Caution

Incorrect enum parameter, use the overload that takes a CallAudioRoute parameter instead.

Sets the audio route (speaker, bluetooth, etc.

[System.Obsolete("Incorrect enum parameter, use the overload that takes a CallAudioRoute parameter instead.")]
public void SetAudioRoute (Android.Telecom.VideoQuality route);
[<System.Obsolete("Incorrect enum parameter, use the overload that takes a CallAudioRoute parameter instead.")>]
member this.SetAudioRoute : Android.Telecom.VideoQuality -> unit

Parameters

route
VideoQuality

The audio route to use.

Attributes

Remarks

Java documentation for android.telecom.InCallService.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