Package io.anyline2.sdk
Class ScanViewConfigHolder
-
- All Implemented Interfaces:
public final class ScanViewConfigHolder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
ScanViewConfigHolder.ModifyViewConfigResult
public interface
ScanViewConfigHolder.ScanViewConfigHolderChangeListener
public class
ScanViewConfigHolder.ScanViewJsonValidationResult
-
Method Summary
Modifier and Type Method Description final CameraConfig
getCameraConfigOrDefault()
final FlashConfig
getFlashConfigOrDefault()
final JSONObject
toJsonObject()
final Unit
modifyViewConfig(Function1<ScanViewConfiguration, ScanViewConfigHolder.ModifyViewConfigResult> applyBlock)
final static ScanViewConfigHolder
fromJsonObject(Context context, JSONObject jsonConfig, ScanViewInitializationParameters initializationParameters)
final static ScanViewConfigHolder
fromJsonObject(Context context, JSONObject jsonConfig)
final static ScanViewConfigHolder.ScanViewJsonValidationResult
validateJsonObject(Context context, JSONObject jsonConfig)
-
-
Method Detail
-
getCameraConfigOrDefault
final CameraConfig getCameraConfigOrDefault()
-
getFlashConfigOrDefault
final FlashConfig getFlashConfigOrDefault()
-
toJsonObject
final JSONObject toJsonObject()
-
modifyViewConfig
@ApiStatus.Experimental() final Unit modifyViewConfig(Function1<ScanViewConfiguration, ScanViewConfigHolder.ModifyViewConfigResult> applyBlock)
-
fromJsonObject
@JvmOverloads() final static ScanViewConfigHolder fromJsonObject(Context context, JSONObject jsonConfig, ScanViewInitializationParameters initializationParameters)
-
fromJsonObject
@JvmOverloads() final static ScanViewConfigHolder fromJsonObject(Context context, JSONObject jsonConfig)
-
validateJsonObject
final static ScanViewConfigHolder.ScanViewJsonValidationResult validateJsonObject(Context context, JSONObject jsonConfig)
-
-
-
-