/// <summary> /// 検索したすべてのSpatial Anchorの設置が完了した後実行する処理。 /// </summary> /// <param name="sender">sender</param> /// <param name="args">args</param> private void CloudManager_LocateAnchorsCompleted(object sender, LocateAnchorsCompletedEventArgs args) { try { if (IsNearbyMode()) { // NearbyAnchorで取得した場合、AppPropertiesの情報が取得できないため // 一度配置できたSpatial AnchorのAnchorIdを保持しておき再度ID指定でアンカーの取得を実施します。 QueueOnUpdate(() => OutputLog("Get the spatial anchors with Anchor App Properties.")); QueueOnUpdate(() => FindAzureAnchorById(findNearByAnchorIds.ToArray())); } else { findNearByAnchorIds.Clear(); QueueOnUpdate(() => OutputLog("Locate Azure anchors Complete.")); if (!args.Cancelled) { // 検索したすべてのSpatial Anchorの設置が完了した後実行します。 QueueOnUpdate(() => CallBackManager?.OnLocatedAnchorComplete()); } else { QueueOnUpdate(() => OutputLog("Attempt to locate Anchor Complete failed.", LogType.Error)); } } } catch (Exception e) { Debug.Log(e); throw; } }
private void CloudManager_OnLocateAnchorsCompleted(object sender, LocateAnchorsCompletedEventArgs args) { //Not Implemented Yet //this.OnCloudLocateAnchorsCompleted(args); Debug.Log("Locate pass complete"); }
private async void OnLocateAnchorsCompleted(object sender, LocateAnchorsCompletedEventArgs args) { if (isDeleteProcess) { UnityEngine.WSA.Application.InvokeOnAppThread( () => { this.logText.text = "cloud cube delete completed"; this.msgText.text = "exit or try again"; }, false); await this.SayAsync("Anchor location deleted"); } else { UnityEngine.WSA.Application.InvokeOnAppThread( () => { this.logText.text = "cloud cube load completed"; this.msgText.text = "Anchor location completed"; }, false); await this.SayAsync("Anchor location completed"); } args.Watcher.Stop(); if (isDeleteProcess) { identifiers.Clear(); isDeleteProcess = false; } }
/// <summary> /// This method is called when all anchors (<see cref="AnchorLocateCriteria"/>)are located that you gave the watcher. /// </summary> /// <param name="sender"></param> /// <param name="args">cointains the watcher reference or the bool if the location process was cancelled.</param> private void CloudManager_LocateAnchorsCompleted(object sender, LocateAnchorsCompletedEventArgs args) { //implement this when you watch for multiple anchors. if (args.Cancelled) { logger.Log("The watcher process was cancelled and finished not succsessful.", TextState.ERROR); } }
protected override void OnCloudLocateAnchorsCompleted(LocateAnchorsCompletedEventArgs args) { Task.Run(async() => { await Task.Delay(2500); }); args.Watcher.Stop(); }
private void SpatialAnchorsSession_LocateAnchorsCompleted(object sender, LocateAnchorsCompletedEventArgs e) { Console.WriteLine("Anchor locate operation completed, completed for watcher with identifier : " + e.Watcher.Identifier); this.ignoreMainButtonTaps = false; this.MoveToNextStepAfterAnchorLocated(); this.OnLocateAnchorsCompleted?.Invoke(sender, e); }
void OnLocateAnchorsCompleted(object sender, LocateAnchorsCompletedEventArgs args) { Debug.Log("On Locate Anchors Completed"); Debug.Assert(this.taskWaitForAnchorLocation != null); if (!this.taskWaitForAnchorLocation.Task.IsCompleted) { this.taskWaitForAnchorLocation.TrySetResult(null); } }
private void CloudSpatialAnchorSession_LocateAnchorsCompleted(object sender, LocateAnchorsCompletedEventArgs args) { Debug.Log("ASA Info: アンカーの検索が完了しました。 Watcher identifier: " + args.Watcher.Identifier); args.Watcher.Stop(); ASAResetSession(); UnityEngine.WSA.Application.InvokeOnAppThread(() => { LabModelShow(); }, false); }
private void CloudManager_OnLocateAnchorsCompleted(object sender, LocateAnchorsCompletedEventArgs args) { IsLocating = false; Debug.Log("Locate pass complete"); lock (_dispatchQueue) { _dispatchQueue.Enqueue(new Action(() => { BroadcastMessage("OnAnchorsLocated"); })); } }
private void onLocateAnchorsCompleted(object sender, LocateAnchorsCompletedEventArgs args) { RunOnUiThread(() => statusText.Text = "Anchor located!"); if (!basicDemo && currentDemoStep == DemoStep.LookForAnchor) { RunOnUiThread(() => { actionButton.Visibility = ViewStates.Visible; actionButton.Text = "Look for anchors nearby"; }); currentDemoStep = DemoStep.LookForNearbyAnchors; } else { stopWatcher(); RunOnUiThread(() => { actionButton.Visibility = ViewStates.Visible; actionButton.Text = "Cleanup anchors"; }); currentDemoStep = DemoStep.End; } }
private void CloudManager_LocateAnchorsCompleted(object sender, LocateAnchorsCompletedEventArgs args) { OnCloudLocateAnchorsCompleted(args); }
/// <summary> /// Called when cloud anchor location has completed. /// </summary> /// <param name="args">The <see cref="LocateAnchorsCompletedEventArgs"/> instance containing the event data.</param> protected virtual void OnCloudLocateAnchorsCompleted(LocateAnchorsCompletedEventArgs args) { Debug.Log("Locate pass complete"); }
private void SpatialAnchorsSession_LocateAnchorsCompleted(object sender, LocateAnchorsCompletedEventArgs e) { this.OnLocateAnchorsCompleted?.Invoke(sender, e.Args); }
private void CloudSpatialAnchorSession_LocateAnchorsCompleted(object sender, LocateAnchorsCompletedEventArgs args) { OnLocateAnchorsCompleted?.Invoke(sender, args); Debug.Log("CloudSpatialAnchorSession_LocateAnchortsCompleted "); }
/// <summary> /// Called when the <see cref="Session"/> <see cref="CloudSpatialAnchorSession.LocateAnchorsCompleted">LocateAnchorsCompleted</see> event is fired. /// </summary> /// <param name="sender"> /// The <see cref="Session"/>. /// </param> /// <param name="args"> /// The event data. /// </param> protected virtual void OnLocateAnchorsCompleted(object sender, LocateAnchorsCompletedEventArgs args) { LocateAnchorsCompleted?.Invoke(this, args); }
/// <summary> /// Handles delegate calls for the Azure Spatial Anchor Watcher when the Watcher is finished locating anchors. /// </summary> private void CloudSpatialAnchorSession_LocateAnchorsCompleted(object sender, LocateAnchorsCompletedEventArgs args) { Debug.Log($"Azure Spatial Anchor info: Locate anchors completed.\n\nWatcher identifier: {args.Watcher.Identifier}"); }
private void CloudSpatialAnchorSession_LocateAnchorsCompleted(object sender, LocateAnchorsCompletedEventArgs args) { Debug.Log("ASA Info: Locate anchors completed. Watcher identifier: " + args.Watcher.Identifier); }
/// <summary> /// Called when it finish to locating anchors /// </summary> private void OnLocateAnchorsCompleted(object sender, LocateAnchorsCompletedEventArgs e) { StopLocatingAnchors(); }
private void SpatialAnchorsSession_LocateAnchorsCompleted(object sender, LocateAnchorsCompletedEventArgs e) { Console.WriteLine("Anchor locate operation completed, completed for watcher with identifier : " + e.Watcher.Identifier); this.OnLocateAnchorsCompleted?.Invoke(sender, e); }
private void CloudManager_LocateAnchorsCompleted(object sender, LocateAnchorsCompletedEventArgs args) { //throw new NotImplementedException(); }