enumerateObjectsWithOptions method

void enumerateObjectsWithOptions(
  1. int opts, {
  2. required ObjCBlock<Void Function(Pointer<ObjCObjectImpl>, UnsignedLong, Pointer<Bool>)> usingBlock,
})

enumerateObjectsWithOptions:usingBlock:

Implementation

void enumerateObjectsWithOptions(
  int opts, {
  required objc.ObjCBlock<
    ffi.Void Function(
      ffi.Pointer<objc.ObjCObjectImpl>,
      ffi.UnsignedLong,
      ffi.Pointer<ffi.Bool>,
    )
  >
  usingBlock,
}) {
  objc.checkOsVersionInternal(
    'NSArray.enumerateObjectsWithOptions:usingBlock:',
    iOS: (false, (4, 0, 0)),
    macOS: (false, (10, 6, 0)),
  );
  _objc_msgSend_yx8yc6(
    object$.ref.pointer,
    _sel_enumerateObjectsWithOptions_usingBlock_,
    opts,
    usingBlock.ref.pointer,
  );
}