Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPermission ¶
func GetPermission() bool
func RegisterSync ¶
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.
Click to show internal directories.
Click to hide internal directories.