OnViewHandlerArgs: [Element, ViewData]

The handler is invoked with two arguments:

  • The element that is the target of the IntersectionObserver. If the call to ViewWatcher.onView specified an element as the target, it will be the same. If it specified an offset, then the element passed to the callback will be an absolutely positioned trigger overlay that's created as a result.
  • the ViewData for relative to the target