1
0

ShowOptions.cs 775 B

1234567891011121314151617181920
  1. using System;
  2. namespace UnityEngine.Advertisements
  3. {
  4. /// <summary>
  5. /// 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.
  6. /// </summary>
  7. public class ShowOptions
  8. {
  9. /// <summary>
  10. /// A callback to receive the result of the ad.
  11. /// </summary>
  12. [Obsolete("Implement IUnityAdsListener and call Advertisement.AddListener()")]
  13. public Action<ShowResult> resultCallback { get; set; }
  14. /// <summary>
  15. /// Add a string to specify an identifier for a specific user in the game.
  16. /// </summary>
  17. public string gamerSid { get; set; }
  18. }
  19. }