Skip to main content
←API Reference ←com.nianticspatial.nsdk.scanning ←ScanningSession

configure


Declaration​

fun configure(config: ScannerConfig)

Summary​

Configure the session with the specified settings.


> Note: It is only valid to call this when the session is stopped.
> Note: Configuration is asynchronous and can fail later, even if this call
does not throw an error. Use getFeatureStatus() to check there are no issues.

Throws​

  • ARDKStatusException — with code ARDKStatus.invalidArgument if the configuration is invalid. Check ARDK's C logs for more information.

See also​

  • ScannerConfig

Parameters​

NameTypeSummary
configScannerConfig
An object that defines this session's behavior. Only settings that differ from the defaults will be applied.