emulator

package module
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 7 Imported by: 0

README

emu

A small yet handy CLI program to make working with Android emulators a bit more pleasant.

Windows isn't currently supported.

Install

On macOS, just type:

brew tap bartekpacia/tools
brew install emu

Documentation

Overview

Package emulator provides common functionality to manage Android emulators.

Index

Constants

This section is empty.

Variables

View Source
var PrintInvocations bool

Functions

func DisableDarkTheme added in v0.2.1

func DisableDarkTheme() error

func EnableDarkTheme added in v0.2.1

func EnableDarkTheme() error

func SetDisplaySize added in v0.2.1

func SetDisplaySize(value float32) error

func SetFontSize added in v0.2.1

func SetFontSize(value string) error

func Start

func Start(name string) error

Start starts the AVD with the given name.

func ToggleDarkTheme added in v0.2.1

func ToggleDarkTheme() error

Types

type AVD

type AVD struct {
	Name    string
	Running bool

	// PID of the emulator process. Equals 0 if Running is false.
	Pid int
}

AVD represents an Android Virtual Device.

It assumes that no 2 instances of the same AVD run at the same time.

func List

func List() ([]AVD, error)

List returns a list of available AVDs and whether they're running or not.

func (AVD) Describe

func (a AVD) Describe() string

Directories

Path Synopsis
cmd
emu

Jump to

Keyboard shortcuts

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