requestSharingOfWindowUsingPreview method

void requestSharingOfWindowUsingPreview(
  1. NSImage image, {
  2. required NSString title$1,
  3. required ObjCBlock<Void Function(NSError?)> completionHandler,
})

requestSharingOfWindowUsingPreview:title:completionHandler:

Implementation

void requestSharingOfWindowUsingPreview(
  NSImage image, {
  required objc.NSString title$1,
  required objc.ObjCBlock<ffi.Void Function(objc.NSError?)> completionHandler,
}) {
  objc.checkOsVersionInternal(
    'NSWindow.requestSharingOfWindowUsingPreview:title:completionHandler:',
    iOS: (true, null),
    macOS: (false, (15, 0, 0)),
  );
  _objc_msgSend_18qun1e(
    this.ref.pointer,
    _sel_requestSharingOfWindowUsingPreview_title_completionHandler_,
    image.ref.pointer,
    title$1.ref.pointer,
    completionHandler.ref.pointer,
  );
}