函数:ts.getNetType 获取网络类型(仅支持 iOS)

函数名称:获取网络类型

函数功能:用于判断设备网络类型

函数方法

ts.getNetType()

返回值 类型 说明
type string wwan(包括 2G、3G、4G)/WiFi/NO NETWORK

函数用例

local ts = require("ts")
nettype = ts.getNetType()  
dialog(nettype,5)
Copyright 北京帮你玩科技有限公司 2023 all right reserved,powered by Gitbook该文章修订时间: 2024-03-06 17:50:18

results matching ""

    No results matching ""