Class BatteryStatistics

    Definition

    Namespace:
    Tizen.Context.AppHistory
    Assembly:
    Tizen.Context.dll

    This class provides APIs to query the battery consumption per application.

    public class BatteryStatistics : AppStatistics
    Inheritance
    object
    AppStatistics
    BatteryStatistics

    Constructors

    View Source

    BatteryStatistics()

    The default constructor of BatteryStatistics class.

    Declaration
    public BatteryStatistics()
    View Source

    BatteryStatistics(SortOrderType)

    The constructor of BatteryStatistics class.

    Declaration
    public BatteryStatistics(BatteryStatistics.SortOrderType order)
    Parameters
    Type Name Description
    BatteryStatistics.SortOrderType order

    The criteria of the battery statistics sorted by.

    Properties

    View Source

    SortOrder

    Gets the criteria of battery statistics sorted by.

    Declaration
    public BatteryStatistics.SortOrderType SortOrder { get; }
    Property Value
    Type Description
    BatteryStatistics.SortOrderType

    The criteria of battery statistics sorted by.

    Methods

    View Source

    GetLastFullyChargedTime()

    Gets the last time when the device was fully charged.

    Declaration
    public static DateTime GetLastFullyChargedTime()
    Returns
    Type Description
    DateTime

    The last time when the device was fully charged.

    View Source

    Query(DateTime, DateTime, uint)

    Retrieves a given type of battery statistics.

    Declaration
    public 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.

    uint resultSize

    The number of data records to be retrieved.

    Returns
    Type Description
    IReadOnlyList<><BatteryStatisticsData>

    Battery statistics data retrieved.

    View Source

    Query(DateTime, DateTime)

    Retrieves a given type of battery statistics.

    Declaration
    public 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.

    Extension Methods

    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX