1 Star 0 Fork 13

胖子的梦/ani_cookbook

forked from Xingwa/ani_cookbook 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
context_ani.sts 569 Bytes
一键复制 编辑 原始数据 按行查看 历史
Xingwa 提交于 2025-02-25 16:04 +08:00 . Update context ani
class Contex {
static { loadLibrary("context_ani");}
private nativeContext:long = 0;
constructor(context:long) {
if(this.nativeContext == 0){
this.nativeContext = context;
}
}
native static create():Contex;
native startAbilitySync():void;
native getTempDirSync():string;
//TODO:新增析构函数的注册,释放native handle
}
function main()
{
let ctx = Contex.create();
ctx.startAbilitySync();
let str = ctx.getTempDirSync();
console.log("getTempDirSync:" + str+ ".");
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/pangzidemeng/ani_cookbook.git
git@gitee.com:pangzidemeng/ani_cookbook.git
pangzidemeng
ani_cookbook
ani_cookbook
master

搜索帮助