addToBuilderAsBlocking static method
void
addToBuilderAsBlocking(})
Adds the implementation of the CALayoutManager 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, {
objc.CGSize Function(CALayer)? preferredSizeOfLayer_,
void Function(CALayer)? invalidateLayoutOfLayer_,
void Function(CALayer)? layoutSublayersOfLayer_,
bool $keepIsolateAlive = true,
}) {
CALayoutManager.preferredSizeOfLayer_.implement(
builder,
preferredSizeOfLayer_,
);
CALayoutManager.invalidateLayoutOfLayer_.implementAsBlocking(
builder,
invalidateLayoutOfLayer_,
);
CALayoutManager.layoutSublayersOfLayer_.implementAsBlocking(
builder,
layoutSublayersOfLayer_,
);
builder.addProtocol($protocol);
}