1

I want to add an action for a custom Chromecast button.

I can use a default button (GCKUICastButton) with a default action.

let castButton = GCKUICastButton(frame: CGRect(x: 0, y: 0, width: 24, height: 24))
castButton.tintColor = UIColor.gray
navigationItem.rightBarButtonItem = UIBarButtonItem(customView: castButton)

But I need to create my own view with a list of devices that can connect with Chromecast.

How to get all available Chromecast devices?

maxwell
  • 3,788
  • 6
  • 26
  • 40

1 Answers1

-2

We highly recommend that you use the widgets in the Cast SDK for both the button and displaying the list of devices. You should use the various styling options to customize the widgets as needed for your branding.

Leon Nicholls
  • 4,623
  • 2
  • 16
  • 17