permission

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package permission provides Go bindings for Android Permission Manager.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPermission

func CheckPermission(permission string, pid Pid_t, uid Uid_t, outResult *int32) int32

CheckPermission calls the underlying C function.

Types

type PERMISSION_MANAGER_STATUS

type PERMISSION_MANAGER_STATUS int32
const (
	PERMISSION_MANAGER_STATUS_OK                  PERMISSION_MANAGER_STATUS = 0
	PERMISSION_MANAGER_STATUS_ERROR_UNKNOWN       PERMISSION_MANAGER_STATUS = -1
	PERMISSION_MANAGER_STATUS_SERVICE_UNAVAILABLE PERMISSION_MANAGER_STATUS = -2
)

type Pid_t

type Pid_t = capi.Pid_t

type Result

type Result int32
const (
	Granted Result = 0
	Denied  Result = -1
)

type Uid_t

type Uid_t = capi.Uid_t

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL