How can i specify launch options when i click on widget?

Hello,
I want to open a specific screen when i click on the widget, How can i specify launch options?

Which method (in the app) gets called when i click on the widget
Answered by Documentation Engineer in 625344022
Details of how to do this have been added in the Creating a Widget article. Specifically in the "Respond to User Interactions" section. And you can see code for how to do it in the final version of the Emoji Rangers sample project (sorry, the link for that is temporarily missing on the developer site, we're working to get it back).
Details of how to do this have been added in the Creating a Widget article. Specifically in the "Respond to User Interactions" section. And you can see code for how to do it in the final version of the Emoji Rangers sample project (sorry, the link for that is temporarily missing on the developer site, we're working to get it back).
The link to the sample project is now back on the WidgetKit documentation page.
Thank you!
How can i specify launch options when i click on widget?
 
 
Q