From: Michal Bistyga Date: Tue, 11 Jul 2017 10:43:09 +0000 (+0200) Subject: [Documentation] Removed deprecated entries and updated camera api guide X-Git-Tag: GitHub/PR#40/tizen-studio~74^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a90bf0af956c38d83e6977fcef89dc725db51345;p=sdk%2Fonline-doc.git [Documentation] Removed deprecated entries and updated camera api guide PS2: Fixed screen state management use case in power_w.htm Change-Id: Ia2557115b16d4cab1bccba1a19b5df327f6af19c Signed-off-by: Michal Bistyga --- diff --git a/org.tizen.guides/html/web/app_management/service_app_w.htm b/org.tizen.guides/html/web/app_management/service_app_w.htm index dcf666c..fd20b28 100644 --- a/org.tizen.guides/html/web/app_management/service_app_w.htm +++ b/org.tizen.guides/html/web/app_management/service_app_w.htm @@ -288,7 +288,7 @@ var watchId = localMsgPort.addMessagePortListener(onreceived); Power This API provides interfaces and methods for controlling power resources. -

Note that the isScreenOn(), restoreScreenBrightness(), turnScreenOn(), turnScreenOff(), setScreenBrightness(), and getScreenBrightness() methods are not supported for wearable Web service applications.

+

Note that the isScreenOn(), restoreScreenBrightness(), setScreenBrightness(), and getScreenBrightness() methods are not supported for wearable Web service applications.

System Information @@ -319,4 +319,4 @@ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga - \ No newline at end of file + diff --git a/org.tizen.guides/html/web/device/power_w.htm b/org.tizen.guides/html/web/device/power_w.htm index 73365c0..b45ca24 100644 --- a/org.tizen.guides/html/web/device/power_w.htm +++ b/org.tizen.guides/html/web/device/power_w.htm @@ -145,22 +145,10 @@ tizen.power.restoreScreenBrightness();

Managing the Screen State

-

To switch the screen on and off, and check whether the screen is on:

- + @@ -184,4 +172,4 @@ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga - \ No newline at end of file + diff --git a/org.tizen.web.apireference/html/w3c_api/camera_w.html b/org.tizen.web.apireference/html/w3c_api/camera_w.html index 2ae0cb9..517137c 100644 --- a/org.tizen.web.apireference/html/w3c_api/camera_w.html +++ b/org.tizen.web.apireference/html/w3c_api/camera_w.html @@ -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") - { - <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) @@ -1287,7 +1283,7 @@ The following formats must be supported:

2. Related Feature

- It is recommended to design feature related code in a modular way. You can check if this API is supported with tizen.systeminfo.getCapabilities() 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 tizen.systeminfo.getCapability("http://tizen.org/feature/camera") and decide enable/disable codes that need this API.