Class EasyARMegaComponent
- Namespace
- easyar
EasyARMegaComponent Mega component defined in the xrframe framework. Components are the basic logical units of an xrframe scene, and their lifecycle is controlled by xrframe. For details, see 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 must not be used after closing.
closeSession(): void;
Returns
{void}
createSession(sessionConfigs)
Create EasyARSession. Returns null when creation fails.
createSession(sessionConfigs: SessionConfigs): EasyARSession | null;
Parameters
sessionConfigsParameters required to create EasyARSession.
Returns
{EasyARSession | null}