private MyPhonePlugins.ActivateOptions ConvertActivateOptions(ActivateOptions options)
 {
     if ((options & ActivateOptions.WithVideo) != 0)
     {
         return(MyPhonePlugins.ActivateOptions.WithVideo);
     }
     else
     {
         return(MyPhonePlugins.ActivateOptions.None);
     }
 }
Exemple #2
0
        private void Launch(string id, string profile)
        {
            var appManager = new ApplicationActivationManager();
            const ActivateOptions noFlags = ActivateOptions.None;
            var queryArguments            = TerminalHelper.GetArguments(profile, _openNewTab);

            try
            {
                appManager.ActivateApplication(id, queryArguments, noFlags, out var unusedPid);
            }
            catch (Exception ex)
            {
                var name    = "Plugin: " + Resources.plugin_name;
                var message = Resources.run_terminal_failed;
                Log.Exception("Failed to open Windows Terminal", ex, GetType());
                _context.API.ShowMsg(name, message, string.Empty);
            }
        }
Exemple #3
0
 public extern IntPtr ActivateApplication([In] string appUserModelId, [In] string arguments, [In] ActivateOptions options,
                                          [Out] out int processId);
 public void ActivateEx(string callId, ActivateOptions options)
 {
     callHandler.ActivateEx(callId, ConvertActivateOptions(options));
 }
Exemple #5
0
 public extern uint ActivateApplication([In] String appUserModelId, [In] String arguments, [In] ActivateOptions options, [Out] out UInt32 processId);