BBASMConfigWindowProtocol.h
2.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
//
// BBASMConfigWindowProtocol.h
// BBAMNP
//
// Created by baidu on 2019/2/15.
// Copyright © 2019 Baidu. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@protocol BBASMConfigWindowProtocol <NSObject>
/// 导航栏背景颜色
@property (nonatomic, copy) NSString * navigationBarBackgroundColor;
/// 导航栏标题颜色,仅支持 black/white
@property (nonatomic, copy) NSString * navigationBarTextStyle;
/// 导航栏标题文字内容
@property (nonatomic, copy) NSString * navigationBarTitleText;
/// 窗口的背景色
@property (nonatomic, copy) NSString * backgroundColor;
/// 下拉背景字体、loading 图的样式,仅支持 dark/light
@property (nonatomic, copy) NSString * backgroundTextStyle;
/// 是否开启下拉刷新,详见页面相关事件处理函数
@property (nonatomic) NSNumber *enablePullDownRefresh;
/// !!!:设置为 true 则页面整体不能上下滚动;只在 page.json 中有效,无法在 app.json 中设置该项
@property (nonatomic) NSNumber *disableScroll;
/// 页面上拉触底事件触发时距页面底部距离,单位为px
@property (nonatomic) NSNumber *onReachBottomDistance;
/// iphoneX底部安全区域颜色
@property (nonatomic, copy) NSString *iphoneXSafeAreaBackgroundColor;
/// navigationStyle的值 注意这个值只写在app.json 的 window里 但是全局生效
@property (nonatomic, copy) NSString * navigationStyle;
/// 页面下拉时的背景色
@property (nonatomic, copy) NSString *backgroundColorTop;
/// 页面上拉时的背景色
@property (nonatomic, copy) NSString *backgroundColorBottom;
/// 直接进入二级页,是否隐藏home按钮 YES: 隐藏Home按钮,FALSE:进入二级页不隐藏, 默认FALSE。
@property (nonatomic, assign) BOOL navigationHomeButtonHidden;
/// 支持页面级配置禁止页面全屏右滑手势返回能力。(12.5版本改为禁止页面全屏右滑(边缘可右滑))
@property (nonatomic, assign) BOOL disableSwipeBack;
/// 小程序页面级配置: 用于单页收藏,全局生效,默认显示
@property (nonatomic, assign) BOOL pageFavoriteEnable;
/// 控制字体缩放是否生效
@property (nonatomic, copy) NSString *textSizeAdjust;
/// 页面是否为视频页面(用于视频预创建)
@property (nonatomic, assign) BOOL hasVideo;
/// 是否使用naView 的NAView 还是webview
@property (nonatomic, assign) BOOL isNAView;
/// The root node sets the value of the base font size HTML, 1rem = the size of the root node font
@property (nonatomic, copy) NSString *htmlFontSize;
/// 自定义字体
@property (nonatomic, strong) NSArray *fontFace;
/**
自定义初始化方法
@param jsonDictionary 传入的由json转换的配置字典
@return 配置实例
*/
- (instancetype)initWithDictionary:(NSDictionary *)jsonDictionary;
- (nullable NSDictionary *)modelDictionary;
@end
NS_ASSUME_NONNULL_END