docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ProductDefinition

    Product definition used by Apps declaring products for sale.

    Inheritance
    object
    ProductDefinition
    Inherited Members
    object.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEngine.Purchasing
    Assembly: solution.dll
    Syntax
    public class ProductDefinition

    Constructors

    Name Description
    ProductDefinition(string, string, ProductType)

    Parametrized constructor

    ProductDefinition(string, string, ProductType, bool)

    Parametrized constructor

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

    Parametrized constructor

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

    Parametrized constructor

    ProductDefinition(string, ProductType)

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

    Properties

    Name Description
    enabled

    Whether or not the product is enabled for purchase.

    id

    Store independent ID.

    payout

    Gets the first attached payout. This is a shortcut for the case where only one payout is attached to the product.

    payouts

    Gets all payouts attached to this product.

    storeSpecificId

    The ID this product has on a specific store.

    type

    The type of the product.

    Methods

    Name Description
    Equals(object)

    Check if this product definition is equal to another.

    GetHashCode()

    Get the unique Hash representing the product definition.

    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