Documentation ¶
Overview ¶
Package badge allows you to preserve, set or clear the number displayed on your App icon.
Example ¶
package main import ( "fmt" "github.com/RobotsAndPencils/buford/payload/badge" ) func main() { var b badge.Badge fmt.Println(b) fmt.Println(badge.Preserve) fmt.Println(badge.Clear) fmt.Println(badge.New(42)) }
Output: preserve preserve set 0 set 42
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Clear = Badge{/* contains filtered or unexported fields */}
Clear the badge.
View Source
var Preserve = Badge{}
Preserve the current badge (default behavior).
Functions ¶
This section is empty.
Types ¶
type Badge ¶
type Badge struct {
// contains filtered or unexported fields
}
Badge number to display on the App icon.
Click to show internal directories.
Click to hide internal directories.