addToBuilderAsBlocking static method

void addToBuilderAsBlocking(
  1. ObjCProtocolBuilder builder, {
  2. void sound_didFinishPlaying_(
    1. NSSound,
    2. bool
    )?,
  3. bool $keepIsolateAlive = true,
})

Adds the implementation of the NSSoundDelegate 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, {
  void Function(NSSound, bool)? sound_didFinishPlaying_,
  bool $keepIsolateAlive = true,
}) {
  NSSoundDelegate.sound_didFinishPlaying_.implementAsBlocking(
    builder,
    sound_didFinishPlaying_,
  );
  builder.addProtocol($protocol);
}