UsherCodeGeneratorDelegate
public protocol UsherCodeGeneratorDelegate : AnyObject
This protocol represents the listener for usher code.
-
didGenerateCode(usherCode:qrCode:badge:timeLeft:duration:)Default implementationThis 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
usherCodeThe new Usher Code
qrCodeThe QR Code for the Usher Code
badgeThe badge for which the Usher Code and QR Code are associated with.
timeLeftThe number of seconds left for the code to stay valid.
durationThe time interval of a new code generation.
UsherCodeGeneratorDelegate Protocol Reference