当前位置:网站首页>【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
- 冒泡排序、选择排序、直接插入排序、二分法查找
- Mysql 45讲学习笔记(二十三)MYSQL怎么保证数据不丢
- C#远程调试
- IDEA 注释报红解决
- Is interprofessional examination difficult?Low success rate of "going ashore"?Please accept this practical guide!
- 编译Hudi
- php 网站的多语言设置(IP地址区分国内国外)
- 测试中的误报和漏报同样的值得反复修正
- LeetCode简单题之两个数组间的距离值
猜你喜欢
YOLOV5 study notes (3) - detailed explanation of network module
Discourse Custom Header Links
Chapter 9 SVM Practice
共模电感的仿真应用来了,满满的干货送给大家
QML的使用
Huawei od dice js
Office automation case: how to automatically generate period data?
8、统一处理异常(控制器通知@ControllerAdvice全局配置类、@ExceptionHandler统一处理异常)
【C语言】三子棋(经典解法+一览图)
Graphical lower_bound & upper_bound
随机推荐
选好冒烟测试用例,为进入QA的制品包把好第一道关
Mysql 45讲学习笔记(二十四)MYSQL主从一致
CloudCompare&PCL 计算两个点云之间的重叠度
点云DBSCAN聚类(MATLAB,非内置函数)
观察者模式
华为分布式存储FusionStorage知识点总结【面试篇】
False positives and false negatives in testing are equally worthy of repeated corrections
MultipartFile文件上传
CorelDRAW2022 streamlined Asia Pacific new features in detail
Clustering index, and what is the difference between a clustering index
Annotation usage meaning
7、私信列表
字体压缩神器font-spider的使用
4. Sensitive word filtering (prefix tree)
接口测试关键技术
The modification is not properly placed in the sandbox, causing Apple compatibility issues
Local area network computer hardware information collection tool
StringJoiner in detail
局域网电脑硬件信息收集工具
【C语言】预处理操作