Created
October 11, 2018 18:38
-
-
Save owahltinez/e4ab2fda641f1b225f879d97c30495da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val surfaceView = findViewById<SurfaceView>(...) | |
surfaceView.holder.addCallback(object : SurfaceHolder.Callback { | |
override fun surfaceCreated(holder: SurfaceHolder) { | |
// We do not need to specify image format, and it will be considered of type PRIV | |
// Surface is now ready and we could use it as an output target for CameraSession | |
} | |
... | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment