Method
MaplibreNativeFfiRuntimecreate_offline_region_async
Declaration [src]
void
maplibre_native_ffi_runtime_create_offline_region_async (
MaplibreNativeFfiRuntime* self,
const MaplibreNativeFfiOfflineRegionDefinition* definition,
GBytes* metadata,
GAsyncReadyCallback callback,
gpointer user_data
)
Description [src]
Creates an offline region in the runtime’s cache file.
metadata holds any bytes to store with the region, such as its name. The
region doesn’t download until
maplibre_native_ffi_runtime_set_offline_region_download_state_async() makes
its download active.
See mln_runtime_create_offline_region in the
C API reference.
This method completes asynchronously. Use maplibre_native_ffi_runtime_create_offline_region_finish() inside the GAsyncReadyCallback to obtain the result of the operation.
Parameters
definition-
Type:
MaplibreNativeFfiOfflineRegionDefinitionNo description available.
The data is owned by the caller of the method. metadata-
Type:
GBytesThe bytes.
The data is owned by the caller of the method. 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.