RevokedUIProtocol
public protocol RevokedUIProtocol
UI Protocol for error handling of revoked badge
-
Returns an instance of the class conforming to
RevokedUIProtocol
protocol.Declaration
Swift
static func instance() -> RevokedUIProtocol?
-
Informs the user that a badge is revoked.
Declaration
Swift
func informUserOfBadgeRevocation(forBadge: Badge, completion: @escaping (Bool) -> Void)
Parameters
badge
The badge that is revoked
completion
Completion block to call once the user have been notified and the UI can be dismissed.
-
Dismiss any UI presented by the
informUserOfBadgeRevocation(_:completion:)
Declaration
Swift
func dismiss()