Skip to content

Spren 2.0.0

Compare
Choose a tag to compare
@kevin-spren kevin-spren released this 15 Jul 21:58
· 15 commits to main since this release

Spren

2.0.0 SprenCapture (2022-07-13)

2.0.0 SprenCore (2022-07-13)

Breaking changes in 2.x

SprenCapture and Spren

var autoStart = true (Replace with sprenCapture?.reset())
fun setTorchMode(torch: Boolean): Boolean (Replace with fun turnFlashOn())
fun dropComplexity(): Boolean (no need to handle anymore)
fun handleOverExposure() (no need to handle anymore)
Spren.setOnPrereadingComplianceCheck { name, compliant, action -> } (Replace with SprenEventManager.subscribe(SprenEvent.COMPLIANCE, ::complianceListener))
Spren.setOnStateChange { state, sprenError -> } (Replace with SprenEventManager.subscribe(SprenEvent.STATE, ::stateListener))
Spren.setOnProgressUpdate { progress -> } (Replace with 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