AudioManager.IOnCommunicationDeviceChangedListener.OnCommunicationDeviceChanged Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.