Share via


Intent.ActionShutdown Field

Definition

Broadcast Action: Device is shutting down.

[Android.Runtime.Register("ACTION_SHUTDOWN")]
public const string ActionShutdown;
[<Android.Runtime.Register("ACTION_SHUTDOWN")>]
val mutable ActionShutdown : string

Field Value

Implements

Attributes

Remarks

Broadcast Action: Device is shutting down. This is broadcast when the device is being shut down (completely turned off, not sleeping). Once the broadcast is complete, the final shutdown will proceed and all unsaved data lost. Apps will not normally need to handle this, since the foreground activity will be paused as well.

As of Build.VERSION_CODES#P this broadcast is only sent to receivers registered through Context#registerReceiver(BroadcastReceiver, IntentFilter) Context.registerReceiver.

<p class="note">This is a protected intent that can only be sent by the system.

May include the following extras: <ul> <li> #EXTRA_SHUTDOWN_USERSPACE_ONLY a boolean that is set to true if this shutdown is only for userspace processes. If not set, assumed to be false. </ul>

Java documentation for android.content.Intent.ACTION_SHUTDOWN.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to