* Returns a functor that tests if the passed permission is granted. */
| 34 | * Returns a functor that tests if the passed permission is granted. |
| 35 | */ |
| 36 | auto granted() |
| 37 | { |
| 38 | return [](const QString& permission)->bool { |
| 39 | return QtAndroid::checkPermission(permission) == QtAndroid::PermissionResult::Granted; |
| 40 | }; |
| 41 | } |
| 42 | |
| 43 | /** |
| 44 | * Returns a functor that tests if the passed permissions are granted |
no test coverage detected