コード例 #1
0
        public void EscalateFeedback(ARCamera camera, double seconds)
        {
            this.CancelScheduledMessage(MessageType.TrackingStateEscalation);

            var timer = NSTimer.CreateScheduledTimer(seconds, false, (internalTimer) =>
            {
                this.CancelScheduledMessage(MessageType.TrackingStateEscalation);

                var message        = camera.GetPresentationString();
                var recommendation = camera.GetRecommendation();
                if (!string.IsNullOrEmpty(recommendation))
                {
                    message += $": {recommendation}";
                }

                this.ShowMessage(message, false);
            });

            this.timers[MessageType.TrackingStateEscalation] = timer;
        }
コード例 #2
0
 public void ShowTrackingQualityInfo(ARCamera camera, bool autoHide)
 {
     this.ShowMessage(camera.GetPresentationString(), autoHide);
 }