public void OnUseCurrentPressed() { HelperMethods.AddInteractionBlocker(); ITTGoogleAnalytics.Instance.googleAnalytics.LogEvent(new EventHitBuilder() .SetEventCategory("Location - Location Screen") .SetEventAction("Click - Current Location Button") .SetEventLabel("The user has pressed on the current location button in location screen.")); model.mainAppViewModel.DynamicScrollView.ClearCarousel(); model.mainAppViewModel.NoActivitiesCard.SetActive(false); StartCoroutine(HelperMethods.Instance.RetrieveAndRefreshLocationData(OnFailGeoData)); if (!_toolTipComplete) { ToolTipViewController.FlagViewedTooltip(); } }
public void OnSearch(string searchString) { if (string.IsNullOrEmpty(searchString)) { return; } const string _loadingScreenPrefabPath = "Prefabs/Production/LoadingPanel"; var go = NGUITools.AddChild(gameObject, (GameObject)Resources.Load(_loadingScreenPrefabPath)); _loadingScreen = go.GetComponent <LoadingScreenController> (); _loadingScreen._loadingLabel.text = "Searching..."; _searchString = searchString; HelperMethods.AddInteractionBlocker(); ITTDataCache.Instance.Data.GetDataEntry((int)DataCacheIndices.USER_FLAGS, HelperMethods.Instance.UnFlagCurrentLocation); ITTDataCache.Instance.GetGeoLocationData(searchString, OnUpdateGeoLocation, OnFailGeoData); model.inputBox.value = null; }
public void OnCurrentLocationPressed() { HelperMethods.AddInteractionBlocker(); StartCoroutine(RetrieveLocation()); }