From ea6eeb9ef0cb36950dd84fc52a428ed5e30f9ced Mon Sep 17 00:00:00 2001 From: jomui Date: Wed, 13 Jan 2016 17:08:41 +0900 Subject: [PATCH] fix TNEF-6698 Signed-off-by: jomui Change-Id: I1dcf350513d8f6b23892209066dffd434d32681a --- .../html/native/location/geofence_tutorial_n.htm | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/org.tizen.tutorials/html/native/location/geofence_tutorial_n.htm b/org.tizen.tutorials/html/native/location/geofence_tutorial_n.htm index e0399e1..6a242b1 100644 --- a/org.tizen.tutorials/html/native/location/geofence_tutorial_n.htm +++ b/org.tizen.tutorials/html/native/location/geofence_tutorial_n.htm @@ -99,7 +99,7 @@ char* address = "India"; geofence_h fence_h; geofence_create_geopoint(place_id, latitude, longitude, radius, address, &fence_h); -
  • Wi-Fi/Bluetooth geofence +
  • Bluetooth geofence
     char* bssid = "82:45:67:7E:4A:3B";
     char* ssid = "Cafeteria";
    @@ -208,12 +208,11 @@ geofence_state_changed(int geofence_id, geofence_state_e state, void *user_data)
     
  • Receive the current state on request.

    You can get the current state of the user with respect to a fence, such as the in or out state and the duration of the current state.

    -
    • To access the state or the duration, first create a state handle:

      +
      • To access the state or the duration, first create a status handle:

         int geofence_id = 1;
         geofence_status_h status_h;
         geofence_status_create(geofence_id, &status_h);
        -geofence_status_destroy(status_h);
         
      • To get the current state, call the geofence_status_get_state() function:

        @@ -225,8 +224,13 @@ geofence_status_get_state(status_h, &state);
         int duration;
         geofence_status_get_duration(status_h, &duration);
         
        -

        The duration is provided in seconds.

      -
    • +

      The duration is provided in seconds.

      +
    • To destroy the status handle, call the geofence_status_destroy() function:

      +
      +geofence_status_destroy(status_h);
      +
      +

      The status handle should be destroyed when it is not needed.

    +

    Retrieving Geofence Information

    -- 2.7.4