CancellableActionEventArgs

public class CancellableActionEventArgs<Args>

An event argument set for an event that tracks cancellable actions, while exposing a cancel that can be changed by clients to cancel the action.

  • The associated event arguments for this event object.

    Declaration

    Swift

    public let value: Args
  • Variable that event handlers can use to mark this event as ‘canceled’.

    The semantics of a canceled event are handled by the event publisher, and can be used to monitor and cancel UI events such as a tree view expansion or check box toggle.

    Multiple event listeners may toggle this value on and off as they take turns handling the event that this argument object accompanies, but only the last value cancel was attributed to is seen by event publishers upstream.

    Declaration

    Swift

    public var cancel: Bool
  • Undocumented

    Declaration

    Swift

    public init(value: Args)