Viewfinder Deserializer#

Defined in package com.scandit.datacapture.core.ui.serialization

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 viewfinder have to be called on the same thread.

ViewfinderDeserializer#
class ViewfinderDeserializer

Added in version 6.3.0

A deserializer to construct viewfinders from JSON.

Related topics: Serialization.

ViewfinderDeserializer()#
ViewfinderDeserializer()

Added in version 6.3.0

Creates a new deserializer object.

warnings#
@NonNull List<@NonNull String> getWarnings()

Added in version 6.3.0

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

viewfinderFromJson(jsonData)#
@NonNull Viewfinder viewfinderFromJson(@NonNull String jsonData)

Added in version 6.3.0

Deserializes a viewfinder from JSON.

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