hasAudioPermissions method
Returns true if microphone permissions are already granted, without showing a dialog.
Use this to decide whether to show a custom rationale UI before calling requestAudioPermissions.
Implementation
Future<bool> hasAudioPermissions() async {
try {
return await _coordinator.hostApi.hasAudioPermissions();
} on PlatformException catch (e) {
throw ChimePermissionException('Failed to check audio permissions', e.message);
}
}