addToBuilderAsBlocking static method
void
addToBuilderAsBlocking(
- ObjCProtocolBuilder builder, {
- NSToolbarItem? toolbar_itemForItemIdentifier_willBeInsertedIntoToolbar_()?,
- NSArray toolbarDefaultItemIdentifiers_()?,
- NSArray toolbarAllowedItemIdentifiers_()?,
- NSArray toolbarSelectableItemIdentifiers_()?,
- NSSet toolbarImmovableItemIdentifiers_()?,
- bool toolbar_itemIdentifier_canBeInsertedAtIndex_()?,
- void toolbarWillAddItem_(
- NSNotification
- void toolbarDidRemoveItem_(
- NSNotification
- bool $keepIsolateAlive = true,
Adds the implementation of the NSToolbarDelegate 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, {
NSToolbarItem? Function(NSToolbar, DartNSToolbarItemIdentifier, bool)?
toolbar_itemForItemIdentifier_willBeInsertedIntoToolbar_,
objc.NSArray Function(NSToolbar)? toolbarDefaultItemIdentifiers_,
objc.NSArray Function(NSToolbar)? toolbarAllowedItemIdentifiers_,
objc.NSArray Function(NSToolbar)? toolbarSelectableItemIdentifiers_,
objc.NSSet Function(NSToolbar)? toolbarImmovableItemIdentifiers_,
bool Function(NSToolbar, DartNSToolbarItemIdentifier, DartNSInteger)?
toolbar_itemIdentifier_canBeInsertedAtIndex_,
void Function(objc.NSNotification)? toolbarWillAddItem_,
void Function(objc.NSNotification)? toolbarDidRemoveItem_,
bool $keepIsolateAlive = true,
}) {
NSToolbarDelegate.toolbar_itemForItemIdentifier_willBeInsertedIntoToolbar_
.implement(
builder,
toolbar_itemForItemIdentifier_willBeInsertedIntoToolbar_,
);
NSToolbarDelegate.toolbarDefaultItemIdentifiers_.implement(
builder,
toolbarDefaultItemIdentifiers_,
);
NSToolbarDelegate.toolbarAllowedItemIdentifiers_.implement(
builder,
toolbarAllowedItemIdentifiers_,
);
NSToolbarDelegate.toolbarSelectableItemIdentifiers_.implement(
builder,
toolbarSelectableItemIdentifiers_,
);
NSToolbarDelegate.toolbarImmovableItemIdentifiers_.implement(
builder,
toolbarImmovableItemIdentifiers_,
);
NSToolbarDelegate.toolbar_itemIdentifier_canBeInsertedAtIndex_.implement(
builder,
toolbar_itemIdentifier_canBeInsertedAtIndex_,
);
NSToolbarDelegate.toolbarWillAddItem_.implementAsBlocking(
builder,
toolbarWillAddItem_,
);
NSToolbarDelegate.toolbarDidRemoveItem_.implementAsBlocking(
builder,
toolbarDidRemoveItem_,
);
builder.addProtocol($protocol);
}