SceneController

Controller class for managing the SceneView and interacting with the scene.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun display(route: Route, destinationImage: BitmapDrawable, routeColor: Int? = null): Unit?

Display a route in the scene.

Link copied to clipboard
fun displayUserPin(userLocations: List<UserLocation>): Unit?

Display user pins in the scene.

Link copied to clipboard
fun dispose()

Dispose of the SceneView and release associated resources.

Link copied to clipboard

Make the user track on the scene invisible if already rendered.

Link copied to clipboard

Determines whether the user track has been rendered on the scene.

Link copied to clipboard

Determines whether the user track is currently visible on the scene.

Link copied to clipboard
fun load(scene: Scene)

Load a scene onto the SceneView.

Link copied to clipboard
fun removeUserTrack(completionCallback: CompletionCallback<Boolean>? = null): Unit?

Removes the user track feature layer from the scene's operational layers.

Link copied to clipboard
fun renderUserTracks(userId: String? = null, venueId: String? = null, startTimeMilli: Long, endTimeMilli: Long, completionCallback: CompletionCallback<Boolean>? = null): Unit?

Renders the user track feature layer on the scene.

Link copied to clipboard

Rotate the scene to the north.

Link copied to clipboard
fun selectFeature(feature: Feature, autoZoom: Boolean = true): Unit?

Select a feature in the scene.

Link copied to clipboard
fun setInitialViewpoint(isAnimated: Boolean = true): Unit?

Set the initial viewpoint of the scene.

Link copied to clipboard
fun setSceneView(sceneView: SceneView)

Set the SceneView instance to be controlled by this controller.

Link copied to clipboard

Make the user track on the scene visible if already rendered.

Link copied to clipboard
fun startLocationDisplay(listener: LocationDisplayErrorListener? = null, customLocationDataSource: LocationDataSource? = null): Unit?

Start displaying the current user's location in the scene.

Link copied to clipboard
fun startNavigation(route: Route, destinationImage: BitmapDrawable? = null, traversedRouteColor: Int? = null, remainingRouteColor: Int? = null): RouteTracker?

Start navigation in the scene using a given route.

Link copied to clipboard

Stop the current navigation in the scene.

Link copied to clipboard
fun unload()

Unload the currently loaded scene from the SceneView.

Link copied to clipboard

Unselect the currently selected feature in the scene.

Link copied to clipboard
fun zoomToGps(): Unit?

Zoom to the current user's location.

Properties

Link copied to clipboard

Check if the scene is currently at the default rotation.