获取 sdk
1. 新建 sdk
【易动】官网中控易动—提供APP一站式SaaS服务注册->控制台->小程序 SDK->新增 SDK
包名 android 区分应用的唯一标示
2.配置 sdk 插件并生成 sdk
选择需要使用的平台插件与自定义插件
点击生成 sdk
android 项目集成
1.下载测试 demo
打开中控易动官网中控易动—提供APP一站式SaaS服务下载完整示例代码
2.导入 sdk 到 android 工程
SDK 内置 Api 使用
1.初始化
参数说明
new com.supconit.hcmobile.HcmobileApp().init(Content, "key");
2.打开小程序 url 模式
参数说明
com.supconit.hcmobile.plugins.local.MiniEnterActivity.run(Activity current, String url, boolean isFullScreen);
3.打开小程序(携带 title) url 模式
参数说明
com.supconit.hcmobile.plugins.local.MiniEnterActivity.runWithTitle(Activity current, String url, String
toolbarTitle, String toolbarBackColor, String toolbarTitleColor, boolean isShowBackBtn, boolean isHideToolBar, boolean isHideFunctionButton, boolean isHideButtonLine)
4.打开小程序 平台在线模式
参数说明
com.supconit.hcmobile.plugins.local.MiniEnterActivity.run(Activity current, String miniProgramId, boolean isFullScreen);
5.打开小程序(携带 title) 平台在线模式
参数说明
com.supconit.hcmobile.plugins.local.MiniEnterActivity.runWithTitle(Activity current, String miniProgramId, String
toolbarTitle, String toolbarBackColor, String toolbarTitleColor, boolean isShowBackBtn,