MCPcopy Index your code
hub / github.com/c19354837/react-native-system-setting / saveBrightness

Method saveBrightness

SystemSetting.js:99–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97 }
98
99 static async saveBrightness() {
100 SystemSetting.saveBrightnessVal = await SystemSetting.getBrightness()
101 SystemSetting.saveScreenModeVal = await SystemSetting.getScreenMode()
102 }
103
104 static restoreBrightness() {
105 if (SystemSetting.saveBrightnessVal == -1) {

Callers

nothing calls this directly

Calls 2

getBrightnessMethod · 0.45
getScreenModeMethod · 0.45

Tested by

no test coverage detected