fix sample code. use web sample instead of native for web event
authorCho Woong Suk <ws77.cho@samsung.com>
Tue, 30 Aug 2016 06:00:07 +0000 (15:00 +0900)
committerCho Woong Suk <ws77.cho@samsung.com>
Tue, 30 Aug 2016 06:00:13 +0000 (15:00 +0900)
Change-Id: Ie0769f6c8599ce96c6ac2e2221ba92e16511caa2
Signed-off-by: Cho Woong Suk <ws77.cho@samsung.com>
org.tizen.tutorials/html/web/details/event_handling_w.htm

index 8890b9e..4015239 100644 (file)
@@ -91,10 +91,8 @@ document.addEventListener(&quot;rotarydetent&quot;, function(ev)
 <p>Since Tizen 2.3.2, some devices introduce a high color mode for the ambient mode. In the high color mode, you can use more colors (usually, 24-bit color) for drawing the ambient mode UI. To check whether the device supports the high color mode, use the following code:</p>
 
 <pre class="prettyprint">
-bool support;
-int ret;
-
-ret = system_info_get_platform_bool(&quot;http://tizen.org/feature/screen.always_on.high_color&quot;, &amp;support);
+/* Check whether high color mode is supported or not*/
+var isHighColorMode = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.always_on.high_color");
 </pre>
 
 <p>The following table describes the ambient mode events.</p>