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

55 lines
1.4 KiB
C#

using System.Collections.Generic;
namespace UnityEngine.Monetization
{
public interface IPlacementContentOperations
{
void SendCustomEvent(CustomEvent customEvent);
bool ready { get; }
PlacementContentState state { get; }
}
public interface IRewardedOperations : IPlacementContentOperations
{
bool IsRewarded();
string rewardId { get; }
}
/// <summary>
/// ShowResult is passed to [[ShowOptions.resultCallback]] after the advertisement has completed.
/// </summary>
public enum ShowResult
{
/// <summary>
/// Indicates that the advertisement failed to complete.
/// </summary>
Failed,
/// <summary>
/// Indicates that the advertisement was skipped.
/// </summary>
Skipped,
/// <summary>
/// Indicates that the advertisement completed successfully.
/// </summary>
Finished
}
public delegate void ShowAdFinishCallback(ShowResult finishState);
public delegate void ShowAdStartCallback();
public struct ShowAdCallbacks
{
public ShowAdFinishCallback finishCallback;
public ShowAdStartCallback startCallback;
}
public interface IShowAdOperations : IRewardedOperations
{
void Show(ShowAdCallbacks? callbacks);
}
public interface IPromoAdOperations : IShowAdOperations
{
PromoMetadata metadata { get; }
}
}