Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. liveCamera.privyCameraLiveness(object : PrivyCameraLivenessCallBackListener {
  2. override fun failed(params: Throwable?) {
  3. Toast.makeText(this@MainActivity, "Error ${params?.localizedMessage}", Toast.LENGTH_LONG).show()
  4. }
  5.  
  6. override fun success(params: LivenessItem?) {
  7. if (params != null) {
  8. imageFirst = params.baseImage1
  9. imageSecond = params.baseImage2
  10.  
  11. kotlin.run {
  12. reloadingCapture()
  13. }
  14. }
  15. }
  16.  
  17. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement