当前位置:网站首页>【CocosCreator 3.5】CocosCreator get network status
【CocosCreator 3.5】CocosCreator get network status
2022-07-31 03:03:00 【CN-Dust】
Cocos comes with api to get network status
/**Get network status */public getNetwork() {/** * 0: "NONE" * 1: "LAN" * 2: "WWAN" * LAN: 1 * NONE: 0 * WWAN: 2 */return cc.sys.getNetworkType();}You can also print cc.sys.NetworkType to see what these values mean.
边栏推荐
猜你喜欢

公司官网建站笔记(六):域名进行公安备案并将备案号显示在网页底部

关于 mysql8.0数据库中主键位id,使用replace插入id为0时,实际id插入后自增导致数据重复插入 的解决方法

【Android】Room —— SQLite的替代品

mycat的主从关系 垂直分库 水平分表 以及mycat分片联表查询的配置详解(mysql5.7系列)

What is a distributed lock?Three ways of implementing distributed lock

【编译原理】词法分析程序设计原理与实现

5. SAP ABAP OData 服务如何支持 $filter (过滤)操作

华为分布式存储FusionStorage知识点总结【面试篇】

Moxa NPort device flaw could expose critical infrastructure to devastating attack

IDEA 注释报红解决
随机推荐
点云DBSCAN聚类(MATLAB,非内置函数)
10、Redis实现点赞(Set)和获取总点赞数
10. Redis implements likes (Set) and obtains the total number of likes
SQL injection Less46 (injection after order by + rand() Boolean blind injection)
Project (5) - Small target detection tph-yolov5
15、网站统计数据
【C语言】表达式求值的一般方法
Compile Hudi
SQL注入 Less46(order by后的注入+rand()布尔盲注)
SQL injection Less47 (error injection) and Less49 (time blind injection)
SQL 面试用题(重点)
YOLOV5 study notes (2) - environment installation + operation + training
【HCIP】ISIS
Mysql 45讲学习笔记(二十四)MYSQL主从一致
【异常】The field file exceeds its maximum permitted size of 1048576 bytes.
局域网电脑硬件信息收集工具
字体压缩神器font-spider的使用
【Cocos Creator 3.5】缓动系统停止所有动画
Chapter 9 SVM实践
VS QT——ui不显示新添加成员(控件)||代码无提示