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()

closeSession 關閉EasyARSession。關閉後不可再使用。

closeSession(): void;

傳回值

{void}

createSession(sessionConfigs)

createSession 創建 EasyARSession 。創建失敗時返回null

createSession(sessionConfigs: SessionConfigs): EasyARSession | null;

參數

sessionConfigs

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

傳回值

{EasyARSession | null}