SwiftenumSensitiveContentAnalysisUI

enum SensitiveContentAnalysisUI.AgeVerificationAlert

Members 13

  1. funcstatic accountToken(for: String) -> String
  2. funcstatic continueButtonTitle(layout: SensitiveContentAnalysisUI.InterventionConfig.Layout) -> String
  3. funcstatic hasShown(forAccount: String) -> Bool
  4. funcstatic isReachable(using: SensitiveContentAnalysisUI.NetworkService) async -> Bool
  5. funcstatic makeAlert(presenter: UIViewController?, body: String, config: SensitiveContentAnalysisUI.InterventionConfig, accountToken: String) -> UIAlertController
  6. funcstatic presentIfNeeded(on: UIViewController, config: SensitiveContentAnalysisUI.InterventionConfig, eligibilityChecker: SensitiveContentAnalysisUI.ApplicationEligibilityChecking, networkService: SensitiveContentAnalysisUI.NetworkService, contentProvider: SensitiveContentAnalysisUI.AgeVerificationContentProviding) -> ()
  7. funcstatic recordImpression(forAccount: String) -> ()
  8. funcstatic releasePresentationGate() -> ()
  9. funcstatic reset() -> ()
  10. funcstatic shouldShow(eligibilityChecker: SensitiveContentAnalysisUI.ApplicationEligibilityChecking) -> Bool
  11. funcstatic tryAcquirePresentationGate() -> Bool
  12. varstatic var continueButtonSchema: SensitiveContentAnalysisUI.LocalizationKeySchema<Pack{SensitiveContentAnalysisUI.AgeVerificationAlert.ContinueButtonAction, SensitiveContentAnalysisUI.AgeVerificationAlert.ContinueButtonContent}> { get }
  13. varstatic var isPresentationInFlight: Bool { get }
enum AgeVerificationAlert {
    enum FetchBodyError {
        case spiError(Swift.String)
        case timeout
        case noBody
    }
    enum ContinueButtonAction {
        enum KeyPart {
            case share
            case view
        }
        case share
        case view

        var localizationKeyPart: SensitiveContentAnalysisUI.AgeVerificationAlert.ContinueButtonAction.KeyPart {
            get
        }
    }
    enum ContinueButtonContent {
        enum KeyPart {
            case image
            case images
            case video
            case videos
            case imagesAndVideos
        }
        case image
        case images
        case video
        case videos
        case imagesAndVideos

        init?(_: SensitiveContentAnalysis.ContentDescription.Description)

        var localizationKeyPart: SensitiveContentAnalysisUI.AgeVerificationAlert.ContinueButtonContent.KeyPart {
            get
        }
    }
    static var continueButtonSchema: SensitiveContentAnalysisUI.LocalizationKeySchema<SensitiveContentAnalysisUI.AgeVerificationAlert.ContinueButtonAction, SensitiveContentAnalysisUI.AgeVerificationAlert.ContinueButtonContent> {
        get
    }
    static var isPresentationInFlight: Swift.Bool {
        get
    }

    static func makeAlert(presenter: __C.UIViewController?, body: Swift.String, config: SensitiveContentAnalysisUI.InterventionConfig, accountToken: Swift.String) -> __C.UIAlertController
    static func shouldShow(eligibilityChecker: any SensitiveContentAnalysisUI.ApplicationEligibilityChecking) -> Swift.Bool
    static func isReachable(using: SensitiveContentAnalysisUI.NetworkService) async -> Swift.Bool
    static func accountToken(for: Swift.String) -> Swift.String
    static func presentIfNeeded(on: __C.UIViewController, config: SensitiveContentAnalysisUI.InterventionConfig, eligibilityChecker: any SensitiveContentAnalysisUI.ApplicationEligibilityChecking, networkService: SensitiveContentAnalysisUI.NetworkService, contentProvider: any SensitiveContentAnalysisUI.AgeVerificationContentProviding)
    static func recordImpression(forAccount: Swift.String)
    static func continueButtonTitle(layout: SensitiveContentAnalysisUI.InterventionConfig.Layout) -> Swift.String
    static func releasePresentationGate()
    static func tryAcquirePresentationGate() -> Swift.Bool
    static func reset()
    static func hasShown(forAccount: Swift.String) -> Swift.Bool
}