badge

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package badge sets the number on the app's icon. It works on iOS, where the first call asks for permission. Android has no such number of its own: launchers show one for unread notifications, so here it does nothing.

nimbus native plugin add badge

badge.Set(ctx, 3)
badge.Clear(ctx)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear(ctx context.Context) error

Clear takes it off.

func Set

func Set(ctx context.Context, n int) error

Set puts n on the icon.

Types

This section is empty.

Jump to

Keyboard shortcuts

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