2025-11-10 16:09:47 +08:00
|
|
|
//
|
|
|
|
|
// KBWebViewViewController.h
|
|
|
|
|
// keyBoard
|
|
|
|
|
//
|
|
|
|
|
// Created by 张伟 on 2025/11/10.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#import "BaseViewController.h"
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
2026-03-08 21:29:10 +08:00
|
|
|
typedef NS_ENUM(NSInteger, KBLegalDocumentType) {
|
|
|
|
|
KBLegalDocumentTypeTermsOfService = 0,
|
|
|
|
|
KBLegalDocumentTypePrivacyPolicy,
|
|
|
|
|
KBLegalDocumentTypeMembershipAgreement,
|
|
|
|
|
};
|
|
|
|
|
|
2025-11-10 16:09:47 +08:00
|
|
|
@interface KBWebViewViewController : BaseViewController
|
|
|
|
|
|
|
|
|
|
@property(nonatomic,copy) NSString * url;
|
2026-03-08 21:29:10 +08:00
|
|
|
@property(nonatomic,copy,nullable) NSString * htmlString;
|
|
|
|
|
@property(nonatomic,copy,nullable) NSString * pageTitle;
|
|
|
|
|
|
|
|
|
|
+ (instancetype)legalViewControllerWithType:(KBLegalDocumentType)type;
|
|
|
|
|
+ (void)presentLegalDocumentType:(KBLegalDocumentType)type fromViewController:(UIViewController *)viewController;
|
|
|
|
|
+ (nullable NSNumber *)legalDocumentTypeNumberFromQueryValue:(NSString *)queryValue;
|
|
|
|
|
+ (NSString *)queryValueForLegalDocumentType:(KBLegalDocumentType)type;
|
2025-11-10 16:09:47 +08:00
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|