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

22 lines
627 B
C#

#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