Share an image through the "Share Charm".


win8_share_image(filename, title, description, immediate);

Argument Description
filename The name of the file to share
title The title of the image (a string)
description A text description of the image
immediate This flag can be set to true or false to share immediately or not.

Returns: N/A


With this function you can share an image from your game. The image should be an included file and part of the app "bundle", and you should give it a title and a description. Finally you should indicate whether it should be shared immediately (true) and shown in the slide-out share "charm" or not (false), in which case the user will have to manually call on the share "charm" to see the content.


if keyboard_check_pressed(ord("S"))
   win8_share_image(working_directory + "ShareLogo.png", "Catch The Haggis", "I am playing Catch The Haggis!", true);

The above code will check for the "S" key being pressed and if it is detected it will share an image that has been bundled with the game.

Back: Windows 8
Next: win8_share_screenshot
© Copyright YoYo Games Ltd. 2018 All Rights Reserved