Constructor

Controls

new Controls()

Methods

assignButton

assignButton(slot, button)

Displays button in the specified slot.

Parameter

slot

cast.framework.ui.ControlsSlot

Value must not be null.

button

cast.framework.ui.ControlsButton

Value must not be null.

Throws

non-null Error if slot or button name is incorrect

clearDefaultSlotAssignments

clearDefaultSlotAssignments()

Remove all buttons assigned by default from slots.

getSafeAreaHeight

getSafeAreaHeight() returns number

For audio applications only. Returns height in pixels of the area above the controls where application can render content without being overlapped by Cast SDK UI elements. CSS variable --cast-controls-safe-area-height can be used instead of this method.

Returns

number height of safe area in px.