이 페이지는 현재 영어로만 제공되며 한국어 버전은 곧 제공될 예정입니다. 기다려 주셔서 감사드립니다.
Feedback

CameraView

Introduction

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.
Note:
This class is only available on Android platform.

Features

Camera Preview: Used to display real-time view during camera testing.
Multiple Construction Methods: Supports multiple constructors for different use cases.

API List

Function
Description
Constructor.
Constructor.
Constructor.

Creating Instance

CameraView(Context)

Constructor.

CameraView(Context, AttributeSet)

Constructor.

CameraView(Context, AttributeSet, Int)

Constructor.

Usage Example

// Method 1: Create via Context
val cameraView = CameraView(context)
// Method 2: 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" />