public void RegisterTrackerEventHandler(ITrackerEventHandler trackerEventHandler)
 {
     this.mTrackerEventHandlers.Add(trackerEventHandler);
     if (this.mHasStarted)
     {
         trackerEventHandler.OnInitialized();
     }
 }
Пример #2
0
    /// <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();
        }
    }
Пример #3
0
 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();
     }
 }
Пример #4
0
 // This method unregisters a Tracker event handler.
 // Returns "false" if event handler does not exist.
 public bool UnregisterTrackerEventHandler(
     ITrackerEventHandler trackerEventHandler)
 {
     return(mTrackerEventHandlers.Remove(trackerEventHandler));
 }
Пример #5
0
 // 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);
 }
Пример #6
0
 // This method unregisters a Tracker event handler.
 // Returns "false" if event handler does not exist.
 public bool UnregisterTrackerEventHandler(
                             ITrackerEventHandler trackerEventHandler)
 {
     return mTrackerEventHandlers.Remove(trackerEventHandler);
 }
Пример #7
0
 // 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);
 }
Пример #8
0
    /// <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();
    }