Interface RemoteControllerListener


  • public interface RemoteControllerListener
    This interface is implemented when you wish to receive update events from a RemoteMenuController. It gets called back when menu items are changed, the tree is fully populated or if the connectivity state changes. The implementation is then passed to the appropriate instance of RemoteMenuConnector via its addListener method.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void connectionState​(RemoteInformation remoteInformation, boolean connected)
      Indicates a change in connectivity
      void menuItemChanged​(MenuItem item, boolean valueOnly)
      Called when a menu item has either been added or changed, the valueOnly indicates if the change is just in the latest value, or also in the MenuItem structure too.
      void treeFullyPopulated()
      Indicates that the tree is now fully populated, and therefore all menus that exist on the Arduino also exist locally in the MenuTree.
    • Method Detail

      • menuItemChanged

        void menuItemChanged​(MenuItem item,
                             boolean valueOnly)
        Called when a menu item has either been added or changed, the valueOnly indicates if the change is just in the latest value, or also in the MenuItem structure too.
        Parameters:
        item - the item that has changed
        valueOnly - true if only the current value has changed, false if the MenuItem has changed too
      • treeFullyPopulated

        void treeFullyPopulated()
        Indicates that the tree is now fully populated, and therefore all menus that exist on the Arduino also exist locally in the MenuTree.
      • connectionState

        void connectionState​(RemoteInformation remoteInformation,
                             boolean connected)
        Indicates a change in connectivity
        Parameters:
        remoteInformation - the new connection information
        connected - true if connected, otherwise false.