public void SignOut() { //mGoogleApiClient.Disconnect(); GoogleInfo.GetInstance().Acount = null; Xamarin.Forms.Application.Current.Properties["Signed"] = false; Xamarin.Forms.Application.Current.Properties["Boff"] = AppResource.ResourceManager.GetResourceSet(Thread.CurrentThread.CurrentCulture, true, true).GetString("Welcome1"); }
protected override void OnCreate(Bundle bundle) { Rg.Plugins.Popup.Popup.Init(this, bundle); TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(bundle); // [END configure_signin] // [START build_client] // [END build_client] global::Xamarin.Forms.Forms.Init(this, bundle); global::Xamarin.Auth.Presenters.XamarinAndroid.AuthenticationConfiguration.Init(this, bundle); TKGoogleMaps.Init(this, bundle); Xamarin.FormsMaps.Init(this, bundle); GoogleInfo.GetInstance(this); // Convert Android.Net.Url to Uri Uri uri; if (Intent.Data != null) { uri = new Uri(Intent.Data.ToString()); // Load redirectUrl page AuthenticationState.Authenticator.OnPageLoading(uri); } LoadApplication(new App()); }