Class Package

Definition

Namespace:
Tizen.Applications
Assembly:
Tizen.Applications.PackageManager.dll

This class provides the methods and properties to get information about the packages.

C#
Copy
public class Package
Inheritance
object
Package

Properties

View Source

Certificates

Certificate information for the package.

Declaration
C#
Copy
public IReadOnlyDictionary<CertificateType, PackageCertificate> Certificates { get; }
Property Value
Type Description
System.Collections.Generic.IReadOnlyDictionary<TKey, TValue><CertificateType, PackageCertificate>
View Source

IconPath

Absolute path to the icon image.

Declaration
C#
Copy
public string IconPath { get; }
Property Value
Type Description
string
View Source

Id

The package ID.

Declaration
C#
Copy
public string Id { get; }
Property Value
Type Description
string
View Source

InstalledStorageType

Installed storage type for the package.

Declaration
C#
Copy
public StorageType InstalledStorageType { get; }
Property Value
Type Description
StorageType
View Source

InstalledTime

Installed time of the package.

Declaration
C#
Copy
public int InstalledTime { get; }
Property Value
Type Description
int
View Source

IsAccessible

Checks whether the current package is accessible.

Declaration
C#
Copy
public bool IsAccessible { get; }
Property Value
Type Description
bool
View Source

IsPreloaded

Checks whether the package is preloaded.

Declaration
C#
Copy
public bool IsPreloaded { get; }
Property Value
Type Description
bool
View Source

IsRemovable

Checks whether the package is removable.

Declaration
C#
Copy
public bool IsRemovable { get; }
Property Value
Type Description
bool
View Source

IsSystemPackage

Checks whether the package is a system package.

Declaration
C#
Copy
public bool IsSystemPackage { get; }
Property Value
Type Description
bool
View Source

Label

Label of the package.

Declaration
C#
Copy
public string Label { get; }
Property Value
Type Description
string
View Source

PackageType

Type of the package.

Declaration
C#
Copy
public PackageType PackageType { get; }
Property Value
Type Description
PackageType
View Source

Privileges

Requested privilege for the package.

Declaration
C#
Copy
public IEnumerable<string> Privileges { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<T><string>
View Source

RootPath

Root path for the package.

Declaration
C#
Copy
public string RootPath { get; }
Property Value
Type Description
string
View Source

TizenExpansionPackageName

Expansion package name for the package.

Declaration
C#
Copy
public string TizenExpansionPackageName { get; }
Property Value
Type Description
string
View Source

Version

Version of the package.

Declaration
C#
Copy
public string Version { get; }
Property Value
Type Description
string

Methods

View Source

CompareCertInfo(string)

Compares the certificate information with the given package ID.

Declaration
C#
Copy
public CertCompareResultType CompareCertInfo(string packageId)
Parameters
Type Name Description
string packageId

ID of the package.

Returns
Type Description
CertCompareResultType

Certificate comparison result.

Exceptions
Type Condition
System.ArgumentException

Thrown when a failed input package ID is invalid.

System.IO.IOException

Thrown when the method failed due to an internal I/O error.

View Source

GetApplications()

Retrieves all the application IDs of this package.

Declaration
C#
Copy
public IEnumerable<ApplicationInfo> GetApplications()
Returns
Type Description
System.Collections.Generic.IEnumerable<T><ApplicationInfo>

Returns a dictionary containing all the application information for a given application type.

View Source

GetApplications(ApplicationType)

Retrieves all the application IDs of this package.

Declaration
C#
Copy
public IEnumerable<ApplicationInfo> GetApplications(ApplicationType type)
Parameters
Type Name Description
ApplicationType type

Optional: AppType enumeration value.

Returns
Type Description
System.Collections.Generic.IEnumerable<T><ApplicationInfo>

Returns a dictionary containing all the application information for a given application type.

View Source

GetSizeInformationAsync()

Gets the package size information.

Declaration
C#
Copy
public Task<PackageSizeInformation> GetSizeInformationAsync()
Returns
Type Description
System.Threading.Tasks.Task<TResult><PackageSizeInformation>

Package size information.