addToBuilder static method
void
addToBuilder(})
Adds the implementation of the NSUserNotificationCenterDelegate 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(NSUserNotificationCenter, NSUserNotification)?
userNotificationCenter_didDeliverNotification_,
void Function(NSUserNotificationCenter, NSUserNotification)?
userNotificationCenter_didActivateNotification_,
bool Function(NSUserNotificationCenter, NSUserNotification)?
userNotificationCenter_shouldPresentNotification_,
bool $keepIsolateAlive = true,
}) {
NSUserNotificationCenterDelegate
.userNotificationCenter_didDeliverNotification_
.implement(builder, userNotificationCenter_didDeliverNotification_);
NSUserNotificationCenterDelegate
.userNotificationCenter_didActivateNotification_
.implement(builder, userNotificationCenter_didActivateNotification_);
NSUserNotificationCenterDelegate
.userNotificationCenter_shouldPresentNotification_
.implement(builder, userNotificationCenter_shouldPresentNotification_);
builder.addProtocol($protocol);
}