addTarget method
void
addTarget(
- ObjCObjectBase? target, {
- required Pointer<
ObjCSelector> action, - required UIControlEvents forControlEvents,
addTarget:action:forControlEvents:
Implementation
void addTarget(
objc.ObjCObjectBase? target, {
required ffi.Pointer<objc.ObjCSelector> action,
required UIControlEvents forControlEvents,
}) {
objc.checkOsVersionInternal('UIControl.addTarget:action:forControlEvents:', iOS: (false, (2, 0, 0)));
_objc_msgSend_1tj22xm(
this.ref.pointer,
_sel_addTarget_action_forControlEvents_,
target?.ref.pointer ?? ffi.nullptr,
action,
forControlEvents.value,
);
}