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> |