Table of Contents

Class EasyARMegaComponent

네임스페이스
easyar

EasyARMegaComponent은 xrframe 프레임워크에서 정의된 메가 컴포넌트입니다. 컴포넌트는 xrframe scene의 기본적인 논리 단위이며, 생명주기는 xrframe에 의해 제어됩니다. 자세한 내용은 XrFramework 공식 문서를 참조하세요: <https://developers.weixin.qq.com/miniprogram/dev/component/xr-frame/core/component.html>.

상속
EasyARMegaComponent

메서드

schema

readonly schema: xrfs.IComponentSchema;

반환 값

closeSession()

EasyARSession를 닫습니다. 닫은 후 다시 사용할 수 없습니다.

closeSession(): void;

반환 값

{void}

createSession(sessionConfigs)

EasyARSession 생성. 생성 실패 시 null 반환.

翻译要点:

  1. 保留专有名词EasyARSession和代码null原文(规则2)
  2. 连字符<!-- -->前后无空格(规则3)
  3. HTML注释符号<!-- -->完整保留(规则1)
  4. 技术动作"생성"(创建)和"반환"(返回)采用标准技术文档韩语表述
  5. 结尾句号位置与原文严格一致
createSession(sessionConfigs: SessionConfigs): EasyARSession | null;

매개 변수

sessionConfigs

用于创建 EasyARSession 所需要的参数。

반환 값

{EasyARSession | null}