LauncherApps.AllPackageInstallerSessions 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.
Return list of all known install sessions in this user and managed profiles, regardless of the installer.
public virtual System.Collections.Generic.IList<Android.Content.PM.PackageInstaller.SessionInfo> AllPackageInstallerSessions { [Android.Runtime.Register("getAllPackageInstallerSessions", "()Ljava/util/List;", "GetGetAllPackageInstallerSessionsHandler", ApiSince=29)] get; }
[<get: Android.Runtime.Register("getAllPackageInstallerSessions", "()Ljava/util/List;", "GetGetAllPackageInstallerSessionsHandler", ApiSince=29)>]
member this.AllPackageInstallerSessions : System.Collections.Generic.IList<Android.Content.PM.PackageInstaller.SessionInfo>
Property Value
- Attributes
Remarks
Return list of all known install sessions in this user and managed profiles, regardless of the installer. Callers need to either declare <queries> element with the specific package name in the app's manifest, have the android.permission.QUERY_ALL_PACKAGES, or be the session owner to retrieve these details.
To receive callbacks for hidden profile UserManager.USER_TYPE_PROFILE_PRIVATE
, caller should have either:
<ul> <li>the privileged android.Manifest.permission.ACCESS_HIDDEN_PROFILES
permission</li> <li>the normal android.Manifest.permission.ACCESS_HIDDEN_PROFILES
permission and the android.app.role.RoleManager.ROLE_HOME
role. </li> </ul>
Java documentation for android.content.pm.LauncherApps.getAllPackageInstallerSessions()
.
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.