implement static method
NSFileManagerDelegate
implement({
- bool fileManager_shouldCopyItemAtPath_toPath_(
- NSFileManager,
- NSString,
- NSString
- bool fileManager_shouldCopyItemAtURL_toURL_(
- NSFileManager,
- NSURL,
- NSURL
- bool fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_(
- NSFileManager,
- NSError,
- NSString,
- NSString,
- bool fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_(
- NSFileManager,
- NSError,
- NSURL,
- NSURL,
- bool fileManager_shouldMoveItemAtPath_toPath_(
- NSFileManager,
- NSString,
- NSString
- bool fileManager_shouldMoveItemAtURL_toURL_(
- NSFileManager,
- NSURL,
- NSURL
- bool fileManager_shouldProceedAfterError_movingItemAtPath_toPath_(
- NSFileManager,
- NSError,
- NSString,
- NSString,
- bool fileManager_shouldProceedAfterError_movingItemAtURL_toURL_(
- NSFileManager,
- NSError,
- NSURL,
- NSURL,
- bool fileManager_shouldLinkItemAtPath_toPath_(
- NSFileManager,
- NSString,
- NSString
- bool fileManager_shouldLinkItemAtURL_toURL_(
- NSFileManager,
- NSURL,
- NSURL
- bool fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_(
- NSFileManager,
- NSError,
- NSString,
- NSString,
- bool fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_(
- NSFileManager,
- NSError,
- NSURL,
- NSURL,
- bool fileManager_shouldRemoveItemAtPath_(
- NSFileManager,
- NSString
- bool fileManager_shouldRemoveItemAtURL_(
- NSFileManager,
- NSURL
- bool fileManager_shouldProceedAfterError_removingItemAtPath_(
- NSFileManager,
- NSError,
- NSString
- bool fileManager_shouldProceedAfterError_removingItemAtURL_(
- NSFileManager,
- NSError,
- NSURL
- bool $keepIsolateAlive = true,
Builds an object that implements the NSFileManagerDelegate protocol. To implement
multiple protocols, use addToBuilder or objc.ObjCProtocolBuilder directly.
If $keepIsolateAlive is true, this protocol will keep this isolate
alive until it is garbage collected by both Dart and ObjC.
Implementation
static NSFileManagerDelegate implement({
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,
}) {
final builder = objc.ObjCProtocolBuilder(
debugName: 'NSFileManagerDelegate',
);
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);
return NSFileManagerDelegate.castFrom(
builder.build(keepIsolateAlive: $keepIsolateAlive),
);
}