Location Selection Deserializer

Defined in framework ScanditCaptureCore

Warning

The deserialization API is not yet stable and will still change over the coming releases.

Note

This deserializer is not thread-safe, subsequent calls for the same location selection have to be called on the same thread.

LocationSelectionDeserializer
open class LocationSelectionDeserializer : NSObject

Added in version 6.3.0

A deserializer to construct location selections from JSON.

init
init()

Added in version 6.3.0

Creates a new deserializer object.

warnings
open var warnings: Array<String> { get }

Added in version 6.3.0

The warnings produced during deserialization, for example which properties were not used during deserialization.

locationSelection
open func locationSelection(fromJSONString JSONString: String) throws -> any LocationSelection

Added in version 6.3.0

Deserializes a location selection from JSON.

An error is set if the provided JSON does not contain required properties or contains properties of the wrong type.