I want to share text data on player selected social media.
Basically I want to implement functionality like following link represent for android.
[Send Text Content][1]
[1]: http://developer.android.com/training/sharing/send.html
I want to give user a choice for sharing on Twitter, Facebook, Messaging, Gmail etc.
Above link give proper guidance for my question.
Here is code that work on android
Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, "This is my text to send.");
sendIntent.setType("text/plain");
startActivity(sendIntent);
I don't know same functionality implementation in Unity. Basically at present I am targeting two platform for my game
1. Android
2. iOS
Now I think my question is clear to all of you. So please help me to solve it.
↧