/// <summary>
/// The default constructor of BatteryStatistics class.
/// </summary>
+ /// <feature>http://tizen.org/feature/app_history</feature>
/// <feature>http://tizen.org/feature/battery</feature>
/// <exception cref="InvalidOperationException">Thrown when method fail due to internal error.</exception>
- /// <exception cref="NotSupportedException">Thrown when the statistics is not supported.</exception>
+ /// <exception cref="NotSupportedException">Thrown when the features are not supported.</exception>
public BatteryStatistics()
{
SortOrder = SortOrderType.ConsumptionMost;
/// The constructor of BatteryStatistics class.
/// </summary>
/// <param name="order">The criteria of the battery statistics sorted by.</param>
+ /// <feature>http://tizen.org/feature/app_history</feature>
/// <feature>http://tizen.org/feature/battery</feature>
/// <exception cref="ArgumentException">Thrown when an invalid argument is used.</exception>
/// <exception cref="InvalidOperationException">Thrown when method fail due to internal error.</exception>
- /// <exception cref="NotSupportedException">Thrown when the statistics is not supported.</exception>
+ /// <exception cref="NotSupportedException">Thrown when the features are not supported.</exception>
public BatteryStatistics(SortOrderType order)
{
SortOrder = order;
/// <param name="endTime">The end time of the data to be aggregated.</param>
/// <returns>Battery statistics data retrieved.</returns>
/// <privilege>http://tizen.org/privilege/apphistory.read</privilege>
+ /// <feature>http://tizen.org/feature/app_history</feature>
+ /// <feature>http://tizen.org/feature/battery</feature>
/// <exception cref="ArgumentException">Thrown when an invalid argument is used.</exception>
/// <exception cref="InvalidOperationException">Thrown when invalid operation occurs.</exception>
+ /// <exception cref="NotSupportedException">Thrown when the features are not supported.</exception>
/// <exception cref="UnauthorizedAccessException">Thrown when the app has no privilege to retrieve app history.</exception>
public IReadOnlyList<BatteryStatisticsData> Query(DateTime startTime, DateTime endTime)
{
/// <param name="resultSize">The number of data records to be retrieved.</param>
/// <returns>Battery statistics data retrieved.</returns>
/// <privilege>http://tizen.org/privilege/apphistory.read</privilege>
+ /// <feature>http://tizen.org/feature/app_history</feature>
+ /// <feature>http://tizen.org/feature/battery</feature>
/// <exception cref="ArgumentException">Thrown when an invalid argument is used.</exception>
/// <exception cref="InvalidOperationException">Thrown when invalid operation occurs.</exception>
+ /// <exception cref="NotSupportedException">Thrown when the features are not supported.</exception>
/// <exception cref="UnauthorizedAccessException">Thrown when the app has no privilege to retrieve app history.</exception>
public IReadOnlyList<BatteryStatisticsData> Query(DateTime startTime, DateTime endTime, uint resultSize)
{
/// Gets the last time when the device was fully charged.
/// </summary>
/// <returns>The last time when the device was fully charged.</returns>
+ /// <feature>http://tizen.org/feature/app_history</feature>
/// <feature>http://tizen.org/feature/battery</feature>
/// <exception cref="NotSupportedException">Thrown when the statistics is not supported.</exception>
public static DateTime GetLastFullyChargedTime()
/// <summary>
/// The default constructor of UsageStatistics class.
/// </summary>
+ /// <feature>http://tizen.org/feature/app_history</feature>
/// <exception cref="InvalidOperationException">Thrown when method fail due to internal error.</exception>
+ /// <exception cref="NotSupportedException">Thrown when the feature is not supported.</exception>
public UsageStatistics()
{
SortOrder = SortOrderType.LastLaunchTimeNewest;
/// The constructor of UsageStatistics class.
/// </summary>
/// <param name="order">The criteria of the usage statistics sorted by.</param>
+ /// <feature>http://tizen.org/feature/app_history</feature>
/// <exception cref="ArgumentException">Thrown when an invalid argument is used.</exception>
/// <exception cref="InvalidOperationException">Thrown when method fail due to internal error.</exception>
+ /// <exception cref="NotSupportedException">Thrown when the feature is not supported.</exception>
public UsageStatistics(SortOrderType order)
{
SortOrder = order;
/// <param name="endTime">The end time of the data to be aggregated.</param>
/// <returns>Usage statistics data retrieved.</returns>
/// <privilege>http://tizen.org/privilege/apphistory.read</privilege>
+ /// <feature>http://tizen.org/feature/app_history</feature>
/// <exception cref="ArgumentException">Thrown when an invalid argument is used.</exception>
/// <exception cref="InvalidOperationException">Thrown when invalid operation occurs.</exception>
+ /// <exception cref="NotSupportedException">Thrown when the feature is not supported.</exception>
/// <exception cref="UnauthorizedAccessException">Thrown when the app has no privilege to retrieve app history.</exception>
public IReadOnlyList<UsageStatisticsData> Query(DateTime startTime, DateTime endTime)
{
/// <param name="resultSize">The number of data records to be retrieved.</param>
/// <returns>Usage statistics data retrieved.</returns>
/// <privilege>http://tizen.org/privilege/apphistory.read</privilege>
+ /// <feature>http://tizen.org/feature/app_history</feature>
/// <exception cref="ArgumentException">Thrown when an invalid argument is used.</exception>
/// <exception cref="InvalidOperationException">Thrown when invalid operation occurs.</exception>
+ /// <exception cref="NotSupportedException">Thrown when the feature is not supported.</exception>
/// <exception cref="UnauthorizedAccessException">Thrown when the app has no privilege to retrieve app history.</exception>
public IReadOnlyList<UsageStatisticsData> Query(DateTime startTime, DateTime endTime, uint resultSize)
{