[TNEF-5182] Fixed mistakes of Geofence.
authorYoung-Ae Kang <youngae.kang@samsung.com>
Mon, 7 Sep 2015 08:59:29 +0000 (17:59 +0900)
committerYoung-Ae Kang <youngae.kang@samsung.com>
Mon, 7 Sep 2015 09:01:16 +0000 (18:01 +0900)
Signed-off-by: Young-Ae Kang <youngae.kang@samsung.com>
Change-Id: Ie59f953a70303f0251ab757734b77f324538323e

org.tizen.tutorials/html/native/location/geofence_tutorial_n.htm

index 31c4592..444929e 100644 (file)
@@ -91,7 +91,7 @@ geofence_manager_add_place(manager, &quot;place_name&quot;, &amp;place_id);
 </li>
 <li>Create the geofences:
 <pre class="prettyprint">
-Geopoint geofence:
+// Geopoint geofence:
 double latitude = 12.756738;
 double longitude = 77.386474;
 int radius = 100;
@@ -99,11 +99,11 @@ char* address = &quot;India&quot;;
 geofence_h fence_h;
 geofence_create_geopoint(place_id, latitude, longitude, radius, address, &amp;fence_h);
 
-Wi-Fi/BT geofence:
+// Wi-Fi/BT geofence:
 char* bssid = &quot;82:45:67:7E:4A:3B&quot;;
 char* ssid = &quot;Cafeteria&quot;;
 geofence_h fence_h;
-geofence_create_bluetooth(place_id, bssid, ssid, fence_h);
+geofence_create_bluetooth(place_id, bssid, ssid, &amp;fence_h);
 </pre> 
 <p>Add the geofence to the manager:</p>
 <pre class="prettyprint">
@@ -114,12 +114,12 @@ geofence_manager_add_fence(manager, fence_h, &amp;geofence_id);
 <li><p>Start the geofence service using the <span style="font-family: Courier New,Courier,monospace">geofence_manager_start()</span> function. </p>
 <p>This call is asynchronous and only initiates the process of starting the service. Once the service is started, the registered callbacks are invoked when their corresponding events take place. To know when the service becomes enabled, use the <span style="font-family: Courier New,Courier,monospace">geofence_manager_set_geofence_state_changed_cb()</span> callback.</p>
 <pre class="prettyprint">
-geofence_manager_start(manager);
+geofence_manager_start(manager, geofence_id);
 </pre></li>
 
 <li><p>Using the geofence service for geopoints is power consuming, so if the service is not used, you can stop the status alerts using the <span style="font-family: Courier New,Courier,monospace">geofence_manager_stop()</span> function. Call the <span style="font-family: Courier New,Courier,monospace">geofence manager_start()</span> function again if the alerts are needed.</p>
 <pre class="prettyprint">
-geofence_manager_stop(manager);
+geofence_manager_stop(manager, geofence_id);
 </pre></li>
 
 <li><p>Destroy all used resources, such as the geofence manager handle, using the <span style="font-family: Courier New,Courier,monospace">geofence_manager_destroy()</span> function:</p>
@@ -235,7 +235,7 @@ geofence_status_get_duration(status_h, &amp;duration);
 <pre class="prettyprint">
 geofence_type_e type;
 int place_id;
-geofence_get_geofence_type(fence_h, &amp;type);
+geofence_get_type(fence_h, &amp;type);
 geofence_get_place_id(fence_h, &amp;place_id);
 </pre></li>
 <li><p>Retrieve the geopoint geofence information:</p>