QMicrophonePermission Class
访问麦克风以监听或录制声音。更多
头文件: | #include <QPermissions> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Core) target_link_libraries(mytarget PRIVATE Qt6::Core) |
qmake: | QT += core |
自 | Qt 6.5 |
详细说明
要求
要在运行时请求此权限,必须在构建时声明以下特定平台用法:
平台 | 类型 | |
---|---|---|
苹果 | 使用说明 | NSMicrophoneUsageDescription |
安卓 | uses-permission | android.permission.RECORD_AUDIO |
请参阅各个使用声明类型,了解如何将其添加到您的项目中。
另请参阅 QPermission,QCoreApplication::requestPermission(),QCoreApplication::checkPermission() 和应用程序权限。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.