docs.unity3d.com
    Show / Hide Table of Contents

    Class FakeStoreCallback

    Fake store callback that allows dependency injection for the ProductCollection

    Inheritance
    Object
    FakeStoreCallback
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Tests
    Syntax
    public class FakeStoreCallback : IStoreCallback

    Constructors

    FakeStoreCallback(ProductCollection)

    Declaration
    public FakeStoreCallback(ProductCollection productCollection)
    Parameters
    Type Name Description
    ProductCollection productCollection

    Methods

    OnAllPurchasesRetrieved(List<Product>)

    Declaration
    public void OnAllPurchasesRetrieved(List<Product> products)
    Parameters
    Type Name Description
    List<Product> products
    Implements
    IStoreCallback.OnAllPurchasesRetrieved(List<Product>)

    OnProductsRetrieved(List<ProductDescription>)

    Declaration
    public void OnProductsRetrieved(List<ProductDescription> products)
    Parameters
    Type Name Description
    List<ProductDescription> products
    Implements
    IStoreCallback.OnProductsRetrieved(List<ProductDescription>)

    OnPurchaseFailed(PurchaseFailureDescription)

    Declaration
    public void OnPurchaseFailed(PurchaseFailureDescription desc)
    Parameters
    Type Name Description
    PurchaseFailureDescription desc
    Implements
    IStoreCallback.OnPurchaseFailed(PurchaseFailureDescription)

    OnPurchaseSucceeded(String, String, String)

    Declaration
    public void OnPurchaseSucceeded(string storeSpecificId, string receipt, string transactionIdentifier)
    Parameters
    Type Name Description
    String storeSpecificId
    String receipt
    String transactionIdentifier
    Implements
    IStoreCallback.OnPurchaseSucceeded(String, String, String)

    OnSetupFailed(InitializationFailureReason)

    Declaration
    public void OnSetupFailed(InitializationFailureReason reason)
    Parameters
    Type Name Description
    InitializationFailureReason reason
    Implements
    IStoreCallback.OnSetupFailed(InitializationFailureReason)

    Explicit Interface Implementations

    IStoreCallback.products

    Declaration
    ProductCollection IStoreCallback.products { get; }
    Returns
    Type Description
    ProductCollection
    Implements
    IStoreCallback.products

    IStoreCallback.useTransactionLog

    Declaration
    bool IStoreCallback.useTransactionLog { get; set; }
    Returns
    Type Description
    Boolean
    Implements
    IStoreCallback.useTransactionLog

    Extension Methods

    StoreCallbackExtensionMethods.FindProductById(IStoreCallback, String)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023