Class Package
Definition
- Namespace:
- Tizen.Applications
- Assembly:
- Tizen.Applications.PackageManager.dll
- API Level:
- 3
This class provides the methods and properties to get information about the packages.
public class Package
- Inheritance
-
Package
Properties
View SourceCertificates
Certificate information for the package.
Declaration
public IReadOnlyDictionary<CertificateType, PackageCertificate> Certificates { get; }
Property Value
Type | Description |
---|---|
IReadOnlyDictionary<CertificateType, PackageCertificate> |
API Level: 3
View SourceDependencyFrom
Packages that require this package
Declaration
public IEnumerable<PackageDependencyInformation> DependencyFrom { get; }
Property Value
Type | Description |
---|---|
IEnumerable<PackageDependencyInformation> |
API Level: 6
View SourceDependencyTo
Packages required by this package
Declaration
public IEnumerable<PackageDependencyInformation> DependencyTo { get; }
Property Value
Type | Description |
---|---|
IEnumerable<PackageDependencyInformation> |
API Level: 6
View SourceIconPath
Absolute path to the icon image.
Declaration
public string IconPath { get; }
Property Value
Type | Description |
---|---|
String |
API Level: 3
View SourceId
The package ID.
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
String |
API Level: 3
View SourceInstalledStorageType
Installed storage type for the package.
Declaration
public StorageType InstalledStorageType { get; }
Property Value
Type | Description |
---|---|
StorageType |
API Level: 3
View SourceInstalledTime
Installed time of the package.
Declaration
public int InstalledTime { get; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: 3
View SourceIsAccessible
Checks whether the current package is accessible.
Declaration
public bool IsAccessible { get; }
Property Value
Type | Description |
---|---|
Boolean |
API Level: 3
View SourceIsPreloaded
Checks whether the package is preloaded.
Declaration
public bool IsPreloaded { get; }
Property Value
Type | Description |
---|---|
Boolean |
API Level: 3
View SourceIsRemovable
Checks whether the package is removable.
Declaration
public bool IsRemovable { get; }
Property Value
Type | Description |
---|---|
Boolean |
API Level: 3
View SourceIsSystemPackage
Checks whether the package is a system package.
Declaration
public bool IsSystemPackage { get; }
Property Value
Type | Description |
---|---|
Boolean |
API Level: 3
View SourceLabel
Label of the package.
Declaration
public string Label { get; }
Property Value
Type | Description |
---|---|
String |
API Level: 3
View SourceMainApplication
Main application info of the package.
Declaration
public ApplicationInfo MainApplication { get; }
Property Value
Type | Description |
---|---|
ApplicationInfo |
API Level: 6
View SourcePackageType
Type of the package.
Declaration
public PackageType PackageType { get; }
Property Value
Type | Description |
---|---|
PackageType |
API Level: 3
View SourcePrivileges
Requested privilege for the package.
Declaration
public IEnumerable<string> Privileges { get; }
Property Value
Type | Description |
---|---|
IEnumerable<String> |
API Level: 3
View SourceRootPath
Root path for the package.
Declaration
public string RootPath { get; }
Property Value
Type | Description |
---|---|
String |
API Level: 3
View SourceTizenExpansionPackageName
Expansion package name for the package.
Declaration
public string TizenExpansionPackageName { get; }
Property Value
Type | Description |
---|---|
String |
API Level: 3
Privilege Level: platform
Privilege: http://tizen.org/privilege/packagemanager.admin
View SourceVersion
Version of the package.
Declaration
public string Version { get; }
Property Value
Type | Description |
---|---|
String |
API Level: 3
Methods
View SourceCompareCertInfo(String)
Compares the certificate information with the given package ID.
Declaration
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 |
---|---|
ArgumentException | Thrown when a failed input package ID is invalid. |
IOException | Thrown when the method failed due to an internal I/O error. |
API Level: 3
View SourceGetApplications()
Retrieves all the application IDs of this package.
Declaration
public IEnumerable<ApplicationInfo> GetApplications()
Returns
Type | Description |
---|---|
IEnumerable<ApplicationInfo> | Returns a dictionary containing all the application information for a given application type. |
API Level: 3
View SourceGetApplications(ApplicationComponentType)
Retrieves all the application IDs of this package.
Declaration
public IEnumerable<ApplicationInfo> GetApplications(ApplicationComponentType componentType)
Parameters
Type | Name | Description |
---|---|---|
ApplicationComponentType | componentType | Optional: AppType enumeration value. |
Returns
Type | Description |
---|---|
IEnumerable<ApplicationInfo> | Returns a dictionary containing all the application information for a given application type. |
API Level: 6
View SourceGetApplications(ApplicationType)
Retrieves all the application IDs of this package.
Declaration
public IEnumerable<ApplicationInfo> GetApplications(ApplicationType type)
Parameters
Type | Name | Description |
---|---|---|
ApplicationType | type | Optional: AppType enumeration value. |
Returns
Type | Description |
---|---|
IEnumerable<ApplicationInfo> | Returns a dictionary containing all the application information for a given application type. |
API Level: 3
View SourceGetSizeInformationAsync()
Gets the package size information.
Declaration
public Task<PackageSizeInformation> GetSizeInformationAsync()
Returns
Type | Description |
---|---|
Task<PackageSizeInformation> | Package size information. |