docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ResultCode

    SDK result code. Aligned with Android ResultCode: android/ResultCode.java

    Inheritance
    object
    ResultCode
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: UnityEngine.UDP
    Assembly: UDP.dll
    Syntax
    public class ResultCode

    Constructors

    ResultCode()

    Declaration
    public ResultCode()

    Fields

    SDK_CONSUME_PURCHASE_FAILED

    Result code: consume failed

    Declaration
    public const int SDK_CONSUME_PURCHASE_FAILED = -600
    Field Value
    Type Description
    int

    SDK_CONSUME_PURCHASE_SUCCESS

    Result code: consume success

    Declaration
    public const int SDK_CONSUME_PURCHASE_SUCCESS = 0
    Field Value
    Type Description
    int

    SDK_INIT_ERROR

    Result code: init failed

    Declaration
    public const int SDK_INIT_ERROR = -100
    Field Value
    Type Description
    int

    SDK_INIT_SUCCESS

    Result code: init success

    Declaration
    public const int SDK_INIT_SUCCESS = 0
    Field Value
    Type Description
    int

    SDK_NOT_INIT

    Result code: not init

    Declaration
    public const int SDK_NOT_INIT = -101
    Field Value
    Type Description
    int

    SDK_PURCHASE_CANCEL

    Result code: purchase canceled

    Declaration
    public const int SDK_PURCHASE_CANCEL = -301
    Field Value
    Type Description
    int

    SDK_PURCHASE_FAILED

    Result code: purchased failed

    Declaration
    public const int SDK_PURCHASE_FAILED = -300
    Field Value
    Type Description
    int

    SDK_PURCHASE_PENDING

    Declaration
    public const int SDK_PURCHASE_PENDING = -303
    Field Value
    Type Description
    int

    SDK_PURCHASE_REPEAT

    Result code: purchase repeated

    Declaration
    public const int SDK_PURCHASE_REPEAT = -302
    Field Value
    Type Description
    int

    SDK_PURCHASE_SUCCESS

    Result code: purchase success

    Declaration
    public const int SDK_PURCHASE_SUCCESS = 0
    Field Value
    Type Description
    int

    SDK_QUERY_INVENTORY_FAILED

    Result code: query inventory failed

    Declaration
    public const int SDK_QUERY_INVENTORY_FAILED = -700
    Field Value
    Type Description
    int

    SDK_QUERY_INVENTORY_SUCCESS

    Result code: query inventory success

    Declaration
    public const int SDK_QUERY_INVENTORY_SUCCESS = 0
    Field Value
    Type Description
    int

    SDK_SERVER_INVALID

    Result code: internal server error

    Declaration
    public const int SDK_SERVER_INVALID = -999
    Field Value
    Type Description
    int
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)