Scene

class Scene(venue: Venue) : Loadable

The Scene class represents a 3D map associated with a specific venue.

To instantiate and load a Scene, you need to provide all the required data associated with the venue.

Constructors

Link copied to clipboard
constructor(venue: Venue)

Functions

Link copied to clipboard
suspend fun getFeatures(): List<Feature>

Retrieves the features in the scene asynchronously.

Retrieves the features in the scene asynchronously and provides a completion callback.

suspend fun <T> getFeatures(classType: Class<T>): List<Feature>

Retrieves the features in the scene that match the specified class type asynchronously.

suspend fun getFeatures(keyword: String): List<Feature>

Retrieves the features in the scene that match the specified keyword asynchronously.

fun <T> getFeatures(classType: Class<T>, result: CompletionCallback<List<Feature>>)

Retrieves the features in the scene that match the specified class type asynchronously and provides a completion callback.

Retrieves the features in the scene that match the specified keyword asynchronously and provides a completion callback.

Link copied to clipboard

Retrieves the last known location asynchronously.

Retrieves the last known location asynchronously and provides a completion callback.

Link copied to clipboard
fun getRoutes(origin: Feature, destination: Feature, skiLevel: Level, callback: CompletionCallback<List<Route>>)

Retrieves the routes for the specified origin, destination, and ski level asynchronously.

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

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

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

Downloads the 3D map file asynchronously.

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.

Properties

Link copied to clipboard

Checks if routing is available in the scene.