addToBuilder static method
void
addToBuilder(
- ObjCProtocolBuilder builder, {
- required void animatePresentationOfViewController_fromViewController_(),
- required void animateDismissalOfViewController_fromViewController_(),
- bool $keepIsolateAlive = true,
Adds the implementation of the NSViewControllerPresentationAnimator 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, {
required void Function(NSViewController, NSViewController)
animatePresentationOfViewController_fromViewController_,
required void Function(NSViewController, NSViewController)
animateDismissalOfViewController_fromViewController_,
bool $keepIsolateAlive = true,
}) {
NSViewControllerPresentationAnimator
.animatePresentationOfViewController_fromViewController_
.implement(
builder,
animatePresentationOfViewController_fromViewController_,
);
NSViewControllerPresentationAnimator
.animateDismissalOfViewController_fromViewController_
.implement(
builder,
animateDismissalOfViewController_fromViewController_,
);
builder.addProtocol($protocol);
}