setMemoryManagementOptions abstract method

void setMemoryManagementOptions(
  1. MapContextMemoryManagementOptions memoryManagementOptions,
  2. MapContextSetMemoryManagementOptionsCallback? callback
)

Sets memory management options for controlling tile cache and video memory usage.

In MapContextMemoryManagementOptions optional parameters with null or non-positive values will be ignored, preserving their existing settings. The maximum memory limit allowed in kibiBytes is (std::numeric_limitsstd::size_t::max() / 1024). The value will be clamped to maximum value in this case and applied.

Note: This is a beta release of this feature and may contain bugs or exhibit unexpected behaviour. Related APIs are subject to change without a deprecation process.

  • memoryManagementOptions The memory management options to set.

  • callback Optional callback used upon completion to pass the return value to the caller. The callback is called from an arbitrary thread.

Implementation

void setMemoryManagementOptions(MapContextMemoryManagementOptions memoryManagementOptions, MapContextSetMemoryManagementOptionsCallback? callback);