implementWithBlock method

void implementWithBlock(
  1. ObjCProtocolBuilder builder,
  2. ObjCBlockBase block
)

Implement this method on the protocol builder using an ObjC block.

IMPORTANT: The block must have the same signature as the method, but with an extra void* argument as the first parameter, before all the method parameters. Most users should use one of the other implement methods, which handles this signature change automatically.

Note: You cannot call this method after you have called builder.build.

Implementation

void implementWithBlock(ObjCProtocolBuilder builder, ObjCBlockBase block) =>
    builder.implementMethod(_sel, _sig, _trampoline, block);