Share via


AudioManager.SpeakerphoneOn Property

Definition

Checks whether the speakerphone is on or off. -or- Sets the speakerphone on or off.

public virtual bool SpeakerphoneOn { [Android.Runtime.Register("isSpeakerphoneOn", "()Z", "GetIsSpeakerphoneOnHandler")] get; [Android.Runtime.Register("setSpeakerphoneOn", "(Z)V", "GetSetSpeakerphoneOn_ZHandler")] set; }
[<get: Android.Runtime.Register("isSpeakerphoneOn", "()Z", "GetIsSpeakerphoneOnHandler")>]
[<set: Android.Runtime.Register("setSpeakerphoneOn", "(Z)V", "GetSetSpeakerphoneOn_ZHandler")>]
member this.SpeakerphoneOn : bool with get, set

Property Value

true if speakerphone is on, false if it's off

Attributes

Remarks

Property getter documentation:

Checks whether the speakerphone is on or off.

This member is deprecated. Use AudioManager#getCommunicationDevice() instead.

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

Property setter documentation:

Sets the speakerphone on or off.

This method should only be used by applications that replace the platform-wide management of audio settings or the main telephony application.

This member is deprecated. Use AudioManager#setCommunicationDevice(AudioDeviceInfo) or AudioManager#clearCommunicationDevice() instead.

Java documentation for android.media.AudioManager.setSpeakerphoneOn(boolean).

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