# cast.[framework](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework).[ui](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.ui).Controls

class static

Touch Controls. Provides interface for configuring controls on touch-enabled
devices.

## Methods

### getInstance

static

getInstance() returns [cast.framework.ui.Controls](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.ui.Controls)

Returns the UI Controls instance.

Returns

:   `https://developers.google.com/cast/docs/reference/web_receiver/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](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.ui#.ControlsSlot) Value must not be null. |
| button | [cast.framework.ui.ControlsButton](https://developers.google.com/cast/docs/reference/web_receiver/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.

### hasMediaControlsOverlay

hasMediaControlsOverlay() returns Promise containing boolean

Signals whether the media controls overlay will be rendered during playback
on top of the application UI.

Returns

:   `non-null Promise containing boolean` a promise that resolves to `true` if the media
    controls will be rendered and to `false` otherwise.

### setBrowseContent

setBrowseContent(browseContent)

Set Media Browse content for users to discover more contents from your
receiver.

| #### Parameter ||
|---|---|
| browseContent | [cast.framework.ui.BrowseContent](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.ui.BrowseContent) Value may be null. |