Skip to main content
←API Reference ←NSDK ←NSDKScanningSession

configure

Configures the session with the specified settings.

Declaration​

func configure(with config: Configuration) throws

Summary​

Configures the session with the specified settings.

Throws​

  • NSDKError.invalidArgument if the configuration is invalid. Check NSDK's C logs for more information.
Notice

Attention: This method must be called while the session is stopped, or else configuration will fail. In that case, while this function returns without throwing, configuration will still fail asynchronously. Use featureStatus() to check that configuration has not failed.

Parameters​

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