Custom Scan Termination

The scan termination option can be configured with the BcmScanConfig class.

There are three configurations available:

/**
* Configurable scan termination options.
*/
public enum ScanTerminationOptions {
    /**
     * The scan is not terminated by the SDK -
     * an own termination logic can be implemented
     */
    case DISABLE

    /**
     * A default button would be visible in the scan screen,
     * when clicking the button - the scan terminates.
     */
    case BUTTON

    /**
     * When the finger threshold is reached by > 50% of the selected fingers, a countdown timer starts.
     * The scan terminates, when the countdown timer expires.
     *
     * The score threshold can be configured with "fingerScoreThreshold"
     * The timeout can be configured with "fingerScoreTimeout"
     */
    case SCORE_WITH_TIMEOUT
}

By using the ScanTerminationOptions.DISABLE configuration, it is possible to configure your own termination option.

When the scan termination option is disabled, you can put your own scan termination logic in the fingerImagesCachedLiveScore of the PBcmFlowDelegate interface.

    /**
     * Internal finger cache was updated, because fingers with a better score was detected.
     * Inspect the BcmFingerImageLiveScoreDTO structure to check live score.
     * The callback will continuously called, during the scan.
     */
    func fingerImagesCachedLiveScore(
        _ fingerImageLiveScores: Array<BcmFingerImageLiveScoreDTO>
    )

To terminate a Scan session you have to call the finishScan() method of the BcmScanController.

Implementation

Swift:

// todo

See also

results matching ""

    No results matching ""