MCPcopy Create free account
hub / github.com/drosoCode/atvremote / SendKey

Method SendKey

pkg/v2/command/command.go:251–258  ·  view source on GitHub ↗

emulate a key press on the android tv device

(keycode common.RemoteKeyCode)

Source from the content-addressed store, hash-verified

249
250// emulate a key press on the android tv device
251func (c *Command) SendKey(keycode common.RemoteKeyCode) error {
252 return c.write(pb.RemoteMessage{
253 RemoteKeyInject: &pb.RemoteKeyInject{
254 KeyCode: pb.RemoteKeyCode(keycode),
255 Direction: pb.RemoteDirection_SHORT,
256 },
257 })
258}
259
260// open a link on the android tv device
261// if the links matches the one defined in an app's manifest, the app will be launched

Callers 1

ExecuteFunction · 0.45

Calls 1

writeMethod · 0.95

Tested by

no test coverage detected