[Documentation] Removed deprecated entries and updated camera api guide 86/138186/5
authorMichal Bistyga <m.bistyga@samsung.com>
Tue, 11 Jul 2017 10:43:09 +0000 (12:43 +0200)
committerMichal Bistyga <m.bistyga@samsung.com>
Thu, 17 Aug 2017 07:28:34 +0000 (09:28 +0200)
PS2: Fixed screen state management use case in power_w.htm

Change-Id: Ia2557115b16d4cab1bccba1a19b5df327f6af19c
Signed-off-by: Michal Bistyga <m.bistyga@samsung.com>
org.tizen.guides/html/web/app_management/service_app_w.htm
org.tizen.guides/html/web/device/power_w.htm
org.tizen.web.apireference/html/w3c_api/camera_w.html

index dcf666c..fd20b28 100644 (file)
@@ -288,7 +288,7 @@ var watchId = localMsgPort.addMessagePortListener(onreceived);
 <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>
@@ -319,4 +319,4 @@ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga
 </script>
 
 </body>
-</html>
\ No newline at end of file
+</html>
index 73365c0..b45ca24 100644 (file)
@@ -145,22 +145,10 @@ tizen.power.restoreScreenBrightness();
   </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>
@@ -184,4 +172,4 @@ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga
 </script>
 
 </body>
-</html>
\ No newline at end of file
+</html>
index 2ae0cb9..517137c 100644 (file)
@@ -240,11 +240,7 @@ navigator.webkitGetUserMedia({video:true,audio:true}, gotStream, noStream);
 
    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")
-   {
-      &lt;Inform the user to upgrade his/her system OS to properly use this application&gt;
-   }
+   Version can be checked by tizen.systeminfo.getCapability("http://tizen.org/feature/platform.version")
 */
 
 function gotStream(stream)
@@ -1287,7 +1283,7 @@ The following formats must be supported:
 </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>