From 8e0ee9417c196090b4fd4abe76b7036adc710d41 Mon Sep 17 00:00:00 2001 From: jomui Date: Thu, 28 Jan 2016 19:05:14 +0900 Subject: [PATCH] remove Getting Geofence Alerts Signed-off-by: jomui Change-Id: I393845c8990d7f8fbda9151197c044e428322411 --- .../html/native/location/geofence_tutorial_n.htm | 24 ---------------------- 1 file changed, 24 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 0640921..cf51b3d 100644 --- a/org.tizen.tutorials/html/native/location/geofence_tutorial_n.htm +++ b/org.tizen.tutorials/html/native/location/geofence_tutorial_n.htm @@ -23,7 +23,6 @@ @@ -49,8 +48,6 @@

Create the geofence, start the geofence service, and stop it when no longer needed.

  • Getting the Geofence Event State

    Get the success or failure state of each event.

  • -
  • Getting Geofence Alerts -

    Define the geofence and track state changes.

  • Tracking the User for Geofence Alerts

    Track the user location and update the geofence state.

  • Retrieving Geofence Information @@ -172,27 +169,6 @@ geofence_event(int place_id, int geofence_id, geofence_manager_error_e error,
  • -

    Getting Geofence Alerts

    - -

    To get alerts of the geofence state changes, use the geofence state callback. There is no periodic call, but the callback is invoked if there is a state change. The callback is called only if the geofence service has been started.

    -
      -
    1. Register the callback using the geofence_manager_set_geofence_state_changed_cb() function:

      -
      -geofence_manager_set_geofence_state_changed_cb(manager, geofence_state_changed, NULL);
      -
    2. - -
    3. When the alert is received, you can use the callback to, for example, update the variables that store the current state:

      -
      -geofence_state_e received_state;
      -void 
      -geofence_state_changed(int geofence_id, geofence_state_e state, void *user_data)
      -{
      -   received_state = state;
      -}
      -
      -
    - -

    Tracking the User for Geofence Alerts

    -- 2.7.4