Share via


AudioManager.CommunicationDevice Property

Definition

Returns currently selected audio device for communication.

public virtual Android.Media.AudioDeviceInfo? CommunicationDevice { [Android.Runtime.Register("getCommunicationDevice", "()Landroid/media/AudioDeviceInfo;", "GetGetCommunicationDeviceHandler", ApiSince=31)] get; }
[<get: Android.Runtime.Register("getCommunicationDevice", "()Landroid/media/AudioDeviceInfo;", "GetGetCommunicationDeviceHandler", ApiSince=31)>]
member this.CommunicationDevice : Android.Media.AudioDeviceInfo

Property Value

an AudioDeviceInfo indicating which audio device is currently selected for communication use cases. Can be null on platforms not supporting android.content.pm.PackageManager#FEATURE_TELEPHONY. is used.

Attributes

Remarks

Returns currently selected audio device for communication.

This API replaces the following deprecated APIs: <ul> <li> #isBluetoothScoOn()<li> #isSpeakerphoneOn()</ul>

Java documentation for android.media.AudioManager.getCommunicationDevice().

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