docs.unity3d.com
    Show / Hide Table of Contents

    Class CloudCatalogUploader

    Utility to upload the Product Catalog to the cloud backend

    Inheritance
    Object
    CloudCatalogUploader
    Namespace: UnityEditor.Purchasing
    Syntax
    public static class CloudCatalogUploader : object

    Methods

    Upload(String)

    Upload the catalog data to the cloud backend with no callbacks

    Declaration
    public static void Upload(string catalogJson)
    Parameters
    Type Name Description
    String catalogJson

    Raw json string containing the catalog data

    Upload(String, Action<UploadDataCompletedEventArgs>)

    Upload the catalog data to the cloud backend, with a completion callback event

    Declaration
    public static void Upload(string catalogJson, Action<UploadDataCompletedEventArgs> onComplete)
    Parameters
    Type Name Description
    String catalogJson

    Raw json string containing the catalog data

    Action<UploadDataCompletedEventArgs> onComplete

    Completion callback function

    Upload(String, Action<UploadDataCompletedEventArgs>, Action<UploadProgressChangedEventArgs>)

    Upload the catalog data to the cloud backend, with a completion callback event and a progress event

    Declaration
    public static void Upload(string catalogJson, Action<UploadDataCompletedEventArgs> onComplete, Action<UploadProgressChangedEventArgs> onProgressChanged)
    Parameters
    Type Name Description
    String catalogJson

    Raw json string containing the catalog data

    Action<UploadDataCompletedEventArgs> onComplete

    Completion callback function

    Action<UploadProgressChangedEventArgs> onProgressChanged

    Progress callback function

    Upload(String, Action<UploadDataCompletedEventArgs>, Action<UploadProgressChangedEventArgs>, String)

    Upload the catalog data to the cloud backend, with a completion callback event and a progress event, and specifying the base backend URL

    Declaration
    public static void Upload(string catalogJson, Action<UploadDataCompletedEventArgs> onComplete, Action<UploadProgressChangedEventArgs> onProgressChanged, string baseURL)
    Parameters
    Type Name Description
    String catalogJson

    Raw json string containing the catalog data

    Action<UploadDataCompletedEventArgs> onComplete

    Completion callback function

    Action<UploadProgressChangedEventArgs> onProgressChanged

    Progress callback function

    String baseURL

    Base URL of the backend to upload the catalog file to

    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