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

Application phases are returned as part of the state observable.

mpSdk.App.state.subscribe(function (appState) {
 if(appState.phase === mpSdk.App.Phase.LOADING) {
   console.log('The app has started loading!')
 }
 if(appState.phase === mpSdk.App.Phase.STARTING) {
   console.log('The transition into the start location begins!')
 }
 if(appState.phase === mpSdk.App.Phase.PLAYING) {
   console.log('The app is ready to take user input now!')
 }
});

Index

Enumeration members

ERROR

ERROR: = "appphase.error"

LOADING

LOADING: = "appphase.loading"

PLAYING

PLAYING: = "appphase.playing"

STARTING

STARTING: = "appphase.starting"

UNINITIALIZED

UNINITIALIZED: = "appphase.uninitialized"

WAITING

WAITING: = "appphase.waiting"