enableSpeaker

abstract fun enableSpeaker()

Enables speaker mode.

Method sets current communication device to AudioDeviceInfo.TYPE_BUILTIN_SPEAKER disabling automatic audio routing functionality if it was previously enabled.