command

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Buffer       []byte
	Connection   *tls.Conn
	Certificates *tls.Certificate
	Address      string
	Port         int
}

func New

func New(addr string, port int, certs *tls.Certificate) Command

Create a new command object with the ip and port of the android tv device and a certificate

func (*Command) Connect

func (c *Command) Connect() error

Connect to the android tv device

func (*Command) SendIntent

func (c *Command) SendIntent(intent string) error

send an intent to the android tv device can be used to start an app with a specific activity ex: com.netflix.ninja/.MainActivity

func (*Command) SendKey

func (c *Command) SendKey(keycode common.RemoteKeyCode) error

emulate a key press on the android tv device

Jump to

Keyboard shortcuts

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