getScene

abstract fun getScene(venue: Venue, offlineMode: Boolean = false, completionCallback: CompletionCallback<String>)

Retrieves a scene for the specified venue asynchronously.

Parameters

venue

The venue for which to retrieve the scene.

offlineMode

Indicates whether to use offline mode for scene retrieval. Default is false.

completionCallback

The callback function to be invoked with the scene data.


abstract suspend fun getScene(venue: Venue, offlineMode: Boolean = false, license: String? = null): String

Retrieves a scene for the specified venue asynchronously.

Return

The scene data as a string.

Parameters

venue

The venue for which to retrieve the scene.

offlineMode

Indicates whether to use offline mode for scene retrieval. Default is false.

license

The license to be used for scene retrieval. Default is null.


abstract fun getScene(venue: Venue, offlineMode: Boolean = false, license: String? = null, onComplete: (String) -> Unit, onProgress: (Int, Int, Int) -> Unit, onError: (Throwable) -> Unit)

Retrieves a scene for the specified venue asynchronously with progress and error callbacks.

Parameters

venue

The venue for which to retrieve the scene.

offlineMode

Indicates whether to use offline mode for scene retrieval. Default is false.

license

The license to be used for scene retrieval. Default is null.

onComplete

The callback function to be invoked when the scene retrieval is complete.

onProgress

The callback function to be invoked to report progress during scene retrieval.

onError

The callback function to be invoked if an error occurs during scene retrieval.