//
//  OLAlertViewController.h
//  OneLoginExample
//
//  Created by Niko Xu on 2025/8/21.
//  Copyright © 2025 geetest. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef void (^OLAlertAction)(void);

@interface OLAlertViewController : UIViewController

+ (instancetype)alertWithTitle:(nullable NSString *)title
                       content:(nullable NSAttributedString *)content
             confirmButtonText:(nullable NSString *)confirmText
              cancelButtonText:(nullable NSString *)cancelText
               confirmHandler:(nullable OLAlertAction)confirmHandler
                cancelHandler:(nullable OLAlertAction)cancelHandler;

- (instancetype)initWithTitle:(nullable NSString *)title
                      content:(nullable NSAttributedString *)content
            confirmButtonText:(nullable NSString *)confirmText
             cancelButtonText:(nullable NSString *)cancelText
              confirmHandler:(nullable OLAlertAction)confirmHandler
               cancelHandler:(nullable OLAlertAction)cancelHandler;

@end

NS_ASSUME_NONNULL_END
