Usage of the SDK constitutes your agreement with the Matterport SDK Agreement. Email developers@matterport.com with any questions.
Index
Types
ModelData
Type declaration
-
model
Supports Vr: boolean -
sid: string
-
sweeps: Sweep.SweepData[]
ModelDetails
Type declaration
-
Optional address?: undefined | string
-
Optional contact
Email?: undefined | string -
Optional contact
Name?: undefined | string -
Optional description?: undefined | string
-
Optional formatted
Address?: undefined | string -
Optional formatted
Contact Phone?: undefined | string -
Optional name?: undefined | string
-
Optional phone?: undefined | string
-
Optional presented
By?: undefined | string -
Optional share
Url?: undefined | string -
sid: string
-
Optional summary?: undefined | string
Methods
getData
-
This function returns basic model information.
This is no longer the canonical way to receive sweep information. See Sweep.data.
mpSdk.Model.getData() .then(function(model) { // Model data retreival complete. console.log('Model sid:' + model.sid); }) .catch(function(error) { // Model data retrieval error. });
Returns Promise<Model.ModelData>
getDetails
-
This function returns model details.
mpSdk.Model.getDetails() .then(function(modelDetails) { // Model details retreival complete. console.log('Model sid:' + modelDetails.sid); console.log('Model name:' + modelDetails.name); console.log('Model summary:' + modelDetails.summary); console.log('Model description:' + modelDetails.description); }) .catch(function(error) { // Model details retrieval error. });
Returns Promise<Model.ModelDetails>