set_view_switcher_enabled


Description:

public void set_view_switcher_enabled (bool enabled)

Sets whether this's view switcher is enabled.

Note:

See [the migration guide](migrating-to-breakpoints.html#replace-adwviewswitchertitle)

If it is disabled, the title will be displayed instead. This allows to programmatically hide the view switcher even if it fits in the available space.

This can be used e.g. to ensure the view switcher is hidden below a certain window width, or any other constraint you find suitable.

Parameters:

this

a view switcher title

enabled

whether the view switcher is enabled