beginBackgroundTaskWithExpirationHandler method

int beginBackgroundTaskWithExpirationHandler(
  1. ObjCBlock<Void Function()>? handler
)

beginBackgroundTaskWithExpirationHandler:

Implementation

int beginBackgroundTaskWithExpirationHandler(objc.ObjCBlock<ffi.Void Function()>? handler) {
  objc.checkOsVersionInternal('UIApplication.beginBackgroundTaskWithExpirationHandler:', iOS: (false, (4, 0, 0)));
  return _objc_msgSend_10mlopr(
    this.ref.pointer,
    _sel_beginBackgroundTaskWithExpirationHandler_,
    handler?.ref.pointer ?? ffi.nullptr,
  );
}