W3cubDocs

/Qt 6.9

QMicrophonePermission Class

Access the microphone for monitoring or recording sound. More...

Header: #include <QPermissions>
CMake: find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake: QT += core
Since: Qt 6.5

Detailed Description

Requirements

To request this permission at runtime, the following platform specific usage declarations have to be made at build time:

Platform Type
Apple Usage description NSMicrophoneUsageDescription
Android uses-permission android.permission.RECORD_AUDIO

Please see the individual usage declaration types for how to add them to your project.

See also QPermission, QCoreApplication::requestPermission(), QCoreApplication::checkPermission(), and Application Permissions.

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.9/qmicrophonepermission.html