appinfo

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package appinfo describes the running app and device, and where the app may keep files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Platform  string `json:"platform"` // "ios" or "android"
	ID        string `json:"id"`       // bundle id / application id
	Version   string `json:"version"`  // e.g. "1.2.0"
	Build     string `json:"build"`    // e.g. "42"
	OSVersion string `json:"osVersion"`
	Locale    string `json:"locale"`   // BCP 47, e.g. "en-IN"
	DataDir   string `json:"dataDir"`  // kept until the app is deleted
	CacheDir  string `json:"cacheDir"` // the system may clear it
}

Info is the app and device.

func Get

func Get(ctx context.Context) (Info, error)

Get returns the app's Info (asked once, then remembered).

Jump to

Keyboard shortcuts

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