micPermissionStatus method
The OS microphone authorization: granted | denied | restricted |
undetermined. Null where unimplemented (callers then fall back to
permission_handler). iOS only — and necessary there because
permission_handler cannot distinguish "never asked" from "refused".
Implementation
@override
Future<String?> micPermissionStatus() async {
try {
return await methodChannel.invokeMethod<String>('micPermissionStatus');
} catch (_) {
return null; // unimplemented — caller falls back to permission_handler
}
}