XPlat Windows APIs
  • XPlat Windows APIs
  • Getting started
  • XPlat.ApplicationModel
    • IPackage
    • IPackage2
    • IPackage3
    • IPackageId
    • Package
    • PackageId
    • PackageVersion
  • XPlat.ApplicationModel.DataTransfer
    • Clipboard
    • DataPackage
    • DataPackageView
    • IDataPackage
    • IDataPackageView
  • XPlat.Core
    • AppPermissionInvalidException
    • CollectionExtensions
    • NSDateExtensions
    • NSObjectExtensions
    • PackageManifestHelper
    • RequestCodeHelper
    • TaskSchedulerAwaiter
    • TimeoutTask
  • XPlat.Device.Display
    • DisplayRequest
    • IDisplayRequest
  • XPlat.Device.Geolocation
    • BasicGeoposition
    • Geocoordinate
    • GeolocationAccessStatus
    • Geolocator
    • Geoposition
    • IGeocoordinate
    • IGeolocator
    • IGeopoint
    • IGeoposition
    • IStatusChangedEventArgs
    • PositionAccuracy
    • PositionChangedEventArgs
    • PositionStatus
    • PositionStatusExtensions
    • StatusChangedEventArgs
  • XPlat.Device.Launcher
    • ILauncher
    • Launcher
    • LaunchQuerySupportStatus
  • XPlat.Device.Power
    • BatteryStatus
    • BatteryStatusChangedEventArgs
    • BatteryStatusChangedEventHandler
    • IPowerManager
    • PowerManager
  • XPlat.Device.Profile
    • AnalyticsInfo
    • AnalyticsVersionInfo
    • IAnalyticsVersionInfo
  • XPlat.Foundation
    • CollectionChange
    • IMapChangedEventArgs
    • IObservableMap
    • IPropertySet
    • MapChangedEventHandler
    • ApplicationData
    • StringMapChangedEventArgs
    • TypedEventHandler
  • XPlat.Media.Capture
    • BitmapExtensions
    • CameraCaptureUI
    • CameraCaptureUIMode
    • CameraCaptureUIPhotoCaptureSettings
    • CameraCaptureUIVideoCaptureSettings
    • ICameraCaptureUI
    • StorageFileExtensions
  • XPlat.Services.Maps
    • IMapAddress
    • IMapLocation
    • IMapLocationFinderResult
    • MapAddress
    • MapLocation
    • MapLocationDesiredAccuracy
    • MapLocationFinder
    • MapLocationFinderResult
    • MapLocationFinderStatus
  • XPlat.Storage
    • ApplicationDataContainer
    • ApplicationDataContainerSettings
    • ApplicationDataCreateDisposition
    • ApplicationDataLocality
    • BasicProperties
    • CreationCollisionOption
    • FileAccessMode
    • FileAttributes
    • IApplicationData
    • IApplicationDataContainer
    • IBasicProperties
    • IImageProperties
    • ImageProperties
    • IMusicProperties
    • IStorageFile
    • IStorageFileExtras
    • IStorageFolder
    • IStorageFolder2
    • IStorageFolderExtras
    • IStorageFolderQueryOperations
    • IStorageItem
    • IStorageItem2
    • IStorageItemContentProperties
    • IStorageItemProperties
    • IVideoProperties
    • KnownFolders
    • MusicProperties
    • NameCollisionOption
    • PhotoOrientation
    • StorageFile
    • StorageFileExtensions
    • StorageFolder
    • StorageItemContentProperties
    • StorageItemContentPropertiesExtensions
    • StorageItemCreationException
    • StorageItemException
    • StorageItemNotFoundException
    • StorageItemTypes
    • VideoOrientation
    • VideoProperties
  • XPlat.Storage.Pickers
    • FileOpenPicker
    • IFileOpenPicker
  • XPlat.UI
    • DispatcherTimer
    • IDispatcherTimer
  • XPlat.UI.Core
    • CoreDispatcher
    • CoreDispatcherPriority
    • DispatchedHandler
    • ICoreDispatcher
Powered by GitBook
On this page
  • Supported platforms
  • Remarks
  • Constructors
  • Package(Foundation.NSBundle) - iOS
  • Package(Windows.ApplicationModel.Package) - Windows
  • Static Properties
  • Current
  • Properties
  • Id
  • InstalledLocation
  • Dependencies
  • DisplayName
  • Logo
  • IsDevelopmentMode
  • InstalledDate
  • Originator - Android
  • Originator - iOS
  • Originator - Windows
  • Related information
  • References
  1. XPlat.ApplicationModel

Package

PreviousIPackageIdNextPackageId

Last updated 5 years ago

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 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

Package - Microsoft Docs
Package.Current