Importance Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enumerates values returned by several types.
public enum Importance
type Importance =
- Inheritance
-
Importance
Fields
| Name | Value | Description |
|---|---|---|
| Foreground | 100 | Constant for importance: This process is running the foreground UI; that is, it is the thing currently at the top of the screen that the user is interacting with. |
| ForegroundService | 125 | Constant for importance: This process is running a foreground service, for example to perform music playback even while the user is not immediately in the app. |
| PerceptiblePre26 | 130 | Constant for importance: IMPORTANCE_PERCEPTIBLE had this wrong value before Build.VERSION_CODES.O. |
| TopSleepingPre28 | 150 | This constant was deprecated in API level 28. |
| Visible | 200 | Constant for importance: This process is running something that is actively visible to the user, though not in the immediate foreground. |
| Perceptible | 230 | Constant for importance: This process is not something the user is directly aware of, but is otherwise perceptible to them to some degree. |
| Service | 300 | Constant for importance: This process contains services that should remain running. |
| TopSleeping | 325 | Constant for importance: This process is running the foreground UI, but the device is asleep so it is not visible to the user. |
| CantSaveState | 350 | Constant for importance: This process is running an application that can not save its state, and thus can't be killed while in the background. |
| Background | 400 | This constant was deprecated in API level 26. |
| Cached | 400 | Constant for importance: This process contains cached code that is expendable, not actively running any app components we care about. |
| Empty | 500 | This constant was deprecated in API level 26. |
| Gone | 1000 | Constant for importance: This process does not exist. |
Remarks
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.