当前位置:网站首页>【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.
边栏推荐
- Unity3D Button mouse hover enter and mouse hover exit button events
- 局域网电脑硬件信息收集工具
- Mathematics to solve the problem - circular linked list
- TCP/IP四层模型
- 【Android】Room —— SQLite的替代品
- YOLOV5 study notes (2) - environment installation + operation + training
- 注解用法含义
- 公司官网建站笔记(六):域名进行公安备案并将备案号显示在网页底部
- 12 磁盘相关命令
- Software accumulation -- Screenshot software ScreenToGif
猜你喜欢

Discourse Custom Header Links

Office automation case: how to automatically generate period data?

The whole process scheduling, MySQL and Sqoop

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

Word/Excel fixed table size, when filling in the content, the table does not change with the cell content

The use of font compression artifact font-spider

YOLOV5学习笔记(三)——网络模块详解

分布式与集群是什么 ? 区别是什么?

【C语言】预处理操作

LeetCode简单题之两个数组间的距离值
随机推荐
LeetCode简单题之两个数组间的距离值
CentOS7下mysql5.7.37的卸载【完美方案】
你们程序员为什么不靠自己的项目谋生?而必须为其他人打工?
Mathematics to solve the problem - circular linked list
php 网站的多语言设置(IP地址区分国内国外)
华为分布式存储FusionStorage知识点总结【面试篇】
YOLOV5 study notes (2) - environment installation + operation + training
Graphical lower_bound & upper_bound
10 权限介绍
TCP详解(一)
品牌广告投放平台的中台化应用与实践
WebSocket Session is null
8、统一处理异常(控制器通知@ControllerAdvice全局配置类、@ExceptionHandler统一处理异常)
12 Disk related commands
【编译原理】递归下降语法分析设计原理与实现
The simulation application of common mode inductance is here, full of dry goods for everyone
分布式系统架构需要解决的问题
【Cocos Creator 3.5】缓动系统停止所有动画
什么是系统?
SQL injection Less47 (error injection) and Less49 (time blind injection)