public void RegisterTrackerEventHandler(ITrackerEventHandler trackerEventHandler) { this.mTrackerEventHandlers.Add(trackerEventHandler); if (this.mHasStarted) { trackerEventHandler.OnInitialized(); } }
/// <summary> /// This method registers a new Tracker event handler at the Tracker. /// These handlers are called as soon as ALL Trackables have been updated /// in this frame. /// </summary> public void RegisterTrackerEventHandler(ITrackerEventHandler trackerEventHandler) { mTrackerEventHandlers.Add(trackerEventHandler); // in case QCAR already has been initialized: if (mIsInitialized) { trackerEventHandler.OnInitialized(); } }
public void RegisterTrackerEventHandler(ITrackerEventHandler trackerEventHandler, [Optional, DefaultParameterValue(false)] bool hasPriority) { if (hasPriority) { this.mTrackerEventHandlers.Insert(0, trackerEventHandler); } else { this.mTrackerEventHandlers.Add(trackerEventHandler); } if (this.mIsInitialized) { trackerEventHandler.OnInitialized(); } }
// This method unregisters a Tracker event handler. // Returns "false" if event handler does not exist. public bool UnregisterTrackerEventHandler( ITrackerEventHandler trackerEventHandler) { return(mTrackerEventHandlers.Remove(trackerEventHandler)); }
// This method registers a new Tracker event handler at the Tracker. // These handlers are called as soon as ALL Trackables have been updated // in this frame. public void RegisterTrackerEventHandler( ITrackerEventHandler trackerEventHandler) { mTrackerEventHandlers.Add(trackerEventHandler); }
// This method unregisters a Tracker event handler. // Returns "false" if event handler does not exist. public bool UnregisterTrackerEventHandler( ITrackerEventHandler trackerEventHandler) { return mTrackerEventHandlers.Remove(trackerEventHandler); }
/// <summary> /// This method registers a new Tracker event handler at the Tracker. /// These handlers are called as soon as ALL Trackables have been updated /// in this frame. /// </summary> public void RegisterTrackerEventHandler(ITrackerEventHandler trackerEventHandler) { mTrackerEventHandlers.Add(trackerEventHandler); // in case QCAR already has been initialized: if (mIsInitialized) trackerEventHandler.OnInitialized(); }