enrollWithShortcode

public final Unit enrollWithShortcode(String shortcode, FuturaeCallback callback)

Standard enroll function with a provided activation short code instead of a QR code, for which the app does not provide an SDK PIN. It needs to be used for all lock configuration types, with the only exception being that the first enrollment for the SDK_PIN_WITH_BIOMETRICS_OPTIONAL lock configuration type needs to take place by using the enrollAndSetupSDKPin function.

Parameters

shortcode

the activation short code for the user’s enrollment.

callback

used to receive the response of the enroll operation.

See also

.enrollWithShortcodeAndSetupSDKPin

Throws

if the SDK has been initialized for LockConfigurationType.SDK_PIN_WITH_BIOMETRICS_OPTIONAL and this is the very first enrollment. In this case the enrollAndSetupSDKPin should have been used instead.

if any of the specified arguments are invalid.

if the SDK is unable to perform necessary cryptographic operations.

if the SDK is locked.

FTApiPinIncorrectException

if using SDK_PIN_WITH_BIOMETRICS_OPTIONAL config and the PIN is missing or empty.

FTApiDeviceArchivedException

if using SDK_PIN_WITH_BIOMETRICS_OPTIONAL config and the PIN verification has failed 5 times.

if the associated API to the Futurae backend calls fail.