From 95049a2a41c9a67bc438fdfa7004bcb2dad22b2a Mon Sep 17 00:00:00 2001 From: aengu Date: Fri, 12 Jul 2024 16:01:00 +0800 Subject: [PATCH] =?UTF-8?q?=E9=B8=BF=E8=92=99next=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E7=9A=84=E5=BD=95=E9=9F=B3=E6=9D=83=E9=99=90=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E6=9E=9A=E4=B8=BE=EF=BC=8C=E5=AE=9E=E9=99=85=E6=8B=BF=E5=88=B0?= =?UTF-8?q?=E7=9A=84=E6=98=AFTYPE=5FAUDIO=5FCAPTURE=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=EF=BC=8C=E6=B2=A1=E6=80=8E=E4=B9=88=E7=90=86=E8=A7=A3=EF=BC=8C?= =?UTF-8?q?=E4=B8=BA=E5=95=A5=E4=B8=8D=E6=98=AFMICROPHONE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: aengu --- .../lib/src/types/permission_resource_type.g.dart | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/flutter_inappwebview_platform_interface/lib/src/types/permission_resource_type.g.dart b/flutter_inappwebview_platform_interface/lib/src/types/permission_resource_type.g.dart index 3a3a702f..cc5ae9c0 100644 --- a/flutter_inappwebview_platform_interface/lib/src/types/permission_resource_type.g.dart +++ b/flutter_inappwebview_platform_interface/lib/src/types/permission_resource_type.g.dart @@ -96,6 +96,17 @@ class PermissionResourceType { return null; }); + static final TYPE_AUDIO_CAPTURE = + PermissionResourceType._internalMultiPlatform('TYPE_AUDIO_CAPTURE', () { + switch (defaultTargetPlatform) { + case TargetPlatform.ohos: + return 'TYPE_AUDIO_CAPTURE'; + default: + break; + } + return null; + }); + ///Resource will allow sysex messages to be sent to or received from MIDI devices. ///These messages are privileged operations, e.g. modifying sound libraries and sampling data, or even updating the MIDI device's firmware. ///Permission may be requested for this resource in API levels 21 and above, if the Android device has been updated to WebView 45 or above. @@ -134,6 +145,7 @@ class PermissionResourceType { PermissionResourceType.CAMERA_AND_MICROPHONE, PermissionResourceType.DEVICE_ORIENTATION_AND_MOTION, PermissionResourceType.MICROPHONE, + PermissionResourceType.TYPE_AUDIO_CAPTURE, PermissionResourceType.MIDI_SYSEX, PermissionResourceType.PROTECTED_MEDIA_ID, ].toSet(); -- Gitee