MegaTrackerLocalizationResponse Class¶
Description¶
MegaTracker定位请求的响应。
inputFrame¶
请求时使用的输入帧。
- C
void easyar_MegaTrackerLocalizationResponse_inputFrame(const easyar_MegaTrackerLocalizationResponse * This, easyar_InputFrame * * Return)
- C++
std::shared_ptr<InputFrame> inputFrame()
- Java
public @Nonnull InputFrame inputFrame()
- Kotlin
fun inputFrame(): InputFrame
- Objective-C
- (easyar_InputFrame *)inputFrame
- Swift
public func inputFrame() -> InputFrame
- C#
public virtual InputFrame inputFrame()
acceleration¶
请求时使用的加速度计读数。
- C
easyar_OptionalOfAccelerometerResult easyar_MegaTrackerLocalizationResponse_acceleration(const easyar_MegaTrackerLocalizationResponse * This)
- C++
std::optional<AccelerometerResult> acceleration()
- Java
public @Nullable AccelerometerResult acceleration()
- Kotlin
fun acceleration(): AccelerometerResult?
- Objective-C
- (easyar_AccelerometerResult *)acceleration
- Swift
public func acceleration() -> AccelerometerResult?
- C#
public virtual Optional<AccelerometerResult> acceleration()
location¶
请求时使用的位置读数。
- C
easyar_OptionalOfLocationResult easyar_MegaTrackerLocalizationResponse_location(const easyar_MegaTrackerLocalizationResponse * This)
- C++
std::optional<LocationResult> location()
- Java
public @Nullable LocationResult location()
- Kotlin
fun location(): LocationResult?
- Objective-C
- (easyar_LocationResult *)location
- Swift
public func location() -> LocationResult?
- C#
public virtual Optional<LocationResult> location()
status¶
定位状态。
- C
easyar_MegaTrackerLocalizationStatus easyar_MegaTrackerLocalizationResponse_status(const easyar_MegaTrackerLocalizationResponse * This)
- C++
MegaTrackerLocalizationStatus status()
- Java
public int status()
- Kotlin
fun status(): Int
- Objective-C
- (easyar_MegaTrackerLocalizationStatus)status
- Swift
public func status() -> MegaTrackerLocalizationStatus
- C#
public virtual MegaTrackerLocalizationStatus status()
instances¶
当前定位到的block的实例。已有的实例会一直保持直到定位到另一个block,或者MegaTracker被stop或pause。
- C
void easyar_MegaTrackerLocalizationResponse_instances(const easyar_MegaTrackerLocalizationResponse * This, easyar_ListOfMegaTrackerBlockInstance * * Return)
- C++
std::vector<std::shared_ptr<MegaTrackerBlockInstance>> instances()
- Java
public java.util.@Nonnull ArrayList<@Nonnull MegaTrackerBlockInstance> instances()
- Kotlin
fun instances(): ArrayList<MegaTrackerBlockInstance>
- Objective-C
- (NSArray<easyar_MegaTrackerBlockInstance *> *)instances
- Swift
public func instances() -> [MegaTrackerBlockInstance]
- C#
public virtual List<MegaTrackerBlockInstance> instances()
appId¶
服务appId。
- C
void easyar_MegaTrackerLocalizationResponse_appId(const easyar_MegaTrackerLocalizationResponse * This, easyar_String * * Return)
- C++
std::string appId()
- Java
public java.lang.@Nonnull String appId()
- Kotlin
fun appId(): String
- Objective-C
- (NSString *)appId
- Swift
public func appId() -> String
- C#
public virtual string appId()
serverResponseDuration¶
服务器响应耗时(秒)。
- C
easyar_OptionalOfDouble easyar_MegaTrackerLocalizationResponse_serverResponseDuration(const easyar_MegaTrackerLocalizationResponse * This)
- C++
std::optional<double> serverResponseDuration()
- Java
public java.lang.@Nullable Double serverResponseDuration()
- Kotlin
fun serverResponseDuration(): Double?
- Objective-C
- (NSNumber *)serverResponseDuration
- Swift
public func serverResponseDuration() -> Double?
- C#
public virtual Optional<double> serverResponseDuration()
serverCalculationDuration¶
服务器内部计算耗时(秒)。
- C
easyar_OptionalOfDouble easyar_MegaTrackerLocalizationResponse_serverCalculationDuration(const easyar_MegaTrackerLocalizationResponse * This)
- C++
std::optional<double> serverCalculationDuration()
- Java
public java.lang.@Nullable Double serverCalculationDuration()
- Kotlin
fun serverCalculationDuration(): Double?
- Objective-C
- (NSNumber *)serverCalculationDuration
- Swift
public func serverCalculationDuration() -> Double?
- C#
public virtual Optional<double> serverCalculationDuration()
errorMessage¶
错误信息。当status为UnknownError时有值。
- C
void easyar_MegaTrackerLocalizationResponse_errorMessage(const easyar_MegaTrackerLocalizationResponse * This, easyar_OptionalOfString * Return)
- C++
std::optional<std::string> errorMessage()
- Java
public java.lang.@Nullable String errorMessage()
- Kotlin
fun errorMessage(): String?
- Objective-C
- (NSString *)errorMessage
- Swift
public func errorMessage() -> String?
- C#
public virtual Optional<string> errorMessage()
extraInfo¶
- C
void easyar_MegaTrackerLocalizationResponse_extraInfo(const easyar_MegaTrackerLocalizationResponse * This, easyar_String * * Return)
- C++
std::string extraInfo()
- Java
public java.lang.@Nonnull String extraInfo()
- Kotlin
fun extraInfo(): String
- Objective-C
- (NSString *)extraInfo
- Swift
public func extraInfo() -> String
- C#
public virtual string extraInfo()