Table of Contents

Namespace easyar

Namespaces

easyar.ema

Namespace

Classes

APIKeyAccessData

EasyAR cloud service authentication data using API Key. Visit EasyAR Developer Center (https://www.easyar.cn) to obtain related data.

BlockController

Component that controls a Mega block in the scene.

BlockHolder

Component that holds Block and manages Block in the scene.

EasyARMegaComponent

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>.

EasyARSession

Controls the AR session in the scene and controls the data flow of the whole lifecycle. This component is the entry point for AR. Multiple active instances are not allowed at the same time. All functions of EasyAR components can be used only after Session initialization is complete.

ExplicitAddressAccessData

EasyAR cloud service authentication data that requires an access address.

MegaLandmarkFilter

Provides point query for MegaLandmark.

MegaTracker

Provides cloud localization.

ServiceAccessData

EasyAR cloud service authentication data.

TokenAccessData

EasyAR cloud service authentication data using token. Visit EasyAR Developer Center (https://www.easyar.cn) to obtain related data.

getMegaSystem

Interfaces

BlockInfo

Information of the Block, which can be obtained through the component.

EasyARWechatMiniprogramPlugin

Methods that can be called directly on the plugin object obtained through requirePlugin("easyar-wechat-miniprogram") after depending on the WeChat Mini Program plugin.

GeoLocation

GPS data.

IEasyARMegaData

Data mounted on EasyARMegaComponent.

IMegaSystem
LocalTransform

Local transform data.

MegaLandmarkFilterResult

Result of the MegaLandmarkFilter Filter.

MegaLocalizationResult

Localization result.

MegaRequestTimeParameters

Mega request time parameters.

MegaTrackerConfigs

Parameters required to create MegaTracker.

MegaTrackerSensorOptions

Sensor options in MegaTracker.

ProximityLocationData

Proximity location data.

SessionConfigs

Parameters required to create EasyARSession.

SessionStartOptions

Optional parameters when starting Session.

Enums

BlockVisibleStrategy

{string} Control strategy for Block Element.visible.

DeviceOrientation

{number} Device orientation

MegaApiType

{number} Mega API type

MegaLandmarkFilterStatus

{number} Query result status of MegaLandmarkFilter.

MegaLocalizationStatus

Localization status enum.

SessionEvent

SessionEvent Events delivered by the XRFrame Element proxy for Session. Events that are not triggered immediately are dispatched before the component lifecycle drive of the current frame. For details, see: <https://developers.weixin.qq.com/miniprogram/dev/component/xr-frame/core/event.html>

SessionState

Session state.

GeoLocationInputMode

{("Onsite" | "Simulator")} GeoLocationInputMode - "Onsite" is the input mode for onsite use. Location data is obtained from the Mini Program APIs and input to Mega. - "Simulator" is the input mode for remote use. Location data needs to be simulated as onsite data and input to Mega through the corresponding API.