语言

PackageInstaller.InstallConstraints.Builder.SetAppNotForegroundRequired 方法

定义

此约束要求有问题的应用不在前台。

[Android.Runtime.Register("setAppNotForegroundRequired", "()Landroid/content/pm/PackageInstaller$InstallConstraints$Builder;", "", ApiSince=34)]
public Android.Content.PM.PackageInstaller.InstallConstraints.Builder SetAppNotForegroundRequired();
[<Android.Runtime.Register("setAppNotForegroundRequired", "()Landroid/content/pm/PackageInstaller$InstallConstraints$Builder;", "", ApiSince=34)>]
member this.SetAppNotForegroundRequired : unit -> Android.Content.PM.PackageInstaller.InstallConstraints.Builder

返回

此生成器启用了应用-not-foreground 要求。

特性

注解

此约束要求有问题的应用不在前台。

Android 参考。android.content.pm.PackageInstaller.InstallConstraints.Builder.setAppNotForegroundRequired

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于