UserAgreementUIProtocol

public protocol UserAgreementUIProtocol

User Agreement UI Protocol

  • Returns an instance of the class conforming to UserAgreementUIProtocol protocol

    Declaration

    Swift

    static func instance() -> UserAgreementUIProtocol?
  • Prompts the user to read and agree to the Terms of Use and Privacy Policy for the badge.

    Declaration

    Swift

    func promptForUserAgreement(forBadge badge: Badge, completion: @escaping (_ accepted: Bool) -> Void)
    Parameters
    badge

    The badge

    completion

    Completion block to be called with a boolean wheather user accepted or not.

  • Dismiss any UI presented by the promptForUserAgreement(forBadge:completion:).

    Declaration

    Swift

    func dismiss()