docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MediaParams

    Represents the media payload used by custom update and custom share.
    Important: This type is deprecated and will be removed in a future version.

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

    Constructors

    MediaParams()

    Construct an instance of MediaParams

    Declaration
    public MediaParams()

    MediaParams(MediaContent, MediaContent)

    Creates a new instance of MediaParams

    Declaration
    public MediaParams(MediaContent gif = null, MediaContent video = null)
    Parameters
    Type Name Description
    MediaContent gif

    If provided, contains information for retrieving a GIF media asset.

    MediaContent video

    If provided, contains information for retrieving a video media asset.

    Properties

    Gif

    If provided, contains information for retrieving a GIF media asset.

    Declaration
    public MediaContent Gif { get; }
    Property Value
    Type Description
    MediaContent

    Video

    If provided, contains information for retrieving a video media asset.

    Declaration
    public MediaContent Video { get; }
    Property Value
    Type Description
    MediaContent
    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)