| CLASS info |
| public interface Fido2IntentCallback extends Fido2Status |
| Represents a callback API for FIDO2 registration or authentication. |
| Return type | Method name |
| void | onSuccess(Fido2Intent fido2Intent) Executes when the FIDO2 client successfully obtains a registration or authentication intent. This method is executed in the main thread. |
| void | void onFailure(int errorCode, @NonNull CharSequence errString) Executes when the FIDO2 client fails to obtain a registration or authentication intent. This method is executed in the main thread. |
| Method |
| void onSuccess(Fido2Intent fido2Intent) |
| Executes when the FIDO2 client successfully obtains a registration or authentication intent. |
Parameters
| Parameter name | Parameter desc |
| fido2Intent | Fido2Intent instance, which is used to start the FIDO2 client for registration or authentication. |
Return
| Type | desc |
| void |
| Method |
| void onFailure(int errorCode, @NonNull CharSequence errString) |
| Executes when the FIDO2 client fails to obtain a registration or authentication intent. |
Parameters
| Parameter name | Parameter desc |
| errorCode | Result code returned when the FIDO2 client fails to obtain a registration or authentication intent. |
| errString | Result description returned when the FIDO2 client fails to obtain a registration or authentication intent. |
Return
| type | desc |
| void |