using System;
using System.Collections.Generic;
using UnityEngine.Purchasing.Extension;
namespace UnityEngine.Purchasing
{
///
/// Access Apple store specific configurations.
///
public interface IAppleConfiguration : IStoreConfiguration
{
///
/// Read the App Receipt from local storage.
/// Returns null for iOS less than or equal to 6, may also be null on a reinstalling and require refreshing.
///
string appReceipt { get; }
///
/// Determine if the user can make payments; [SKPaymentQueue canMakePayments].
///
bool canMakePayments { get; }
///
/// Stores a callback that will be called when
/// the user attempts a promotional purchase
/// (directly from the Apple App Store) on
/// iOS or tvOS.
///
/// If the callback is set, you must call
/// IAppleExtensions.ContinuePromotionalPurchases()
/// inside it in order to continue the intercepted
/// purchase(s).
///
///
void SetApplePromotionalPurchaseInterceptorCallback(Action callback);
///
/// Called when entitlements are revoked from Apple.
///
/// Action will be called with the products that were revoked.
void SetEntitlementsRevokedListener(Action> callback);
}
}