developer
2023-05-20 e12c7b4c22df631ebdcd16b2f98fbef8f738f92f
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
/*
 * WVBasicConstant.h
 * 
 * Created by WindVane.
 * Copyright (c) 2017年 阿里巴巴-淘宝技术部. All rights reserved.
 */
 
#import <Foundation/Foundation.h>
 
#pragma mark Notification
 
// 表示 WebView 加载的页面 URL 的键。
FOUNDATION_EXPORT NSString * _Nonnull const WVWebViewURLKey;
// 表示 WebView 页面加载失败信息的键。
FOUNDATION_EXPORT NSString * _Nonnull const WVWebViewErrorKey;
 
/**
 * WebView 的页面加载成功通知。
 * @WVWebViewURLKey 当前 WebView 的页面 URL。
 */
FOUNDATION_EXPORT NSString * _Nonnull const WVWebViewFinishLoadNotification;
 
/**
 * WebView 的页面加载失败通知。
 * @WVWebViewURLKey   当前 WebView 的页面 URL。
 * @WVWebViewErrorKey 加载失败的错误信息。
 */
FOUNDATION_EXPORT NSString * _Nonnull const WVWebViewFailLoadNotification;
 
/**
 * WebView 的切到后台通知。
 * @WVWebViewURLKey 当前 WebView 的页面 URL。
 */
FOUNDATION_EXPORT NSString * _Nonnull const WVWebViewDisappearNotification;
 
/**
 * WebView 的切到前台通知。
 * @WVWebViewURLKey 当前 WebView 的页面 URL。
 */
FOUNDATION_EXPORT NSString * _Nonnull const WVWebViewAppearNotification;
 
/**
 * WKWVWebView 受到用户手势操作的通知。
 */
FOUNDATION_EXPORT NSString * _Nonnull const WVWKWebViewReceiveUserActionNotification;
 
#pragma mark JS Event
 
// App 激活的 JS 事件名称。
FOUNDATION_EXPORT NSString * _Nonnull const WVEventAppActive;
// App 退到后台的 JS 事件名称。
FOUNDATION_EXPORT NSString * _Nonnull const WVEventAppBackground;
// 页面无限滚动的 JS 事件名称。
FOUNDATION_EXPORT NSString * _Nonnull const WVEventPageInfiniteScroll;