Interface StubPlugin

  • All Superinterfaces:
    org.eclipse.keyple.core.common.KeyplePluginExtension

    public interface StubPlugin
    extends org.eclipse.keyple.core.common.KeyplePluginExtension
    Specific methods of the Stub Plugin. Implemented as a KeyplePluginExtension. To invoke those methods use Plugin#getExtension(StubPlugin.class) from the Plugin class.
    Since:
    2.0.0
    • Method Detail

      • plugReader

        void plugReader​(java.lang.String name,
                        boolean isContactless,
                        StubSmartCard card)
        Plug a new StubReader. This operation is asynchronous and will raise a READER_CONNECTED event. A new StubReader is created and make available in the plugin
        Parameters:
        name - name for the reader (not nullable and unique)
        isContactless - true if the created reader should be contactless, false if not.
        card - created reader can contain a card (nullable)
        Since:
        2.0.0
      • unplugReader

        void unplugReader​(java.lang.String name)
        Unplug a StubReader. This operation is asynchronous and will raise a READER_DISCONNECTED event. The reader is removed from the * available list of reader. It does nothing if no reader matches the name.
        Parameters:
        name - the name of the reader to unplug (not nullable)
        Since:
        2.0.0