Class ScreenshotPayload
Represents screenshot content provided by the game that later on can be shared by the user.
Inherited Members
Namespace: Meta.InstantGames
Assembly: Unity.Meta.InstantGames.Sdk.dll
Syntax
public class ScreenshotPayload : JsObjectConstructors
ScreenshotPayload(string, string, string)
Creates a new instance of ScreenshotPayload
Declaration
public ScreenshotPayload(string image, string text, string data = null)Parameters
| Type | Name | Description | 
|---|---|---|
| string | image | A Base64-encoded image that is the screenshot | 
| string | text | A text message that describes the screenshot. | 
| string | data | A blob of data to attach to the screenshot. If the user shares this screenshot, all game sessions launched from the share will be able to access this blob through FBInstant.getEntryPointData(). | 
Properties
Data
A blob of data to attach to the screenshot. If the user shares this screenshot, all game sessions launched from the share will be able to access this blob through FBInstant.getEntryPointData().
Declaration
public string Data { get; }Property Value
| Type | Description | 
|---|---|
| string | 
Image
A Base64-encoded image that is the screenshot
Declaration
public string Image { get; }Property Value
| Type | Description | 
|---|---|
| string | 
Text
A text message that describes the screenshot.
Declaration
public string Text { get; }Property Value
| Type | Description | 
|---|---|
| string |