addToBuilder static method

void addToBuilder(
  1. ObjCProtocolBuilder builder, {
  2. bool fileManager_shouldCopyItemAtPath_toPath_(
    1. NSFileManager,
    2. NSString,
    3. NSString
    )?,
  3. bool fileManager_shouldCopyItemAtURL_toURL_(
    1. NSFileManager,
    2. NSURL,
    3. NSURL
    )?,
  4. bool fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_(
    1. NSFileManager,
    2. NSError,
    3. NSString,
    4. NSString,
    )?,
  5. bool fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_(
    1. NSFileManager,
    2. NSError,
    3. NSURL,
    4. NSURL,
    )?,
  6. bool fileManager_shouldMoveItemAtPath_toPath_(
    1. NSFileManager,
    2. NSString,
    3. NSString
    )?,
  7. bool fileManager_shouldMoveItemAtURL_toURL_(
    1. NSFileManager,
    2. NSURL,
    3. NSURL
    )?,
  8. bool fileManager_shouldProceedAfterError_movingItemAtPath_toPath_(
    1. NSFileManager,
    2. NSError,
    3. NSString,
    4. NSString,
    )?,
  9. bool fileManager_shouldProceedAfterError_movingItemAtURL_toURL_(
    1. NSFileManager,
    2. NSError,
    3. NSURL,
    4. NSURL,
    )?,
  10. bool fileManager_shouldLinkItemAtPath_toPath_(
    1. NSFileManager,
    2. NSString,
    3. NSString
    )?,
  11. bool fileManager_shouldLinkItemAtURL_toURL_(
    1. NSFileManager,
    2. NSURL,
    3. NSURL
    )?,
  12. bool fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_(
    1. NSFileManager,
    2. NSError,
    3. NSString,
    4. NSString,
    )?,
  13. bool fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_(
    1. NSFileManager,
    2. NSError,
    3. NSURL,
    4. NSURL,
    )?,
  14. bool fileManager_shouldRemoveItemAtPath_(
    1. NSFileManager,
    2. NSString
    )?,
  15. bool fileManager_shouldRemoveItemAtURL_(
    1. NSFileManager,
    2. NSURL
    )?,
  16. bool fileManager_shouldProceedAfterError_removingItemAtPath_(
    1. NSFileManager,
    2. NSError,
    3. NSString
    )?,
  17. bool fileManager_shouldProceedAfterError_removingItemAtURL_(
    1. NSFileManager,
    2. NSError,
    3. NSURL
    )?,
  18. bool $keepIsolateAlive = true,
})

Adds the implementation of the NSFileManagerDelegate protocol to an existing objc.ObjCProtocolBuilder.

Note: You cannot call this method after you have called builder.build.

Implementation

static void addToBuilder(
  objc.ObjCProtocolBuilder builder, {
  bool Function(NSFileManager, objc.NSString, objc.NSString)?
  fileManager_shouldCopyItemAtPath_toPath_,
  bool Function(NSFileManager, objc.NSURL, objc.NSURL)?
  fileManager_shouldCopyItemAtURL_toURL_,
  bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString)?
  fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_,
  bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL)?
  fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_,
  bool Function(NSFileManager, objc.NSString, objc.NSString)?
  fileManager_shouldMoveItemAtPath_toPath_,
  bool Function(NSFileManager, objc.NSURL, objc.NSURL)?
  fileManager_shouldMoveItemAtURL_toURL_,
  bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString)?
  fileManager_shouldProceedAfterError_movingItemAtPath_toPath_,
  bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL)?
  fileManager_shouldProceedAfterError_movingItemAtURL_toURL_,
  bool Function(NSFileManager, objc.NSString, objc.NSString)?
  fileManager_shouldLinkItemAtPath_toPath_,
  bool Function(NSFileManager, objc.NSURL, objc.NSURL)?
  fileManager_shouldLinkItemAtURL_toURL_,
  bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString)?
  fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_,
  bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL)?
  fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_,
  bool Function(NSFileManager, objc.NSString)?
  fileManager_shouldRemoveItemAtPath_,
  bool Function(NSFileManager, objc.NSURL)?
  fileManager_shouldRemoveItemAtURL_,
  bool Function(NSFileManager, objc.NSError, objc.NSString)?
  fileManager_shouldProceedAfterError_removingItemAtPath_,
  bool Function(NSFileManager, objc.NSError, objc.NSURL)?
  fileManager_shouldProceedAfterError_removingItemAtURL_,
  bool $keepIsolateAlive = true,
}) {
  NSFileManagerDelegate.fileManager_shouldCopyItemAtPath_toPath_.implement(
    builder,
    fileManager_shouldCopyItemAtPath_toPath_,
  );
  NSFileManagerDelegate.fileManager_shouldCopyItemAtURL_toURL_.implement(
    builder,
    fileManager_shouldCopyItemAtURL_toURL_,
  );
  NSFileManagerDelegate
      .fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_
      .implement(
        builder,
        fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_,
      );
  NSFileManagerDelegate
      .fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_
      .implement(
        builder,
        fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_,
      );
  NSFileManagerDelegate.fileManager_shouldMoveItemAtPath_toPath_.implement(
    builder,
    fileManager_shouldMoveItemAtPath_toPath_,
  );
  NSFileManagerDelegate.fileManager_shouldMoveItemAtURL_toURL_.implement(
    builder,
    fileManager_shouldMoveItemAtURL_toURL_,
  );
  NSFileManagerDelegate
      .fileManager_shouldProceedAfterError_movingItemAtPath_toPath_
      .implement(
        builder,
        fileManager_shouldProceedAfterError_movingItemAtPath_toPath_,
      );
  NSFileManagerDelegate
      .fileManager_shouldProceedAfterError_movingItemAtURL_toURL_
      .implement(
        builder,
        fileManager_shouldProceedAfterError_movingItemAtURL_toURL_,
      );
  NSFileManagerDelegate.fileManager_shouldLinkItemAtPath_toPath_.implement(
    builder,
    fileManager_shouldLinkItemAtPath_toPath_,
  );
  NSFileManagerDelegate.fileManager_shouldLinkItemAtURL_toURL_.implement(
    builder,
    fileManager_shouldLinkItemAtURL_toURL_,
  );
  NSFileManagerDelegate
      .fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_
      .implement(
        builder,
        fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_,
      );
  NSFileManagerDelegate
      .fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_
      .implement(
        builder,
        fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_,
      );
  NSFileManagerDelegate.fileManager_shouldRemoveItemAtPath_.implement(
    builder,
    fileManager_shouldRemoveItemAtPath_,
  );
  NSFileManagerDelegate.fileManager_shouldRemoveItemAtURL_.implement(
    builder,
    fileManager_shouldRemoveItemAtURL_,
  );
  NSFileManagerDelegate
      .fileManager_shouldProceedAfterError_removingItemAtPath_
      .implement(
        builder,
        fileManager_shouldProceedAfterError_removingItemAtPath_,
      );
  NSFileManagerDelegate.fileManager_shouldProceedAfterError_removingItemAtURL_
      .implement(
        builder,
        fileManager_shouldProceedAfterError_removingItemAtURL_,
      );
  builder.addProtocol($protocol);
}