PackageInstaller.InstallConstraints.Builder.SetAppNotForegroundRequired 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
此约束要求有问题的应用不在前台。
[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 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。