MICROPHONE property
Resource belongs to audio capture device, like microphone.
Officially Supported Platforms/Implementations:
- Android native WebView (Official API - PermissionRequest.RESOURCE_AUDIO_CAPTURE)
- iOS 15.0+ (Official API - WKMediaCaptureType.microphone)
- MacOS 12.0+ (Official API - WKMediaCaptureType.microphone)
Implementation
static final MICROPHONE =
PermissionResourceType._internalMultiPlatform('MICROPHONE', () {
switch (defaultTargetPlatform) {
case TargetPlatform.android:
return 'android.webkit.resource.AUDIO_CAPTURE';
case TargetPlatform.iOS:
return 1;
case TargetPlatform.macOS:
return 1;
default:
break;
}
return null;
});