public class RouterExternal
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
static RouterExternal |
getInstance() |
void |
init(android.content.Context context,
java.lang.String env)
初始化
|
void |
registerNativeCodeUrl(java.lang.String code,
java.lang.String url)
注册 code => url
|
void |
registerNativePages(java.util.List<java.lang.String> urls,
com.aliyun.iot.aep.component.router.IUrlHandler urlHandler)
注册 url => urlHandler
|
public static final RouterExternal getInstance()
public void init(android.content.Context context, java.lang.String env)
context
- contextenv
- 当前环境信息public void registerNativeCodeUrl(java.lang.String code, java.lang.String url)
code
- url
- public void registerNativePages(java.util.List<java.lang.String> urls, com.aliyun.iot.aep.component.router.IUrlHandler urlHandler)
urls
- urlHandler
-