CameraView is a view component specifically designed to display camera preview. When starting camera test, the camera rendering view will be displayed on this view.Function | Description |
Constructor. | |
Constructor. | |
Constructor. | |
Constructor. |
// Method 1: Create via Contextval cameraView = CameraView(context)// Method 2: Create via SurfaceViewval surfaceView = SurfaceView(context)val cameraView = CameraView(surfaceView)// Method 3: Use in XML layout// <io.trtc.tuikit.atomicxcore.api.view.CameraView// android:id="@+id/camera_view"// android:layout_width="match_parent"// android:layout_height="match_parent" />
フィードバック