SceneViewUtility QML Type

A utility that contains methods to apply to all SceneView objects. More...

Import Statement: import Esri.ArcGISRuntime 100.15
Since: Esri.ArcGISRuntime 100.3
Inherits:

Object

Properties

Signals

Detailed Description

Currently, this type only applies to Android, but could be expanded in the future to apply to other platforms.

Note: You cannot declare or create a component of this type in QML code. Rather, an instance is automatically created and only that single instance is available for use in the application.

Property Documentation

memoryLimit : int

The total memory (in bytes) that a process can use for rendering scene data (Android only).

The memory limit is set by default upon initialization of the first SceneView instance and this should be sufficient for most use cases. Before any SceneView instance has been created, zero is returned.

For some use cases you might want to choose to override the default to increase or reduce the limit. In those cases, set this property before instantiating any SceneView objects. If you choose to override this limit, consider the device's recommended memory limits. You can get that value from ActivityManager.getLargeMemoryClass().

The default value is determined as follows:

  • If ActivityManager.getLargeMemoryClass() is greater than 1 gigabyte, then that value is used as the default value.
  • Otherwise, check whether 45% of total system memory android.app.ActivityManager.MemoryInfo.totalMem is less than 1 gigabyte. If so, then that value is used as the default value.
  • Otherwise, the default value is 1 gigabyte.

Signal Documentation

memoryLimitChanged()

Emitted when the memoryLimit property changes (Android only).

Note: The corresponding handler is onMemoryLimitChanged.


Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.