set_can_open


Description:

public void set_can_open (bool can_open)

Sets whether the bottom sheet can be opened by user.

It can be opened via clicking or swiping up from the bottom bar.

Does nothing if [property@BottomSheet:bottom-bar] is not set.

Bottom sheet can still be opened using [property@BottomSheet:open].

Parameters:

this

a bottom sheet

can_open

whether the sheet can be opened by user.