background

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPermission

func GetPermission() bool

func RegisterSync

func RegisterSync(tag string) error

func RequestPermission

func RequestPermission() error

func SetProvider

func SetProvider(p Provider)

Types

type Provider

type Provider interface {
	RegisterSync(tag string) error
	GetPermission() bool
	RequestPermission() error
}

Provider is a native background-work backend. On mobile the shell registers one via SetProvider (WorkManager on Android, BGTaskScheduler on iOS). On desktop the app process is always running, so background sync is unnecessary; registration errs with ErrUnsupported.

Jump to

Keyboard shortcuts

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