Abu Yousuf
Abu Yousuf

Reputation: 6107

AppListEntry.LaunchAsync vs Launcher.LaunchUriAsync

I want to know the difference between AppListEntry.LaunchAsync and Launcher.LaunchUriAsync

From AppListEntry.LaunchAsync documentation

Launch the app associated with this AppListEntry.

The app is launched without passing parameters. It is launched in the same way as if the user clicked on the entry in the app list.

From Launcher.LaunchUriAsync documentation:

Starts the default app associated with the URI scheme name for the specified URI.

Launcher.LaunchUriAsync launched without passing parameters is this the only difference ?

Thanks is advance.

Upvotes: 0

Views: 154

Answers (1)

Vincent Menant
Vincent Menant

Reputation: 475

Passing params or not is an important difference... If you want to open an external URI in the default browser the only way is Launcher.LaunchUriAsync(websiteUri). Many of deeplink have params, and for that the LaunchUriAsync is the only way to be opened.

Upvotes: 0

Related Questions