Interface AmLinkListener

    • Method Detail

      • onDisconnection

        void onDisconnection()
        The handler to call in case of a disconnection. When this handler is called, the instance is considered as closed. Can only be called after the start promise successful completion, and before every ongoing (un)subscribe promise failure.
      • onNotification

        void onNotification​(Notification notification)
        The notification handler, will receive all notifications sent by AM. Duplicate notifications may occur.
        Parameters:
        notification - the received notification