コード例 #1
0
 /// <summary>
 ///     Constructor
 /// </summary>
 public HybridMainPage()
 {
     _instance = this;
     _syncContext = SynchronizationContext.Current;
     Task<BootConfig> task = Task.Run(() => BootConfig.GetBootConfig());
     _bootConfig = task.Result;
 }
コード例 #2
0
ファイル: HybridMainPage.cs プロジェクト: hunsakerjeff/mcdsa
        /// <summary>
        ///     Constructor
        /// </summary>
        public HybridMainPage()
        {
            _instance    = this;
            _syncContext = SynchronizationContext.Current;
            Task <BootConfig> task = Task.Run(() => BootConfig.GetBootConfig());

            _bootConfig = task.Result;
        }
コード例 #3
0
        /// <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);
            }
        }
コード例 #4
0
 /// <summary>
 /// Constructor
 /// </summary>
 public HybridMainPage()
 {
     _instance = this;
     _syncContext = SynchronizationContext.Current;
     _bootConfig = BootConfig.GetBootConfig();
 }
コード例 #5
0
 /// <summary>
 /// Native implementation for "logoutCurrentUser" action
 /// </summary>
 public void logoutCurrentUser(object jsVersion)
 {
     HybridMainPage.GetInstance().LogoutCurrentUser();
     // PluginResult result = new PluginResult(PluginResult.Status.OK);
     //  DispatchCommandResult(result);
 }
コード例 #6
0
 /// <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);
 }
コード例 #7
0
 /// <summary>
 /// Constructor
 /// </summary>
 public HybridMainPage()
 {
     _instance    = this;
     _syncContext = SynchronizationContext.Current;
     _bootConfig  = BootConfig.GetBootConfig();
 }