0

I am implementing launch service on Xamarin.Mac, I am successful in launching my application via web browser. My question is: I want to pass some parameters along with the Launch Service, How can I do so in Xamarin.Mac? Please help out.

jrbedard
  • 3,662
  • 5
  • 30
  • 34

1 Answers1

0

Normally if you wanted to launch an application with arguments you'd use NSWorkspace like this:

Launching an Mac App with Objective-C/Cocoa

NSWorkspace.SharedWorkspace.LaunchApplication

with a dictionary of configuration options as shown.

I have no idea how to do that launching from a web browser.

You'll likely need to do something like this to read them as well:

Xamarin Macintosh Customer URL protocol handle passed parameter

Community
  • 1
  • 1
Chris Hamons
  • 1,510
  • 11
  • 22