CollapsibleMenu::setStateChangedCallback() method
@fn void CollapsibleMenu::setStateChangedCallback(touchgfx::GenericCallback& callback) Associates an action to be performed when the menu changes expanded/collapsed state. @see GenericCallback
void setStateChangedCallback(touchgfx::GenericCallback<const CollapsibleMenu&, const bool>& callback); Arguments
callback
The callback to be executed. The callback will be given a reference to the CollapsibleMenu and a bool that state if the menu is expanded.