다음을 통해 공유


AudioManager.IOnCommunicationDeviceChangedListener.OnCommunicationDeviceChanged Method

Definition

Callback method called upon communication audio device change.

[Android.Runtime.Register("onCommunicationDeviceChanged", "(Landroid/media/AudioDeviceInfo;)V", "GetOnCommunicationDeviceChanged_Landroid_media_AudioDeviceInfo_Handler:Android.Media.AudioManager/IOnCommunicationDeviceChangedListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=31)]
public void OnCommunicationDeviceChanged (Android.Media.AudioDeviceInfo? device);
[<Android.Runtime.Register("onCommunicationDeviceChanged", "(Landroid/media/AudioDeviceInfo;)V", "GetOnCommunicationDeviceChanged_Landroid_media_AudioDeviceInfo_Handler:Android.Media.AudioManager/IOnCommunicationDeviceChangedListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=31)>]
abstract member OnCommunicationDeviceChanged : Android.Media.AudioDeviceInfo -> unit

Parameters

device
AudioDeviceInfo

the audio device requested for communication use cases. Can be null on platforms not supporting android.content.pm.PackageManager#FEATURE_TELEPHONY.

Attributes

Remarks

Callback method called upon communication audio device change.

Java documentation for android.media.AudioManager.OnCommunicationDeviceChangedListener.onCommunicationDeviceChanged(android.media.AudioDeviceInfo).

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