docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Buffer

    Captures the data as tokens so that can be used to build up the JSON Later. We do this so as not to serialize inside other peoples functions but also because we might not have all the info we need to serialize at that point in time. This is NOT a thread safe buffer, its the job of the calling code to handle that.

    Inheritance
    object
    Buffer
    Implements
    IBuffer
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Services.Analytics.Internal
    Assembly: solution.dll
    Syntax
    public class Buffer : IBuffer

    Constructors

    Name Description
    Buffer()

    Properties

    Name Description
    SessionID
    UserID

    Methods

    Name Description
    ClearBuffer()
    ClearDiskCache()
    CloneTokens()
    FlushToDisk()
    InsertTokens(List<Token>)
    LoadFromDisk()
    PushArrayEnd()
    PushArrayStart(string)
    PushBool(bool, string)
    PushDouble(double, string)
    PushEndEvent()
    PushEvent(Event)
    PushFloat(float, string)
    PushInt(int, string)
    PushInt64(long, string)
    PushObjectEnd()
    PushObjectStart(string)
    PushStartEvent(string, DateTime, long?)
    PushString(string, string)
    PushTimestamp(DateTime, string)
    SaveDateTime(DateTime)
    Serialize(List<Token>)

    If the DataBuffer knows about the UserID and the Session ID calling this function will return a JSON blob of all the data in the buffer, it will then clear the internal data.

    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)