open
Declaration
@JvmStatic fun open(datasetPath: String): PlaybackDataset?
Summary
Returns
The dataset, or null if it cannot be opened or parsed.
Parameters
| Name | Type | Summary |
|---|---|---|
| datasetPath | String | - |
Overload
suspend fun open(scanId: String, onProgress: (Double) -> Unit): PlaybackDataset
Summary
Opens a scan's recording through the active com.nianticspatial.nsdk.NSDKSession's
playback cachecom.nianticspatial.nsdk.NSDKSession.playbackCache; see
PlaybackCacheSession.open.
Uses the active session; create and authorize it first. Calling close() on the session
ends an open in flight with PlaybackOpenError.SESSION_ENDED.
Throws
PlaybackOpenException— withPlaybackOpenError.NO_SESSIONif no session is active, and otherwise whatPlaybackCacheSession.openthrows.
Parameters
| Name | Type | Summary |
|---|---|---|
| scanId | String | - |
| onProgress | (Double) -> Unit | - |
Opens the dataset at
datasetPath: a filesystem directory, orasset://<directory>for adirectory in the application APK's assets, e.g.
"asset://playback/my_capture"forsrc/main/assets/playback/my_capture/.