docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor ProductDefinition

    ProductDefinition(string, string, ProductType)

    Parametrized constructor

    Declaration
    public ProductDefinition(string id, string storeSpecificId, ProductType type)
    Parameters
    Type Name Description
    string id

    The product id.

    string storeSpecificId

    The product's id for a specific store.

    ProductType type

    The product type.

    ProductDefinition(string, string, ProductType, bool)

    Parametrized constructor

    Declaration
    public ProductDefinition(string id, string storeSpecificId, ProductType type, bool enabled)
    Parameters
    Type Name Description
    string id

    The product id.

    string storeSpecificId

    The product's id for a specific store.

    ProductType type

    The product type.

    bool enabled

    Whether the product is enabled for purchase or not.

    ProductDefinition(string, string, ProductType, bool, PayoutDefinition)

    Parametrized constructor

    Declaration
    public ProductDefinition(string id, string storeSpecificId, ProductType type, bool enabled, PayoutDefinition payout)
    Parameters
    Type Name Description
    string id

    The product id.

    string storeSpecificId

    The product's id for a specific store.

    ProductType type

    The product type.

    bool enabled

    Whether the product is enabled for purchase or not.

    PayoutDefinition payout

    The payout definition for the product once purchased.

    ProductDefinition(string, string, ProductType, bool, IEnumerable<PayoutDefinition>)

    Parametrized constructor

    Declaration
    public ProductDefinition(string id, string storeSpecificId, ProductType type, bool enabled, IEnumerable<PayoutDefinition> payouts)
    Parameters
    Type Name Description
    string id

    The product id.

    string storeSpecificId

    The product's id for a specific store.

    ProductType type

    The product type.

    bool enabled

    Whether the product is enabled for purchase or not.

    IEnumerable<PayoutDefinition> payouts

    The payout definitions for the product once purchased.

    ProductDefinition(string, ProductType)

    Parametrized constructor, creating a ProductDefinition where the id is the same as the store specific ID.

    Declaration
    public ProductDefinition(string id, ProductType type)
    Parameters
    Type Name Description
    string id

    The product id as well as its store-specific id.

    ProductType type

    The product type.

    In This Article
    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