/// <summary> /// Native implementation for "getAuthCredentials" action. /// </summary> public void getAuthCredentials(object jsVersion) { JSONCredentials credentials = HybridMainPage.GetInstance().GetJSONCredentials(); if (credentials == null) { // DispatchCommandResult(new PluginResult(PluginResult.Status.ERROR, "Never authenticated")); } else { OnAuthenticateSuccess(credentials); } }
/// <summary> /// Native implementation for "logoutCurrentUser" action /// </summary> public void logoutCurrentUser(object jsVersion) { HybridMainPage.GetInstance().LogoutCurrentUser(); // PluginResult result = new PluginResult(PluginResult.Status.OK); // DispatchCommandResult(result); }
/// <summary> /// Native implementation for "getAppHomeUrl" action /// </summary> public void getAppHomeUrl(object jsVersion) { String appHomeUrl = HybridMainPage.GetInstance().GetAppHomeUrl(); // PluginResult result = new PluginResult(PluginResult.Status.OK, appHomeUrl); // DispatchCommandResult(result); }