Package org.eclipse.keyple.plugin.stub
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 Summary
Modifier and TypeMethodDescriptionvoidplugReader(String name, boolean isContactless, StubSmartCard card) Plug a newStubReader.voidunplugReader(String name) Unplug aStubReader.
-
Method Details
-
plugReader
Plug a newStubReader. This operation is asynchronous and will raise a READER_CONNECTED event. A newStubReaderis 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
Unplug aStubReader. 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
-