removePanels

Removes all items of panels from the Frontend.

This transitions the lifecycle of all panels to Lifecycle.State.DESTROYED, if not already destroyed. The panels may not be added to a frontend again.

Return

true if any of the panels were removed from the Frontend, false otherwise.


inline fun <P : AnyPanel> removePanels(): Boolean

Removes all Panels of type P from the Frontend.

This transitions the lifecycle of all panels to Lifecycle.State.DESTROYED, if not already destroyed. The panels may not be added to a frontend again.

Return

true if any of the panels were removed from the Frontend, false otherwise.


fun <P : AnyPanel> removePanels(panelType: KClass<P>): Boolean

Removes all Panels of type panelType from the Frontend.

This transitions the lifecycle of all panels to Lifecycle.State.DESTROYED, if not already destroyed. The panels may not be added to a frontend again.

Return

true if any of the panels were removed from the Frontend, false otherwise.