cast.framework.ui. Controls
Touch Controls. Provides interface for configuring controls on touch-enabled devices.
Methods
getInstance
getInstance() returns cast.framework.ui.Controls
Returns the UI Controls instance.
- Returns
-
cast.framework.ui.Controls
An instance of the UI Controls.
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.
setBrowseContent
setBrowseContent(browseContent)
Set Media Browse content for users to discover more contents from your receiver.
Parameter |
|
---|---|
browseContent |
cast.framework.ui.BrowseContent Value may be null. |