docs.unity3d.com
    Show / Hide Table of Contents

    Interface IGenericDataHandler

    Namespace: Unity.Cloud.Presence
    Syntax
    public interface IGenericDataHandler

    Properties

    GenericData

    Dictionary reference that gets current keys and values.

    Declaration
    Dictionary<string, byte[]> GenericData { get; }
    Property Value
    Type Description
    Dictionary<String, Byte[]>

    Methods

    SetValue(String, Byte[])

    Calls the method in its invocation list when setting new value.

    Declaration
    void SetValue(string key, byte[] data)
    Parameters
    Type Name Description
    String key
    Byte[] data

    Events

    GenericDataReset

    Calls the method in its invocation list when the entire dictionary changes or resets.

    Declaration
    event Action GenericDataReset
    Event Type
    Type Description
    Action

    GenericDataUpdated

    Calls the method in its invocation list when a key is added, removed, or updated.

    Declaration
    event Action<GenericDataUpdate> GenericDataUpdated
    Event Type
    Type Description
    Action<GenericDataUpdate>

    Extension Methods

    GenericDataExtensions.SerializeToByteArray(Object)
    GenericDataExtensions.SetValue(IGenericDataHandler, String, Vector3)
    GenericDataExtensions.SetValue(IGenericDataHandler, String, Quaternion)
    GenericDataExtensions.SetValue(IGenericDataHandler, String, Int32)
    GenericDataExtensions.SetValue(IGenericDataHandler, String, Single)
    GenericDataExtensions.SetValue(IGenericDataHandler, String, Boolean)
    GenericDataExtensions.SetValue(IGenericDataHandler, String, String)
    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