job

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 job provides Go bindings for .

Index

Constants

View Source
const (
	PendingJobReasonApp                      = consts.PendingJobReasonApp
	PendingJobReasonAppStandby               = consts.PendingJobReasonAppStandby
	PendingJobReasonBackgroundRestriction    = consts.PendingJobReasonBackgroundRestriction
	PendingJobReasonConstraintBatteryNotLow  = consts.PendingJobReasonConstraintBatteryNotLow
	PendingJobReasonConstraintCharging       = consts.PendingJobReasonConstraintCharging
	PendingJobReasonConstraintConnectivity   = consts.PendingJobReasonConstraintConnectivity
	PendingJobReasonConstraintContentTrigger = consts.PendingJobReasonConstraintContentTrigger
	PendingJobReasonConstraintDeadline       = consts.PendingJobReasonConstraintDeadline
	PendingJobReasonConstraintDeviceIdle     = consts.PendingJobReasonConstraintDeviceIdle
	PendingJobReasonConstraintMinimumLatency = consts.PendingJobReasonConstraintMinimumLatency
	PendingJobReasonConstraintPrefetch       = consts.PendingJobReasonConstraintPrefetch
	PendingJobReasonConstraintStorageNotLow  = consts.PendingJobReasonConstraintStorageNotLow
	PendingJobReasonDeviceState              = consts.PendingJobReasonDeviceState
	PendingJobReasonExecuting                = consts.PendingJobReasonExecuting
	PendingJobReasonInvalidJobId             = consts.PendingJobReasonInvalidJobId
	PendingJobReasonJobSchedulerOptimization = consts.PendingJobReasonJobSchedulerOptimization
	PendingJobReasonQuota                    = consts.PendingJobReasonQuota
	PendingJobReasonUndefined                = consts.PendingJobReasonUndefined
	PendingJobReasonUser                     = consts.PendingJobReasonUser
	ResultFailure                            = consts.ResultFailure
	ResultSuccess                            = consts.ResultSuccess
	BackoffPolicyExponential                 = consts.BackoffPolicyExponential
	BackoffPolicyLinear                      = consts.BackoffPolicyLinear
	Creator                                  = consts.Creator
	NetworkBytesUnknown                      = consts.NetworkBytesUnknown
	NetworkTypeAny                           = consts.NetworkTypeAny
	NetworkTypeCellular                      = consts.NetworkTypeCellular
	NetworkTypeMetered                       = consts.NetworkTypeMetered
	NetworkTypeNone                          = consts.NetworkTypeNone
	NetworkTypeNotRoaming                    = consts.NetworkTypeNotRoaming
	NetworkTypeUnmetered                     = consts.NetworkTypeUnmetered
	PriorityDefault                          = consts.PriorityDefault
	PriorityHigh                             = consts.PriorityHigh
	PriorityLow                              = consts.PriorityLow
	PriorityMax                              = consts.PriorityMax
	PriorityMin                              = consts.PriorityMin
)
View Source
const (
	DefaultInitialBackoffMillis = consts.DefaultInitialBackoffMillis
	MaxBackoffDelayMillis       = consts.MaxBackoffDelayMillis
)

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 NewjobScheduler

func NewjobScheduler(ctx *app.Context) (*jobScheduler, error)

NewjobScheduler obtains android.app.job.JobScheduler 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