JobInfo.IsImportantWhileForeground Property
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.
Gets whether the important-while-foreground flag is set for this job.
public virtual bool IsImportantWhileForeground { [Android.Runtime.Register("isImportantWhileForeground", "()Z", "GetIsImportantWhileForegroundHandler", ApiSince=28)] get; }
[<get: Android.Runtime.Register("isImportantWhileForeground", "()Z", "GetIsImportantWhileForegroundHandler", ApiSince=28)>]
member this.IsImportantWhileForeground : bool
Property Value
Whether the important-while-foreground flag is set. On Android 16 and later, this is always false because the flag is ignored.
- Attributes
Remarks
On Android 16 and later, the flag is ignored and this property always returns false, regardless of the app's target SDK version.
This member is deprecated. Use IsExpedited instead.
Java documentation for android.app.job.JobInfo.isImportantWhileForeground().
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.