Keeping up with the theme of my last post, I’m here today sharing another single class solution to a common stack overflow question; How to share info (in this case a screenshot) to social media platform on your phone.
For our recent release, Space Esc8bit, we wanted a way for people to share scores, beyond just Leaderboards, so we implemented sharing for social media networks. It’s pretty simple to set up and get working in your own project.
First you’ll need to save the screenshot to a path that’s accessible from your app. Then call this Method here:
The path is to the screenshot you’ve taken, and the ‘extratxt’ is for any text you’d like to add to your post.
Sharing Is Caring
Now we need to fill in the empty method above. The Method is split by #if blocks for Android and iOS.
View original post 185 more words