Ejemplo n.º 1
0
        private void RunningChanged(ObjectAnchorsServiceStatus e)
        {
            switch (e)
            {
            case ObjectAnchorsServiceStatus.Paused:
                _queryQueue = new ConcurrentQueue <Tuple <ObjectAnchorsBoundingBox, IEnumerable <ObjectQuery> > >();
                break;

            case ObjectAnchorsServiceStatus.Running:
                if (ActiveDetectionStrategy == DetectionStrategy.Auto)
                {
                    RefillGlobalQueryQueue();
                }
                break;
            }
        }
Ejemplo n.º 2
0
 /// The Azure Obeject Anchors callbacks arrive off of the Unity thread, so we queue them to run on the unity thread.
 private void _objectAnchorsService_RunningChanged(object sender, ObjectAnchorsServiceStatus e)
 {
     UpdateQueue.Enqueue(() => { RunningChanged(e); });
 }
Ejemplo n.º 3
0
 private void ObjectAnchorsService_RunningChanged(object sender, ObjectAnchorsServiceStatus status)
 {
     TextLogger.Log($"Object search {status}");
 }