YHExplorerViewController.h
1.66 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
//
// YHExplorerViewController.h
// YohoExplorerDemo
//
// Created by gaoqiang xu on 2/27/15.
// Copyright (c) 2015 gaoqiang xu. All rights reserved.
//
#import "CDVViewController.h"
#import "CDVCommandDelegateImpl.h"
#import "CDVCommandQueue.h"
#import "CDVYHInterfaceDelegate.h"
#import "YHLinkDefaultParser.h"
#import "YHExplorerWebViewDelegate.h"
@protocol YHExplorerDelegate;
@interface YHExplorerViewController : CDVViewController
<CDVYHInterfaceDelegate, YHExplorer>
/**
* 存放一些自动跳转的scheme,目前有itms-apps, itms-appss
可以往里面补充
*/
@property (strong, nonatomic) NSMutableArray * _Nonnull autoSchemes;
@property (strong, nonatomic) NSMutableArray * _Nonnull autoHosts;
// 进度条功能的启动/停用
@property (nonatomic) BOOL progressBarEnabled;
// 本地机能列表
@property (readonly, strong, nonatomic) NSMutableArray * _Nonnull nativeAbilities;
// 自动处理默认的scheme跳转,如itms-apps
@property (nonatomic) BOOL automaticallySchemeHandle;
// 网页的title
@property (readonly, copy, nonatomic) NSString * _Nonnull pageTitle;
//滚动条所在的navibar
@property (weak, nonatomic) UINavigationBar * _Nullable currentNaviBar;
// 网页交互代理(包含UIWebView的代理)
@property (weak, nonatomic) id <YHExplorerDelegate> _Nullable delegate;
/**
* 使用一个url初始化
*
* @param url 地址
*
* @return instance
*/
- (instancetype _Nonnull)initWithUrl:(NSString * _Nonnull)url;
- (instancetype _Nonnull)initWithCurrentNaviBar:(UINavigationBar * _Nonnull)currentNaviBar;
@end
@interface YHExplorerCommandDelegate : CDVCommandDelegateImpl
@end
@interface YHExplorerCommandQueue : CDVCommandQueue
@end