当前位置:网站首页>【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.
边栏推荐
- 【CV项目调试】CUDNN_CONVOLUTION_FWD_SPECIFY_WORKSPACE_LIMIT问题
- C# remote debugging
- 开题报告之论文框架
- JS 函数 this上下文 运行时点语法 圆括号 数组 IIFE 定时器 延时器 self.备份上下文 call apply
- Graphical lower_bound & upper_bound
- Software accumulation -- Screenshot software ScreenToGif
- 【C语言】表达式求值的一般方法
- 关于 mysql8.0数据库中主键位id,使用replace插入id为0时,实际id插入后自增导致数据重复插入 的解决方法
- WebSocket Session为null
- MultipartFile file upload
猜你喜欢

MP使用时的几个常见报错

Pythagorean tuple od js

一份高质量的测试用例如何养成?

Compile Hudi

知识蒸馏7:知识蒸馏代码详解

Intel's software and hardware optimization empowers Neusoft to accelerate the arrival of the era of smart medical care

QML的使用

CorelDRAW2022 streamlined Asia Pacific new features in detail

JS 函数 this上下文 运行时点语法 圆括号 数组 IIFE 定时器 延时器 self.备份上下文 call apply

Addition and Subtraction of Scores in LeetCode Medium Questions
随机推荐
7年经验,功能测试工程师该如何一步步提升自己的能力呢?
f.grid_sample
How to build a private yum source
CentOS7下mysql5.7.37的安装【完美方案】
Huawei od dice js
TCP详解(一)
局域网电脑硬件信息收集工具
【异常】The field file exceeds its maximum permitted size of 1048576 bytes.
C#远程调试
品牌广告投放平台的中台化应用与实践
SQL injection Less54 (limited number of SQL injection + union injection)
JetPack component Databinding
递归查询单表-单表树结构-(自用)
Basic learning about Redis related content
10、Redis实现点赞(Set)和获取总点赞数
共模电感的仿真应用来了,满满的干货送给大家
分布式系统架构需要解决的问题
什么是分布式锁?实现分布式锁的三种方式
[Android] Room - Alternative to SQLite
CorelDRAW2022精简亚太新增功能详细介绍