Table of Contents

UIToolkitEventSubscription<TEventType, TState> Struct

public readonly struct UIToolkitEventSubscription<TEventType, TState> : IEquatable<UIToolkitEventSubscription<TEventType, TState>>, IEqualityComparer<UIToolkitEventSubscription<TEventType, TState>>, IUIToolkitEventSubscription, IDisposable where TEventType : EventBase<TEventType>, new()

Represents event subscription. Dispose() to unregister event.

Type Parameters

TEventType
TState
Implements
Inherited Members
Extension Methods

Constructors

UIToolkitEventSubscription(VisualElement, EventCallback<TEventType, TState>, TrickleDown)

Properties

Callback
UseTrickleDown
VisualElement

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Equals(UIToolkitEventSubscription<TEventType, TState>)

Indicates whether the current object is equal to another object of the same type.

Equals(UIToolkitEventSubscription<TEventType, TState>, UIToolkitEventSubscription<TEventType, TState>)

Determines whether the specified objects are equal.

Equals(object?)

Indicates whether this instance and a specified object are equal.

GetHashCode()

Returns the hash code for this instance.

GetHashCode(UIToolkitEventSubscription<TEventType, TState>)

Returns a hash code for the specified object.

Operators

operator ==(UIToolkitEventSubscription<TEventType, TState>, UIToolkitEventSubscription<TEventType, TState>)
operator !=(UIToolkitEventSubscription<TEventType, TState>, UIToolkitEventSubscription<TEventType, TState>)