()
| 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) |
no test coverage detected