Method
MaplibreNativeFfiRuntimemerge_offline_regions_async
Declaration [src]
void
maplibre_native_ffi_runtime_merge_offline_regions_async (
MaplibreNativeFfiRuntime* self,
const char* side_database_path,
GAsyncReadyCallback callback,
gpointer user_data
)
Description [src]
Copies the offline regions of another cache file into the runtime’s cache file.
A region whose definition and metadata match one that the runtime’s file already has isn’t copied again. The result lists the runtime’s copy of each region in the other file.
See mln_runtime_merge_offline_regions in the
C API reference.
It fails with these errors:
MAPLIBRE_NATIVE_FFI_ERROR_INVALID_ARGUMENTwhenside_database_pathisn’t a readable database file.MAPLIBRE_NATIVE_FFI_ERROR_NATIVE_ERRORwhen the merge would exceed the tile limit thatMAPLIBRE_NATIVE_FFI_RUNTIME_EVENT_OFFLINE_REGION_TILE_COUNT_LIMIT_EXCEEDEDdescribes.
This method completes asynchronously. Use maplibre_native_ffi_runtime_merge_offline_regions_finish() inside the GAsyncReadyCallback to obtain the result of the operation.
Parameters
side_database_path-
Type:
const char*The UTF-8 text.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. callback-
Type:
GAsyncReadyCallbackThe callback to call when the call finishes.
The argument can be NULL. user_data-
Type:
gpointerThe data to pass to
callback.The argument can be NULL.The data is owned by the caller of the method.