WorldScaleSceneView

fun WorldScaleSceneView(arcGISScene: ArcGISScene, modifier: Modifier = Modifier, worldScaleTrackingMode: WorldScaleTrackingMode = remember { WorldScaleTrackingMode.World() }, clippingDistance: Double? = null, onInitializationStatusChanged: (WorldScaleSceneViewStatus) -> Unit? = null, onTrackingErrorChanged: (Throwable?) -> Unit? = null, onViewpointChangedForCenterAndScale: (Viewpoint) -> Unit? = null, onViewpointChangedForBoundingGeometry: (Viewpoint) -> Unit? = null, graphicsOverlays: List<GraphicsOverlay> = remember { emptyList() }, worldScaleSceneViewProxy: WorldScaleSceneViewProxy = remember { WorldScaleSceneViewProxy() }, viewLabelProperties: ViewLabelProperties = remember { ViewLabelProperties() }, selectionProperties: SelectionProperties = remember { SelectionProperties() }, isAttributionBarVisible: Boolean = true, onAttributionTextChanged: (String) -> Unit? = null, onAttributionBarLayoutChanged: (AttributionBarLayoutChangeEvent) -> Unit? = null, analysisOverlays: List<AnalysisOverlay> = remember { emptyList() }, imageOverlays: List<ImageOverlay> = remember { emptyList() }, timeExtent: TimeExtent? = null, onTimeExtentChanged: (TimeExtent?) -> Unit? = null, sunTime: Instant = SceneViewDefaults.DefaultSunTime, sunLighting: LightingMode = LightingMode.NoLight, ambientLightColor: Color = SceneViewDefaults.DefaultAmbientLightColor, onNavigationChanged: (isNavigating: Boolean) -> Unit? = null, onSpatialReferenceChanged: (spatialReference: SpatialReference?) -> Unit? = null, onLayerViewStateChanged: (GeoView.GeoViewLayerViewStateChanged) -> Unit? = null, onInteractingChanged: (isInteracting: Boolean) -> Unit? = null, onCurrentViewpointCameraChanged: (camera: Camera) -> Unit? = null, onRotate: (RotationChangeEvent) -> Unit? = null, onScale: (ScaleChangeEvent) -> Unit? = null, onUp: (UpEvent) -> Unit? = null, onDown: (DownEvent) -> Unit? = null, onSingleTapConfirmed: (SingleTapConfirmedEvent) -> Unit? = null, onDoubleTap: (DoubleTapEvent) -> Unit? = null, onLongPress: (LongPressEvent) -> Unit? = null, onTwoPointerTap: (TwoPointerTapEvent) -> Unit? = null, onPan: (PanChangeEvent) -> Unit? = null, content: @Composable WorldScaleSceneViewScope.() -> Unit? = null)

A scene view that provides a world-scale augmented reality experience.

Note: You must follow Google's user privacy requirements for ARCore when using WorldScaleSceneView in your application.

Since

200.7.0

Parameters

arcGISScene

the ArcGISScene to be rendered by this WorldScaleSceneView.

modifier

Modifier to be applied to the WorldScaleSceneView.

worldScaleTrackingMode

the type of tracking configuration used by the WorldScaleSceneView. Determines how the position and orientation of the device is obtained and synchronized with the scene view's camera.

clippingDistance

the clipping distance in meters around the scene view's camera. A null value means that no data will be clipped.

onInitializationStatusChanged

lambda invoked when the initialization status of this WorldScaleSceneView changes.

onTrackingErrorChanged

lambda invoked when a tracking error occurs. This will be called with a null error when the tracking error is resolved. Tracking errors may occur after the WorldScaleSceneView has been initialized and are transient in nature.

onViewpointChangedForCenterAndScale

lambda invoked when the viewpoint changes, passing a viewpoint type of ViewpointType.CenterAndScale.

onViewpointChangedForBoundingGeometry

lambda invoked when the viewpoint changes, passing a viewpoint type of ViewpointType.BoundingGeometry.

graphicsOverlays

graphics overlays used by the WorldScaleSceneView.

worldScaleSceneViewProxy

the WorldScaleSceneViewProxy to associate with the WorldScaleSceneView.

viewLabelProperties

the ViewLabelProperties used by the WorldScaleSceneView.

selectionProperties

the SelectionProperties used by the WorldScaleSceneView.

isAttributionBarVisible

true if attribution bar is visible in the WorldScaleSceneView, false otherwise.

onAttributionTextChanged

lambda invoked when the attribution text of the WorldScaleSceneView has changed.

onAttributionBarLayoutChanged

lambda invoked when the attribution bar's position or size changes.

analysisOverlays

analysis overlays that render the results of 3D visual analysis on the WorldScaleSceneView.

imageOverlays

image overlays for displaying images in the WorldScaleSceneView.

timeExtent

the TimeExtent used by the WorldScaleSceneView.

onTimeExtentChanged

lambda invoked when the WorldScaleSceneView's TimeExtent is changed.

sunTime

the position of the sun in the WorldScaleSceneView based on a specific date and time.

sunLighting

the type of ambient sunlight and shadows in the WorldScaleSceneView.

ambientLightColor

the color of the WorldScaleSceneView's ambient light.

onNavigationChanged

lambda invoked when the navigation status of the WorldScaleSceneView has changed.

onSpatialReferenceChanged

lambda invoked when the spatial reference of the WorldScaleSceneView has changed.

onLayerViewStateChanged

lambda invoked when the WorldScaleSceneView's layer view state is changed.

onInteractingChanged

lambda invoked when the user starts and ends interacting with the WorldScaleSceneView.

onCurrentViewpointCameraChanged

lambda invoked when the viewpoint camera of the WorldScaleSceneView has changed.

onRotate

lambda invoked when a user performs a rotation gesture on the WorldScaleSceneView.

onScale

lambda invoked when a user performs a pinch gesture on the WorldScaleSceneView.

onUp

lambda invoked when the user removes all their pointers from the WorldScaleSceneView.

onDown

lambda invoked when the user first presses on the WorldScaleSceneView.

onSingleTapConfirmed

lambda invoked when the user taps once on the WorldScaleSceneView. The SingleTapConfirmedEvent.mapPoint passed to this lambda is calculated by performing a hit test against objects in the camera feed using ARCore's Depth API. If the device does not support the Depth API, the hit test will be calculated against detected planes in the camera feed. If no hits are detected at the tapped point, the mapPoint will be null. For more information, see the Depth API and Hit result types.

onDoubleTap

lambda invoked the user double taps on the WorldScaleSceneView.

onLongPress

lambda invoked when a user holds a pointer on the WorldScaleSceneView.

onTwoPointerTap

lambda invoked when a user taps two pointers on the WorldScaleSceneView.

onPan

lambda invoked when a user drags a pointer or pointers across WorldScaleSceneView.

content

the content of the WorldScaleSceneView.