fix: web fullscreen (#9577)

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou
2024-10-07 00:01:14 +08:00
committed by GitHub
parent 560c1effe8
commit 83aba804d0
4 changed files with 80 additions and 18 deletions

View File

@@ -166,4 +166,10 @@ class PlatformFFI {
// just for compilation
void syncAndroidServiceAppDirConfigPath() {}
void setFullscreenCallback(void Function(bool) fun) {
context["onFullscreenChanged"] = (bool v) {
fun(v);
};
}
}