MCPcopy Create free account
hub / github.com/Justson/AgentWeb / AgentWeb

Class AgentWeb

agentweb-core/src/main/java/com/just/agentweb/AgentWeb.java:43–770  ·  view source on GitHub ↗

@author cenxiaozhong @update 4.0.0 @since 1.0.0

Source from the content-addressed store, hash-verified

41 * @since 1.0.0
42 */
43public final class AgentWeb {
44 /**
45 * AgentWeb 's TAG
46 */
47 private static final String TAG = AgentWeb.class.getSimpleName();
48 /**
49 * Activity
50 */
51 private Activity mActivity;
52 /**
53 * 承载 WebParentLayout 的 ViewGroup
54 */
55 private ViewGroup mViewGroup;
56 /**
57 * 负责创建布局 WebView ,WebParentLayout Indicator等。
58 */
59 private WebCreator mWebCreator;
60 /**
61 * 管理 WebSettings
62 */
63 private IAgentWebSettings mAgentWebSettings;
64 /**
65 * AgentWeb
66 */
67 private AgentWeb mAgentWeb = null;
68 /**
69 * IndicatorController 控制Indicator
70 */
71 private IndicatorController mIndicatorController;
72 /**
73 * WebChromeClient
74 */
75 private com.just.agentweb.WebChromeClient mWebChromeClient;
76 /**
77 * WebViewClient
78 */
79 private com.just.agentweb.WebViewClient mWebViewClient;
80 /**
81 * is show indicator
82 */
83 private boolean mEnableIndicator;
84 /**
85 * IEventHandler 处理WebView相关返回事件
86 */
87 private IEventHandler mIEventHandler;
88 /**
89 * WebView 注入对象
90 */
91 private ArrayMap<String, Object> mJavaObjects = new ArrayMap<>();
92 /**
93 * flag
94 */
95 private int mTagTarget = 0;
96 /**
97 * WebListenerManager
98 */
99 private WebListenerManager mWebListenerManager;
100 /**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected