SearchBar.setShowCloseButton

Shows or hides the close button. Applications that already have a “search” toggle button should not show a close button in their search bar, as it duplicates the role of the toggle button.

class SearchBar
void
setShowCloseButton
(
bool visible
)

Parameters

visible
Type: bool

whether the close button will be shown or not

Meta

Since

0.0.6