Table of Contents

Class MegaTracker

Namespace
easyar

Provides cloud positioning functionality.

MegaTracker

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the MegaTracker class.

Methods

landmarkFilter

Mega Landmark filtering functionality. At the beginning, you need to manually call MegaLandmarkFilter.FilterBySpotId. The tracker will not start tracking until the filter returns Found.

get landmarkFilter(): MegaLandmarkFilter;

Returns

reset()

Resets. Clears all states.

reset(): void;

Returns

setEnableLocalization(enableLocalization)

Sets whether to enable positioning. When positioning is not enabled, the positioning results returned by the server will not be output. Default is true.

setEnableLocalization(enableLocalization: boolean): void;

Parameters

enableLocalization

Returns

setEnableStatelessLocalization(enableStatelessLocalization)

Sets whether to enable stateless positioning. When stateless positioning is enabled, it will not use the previous positioning result. Default is false.

setEnableStatelessLocalization(enableStatelessLocalization: boolean): void;

Parameters

enableStatelessLocalization

Returns

setProximityLocation(proximityLocationData)

Updates current nearby location information. If null is passed in, it means to clear the current nearby location positioning.

setProximityLocation(proximityLocationData: ProximityLocationData | null): void;

Parameters

proximityLocationData

临近位置数据。

Returns

{void}

setRequestTimeParameters(requestTimeParams)

Sets request time parameters. timeoutMilliseconds is the connection timeout, default is 6000, minimum is 5000. requestIntervalMilliseconds is the expected request interval, default is 1000, minimum is 300. The larger the value, the greater the overall error.

setRequestTimeParameters(requestTimeParams: MegaRequestTimeParameters): void;

Parameters

requestTimeParams

Returns

updateToken(apiToken)

Updates the API Token. Can only be called after being created with createWithToken. Calling after being created with create is invalid.

updateToken(apiToken: string): void;

Parameters

apiToken

Returns