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

Method setBrightnessForce

SystemSetting.js:37–45  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

35 }
36
37 static async setBrightnessForce(val) {
38 if (Utils.isAndroid) {
39 const success = await SystemSetting.setScreenMode(SCREEN_BRIGHTNESS_MODE_MANUAL)
40 if (!success) {
41 return false
42 }
43 }
44 return await SystemSetting.setBrightness(val)
45 }
46
47 static setAppBrightness(val) {
48 if (Utils.isAndroid) {

Callers 1

App.jsFile · 0.80

Calls 2

setScreenModeMethod · 0.45
setBrightnessMethod · 0.45

Tested by

no test coverage detected