Class UsageStatistics
Definition
- Namespace:
- Tizen.Context.AppHistory
- Assembly:
- Tizen.Context.dll
- API Level:
- 4
This class provides APIs to query the application launch history.
C#Copypublic class UsageStatistics : AppStatistics
- Inheritance
Constructors
Declaration
C#Copypublic UsageStatistics()
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Thrown when the method failed due to an internal error. |
System.NotSupportedException | Thrown when the feature is not supported. |
API Level: 4
Feature: http://tizen.org/feature/app_history
UsageStatistics(UsageStatistics.SortOrderType)
The constructor of UsageStatistics class.
Declaration
C#Copypublic UsageStatistics(UsageStatistics.SortOrderType order)
Parameters
Type | Name | Description |
---|---|---|
UsageStatistics.SortOrderType | order | The criteria of the usage statistics sorted by. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when an invalid argument is used. |
InvalidOperationException | Thrown when the method failed due to an internal error. |
System.NotSupportedException | Thrown when the feature is not supported. |
API Level: 4
Feature: http://tizen.org/feature/app_history
Properties
Declaration
C#Copypublic UsageStatistics.SortOrderType SortOrder { get; }
Property Value
Type | Description |
---|---|
UsageStatistics.SortOrderType | The criteria of usage statistics sorted by. |
API Level: 4
Methods
Declaration
C#Copypublic IReadOnlyList<UsageStatisticsData> Query(DateTime startTime, DateTime endTime)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | startTime | The start time of the data to be aggregated. |
System.DateTime | endTime | The end time of the data to be aggregated. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<UsageStatisticsData> | Usage statistics data retrieved. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when an invalid argument is used. |
InvalidOperationException | Thrown when an invalid operation occurs. |
System.NotSupportedException | Thrown when the feature is not supported. |
UnauthorizedAccessException | Thrown when the application has no privilege to retrieve the application history. |
API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/apphistory.read
Feature: http://tizen.org/feature/app_history
Declaration
C#Copypublic IReadOnlyList<UsageStatisticsData> Query(DateTime startTime, DateTime endTime, uint resultSize)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | startTime | The start time of the data to be aggregated. |
System.DateTime | endTime | The end time of the data to be aggregated. |
System.UInt32 | resultSize | The number of data records to be retrieved. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<UsageStatisticsData> | Usage statistics data retrieved. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when an invalid argument is used. |
InvalidOperationException | Thrown when an invalid operation occurs. |
System.NotSupportedException | Thrown when the feature is not supported. |
UnauthorizedAccessException | Thrown when the application has no privilege to retrieve the application history. |