コード例 #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);
        }
コード例 #2
0
 partial void LogoutButton_TouchUpInside(UIButton sender)
 {
     SL.Logout();
     Platform.ClearBrowserCache();
     UpdateView();
 }