MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / hasPermission

Method hasPermission

src/plugins/system/system.d.ts:218–218  ·  view source on GitHub ↗

* Checks whether the app has provided permission * @param permission constant value of the permission required @see https://developer.android.com/reference/android/Manifest.permission * @param onSuccess * @param onFail

(
    permission: string,
    onSuccess: OnSuccessBool,
    onFail: OnFail,
  )

Source from the content-addressed store, hash-verified

216 * @param onFail
217 */
218 hasPermission(
219 permission: string,
220 onSuccess: OnSuccessBool,
221 onFail: OnFail,

Callers 4

requestPermissionMethod · 0.65
hasPermissionMethod · 0.65
checkPermissionsMethod · 0.65
runMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected