Class EasyARMegaComponent
- Namespace
- easyar
EasyARMegaComponent is a 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, please refer to the XrFramework official documentation: <https://developers.weixin.qq.com/miniprogram/dev/component/xr-frame/core/component.html>.
- Inheritance
-
EasyARMegaComponent
Methods
schema
readonly schema: xrfs.IComponentSchema;
Returns
closeSession()
closeSession closes the EasyARSession. It cannot be used after closing.
closeSession(): void;
Returns
{void}
createSession(sessionConfigs)
createSession creates an EasyARSession. Returns null if creation fails.
createSession(sessionConfigs: SessionConfigs): EasyARSession | null;
Parameters
sessionConfigs用于创建 EasyARSession 所需要的参数。
Returns
{EasyARSession | null}