docs.unity3d.com
    Show / Hide Table of Contents

    Interface ICloudCodeService

    Client SDK for Cloud Code. https://dashboard.unity3d.com/cloud-code

    Streamline your game code in the cloud. Cloud Code shifts your game logic away from your servers, interacting seamlessly with backend services.

    Namespace: Unity.Services.CloudCode
    Syntax
    public interface ICloudCodeService

    Methods

    CallEndpointAsync(String, Dictionary<String, Object>)

    Calls a Cloud Code function.

    Declaration
    Task<string> CallEndpointAsync(string function, Dictionary<string, object> args)
    Parameters
    Type Name Description
    String function

    Cloud Code function to call

    Dictionary<String, Object> args

    Arguments for the cloud code function. Will be serialized to JSON.

    Returns
    Type Description
    Task<String>

    String representation of the return value of the called function. Intended to enable custom serializers.

    Exceptions
    Type Condition
    CloudCodeException

    Thrown if request is unsuccessful.

    CloudCodeRateLimitedException

    Thrown if the service returned rate limited error.

    CallEndpointAsync<TResult>(String, Dictionary<String, Object>)

    Calls a Cloud Code function.

    Declaration
    Task<TResult> CallEndpointAsync<TResult>(string function, Dictionary<string, object> args)
    Parameters
    Type Name Description
    String function

    Cloud Code function to call.

    Dictionary<String, Object> args

    Arguments for the cloud code function. Will be serialized to JSON.

    Returns
    Type Description
    Task<TResult>

    Serialized output from the called function.

    Type Parameters
    Name Description
    TResult

    Serialized from JSON returned by Cloud Code.

    Exceptions
    Type Condition
    CloudCodeException

    Thrown if request is unsuccessful.

    CloudCodeRateLimitedException

    Thrown if the service returned rate limited error.

    Back to top
    Terms of use
    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