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

Method restoreBrightness

SystemSetting.js:104–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102 }
103
104 static restoreBrightness() {
105 if (SystemSetting.saveBrightnessVal == -1) {
106 console.warn('you should call saveBrightness() at least once')
107 } else {
108 SystemSetting.setBrightness(SystemSetting.saveBrightnessVal)
109 SystemSetting.setScreenMode(SystemSetting.saveScreenModeVal)
110 }
111 return SystemSetting.saveBrightnessVal
112 }
113
114 static async getVolume(type = 'music') {
115 return await SystemSettingNative.getVolume(type)

Callers 1

App.jsFile · 0.80

Calls 2

setBrightnessMethod · 0.45
setScreenModeMethod · 0.45

Tested by

no test coverage detected