共用方式為


InCallService.OnCallAudioStateChanged(CallAudioState) Method

Definition

Called when the audio state changes.

[Android.Runtime.Register("onCallAudioStateChanged", "(Landroid/telecom/CallAudioState;)V", "GetOnCallAudioStateChanged_Landroid_telecom_CallAudioState_Handler", ApiSince=23)]
public virtual void OnCallAudioStateChanged (Android.Telecom.CallAudioState? audioState);
[<Android.Runtime.Register("onCallAudioStateChanged", "(Landroid/telecom/CallAudioState;)V", "GetOnCallAudioStateChanged_Landroid_telecom_CallAudioState_Handler", ApiSince=23)>]
abstract member OnCallAudioStateChanged : Android.Telecom.CallAudioState -> unit
override this.OnCallAudioStateChanged : Android.Telecom.CallAudioState -> unit

Parameters

audioState
CallAudioState

The new CallAudioState.

Attributes

Remarks

Called when the audio state changes.

This member is deprecated. Use #onCallEndpointChanged(CallEndpoint), #onAvailableCallEndpointsChanged(List) and #onMuteStateChanged(boolean) instead.

Java documentation for android.telecom.InCallService.onCallAudioStateChanged(android.telecom.CallAudioState).

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