docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IAnalyticsApi

    Represents a collection of functions to interact with the API endpoints

    Inherited Members
    IApiAccessor.Configuration
    IApiAccessor.GetBasePath()
    Namespace: Unity.Services.Apis.Analytics
    Assembly: solution.dll
    Syntax
    public interface IAnalyticsApi : IApiAccessor

    Methods

    GenerateUuid(CancellationToken)

    Generate a random unique userID

    Declaration
    ApiOperation<UuidResponse> GenerateUuid(CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<UuidResponse>

    The operation

    SubmitEvent(string, string, string, string, SubmitEventRequest, CancellationToken)

    Submit event(s)

    Declaration
    ApiOperation SubmitEvent(string projectId, string environmentName, string PIPL_CONSENT = null, string PIPL_EXPORT = null, SubmitEventRequest submitEventRequest = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string projectId

    ID for Unity project

    string environmentName

    Name of an environment. To get the Environment name, go to the project Dashboard > Projects > Project Settings > Environments.

    string PIPL_CONSENT

    The presence of this header will indicate the player has granted consent to data collection. Players who do not consent should not have this header set on requests. The value of the header does not matter. This header is only required if the request originates in China. (optional)

    string PIPL_EXPORT

    The presence of this header will indicate the player has granted consent to their data being sent out of China for processing. Players who do not consent should not have this header set on requests. The value of the header does not matter. This header is only required if the request originates in China. (optional)

    SubmitEventRequest submitEventRequest

    (optional)

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation

    The operation

    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)