IObserver Interface<DataT>

An observer that can be subscribed to changes of an IObservable

The object-oriented version of the ObserverCallback

Type parameters

  • DataT

    The type of the data being observed.

Hierarchy

  • IObserver
Usage of the SDK constitutes your agreement with the Matterport SDK Agreement. Email developers@matterport.com with any questions.

Index

Methods

Methods

onChanged

  • onChanged(data: DataT): void
  • Called when the data in the IObservable has changed.

    Parameters

    • data: DataT

    Returns void