namespace Tizen.Context.AppHistory
{
/// <summary>
- /// Base class for application statistics.
+ /// The Base class for application statistics.
/// </summary>
/// <since_tizen> 4 </since_tizen>
public abstract class AppStatistics
namespace Tizen.Context.AppHistory
{
/// <summary>
- /// Base class which contains application statistics query result.
+ /// The Base class which contains the application statistics query result.
/// </summary>
/// <since_tizen> 4 </since_tizen>
public abstract class AppStatisticsData
}
/// <summary>
- /// Gets the application id.
+ /// Gets the application ID.
/// </summary>
/// <since_tizen> 4 </since_tizen>
- /// <value>The application id.</value>
+ /// <value>The application ID.</value>
public string AppId { get; protected set; }
}
}
namespace Tizen.Context.AppHistory
{
/// <summary>
- /// This class provides APIs to query battery consumption per application.
+ /// This class provides APIs to query the battery consumption per application.
/// </summary>
/// <since_tizen> 4 </since_tizen>
public class BatteryStatistics : AppStatistics
private const string AppStatsConsumption = "TotalAmount";
/// <summary>
- /// The default constructor of BatteryStatistics class.
+ /// The default constructor of BatteryStatistics class.
/// </summary>
/// <since_tizen> 4 </since_tizen>
/// <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="InvalidOperationException">Thrown when the method failed due to an internal error.</exception>
/// <exception cref="NotSupportedException">Thrown when the features are not supported.</exception>
public BatteryStatistics()
{
/// <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="InvalidOperationException">Thrown when the method failed due to an internal error.</exception>
/// <exception cref="NotSupportedException">Thrown when the features are not supported.</exception>
public BatteryStatistics(SortOrderType order)
{
/// <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>
+ /// <exception cref="UnauthorizedAccessException">Thrown when the application has no privilege to retrieve the application history.</exception>
public IReadOnlyList<BatteryStatisticsData> Query(DateTime startTime, DateTime endTime)
{
CheckTimeSpan(startTime, endTime);
/// <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="InvalidOperationException">Thrown when an 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>
+ /// <exception cref="UnauthorizedAccessException">Thrown when the application has no privilege to retrieve the application history.</exception>
public IReadOnlyList<BatteryStatisticsData> Query(DateTime startTime, DateTime endTime, uint resultSize)
{
CheckTimeSpan(startTime, endTime);
public SortOrderType SortOrder { get; private set; }
/// <summary>
- /// Sort order type of battery statistics.
+ /// Sorts the order type of battery statistics.
/// </summary>
/// <since_tizen> 4 </since_tizen>
public enum SortOrderType
{
/// <summary>
- /// Sorts apps by consumption, the most battery consuming apps appear first. (Default)
+ /// Sorts the apps by consumption, the most battery consuming apps appear first (default).
/// </summary>
ConsumptionMost = 0
}
namespace Tizen.Context.AppHistory
{
/// <summary>
- /// The class contains battery statistics information retrieved by BatteryStatistics.
+ /// This class contains the battery statistics information retrieved by BatteryStatistics.
/// </summary>
/// <since_tizen> 4 </since_tizen>
public class BatteryStatisticsData : AppStatisticsData
}
/// <summary>
- /// Gets how many percentage of battery capacity was used by the application.
+ /// Gets how much percentage of battery capacity was used by the application.
/// </summary>
/// <value>Battery consumption used by the application.</value>
/// <since_tizen> 4 </since_tizen>
namespace Tizen.Context.AppHistory
{
/// <summary>
- /// This class provides APIs to query application launch history.
+ /// This class provides APIs to query the application launch history.
/// </summary>
/// <since_tizen> 4 </since_tizen>
public class UsageStatistics : AppStatistics
/// </summary>
/// <since_tizen> 4 </since_tizen>
/// <feature>http://tizen.org/feature/app_history</feature>
- /// <exception cref="InvalidOperationException">Thrown when method fail due to internal error.</exception>
+ /// <exception cref="InvalidOperationException">Thrown when the method failed due to an internal error.</exception>
/// <exception cref="NotSupportedException">Thrown when the feature is not supported.</exception>
public UsageStatistics()
{
/// <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="InvalidOperationException">Thrown when the method failed due to an internal error.</exception>
/// <exception cref="NotSupportedException">Thrown when the feature is not supported.</exception>
public UsageStatistics(SortOrderType order)
{
/// <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="InvalidOperationException">Thrown when an 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>
+ /// <exception cref="UnauthorizedAccessException">Thrown when the application has no privilege to retrieve the application history.</exception>
public IReadOnlyList<UsageStatisticsData> Query(DateTime startTime, DateTime endTime)
{
CheckTimeSpan(startTime, endTime);
/// <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="InvalidOperationException">Thrown when an 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>
+ /// <exception cref="UnauthorizedAccessException">Thrown when the application has no privilege to retrieve the application history.</exception>
public IReadOnlyList<UsageStatisticsData> Query(DateTime startTime, DateTime endTime, uint resultSize)
{
CheckTimeSpan(startTime, endTime);
public SortOrderType SortOrder { get; private set; }
/// <summary>
- /// Sort order type of usage statistics
+ /// Sorts the order type of usage statistics.
/// </summary>
/// <since_tizen> 4 </since_tizen>
public enum SortOrderType
{
/// <summary>
- /// Sorts apps by the last launch time, the most recently launched apps appear first. (Default)
+ /// Sorts the apps by the last launch time, the most recently launched apps appear first (default).
/// </summary>
LastLaunchTimeNewest = 0,
/// <summary>
- /// Sorts apps by the launch count of being launched, the most frequently launched apps appear first.
+ /// Sorts the apps by the launch count of being launched, the most frequently launched apps appear first.
/// </summary>
LaunchCountMost
}
namespace Tizen.Context.AppHistory
{
/// <summary>
- /// The class contains application usage statistics information retrieved by UsageStatistics.
+ /// This class contains the application usage statistics information retrieved by UsageStatistics.
/// </summary>
/// <since_tizen> 4 </since_tizen>
public class UsageStatisticsData : AppStatisticsData
}
/// <summary>
- /// Gets the time which the application is being displayed in the foreground in seconds.
+ /// Gets the time when the application is being displayed in the foreground in seconds.
/// </summary>
/// <since_tizen> 4 </since_tizen>
- /// <value>Duration which the application is used in the foreground in seconds.</value>
+ /// <value>Duration when the application is used in the foreground in seconds.</value>
public int Duration { get; private set; }
/// <summary>
- /// Gets how many times the application is used in the foreground.
+ /// Gets how many times the application is used in the foreground.
/// </summary>
/// <since_tizen> 4 </since_tizen>
/// <value>How many times the application is used in the foreground.</value>