<li><a href="web/personal/personal_cover_w.htm" target="content">Personal Data</a>
<ul>
<li><a href="web/personal/account_w.htm" target="content">Account Management</a></li>
- <li><a href="web/personal/calendar_w.htm" target="content">Calendar</a></li>
+ <li><a href="web/personal/calendar_w.htm" target="content">Calendar</a></li>
<li><a href="web/personal/contacts_w.htm" target="content">Contacts</a></li>
<li><a href="web/personal/bookmarks_w.htm" target="content">Bookmarks</a></li>
<li><a href="web/personal/call_history_w.htm" target="content">Call History</a></li>
/* Create ApplicationControl object */
var appControl = new tizen.ApplicationControl('http://tizen.org/appcontrol/operation/default',
null, 'image/jpg', null);
-/* You can add additional attibutes to the notification dictionary */
+/* You can add additional attributes to the notification dictionary */
var notificationDict = {
content: 'This is a simple notification\'s content.',
actions: {
var noti = tizen.alarm.getAlarmNotification(alarm.id);
console.log('Notification title: ' + noti.title + ', content: ' + noti.content);
</pre>
-<p>You can <a href="removeAlarm">remove the alarm notification</a> with the <code>tizen.alarm.remove()</code> method.</p></li>
+<p>You can <a href="#removeAlarm">remove the alarm notification</a> with the <code>tizen.alarm.remove()</code> method.</p></li>
</ol>
<script type="text/javascript" src="../../scripts/jquery.zclip.min.js"></script>
<ol>
<li>The calling application launches the application control with the <code>launchAppControl()</code> method of the <code>Application</code> interface (in <a href="../../../../org.tizen.web.apireference/html/device_api/mobile/tizen/application.html#Application">mobile</a>, <a href="../../../../org.tizen.web.apireference/html/device_api/wearable/tizen/application.html#Application">wearable</a>, and <a href="../../../../org.tizen.web.apireference/html/device_api/tv/tizen/application.html#Application">TV</a> applications).</li>
<li>The provider application calls the <code>getRequestedAppControl()</code> method of the <code>Application</code> interface to get the reference of the <code>RequestedApplicationControl</code> object. This object contains the application control passed by the <code>launchAppControl()</code> method from the calling application.</li>
-<li>The provider application calls either the <code>replyResult()</code> method (in case of success) or the <code>replyFailure()</code> method (in case of failure) of the <code>RequestedApplicationControl</code> interface to return control back to the calling application. The result of the provided operation (if any), is delivered as an array of <code>ApplicationControlData</code> objects (in <a href="../../../../org.tizen.web.apireference/html/device_api/mobile/tizen/application.html#ApplicationControlData">mobile</a>, <a href="../../../../org.tizen.web.apireference/html/device_api/wearable/tizen/application.html#ApplicationControlData">wearable</a>, and <a href="../../../../org.tizen.web.apireference/html/device_api/tv/tizen/application.html#ApplicationControlData">TV</a> applications). </li>
+<li>The provider application calls either the <code>replyResult()</code> method (on success) or the <code>replyFailure()</code> method (on failure) of the <code>RequestedApplicationControl</code> interface to return control back to the calling application. The result of the provided operation (if any), is delivered as an array of <code>ApplicationControlData</code> objects (in <a href="../../../../org.tizen.web.apireference/html/device_api/mobile/tizen/application.html#ApplicationControlData">mobile</a>, <a href="../../../../org.tizen.web.apireference/html/device_api/wearable/tizen/application.html#ApplicationControlData">wearable</a>, and <a href="../../../../org.tizen.web.apireference/html/device_api/tv/tizen/application.html#ApplicationControlData">TV</a> applications). </li>
<li>The calling application receives the result through the <code>ApplicationControlDataArrayReplyCallback</code> event handler (in <a href="../../../../org.tizen.web.apireference/html/device_api/mobile/tizen/application.html#ApplicationControlDataArrayReplyCallback">mobile</a>, <a href="../../../../org.tizen.web.apireference/html/device_api/wearable/tizen/application.html#ApplicationControlDataArrayReplyCallback">wearable</a>, and <a href="../../../../org.tizen.web.apireference/html/device_api/tv/tizen/application.html#ApplicationControlDataArrayReplyCallback">TV</a> applications).</li></ol>
<p>The application control uses the following primary information:</p>
<p>Learning how to receive notifications allows you to monitor when the status of an application installed on a device is changed (it is enabled or disabled):</p>
<ol>
-<li>To receive status change notifications about installed applications, add a listener that is triggered each time the application status changes.
+<li>To receive status change notifications for installed applications, add a listener that is triggered each time the application status changes.
<p>If you want to monitor the status of a specific application (instead of all installed applications), provide the application ID as a second parameter to the <code>addAppStatusChangeListener()</code> method.</p>
<pre class="prettyprint">
var watchId;
<td></td>
</tr>
<tr>
- <td><code>http://tizen.org/appcontrol/data/name</code> <strong></strong></td>
+ <td><code>http://tizen.org/appcontrol/data/name</code></td>
<td>The name of the selected location. This key must be passed as a string.</td>
<td><strong>This key is not supported in Tizen 2.4.</strong></td>
</tr>
<p>Learning how to add a listener allows you to receive notifications about DataControl provider data changes:</p>
<ol>
<li>
- <p>To retrieve a <code>SQLDataControlConsumer</code> object (in <a href="../../../../org.tizen.web.apireference/html/device_api/mobile/tizen/datacontrol.html#SQLDataControlConsumer">mobile</a>, <a href="../../../../org.tizen.web.apireference/html/device_api/wearable/tizen/datacontrol.html#SQLDataControlConsumer">wearable</a>, and <a href="../../../../org.tizen.web.apireference/html/device_api/tv/tizen/datacontrol.html#SQLDataControlConsumer">TV</a> applications), use the <code>getDataControlConsumer()</code> method of the <code>DataControlManager</code> interface (in <a href="../../../../org.tizen.web.apireference/html/device_api/mobile/tizen/datacontrol.html#DataControlManager">mobile</a>, <a href="../../../../org.tizen.web.apireference/html/device_api/wearable/tizen/datacontrol.html#DataControlManager">wearable</a>, and <a href="../../../../org.tizen.web.apireference/html/device_api/tv/tizen/datacontrol.html#DataControlManager">TV</a> applications). This object allows you to monitor changes in the DataControl provider data.</p>
+ <p>To monitor changes in the DataControl provider data, you must retrieve a <code>SQLDataControlConsumer</code> object (in <a href="../../../../org.tizen.web.apireference/html/device_api/mobile/tizen/datacontrol.html#SQLDataControlConsumer">mobile</a>, <a href="../../../../org.tizen.web.apireference/html/device_api/wearable/tizen/datacontrol.html#SQLDataControlConsumer">wearable</a>, and <a href="../../../../org.tizen.web.apireference/html/device_api/tv/tizen/datacontrol.html#SQLDataControlConsumer">TV</a> applications) or a <code>MappedDataControlConsumer</code> object (in <a href="../../../../org.tizen.web.apireference/html/device_api/mobile/tizen/datacontrol.html#MappedDataControlConsumer">mobile</a>, <a href="../../../../org.tizen.web.apireference/html/device_api/wearable/tizen/datacontrol.html#MappedDataControlConsumer">wearable</a>, and <a href="../../../../org.tizen.web.apireference/html/device_api/tv/tizen/datacontrol.html#MappedDataControlConsumer">TV</a> applications). Retrieve the required object using the <code>getDataControlConsumer()</code> method of the <code>DataControlManager</code> interface (in <a href="../../../../org.tizen.web.apireference/html/device_api/mobile/tizen/datacontrol.html#DataControlManager">mobile</a>, <a href="../../../../org.tizen.web.apireference/html/device_api/wearable/tizen/datacontrol.html#DataControlManager">wearable</a>, and <a href="../../../../org.tizen.web.apireference/html/device_api/tv/tizen/datacontrol.html#DataControlManager">TV</a> applications).</p>
+
<p>You need a running DataControl provider application, which uses the <code>"http://tizen.org/datacontrol/provider/DictionaryDataControlProvider"</code> provider ID.</p>
<pre class="prettyprint">
/* Get the map-type DataControlConsumerObject */
}
try {
- MapWatcherId = globalMAPConsumer.addChangeListener(dataChangeSuccessCallback, errorCallback);
+ MapWatcherId = globalMappedConsumer.addChangeListener(dataChangeSuccessCallback, errorCallback);
console.log("MAP change listener has been added with watchId = " + MapWatcherId);
} catch (error) {
console.log("The following error occurred: " + error.name);
}
try {
- globalMAPConsumer.removeChangeListener(MapWatcherId);
+ globalMappedConsumer.removeChangeListener(MapWatcherId);
} catch (error) {
console.log("The following error occurred: " + error.name);
}
tizen.package.getPackagesInfo(onListInstalledPackages);
</pre>
<p>The list of installed packages is returned to the <code>PackageInformationArraySuccessCallback()</code> methods as an array of <code>PackageInformation</code> objects.</p></li>
- <li><p>To retrieve basic package information, use the <code>getPackageInfo()</code> method of the <code>PackageManager</code> interface, specifying the package ID. If no package ID is set, the method retrieves information of the application package calling the method.</p>
+ <li><p>To retrieve basic package information, use the <code>getPackageInfo()</code> method of the <code>PackageManager</code> interface, specifying the package ID. If no package ID is set, the method retrieves the information for the application package calling the method.</p>
<pre class="prettyprint lang-js">
var packageInfo = tizen.package.getPackageInfo('org.tizen.calculator');
</pre></li>
<pre class="prettyprint">
var d = new Date();
-d.toLocaleString(); /* "2/1/2013 7:37:08 AM" */
-d.toLocaleDateString(); /* "2/1/2013" */
-d.toLocaleTimeString(); /* "7:38:05 AM" */
+d.toLocaleString(); /* '2/1/2013 7:37:08 AM' */
+d.toLocaleDateString(); /* '2/1/2013' */
+d.toLocaleTimeString(); /* '7:38:05 AM' */
</pre>
<h2 id="debug">Debugging</h2>
</pre></li>
</ol>
</li>
- <li><p>To stop listening to the reader changes, use the <code>unregisterSEListener()</code> method:</p>
+ <li><p>To stop listening for the reader changes, use the <code>unregisterSEListener()</code> method:</p>
<pre class="prettyprint">
tizen.seService.unregisterSEListener(seListener);
</pre></li>
<div id="container"><div id="contents"><div class="content">
<h1>Cordova</h1>
<p>The Cordova features include common functionalities useful in creating Tizen Web applications.</p>
- <p>The main Cordova features are:</p>
+ <p>You can use the following Cordova features in your Web applications:</p>
<ul>
<li><a href="core_w.htm">Common Cordova</a>
<p>You can handle common Cordova functionalities, such as interfaces for success and error handlers.</p></li>
<pre class="prettyprint">
var manager = tizen.content;
</pre></li>
- <li> <p>To search for the content directories in the local device, use the <code>getDirectories()</code> method of the <code>ContentManager</code> interface. The method returns an array of <code>ContentDirectory</code> objects (in <a href="../../../../org.tizen.web.apireference/html/device_api/mobile/tizen/content.html#ContentDirectory">mobile</a>, <a href="../../../../org.tizen.web.apireference/html/device_api/wearable/tizen/content.html#ContentDirectory">wearable</a>, and <a href="../../../../org.tizen.web.apireference/html/device_api/tv/tizen/content.html#ContentDirectory">TV</a> applications).</p>
+ <li> <p>To search for content directories on the local device, use the <code>getDirectories()</code> method of the <code>ContentManager</code> interface. The method returns an array of <code>ContentDirectory</code> objects (in <a href="../../../../org.tizen.web.apireference/html/device_api/mobile/tizen/content.html#ContentDirectory">mobile</a>, <a href="../../../../org.tizen.web.apireference/html/device_api/wearable/tizen/content.html#ContentDirectory">wearable</a>, and <a href="../../../../org.tizen.web.apireference/html/device_api/tv/tizen/content.html#ContentDirectory">TV</a> applications).</p>
<pre class="prettyprint">
function onDirectoryArraySuccess(directories) {
for (var i = 0; i < directories.length; i++) {
<pre class="prettyprint">
tizen.power.release('SCREEN');
</pre></li>
- <li><p>To listen to the screen state changes, use the <code>setScreenStateChangeListener()</code> method:</p>
+ <li><p>To listen for the screen state changes, use the <code>setScreenStateChangeListener()</code> method:</p>
<pre class="prettyprint">
function onScreenStateChanged(previousState, changedState) {
console.log('Screen state changed from' + previousState + 'to' + changedState);
<p class="toc-title">Dependencies</p>
<ul class="toc">
<li>Tizen 2.4 and Higher for Mobile</li>
- <li>Tizen 2.3.1 and Higher for Wearable</li>
+ <li>Tizen 3.0 and Higher for Wearable</li>
</ul>
<p class="toc-title">Content</p>
<ul class="toc">
</pre>
<p>Additionally, to double-check the Calendar API support (in <a href="../../../../org.tizen.web.apireference/html/device_api/mobile/tizen/calendar.html">mobile</a> and <a href="../../../../org.tizen.web.apireference/html/device_api/wearable/tizen/calendar.html">wearable</a> applications) while the application is running, use the <code>tizen.systeminfo.getCapability()</code> method and enable or disable the code that needs the API, as needed.</p>
</li>
-<li>To use the Calendar API, the application has to request permission by adding the following privileges to the <code>config.xml</code> file:</li>
+<li>To use the Calendar API, the application has to request permission by adding the following privileges to the <code>config.xml</code> file:
<pre class="prettyprint">
<tizen:privilege name="http://tizen.org/privilege/calendar.read"/>
<tizen:privilege name="http://tizen.org/privilege/calendar.write"/>
<div id="toc-navigation">
<div id="profile">
- <p><img alt="Mobile Web" src="../../images/mobile_s_w.png"/> <img alt="Wearable Web" src="../../images/wearable_s_w.png"/></p>
+ <p><img alt="Mobile Web" src="../../images/mobile_s_w.png"/> <img alt="Wearable Web" src="../../images/wearable_s_w_optional.png"/></p>
</div>
<div id="toc_border"><div id="toc">
<p class="toc-title">Dependencies</p>
</div>
<div id="container"><div id="contents"><div class="content">
-<h1>Gesture Recogniton</h1>
+<h1>Gesture Recognition</h1>
<p>You can set your application to recognize specific user gestures and react when the user performs them. The various recognizable gestures include, for example, when the user taps, shakes up, or picks up the device, or moves it along an axis.</p>
<p>This feature is supported in mobile and wearable applications only.</p>
<p>The main features of the Battery Status API include:</p>
<ul>
<li>Retrieving the battery status
- <p>You can use the attributes of the <code>BatteryManager</code> interface (in <a href="https://www.w3.org/TR/2016/CR-battery-status-20160707/#the-batterymanager-interface" target="_blank">mobile</a> and <a href="http://www.w3.org/TR/2012/CR-battery-status-20120508/#batterymanager-interface" target="_blank">wearable</a> applications) to <a href="#retrieve">check the battery status information</a>, such as battery charging status, remaining charging time (until fully charged), remaining battery life (until battery is empty), and battery charge level.</p></li>
+ <p>You can use the attributes of the <code>BatteryManager</code> interface (in <a href="https://www.w3.org/TR/2016/CR-battery-status-20160707/#the-batterymanager-interface" target="_blank">mobile</a> and <a href="http://www.w3.org/TR/2012/CR-battery-status-20120508/#batterymanager-interface" target="_blank">wearable</a> applications) to <a href="#retrieve">check the battery status information</a>, such as battery charging status and battery charge level.</p></li>
<li>Detecting battery status changes
<p>You can set event listeners with the <code>BatteryManager</code> interface attributes to <a href="#detect">detect changes in the battery status</a>.</p>
</li>
<li>
-<p>Use the attributes of the <code>BatteryManager</code> interface (in <a href="https://www.w3.org/TR/2016/CR-battery-status-20160707/#the-batterymanager-interface" target="_blank">mobile</a> and <a href="http://www.w3.org/TR/2012/CR-battery-status-20120508/#batterymanager-interface" target="_blank">wearable</a> applications) to display the battery charging status, remaining charging time, remaining battery life, and battery charge level:</p>
+<p>Use the attributes of the <code>BatteryManager</code> interface (in <a href="https://www.w3.org/TR/2016/CR-battery-status-20160707/#the-batterymanager-interface" target="_blank">mobile</a> and <a href="http://www.w3.org/TR/2012/CR-battery-status-20120508/#batterymanager-interface" target="_blank">wearable</a> applications) to display the battery charging status and battery charge level:</p>
<pre class="prettyprint">
</tr>\r
<tr>\r
<td><code>#02_grunt_uglify</code></td>\r
- <td>68</td>\r
+ <td><strong>68</strong></td>\r
<td>-</td>\r
<td><strong>1.90</strong></td>\r
<td><strong>-4.72</strong></td>\r
</tr>\r
<tr>\r
<td><code>#03_grunt_cssmin</code></td>\r
- <td>68</td>\r
+ <td><strong>68</strong></td>\r
<td>-</td>\r
<td><strong>1.87</strong></td>\r
<td><strong>-0.03</strong></td>\r
</tr>\r
<tr>\r
<td><code>#02_grunt_uglify</code></td>\r
- <td>106</td>\r
+ <td><strong>106</strong></td>\r
<td>-</td>\r
<td><strong>5.85 </strong></td>\r
<td><strong>-2.02</strong></td>\r
</tr>\r
<tr>\r
<td><code>#03_grunt_cssmin</code></td>\r
- <td>106</td>\r
+ <td><strong>106</strong></td>\r
<td>-</td>\r
<td><strong>5.84</strong></td>\r
<td><strong>-0.01</strong></td>\r