A ModalPanel is used to display information that:
Needs attention from users in order to give instructions or critical information.
Requires information in order to continue with a service or workflow.
ModalPanels interrupt a user's workflow by design. When active, a user is blocked from the TaskPanel or HomePanel content and cannot return to their previous workflow until the modal task is completed or the modal is dismissed. ModalPanels are used for short and non-frequent tasks, such as logging into an account, Bluetooth device pairing, editing something or management tasks. If a user needs to repeatably perform a task, consider making the task do-able from the main Panel.
Called when the panel has been dismissed from the system UI, either through user interaction or other events. This causes requestsRemoval to be set to true. The panel will be removed from its frontend, causing onRemovedFromFrontend to be called. This destroys the lifecycle and prevents the panel from being shown again.