TOTPCodeGeneratorDelegate

public protocol TOTPCodeGeneratorDelegate : AnyObject

This protocol represents the listener for TOTP (Time-baded One Time Passcode) code.

  • This method will be called every time a new TOTP code is generated.

    Default Implementation

    This default implementation does nothing.

    Declaration

    Swift

    func didGenerateCode(totpCode: String, badge: Badge, timeLeft: TimeInterval, duration: TimeInterval)