Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
Static
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
423297a9
authored
Sep 19, 2025
by
kaisa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:新增通知安卓客户端活动窗口宽高方法
parent
1785fa47
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
js/webAppComm.js
js/webAppComm.js
View file @
423297a9
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment