Commit 423297a9 by kaisa

feat:新增通知安卓客户端活动窗口宽高方法

parent 1785fa47
Showing with 16 additions and 0 deletions
......@@ -730,6 +730,22 @@ webAppComm.prototype.evokeIptPasteText = function (text) {
webAppCollaboration(obj2);
}
// 51: 通知安卓客户端活动窗口宽高
webAppComm.prototype.setWidthHeigth = function (type, wr, hr, position, unit) {
let obj = {
"cid": 51,
"data": {
"type": type, //1活动框架 2游戏框架。
"width": wr, // #单位为vw 默认值为-1 未传或传-1时,则不修改宽度
"height": hr, //单位为vw 默认值为-1 未传或传-1时,则不修改高度
"position": position, // 1右贴边 2左贴边 默认右贴边。
"unit": unit, //单位 默认1 vw 2 pt
}
}
let obj2 = JSON.stringify(obj);
webAppCollaboration(obj2);
}
//接收客戶端的消息
webAppComm.prototype.reMsgFromApp = function (callback) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment