Package com.castlabs.sdk.viisights

# Class ViisightsDecorator

java.lang.Object
com.castlabs.sdk.viisights.ViisightsDecorator

public class ViisightsDecorator extends Object
ViisightsDecorator is a utility class that integrates with the PlayerController to load and parse Viisights data from a given URI, and provides scene information based on the current playback position.

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static interface`
  `ViisightsDecorator.Callback`
  Callback interface to notify about scene changes and model readiness.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ViisightsDecorator()`
  Default constructor for ViisightsDecorator.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `bind(Uri url, PlayerController playerController, ViisightsDecorator.Callback callback)`
  Binds the ViisightsDecorator to a PlayerController and starts loading the model from the given URI.
  `void`
  `unbind()`
  Unbinds the ViisightsDecorator from the PlayerController and clears references.

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ViisightsDecorator

    public ViisightsDecorator()
    Default constructor for ViisightsDecorator.

- ## Method Details

  - ### bind

    public void bind(Uri url, PlayerController playerController, ViisightsDecorator.Callback callback)
    Binds the ViisightsDecorator to a PlayerController and starts loading the model from the given URI.
    Parameters:
      `url` - The URI to load the Viisights data from.
      `playerController` - The PlayerController to bind to.
      `callback` - The callback to notify about scene changes and model readiness.

  - ### unbind

    public void unbind()
    Unbinds the ViisightsDecorator from the PlayerController and clears references.