4 <name>Tizen.Context</name>
7 <member name="T:Tizen.Context.AppHistory.AppStatistics">
9 Base class for application statistics.
12 <member name="T:Tizen.Context.AppHistory.AppStatisticsData">
14 Base class which contains application statistics query result.
17 <member name="P:Tizen.Context.AppHistory.AppStatisticsData.AppId">
19 Gets the application id.
21 <value>The application id.</value>
23 <member name="T:Tizen.Context.AppHistory.BatteryStatistics">
25 This class provides APIs to query battery consumption per application.
28 <member name="M:Tizen.Context.AppHistory.BatteryStatistics.#ctor">
30 The default constructor of BatteryStatistics class.
32 <feature>http://tizen.org/feature/battery</feature>
33 <exception cref="T:System.InvalidOperationException">Thrown when method fail due to internal error.</exception>
34 <exception cref="T:System.NotSupportedException">Thrown when the statistics is not supported.</exception>
36 <member name="M:Tizen.Context.AppHistory.BatteryStatistics.#ctor(Tizen.Context.AppHistory.BatteryStatistics.SortOrderType)">
38 The constructor of BatteryStatistics class.
40 <param name="order">The criteria of the battery statistics sorted by.</param>
41 <feature>http://tizen.org/feature/battery</feature>
42 <exception cref="T:System.ArgumentException">Thrown when an invalid argument is used.</exception>
43 <exception cref="T:System.InvalidOperationException">Thrown when method fail due to internal error.</exception>
44 <exception cref="T:System.NotSupportedException">Thrown when the statistics is not supported.</exception>
46 <member name="M:Tizen.Context.AppHistory.BatteryStatistics.Query(System.DateTime,System.DateTime)">
48 Retrieves a given type of battery statistics.
50 <param name="startTime">The start time of the data to be aggregated.</param>
51 <param name="endTime">The end time of the data to be aggregated.</param>
52 <returns>Battery statistics data retrieved.</returns>
53 <privilege>http://tizen.org/privilege/apphistory.read</privilege>
54 <exception cref="T:System.ArgumentException">Thrown when an invalid argument is used.</exception>
55 <exception cref="T:System.InvalidOperationException">Thrown when invalid operation occurs.</exception>
56 <exception cref="T:System.UnauthorizedAccessException">Thrown when the app has no privilege to retrieve app history.</exception>
58 <member name="M:Tizen.Context.AppHistory.BatteryStatistics.Query(System.DateTime,System.DateTime,System.UInt32)">
60 Retrieves a given type of battery statistics.
62 <param name="startTime">The start time of the data to be aggregated.</param>
63 <param name="endTime">The end time of the data to be aggregated.</param>
64 <param name="resultSize">The number of data records to be retrieved.</param>
65 <returns>Battery statistics data retrieved.</returns>
66 <privilege>http://tizen.org/privilege/apphistory.read</privilege>
67 <exception cref="T:System.ArgumentException">Thrown when an invalid argument is used.</exception>
68 <exception cref="T:System.InvalidOperationException">Thrown when invalid operation occurs.</exception>
69 <exception cref="T:System.UnauthorizedAccessException">Thrown when the app has no privilege to retrieve app history.</exception>
71 <member name="M:Tizen.Context.AppHistory.BatteryStatistics.GetLastFullyChargedTime">
73 Gets the last time when the device was fully charged.
75 <returns>The last time when the device was fully charged.</returns>
76 <feature>http://tizen.org/feature/battery</feature>
77 <exception cref="T:System.NotSupportedException">Thrown when the statistics is not supported.</exception>
79 <member name="P:Tizen.Context.AppHistory.BatteryStatistics.SortOrder">
81 Gets the criteria of battery statistics sorted by.
83 <value>The criteria of battery statistics sorted by.</value>
85 <member name="T:Tizen.Context.AppHistory.BatteryStatistics.SortOrderType">
87 Sort order type of battery statistics.
90 <member name="F:Tizen.Context.AppHistory.BatteryStatistics.SortOrderType.ConsumptionMost">
92 Sorts apps by consumption, the most battery consuming apps appear first. (Default)
95 <member name="T:Tizen.Context.AppHistory.BatteryStatisticsData">
97 The class contains battery statistics information retrieved by BatteryStatistics.
100 <member name="P:Tizen.Context.AppHistory.BatteryStatisticsData.Consumption">
102 Gets how many percentage of battery capacity was used by the application.
104 <value>Battery consumption used by the application.</value>
106 <member name="T:Tizen.Context.AppHistory.UsageStatistics">
108 This class provides APIs to query application launch history.
111 <member name="M:Tizen.Context.AppHistory.UsageStatistics.#ctor">
113 The default constructor of UsageStatistics class.
115 <exception cref="T:System.InvalidOperationException">Thrown when method fail due to internal error.</exception>
117 <member name="M:Tizen.Context.AppHistory.UsageStatistics.#ctor(Tizen.Context.AppHistory.UsageStatistics.SortOrderType)">
119 The constructor of UsageStatistics class.
121 <param name="order">The criteria of the usage statistics sorted by.</param>
122 <exception cref="T:System.ArgumentException">Thrown when an invalid argument is used.</exception>
123 <exception cref="T:System.InvalidOperationException">Thrown when method fail due to internal error.</exception>
125 <member name="M:Tizen.Context.AppHistory.UsageStatistics.Query(System.DateTime,System.DateTime)">
127 Retrieves a given type of usage statistics.
129 <param name="startTime">The start time of the data to be aggregated.</param>
130 <param name="endTime">The end time of the data to be aggregated.</param>
131 <returns>Usage statistics data retrieved.</returns>
132 <privilege>http://tizen.org/privilege/apphistory.read</privilege>
133 <exception cref="T:System.ArgumentException">Thrown when an invalid argument is used.</exception>
134 <exception cref="T:System.InvalidOperationException">Thrown when invalid operation occurs.</exception>
135 <exception cref="T:System.UnauthorizedAccessException">Thrown when the app has no privilege to retrieve app history.</exception>
137 <member name="M:Tizen.Context.AppHistory.UsageStatistics.Query(System.DateTime,System.DateTime,System.UInt32)">
139 Retrieves a given type of usage statistics.
141 <param name="startTime">The start time of the data to be aggregated.</param>
142 <param name="endTime">The end time of the data to be aggregated.</param>
143 <param name="resultSize">The number of data records to be retrieved.</param>
144 <returns>Usage statistics data retrieved.</returns>
145 <privilege>http://tizen.org/privilege/apphistory.read</privilege>
146 <exception cref="T:System.ArgumentException">Thrown when an invalid argument is used.</exception>
147 <exception cref="T:System.InvalidOperationException">Thrown when invalid operation occurs.</exception>
148 <exception cref="T:System.UnauthorizedAccessException">Thrown when the app has no privilege to retrieve app history.</exception>
150 <member name="P:Tizen.Context.AppHistory.UsageStatistics.SortOrder">
152 Gets the criteria of usage statistics sorted by.
154 <value>The criteria of usage statistics sorted by.</value>
156 <member name="T:Tizen.Context.AppHistory.UsageStatistics.SortOrderType">
158 Sort order type of usage statistics
161 <member name="F:Tizen.Context.AppHistory.UsageStatistics.SortOrderType.LastLaunchTimeNewest">
163 Sorts apps by the last launch time, the most recently launched apps appear first. (Default)
166 <member name="F:Tizen.Context.AppHistory.UsageStatistics.SortOrderType.LaunchCountMost">
168 Sorts apps by the launch count of being launched, the most frequently launched apps appear first.
171 <member name="T:Tizen.Context.AppHistory.UsageStatisticsData">
173 The class contains application usage statistics information retrieved by UsageStatistics.
176 <member name="P:Tizen.Context.AppHistory.UsageStatisticsData.Duration">
178 Gets the time which the application is being displayed in the foreground in seconds.
180 <value>Duration which the application is used in the foreground in seconds.</value>
182 <member name="P:Tizen.Context.AppHistory.UsageStatisticsData.LaunchCount">
184 Gets how many times the application is used in the foreground.
186 <value>How many times the application is used in the foreground.</value>
188 <member name="P:Tizen.Context.AppHistory.UsageStatisticsData.LastLaunchTime">
190 Gets the last time when the application has been used.
192 <value>The last time when the application has been used.</value>