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