How can I show a screenshot of the game through the native share menu?

How can I show a screenshot of the game through the native share menu?
0

Hey guys!
I’m trying to implement a feature in my game that the player has the option to share his score through his social media in the game over screen. I would like to programmatically take a screenshot of the screen, attach a custom message and display a share menu like the one in the picture below:

I’ve been playing around with the SDKBOX Social plugin, but I’m not sure it supports this feature. I would like to allow the user to choose whichever application they want to share their score on. Does anyone know if it’s possible to achieve such result with the SDKBOX plugin? Or is there another plugin that supports this feature?

Any help is appreciated! :slight_smile:

I think this has been answered, just last week :slight_smile:

plz read the doc http://docs.sdkbox.com/en/plugins/share/v3-cpp/#native-share

sdkbox::SocialShareInfo info;
info.text = "#sdkbox(www.sdkbox.com) - the cure for sdk fatigue ";
info.title = "sdkbox";
//info.image = "path/to/image"
info.link = "http://www.sdkbox.com";
sdkbox::PluginShare::nativeShare(info);

// the follow property will be ignored in nativeShare
//info.showDialog = false;
//info.platform = sdkbox::SocialPlatform::Platform_Select;

sdkbox::PluginShare::nativeShare(info);