Open Twitter app to make tweet

爷,独闯天下 提交于 2019-12-24 16:44:12

问题


I’m trying to open the Twitter app to make a tweet. Here’s what I have:

await Windows.System.Launcher.LaunchUriAsync(new Uri("Twitter"));

How can I make this work?


回答1:


See which one would suit you best:

ShareStatusTask - for sharing status

http://msdn.microsoft.com/en-us/library/windowsphone/develop/microsoft.phone.tasks.sharestatustask(v=vs.105).aspx

ShareLinkTask - for sharing link

http://msdn.microsoft.com/en-us/library/windowsphone/develop/microsoft.phone.tasks.sharelinktask(v=vs.105).aspx

ShareMediaTask -for sharing media

http://msdn.microsoft.com/en-us/library/windowsphone/develop/microsoft.phone.tasks.sharemediatask(v=vs.105).aspx



来源:https://stackoverflow.com/questions/19667255/open-twitter-app-to-make-tweet

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!