WMRouter使用
路由节点分析
- 路由协议
- 定义路由协议 scheme + host + path
- 按照定义的协议,通过注解的方式唯一确定一个路由跳转的页面
@RouterUri(scheme = "test", host = "channel1", path = "test_a") public class TestAActivity extends BaseActivity
- 代码中就可以通过如下的调用方式跳转到该activity
Router.startUri(context, "test://channel1/test_a")