From 1547be2ae580406eb0165e37b1a616e53167be33 Mon Sep 17 00:00:00 2001 From: Assam Boudjelthia Date: Wed, 20 Nov 2024 13:46:21 +0200 Subject: [PATCH] Android: add note QPermission under private permission APIs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Link to the newer permission API and note that the private API can still be used for permission types not covered by QPermission. Fixes: QTBUG-130372 Change-Id: I093edd72bc50372eba3b06105087ccd4884b0bac Reviewed-by: Tor Arne Vestbø Reviewed-by: Nicholas Bennett (cherry picked from commit d2a8a0dc29b15a4076ff055e0b500a1d9207c5d7) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/platform/android/qandroidextras.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/corelib/platform/android/qandroidextras.cpp b/src/corelib/platform/android/qandroidextras.cpp index 1381e8ba0f8..48868495bd9 100644 --- a/src/corelib/platform/android/qandroidextras.cpp +++ b/src/corelib/platform/android/qandroidextras.cpp @@ -1160,6 +1160,10 @@ requestPermissionsInternal(const QStringList &permissions) Requests the \a permission and returns a QFuture representing the result of the request. + \note QPermission is the recommended API to use for requesting permissions. + If QPermission doesn't cover an Android permission you want to request, + this preliminary API can still used instead. + \since 6.2 \sa checkPermission() */ @@ -1183,6 +1187,10 @@ QtAndroidPrivate::requestPermissions(const QStringList &permissions) Checks whether this process has the named \a permission and returns a QFuture representing the result of the check. + \note QPermission is the recommended API to use for requesting permissions. + If QPermission doesn't cover an Android permission you want to request, + this preliminary API can still used instead. + \since 6.2 \sa requestPermission() */