Documentation
    Preparing search index...

    Class AssetCameraSdkFacade

    Facade for controlled, external interaction with the AssetCameraRenderPlugin.

    Hierarchy (View Summary)

    Index

    Properties

    emitter: Emitter<AssetCameraSdkFacadeEvents> = ...

    An event emitter for handling custom events.

    Methods

    • Adds an event listener for a specific event.

      Type Parameters

      • K extends "onCameraMove"

        The type of the event key.

      Parameters

      • event: K

        The event to listen to.

      • listener: (eventData: AssetCameraSdkFacadeEvents[K]) => void

        The callback function to be invoked when the event is emitted.

      Returns { remove: () => void }

      An object with a remove method to unsubscribe the listener.

    • Animates the camera to a specific angle.

      Parameters

      • angleOptions: Pick<LookAt, "pitch" | "roll" | "yaw">
      • animationDurationMs: number = 0

        The duration of the animation in milliseconds. Defaults to 0 for an instant change.

      Returns Promise<void>

      A promise that resolves when the animation is complete.

      Part of required API for Multivista. Only needs to change the angle, not the position.