<p>The property contains the device battery level as a value of the <a href="https://developer.tizen.org/dev-guide/csapi/namespaceTizen_1_1System.html#ae27f4a8d7a61d29a49a265c337116df8">Tizen.System.BatteryLevelStatus</a> enumeration.</p>
<pre class="prettyprint">
-var status;
+BatteryLevelStatus status;
status = Battery.Level;
</pre>
</li>
<pre class="prettyprint">
Display dis = Display.Displays[0];
-int curBrightness = dis.Brightness;
-dis.Brightness = dis.MaxBrightness;
+int maxBrightness = dis.MaxBrightness;
</pre>
</li>
<li>Get and set the display state with the <code>State</code> property.
<p>The property contains the display state as a value of the <a href="https://developer.tizen.org/dev-guide/csapi/namespaceTizen_1_1System.html#a04b41846384e5a4eec93b3439af7f289">Tizen.System.DisplayState</a> enumeration.</p>
<pre class="prettyprint">
-var state;
+DisplayState state;
state = Display.State;
</pre></li>
</ul>
<ol>
<li>Determine whether IR is available on the device using the <code>IsAvailable</code> property of the <a href="https://developer.tizen.org/dev-guide/csapi/classTizen_1_1System_1_1IR.html">Tizen.System.IR</a> class:
<pre class="prettyprint">
-var test
+bool test;
test = IR.IsAvailable;
</pre>
</li>
<ul>
<li>Get the maximum brightness value of a camera flash LED with the <code>MaxBrightness</code> property of the <a href="https://developer.tizen.org/dev-guide/csapi/classTizen_1_1System_1_1Led.html">Tizen.System.Led</a> class:
<pre class="prettyprint">
-var test
+int test;
test = Led.MaxBrightness;
</pre>
</li>
<li>Get and set the current brightness value of a camera flash LED with the <code>Brightness</code> property:
<pre class="prettyprint">
-var test
+int test;
test = Led.Brightness;
Led.Brightness = 45;