OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 library power_management; | 5 library power_management; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:power_management/src/native_extension_api.dart' | 9 import 'package:power_management/src/native_extension_api.dart' |
10 deferred as native_extension_api; | 10 deferred as native_extension_api; |
11 | 11 |
(...skipping 21 matching lines...) Expand all Loading... |
33 int disableSleep(String reason) => native_extension_api.disableSleep(reason); | 33 int disableSleep(String reason) => native_extension_api.disableSleep(reason); |
34 | 34 |
35 /// Enable sleep again. | 35 /// Enable sleep again. |
36 /// | 36 /// |
37 /// Pass the return value from [disableSleep] as the [disableId] | 37 /// Pass the return value from [disableSleep] as the [disableId] |
38 /// argument. | 38 /// argument. |
39 /// | 39 /// |
40 /// Before using this function the function `initPowerManagement` must | 40 /// Before using this function the function `initPowerManagement` must |
41 /// have been called. | 41 /// have been called. |
42 void enableSleep(disableId) => native_extension_api.enableSleep(disableId); | 42 void enableSleep(disableId) => native_extension_api.enableSleep(disableId); |
OLD | NEW |