setSpeakerphoneOn method
- bool enable
Implementation
Future<void> setSpeakerphoneOn(bool enable) async {
if (lkPlatformIs(PlatformType.iOS)) {
speakerOn = enable;
if (canSwitchSpeakerphone) {
await rtc.Helper.setSpeakerphoneOn(enable);
} else {
logger.warning('Can\'t switch speaker/earpiece');
}
} else {
logger.warning('setSpeakerphoneOn only support on iOS');
}
}