MOWebViewController.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. //
  2. // MOWebViewController.h
  3. // MiMoLive
  4. //
  5. // Created by SuperC on 2023/12/25.
  6. //
  7. #define kWebCallBack_Close @"closeActivity" //关闭界面
  8. #define kWebCallBack_GetUserInfo @"getUserInfo" //传用户信息
  9. #define kWebCallBack_GetStatusHeight @"getStatusHeight" //状态栏高度
  10. #define kWebCallBack_GetLanguage @"getLanguage" //语言
  11. #define kWebCallBack_GetDiamond @"needUpdateDiamond" //获取钻石
  12. #define kWebCallBack_ToGetRain @"getRedRainInfo" //获取红包雨
  13. #define kWebCallBack_ToSubmitShareLink @"submitShareLink" //分享(斋月活动)
  14. #define kWebCallBack_ToSubmitShareLinkResponse @"getShareLinkResultResponse" //分享结果(斋月活动)
  15. #define kWebCallBack_TokenExpired @"tokenExpired" //token过期
  16. #define kWebCallBack_ExportUrl @"exportUrl" //打开链接
  17. #define kWebCallBack_ChagneMysteriousStatus @"changeMysteriousStatus" //设置神秘人开关
  18. #define kWebCallBack_GetBlindBoxScreenParams @"getBlindBoxScreenParams"//盲盒礼物获取屏幕相关信息
  19. #define kWebCallBack_SetBlindBoxResult @"setBlindBoxResult" //盲盒抽奖后,将整个返回数据返回给移动端
  20. #define kWebCallBack_ShareToPlatAgency @"shareToPlat" //分享(全民代理)
  21. #define kWebCallBack_GetShareLinkAgencyResultResponse @"getShareLinkAgencyResultResponse" //分享结果(全民代理)
  22. #define kWebCallBack_BindAgencySuccess @"bindAgencySuccessFul" //H5手动绑定后调用原生方法,需要刷新我的页面绑定状态
  23. #import "MOBaseViewController.h"
  24. #import <WebKit/WebKit.h>
  25. #import "MOEnterDataModels.h"
  26. NS_ASSUME_NONNULL_BEGIN
  27. @interface MOWebViewController : MOBaseViewController
  28. @property (nonatomic, strong) WKWebView *poWebView;
  29. /** url */
  30. @property (nonatomic, copy) NSURL *webUrl;
  31. @property (nonatomic, assign) BOOL isNeedFirstRefresh;
  32. /** 请求 */
  33. @property (nonatomic, strong) NSURLRequest *request;
  34. @property (nonatomic, assign) BOOL isHalfShow;
  35. @property (nonatomic, strong) NSString *titleStr;
  36. /** 展示H5标题, 如果titleStr不传值的时候可以使用 */
  37. @property (nonatomic, assign) BOOL isShowTitle;
  38. @property (nonatomic, assign) BOOL isHaveSafeTop;
  39. /** 退出界面时 是否需要刷新余额 */
  40. @property (nonatomic, assign) BOOL isNeedUpdateMoney;
  41. @property (nonatomic, assign) BOOL isRedRain;
  42. @property (nonatomic, strong) NSDictionary *redRainData;
  43. @property (nonatomic, copy) NSString *roomId;
  44. @property (nonatomic, assign) NSInteger minHeight;
  45. @property (nonatomic, copy) void (^closeViewBlock)(void);
  46. @property (nonatomic, assign) BOOL isFirstAdWeb;
  47. //进入基础类
  48. @property (nonatomic, strong) MOWameEnterData *enterBaseData;
  49. @property (nonatomic, strong) MOWame2 *wame2Config;
  50. @property (nonatomic, assign) CGFloat wameKeyboardHeight;
  51. @property (nonatomic, assign) BOOL isWame;
  52. @property (nonatomic, assign) BOOL isMiniWame;
  53. @property (nonatomic, strong) NSNumber *blindBoxPaddingTop;//盲盒礼物需要的参数
  54. @end
  55. NS_ASSUME_NONNULL_END