PowermanagerService service
#
Instanciating the serviceLoad the following scripts:
You can then get an instance of the service with code similar to:
Then the developer can use _powermanagerManager as PowermanagerService service instance.
This service implements the Powermanager interface.
#
FactoryResetReason enumeration#
ScreenState enumeration#
ScreenControlInfo dictionnary#
Powermanager Interface#
MemberscpuSleepAllowed is of type boolean
To get value, use code similar to:
To set value, use code similar to:
extScreenBrightness is of type integer
To get value, use code similar to:
To set value, use code similar to:
extScreenEnabled is of type boolean
To get value, use code similar to:
To set value, use code similar to:
factoryReset is of type FactoryResetReason
To get value, use code similar to:
To set value, use code similar to:
keyLightBrightness is of type integer
To get value, use code similar to:
To set value, use code similar to:
keyLightEnabled is of type boolean
To get value, use code similar to:
To set value, use code similar to:
screenBrightness is of type integer
To get value, use code similar to:
To set value, use code similar to:
screenEnabled is of type boolean
To get value, use code similar to:
To set value, use code similar to:
#
Methods  controlScreen powerOff reboot
// info: ScreenControlInfo
controlScreen(info)
Resolves with void
Rejects with void
powerOff()
Resolves with void
Rejects with void
reboot()
Resolves with void
Rejects with void