public interface

PowerManagerPrivileged

masonamerica.platform.PowerManagerPrivileged

Class Overview

A privileged extension of the existing PowerManager.

Summary

Public Methods
abstract void reboot(boolean confirm, String reason, boolean wait)
Reboot the device
abstract void shutdown(boolean confirm, String reason, boolean wait)
Shutdown the device

Public Methods

public abstract void reboot (boolean confirm, String reason, boolean wait)

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.

public abstract void shutdown (boolean confirm, String reason, boolean wait)

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.