* @return 0 on success, otherwise a negative error value
* @retval #GEOFENCE_MANAGER_ERROR_NONE Successful
* @retval #GEOFENCE_MANAGER_ERROR_INVALID_PARAMETER Illegal argument
+ * @retval #GEOFENCE_MANAGER_ERROR_PERMISSION_DENIED The application does not have the privilege to call this function
* @retval #GEOFENCE_MANAGER_ERROR_EXCEPTION Exception occurred
* @retval #GEOFENCE_MANAGER_ERROR_PLACE_ACCESS_DENIED Access to specified place is denied
* @see geofence_create_bluetooth()
* @return 0 on success, otherwise a negative error value
* @retval #GEOFENCE_MANAGER_ERROR_NONE Successful
* @retval #GEOFENCE_MANAGER_ERROR_INVALID_PARAMETER Illegal argument
+ * @retval #GEOFENCE_MANAGER_ERROR_PERMISSION_DENIED The application does not have the privilege to call this function
* @retval #GEOFENCE_MANAGER_ERROR_EXCEPTION Exception occurred
* @retval #GEOFENCE_MANAGER_ERROR_PLACE_ACCESS_DENIED Access to specified place is denied
* @see geofence_create_geopoint()
* @return 0 on success, otherwise a negative error value
* @retval #GEOFENCE_MANAGER_ERROR_NONE Successful
* @retval #GEOFENCE_MANAGER_ERROR_INVALID_PARAMETER Illegal argument
+ * @retval #GEOFENCE_MANAGER_ERROR_PERMISSION_DENIED The application does not have the privilege to call this function
* @retval #GEOFENCE_MANAGER_ERROR_EXCEPTION Exception occurred
* @retval #GEOFENCE_MANAGER_ERROR_PLACE_ACCESS_DENIED Access to specified place is denied
* @see geofence_create_geopoint()
* @return 0 on success, otherwise a negative error value
* @retval #GEOFENCE_MANAGER_ERROR_NONE Successful
* @retval #GEOFENCE_MANAGER_ERROR_INVALID_PARAMETER Illegal argument
+ * @retval #GEOFENCE_MANAGER_ERROR_PERMISSION_DENIED The application does not have the privilege to call this function
* @see geofence_create_geopoint()
* @see geofence_create_bluetooth()
* @see geofence_create_wifi()
if (__is_geofence_feature_enabled() == false)
return GEOFENCE_MANAGER_ERROR_NOT_SUPPORTED;
+ int ret = GEOFENCE_MANAGER_ERROR_NONE;
+ ret = geofence_get_privacy();
+ if (ret != GEOFENCE_MANAGER_ERROR_NONE) {
+ GEOFENCE_LOGE("Cannot use geofence service for privacy[%d]", ret);
+ return __print_error_code(GEOFENCE_MANAGER_ERROR_PERMISSION_DENIED);
+ }
+
GEOFENCE_NULL_ARG_CHECK(fence);
GEOFENCE_NULL_ARG_CHECK(address);
GEOFENCE_CHECK_CONDITION(place_id > 0, GEOFENCE_MANAGER_ERROR_INVALID_PARAMETER, "GEOFENCE_MANAGER_ERROR_INVALID_PARAMETER");
if (__is_geofence_feature_enabled() == false)
return GEOFENCE_MANAGER_ERROR_NOT_SUPPORTED;
+ int ret = GEOFENCE_MANAGER_ERROR_NONE;
+ ret = geofence_get_privacy();
+ if (ret != GEOFENCE_MANAGER_ERROR_NONE) {
+ GEOFENCE_LOGE("Cannot use geofence service for privacy[%d]", ret);
+ return __print_error_code(GEOFENCE_MANAGER_ERROR_PERMISSION_DENIED);
+ }
+
GEOFENCE_NULL_ARG_CHECK(fence);
GEOFENCE_NULL_ARG_CHECK(bssid);
GEOFENCE_NULL_ARG_CHECK(ssid);
if (__is_geofence_feature_enabled() == false)
return GEOFENCE_MANAGER_ERROR_NOT_SUPPORTED;
+ int ret = GEOFENCE_MANAGER_ERROR_NONE;
+ ret = geofence_get_privacy();
+ if (ret != GEOFENCE_MANAGER_ERROR_NONE) {
+ GEOFENCE_LOGE("Cannot use geofence service for privacy[%d]", ret);
+ return __print_error_code(GEOFENCE_MANAGER_ERROR_PERMISSION_DENIED);
+ }
+
GEOFENCE_NULL_ARG_CHECK(fence);
GEOFENCE_NULL_ARG_CHECK(bssid);
GEOFENCE_NULL_ARG_CHECK(ssid);
if (__is_geofence_feature_enabled() == false)
return GEOFENCE_MANAGER_ERROR_NOT_SUPPORTED;
+ int ret = GEOFENCE_MANAGER_ERROR_NONE;
+ ret = geofence_get_privacy();
+ if (ret != GEOFENCE_MANAGER_ERROR_NONE) {
+ GEOFENCE_LOGE("Cannot use geofence service for privacy[%d]", ret);
+ return __print_error_code(GEOFENCE_MANAGER_ERROR_PERMISSION_DENIED);
+ }
+
GEOFENCE_NULL_ARG_CHECK(fence);
geofence_parameter_free((geofence_s *)fence);
return GEOFENCE_MANAGER_ERROR_NONE;