Show / Hide Table of Contents

    Class BeamableIAPService

    A class for wrapping Beamable's server interactions with the IAP Purchasing Service. Interacts with Beamable's API to manipulate data on Beamable's servers

    Inheritance
    Object
    BeamableIAPService
    Namespace: IdleKit.Gameplay
    Assembly: cs.temp.dll.dll
    Syntax
    public class BeamableIAPService : IService

    Fields

    _actionService

    Declaration
    protected IActionService _actionService
    Field Value
    Type Description
    IActionService

    _purchasedProduct

    Declaration
    protected Product _purchasedProduct
    Field Value
    Type Description
    Product

    _purchasedStoreProductData

    Declaration
    protected IStoreProductData _purchasedStoreProductData
    Field Value
    Type Description
    IStoreProductData

    _resolver

    Declaration
    protected IResolver _resolver
    Field Value
    Type Description
    IResolver

    RETRIES

    Declaration
    protected int RETRIES
    Field Value
    Type Description
    Int32

    RETRY_TIME

    Declaration
    protected int RETRY_TIME
    Field Value
    Type Description
    Int32

    Properties

    IsInitialized

    Declaration
    public bool IsInitialized { get; }
    Property Value
    Type Description
    Boolean

    Methods

    Cleanup()

    Declaration
    public void Cleanup()

    GetCurrencyAndItems(List<CurrencyAmount>, IPayoutEntity[], String, PaymentService)

    Declaration
    protected (List<ObtainCurrency> obtainCurrency, List<ObtainItem> obtainItems)GetCurrencyAndItems(List<CurrencyAmount> payouts, IPayoutEntity[] payoutEntities, string purchaseId, PaymentService payments)
    Parameters
    Type Name Description
    List<CurrencyAmount> payouts
    IPayoutEntity[] payoutEntities
    String purchaseId
    PaymentService payments
    Returns
    Type Description
    ValueTuple<List<ObtainCurrency>, List<ObtainItem>>

    GetPayoutEntities(String)

    Declaration
    protected (IPayoutEntity[], List<CurrencyAmount>)GetPayoutEntities(string skuProductId)
    Parameters
    Type Name Description
    String skuProductId
    Returns
    Type Description
    ValueTuple<IPayoutEntity[], List<CurrencyAmount>>

    Initialize()

    Declaration
    public void Initialize()

    Inject(IResolver)

    Declaration
    public void Inject(IResolver resolver)
    Parameters
    Type Name Description
    IResolver resolver

    OnIAPComplete(IAPCompletedStateAction)

    Declaration
    protected void OnIAPComplete(IAPCompletedStateAction completedPurchase)
    Parameters
    Type Name Description
    IAPCompletedStateAction completedPurchase

    TrackPurchaseBeamable()

    Handles tracking the purchase with Beamable.

    Declaration
    protected virtual void TrackPurchaseBeamable()

    Events

    OnInitialized

    Declaration
    public event Action<IService> OnInitialized
    Event Type
    Type Description
    Action<IService>
    Back to top Copyright © 2020 East Side Games Inc.