语言

ActivityManager.RunningAppProcessInfo.ImportanceForegroundService 字段

定义

注意

This constant will be removed in the future version. Use Android.App.Importance enum directly instead of this field.

#importance常量:此过程正在运行前台服务,例如,即使在用户不在应用中时也执行音乐播放。

[Android.Runtime.Register("IMPORTANCE_FOREGROUND_SERVICE", ApiSince=23)]
[System.Obsolete("This constant will be removed in the future version. Use Android.App.Importance enum directly instead of this field.", true)]
public const Android.App.Importance ImportanceForegroundService = 125;
[<Android.Runtime.Register("IMPORTANCE_FOREGROUND_SERVICE", ApiSince=23)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.App.Importance enum directly instead of this field.", true)>]
val mutable ImportanceForegroundService : Android.App.Importance

字段值

Value = 125

实现

特性

注解

重要性常量:此过程正在运行前台服务,例如,即使用户不在应用中立即执行音乐播放也是如此。 这通常表示该过程正在执行用户积极关心的事情。

Android 参考。android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND_SERVICE

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于