Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CallbackEventHandler

Interface for classes capable of having callbacks to handle events.
Read time 1 minuteLast updated 3 days ago

Definition

public abstract class CallbackEventHandler : IEventHandler

Methods

Method

Description

HandleEventBubbleUpExecutes logic on this element during the BubbleUp phase, immediately before this element's BubbleUp callbacks. Calling StopPropagation will prevent further invocations of this method along the propagation path.
HandleEventTrickleDownExecutes logic on this element during the TrickleDown phase, immediately after this element's TrickleDown callbacks. Calling StopPropagation will prevent further invocations of this method along the propagation path.
HasBubbleUpHandlersReturn true if event handlers for the event propagation BubbleUp phase have been attached to this object.
HasTrickleDownHandlersReturns true if event handlers, for the event propagation TrickleDown phase, are attached to this object.
NotifyPropertyChangedInforms the data binding system that a property of a control has changed.
RegisterCallbackAdds an event handler to the instance.
RegisterCallbackOnceAdds an event handler to the instance. The event handler is automatically unregistered after it has been invoked exactly once.
SendEventSends an event to the event handler.
UnregisterAllRemovableCallbacksRemoves all callbacks registered with CallbackOptions.Removable from the instance.
UnregisterCallbackRemove callback from the instance.