当前位置:网站首页>【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.
边栏推荐
- 【C语言基础】解决C语言error: expected ‘;‘, ‘,‘ or ‘)‘ before ‘&‘ token
- CentOS7下mysql5.7.37的安装【完美方案】
- YOLOV5 study notes (2) - environment installation + operation + training
- 软件积累 -- 截图软件ScreenToGif
- Maximum area of solar panel od js
- 10 Permission introduction
- Why is String immutable?
- 什么是系统?
- YOLOV5学习笔记(二)——环境安装+运行+训练
- Clustering index, and what is the difference between a clustering index
猜你喜欢

12 磁盘相关命令

TCP详解(一)

Crypto Firms Offer Offer To Theft Hackers: Keep A Little, Give The Rest

SQL注入 Less54(限制次数的SQL注入+union注入)

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

你们程序员为什么不靠自己的项目谋生?而必须为其他人打工?

8、统一处理异常(控制器通知@ControllerAdvice全局配置类、@ExceptionHandler统一处理异常)

Getting Started with CefSharp - winform

品牌广告投放平台的中台化应用与实践

Multilingual settings of php website (IP address distinguishes domestic and foreign)
随机推荐
Pythagorean tuple od js
多线程下类对象的服务承诺探讨
Addition and Subtraction of Scores in LeetCode Medium Questions
The whole process scheduling, MySQL and Sqoop
知识蒸馏7:知识蒸馏代码详解
Compile Hudi
分布式与集群是什么 ? 区别是什么?
Is interprofessional examination difficult?Low success rate of "going ashore"?Please accept this practical guide!
加密公司向盗窃的黑客提供报价:保留一点,把剩下的归还
MultipartFile file upload
C#远程调试
局域网电脑硬件信息收集工具
The difference between link and @import
execsnoop tool
原子操作 CAS
【HCIP】ISIS
【C语言】求两个整数m和n的最大公因数和最小公倍数之和一般方法,经典解法
Modbus on AT32 MCUs
StringJoiner in detail
try-catch中含return