addToBuilderAsBlocking static method
void
addToBuilderAsBlocking(
- ObjCProtocolBuilder builder, {
- ObjCObjectBase? archiver_willEncodeObject_(
- NSKeyedArchiver,
- ObjCObjectBase
- void archiver_didEncodeObject_(
- NSKeyedArchiver,
- ObjCObjectBase?
- void archiver_willReplaceObject_withObject_(
- NSKeyedArchiver,
- ObjCObjectBase?,
- ObjCObjectBase?
- void archiverWillFinish_()?,
- void archiverDidFinish_()?,
- bool $keepIsolateAlive = true,
Adds the implementation of the NSKeyedArchiverDelegate protocol to an existing
objc.ObjCProtocolBuilder. All methods that can be implemented as blocking
listeners will be.
Note: You cannot call this method after you have called builder.build.
Implementation
static void addToBuilderAsBlocking(
objc.ObjCProtocolBuilder builder, {
objc.ObjCObjectBase? Function(NSKeyedArchiver, objc.ObjCObjectBase)?
archiver_willEncodeObject_,
void Function(NSKeyedArchiver, objc.ObjCObjectBase?)?
archiver_didEncodeObject_,
void Function(NSKeyedArchiver, objc.ObjCObjectBase?, objc.ObjCObjectBase?)?
archiver_willReplaceObject_withObject_,
void Function(NSKeyedArchiver)? archiverWillFinish_,
void Function(NSKeyedArchiver)? archiverDidFinish_,
bool $keepIsolateAlive = true,
}) {
NSKeyedArchiverDelegate.archiver_willEncodeObject_.implement(
builder,
archiver_willEncodeObject_,
);
NSKeyedArchiverDelegate.archiver_didEncodeObject_.implementAsBlocking(
builder,
archiver_didEncodeObject_,
);
NSKeyedArchiverDelegate.archiver_willReplaceObject_withObject_
.implementAsBlocking(builder, archiver_willReplaceObject_withObject_);
NSKeyedArchiverDelegate.archiverWillFinish_.implementAsBlocking(
builder,
archiverWillFinish_,
);
NSKeyedArchiverDelegate.archiverDidFinish_.implementAsBlocking(
builder,
archiverDidFinish_,
);
builder.addProtocol($protocol);
}