Table of Contents

Namespace easyar

Namespaces

easyar.ema

Namespace easyar.ema

APIKeyAccessData

APIKeyAccessData 使用API Key的EasyAR雲服務鑑權數據。有關數據請訪問EasyAR開發中心(https://www.easyar.cn)獲取。

BlockController

BlockController 在場景中控制Mega block的Component.

BlockHolder

BlockHolder 持有Block的組件,在場景中持有並管理Block.

EasyARMegaComponent

EasyARMegaComponent 在xrframe框架中定義的Mega組件。 組件是xrframe scene的基本邏輯單位,並且生命週期由xrframe控制。 詳細內容請參考,XrFramework官方文件: <https://developers.weixin.qq.com/miniprogram/dev/component/xr-frame/core/component.html> 。

EasyARSession

EasyARSession 在場景中控制AR會話,控制整個生命週期的數據流。這個組件是AR的入口。同一時刻不允許出現多個active的實例。EasyAR組件的所有功能必須在Session初始化完成之後才能使用。

ExplicitAddressAccessData

ExplicitAddressAccessData需要填寫訪問地址的EasyAR雲服務鑒權數據。

MegaLandmarkFilter

MegaLandmarkFilter 提供MegaLandmark的點位查詢。

MegaTracker

MegaTracker 提供雲定位功能。

ServiceAccessData

ServiceAccessData EasyAR雲服務鑒權數據。

TokenAccessData

TokenAccessData 使用token的EasyAR雲服務鑒權數據。有關數據請訪問EasyAR開發中心(https://www.easyar.cn)獲取。

getMegaSystem

介面

BlockInfo

BlockInfo Block的資訊,可通過component獲取。

EasyARWechatMiniprogramPlugin

EasyARWechatMiniprogramPlugin 依賴微信小程式插件後通過requirePlugin("easyar-wechat-miniprogram")獲取插件物件可以直接調用的方法。

GeoLocation

GeoLocation GPS資料。

IEasyARMegaData

IEasyARMegaData EasyARMegaComponent 上掛載的資料。

IMegaSystem
LocalTransform

LocalTransform Local transform 數據。

MegaLandmarkFilterResult

MegaLandmarkFilterResult MegaLandmarkFilter Filter的結果。

MegaLocalizationResult

MegaLocalizationResult 定位結果。

MegaRequestTimeParameters

MegaRequestTimeParameters Mega請求時間參數。

MegaResultPoseTypeParameters

MegaResultPoseTypeParameters 結果姿態類型參數。

MegaTrackerConfigs

MegaTrackerConfigs 用於建立 MegaTracker 所需要的參數。

MegaTrackerSensorOptions

MegaTrackerSensorOptions MegaTracker中的感應器選項。

SessionConfigs

SessionConfigs 用於創建 EasyARSession 所需要的參數。

SessionStartOptions

SessionStartOptions 啟動Session時的可選參數。

列舉

BlockVisibleStrategy

{string} Block Element.visible 的控制策略。

DeviceOrientation

{number} 設備朝向

MegaApiType

{number} Mega API類型

MegaLandmarkFilterStatus

{number} MegaLandmarkFilter 的查詢結果狀態。

MegaLocalizationStatus

MegaLocalizationStatus 定位狀態枚舉。

SessionEvent

SessionEvent Session由XRFrame Element代理下發的事件。 非立即觸發的事件將在當前幀組件生命週期驅動前派發,詳見: <https://developers.weixin.qq.com/miniprogram/dev/component/xr-frame/core/event.html>

SessionState

SessionState Session的狀態。

GeoLocationInputMode

{("Onsite" | "Simulator")} GeoLocationInputMode

  • "Onsite" 在現場使用的情況的輸入模式。位置數據從小程式介面獲取並輸入到Mega。
  • "Simulator" 遠程使用的情況的輸入模式。位置數據需要模擬成現場數據並通過對應介面輸入Mega。