Firstborn/Library/PackageCache/com.unity.ads@3.7.5/Runtime/Advertisement/ShowOptions.cs
Schaken-Mods b486678290 Library -Artifacts
Library -Artifacts
2023-03-28 12:24:16 -05:00

21 lines
775 B
C#

using System;
namespace UnityEngine.Advertisements
{
/// <summary>
/// A collection of options that you can pass to <c>Advertisement.Show</c>, to modify ad behaviour. Use <c>ShowOptions.resultCallback</c> to pass a <a>ShowResult</a> enum back to <c>Show</c> when the ad finishes.
/// </summary>
public class ShowOptions
{
/// <summary>
/// A callback to receive the result of the ad.
/// </summary>
[Obsolete("Implement IUnityAdsListener and call Advertisement.AddListener()")]
public Action<ShowResult> resultCallback { get; set; }
/// <summary>
/// Add a string to specify an identifier for a specific user in the game.
/// </summary>
public string gamerSid { get; set; }
}
}