Class ContextChangedEvent<T>
Event raised when the context has changed.
Implements
Inherited Members
EventBase<ContextChangedEvent<T>>.TypeId()
EventBase<ContextChangedEvent<T>>.GetPooled()
EventBase<ContextChangedEvent<T>>.Dispose()
EventBase<ContextChangedEvent<T>>.eventTypeId
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public class ContextChangedEvent<T> : EventBase<ContextChangedEvent<T>>, IDisposable where T : IContext
Type Parameters
Name | Description |
---|---|
T | The type of the context. |
Constructors
ContextChangedEvent()
Default constructor.
Declaration
public ContextChangedEvent()
Properties
context
The new context.
Declaration
public T context { get; }
Property Value
Type | Description |
---|---|
T |
Methods
GetPooled(T)
Gets a pooled event instance.
Declaration
public static ContextChangedEvent<T> GetPooled(T context)
Parameters
Type | Name | Description |
---|---|---|
T | context | The new context. |
Returns
Type | Description |
---|---|
ContextChangedEvent<T> | A pooled event instance. |
Init()
Resets all event members to their initial values.
Declaration
protected override void Init()
Overrides
UnityEngine.UIElements.EventBase<Unity.AppUI.UI.ContextChangedEvent<T>>.Init()