docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ScreenshotPayload

    Represents screenshot content provided by the game that later on can be shared by the user.

    Inheritance
    object
    JsObject
    ScreenshotPayload
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Meta.InstantGames.v7
    Assembly: Unity.Meta.InstantGames.Sdk.v7.dll
    Syntax
    public class ScreenshotPayload : JsObject

    Constructors

    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
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)