<tr>
<td><a href="../../../../org.tizen.web.apireference/html/device_api/wearable/tizen/power.html">Power</a></td>
<td>This API provides interfaces and methods for controlling power resources.
- <p>Note that the <code>isScreenOn()</code>, <code>restoreScreenBrightness()</code>, <code>turnScreenOn()</code>, <code>turnScreenOff()</code>, <code>setScreenBrightness()</code>, and <code>getScreenBrightness()</code> methods are not supported for wearable Web service applications.</p></td>
+ <p>Note that the <code>isScreenOn()</code>, <code>restoreScreenBrightness()</code>, <code>setScreenBrightness()</code>, and <code>getScreenBrightness()</code> methods are not supported for wearable Web service applications.</p></td>
</tr>
<tr>
<td><a href="../../../../org.tizen.web.apireference/html/device_api/wearable/tizen/systeminfo.html">System Information</a></td>
</script>
</body>
-</html>
\ No newline at end of file
+</html>
</ul>
<h2 id="screen" name="screen">Managing the Screen State</h2>
-<p>To switch the screen on and off, and check whether the screen is on:</p>
-<ul>
-<li><p>To check whether the screen is on, call the <code>isScreenOn()</code> method of the <code>PowerManager</code> interface (in <a href="../../../../org.tizen.web.apireference/html/device_api/mobile/tizen/power.html#PowerManager">mobile</a> and <a href="../../../../org.tizen.web.apireference/html/device_api/wearable/tizen/power.html#PowerManager">wearable</a> applications):</p>
+<p>To check whether the screen is on, call the <code>isScreenOn()</code> method of the <code>PowerManager</code> interface (in <a href="../../../../org.tizen.web.apireference/html/device_api/mobile/tizen/power.html#PowerManager">mobile</a> and <a href="../../../../org.tizen.web.apireference/html/device_api/wearable/tizen/power.html#PowerManager">wearable</a> applications):</p>
<pre class="prettyprint">
var isScreenOn = tizen.power.isScreenOn();
-</pre></li>
- <li><p>To switch on the screen, call the <code>turnScreenOn()</code> method of the <code>PowerManager</code> interface:</p>
-<pre class="prettyprint">
-tizen.power.turnScreenOn();
-</pre></li>
- <li><p>To switch off the screen, call the <code>turnScreenOff()</code> method of the <code>PowerManager</code> interface:</p>
-<pre class="prettyprint">
-tizen.power.turnScreenOff();
-</pre></li>
-
- </ul>
+</pre>
<script type="text/javascript" src="../../scripts/jquery.zclip.min.js"></script>
<script type="text/javascript" src="../../scripts/showhide.js"></script>
</script>
</body>
-</html>
\ No newline at end of file
+</html>
WARNING :
Audio recording is not supported in initial target platform version 2.2.1
- Include the following check and guideline for the end user:
- if (tizen.systeminfo.getCapabilities().platformVersion === "2.2.1")
- {
- <Inform the user to upgrade his/her system OS to properly use this application>
- }
+ Version can be checked by tizen.systeminfo.getCapability("http://tizen.org/feature/platform.version")
*/
function gotStream(stream)
</div>
<h2 id="api-features">2. Related Feature</h2>
<div id="def-api-features" class="def-api-features">
- It is recommended to design feature related code in a modular way. You can check if this API is supported with <em>tizen.systeminfo.getCapabilities()</em> and decide enable/disable codes that need this API.
+ It is recommended to design feature related code in a modular way. Checking if this API is supported, is possible with <em>tizen.systeminfo.getCapability("http://tizen.org/feature/camera")</em> and decide enable/disable codes that need this API.
<div class="def-api-feature">
<p><div class="description">
<p>