Class BatteryStatistics
Definition
- Namespace:
- Tizen.Context.AppHistory
- Assembly:
- Tizen.Context.dll
- API Level:
- 4
This class provides APIs to query the battery consumption per application.
C#Copypublic class BatteryStatistics : AppStatistics
- Inheritance
Constructors
Declaration
C#Copypublic BatteryStatistics()
API Level: 4
Feature: http://tizen.org/feature/app_historyhttp://tizen.org/feature/battery
View Source
BatteryStatistics(BatteryStatistics.SortOrderType)
The constructor of BatteryStatistics class.
Declaration
C#Copypublic BatteryStatistics(BatteryStatistics.SortOrderType order)
Parameters
Type | Name | Description |
---|---|---|
BatteryStatistics.SortOrderType | order | The criteria of the battery statistics sorted by. |
API Level: 4
Feature: http://tizen.org/feature/app_historyhttp://tizen.org/feature/battery
Properties
Declaration
C#Copypublic BatteryStatistics.SortOrderType SortOrder { get; }
Property Value
Type | Description |
---|---|
BatteryStatistics.SortOrderType | The criteria of battery statistics sorted by. |
API Level: 4
Methods
Declaration
C#Copypublic static DateTime GetLastFullyChargedTime()
Returns
Type | Description |
---|---|
DateTime | The last time when the device was fully charged. |
API Level: 4
Feature: http://tizen.org/feature/app_historyhttp://tizen.org/feature/battery
Declaration
C#Copypublic IReadOnlyList<BatteryStatisticsData> Query(DateTime startTime, DateTime endTime)
Parameters
Type | Name | Description |
---|---|---|
DateTime | startTime | The start time of the data to be aggregated. |
DateTime | endTime | The end time of the data to be aggregated. |
Returns
Type | Description |
---|---|
IReadOnlyList<BatteryStatisticsData> | Battery statistics data retrieved. |
API Level: 4
Declaration
C#Copypublic IReadOnlyList<BatteryStatisticsData> Query(DateTime startTime, DateTime endTime, uint resultSize)
Parameters
Type | Name | Description |
---|---|---|
DateTime | startTime | The start time of the data to be aggregated. |
DateTime | endTime | The end time of the data to be aggregated. |
UInt32 | resultSize | The number of data records to be retrieved. |
Returns
Type | Description |
---|---|
IReadOnlyList<BatteryStatisticsData> | Battery statistics data retrieved. |