load

fun load(context: Context, loadingListener: CompletionCallback<Scene>, offlineLoad: Boolean = false)

Downloads the 3D map file asynchronously and provides a completion callback.

This function is responsible for asynchronously downloading a 3D map file. It handles all the tasks related to downloading the map file and checks whether the file is already downloaded or not. The map can only be displayed after a successful download.

Parameters

context

The context used to load the scene.

loadingListener

The callback to handle the loading result.

offlineLoad

Specifies if the scene should be loaded in offline mode.


suspend fun load(context: Context, offlineLoad: Boolean = false, license: String? = null): Scene

Downloads the 3D map file asynchronously.

This function is responsible for asynchronously downloading a 3D map file. It handles all the tasks related to downloading the map file and checks whether the file is already downloaded or not. The map can only be displayed after a successful download.

Return

The loaded scene.

Parameters

context

The context used to load the scene.

offlineLoad

Specifies if the scene should be loaded in offline mode.

license

The license key for the scene.


fun load(context: Context, offlineLoad: Boolean = false, license: String? = null, onComplete: (Scene) -> Unit, onProgress: (Int, Int, Int) -> Unit, onError: (Throwable) -> Unit)

Downloads the 3D map file asynchronously and provides callbacks for different events.

This function is responsible for asynchronously downloading a 3D map file. It handles all the tasks related to downloading the map file and checks whether the file is already downloaded or not. The map can only be displayed after a successful download

Parameters

context

The context used to load the scene.

offlineLoad

Specifies if the scene should be loaded in offline mode.

license

The license key for the scene.

onComplete

The callback invoked when the loading is complete.

onProgress

The callback invoked to report the loading progress.

onError

The callback invoked if an error occurs during loading.