addToBuilderAsBlocking static method
void
addToBuilderAsBlocking(
- ObjCProtocolBuilder builder, {
- required NSAppearance? appearance(),
- required void setAppearance_(),
- required NSAppearance effectiveAppearance(),
- bool $keepIsolateAlive = true,
Adds the implementation of the NSAppearanceCustomization 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, {
required NSAppearance? Function() appearance,
required void Function(NSAppearance?) setAppearance_,
required NSAppearance Function() effectiveAppearance,
bool $keepIsolateAlive = true,
}) {
NSAppearanceCustomization.appearance.implement(builder, appearance);
NSAppearanceCustomization.setAppearance_.implementAsBlocking(
builder,
setAppearance_,
);
NSAppearanceCustomization.effectiveAppearance.implement(
builder,
effectiveAppearance,
);
builder.addProtocol($protocol);
}