Table of Contents

Class MegaTracker

네임스페이스
easyar

cloud localization 기능을 제공합니다.

MegaTracker

주의 사항

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.

메서드

landmarkFilter

Mega Landmark 필터링 기능은 시작 시 MegaLandmarkFilter.FilterBySpotId 를 수동으로 호출해야 합니다. Filter 가 Found 를 반환하기 전에는 Tracker 가 tracking 을 시작하지 않습니다.

get landmarkFilter(): MegaLandmarkFilter;

반환 값

reset()

리셋합니다. 모든 상태를 지웁니다.

reset(): void;

반환 값

setEnableLocalization(enableLocalization)

localization 활성화 여부를 설정합니다. localization 이 활성화되지 않으면 서버에서 반환된 localization 결과가 출력되지 않습니다. 기본값은 true 입니다.

setEnableLocalization(enableLocalization: boolean): void;

매개 변수

enableLocalization

반환 값

setEnableStatelessLocalization(enableStatelessLocalization)

stateless localization 활성화 여부를 설정합니다. 활성화되면 localization 시 이전 localization 결과를 사용하지 않습니다. 기본값은 false 입니다.

setEnableStatelessLocalization(enableStatelessLocalization: boolean): void;

매개 변수

enableStatelessLocalization

반환 값

setProximityLocation(proximityLocationData)

현재 근접 위치 정보를 업데이트합니다. null 이 전달되면 현재 근접 위치 localization 이 지워집니다.

setProximityLocation(proximityLocationData: ProximityLocationData | null): void;

매개 변수

proximityLocationData

근접 위치 데이터입니다.

반환 값

{void}

setRequestTimeParameters(requestTimeParams)

요청 시간 파라미터를 설정합니다. timeoutMilliseconds 는 연결 timeout 시간이며 기본값은 6000, 최소값은 5000 입니다. requestIntervalMilliseconds 는 기대 요청 간격이며 기본값은 1000, 최소값은 300 입니다. 값이 클수록 전체 오차가 커집니다.

setRequestTimeParameters(requestTimeParams: MegaRequestTimeParameters): void;

매개 변수

requestTimeParams

반환 값

updateToken(apiToken)

API Token 을 업데이트합니다. createWithToken 방식으로 생성한 후에만 호출할 수 있습니다. create 방식으로 생성한 후 호출하면 효과가 없습니다.

updateToken(apiToken: string): void;

매개 변수

apiToken

반환 값