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

Method setScreenMode

SystemSetting.js:88–97  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

86 }
87
88 static async setScreenMode(val) {
89 if (Utils.isAndroid) {
90 try {
91 await SystemSettingNative.setScreenMode(val)
92 } catch (e) {
93 return false
94 }
95 }
96 return true
97 }
98
99 static async saveBrightness() {
100 SystemSetting.saveBrightnessVal = await SystemSetting.getBrightness()

Callers 2

setBrightnessForceMethod · 0.45
restoreBrightnessMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected