docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ApiOperation

    API Operation

    Inheritance
    object
    ApiOperation
    ApiOperation<T>
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Services.Apis.Shared
    Assembly: solution.dll
    Syntax
    public class ApiOperation

    Properties

    AsTask

    Gets an awaiter used to await this Task.

    Declaration
    public Task<ApiResponse> AsTask { get; }
    Property Value
    Type Description
    Task<ApiResponse>

    IsCompleted

    Gets a value that indicates whether the task has completed.

    Declaration
    public bool IsCompleted { get; protected set; }
    Property Value
    Type Description
    bool

    Response

    Gets the response of this operation

    Declaration
    public ApiResponse Response { get; protected set; }
    Property Value
    Type Description
    ApiResponse

    Methods

    GetAwaiter()

    Gets an awaiter used to await this Task.

    Declaration
    public TaskAwaiter<ApiResponse> GetAwaiter()
    Returns
    Type Description
    TaskAwaiter<ApiResponse>

    An awaiter instance

    WaitForCompletion()

    Coroutine support to yield for completion

    Declaration
    public IEnumerator WaitForCompletion()
    Returns
    Type Description
    IEnumerator

    Enumerator to yield to

    Events

    Completed

    Get notified when the operation completes

    Declaration
    public event Action<ApiResponse> Completed
    Event Type
    Type Description
    Action<ApiResponse>
    In This Article
    Back to top
    Copyright © 2024 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)