class ARSessionChangesCollector (Niantic.ARDK.AR.Configuration.ARSessionChangesCollector)

Overview

An instance of this class is owned by an ARSession. ARConfigChanger instances Register to the ARConfigChangerCollector of the ARSession they need to affect, and when ARSession.Run is called, all registered ARConfigChangers will have their changes collected. More…

class ARSessionChangesCollector {
public:
    // classes

    class ARSessionRunProperties;

    // methods

    void Register(ARConfigChanger changer);
    void Unregister(ARConfigChanger changer);
};

Detailed Documentation

An instance of this class is owned by an ARSession. ARConfigChanger instances Register to the ARConfigChangerCollector of the ARSession they need to affect, and when ARSession.Run is called, all registered ARConfigChangers will have their changes collected.

ARConfigChangers can also request the ARSession be re-run (and so config changes re-collected) by invoking their _ConfigurationChanged event. Re-runs will be triggered at max once per frame.