Class UsageStatistics
Definition
- Namespace:
- Tizen.Context.App
History
- Assembly:
- Tizen.Context.dll
This class provides APIs to query the application launch history.
public class UsageStatistics : AppStatistics
- Inheritance
Constructors
View SourceUsageStatistics()
The default constructor of UsageStatistics class.
Declaration
public UsageStatistics()
Exceptions
Type | Condition |
---|---|
System. |
Thrown when the method failed due to an internal error. |
System. |
Thrown when the feature is not supported. |
UsageStatistics(SortOrderType)
The constructor of UsageStatistics class.
Declaration
public UsageStatistics(UsageStatistics.SortOrderType order)
Parameters
Type | Name | Description |
---|---|---|
Usage |
order | The criteria of the usage statistics sorted by. |
Exceptions
Type | Condition |
---|---|
System. |
Thrown when an invalid argument is used. |
System. |
Thrown when the method failed due to an internal error. |
System. |
Thrown when the feature is not supported. |
Properties
View SourceSortOrder
Gets the criteria of usage statistics sorted by.
Declaration
public UsageStatistics.SortOrderType SortOrder { get; }
Property Value
Type | Description |
---|---|
Usage |
The criteria of usage statistics sorted by. |
Methods
View SourceQuery(DateTime, DateTime, uint)
Retrieves a given type of usage statistics.
Declaration
public IReadOnlyList<UsageStatisticsData> Query(DateTime startTime, DateTime endTime, uint resultSize)
Parameters
Type | Name | Description |
---|---|---|
System. |
startTime | The start time of the data to be aggregated. |
System. |
endTime | The end time of the data to be aggregated. |
uint | resultSize | The number of data records to be retrieved. |
Returns
Type | Description |
---|---|
System. |
Usage statistics data retrieved. |
Exceptions
Type | Condition |
---|---|
System. |
Thrown when an invalid argument is used. |
System. |
Thrown when an invalid operation occurs. |
System. |
Thrown when the feature is not supported. |
System. |
Thrown when the application has no privilege to retrieve the application history. |
Query(DateTime, DateTime)
Retrieves a given type of usage statistics.
Declaration
public IReadOnlyList<UsageStatisticsData> Query(DateTime startTime, DateTime endTime)
Parameters
Type | Name | Description |
---|---|---|
System. |
startTime | The start time of the data to be aggregated. |
System. |
endTime | The end time of the data to be aggregated. |
Returns
Type | Description |
---|---|
System. |
Usage statistics data retrieved. |
Exceptions
Type | Condition |
---|---|
System. |
Thrown when an invalid argument is used. |
System. |
Thrown when an invalid operation occurs. |
System. |
Thrown when the feature is not supported. |
System. |
Thrown when the application has no privilege to retrieve the application history. |