From a90bf0af956c38d83e6977fcef89dc725db51345 Mon Sep 17 00:00:00 2001 From: Michal Bistyga Date: Tue, 11 Jul 2017 12:43:09 +0200 Subject: [PATCH] [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 --- .../html/web/app_management/service_app_w.htm | 4 ++-- org.tizen.guides/html/web/device/power_w.htm | 18 +++--------------- org.tizen.web.apireference/html/w3c_api/camera_w.html | 8 ++------ 3 files changed, 7 insertions(+), 23 deletions(-) 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.

-- 2.7.4