EasyARMegaComponent Class¶
Description¶
在xrframe框架中定义的Mega组件。 组件是xrframe scene的基本逻辑单位,并且生命周期由xrframe控制。 详细内容请参考,XrFramework官方文档: <https://developers.weixin.qq.com/miniprogram/dev/component/xr-frame/core/component.html> 。
Properties¶
schema¶
TypeScript
schema: xrfs.IComponentSchema
schema
Methods¶
createSession¶
TypeScript
createSession(sessionConfigs: `SessionConfigs`_ ): `EasyARSession`_
sessionConfigs: SessionConfigs ; 用于创建 EasyARSession 所需要的参数。 创建 EasyARSession 。创建失败时返回`null`。
closeSession¶
TypeScript
closeSession(): void
关闭EasyARSession。关闭后不可再使用。