Package com.thecoderscorner.menu.mgr
Interface MenuManagerListener
public interface MenuManagerListener
MenuManager listeners get notification when any menu item has changed, this works by the `menuItemHasChanged` method
being called for each change. Further to this, you can also mark any method in your class with `@MenuCallback(id=n)`
where n is the menu ID of the item you are interested in, then this callback method will be called in addition to the
global menu callback. If you use designer UI, it will create such a method for each callback function.
List selection notifications have a special form `@MenuCallback(id=n, listResult=true)` that takes an extra parameter
for the list response.
ScrollChoiceMenuItem value retrievers can also be added
ScrollChoiceValueRetriever, these will be called
whenever a value is needed for a scroll choice item,- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidIndicates that the manager (and therefore the application) is about to start.voidvoidmenuItemHasChanged(MenuItem item, boolean remoteChange) Called whenever there is a change in any menu item, it will indicate if the change is local or remote.
-
Method Details
-
managerWillStart
void managerWillStart()Indicates that the manager (and therefore the application) is about to start. You can do any tasks that are needed at start up here. For example loading state back from storage -
managerWillStop
void managerWillStop()