setCanOpen

fun setCanOpen(canOpen: Boolean)

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.

Since

1.6

Parameters

canOpen

whether the sheet can be opened by user.