checkMicrophonePermission method
Implementation
Future<bool> checkMicrophonePermission() async {
if (TcicScreen.isDeskTop()) {
return true;
}
final granted = await TCICPermissionSerial.instance.ensureGranted(Permission.microphone, tag: ActionName.checkMicrophonePermission.name);
if (!granted) {
TCICLog.error("microphone permission not granted", actionModule: ActionModule.tcicController.name, actionName: ActionName.checkMicrophonePermission.name);
TCICToast.show(StringEnum.noMicPermission);
return false;
}
return true;
}