Skip to main content

Interface IPurchasingService

Declaration
public interface IPurchasingService : IAsyncInitialize

Properties

Ready

Declaration
bool Ready { get; }

Restoring

Declaration
bool Restoring { get; }

Store

Declaration
IapStore Store { get; }

Methods

Initialize()

Declaration
void Initialize()

RequestRestore()

Declaration
void RequestRestore()

RequestPurchase(string, params string[])

Declaration
void RequestPurchase(string productId, params string[] tags)
Parameters
TypeName
System.StringproductId
System.String[]tags

GetProducts(Func<IapProduct, bool>)

Declaration
IEnumerable<IapProduct> GetProducts(Func<IapProduct, bool> filter)
Returns

System.Collections.Generic.IEnumerable<MatchinghamGames.DealerModule.Models.IapProduct>

Parameters
TypeName
System.Func<MatchinghamGames.DealerModule.Models.IapProduct,System.Boolean>filter

GetProduct(string)

Declaration
IapProduct GetProduct(string productId)
Returns

MatchinghamGames.DealerModule.Models.IapProduct

Parameters
TypeName
System.StringproductId

Events

BusyStateChanged

Declaration
event BusyStateDelegate BusyStateChanged
Event Type

MatchinghamGames.DealerModule.BusyStateDelegate

Purchased

Declaration
event PurchaseSuccessDelegate Purchased
Event Type

MatchinghamGames.DealerModule.PurchaseSuccessDelegate

Failed

Declaration
event PurchaseFailDelegate Failed
Event Type

MatchinghamGames.DealerModule.PurchaseFailDelegate

RestoreSuccess

Declaration
event Action RestoreSuccess
Event Type

System.Action

RestoreFailed

Declaration
event Action RestoreFailed
Event Type

System.Action

Expired

Declaration
event ProductExpireDelegate Expired
Event Type

MatchinghamGames.DealerModule.ProductExpireDelegate