sendAction method

bool sendAction(
  1. Pointer<ObjCSelector> action, {
  2. ObjCObjectBase? to,
  3. ObjCObjectBase? from,
  4. UIEvent? forEvent,
})

sendAction:to:from:forEvent:

Implementation

bool sendAction(
  ffi.Pointer<objc.ObjCSelector> action, {
  objc.ObjCObjectBase? to,
  objc.ObjCObjectBase? from,
  UIEvent? forEvent,
}) {
  objc.checkOsVersionInternal('UIApplication.sendAction:to:from:forEvent:', iOS: (false, (2, 0, 0)));
  return _objc_msgSend_175fj4e(
    this.ref.pointer,
    _sel_sendAction_to_from_forEvent_,
    action,
    to?.ref.pointer ?? ffi.nullptr,
    from?.ref.pointer ?? ffi.nullptr,
    forEvent?.ref.pointer ?? ffi.nullptr,
  );
}