bind

open override fun bind(context: Context, surfaceView: SurfaceView)

Binds the camera preview to this location source.

Call it in either order with start — a source that was already started begins feeding ARCore as soon as a view is bound. Bind one view at a time: to replace it, unbind the previous one first.

Parameters

context

The context used to create the ARCore session.

surfaceView

The view the camera feed is rendered into.