setOpen

fun setOpen(open: Boolean, listen: Boolean = open)

Opens or closes the tray UI, optionally listening on open.

Parameters

open

Whether the tray should open or close.

listen

Whether the tray should begin listening when opened. Defaults to the value of open.