Firstborn/Library/PackageCache/com.unity.ads@3.7.5/Runtime/Advertisement/ShowOptions.cs

21 lines
775 B
C#
Raw Normal View History

2023-03-28 13:24:16 -04:00
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; }
}
}