We don't have a sample project demonstrating how to use the PowerManagement plugin you mentioned. However, in order to integrate it in an AppBuilder
project, you can download it as a zip from its repository and then follow the steps outlined in the Import Custom Plugins
Once imported, the plugin allows you to invoke the following methods:
- powerManagement.acquire(onSuccess, onError,runLockScreen); - acquire a new wake-lock to keep device awake
- powerManagement.release(onSuccess, onError); - release the wake-lock
- powerManagement.dim(onSuccess, onError); - acquire a partial wake-lock, allowing the device to dim the screen
If you need any further information on how these methods work on each device, you can follow the links provided by the plugin author in its repository:
If you encounter any issues with the plugin, I would also recommend that you share them with the plugin authors as they might be able to better assist you in resolving them.
Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!