masonamerica.platform.PowerManagerPrivileged |
A privileged extension of the existing PowerManager
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Reboot the device
| |||||||||||
Shutdown the device
|
Reboot the device
Parameters | |
---|---|
confirm |
boolean :
If true, shows a reboot confirmation dialog. |
reason |
String :
code to pass to the kernel (e.g., "recovery") to request special boot modes, or null. |
wait |
boolean :
If true, this call waits for the reboot to complete and does not return.
|
Shutdown the device
Parameters | |
---|---|
confirm |
boolean :
If true, shows a shutdown confirmation dialog. |
reason |
String
|
wait |
boolean :
If true, this call waits for the shutdown to complete and does not return.
|