adb

package
v3.6.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScreencapNone                ScreencapMethod = 0
	ScreencapEncodeToFileAndPull ScreencapMethod = 1
	ScreencapEncode              ScreencapMethod = 1 << 1
	ScreencapRawWithGzip         ScreencapMethod = 1 << 2
	ScreencapRawByNetcat         ScreencapMethod = 1 << 3
	ScreencapMinicapDirect       ScreencapMethod = 1 << 4
	ScreencapMinicapStream       ScreencapMethod = 1 << 5
	ScreencapEmulatorExtras      ScreencapMethod = 1 << 6
	ScreencapAll                                 = ^ScreencapNone
	ScreencapDefault                             = ScreencapAll &
		(^ScreencapRawByNetcat) &
		(^ScreencapMinicapDirect) &
		(^ScreencapMinicapStream)

	InputNone               InputMethod = 0
	InputAdbShell           InputMethod = 1
	InputMinitouchAndAdbKey InputMethod = 1 << 1
	InputMaatouch           InputMethod = 1 << 2
	InputEmulatorExtras     InputMethod = 1 << 3
	InputAll                            = ^InputNone
	InputDefault                        = InputAll & (^InputEmulatorExtras)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type InputMethod

type InputMethod uint64

AdbInputMethod

Use bitwise OR to set the method you need, MaaFramework will select the available ones according to priority. The priority is: EmulatorExtras > Maatouch > MinitouchAndAdbKey > AdbShell

func ParseInputMethod

func ParseInputMethod(s string) (InputMethod, error)

func (InputMethod) String

func (m InputMethod) String() string

type ScreencapMethod

type ScreencapMethod uint64

AdbScreencapMethod

Use bitwise OR to set the method you need, MaaFramework will test their speed and use the fastest one.

func ParseScreencapMethod

func ParseScreencapMethod(s string) (ScreencapMethod, error)

func (ScreencapMethod) String

func (m ScreencapMethod) String() string

Jump to

Keyboard shortcuts

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