checkMicrophonePermission method
Implementation
Future<bool> checkMicrophonePermission() async {
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;
}