Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. val previewObservable = captureSessionConfiguredObservable
  2. .flatMap { cameraCaptureSession ->
  3. Timber.d("\tstartPreview")
  4. val previewBuilder = createCaptureRequestBuilder(cameraCaptureSession.device)
  5. cameraRxWrapper.getCaptureSessionDataObservable(cameraCaptureSession, previewBuilder.build(), backgroundExecutor.handler!!)
  6. }
  7. .share()
  8.  
  9. Observables
  10. .combineLatest(previewObservable, onPauseSubject) { state, _ -> state }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement