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.
Inherited Members
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 |