Skip to content

Commit

Permalink
Android: add note QPermission under private permission APIs
Browse files Browse the repository at this point in the history
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ø <tor.arne.vestbo@qt.io>
Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
(cherry picked from commit d2a8a0d)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
  • Loading branch information
Issam-b authored and Qt Cherry-pick Bot committed Nov 20, 2024
1 parent a9296ab commit 1547be2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/corelib/platform/android/qandroidextras.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
*/
Expand All @@ -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()
*/
Expand Down

0 comments on commit 1547be2

Please sign in to comment.