public override Task<OAuthResult> Login(string oauthLoginUrl) { logger.d (LOG_TAG, "Got oauth url = " + oauthLoginUrl, null); Bundle data = new Bundle (); data.PutString ("url", oauthLoginUrl); data.PutString ("title", "Login"); Intent i = new Intent (this.appContext, typeof(FHOAuthIntent)); receiver = new OAuthURLRedirectReceiver (this); IntentFilter filter = new IntentFilter (FHOAuthWebview.BROADCAST_ACTION_FILTER); this.appContext.RegisterReceiver (this.receiver, filter); i.PutExtra ("settings", data); i.AddFlags (ActivityFlags.NewTask); this.appContext.StartActivity (i); return tcs.Task; }
public override Task <OAuthResult> Login(string oauthLoginUrl) { logger.d(LOG_TAG, "Got oauth url = " + oauthLoginUrl, null); Bundle data = new Bundle(); data.PutString("url", oauthLoginUrl); data.PutString("title", "Login"); Intent i = new Intent(this.appContext, typeof(FHOAuthIntent)); receiver = new OAuthURLRedirectReceiver(this); IntentFilter filter = new IntentFilter(FHOAuthWebview.BROADCAST_ACTION_FILTER); this.appContext.RegisterReceiver(this.receiver, filter); i.PutExtra("settings", data); i.AddFlags(ActivityFlags.NewTask); this.appContext.StartActivity(i); return(tcs.Task); }