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 : JsObject
Constructors
ScreenshotPayload()
Construct an instance of ScreenshotPayload
Declaration
public ScreenshotPayload()
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 | An optional blob of data to attach to the screenshot, serialized as a JSON string. This string must represent a JSON object such as |
Properties
Data
An optional blob of data to attach to the screenshot, serialized as a JSON string. This string must represent a JSON object such as {"key": "value"}. If the user shares this screenshot, all game sessions launched from the share can access this blob through 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 |