public static async Task Logout() { if (SL.IsNetworkConnected("Facebook")) { Mvx.Resolve <IFacebookShareService>().SetAccessToken(string.Empty, string.Empty, true); } SL.Logout(); var _locatioService = Mvx.Resolve <ILocationService>(); var location = _locatioService.CurrentLocation == null ? await _locatioService.GetCurrentLocation() : _locatioService.CurrentLocation; await SL.Manager.GetCityListWithLatitude(location.Lat, location.Long); }
partial void LogoutButton_TouchUpInside(UIButton sender) { SL.Logout(); Platform.ClearBrowserCache(); UpdateView(); }