Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

state callbacks of the modelviewer #22

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

KevinRohn
Copy link

I added following callbacks:

  /// Invoked once when the model viewer is created.
  final VoidCallback onModelViewCreated;

  /// Invoked when the model viewer has finished loading the url.
  final VoidCallback onModelViewStarted;

  /// Invoked when the model viewer has finished loading the url.
  ///
  /// Please note: This function is invoked when the url has finished loading,
  /// but it doesn't represents the finished loading process of the model visibility.
  final VoidCallback onModelViewFinished;

  /// Invoked when the model viewer has loaded the model and the model is visibile.
  /// See: https://modelviewer.dev/docs/#entrydocs-loading-events-modelVisibility
  final VoidCallback onModelIsVisisble;

  /// Invoked when the model viewer has failed to load the resource.
  final ValueChanged<String> onModelViewError;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant