mobile

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: MPL-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mobile exposes the a2ald daemon to Android and iOS via gomobile bind.

Usage from a native shell App:

err := mobile.Start(dataDir)   // call once on app launch
url := mobile.WebUIAddr()      // load in WKWebView / WebView
mobile.Stop()                  // call on app terminate

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRunning

func IsRunning() bool

IsRunning reports whether the daemon is currently active.

func Start

func Start(dataDir string) error

Start launches the a2ald daemon in the background. dataDir is the app-specific writable directory (e.g. from Context.getFilesDir() on Android, or NSDocumentDirectory on iOS). Returns an error if already running or if initialisation fails.

func Stop

func Stop()

Stop shuts down the daemon gracefully. It is safe to call Stop even if the daemon is not running.

func WebUIAddr

func WebUIAddr() string

WebUIAddr returns the full URL of the REST API / Web UI (e.g. "http://127.0.0.1:2121"). Load this in a WebView after Start returns.

Types

This section is empty.

Jump to

Keyboard shortcuts

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