# getNetType

获取当前设备网络类型

# 请求参数

# 接口请求示例

nativeService.getNetType()

# 返回参数

Prop Type Default Description
net_type String 网络类型: WIFI / LAN

# 接口返回示例

let networkType = 'WIFI';
try {
  const res = await nativeService.getNetType();
  networkType = res.net_type;
} catch (error) {
  this.$bridge.log('networkType get error');
}