类:控件

使用集合让一切井井有条 根据您的偏好保存内容并对其进行分类。

方法

getInstance

静态

getInstance() 返回 cast.framework.ui.Controls

返回界面控件实例。

返回

cast.framework.ui.Controls:界面控件的实例。

分配按钮

assignButton(槽位, 按钮)

显示指定槽中的按钮。

参数

广告位

cast.framework.ui.ControlsSlot

值不能为 null。

按钮

cast.framework.ui.ControlsButton

值不能为 null。

抛出

如果插槽或按钮名称不正确,则为 non-null Error

clearDefaultSlotAssignments

clearDefaultSlotAssignments()

从槽中移除默认分配的所有按钮。

hasMediaControlsOverlay

hasMediaControlsOverlay() 返回包含布尔值的 Promise

指示是否在应用界面顶部播放时呈现媒体控件叠加层。

返回

non-null Promise containing boolean 是一个 promise,会在渲染媒体控件时解析为 true,否则会解析为 false

setBrowseContent

setBrowseContent(browseContent)

设置媒体浏览内容,以便用户从接收器中发现更多内容。

参数

浏览内容

cast.framework.ui.BrowseContent

值可以为 null。