b486678290
Library -Artifacts
22 lines
627 B
C#
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
|