Package com.castlabs.sdk.viisights
Class ViisightsDecorator
java.lang.Object
com.castlabs.sdk.viisights.ViisightsDecorator
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 ClassesModifier and TypeClassDescriptionstatic interfaceCallback interface to notify about scene changes and model readiness. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbind(Uri url, PlayerController playerController, ViisightsDecorator.Callback callback) Binds the ViisightsDecorator to a PlayerController and starts loading the model from the given URI.voidunbind()Unbinds the ViisightsDecorator from the PlayerController and clears references.
-
Constructor Details
-
ViisightsDecorator
public ViisightsDecorator()Default constructor for ViisightsDecorator.
-
-
Method Details
-
bind
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.
-