usage

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: CC0-1.0 Imports: 6 Imported by: 0

Documentation

Overview

Package usage provides Go bindings for .

Index

Constants

View Source
const (
	ExtraEventAction   = consts.ExtraEventAction
	ExtraEventCategory = consts.ExtraEventCategory
)
View Source
const (
	IntervalBest            = consts.IntervalBest
	IntervalDaily           = consts.IntervalDaily
	IntervalMonthly         = consts.IntervalMonthly
	IntervalWeekly          = consts.IntervalWeekly
	IntervalYearly          = consts.IntervalYearly
	StandbyBucketActive     = consts.StandbyBucketActive
	StandbyBucketFrequent   = consts.StandbyBucketFrequent
	StandbyBucketRare       = consts.StandbyBucketRare
	StandbyBucketRestricted = consts.StandbyBucketRestricted
	StandbyBucketWorkingSet = consts.StandbyBucketWorkingSet
	Creator                 = consts.Creator
)

Variables

This section is empty.

Functions

func Init

func Init(env *jni.Env) error

Init resolves all JNI class and method references for this package. It is safe to call multiple times (uses sync.Once internally). Exported for E2E testing on Android.

func NewusageStatsManager

func NewusageStatsManager(ctx *app.Context) (*usageStatsManager, error)

NewusageStatsManager obtains android.app.usage.UsageStatsManager from the Android system service manager.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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