Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 partial void LogoutButton_TouchUpInside(UIButton sender)
 {
     SL.Logout();
     Platform.ClearBrowserCache();
     UpdateView();
 }