enumerateEventHandlers method

void enumerateEventHandlers(
  1. ObjCBlock<Void Function(UIAction?, Pointer<ObjCObject>?, Pointer<ObjCSelector>, UnsignedLong, Pointer<Bool>)> iterator
)

Iterate over the event handlers installed on this control at the time this method is called. For each call, either actionHandler or action will be non-nil. controlEvents is always non-zero. Setting *stop to YES will terminate the enumeration early. It is legal to manipulate the control's event handlers within the block.

Implementation

void enumerateEventHandlers(
  objc.ObjCBlock<
    ffi.Void Function(
      UIAction?,
      ffi.Pointer<objc.ObjCObject>?,
      ffi.Pointer<objc.ObjCSelector>,
      ffi.UnsignedLong,
      ffi.Pointer<ffi.Bool>,
    )
  >
  iterator,
) {
  objc.checkOsVersionInternal('UIControl.enumerateEventHandlers:', iOS: (false, (14, 0, 0)));
  _objc_msgSend_f167m6(this.ref.pointer, _sel_enumerateEventHandlers_, iterator.ref.pointer);
}