timerWithTimeInterval$2 static method

NSTimer timerWithTimeInterval$2(
  1. double ti, {
  2. required ObjCObject target,
  3. required Pointer<ObjCSelector> selector,
  4. ObjCObject? userInfo,
  5. 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);
}