UsherCodeGeneratorDelegate

public protocol UsherCodeGeneratorDelegate : AnyObject

This protocol represents the listener for usher code.

  • This method is called every time a new Usher Code is generated.

    Default Implementation

    This default implementation does nothing.

    Declaration

    Swift

    func didGenerateCode(usherCode: String, qrCode: String, badge: Badge, timeLeft: TimeInterval, duration: TimeInterval)
    Parameters
    usherCode

    The new Usher Code

    qrCode

    The QR Code for the Usher Code

    badge

    The badge for which the Usher Code and QR Code are associated with.

    timeLeft

    The number of seconds left for the code to stay valid.

    duration

    The time interval of a new code generation.