Table of Contents

Class EasyARMegaComponent

Namespace
easyar

EasyARMegaComponent is a Mega component defined in the xrframe framework. Components are the basic logical units of the xrframe scene, and their lifecycle is controlled by xrframe. For details, please refer to the official XrFramework documentation: <https://developers.weixin.qq.com/miniprogram/dev/component/xr-frame/core/component.html>.

Inheritance
EasyARMegaComponent

Methods

schema

readonly schema: xrfs.IComponentSchema;

Returns

closeSession()

Close EasyARSession. It cannot be used after closing.

closeSession(): void;

Returns

{void}

createSession(sessionConfigs)

Create EasyARSession. Returns null if creation fails.

createSession(sessionConfigs: SessionConfigs): EasyARSession | null;

Parameters

sessionConfigs

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

Returns

{EasyARSession | null}