timerWithTimeInterval$2 static method
NSTimer
timerWithTimeInterval$2(
- double ti, {
- required ObjCObject target,
- required Pointer<
ObjCSelector> selector, - ObjCObject? userInfo,
- required bool repeats,
timerWithTimeInterval:target:selector:userInfo:repeats:
Implementation
static NSTimer timerWithTimeInterval$2(
double ti, {
required objc.ObjCObject target,
required ffi.Pointer<objc.ObjCSelector> selector,
objc.ObjCObject? userInfo,
required bool repeats,
}) {
final $ret = _objc_msgSend_ot6jdx(
_class_NSTimer,
_sel_timerWithTimeInterval_target_selector_userInfo_repeats_,
ti,
target.ref.pointer,
selector,
userInfo?.ref.pointer ?? ffi.nullptr,
repeats,
);
return NSTimer.fromPointer($ret, retain: true, release: true);
}