added statement for sync-manager feature on native guide 04/147904/6
authorIckhee Woo <ickhee.woo@samsung.com>
Wed, 6 Sep 2017 04:39:32 +0000 (13:39 +0900)
committerEditor Lionbridge <TizenEditor.SEL@lionbridge.com>
Fri, 8 Sep 2017 07:23:46 +0000 (10:23 +0300)
PS3: Reviewed
PS4: Fixed feature name and added to System Information guide
PS5: More features added to System Information guide
PS6: Changed native synch guide title

Change-Id: I56466c3f4624f8d87afec48cf0a57bbcb0e80a47
Signed-off-by: Ickhee Woo <ickhee.woo@samsung.com>
org.tizen.guides/html/index.htm
org.tizen.guides/html/native/device/system_n.htm
org.tizen.guides/html/native/personal/data_sync_n.htm
org.tizen.guides/html/native/personal/personal_cover_n.htm
org.tizen.guides/index.xml

index 545f431..0bd8b60 100644 (file)
                <li><a href="native/personal/personal_cover_n.htm" target="content">Personal Data</a>
                        <ul>
                                <li><a href="native/personal/account_n.htm" target="content">Account Management</a></li>
-                               <li><a href="native/personal/data_sync_n.htm" target="content">Data Synchronization</a></li>
+                               <li><a href="native/personal/data_sync_n.htm" target="content">Synchronization Management</a></li>
                                <li><a href="native/personal/authentication_n.htm" target="content">Authentication and Authorization</a>
                                        <ul>
                                                <li><a href="native/personal/fido_n.htm" target="content">FIDO Universal Authentication Framework</a></li>
index 32f36d5..e3de106 100644 (file)
  <th colspan="4"><a href="#feature">Feature keys</a></th>
 </tr>
  <tr>
+ <td><a href="#account">Account</a></td>
+ <td><a href="#fmradio">FM radio</a></td>
+ <td><a href="#microphone">Microphone</a></td>
+ <td><a href="#sensor">Sensor</a></td>
+ </tr>
+</tr>
+ <tr>
  <td><a href="#battery">Battery</a></td>
  <td><a href="#graphics">Graphics</a></td>
  <td><a href="#multimedia">Multimedia</a></td>
  <td><a href="#fido">FIDO</a></td>
  <td><a href="#media">Media</a></td>
  <td><a href="#screen">Screen</a></td>
- <td rowspan="2">-</td>
- </tr>
-  <tr>
- <td><a href="#fmradio">FM radio</a></td>
- <td><a href="#microphone">Microphone</a></td>
- <td><a href="#sensor">Sensor</a></td>
+ <td>-</td>
  </tr>
 <tr>
  <th colspan="4"><a href="#system">System keys</a></th>
  <td><a href="#build">Build</a></td>
  <td><a href="#manufacturer">Manufacturer</a></td>
  <td><a href="#platformsys">Platform</a></td>
-  <td><a href="#tizenid">TizenID</a></td>
+  <td rowspan="2">-</td>
  </tr>
   <tr>
+  <td><a href="#tizenid">TizenID</a></td>
  
  <td><a href="#modelname">Model name</a></td>
  <td><a href="#sound">Sound</a></td>
- <td>-</td>
  </tr>
  </tbody></table>
 
@@ -218,6 +220,29 @@ func(void)
 
   <h2 id="feature">Feature Keys</h2>
 
+<p>The following table lists the account feature keys.</p>
+ <p align="center" class="Table"><strong>Table: Account feature keys</strong></p>
+
+ <table id="account" border="1">
+   <tbody>
+    <tr>
+     <th>Key</th>
+        <th>Type</th>
+        <th>Description</th>
+    </tr>
+    <tr>
+       <td><code>http://tizen.org/feature/account</code></td>
+     <td><code>bool</code></td>
+        <td>The platform returns <code>true</code> for this key, if the device supports the Account Manager API.</td>
+    </tr>
+    <tr>
+       <td><code>http://tizen.org/feature/account.sync</code></td>
+     <td><code>bool</code></td>
+        <td>The platform returns <code>true</code> for this key, if the device supports the Sync Manager API.</td>
+    </tr>
+   </tbody>
+  </table>
+
 <p>The following table lists the battery feature keys.</p>
  <p align="center" class="Table"><strong>Table: Battery feature keys</strong></p>
 
index 269c07d..fc571d4 100644 (file)
@@ -10,7 +10,7 @@
     <script type="text/javascript" src="../../scripts/common.js" charset="utf-8"></script>
     <script type="text/javascript" src="../../scripts/core.js" charset="utf-8"></script>
     <script type="text/javascript" src="../../scripts/search.js" charset="utf-8"></script>
-    <title>Data Synchronization</title>
+    <title>Synchronization Management</title>
 </head>
 <body onload="prettyPrint()" style="overflow: auto;">
 
@@ -53,7 +53,7 @@
 <div id="container"><div id="contents"><div class="content">
 
 
-  <h1>Data Synchronization</h1>
+  <h1>Synchronization Management</h1>
 
 <p>Tizen provides notifications for a service application to maintain data consistency between a server and the device.</p>
 
 </ul>
 
 <h2 id="prerequisites">Prerequisites</h2>
-<p>To enable your application to use the data synchronization functionality:</p>
+<p>To enable your application to use the synchronization management functionality:</p>
 <ol>
 <li>To use the Sync Manager API (in <a href="../../../../org.tizen.native.mobile.apireference/group__CAPI__SYNC__MANAGER__MODULE.html">mobile</a> and <a href="../../../../org.tizen.native.wearable.apireference/group__CAPI__SYNC__MANAGER__MODULE.html">wearable</a> applications), the application has to request permission by adding the following privileges to the <code>tizen-manifest.xml</code> file:
 <pre class="prettyprint">
 &lt;/privileges&gt;
 </pre>
 </li>
+<li>Before using the Sync Manager API, check whether the device supports the synchronization management feature with the <code>system_info_get_platform_bool()</code> function. If the device supports the Sync Manager API, the function returns <code>true</code> in the second parameter.
+<pre class="prettyprint">
+bool sync_support;
+
+system_info_get_platform_bool("http://tizen.org/feature/account.sync", &amp;sync_support);
+</pre>
+</li>
 <li><a href="#set_callback">Set the sync adapter callbacks</a> in the service application:
 <pre class="prettyprint">
 #include &lt;sync_adapter.h&gt;
index 3603b06..f2cad28 100644 (file)
@@ -45,7 +45,7 @@
 
 <p>You can access user accounts and account providers. After getting a specific account, you can manage it, retrieve account information, and manage account secrecy.</p></li>
 
-<li><a href="data_sync_n.htm">Data Synchronization</a>
+<li><a href="data_sync_n.htm">Synchronization Management</a>
 
 <p>You can synchronize service application data between a server and the device by creating various sync jobs.</p></li>
 
index 3819d8f..762964d 100644 (file)
        </topic>
        <topic href="html/native/personal/personal_cover_n.htm" label="Personal Data">
                <topic href="html/native/personal/account_n.htm" label="Account Management"></topic>
-               <topic href="html/native/personal/data_sync_n.htm" label="Data Synchronization"></topic>
+               <topic href="html/native/personal/data_sync_n.htm" label="Synchronization Management"></topic>
                <topic href="html/native/personal/authentication_n.htm" label="Authentication and Authorization">
                        <topic href="html/native/personal/fido_n.htm" label="FIDO Universal Authentication Framework"></topic>
                        <topic href="html/native/personal/oauth_n.htm" label="OAuth 2.0"></topic>