docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MediaParams

    Represents the media payload used by custom update and custom share.

    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.v8
    Assembly: Unity.Meta.InstantGames.Sdk.v8.dll
    Syntax
    public class MediaParams : JsObject

    Constructors

    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, the content should contain information for us to get the gif.

    MediaContent video

    if provided, the content should contain information for us to get the video.

    Properties

    Gif

    if provided, the content should contain information for us to get the gif.

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

    Video

    if provided, the content should contain information for us to get the video.

    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)