Hi, is the callback invoked at all? You can show a toast if it is. Are we talking about Android here?
On Saturday, July 10, 2021 at 7:43:31 PM UTC+3 [email protected] wrote: > Hi, > > I am testing with the example that is in github, I changed the add method > and I cannot detect the cancellation. > > Code: > addItem.addActionListener(evt -> { > if (!Fingerprint.isAvailable()) { > ToastBar.showErrorMessage("Fingerprint not avaiable on > this platform"); > return; > } > AsyncResource<Boolean> r = Fingerprint.addPassword("Adding > secure item to keystore", keyName.getText(), keyValue.getText()); > if (r.isCancelled()) { > Dialog.show("Error", "Cancelled process", "Continuar", > null); > } > }); > > Thanks > -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/729671bb-5e32-4081-8a6c-6864863dc91fn%40googlegroups.com.
