组件子进程运行的框架设计
2021-06-01 21:48:03 0 举报
基于android的activity或webview子进程打开页面的技术方案
作者其他创作
大纲/内容
远程设置回调
创建监听代理
MainInterfaceStub
主进程创建
不限
IEventBusCallback.aidl
bindService
WebFragmentPresenter
连接成功设置binder
EventBusCallbackBinder
SubProcessorInner
WebSubProcessActivity
MainEventBusListener
IndepWareConfigs
主进程
MainInterface.aidl
MainProcessorInner
MainProcessService
WebMainProcessActivity
IndepWare
- mInstance
+ startOnActivityCreated(activity): void+ stopOnActivityDestroyed(activity): void+ getMainInterface(): MainInterface+ sendEvent(event): void
JsApi
RouteActivity
子进程
IndepWareProcessor
- mInstance- mSubProcessorInner- mMainProcessorInner
+ init(activity): void+ getMainInterface(): MainInterface+ sendEvent(event): void+ setMainEventBusCallback(callback): void+ setMainServiceBinder(binder): void
MainInterfaceDelegate
MainProcessServiceBinder
MainEventBusDelegate
创建eventbus委托
收藏
0 条评论
下一页
为你推荐
查看更多