#pragma once #include #include #include #include #include namespace mbgl { class GeometryTile; class AsyncRequest; class GeometryTileSource : private util::noncopyable { public: virtual ~GeometryTileSource() = default; using Callback = std::function, optional modified, optional expires)>; /* * Monitor the tile held by this object for changes. When the tile is loaded for the first time, * or updates, the callback is executed. If an error occurs, the first parameter will be set. * Otherwise it will be null. If there is no data for the requested tile, the second parameter * will be null. * * To cease monitoring, release the returned Request. */ virtual std::unique_ptr monitorTile(const Callback&) = 0; }; } // namespace mbgl