MCPcopy Create free account
hub / github.com/c19354837/react-native-system-setting / getLocationMode

Method getLocationMode

SystemSetting.js:162–168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

160 }
161
162 static async getLocationMode() {
163 if (Utils.isAndroid) {
164 return await SystemSettingNative.getLocationMode()
165 } else {
166 return await SystemSetting.isLocationEnabled() ? 1 : 0
167 }
168 }
169
170 static switchLocation(complete) {
171 SystemSetting.listenEvent(complete)

Callers

nothing calls this directly

Calls 1

isLocationEnabledMethod · 0.45

Tested by

no test coverage detected