This file contains hidden or 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 class LaunchKeyResponse | |
| { | |
| public bool Successful { get; set; } | |
| public int StatusCode { get; set; } | |
| public string Message { get; set; } | |
| public string MessageCode { get; set; } | |
| } |
This file contains hidden or 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
| IsAuthorizedResponse response = await LKAuthenticationManager.Instance.isAuthorized(_authRequest) as IsAuthorizedResponse; | |
| if (response.Authorized) | |
| { | |
| // still authorized | |
| } |
This file contains hidden or 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
| using LaunchKeyManager; | |
| LKAuthenticationManager.Instance.init(appKey, secretKey, privateKey); |
This file contains hidden or 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
| class AssociationUriMapper : UriMapperBase | |
| { | |
| private string tempUri; | |
| public override Uri MapUri(Uri uri) | |
| { | |
| tempUri = System.Net.HttpUtility.UrlDecode(uri.ToString()); | |
| if (tempUri.Contains("lk<appKey>:response")) | |
| { |
This file contains hidden or 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
| RootFrame.UriMapper = new AssociationUriMapper(); |
This file contains hidden or 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
| <Tasks> | |
| <DefaultTask Name="_default" NavigationPage="MainPage.xaml" ActivationPolicy="Resume" /> | |
| </Tasks> |
This file contains hidden or 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
| <Extensions> | |
| <Protocol Name="lk1000000000" NavUriFragment="encodedLaunchUri=%s" TaskID="_default" /> | |
| </Extensions> |
This file contains hidden or 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
| LKOAuthManager.getInstance().logout(accessToken, new LKOAuthManager.LKAuthenticationManagerAuthorizationCallback() { | |
| @Override | |
| public void wasSuccess(Boolean authorized) { | |
| } | |
| @Override | |
| public void wasFailure(String errorMessage, String errorCode) { | |
| } | |
| }); |