Interface RemoteConnectorListener

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface RemoteConnectorListener
    This is the low level, communication listener interface that you implement in order to know when commands have been received from the remote device. Normally, this is used by the RemoteMenuController and not something a user would directly subscribe to (unless you are adding custom messages to the protocol).
    • Method Detail

      • onCommand

        void onCommand​(RemoteConnector connector,
                       MenuCommand command)
        Sent by the connector when a message has been decoded.
        Parameters:
        connector - the connector that sent the message
        command - the command it decoded.