Get copyclipboard content in Unity UWP app

Hi guys, I am trying to build a UWP app (HoloLens app), and I need to get the copy clipboard value in my app. (For example, my app opens the IE and lead it to a website. A key is generated on that website. Now that the key is too long and I do not want user to manually type it in my app. So most users will copy this long string into copy clipboard. Now the question is, how could I get the content of clipboard (just a string) in a UWP Unity app? Has anyone done this before?
Thank you so much!
Best Answer
-
Musa ✭
OK, for those who are interested: I tried Clipboard.GetText(). It keeps giving me exception when I use it in my HoloLens app. (https://stackoverflow.com/questions/35867427/read-text-from-clipboard) So I tried the GUIUtility.systemCopyBuffer() recommended from the above question. And it works perfectly on HoloLens or Windows UWP.
0
Answers
OK, for those who are interested: I tried Clipboard.GetText(). It keeps giving me exception when I use it in my HoloLens app. (https://stackoverflow.com/questions/35867427/read-text-from-clipboard) So I tried the GUIUtility.systemCopyBuffer() recommended from the above question. And it works perfectly on HoloLens or Windows UWP.