showCastDialog

open fun showCastDialog(context: Context)

Opens the Cast device picker (device scanning happens inside the dialog); when a session is already active, shows the session controller for disconnecting instead. The player's built-in controls call this from the cast button.

context must be an Activity context using an AppCompat theme — a requirement of the underlying MediaRouter dialogs.