Package
Namespace: XPlat.ApplicationModel
Provides information about a package.
public class Package : IPackage, IPackage2, IPackage3
Supported platforms
Platform
Version
Xamarin.Android
9.0
Xamarin.iOS
1.0
UWP
10.0.16299
Remarks
Use the Package.Current property to get the package for the current app.
Constructors
Package(Foundation.NSBundle) - iOS
Parameters
bundle (Foundation.NSBundle)
The iOS NSBundle reference to retrieve relevant information from.
Package(Windows.ApplicationModel.Package) - Windows
Parameters
package (Windows.ApplicationModel.Package)
The Windows Package reference to retrieve relevant information from.
Static Properties
Current
Gets the package for the current app.
public static Package Current { get; }
Properties
Id
Gets the package identity of the current package.
public IPackageId Id { get; }
InstalledLocation
Gets the location of the installed package.
public IStorageFolder InstalledLocation { get; }
Dependencies
Gets the packages on which the current package depends.
public IReadOnlyList<IPackage> Dependencies { get; }
DisplayName
Gets the display name of the package.
public string DisplayName { get; }
Logo
Gets the logo of the package.
public Uri Logo { get; }
IsDevelopmentMode
Indicates whether the package is installed in development mode.
public bool IsDevelopmentMode { get; }
InstalledDate
Gets the date on which the application package was installed or last updated.
public DateTimeOffset InstalledDate { get; }
Originator - Android
Gets the original Android PackageInfo reference object.
public Android.Content.PM.PackageInfo Originator { get; }
Originator - iOS
Gets the original iOS NSBundle reference object.
public Foundation.NSBundle Originator { get; }
Originator - Windows
Gets the original Windows Package reference object.
public Windows.ApplicationModel.Package Originator { get; }
Related information
References
Last updated