VizblAR

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val lastAddedInstanceId: InstanceId?

The unique identifier of the most recently added instance, or null if no instances have been added.

Link copied to clipboard
open override val placedObjects: List<ARPlacedObject>

The collection of all 3D objects currently placed within the AR scene.

Link copied to clipboard
open override val selectedInstanceId: InstanceId?

The unique identifier of the currently selected instance, or null if no instance is selected.

Link copied to clipboard

The current configuration for AR view layers and visual settings. Defines how the 3D content and UI overlays are rendered.

Functions

Link copied to clipboard
open suspend override fun add(model: ARObjectReference, configuration: ARObjectConfiguration.() -> Unit): InstanceId

Adds a new 3D object to the AR scene using a model reference.

Link copied to clipboard
open override fun capture(view: SurfaceView, fileName: String?, onSuccess: (Uri) -> Unit)

Captures the current frame of the specified SurfaceView and saves it to storage.

Link copied to clipboard
open override fun captureAndShare(view: SurfaceView, text: String?, onSuccess: (Uri) -> Unit)

Captures the current frame of the specified SurfaceView and launches a system share dialog.

Link copied to clipboard
open override fun clearCache()

Clears all cached resources utilized by the AR session.

Link copied to clipboard
open override fun dismiss()

Closes the AR experience and releases associated resources.

Link copied to clipboard
open override fun pauseSession()

Pauses the current AR session, halting rendering and tracking.

Link copied to clipboard
open override fun remove(instanceId: InstanceId)

Removes a placed object from the scene using its instance identifier.

Link copied to clipboard
open override fun removeAll()

Removes all placed objects from the current scene.

Link copied to clipboard
open suspend override fun replace(instanceId: InstanceId, with: ARObjectReference, configuration: ARObjectConfiguration.() -> Unit): InstanceId

Replaces an existing AR object with a new one.

Link copied to clipboard
open override fun resumeSession()

Resumes a previously paused AR session.

Link copied to clipboard
fun setSession(session: Session)

Updates the current Session.

Link copied to clipboard
open override fun startQRScanner()

Initializes and starts the QR code scanning process using the device camera.

Link copied to clipboard
open override fun stopCapture()

Cancels any ongoing screen capture operation.