addToBuilder static method
void
addToBuilder(})
Adds the implementation of the NSMachPortDelegate 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, {
void Function(ffi.Pointer<ffi.Void>)? handleMachMessage_,
void Function(objc.NSPortMessage)? handlePortMessage_,
bool $keepIsolateAlive = true,
}) {
NSMachPortDelegate.handleMachMessage_.implement(
builder,
handleMachMessage_,
);
NSMachPortDelegate.handlePortMessage_.implement(
builder,
handlePortMessage_,
);
builder.addProtocol($protocol);
}