public override void OnNavigatedTo(NavigationEventArgs e) { isPageActive = true; CanvasConstants.ShowLoading(true); //Delay camera load so that the page transition effect finishes Invoke("LoadCamera", 0.5f); }
public static IEnumerator PostRequest(string serviceURL, bool showLoading, bool requiresToken, EventHandler responseHandler) { Debug.Log(serviceURL); if (showLoading) { CanvasConstants.ShowLoading(true); } WWW www = new WWW(serviceURL); yield return(www); if (showLoading) { CanvasConstants.ShowLoading(false); } if (responseHandler != null) { responseHandler(www, new EventArgs()); } }
public override void OnNavigatedFrom(NavigationEventArgs e) { trackableCloudRecoEventHandler.PauseAndUnloadVideo(); trackableCloudRecoEventHandler.OnTrackingLost(true); trackableCloudRecoEventHandler.isAudioMuted = false; SetVolumeButton(true); background.SetActive(true); CanvasConstants.SetARCamera(false); streamingIndicator.SetActive(false); CanvasConstants.ShowLoading(false); cloudRecognition.SetActive(false); imageTarget.SetActive(false); SetFlash(false); // hide the share popup on closing sharePopup.SetActive(false); volumeButton.SetActive(false); shareButton.SetActive(false); linkButton.SetActive(false); captureButton.SetActive(false); videoFinished.SetActive(false); }
public void CloseCommentPopup() { CanvasConstants.ShowLoading(false); Disable(CommentPopup, false); }
private void ShowCamera() { background.SetActive(false); CanvasConstants.ShowLoading(false); }
public override void OnNavigatingFrom(NavigationEventArgs e) { base.OnNavigatingFrom(e); CanvasConstants.ShowLoading(false); }