setKeepAliveTimeout method

bool setKeepAliveTimeout(
  1. double timeout, {
  2. ObjCBlock<Void Function()>? handler,
})

setKeepAliveTimeout:handler:

Implementation

bool setKeepAliveTimeout(double timeout, {objc.ObjCBlock<ffi.Void Function()>? handler}) {
  objc.checkOsVersionInternal('UIApplication.setKeepAliveTimeout:handler:', iOS: (false, (4, 0, 0)));
  return _objc_msgSend_170zngv(
    this.ref.pointer,
    _sel_setKeepAliveTimeout_handler_,
    timeout,
    handler?.ref.pointer ?? ffi.nullptr,
  );
}