Last active
December 16, 2015 19:59
-
-
Save christopherhouse/5489258 to your computer and use it in GitHub Desktop.
ViewDidLoad for WAMSAuthDemo, wires up buttons to login method
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public override void ViewDidLoad () | |
{ | |
base.ViewDidLoad (); | |
// Perform any additional setup after loading the view, typically from a nib. | |
this.MicrosoftLoginButton.TouchUpInside += (sender, e) => { | |
this.DoLogin(MobileServiceAuthenticationProvider.MicrosoftAccount); | |
}; | |
this.FacebookLoginButton.TouchUpInside += (sender, e) => { | |
this.DoLogin(MobileServiceAuthenticationProvider.Facebook); | |
}; | |
this.TwitterLoginButton.TouchUpInside += (sender, e) => { | |
this.DoLogin(MobileServiceAuthenticationProvider.Twitter); | |
}; | |
this.GoogleLoginButton.TouchUpInside += (sender, e) => { | |
this.DoLogin(MobileServiceAuthenticationProvider.Google); | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment