# Object tap.getSystemSetting()

# 功能描述

获取设备设置

# 返回值

# Object

属性类型说明
bluetoothEnabledboolean蓝牙的系统开关
locationEnabledboolean地理位置的系统开关
wifiEnabledbooleanWi-Fi 的系统开关
deviceOrientationstring设备方向(注意:iOS客户端横屏游戏获取deviceOrientation可能不准,建议以屏幕宽高为准)
合法值说明
portrait竖屏
landscape横屏

# 示例代码

const systemSetting = tap.getSystemSetting()

console.log(systemSetting.bluetoothEnabled)
console.log(systemSetting.deviceOrientation)
console.log(systemSetting.locationEnabled)
console.log(systemSetting.wifiEnabled)