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)
| 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 |
| 263 | func (c *Command) OpenLink(link string) error { |
| 264 | return c.write(pb.RemoteMessage{ |
| 265 | RemoteAppLinkLaunchRequest: &pb.RemoteAppLinkLaunchRequest{ |
| 266 | AppLink: link, |
| 267 | }, |
| 268 | }) |
| 269 | } |