PackageId

Namespace: XPlat.ApplicationModel

Provides package identification info, such as name, version, and publisher.

public class PackageId : IPackageId

Supported platforms

Platform

Version

Xamarin.Android

9.0

Xamarin.iOS

1.0

UWP

10.0.16299

Constructors

PackageId(Android.Content.PM.PackageInfo) - Android

Parameters

packageInfo (Android.Content.PM.PackageInfo)

The Android PackageInfo reference to retrieve relevant information from.

PackageId(Foundation.NSBundle) - iOS

Parameters

bundle (Foundation.NSBundle)

The iOS NSBundle reference to retrieve relevant information from.

PackageId(Windows.ApplicationModel.PackageId) - Windows

Parameters

packageId (Windows.ApplicationModel.PackageId)

The Windows Package reference to retrieve relevant information from.

Properties

Name

Gets the name of the package.

Version

Gets the package version info.

FullName

Gets the full name of the package.

Originator - Android

Gets the original Android PackageInfo reference object.

Originator - iOS

Gets the original iOS NSBundle reference object.

Originator - Windows

Gets the original Windows Package reference object.

References

PackageId - Microsoft Docs

Last updated