4 <name>Tizen.System</name>
7 <member name="T:Tizen.System.BatteryLevelStatus">
9 Enumeration for the battery levels.
11 <since_tizen> 3 </since_tizen>
13 <member name="F:Tizen.System.BatteryLevelStatus.Empty">
15 The battery goes empty.
16 Prepare for the safe termination of the application,
17 because the device starts a shutdown process soon
18 after entering this level.
20 <since_tizen> 3 </since_tizen>
22 <member name="F:Tizen.System.BatteryLevelStatus.Critical">
24 The battery charge is at a critical state.
25 You may have to stop using the multimedia features,
26 because they are not guaranteed to work correctly
27 with this battery status.
29 <since_tizen> 3 </since_tizen>
31 <member name="F:Tizen.System.BatteryLevelStatus.Low">
33 The battery has little charge left.
35 <since_tizen> 3 </since_tizen>
37 <member name="F:Tizen.System.BatteryLevelStatus.High">
39 The battery status is not to be careful.
41 <since_tizen> 3 </since_tizen>
43 <member name="F:Tizen.System.BatteryLevelStatus.Full">
45 The battery status is full.
47 <since_tizen> 3 </since_tizen>
49 <member name="T:Tizen.System.Battery">
51 The Battery class provides the properties and events for the device battery.
54 The Battery API provides the way to get the current battery capacity value (Percent),
55 the battery state, and the charging state. It also provides the events for an application
56 to receive the battery status change events from the device.
57 To receive the battery event, the application should register with the respective EventHandler.
60 Console.WriteLine("battery Charging state is: {0}", Tizen.System.Battery.IsCharging);
61 Console.WriteLine("battery Percent is: {0}", Tizen.System.Battery.Percent);
64 <member name="P:Tizen.System.Battery.Percent">
66 Gets the battery charge percentage.
68 <since_tizen> 3 </since_tizen>
69 <value>It returns an integer value from 0 to 100 that indicates the remaining
70 battery charge as a percentage of the maximum level.</value>
72 <member name="P:Tizen.System.Battery.Level">
74 Gets the current battery level.
76 <since_tizen> 3 </since_tizen>
78 <member name="P:Tizen.System.Battery.IsCharging">
80 Gets the current charging state.
82 <since_tizen> 3 </since_tizen>
84 <!-- Badly formed XML comment ignored for member "E:Tizen.System.Battery.PercentChanged" -->
85 <!-- Badly formed XML comment ignored for member "E:Tizen.System.Battery.LevelChanged" -->
86 <!-- Badly formed XML comment ignored for member "E:Tizen.System.Battery.ChargingStateChanged" -->
87 <member name="T:Tizen.System.BatteryPercentChangedEventArgs">
89 BatteryPercentChangedEventArgs is an extended EventArgs class. This class contains event arguments for the BatteryPercentChanged event from the battery class.
92 <member name="P:Tizen.System.BatteryPercentChangedEventArgs.Percent">
94 The current capacity of the battery.
95 Capacity is an integer value from 0 to 100 that indicates the remaining battery charge as a percentage of the maximum level.
97 <since_tizen> 3 </since_tizen>
99 <member name="T:Tizen.System.BatteryLevelChangedEventArgs">
101 BatteryLevelChangedEventArgs is an extended EventArgs class. This class contains event arguments for the BatteryLevelChanged event from the battery class.
104 <member name="P:Tizen.System.BatteryLevelChangedEventArgs.Level">
106 The level indicates the current battery level status which is a type of the BatteryLevelStatus.
108 <since_tizen> 3 </since_tizen>
110 <member name="T:Tizen.System.BatteryChargingStateChangedEventArgs">
112 BatteryChargingStateChangedEventArgs is an extended EventArgs class. This class contains event arguments for the BatteryChargingStateChanged event from the battery class.
115 <member name="P:Tizen.System.BatteryChargingStateChangedEventArgs.IsCharging">
117 The charging state of the battery. Charging is a type of a boolean which indicates true/false based on the current charging status.
119 <since_tizen> 3 </since_tizen>
121 <member name="T:Tizen.System.DisplayStateChangedEventArgs">
123 DisplayStateChangedEventArgs is an extended EventArgs class. This class contains event arguments for the DisplayStateChanged event from the display class.
126 <member name="P:Tizen.System.DisplayStateChangedEventArgs.State">
128 The state indicates the current display state of the device which is an enumeration of the type DisplayState.
130 <since_tizen> 3 </since_tizen>
132 <member name="T:Tizen.System.LedBrightnessChangedEventArgs">
134 LedBrightnessChangedEventArgs is an extended EventArgs class. This class contains event arguments for the LedBrightnessChanged event from the LED class.
137 <member name="P:Tizen.System.LedBrightnessChangedEventArgs.Brightness">
139 Brightness indicates the current brightness level of the display as an integer.
141 <since_tizen> 3 </since_tizen>
143 <member name="T:Tizen.System.DisplayState">
145 Enumeration for the available display states.
146 An application cannot put the device into the power off state or the suspend state.
148 <since_tizen> 3 </since_tizen>
150 <member name="F:Tizen.System.DisplayState.Normal">
154 <since_tizen> 3 </since_tizen>
156 <member name="F:Tizen.System.DisplayState.Dim">
160 <since_tizen> 3 </since_tizen>
162 <member name="F:Tizen.System.DisplayState.Off">
166 <since_tizen> 3 </since_tizen>
168 <member name="T:Tizen.System.Display">
170 The Display class provides the properties and events to control the display status and brightness.
173 The Display API provides the way to get the current display brightness value,
174 the display state, and the total number of available displays.
175 It also provides the events for an application to receive the display state change events from the device.
176 To receive the display event, the application should register with an associated EventHandler.
179 http://tizen.org/privilege/display
182 Console.WriteLine("Display current state is: {0}", Tizen.System.Display.State);
183 Console.WriteLine("Total number of Displays are: {0}", Tizen.System.Display.NumberOfDisplays);
186 <member name="P:Tizen.System.Display.NumberOfDisplays">
188 The number of available display devices.
190 <since_tizen> 3 </since_tizen>
192 <member name="P:Tizen.System.Display.Displays">
194 Gets all the available displays.
195 The display at the index zero is always assigned to the main display.
197 <since_tizen> 3 </since_tizen>
199 <member name="P:Tizen.System.Display.MaxBrightness">
201 The maximum brightness value that can be set for the specific display.
203 <since_tizen> 3 </since_tizen>
205 Display display = Display.Displays[0];
206 Console.WriteLine("Display MaxBrightness is: {0}", display.MaxBrightness);
209 <member name="P:Tizen.System.Display.Brightness">
211 The brightness value of the display.
214 The brightness value should be less than or equal to the MaxBrightness value.
216 <since_tizen> 3 </since_tizen>
217 <exception cref="T:System.ArgumentException">When an invalid parameter value is set.</exception>
218 <exception cref="T:System.UnauthorizedAccessException">If the privilege is not set.</exception>
220 Display display = Display.Displays[0];
221 Console.WriteLine("Display current Brightness is: {0}", display.Brightness);
224 <member name="P:Tizen.System.Display.State">
226 The current device display state.
228 <since_tizen> 3 </since_tizen>
230 <!-- Badly formed XML comment ignored for member "E:Tizen.System.Display.StateChanged" -->
231 <member name="T:Tizen.System.Vibrator">
233 The Vibrator class provides the properties and methods to control a vibrator.
236 The Vibrator API provides the way to access the vibrators in the device.
237 It allows the management of the device's vibrator parameters, such as the vibration count and level.
238 It provides the methods to vibrate and stop the vibration.
241 http://tizen.org/privilege/haptic
244 Console.WriteLine("Total number of Vibrators are: {0}", Tizen.System.Vibrator.NumberOfVibrators);
247 <member name="P:Tizen.System.Vibrator.NumberOfVibrators">
249 Gets the number of the available vibrators.
251 <since_tizen> 3 </since_tizen>
253 <member name="P:Tizen.System.Vibrator.Vibrators">
255 Gets all the available vibrators.
257 <since_tizen> 3 </since_tizen>
259 <member name="M:Tizen.System.Vibrator.Vibrate(System.Int32,System.Int32)">
261 Vibrates during the specified time with a constant intensity.
262 This function can be used to start monotonous vibration for the specified time.
264 <since_tizen> 3 </since_tizen>
265 <param name="duration">The play duration in milliseconds.</param>
266 <param name="feedback">The amount of the intensity variation (0 ~ 100).</param>
267 <exception cref="T:System.ArgumentException"> When an invalid parameter value is set.</exception>
268 <exception cref="T:System.UnauthorizedAccessException">If the privilege is not set.</exception>
269 <exception cref="T:System.InvalidOperationException">In case of any system error.</exception>
270 <exception cref="T:System.NotSupportedException">In case the device does not support this behavior.</exception>
272 Vibrator vibrator = Vibrator.Vibrators[0];
275 vibrator.Vibrate(2000, 70);
282 <member name="M:Tizen.System.Vibrator.Stop">
284 Stops all the vibration effects which are being played.
285 This function can be used to stop all the effects started by Vibrate().
287 <since_tizen> 3 </since_tizen>
288 <exception cref="T:System.ArgumentException"> In case an invalid vibrator instance is used.</exception>
289 <exception cref="T:System.UnauthorizedAccessException">If the privilege is not set.</exception>
290 <exception cref="T:System.InvalidOperationException">In case of any system error.</exception>
291 <exception cref="T:System.NotSupportedException">In case the device does not support this behavior.</exception>
293 Vibrator vibrator = Vibrator.Vibrators[0];
303 <member name="M:Tizen.System.Vibrator.Dispose">
305 Dispose API for closing the internal resources.
306 This function can be used to stop all the effects started by Vibrate().
308 <since_tizen> 3 </since_tizen>
310 <member name="T:Tizen.System.IR">
312 The IR API provides the functions to control the IR transmitter.
313 The IR API provides the way to get the information if IR is available and then transmit the IR command.
316 http://tizen.org/privilege/use_ir
319 Console.WriteLine("IR availability for this device is: {0}", IR.IsAvailable);
322 <member name="P:Tizen.System.IR.IsAvailable">
324 Gets the information whether the IR module is available.
326 <since_tizen> 3 </since_tizen>
328 <!-- Badly formed XML comment ignored for member "M:Tizen.System.IR.Transmit(System.Int32,System.Collections.Generic.IList{System.Int32})" -->
329 <member name="T:Tizen.System.Led">
331 The LED class provides the properties and methods to control the attached LED device.
334 The LED API provides the way to control the attached LED device, such as the camera flash and service LED. It supports to turn on the camera flash and set the pattern to the service LED which is located at the front of the device.
336 http://tizen.org/feature/led
337 http://tizen.org/feature/camera.back.flash
338 It is recommended to design the feature related codes in your application for reliability.
339 You can check if a device supports the related features for this API by using system information, thereby controlling the procedure of your application.
342 http://tizen.org/privilege/led
345 Console.WriteLine("Led MaxBrightness is: {0}", Tizen.System.Led.MaxBrightness);
346 Console.WriteLine("Led current Brightness is: {0}", Tizen.System.Led.Brightness);
349 <member name="P:Tizen.System.Led.MaxBrightness">
351 Gets the maximum brightness value of the LED that is located next to the camera.
352 <since_tizen> 3 </since_tizen>
353 <exception cref="T:System.ArgumentException">When an invalid parameter value is set.</exception>
354 <exception cref="T:System.UnauthorizedAccessException">If the privilege is not set.</exception>
355 <exception cref="T:System.NotSupportedException">In case the device does not support this behavior.</exception>
358 <member name="P:Tizen.System.Led.Brightness">
360 Gets the brightness value of the LED that is located next to the camera.
362 <remarks>The brightness value range of the LED is 0 to Tizen.System.Led.MaxBrightness value.
363 Changing the brightness value will invoke the registered EventHandler for the LED BrightnessChanged (if any).
365 <since_tizen> 3 </since_tizen>
366 <exception cref="T:System.ArgumentException"> When an invalid parameter value is set.</exception>
367 <exception cref="T:System.UnauthorizedAccessException">If the privilege is not set.</exception>
368 <exception cref="T:System.NotSupportedException">In case the device does not support this behavior.</exception>
370 Console.WriteLine("Led current Brightness is: {0}", Tizen.System.Led.Brightness);
371 Tizen.System.Led.Brightness = 50;
372 Console.WriteLine("Led current Brightness is: {0}", Tizen.System.Led.Brightness);
375 <member name="M:Tizen.System.Led.Play(System.Int32,System.Int32,Tizen.Common.Color)">
377 Plays the LED that is located at the front of the device.
379 <since_tizen> 3 </since_tizen>
380 <param name="on">Turn on time in milliseconds.</param>
381 <param name="off">Turn off time in milliseconds.</param>
384 The first byte means opaque and the other 3 bytes are the RGB values.
386 <exception cref="T:System.ArgumentException">When an invalid parameter value is set.</exception>
387 <exception cref="T:System.UnauthorizedAccessException">If the privilege is not set.</exception>
388 <exception cref="T:System.InvalidOperationException">In case of any system error.</exception>
389 <exception cref="T:System.NotSupportedException">In case the device does not support this behavior.</exception>
393 Led.Play(500, 200, Color.FromRgba(255, 255, 255, 1));
400 <member name="M:Tizen.System.Led.Stop">
402 Stops the LED that is located at the front of the device.
404 <since_tizen> 3 </since_tizen>
405 <exception cref="T:System.UnauthorizedAccessException">If the privilege is not set.</exception>
406 <exception cref="T:System.InvalidOperationException">In case of any system error.</exception>
407 <exception cref="T:System.NotSupportedException">In case the device does not support this behavior.</exception>
411 Led.Play(500, 200, Color.FromRgba(255, 255, 255, 1));
412 //wait for a while and stop...
420 <member name="E:Tizen.System.Led.BrightnessChanged">
422 StateChanged is raised when the LED state is changed.
424 <since_tizen> 3 </since_tizen>
425 <param name="sender">The source of the event.</param>
426 <param name="e">LedBrightnessChangedEventArgs is an object that contains the changed brightness.</param>
428 <member name="T:Tizen.System.Power">
430 The Power class provides methods to control the power service.
433 The Power API provides the way to control the power service.
434 It can be made to hold the specific state to avoid the CPU state internally.
437 http://tizen.org/privilege/display
440 <member name="M:Tizen.System.Power.RequestCpuLock(System.Int32)">
442 Locks the CPU for a specified time.
443 After the given timeout (in milliseconds), unlock the given lock state automatically.
446 If the process dies, then every lock will be removed.
448 <since_tizen> 3 </since_tizen>
449 <param name="timeout">
450 The positive number in milliseconds or 0 for the permanent lock.
451 So you must release the permanent lock of the power state with ReleaseCpuLock() if timeout_ms is zero.
453 <exception cref="T:System.ArgumentException">When an invalid parameter value is set.</exception>
454 <exception cref="T:System.UnauthorizedAccessException">If the privilege is not set.</exception>
455 <exception cref="T:System.InvalidOperationException">In case of any system error.</exception>
457 Tizen.System.Power.RequestCpuLock(2000);
460 <member name="M:Tizen.System.Power.ReleaseCpuLock">
462 Releases the CPU lock state.
464 <since_tizen> 3 </since_tizen>
465 <exception cref="T:System.UnauthorizedAccessException">If the privilege is not set.</exception>
466 <exception cref="T:System.InvalidOperationException">In case of any system error.</exception>
468 Tizen.System.Power.ReleaseCpuLock();