Files
peko-ios/YuMi/Modules/YMWeb/XPWebViewController.h
2024-06-07 17:10:06 +08:00

47 lines
1.5 KiB
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// XPWebViewController.h
// YuMi
//
// Created by zu on 2021/9/16.
//
#import "BaseViewController.h"
#import <WebKit/WebKit.h>
NS_ASSUME_NONNULL_BEGIN
@protocol XPWebViewControllerDelegate <NSObject>
-(void)payHandler;
@end
@interface XPWebViewController : BaseViewController
///
@property (nonatomic,weak) id<XPWebViewControllerDelegate> delegate;
@property (strong, nonatomic,readonly) WKWebView *webview;
///跳转方式如果push的直接pushViewController不用dismissViewControllerAnimated后再pushViewController
@property (nonatomic,assign) BOOL isPush;
//TODO: 先这样传进来 等修改了保存房间信息的manager 之后在修改
@property (nonatomic,copy) NSString *roomUid;
///是否从精灵页面过来
@property (nonatomic,assign) BOOL isFairyPay;
@property (nonatomic,assign) BOOL is_Pi_FairyPay;
///XPWebViewController是否作为属性yes则
@property (nonatomic,assign) BOOL isProperty;
@property (copy, nonatomic) NSString *url;
/// URL加载完成回调result:加载结果成功/失败error:失败原因
@property (nonatomic, copy) void (^urlLoadCompleted)(BOOL result, NSError * _Nullable error);
///是都隐藏导航栏 目前适用于半屏的情况下
@property (nonatomic,copy) void (^InitShowNavBlock)(BOOL show);
///关闭webView 目前适用于半屏的情况下
@property (nonatomic,copy) void (^CloseWebViewBlock)(BOOL result);
- (instancetype)initWithCustomizeNav:(BOOL)isCustom;
- (instancetype)initWithGame;
@end
NS_ASSUME_NONNULL_END