Table of Contents

Class CloudLocalizerFrameFilter

Namespace
easyar
Assembly
EasyAR.Sense.dll

Controls theeasyar.CloudLocalizer'sMonoBehaviour in the scene, provides functional extensions in the Unity environment.

[RequireComponent(typeof(BlockHolder))]
public class CloudLocalizerFrameFilter : FrameFilter
Inheritance
CloudLocalizerFrameFilter

Fields

RequestTimeout

Timeout (milliseconds) for communication with the server.

public int RequestTimeout

Properties

BlockHolder

Component holding Blocks, holds and manages Blocks in the scene.

public BlockHolder BlockHolder { get; }

LandmarkFilter

Mega Landmark filtering feature whenServiceType isLandmark. Initially, you need to manually callFilterBySpotId(string, Action<MegaLandmarkFilterResponse>). The Tracker will not start tracking until the Filter returns Found.

public Optional<MegaLandmarkFilterWrapper> LandmarkFilter { get; }

LocationInputMode

Location input mode. Must be set before Session starts. Must be set toSimulator for remote debugging or running on a computer, otherwise it will be unusable. Set toOnsite for on-site use to achieve optimal results.

public MegaLocationInputMode LocationInputMode { get; set; }

ProximityLocation

Nearby location results.

public Optional<ProximityLocationResult> ProximityLocation { set; }

RequestMessage

public string RequestMessage { get; set; }

ServiceAccessData

Service access data. Must be set before Session starts. No need to set when usingGlobalConfig.

public ExplicitAddressAccessData ServiceAccessData { get; set; }

ServiceAccessSource

Service access data source type. Must be set before Session starts.

public MegaServiceAccessSourceType ServiceAccessSource { get; set; }

ServiceType

EasyAR Mega service type. Must be set before Session starts.

public MegaApiType ServiceType { get; set; }

SimulatorLocation

LocationInputMode == Simulator, the location data used when this condition is met.

public Optional<Location> SimulatorLocation { get; set; }

Methods

Resolve(Action<MegaLocalizationResponse>)

Sends a location request.

public void Resolve(Action<MegaLocalizationResponse> callback)

Parameters

callback

SwitchEndPoint(ExplicitAddressAccessData, BlockRootController)

Switches the remote endpoint.

public void SwitchEndPoint(ExplicitAddressAccessData config, BlockRootController root)

Parameters

config
root

UpdateToken(string)

Updates the API Token.

public void UpdateToken(string token)

Parameters

token