Skip to main content
←API Reference ←com.nianticspatial.nsdk.sites

ScanInfo

One scan of a site, as the portal lists it.

Declaration​

data class ScanInfo

Constructors​

constructor(id: String, name: String, scanType: ScanType, scanStatus: ScanStatus, durationSeconds: Double, captureTimestamp: Long, createdTimestamp: Long, latitude: Double, longitude: Double, hasLocation: Boolean, totalSize: Long, hasThumbnail: Boolean, hasPreview: Boolean, userId: String)

Parameters​

NameTypeSummary
idString
-
nameString
-
scanTypeScanType
-
scanStatusScanStatus
-
durationSecondsDouble
-
captureTimestampLong
-
createdTimestampLong
-
latitudeDouble
-
longitudeDouble
-
hasLocationBoolean
-
totalSizeLong
-
hasThumbnailBoolean
-
hasPreviewBoolean
-
userIdString
-

Properties​

NameTypeSummary
captureTimestampLong
Earliest capture time in Unix seconds, or 0 if unknown.
createdTimestampLong
Record creation time in Unix seconds, or 0 if unknown.
durationSecondsDouble
Total capture length in seconds. For a chunked scan this sums every chunk, while opening the scan for playback plays only the first.
hasLocationBoolean
Indicates whether [latitude] and [longitude] are valid.
hasPreviewBoolean
The scan has a preview video.
hasThumbnailBoolean
The scan has a thumbnail image.
idString
Scan identifier.
latitudeDouble
Capture latitude (valid only if [hasLocation] is true).
longitudeDouble
Capture longitude (valid only if [hasLocation] is true).
nameString
Display name.
scanStatusScanStatus
Where the scan is in upload and processing.
scanTypeScanType
Scan type; [ScanType.VALIDATION] scans are the ones playback opens.
totalSizeLong
Total size of the scan's capture files in bytes.
userIdString
ID of the user who uploaded the scan; empty for a community scan.