语言

PackageInstaller.AllSessions 属性

定义

返回所有已知安装会话的列表,而不考虑安装程序。

public virtual System.Collections.Generic.IList<Android.Content.PM.PackageInstaller.SessionInfo> AllSessions { [Android.Runtime.Register("getAllSessions", "()Ljava/util/List;", "GetGetAllSessionsHandler")] get; }
[<get: Android.Runtime.Register("getAllSessions", "()Ljava/util/List;", "GetGetAllSessionsHandler")>]
member this.AllSessions : System.Collections.Generic.IList<Android.Content.PM.PackageInstaller.SessionInfo>

属性值

针对安装程序的用户上下文向此调用方公开的安装会话记录。

特性

注解

返回所有已知安装会话的列表,而不考虑安装程序。 调用方需要声明 <具有应用清单中特定包名称的查询> 元素、具有android.permission.QUERY_ALL_PACKAGES或会话所有者才能检索这些详细信息。

Java文档android.content.pm.PackageInstaller.getAllSessions()。

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

适用于