Table of Contents

Class EasyARMegaComponent

命名空間
easyar

EasyARMegaComponent 在xrframe框架中定義的Mega元件。元件是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

createSession(sessionConfigs: SessionConfigs): EasyARSession | null;

參數

sessionConfigs

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

傳回值

{EasyARSession | null}