Add Stickers & Links
Learn how to add Stickers and Attachment Links
Stickers can be added to give extra information to share media. These can be mascots of your game, game title with your own custom font, etc.
Stickers can be added on top of image or video that is being shared.
Create Sticker Instance
Sticker sticker = new Sticker("PATH_TO_STICKER_IMAGE");Add Sticker to Story Content
StoryContent content = new StoryContent("PATH_TO_IMAGE_FILE", false);
// StoryContent content = new StoryContent("PATH_TO_VIDEO_FILE", true);
content.SetSticker(sticker);// Pass sticker instance created aboveAdd Attachment Link
Adding link to the sharing content lets users go to the target link along with the sharing content.
StoryContent content = new StoryContent("PATH_TO_IMAGE_FILE", false);
// StoryContent content = new StoryContent("PATH_TO_VIDEO_FILE", true);
content.SetAttachmentUrl("https://www.google.com");// Pass valid web urlExample
Last updated
Was this helpful?