Loading poolpay/card/CardReader.py +10 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,16 @@ class CardReader(AbstractContextManager, ABC): """ ... @abstractmethod def on_card_removed(self, handle_removal: Callable[[CardReader], None]) -> None: """ Register the function handle_removal so that it is called whenever a MIFARE Ultralight card was presented and removed again. If this is called multiple times, the CardReader may decide whether it only remembers and calls the last registered function, or all of them. """ ... @abstractmethod def close(self) -> None: """ Loading Loading
poolpay/card/CardReader.py +10 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,16 @@ class CardReader(AbstractContextManager, ABC): """ ... @abstractmethod def on_card_removed(self, handle_removal: Callable[[CardReader], None]) -> None: """ Register the function handle_removal so that it is called whenever a MIFARE Ultralight card was presented and removed again. If this is called multiple times, the CardReader may decide whether it only remembers and calls the last registered function, or all of them. """ ... @abstractmethod def close(self) -> None: """ Loading