Spren 2.0.0
Spren
2.0.0 SprenCapture (2022-07-13)
2.0.0 SprenCore (2022-07-13)
Breaking changes in 2.x
SprenCapture
and Spren
(Replace with var autoStart = true
sprenCapture?.reset()
)
(Replace with fun setTorchMode(torch: Boolean): Boolean
fun turnFlashOn()
)
(no need to handle anymore)fun dropComplexity(): Boolean
(no need to handle anymore)fun handleOverExposure()
(Replace with Spren.setOnPrereadingComplianceCheck { name, compliant, action -> }
SprenEventManager.subscribe(SprenEvent.COMPLIANCE, ::complianceListener)
)
(Replace with Spren.setOnStateChange { state, sprenError -> }
SprenEventManager.subscribe(SprenEvent.STATE, ::stateListener)
)
(Replace with Spren.setOnProgressUpdate { progress -> }
SprenEventManager.subscribe(SprenEvent.PROGRESS, ::progressListener)
)
Add SprenEventManager.unsubscribe(SprenEvent.COMPLIANCE, ::complianceListener)
Add SprenEventManager.unsubscribe(SprenEvent.STATE, ::stateListener)
Add SprenEventManager.unsubscribe(SprenEvent.PROGRESS, ::progressListener)
Note
For more information about the integration, visit the docs