/// <summary> /// Constructor /// </summary> public HybridMainPage() { _instance = this; _syncContext = SynchronizationContext.Current; Task<BootConfig> task = Task.Run(() => BootConfig.GetBootConfig()); _bootConfig = task.Result; }
/// <summary> /// Constructor /// </summary> public HybridMainPage() { _instance = this; _syncContext = SynchronizationContext.Current; Task <BootConfig> task = Task.Run(() => BootConfig.GetBootConfig()); _bootConfig = task.Result; }
/// <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> /// Constructor /// </summary> public HybridMainPage() { _instance = this; _syncContext = SynchronizationContext.Current; _bootConfig = BootConfig.GetBootConfig(); }
/// <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); }