class LocalizationEventManager (Niantic.ARDK.Extensions.Localization.LocalizationEventManager)

Overview

class LocalizationEventManager: Niantic.ARDK.Extensions.ARSessionListener {
public:
    // properties

    ARWorldCoordinateSpace.? Identifier LatestLocalization;
    List<ARWorldCoordinateSpace> Localizations;
    ILocalizer Localizer;

    // events

    event LocalizationCleared();
    event LocalizationFailed();
    event LocalizationSucceeded();
    event LocalizationUpdated();

    // methods

    virtual override void ApplyARConfigurationChange(ARSessionChangesCollector.ARSessionRunProperties properties);
    void DebugLocalizationCleared();
    void DebugLocalizationFailed();

    void DebugLocalizationUpdated(
        string mapID,
        Matrix4x4 transform,
        float confidence
    );
};

Inherited Members

public:
    // properties

    bool AreFeaturesEnabled;
    bool CanInitialize;
    bool Initialized;

    // methods

    void Deinitialize();
    void DisableFeatures();
    void EnableFeatures();
    void Initialize();
    virtual abstract void ApplyARConfigurationChange(ARSessionChangesCollector.ARSessionRunProperties properties) = 0;

Detailed Documentation

Note

This is an experimental feature, and may be changed or removed in a future release. This feature is currently not functional or supported.

Methods

virtual override void ApplyARConfigurationChange(ARSessionChangesCollector.ARSessionRunProperties properties)

Inheritors should override this to modify session configuration settings based on their script’s needs.

Note

This is executed as a result of the ARSession being run, which may or may not be triggered by a call to RaiseConfigurationChanged().

void DebugLocalizationCleared()

Note

This debug feature will be moved or removed in a future update

void DebugLocalizationFailed()

Note

This debug feature will be moved or removed in a future update

void DebugLocalizationUpdated(
    string mapID,
    Matrix4x4 transform,
    float confidence
)

Note

This debug feature will be moved or removed in a future update