docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CurrentApp

    Wrapper class for the Windows Store API CurrentApp class.

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

    Properties

    Name Description
    LicenseInformation

    Read access to the current app's license metadata.

    Methods

    Name Description
    BuildMockProducts(List<WinProductDescription>)

    Dummy function implementing the building of Mock Products.

    GetUnfulfilledConsumablesAsync()

    Returns a list of purchased consumable in-app products that have not been reported to the Microsoft Store as fulfilled..

    LoadListingInformationAsync()

    Loads the app's listing information asynchronously. Additionally, the listing information for available in-app products is also provided.

    ReportConsumableFulfillmentAsync(string, Guid)

    Notifies the Microsoft Store that the purchase of a consumable add-on (also called an in-app product or IAP) is fulfilled and that the user has the right to access the content.

    RequestAppReceiptAsync()

    Requests all receipts for the purchase of the app and any in-app products.

    RequestProductPurchaseAsync(string)

    Requests the purchase of an add-on (also called an in-app product or IAP). Additionally, calling this method displays the UI that is used to complete the transaction via the Microsoft Store.

    RequestProductReceiptAsync(string)

    Requests the purchase of an add-on (also called an in-app product or IAP). Additionally, calling this method displays the UI that is used to complete the transaction via the Microsoft Store.

    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