navigationbar

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package navigationbar sets the look of the bar at the bottom of an Android phone, or hides it. iOS has no such bar, so there these calls do nothing, and shared code needn't check.

nimbus native plugin add navigation-bar

navigationbar.SetColor(ctx, ui.Hex("#10201f"))
navigationbar.SetStyle(ctx, navigationbar.LightButtons)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hide

func Hide(ctx context.Context) error

Hide hides the bar. A swipe up brings it back for a moment.

func SetColor

func SetColor(ctx context.Context, c ui.Color) error

SetColor sets the bar's color. Android 15 ignores it for apps that target it, and draws your screen behind the bar instead.

func SetStyle

func SetStyle(ctx context.Context, s Style) error

SetStyle sets the buttons' color.

func Show

func Show(ctx context.Context) error

Show brings it back.

Types

type Style

type Style string

Style is the color of the bar's buttons.

const (
	DarkButtons  Style = "dark"  // for a light bar
	LightButtons Style = "light" // for a dark bar
)

Jump to

Keyboard shortcuts

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