emulator

package
v0.0.0-...-3ed38a9 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	X8664    = "x86_64"
	ARM64    = "arm64"
	ARM64V8A = "arm64-v8a"
)

Variables

This section is empty.

Functions

func GetImageCpu

func GetImageCpu() (string, error)

Types

type Emulator

type Emulator struct {
	// contains filtered or unexported fields
}

func Start

func Start(adb adb.Adb, request *protocol.StartEmulatorRequest, monitor Monitor) (*Emulator, error)

func (*Emulator) ProcessInput

func (e *Emulator) ProcessInput(request protocol.InputRequest) error

func (*Emulator) Stop

func (e *Emulator) Stop(request *protocol.StopEmulatorRequest) error

type Frame

type Frame struct {
	Width  uint32
	Height uint32
	Data   []byte
}

type Monitor

type Monitor interface {
	OnEmulatorStarted()

	OnEmulatorExit(err error)

	OnEmulatorFrame(frame Frame)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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