MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / granted

Function granted

src/core/app_permissions_android.cpp:36–41  ·  view source on GitHub ↗

* Returns a functor that tests if the passed permission is granted. */

Source from the content-addressed store, hash-verified

34 * Returns a functor that tests if the passed permission is granted.
35 */
36auto 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

Callers 2

permissionsGrantedFunction · 0.85
checkPermissionFunction · 0.85

Calls 2

checkPermissionFunction · 0.70
containsMethod · 0.45

Tested by

no test coverage detected