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}