SceneView

fun SceneView(scene: Scene, modifier: Modifier = Modifier, sceneController: SceneController, onTap: (Feature?) -> Unit = { _ -> }, onAvatarTap: (String) -> Unit = { _ ->}, onViewPointChanged: () -> Unit = {}, onFinishLoading: () -> Unit = {})

Composable function that creates a SceneView and binds it to the provided scene and scene controller.

Parameters

scene

The scene to be displayed in the SceneView.

modifier

The modifier for styling or positioning the SceneView. Default is Modifier.

sceneController

The SceneController instance for controlling the SceneView.

onTap

The callback function to be invoked when a feature is tapped in the SceneView. Default is an empty lambda.

onAvatarTap

The callback function to be invoked when an avatar is tapped in the SceneView. Default is an empty lambda.

onViewPointChanged

The callback function to be invoked when the viewpoint of the SceneView changes. Default is an empty lambda.

onFinishLoading

The callback function to be invoked when the SceneView finishes loading. Default is an empty lambda.