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

Method OpenLink

pkg/v2/command/command.go:263–269  ·  view source on GitHub ↗

open a link on the android tv device if the links matches the one defined in an app's manifest, the app will be launched else, the link will open in a browser

(link string)

Source from the content-addressed store, hash-verified

261// if the links matches the one defined in an app's manifest, the app will be launched
262// else, the link will open in a browser
263func (c *Command) OpenLink(link string) error {
264 return c.write(pb.RemoteMessage{
265 RemoteAppLinkLaunchRequest: &pb.RemoteAppLinkLaunchRequest{
266 AppLink: link,
267 },
268 })
269}

Callers 1

ExecuteFunction · 0.80

Calls 1

writeMethod · 0.95

Tested by

no test coverage detected