Class Privilege

Definition

Namespace:
Tizen.Security
Assembly:
Tizen.Security.dll
API Level:
3

This class provides the information of the given privilege and the API version.

C#
Copy
public static class Privilege : object
Inheritance
Privilege

Methods

View Source

GetDescription(String, String)

Gets the description of the given privilege.

Declaration
C#
Copy
public static string GetDescription(string apiVersion, string privilege)
Parameters
Type Name Description
String apiVersion

The API version.

String privilege

The privilege.

Returns
Type Description
String

The description of given privilege at the given API version

Remarks

If there's no matching privilege, then it returns description string for undefined privilege. Since Tizen 6.0, if there's no matching privilege then it returns ArgumentException.

API Level: 3
View Source

GetDescription(String, String, PackageType)

Gets the description of the given privilege.

Declaration
C#
Copy
public static string GetDescription(string apiVersion, string privilege, PackageType packageType)
Parameters
Type Name Description
String apiVersion

The API version.

String privilege

The privilege.

PackageType packageType

The type of application package.

Returns
Type Description
String

The description of given privilege at the given API version and the package type.

Remarks

If there's no matching privilege, then it returns description string for undefined privilege. Since Tizen 6.0, if there's no matching privilege then it returns ArgumentException.

API Level: 3
View Source

GetDisplayName(String, String)

Gets the display name of the given privilege.

Declaration
C#
Copy
public static string GetDisplayName(string apiVersion, string privilege)
Parameters
Type Name Description
String apiVersion

The API version.

String privilege

The privilege.

Returns
Type Description
String

The display name of the given privilege at the given API version.

Remarks

If there's no matching privilege, then it returns last token of the given privilege. Since Tizen 6.0, if there's no matching privilege then it returns ArgumentException.

API Level: 3
View Source

GetDisplayName(String, String, PackageType)

Gets the display name of the given privilege.

Declaration
C#
Copy
public static string GetDisplayName(string apiVersion, string privilege, PackageType packageType)
Parameters
Type Name Description
String apiVersion

The API version.

String privilege

The privilege.

PackageType packageType

The type of application package.

Returns
Type Description
String

The display name of the given privilege at the given API version and the package type.

Remarks

If there's no matching privilege, then it returns last token of the given privilege. Since Tizen 6.0, if there's no matching privilege then it returns ArgumentException.

API Level: 3
View Source

GetPrivacyDisplayName(String)

Gets the display name of the privacy group in which the given privilege is included.

Declaration
C#
Copy
public static string GetPrivacyDisplayName(string privilege)
Parameters
Type Name Description
String privilege

The privilege.

Returns
Type Description
String

The privacy group's display name that the given privilege is included in.

Remarks

The privilege must be privacy related.

API Level: 3
Feature: http://tizen.org/feature/security.privacy_privilege