Firstborn/Library/PackageCache/com.unity.ads@3.7.5/Runtime/Monetization/PurchasingAdapterCallbacks.cs

22 lines
627 B
C#
Raw Normal View History

2023-03-28 13:24:16 -04:00
#if UNITY_IOS
using System;
using System.Runtime.InteropServices;
namespace UnityEngine.Monetization
{
// Callbacks for Purchasing Adapter functionality
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct PurchasingAdapterCallbacks
{
delegate void OnRetrieveProductsDelegate(IntPtr listener);
delegate void OnPurchaseDelegate(string productId, IntPtr listener);
[MarshalAs(UnmanagedType.FunctionPtr)]
OnRetrieveProductsDelegate OnRetrieveProducts;
[MarshalAs(UnmanagedType.FunctionPtr)]
OnPurchaseDelegate OnPurchase;
}
}
#endif