beginBackgroundTaskWithExpirationHandler method

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

beginBackgroundTaskWithExpirationHandler:

Implementation

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