At this time PreviewView's API is in a fairly stable state and the code has been well tested. That said, if you're unable to use an alpha library in your application, you can see a more complete example of implementing Preview.SurfaceProvider in the
OpenGL sample code. Keep in mind, this is a fairly advanced sample aimed at applications that want to do custom rendering on top of their camera preview in OpenGL, so if PreviewView meets your needs, I would recommend using it.
The CameraX team is actively working on getting the camera-view artifact to beta. Stay tuned for updates.