Cleared Method
Cleared(Action<IHReplicatedMap<TKey, TValue>, MapClearedEventArgs>)
Adds an handler which runs when the map is cleared.
Declaration
public ReplicatedMapEventHandlers<TKey, TValue> Cleared(Action<IHReplicatedMap<TKey, TValue>, MapClearedEventArgs> handler)
Parameters
Action<IHReplicatedMap<TKey, TValue>, MapClearedEventArgs> | handler | The handler. |
Returns
ReplicatedMapEventHandlers<TKey, TValue> | The handlers. |
Cleared(Func<IHReplicatedMap<TKey, TValue>, MapClearedEventArgs, ValueTask>)
Adds an handler which runs when the map is cleared.
Declaration
public ReplicatedMapEventHandlers<TKey, TValue> Cleared(Func<IHReplicatedMap<TKey, TValue>, MapClearedEventArgs, ValueTask> handler)
Parameters
Func<IHReplicatedMap<TKey, TValue>, MapClearedEventArgs, ValueTask> | handler | The handler. |
Returns
ReplicatedMapEventHandlers<TKey, TValue> | The handlers. |