From f0e6da6d24c1a2bb0146678763306b4ebf5a5b16 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Wed, 6 Dec 2023 00:58:58 -0800 Subject: [PATCH] Simplify experimental pedometer example (#2104) Since ffigen added support for [`NativeCallable.listener`](https://api.flutter.dev/flutter/dart-ffi/NativeCallable/NativeCallable.listener.html) to its ObjC bindings, this example can be simplified. We can replace the `Dart_Port` logic with `ObjCBlock.listener`, which lets us get rid of most of the native code. We still need a small bit of native code to `retain` a reference to the callback's arguments before invoking the listener, otherwise the arguments may be ref counted and deleted before the Dart side of the callback is invoked. See https://github.com/dart-lang/native/issues/835 --- .../pedometer/example/lib/steps_repo.dart | 51 +- experimental/pedometer/ffigen.yaml | 7 +- .../lib/pedometer_bindings_generated.dart | 61136 +++++++++------- experimental/pedometer/src/pedometerHelper.h | 14 +- experimental/pedometer/src/pedometerHelper.m | 38 +- 5 files changed, 33651 insertions(+), 27595 deletions(-) diff --git a/experimental/pedometer/example/lib/steps_repo.dart b/experimental/pedometer/example/lib/steps_repo.dart index 80a21e6b8..16dbd5e16 100644 --- a/experimental/pedometer/example/lib/steps_repo.dart +++ b/experimental/pedometer/example/lib/steps_repo.dart @@ -1,6 +1,7 @@ +import 'dart:async'; +import 'dart:collection'; import 'dart:ffi' as ffi; import 'dart:io'; -import 'dart:isolate'; import 'package:flutter/foundation.dart'; import 'package:intl/intl.dart'; @@ -73,7 +74,7 @@ class _IOSStepsRepo implements StepsRepo { // Create a new NSString with the formatted date and timezone. final nString = pd.NSString(lib, "$formattedDate $tz"); // Convert the NSString to NSDate. - return formatter.dateFromString_(nString); + return formatter.dateFromString_(nString)!; } @override @@ -83,37 +84,35 @@ class _IOSStepsRepo implements StepsRepo { return []; } - final futures = []; + final handlers = []; + final futures = >[]; final now = DateTime.now(); for (var h = 0; h <= now.hour; h++) { - // Open up a port to receive data from native side. - final receivePort = ReceivePort(); - final nativePort = receivePort.sendPort.nativePort; final start = dateConverter(DateTime(now.year, now.month, now.day, h)); final end = dateConverter(DateTime(now.year, now.month, now.day, h + 1)); - - pd.PedometerHelper.startPedometerWithPort_pedometer_start_end_( - helpLib, - nativePort, - client, - start, - end, - ); - // Handle the data received from native side. - futures.add(receivePort.first); + final completer = Completer(); + futures.add(completer.future); + + final handler = helpLib.wrapCallback( + pd.ObjCBlock_ffiVoid_CMPedometerData_NSError.listener(lib, + (pd.CMPedometerData? result, pd.NSError? error) { + if (result != null) { + final stepCount = result.numberOfSteps.intValue; + final startHour = + hourFormatter.stringFromDate_(result.startDate).toString(); + completer.complete(Steps(startHour, stepCount)); + } else { + debugPrint("Query error: ${error?.localizedDescription}"); + completer.complete(null); + } + })); + handlers.add(handler); + client.queryPedometerDataFromDate_toDate_withHandler_( + start, end, handler); } - final data = await Future.wait(futures); - return data.where((e) => e != null).cast().map((address) { - final result = ffi.Pointer.fromAddress(address); - final pedometerData = - pd.CMPedometerData.castFromPointer(lib, result, release: true); - final stepCount = pedometerData.numberOfSteps?.intValue ?? 0; - final startHour = - hourFormatter.stringFromDate_(pedometerData.startDate!).toString(); - return Steps(startHour, stepCount); - }).toList(); + return (await Future.wait(futures)).nonNulls.toList(); } } diff --git a/experimental/pedometer/ffigen.yaml b/experimental/pedometer/ffigen.yaml index aa27fa0d6..894b3f14f 100644 --- a/experimental/pedometer/ffigen.yaml +++ b/experimental/pedometer/ffigen.yaml @@ -7,17 +7,18 @@ compiler-opts: - "-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks" - "-mios-version-min=13.0" exclude-all-by-default: true +functions: + include: + - "wrapCallback" objc-interfaces: include: - "CMPedometer" - - "PedometerHelper" - "NSDate" - "NSDateFormatter" headers: entry-points: - - "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreMotion.framework/Headers/CMPedometer.h" - "src/pedometerHelper.h" # To use this API, you must include the NSMotionUsageDescription key in your app’s Info.plist file # and provide a usage description string for this key. -# The usage description appears in the prompt that the user must accept the first time the system asks the user to access motion data for your app. \ No newline at end of file +# The usage description appears in the prompt that the user must accept the first time the system asks the user to access motion data for your app. diff --git a/experimental/pedometer/lib/pedometer_bindings_generated.dart b/experimental/pedometer/lib/pedometer_bindings_generated.dart index d6652f451..358d481f2 100644 --- a/experimental/pedometer/lib/pedometer_bindings_generated.dart +++ b/experimental/pedometer/lib/pedometer_bindings_generated.dart @@ -491,39 +491,57 @@ class PedometerBindings { late final _class_NSEnumerator1 = _getClass1("NSEnumerator"); late final _sel_nextObject1 = _registerName1("nextObject"); + ffi.Pointer _objc_msgSend_17( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_17( + obj, + sel, + ); + } + + late final __objc_msgSend_17Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_17 = __objc_msgSend_17Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_allObjects1 = _registerName1("allObjects"); late final _class_NSString1 = _getClass1("NSString"); late final _sel_length1 = _registerName1("length"); late final _sel_characterAtIndex_1 = _registerName1("characterAtIndex:"); - int _objc_msgSend_17( + int _objc_msgSend_18( ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_17( + return __objc_msgSend_18( obj, sel, index, ); } - late final __objc_msgSend_17Ptr = _lookup< + late final __objc_msgSend_18Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedShort Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_17 = __objc_msgSend_17Ptr.asFunction< + late final __objc_msgSend_18 = __objc_msgSend_18Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, int)>(); late final _class_NSCoder1 = _getClass1("NSCoder"); late final _sel_encodeValueOfObjCType_at_1 = _registerName1("encodeValueOfObjCType:at:"); - void _objc_msgSend_18( + void _objc_msgSend_19( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer type, ffi.Pointer addr, ) { - return __objc_msgSend_18( + return __objc_msgSend_19( obj, sel, type, @@ -531,61 +549,61 @@ class PedometerBindings { ); } - late final __objc_msgSend_18Ptr = _lookup< + late final __objc_msgSend_19Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_18 = __objc_msgSend_18Ptr.asFunction< + late final __objc_msgSend_19 = __objc_msgSend_19Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSData1 = _getClass1("NSData"); late final _sel_bytes1 = _registerName1("bytes"); - ffi.Pointer _objc_msgSend_19( + ffi.Pointer _objc_msgSend_20( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_19( + return __objc_msgSend_20( obj, sel, ); } - late final __objc_msgSend_19Ptr = _lookup< + late final __objc_msgSend_20Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_19 = __objc_msgSend_19Ptr.asFunction< + late final __objc_msgSend_20 = __objc_msgSend_20Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_description1 = _registerName1("description"); - ffi.Pointer _objc_msgSend_20( + ffi.Pointer _objc_msgSend_21( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_20( + return __objc_msgSend_21( obj, sel, ); } - late final __objc_msgSend_20Ptr = _lookup< + late final __objc_msgSend_21Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_20 = __objc_msgSend_20Ptr.asFunction< + late final __objc_msgSend_21 = __objc_msgSend_21Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_getBytes_length_1 = _registerName1("getBytes:length:"); - void _objc_msgSend_21( + void _objc_msgSend_22( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, int length, ) { - return __objc_msgSend_21( + return __objc_msgSend_22( obj, sel, buffer, @@ -593,22 +611,22 @@ class PedometerBindings { ); } - late final __objc_msgSend_21Ptr = _lookup< + late final __objc_msgSend_22Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_21 = __objc_msgSend_21Ptr.asFunction< + late final __objc_msgSend_22 = __objc_msgSend_22Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_getBytes_range_1 = _registerName1("getBytes:range:"); - void _objc_msgSend_22( + void _objc_msgSend_23( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, _NSRange range, ) { - return __objc_msgSend_22( + return __objc_msgSend_23( obj, sel, buffer, @@ -616,65 +634,65 @@ class PedometerBindings { ); } - late final __objc_msgSend_22Ptr = _lookup< + late final __objc_msgSend_23Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_22 = __objc_msgSend_22Ptr.asFunction< + late final __objc_msgSend_23 = __objc_msgSend_23Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_isEqualToData_1 = _registerName1("isEqualToData:"); - bool _objc_msgSend_23( + bool _objc_msgSend_24( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_23( + return __objc_msgSend_24( obj, sel, other, ); } - late final __objc_msgSend_23Ptr = _lookup< + late final __objc_msgSend_24Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_23 = __objc_msgSend_23Ptr.asFunction< + late final __objc_msgSend_24 = __objc_msgSend_24Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_subdataWithRange_1 = _registerName1("subdataWithRange:"); - ffi.Pointer _objc_msgSend_24( + ffi.Pointer _objc_msgSend_25( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ) { - return __objc_msgSend_24( + return __objc_msgSend_25( obj, sel, range, ); } - late final __objc_msgSend_24Ptr = _lookup< + late final __objc_msgSend_25Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_24 = __objc_msgSend_24Ptr.asFunction< + late final __objc_msgSend_25 = __objc_msgSend_25Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_writeToFile_atomically_1 = _registerName1("writeToFile:atomically:"); - bool _objc_msgSend_25( + bool _objc_msgSend_26( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, bool useAuxiliaryFile, ) { - return __objc_msgSend_25( + return __objc_msgSend_26( obj, sel, path, @@ -682,25 +700,25 @@ class PedometerBindings { ); } - late final __objc_msgSend_25Ptr = _lookup< + late final __objc_msgSend_26Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_25 = __objc_msgSend_25Ptr.asFunction< + late final __objc_msgSend_26 = __objc_msgSend_26Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _class_NSURL1 = _getClass1("NSURL"); late final _sel_initWithScheme_host_path_1 = _registerName1("initWithScheme:host:path:"); - instancetype _objc_msgSend_26( + instancetype _objc_msgSend_27( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer scheme, ffi.Pointer host, ffi.Pointer path, ) { - return __objc_msgSend_26( + return __objc_msgSend_27( obj, sel, scheme, @@ -709,7 +727,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_26Ptr = _lookup< + late final __objc_msgSend_27Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -717,7 +735,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_26 = __objc_msgSend_26Ptr.asFunction< + late final __objc_msgSend_27 = __objc_msgSend_27Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -727,14 +745,14 @@ class PedometerBindings { late final _sel_initFileURLWithPath_isDirectory_relativeToURL_1 = _registerName1("initFileURLWithPath:isDirectory:relativeToURL:"); - instancetype _objc_msgSend_27( + instancetype _objc_msgSend_28( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, bool isDir, ffi.Pointer baseURL, ) { - return __objc_msgSend_27( + return __objc_msgSend_28( obj, sel, path, @@ -743,7 +761,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_27Ptr = _lookup< + late final __objc_msgSend_28Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -751,19 +769,19 @@ class PedometerBindings { ffi.Pointer, ffi.Bool, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_27 = __objc_msgSend_27Ptr.asFunction< + late final __objc_msgSend_28 = __objc_msgSend_28Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool, ffi.Pointer)>(); late final _sel_initFileURLWithPath_relativeToURL_1 = _registerName1("initFileURLWithPath:relativeToURL:"); - instancetype _objc_msgSend_28( + instancetype _objc_msgSend_29( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer baseURL, ) { - return __objc_msgSend_28( + return __objc_msgSend_29( obj, sel, path, @@ -771,26 +789,26 @@ class PedometerBindings { ); } - late final __objc_msgSend_28Ptr = _lookup< + late final __objc_msgSend_29Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_28 = __objc_msgSend_28Ptr.asFunction< + late final __objc_msgSend_29 = __objc_msgSend_29Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initFileURLWithPath_isDirectory_1 = _registerName1("initFileURLWithPath:isDirectory:"); - instancetype _objc_msgSend_29( + instancetype _objc_msgSend_30( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, bool isDir, ) { - return __objc_msgSend_29( + return __objc_msgSend_30( obj, sel, path, @@ -798,46 +816,46 @@ class PedometerBindings { ); } - late final __objc_msgSend_29Ptr = _lookup< + late final __objc_msgSend_30Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_29 = __objc_msgSend_29Ptr.asFunction< + late final __objc_msgSend_30 = __objc_msgSend_30Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_initFileURLWithPath_1 = _registerName1("initFileURLWithPath:"); - instancetype _objc_msgSend_30( + instancetype _objc_msgSend_31( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ) { - return __objc_msgSend_30( + return __objc_msgSend_31( obj, sel, path, ); } - late final __objc_msgSend_30Ptr = _lookup< + late final __objc_msgSend_31Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_30 = __objc_msgSend_30Ptr.asFunction< + late final __objc_msgSend_31 = __objc_msgSend_31Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_fileURLWithPath_isDirectory_relativeToURL_1 = _registerName1("fileURLWithPath:isDirectory:relativeToURL:"); - ffi.Pointer _objc_msgSend_31( + ffi.Pointer _objc_msgSend_32( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, bool isDir, ffi.Pointer baseURL, ) { - return __objc_msgSend_31( + return __objc_msgSend_32( obj, sel, path, @@ -846,7 +864,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_31Ptr = _lookup< + late final __objc_msgSend_32Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -854,7 +872,7 @@ class PedometerBindings { ffi.Pointer, ffi.Bool, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_31 = __objc_msgSend_31Ptr.asFunction< + late final __objc_msgSend_32 = __objc_msgSend_32Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -864,13 +882,13 @@ class PedometerBindings { late final _sel_fileURLWithPath_relativeToURL_1 = _registerName1("fileURLWithPath:relativeToURL:"); - ffi.Pointer _objc_msgSend_32( + ffi.Pointer _objc_msgSend_33( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer baseURL, ) { - return __objc_msgSend_32( + return __objc_msgSend_33( obj, sel, path, @@ -878,14 +896,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_32Ptr = _lookup< + late final __objc_msgSend_33Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_32 = __objc_msgSend_32Ptr.asFunction< + late final __objc_msgSend_33 = __objc_msgSend_33Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -894,13 +912,13 @@ class PedometerBindings { late final _sel_fileURLWithPath_isDirectory_1 = _registerName1("fileURLWithPath:isDirectory:"); - ffi.Pointer _objc_msgSend_33( + ffi.Pointer _objc_msgSend_34( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, bool isDir, ) { - return __objc_msgSend_33( + return __objc_msgSend_34( obj, sel, path, @@ -908,49 +926,49 @@ class PedometerBindings { ); } - late final __objc_msgSend_33Ptr = _lookup< + late final __objc_msgSend_34Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_33 = __objc_msgSend_33Ptr.asFunction< + late final __objc_msgSend_34 = __objc_msgSend_34Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_fileURLWithPath_1 = _registerName1("fileURLWithPath:"); - ffi.Pointer _objc_msgSend_34( + ffi.Pointer _objc_msgSend_35( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ) { - return __objc_msgSend_34( + return __objc_msgSend_35( obj, sel, path, ); } - late final __objc_msgSend_34Ptr = _lookup< + late final __objc_msgSend_35Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_34 = __objc_msgSend_34Ptr.asFunction< + late final __objc_msgSend_35 = __objc_msgSend_35Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_1 = _registerName1( "initFileURLWithFileSystemRepresentation:isDirectory:relativeToURL:"); - instancetype _objc_msgSend_35( + instancetype _objc_msgSend_36( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, bool isDir, ffi.Pointer baseURL, ) { - return __objc_msgSend_35( + return __objc_msgSend_36( obj, sel, path, @@ -959,7 +977,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_35Ptr = _lookup< + late final __objc_msgSend_36Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -967,21 +985,21 @@ class PedometerBindings { ffi.Pointer, ffi.Bool, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_35 = __objc_msgSend_35Ptr.asFunction< + late final __objc_msgSend_36 = __objc_msgSend_36Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool, ffi.Pointer)>(); late final _sel_fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_1 = _registerName1( "fileURLWithFileSystemRepresentation:isDirectory:relativeToURL:"); - ffi.Pointer _objc_msgSend_36( + ffi.Pointer _objc_msgSend_37( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, bool isDir, ffi.Pointer baseURL, ) { - return __objc_msgSend_36( + return __objc_msgSend_37( obj, sel, path, @@ -990,7 +1008,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_36Ptr = _lookup< + late final __objc_msgSend_37Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -998,7 +1016,7 @@ class PedometerBindings { ffi.Pointer, ffi.Bool, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_36 = __objc_msgSend_36Ptr.asFunction< + late final __objc_msgSend_37 = __objc_msgSend_37Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -1007,20 +1025,91 @@ class PedometerBindings { ffi.Pointer)>(); late final _sel_initWithString_1 = _registerName1("initWithString:"); + instancetype _objc_msgSend_38( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer URLString, + ) { + return __objc_msgSend_38( + obj, + sel, + URLString, + ); + } + + late final __objc_msgSend_38Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_38 = __objc_msgSend_38Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_initWithString_relativeToURL_1 = _registerName1("initWithString:relativeToURL:"); + instancetype _objc_msgSend_39( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer URLString, + ffi.Pointer baseURL, + ) { + return __objc_msgSend_39( + obj, + sel, + URLString, + baseURL, + ); + } + + late final __objc_msgSend_39Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_39 = __objc_msgSend_39Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_URLWithString_1 = _registerName1("URLWithString:"); late final _sel_URLWithString_relativeToURL_1 = _registerName1("URLWithString:relativeToURL:"); + late final _sel_initWithString_encodingInvalidCharacters_1 = + _registerName1("initWithString:encodingInvalidCharacters:"); + instancetype _objc_msgSend_40( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer URLString, + bool encodingInvalidCharacters, + ) { + return __objc_msgSend_40( + obj, + sel, + URLString, + encodingInvalidCharacters, + ); + } + + late final __objc_msgSend_40Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_40 = __objc_msgSend_40Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool)>(); + + late final _sel_URLWithString_encodingInvalidCharacters_1 = + _registerName1("URLWithString:encodingInvalidCharacters:"); late final _sel_initWithDataRepresentation_relativeToURL_1 = _registerName1("initWithDataRepresentation:relativeToURL:"); - instancetype _objc_msgSend_37( + instancetype _objc_msgSend_41( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ffi.Pointer baseURL, ) { - return __objc_msgSend_37( + return __objc_msgSend_41( obj, sel, data, @@ -1028,26 +1117,26 @@ class PedometerBindings { ); } - late final __objc_msgSend_37Ptr = _lookup< + late final __objc_msgSend_41Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_37 = __objc_msgSend_37Ptr.asFunction< + late final __objc_msgSend_41 = __objc_msgSend_41Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_URLWithDataRepresentation_relativeToURL_1 = _registerName1("URLWithDataRepresentation:relativeToURL:"); - ffi.Pointer _objc_msgSend_38( + ffi.Pointer _objc_msgSend_42( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ffi.Pointer baseURL, ) { - return __objc_msgSend_38( + return __objc_msgSend_42( obj, sel, data, @@ -1055,14 +1144,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_38Ptr = _lookup< + late final __objc_msgSend_42Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_38 = __objc_msgSend_38Ptr.asFunction< + late final __objc_msgSend_42 = __objc_msgSend_42Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -1074,42 +1163,60 @@ class PedometerBindings { late final _sel_absoluteURLWithDataRepresentation_relativeToURL_1 = _registerName1("absoluteURLWithDataRepresentation:relativeToURL:"); late final _sel_dataRepresentation1 = _registerName1("dataRepresentation"); - ffi.Pointer _objc_msgSend_39( + ffi.Pointer _objc_msgSend_43( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_39( + return __objc_msgSend_43( obj, sel, ); } - late final __objc_msgSend_39Ptr = _lookup< + late final __objc_msgSend_43Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_39 = __objc_msgSend_39Ptr.asFunction< + late final __objc_msgSend_43 = __objc_msgSend_43Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_absoluteString1 = _registerName1("absoluteString"); + ffi.Pointer _objc_msgSend_44( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_44( + obj, + sel, + ); + } + + late final __objc_msgSend_44Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_44 = __objc_msgSend_44Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_relativeString1 = _registerName1("relativeString"); late final _sel_baseURL1 = _registerName1("baseURL"); - ffi.Pointer _objc_msgSend_40( + ffi.Pointer _objc_msgSend_45( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_40( + return __objc_msgSend_45( obj, sel, ); } - late final __objc_msgSend_40Ptr = _lookup< + late final __objc_msgSend_45Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_40 = __objc_msgSend_40Ptr.asFunction< + late final __objc_msgSend_45 = __objc_msgSend_45Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -1123,13 +1230,13 @@ class PedometerBindings { late final _sel_objCType1 = _registerName1("objCType"); late final _sel_initWithBytes_objCType_1 = _registerName1("initWithBytes:objCType:"); - instancetype _objc_msgSend_41( + instancetype _objc_msgSend_46( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ffi.Pointer type, ) { - return __objc_msgSend_41( + return __objc_msgSend_46( obj, sel, value, @@ -1137,44 +1244,44 @@ class PedometerBindings { ); } - late final __objc_msgSend_41Ptr = _lookup< + late final __objc_msgSend_46Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_41 = __objc_msgSend_41Ptr.asFunction< + late final __objc_msgSend_46 = __objc_msgSend_46Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithCoder_1 = _registerName1("initWithCoder:"); - instancetype _objc_msgSend_42( + instancetype _objc_msgSend_47( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer coder, ) { - return __objc_msgSend_42( + return __objc_msgSend_47( obj, sel, coder, ); } - late final __objc_msgSend_42Ptr = _lookup< + late final __objc_msgSend_47Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_42 = __objc_msgSend_42Ptr.asFunction< + late final __objc_msgSend_47 = __objc_msgSend_47Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_valueWithBytes_objCType_1 = _registerName1("valueWithBytes:objCType:"); - ffi.Pointer _objc_msgSend_43( + ffi.Pointer _objc_msgSend_48( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ffi.Pointer type, ) { - return __objc_msgSend_43( + return __objc_msgSend_48( obj, sel, value, @@ -1182,14 +1289,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_43Ptr = _lookup< + late final __objc_msgSend_48Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_43 = __objc_msgSend_43Ptr.asFunction< + late final __objc_msgSend_48 = __objc_msgSend_48Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -1199,206 +1306,209 @@ class PedometerBindings { late final _sel_value_withObjCType_1 = _registerName1("value:withObjCType:"); late final _sel_valueWithNonretainedObject_1 = _registerName1("valueWithNonretainedObject:"); - ffi.Pointer _objc_msgSend_44( + ffi.Pointer _objc_msgSend_49( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, ) { - return __objc_msgSend_44( + return __objc_msgSend_49( obj, sel, anObject, ); } - late final __objc_msgSend_44Ptr = _lookup< + late final __objc_msgSend_49Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_44 = __objc_msgSend_44Ptr.asFunction< + late final __objc_msgSend_49 = __objc_msgSend_49Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_nonretainedObjectValue1 = _registerName1("nonretainedObjectValue"); late final _sel_valueWithPointer_1 = _registerName1("valueWithPointer:"); - ffi.Pointer _objc_msgSend_45( + ffi.Pointer _objc_msgSend_50( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer pointer, ) { - return __objc_msgSend_45( + return __objc_msgSend_50( obj, sel, pointer, ); } - late final __objc_msgSend_45Ptr = _lookup< + late final __objc_msgSend_50Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_45 = __objc_msgSend_45Ptr.asFunction< + late final __objc_msgSend_50 = __objc_msgSend_50Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_pointerValue1 = _registerName1("pointerValue"); late final _sel_isEqualToValue_1 = _registerName1("isEqualToValue:"); - bool _objc_msgSend_46( + bool _objc_msgSend_51( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_46( + return __objc_msgSend_51( obj, sel, value, ); } - late final __objc_msgSend_46Ptr = _lookup< + late final __objc_msgSend_51Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_46 = __objc_msgSend_46Ptr.asFunction< + late final __objc_msgSend_51 = __objc_msgSend_51Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_getValue_1 = _registerName1("getValue:"); - void _objc_msgSend_47( + void _objc_msgSend_52( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_47( + return __objc_msgSend_52( obj, sel, value, ); } - late final __objc_msgSend_47Ptr = _lookup< + late final __objc_msgSend_52Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_47 = __objc_msgSend_47Ptr.asFunction< + late final __objc_msgSend_52 = __objc_msgSend_52Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_valueWithRange_1 = _registerName1("valueWithRange:"); - ffi.Pointer _objc_msgSend_48( + ffi.Pointer _objc_msgSend_53( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ) { - return __objc_msgSend_48( + return __objc_msgSend_53( obj, sel, range, ); } - late final __objc_msgSend_48Ptr = _lookup< + late final __objc_msgSend_53Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_48 = __objc_msgSend_48Ptr.asFunction< + late final __objc_msgSend_53 = __objc_msgSend_53Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_rangeValue1 = _registerName1("rangeValue"); - _NSRange _objc_msgSend_49( + void _objc_msgSend_54( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_49( + return __objc_msgSend_54( + stret, obj, sel, ); } - late final __objc_msgSend_49Ptr = _lookup< + late final __objc_msgSend_54Ptr = _lookup< ffi.NativeFunction< - _NSRange Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_49 = __objc_msgSend_49Ptr.asFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_stret'); + late final __objc_msgSend_54 = __objc_msgSend_54Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer)>(); late final _sel_keyPathsForValuesAffectingValueForKey_1 = _registerName1("keyPathsForValuesAffectingValueForKey:"); - ffi.Pointer _objc_msgSend_50( + ffi.Pointer _objc_msgSend_55( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_50( + return __objc_msgSend_55( obj, sel, key, ); } - late final __objc_msgSend_50Ptr = _lookup< + late final __objc_msgSend_55Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_50 = __objc_msgSend_50Ptr.asFunction< + late final __objc_msgSend_55 = __objc_msgSend_55Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_automaticallyNotifiesObserversForKey_1 = _registerName1("automaticallyNotifiesObserversForKey:"); - bool _objc_msgSend_51( + bool _objc_msgSend_56( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_51( + return __objc_msgSend_56( obj, sel, key, ); } - late final __objc_msgSend_51Ptr = _lookup< + late final __objc_msgSend_56Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_51 = __objc_msgSend_51Ptr.asFunction< + late final __objc_msgSend_56 = __objc_msgSend_56Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSArray1 = _getClass1("NSArray"); late final _sel_objectAtIndex_1 = _registerName1("objectAtIndex:"); - ffi.Pointer _objc_msgSend_52( + ffi.Pointer _objc_msgSend_57( ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_52( + return __objc_msgSend_57( obj, sel, index, ); } - late final __objc_msgSend_52Ptr = _lookup< + late final __objc_msgSend_57Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_52 = __objc_msgSend_52Ptr.asFunction< + late final __objc_msgSend_57 = __objc_msgSend_57Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithObjects_count_1 = _registerName1("initWithObjects:count:"); - instancetype _objc_msgSend_53( + instancetype _objc_msgSend_58( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> objects, int cnt, ) { - return __objc_msgSend_53( + return __objc_msgSend_58( obj, sel, objects, @@ -1406,115 +1516,115 @@ class PedometerBindings { ); } - late final __objc_msgSend_53Ptr = _lookup< + late final __objc_msgSend_58Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_53 = __objc_msgSend_53Ptr.asFunction< + late final __objc_msgSend_58 = __objc_msgSend_58Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>, int)>(); late final _sel_arrayByAddingObject_1 = _registerName1("arrayByAddingObject:"); - ffi.Pointer _objc_msgSend_54( + ffi.Pointer _objc_msgSend_59( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, ) { - return __objc_msgSend_54( + return __objc_msgSend_59( obj, sel, anObject, ); } - late final __objc_msgSend_54Ptr = _lookup< + late final __objc_msgSend_59Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_54 = __objc_msgSend_54Ptr.asFunction< + late final __objc_msgSend_59 = __objc_msgSend_59Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_arrayByAddingObjectsFromArray_1 = _registerName1("arrayByAddingObjectsFromArray:"); - ffi.Pointer _objc_msgSend_55( + ffi.Pointer _objc_msgSend_60( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherArray, ) { - return __objc_msgSend_55( + return __objc_msgSend_60( obj, sel, otherArray, ); } - late final __objc_msgSend_55Ptr = _lookup< + late final __objc_msgSend_60Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_55 = __objc_msgSend_55Ptr.asFunction< + late final __objc_msgSend_60 = __objc_msgSend_60Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_componentsJoinedByString_1 = _registerName1("componentsJoinedByString:"); - ffi.Pointer _objc_msgSend_56( + ffi.Pointer _objc_msgSend_61( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer separator, ) { - return __objc_msgSend_56( + return __objc_msgSend_61( obj, sel, separator, ); } - late final __objc_msgSend_56Ptr = _lookup< + late final __objc_msgSend_61Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_56 = __objc_msgSend_56Ptr.asFunction< + late final __objc_msgSend_61 = __objc_msgSend_61Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_containsObject_1 = _registerName1("containsObject:"); late final _sel_descriptionWithLocale_1 = _registerName1("descriptionWithLocale:"); - ffi.Pointer _objc_msgSend_57( + ffi.Pointer _objc_msgSend_62( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer locale, ) { - return __objc_msgSend_57( + return __objc_msgSend_62( obj, sel, locale, ); } - late final __objc_msgSend_57Ptr = _lookup< + late final __objc_msgSend_62Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_57 = __objc_msgSend_57Ptr.asFunction< + late final __objc_msgSend_62 = __objc_msgSend_62Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_descriptionWithLocale_indent_1 = _registerName1("descriptionWithLocale:indent:"); - ffi.Pointer _objc_msgSend_58( + ffi.Pointer _objc_msgSend_63( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer locale, int level, ) { - return __objc_msgSend_58( + return __objc_msgSend_63( obj, sel, locale, @@ -1522,47 +1632,47 @@ class PedometerBindings { ); } - late final __objc_msgSend_58Ptr = _lookup< + late final __objc_msgSend_63Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_58 = __objc_msgSend_58Ptr.asFunction< + late final __objc_msgSend_63 = __objc_msgSend_63Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_firstObjectCommonWithArray_1 = _registerName1("firstObjectCommonWithArray:"); - ffi.Pointer _objc_msgSend_59( + ffi.Pointer _objc_msgSend_64( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherArray, ) { - return __objc_msgSend_59( + return __objc_msgSend_64( obj, sel, otherArray, ); } - late final __objc_msgSend_59Ptr = _lookup< + late final __objc_msgSend_64Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_59 = __objc_msgSend_59Ptr.asFunction< + late final __objc_msgSend_64 = __objc_msgSend_64Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_getObjects_range_1 = _registerName1("getObjects:range:"); - void _objc_msgSend_60( + void _objc_msgSend_65( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> objects, _NSRange range, ) { - return __objc_msgSend_60( + return __objc_msgSend_65( obj, sel, objects, @@ -1570,44 +1680,44 @@ class PedometerBindings { ); } - late final __objc_msgSend_60Ptr = _lookup< + late final __objc_msgSend_65Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_60 = __objc_msgSend_60Ptr.asFunction< + late final __objc_msgSend_65 = __objc_msgSend_65Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>, _NSRange)>(); late final _sel_indexOfObject_1 = _registerName1("indexOfObject:"); - int _objc_msgSend_61( + int _objc_msgSend_66( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, ) { - return __objc_msgSend_61( + return __objc_msgSend_66( obj, sel, anObject, ); } - late final __objc_msgSend_61Ptr = _lookup< + late final __objc_msgSend_66Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedLong Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_61 = __objc_msgSend_61Ptr.asFunction< + late final __objc_msgSend_66 = __objc_msgSend_66Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_indexOfObject_inRange_1 = _registerName1("indexOfObject:inRange:"); - int _objc_msgSend_62( + int _objc_msgSend_67( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, _NSRange range, ) { - return __objc_msgSend_62( + return __objc_msgSend_67( obj, sel, anObject, @@ -1615,14 +1725,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_62Ptr = _lookup< + late final __objc_msgSend_67Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_62 = __objc_msgSend_62Ptr.asFunction< + late final __objc_msgSend_67 = __objc_msgSend_67Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange)>(); @@ -1631,44 +1741,44 @@ class PedometerBindings { late final _sel_indexOfObjectIdenticalTo_inRange_1 = _registerName1("indexOfObjectIdenticalTo:inRange:"); late final _sel_isEqualToArray_1 = _registerName1("isEqualToArray:"); - bool _objc_msgSend_63( + bool _objc_msgSend_68( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherArray, ) { - return __objc_msgSend_63( + return __objc_msgSend_68( obj, sel, otherArray, ); } - late final __objc_msgSend_63Ptr = _lookup< + late final __objc_msgSend_68Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_63 = __objc_msgSend_63Ptr.asFunction< + late final __objc_msgSend_68 = __objc_msgSend_68Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_firstObject1 = _registerName1("firstObject"); late final _sel_lastObject1 = _registerName1("lastObject"); late final _sel_objectEnumerator1 = _registerName1("objectEnumerator"); - ffi.Pointer _objc_msgSend_64( + ffi.Pointer _objc_msgSend_69( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_64( + return __objc_msgSend_69( obj, sel, ); } - late final __objc_msgSend_64Ptr = _lookup< + late final __objc_msgSend_69Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_64 = __objc_msgSend_64Ptr.asFunction< + late final __objc_msgSend_69 = __objc_msgSend_69Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -1677,7 +1787,7 @@ class PedometerBindings { late final _sel_sortedArrayHint1 = _registerName1("sortedArrayHint"); late final _sel_sortedArrayUsingFunction_context_1 = _registerName1("sortedArrayUsingFunction:context:"); - ffi.Pointer _objc_msgSend_65( + ffi.Pointer _objc_msgSend_70( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< @@ -1687,7 +1797,7 @@ class PedometerBindings { comparator, ffi.Pointer context, ) { - return __objc_msgSend_65( + return __objc_msgSend_70( obj, sel, comparator, @@ -1695,7 +1805,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_65Ptr = _lookup< + late final __objc_msgSend_70Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -1705,7 +1815,7 @@ class PedometerBindings { ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_65 = __objc_msgSend_65Ptr.asFunction< + late final __objc_msgSend_70 = __objc_msgSend_70Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -1717,7 +1827,7 @@ class PedometerBindings { late final _sel_sortedArrayUsingFunction_context_hint_1 = _registerName1("sortedArrayUsingFunction:context:hint:"); - ffi.Pointer _objc_msgSend_66( + ffi.Pointer _objc_msgSend_71( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< @@ -1728,7 +1838,7 @@ class PedometerBindings { ffi.Pointer context, ffi.Pointer hint, ) { - return __objc_msgSend_66( + return __objc_msgSend_71( obj, sel, comparator, @@ -1737,7 +1847,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_66Ptr = _lookup< + late final __objc_msgSend_71Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -1748,7 +1858,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer)>>, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_66 = __objc_msgSend_66Ptr.asFunction< + late final __objc_msgSend_71 = __objc_msgSend_71Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -1761,58 +1871,58 @@ class PedometerBindings { late final _sel_sortedArrayUsingSelector_1 = _registerName1("sortedArrayUsingSelector:"); - ffi.Pointer _objc_msgSend_67( + ffi.Pointer _objc_msgSend_72( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer comparator, ) { - return __objc_msgSend_67( + return __objc_msgSend_72( obj, sel, comparator, ); } - late final __objc_msgSend_67Ptr = _lookup< + late final __objc_msgSend_72Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_67 = __objc_msgSend_67Ptr.asFunction< + late final __objc_msgSend_72 = __objc_msgSend_72Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_subarrayWithRange_1 = _registerName1("subarrayWithRange:"); - ffi.Pointer _objc_msgSend_68( + ffi.Pointer _objc_msgSend_73( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ) { - return __objc_msgSend_68( + return __objc_msgSend_73( obj, sel, range, ); } - late final __objc_msgSend_68Ptr = _lookup< + late final __objc_msgSend_73Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_68 = __objc_msgSend_68Ptr.asFunction< + late final __objc_msgSend_73 = __objc_msgSend_73Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _class_NSError1 = _getClass1("NSError"); late final _sel_initWithDomain_code_userInfo_1 = _registerName1("initWithDomain:code:userInfo:"); - instancetype _objc_msgSend_69( + instancetype _objc_msgSend_74( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer domain, int code, ffi.Pointer dict, ) { - return __objc_msgSend_69( + return __objc_msgSend_74( obj, sel, domain, @@ -1821,7 +1931,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_69Ptr = _lookup< + late final __objc_msgSend_74Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -1829,7 +1939,7 @@ class PedometerBindings { ffi.Pointer, ffi.Long, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_69 = __objc_msgSend_69Ptr.asFunction< + late final __objc_msgSend_74 = __objc_msgSend_74Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); @@ -1837,21 +1947,21 @@ class PedometerBindings { _registerName1("errorWithDomain:code:userInfo:"); late final _sel_domain1 = _registerName1("domain"); late final _sel_code1 = _registerName1("code"); - int _objc_msgSend_70( + int _objc_msgSend_75( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_70( + return __objc_msgSend_75( obj, sel, ); } - late final __objc_msgSend_70Ptr = _lookup< + late final __objc_msgSend_75Ptr = _lookup< ffi.NativeFunction< ffi.Long Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_70 = __objc_msgSend_70Ptr.asFunction< + late final __objc_msgSend_75 = __objc_msgSend_75Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_userInfo1 = _registerName1("userInfo"); @@ -1863,27 +1973,45 @@ class PedometerBindings { _registerName1("localizedRecoverySuggestion"); late final _sel_localizedRecoveryOptions1 = _registerName1("localizedRecoveryOptions"); - ffi.Pointer _objc_msgSend_71( + ffi.Pointer _objc_msgSend_76( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_71( + return __objc_msgSend_76( obj, sel, ); } - late final __objc_msgSend_71Ptr = _lookup< + late final __objc_msgSend_76Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_71 = __objc_msgSend_71Ptr.asFunction< + late final __objc_msgSend_76 = __objc_msgSend_76Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_recoveryAttempter1 = _registerName1("recoveryAttempter"); late final _sel_helpAnchor1 = _registerName1("helpAnchor"); late final _sel_underlyingErrors1 = _registerName1("underlyingErrors"); + ffi.Pointer _objc_msgSend_77( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_77( + obj, + sel, + ); + } + + late final __objc_msgSend_77Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_77 = __objc_msgSend_77Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer<_ObjCBlockDesc> _newBlockDesc1() { final d = pkg_ffi.calloc.allocate<_ObjCBlockDesc>(ffi.sizeOf<_ObjCBlockDesc>()); @@ -1945,13 +2073,13 @@ class PedometerBindings { ffi.NativeFinalizer(__Block_releasePtr.cast()); late final _sel_setUserInfoValueProviderForDomain_provider_1 = _registerName1("setUserInfoValueProviderForDomain:provider:"); - void _objc_msgSend_72( + void _objc_msgSend_78( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer errorDomain, ffi.Pointer<_ObjCBlock> provider, ) { - return __objc_msgSend_72( + return __objc_msgSend_78( obj, sel, errorDomain, @@ -1959,27 +2087,27 @@ class PedometerBindings { ); } - late final __objc_msgSend_72Ptr = _lookup< + late final __objc_msgSend_78Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_72 = __objc_msgSend_72Ptr.asFunction< + late final __objc_msgSend_78 = __objc_msgSend_78Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_userInfoValueProviderForDomain_1 = _registerName1("userInfoValueProviderForDomain:"); - ffi.Pointer<_ObjCBlock> _objc_msgSend_73( + ffi.Pointer<_ObjCBlock> _objc_msgSend_79( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer err, ffi.Pointer userInfoKey, ffi.Pointer errorDomain, ) { - return __objc_msgSend_73( + return __objc_msgSend_79( obj, sel, err, @@ -1988,7 +2116,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_73Ptr = _lookup< + late final __objc_msgSend_79Ptr = _lookup< ffi.NativeFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, @@ -1996,7 +2124,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_73 = __objc_msgSend_73Ptr.asFunction< + late final __objc_msgSend_79 = __objc_msgSend_79Ptr.asFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer, @@ -2004,45 +2132,18 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer)>(); - late final _sel_setKeys_triggerChangeNotificationsForDependentKey_1 = - _registerName1("setKeys:triggerChangeNotificationsForDependentKey:"); - void _objc_msgSend_74( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer keys, - ffi.Pointer dependentKey, - ) { - return __objc_msgSend_74( - obj, - sel, - keys, - dependentKey, - ); - } - - late final __objc_msgSend_74Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_74 = __objc_msgSend_74Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - late final _sel_classFallbacksForKeyedArchiver1 = _registerName1("classFallbacksForKeyedArchiver"); late final _sel_classForKeyedUnarchiver1 = _registerName1("classForKeyedUnarchiver"); late final _sel_writeToURL_error_1 = _registerName1("writeToURL:error:"); - bool _objc_msgSend_75( + bool _objc_msgSend_80( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer> error, ) { - return __objc_msgSend_75( + return __objc_msgSend_80( obj, sel, url, @@ -2050,14 +2151,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_75Ptr = _lookup< + late final __objc_msgSend_80Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_75 = __objc_msgSend_75Ptr.asFunction< + late final __objc_msgSend_80 = __objc_msgSend_80Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); @@ -2065,13 +2166,13 @@ class PedometerBindings { _registerName1("makeObjectsPerformSelector:"); late final _sel_makeObjectsPerformSelector_withObject_1 = _registerName1("makeObjectsPerformSelector:withObject:"); - void _objc_msgSend_76( + void _objc_msgSend_81( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, ffi.Pointer argument, ) { - return __objc_msgSend_76( + return __objc_msgSend_81( obj, sel, aSelector, @@ -2079,11 +2180,11 @@ class PedometerBindings { ); } - late final __objc_msgSend_76Ptr = _lookup< + late final __objc_msgSend_81Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_76 = __objc_msgSend_76Ptr.asFunction< + late final __objc_msgSend_81 = __objc_msgSend_81Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -2092,68 +2193,68 @@ class PedometerBindings { late final _sel_indexSetWithIndex_1 = _registerName1("indexSetWithIndex:"); late final _sel_indexSetWithIndexesInRange_1 = _registerName1("indexSetWithIndexesInRange:"); - instancetype _objc_msgSend_77( + instancetype _objc_msgSend_82( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ) { - return __objc_msgSend_77( + return __objc_msgSend_82( obj, sel, range, ); } - late final __objc_msgSend_77Ptr = _lookup< + late final __objc_msgSend_82Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_77 = __objc_msgSend_77Ptr.asFunction< + late final __objc_msgSend_82 = __objc_msgSend_82Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_initWithIndexesInRange_1 = _registerName1("initWithIndexesInRange:"); late final _sel_initWithIndexSet_1 = _registerName1("initWithIndexSet:"); - instancetype _objc_msgSend_78( + instancetype _objc_msgSend_83( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexSet, ) { - return __objc_msgSend_78( + return __objc_msgSend_83( obj, sel, indexSet, ); } - late final __objc_msgSend_78Ptr = _lookup< + late final __objc_msgSend_83Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_78 = __objc_msgSend_78Ptr.asFunction< + late final __objc_msgSend_83 = __objc_msgSend_83Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithIndex_1 = _registerName1("initWithIndex:"); late final _sel_isEqualToIndexSet_1 = _registerName1("isEqualToIndexSet:"); - bool _objc_msgSend_79( + bool _objc_msgSend_84( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexSet, ) { - return __objc_msgSend_79( + return __objc_msgSend_84( obj, sel, indexSet, ); } - late final __objc_msgSend_79Ptr = _lookup< + late final __objc_msgSend_84Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_79 = __objc_msgSend_79Ptr.asFunction< + late final __objc_msgSend_84 = __objc_msgSend_84Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -2161,23 +2262,23 @@ class PedometerBindings { late final _sel_lastIndex1 = _registerName1("lastIndex"); late final _sel_indexGreaterThanIndex_1 = _registerName1("indexGreaterThanIndex:"); - int _objc_msgSend_80( + int _objc_msgSend_85( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_80( + return __objc_msgSend_85( obj, sel, value, ); } - late final __objc_msgSend_80Ptr = _lookup< + late final __objc_msgSend_85Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedLong Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_80 = __objc_msgSend_80Ptr.asFunction< + late final __objc_msgSend_85 = __objc_msgSend_85Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_indexLessThanIndex_1 = _registerName1("indexLessThanIndex:"); @@ -2187,14 +2288,14 @@ class PedometerBindings { _registerName1("indexLessThanOrEqualToIndex:"); late final _sel_getIndexes_maxCount_inIndexRange_1 = _registerName1("getIndexes:maxCount:inIndexRange:"); - int _objc_msgSend_81( + int _objc_msgSend_86( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexBuffer, int bufferSize, ffi.Pointer<_NSRange> range, ) { - return __objc_msgSend_81( + return __objc_msgSend_86( obj, sel, indexBuffer, @@ -2203,7 +2304,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_81Ptr = _lookup< + late final __objc_msgSend_86Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedLong Function( ffi.Pointer, @@ -2211,70 +2312,70 @@ class PedometerBindings { ffi.Pointer, ffi.UnsignedLong, ffi.Pointer<_NSRange>)>>('objc_msgSend'); - late final __objc_msgSend_81 = __objc_msgSend_81Ptr.asFunction< + late final __objc_msgSend_86 = __objc_msgSend_86Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_NSRange>)>(); late final _sel_countOfIndexesInRange_1 = _registerName1("countOfIndexesInRange:"); - int _objc_msgSend_82( + int _objc_msgSend_87( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ) { - return __objc_msgSend_82( + return __objc_msgSend_87( obj, sel, range, ); } - late final __objc_msgSend_82Ptr = _lookup< + late final __objc_msgSend_87Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedLong Function(ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_82 = __objc_msgSend_82Ptr.asFunction< + late final __objc_msgSend_87 = __objc_msgSend_87Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_containsIndex_1 = _registerName1("containsIndex:"); - bool _objc_msgSend_83( + bool _objc_msgSend_88( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_83( + return __objc_msgSend_88( obj, sel, value, ); } - late final __objc_msgSend_83Ptr = _lookup< + late final __objc_msgSend_88Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_83 = __objc_msgSend_83Ptr.asFunction< + late final __objc_msgSend_88 = __objc_msgSend_88Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_containsIndexesInRange_1 = _registerName1("containsIndexesInRange:"); - bool _objc_msgSend_84( + bool _objc_msgSend_89( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ) { - return __objc_msgSend_84( + return __objc_msgSend_89( obj, sel, range, ); } - late final __objc_msgSend_84Ptr = _lookup< + late final __objc_msgSend_89Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_84 = __objc_msgSend_84Ptr.asFunction< + late final __objc_msgSend_89 = __objc_msgSend_89Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_containsIndexes_1 = _registerName1("containsIndexes:"); @@ -2282,35 +2383,35 @@ class PedometerBindings { _registerName1("intersectsIndexesInRange:"); late final _sel_enumerateIndexesUsingBlock_1 = _registerName1("enumerateIndexesUsingBlock:"); - void _objc_msgSend_85( + void _objc_msgSend_90( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_85( + return __objc_msgSend_90( obj, sel, block, ); } - late final __objc_msgSend_85Ptr = _lookup< + late final __objc_msgSend_90Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_85 = __objc_msgSend_85Ptr.asFunction< + late final __objc_msgSend_90 = __objc_msgSend_90Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateIndexesWithOptions_usingBlock_1 = _registerName1("enumerateIndexesWithOptions:usingBlock:"); - void _objc_msgSend_86( + void _objc_msgSend_91( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_86( + return __objc_msgSend_91( obj, sel, opts, @@ -2318,24 +2419,24 @@ class PedometerBindings { ); } - late final __objc_msgSend_86Ptr = _lookup< + late final __objc_msgSend_91Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_86 = __objc_msgSend_86Ptr.asFunction< + late final __objc_msgSend_91 = __objc_msgSend_91Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateIndexesInRange_options_usingBlock_1 = _registerName1("enumerateIndexesInRange:options:usingBlock:"); - void _objc_msgSend_87( + void _objc_msgSend_92( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_87( + return __objc_msgSend_92( obj, sel, range, @@ -2344,44 +2445,44 @@ class PedometerBindings { ); } - late final __objc_msgSend_87Ptr = _lookup< + late final __objc_msgSend_92Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_87 = __objc_msgSend_87Ptr.asFunction< + late final __objc_msgSend_92 = __objc_msgSend_92Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, _NSRange, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexPassingTest_1 = _registerName1("indexPassingTest:"); - int _objc_msgSend_88( + int _objc_msgSend_93( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_88( + return __objc_msgSend_93( obj, sel, predicate, ); } - late final __objc_msgSend_88Ptr = _lookup< + late final __objc_msgSend_93Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedLong Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_88 = __objc_msgSend_88Ptr.asFunction< + late final __objc_msgSend_93 = __objc_msgSend_93Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexWithOptions_passingTest_1 = _registerName1("indexWithOptions:passingTest:"); - int _objc_msgSend_89( + int _objc_msgSend_94( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_89( + return __objc_msgSend_94( obj, sel, opts, @@ -2389,27 +2490,27 @@ class PedometerBindings { ); } - late final __objc_msgSend_89Ptr = _lookup< + late final __objc_msgSend_94Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_89 = __objc_msgSend_89Ptr.asFunction< + late final __objc_msgSend_94 = __objc_msgSend_94Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexInRange_options_passingTest_1 = _registerName1("indexInRange:options:passingTest:"); - int _objc_msgSend_90( + int _objc_msgSend_95( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_90( + return __objc_msgSend_95( obj, sel, range, @@ -2418,7 +2519,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_90Ptr = _lookup< + late final __objc_msgSend_95Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedLong Function( ffi.Pointer, @@ -2426,40 +2527,40 @@ class PedometerBindings { _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_90 = __objc_msgSend_90Ptr.asFunction< + late final __objc_msgSend_95 = __objc_msgSend_95Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, _NSRange, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexesPassingTest_1 = _registerName1("indexesPassingTest:"); - ffi.Pointer _objc_msgSend_91( + ffi.Pointer _objc_msgSend_96( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_91( + return __objc_msgSend_96( obj, sel, predicate, ); } - late final __objc_msgSend_91Ptr = _lookup< + late final __objc_msgSend_96Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_91 = __objc_msgSend_91Ptr.asFunction< + late final __objc_msgSend_96 = __objc_msgSend_96Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexesWithOptions_passingTest_1 = _registerName1("indexesWithOptions:passingTest:"); - ffi.Pointer _objc_msgSend_92( + ffi.Pointer _objc_msgSend_97( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_92( + return __objc_msgSend_97( obj, sel, opts, @@ -2467,27 +2568,27 @@ class PedometerBindings { ); } - late final __objc_msgSend_92Ptr = _lookup< + late final __objc_msgSend_97Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_92 = __objc_msgSend_92Ptr.asFunction< + late final __objc_msgSend_97 = __objc_msgSend_97Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexesInRange_options_passingTest_1 = _registerName1("indexesInRange:options:passingTest:"); - ffi.Pointer _objc_msgSend_93( + ffi.Pointer _objc_msgSend_98( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_93( + return __objc_msgSend_98( obj, sel, range, @@ -2496,7 +2597,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_93Ptr = _lookup< + late final __objc_msgSend_98Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -2504,41 +2605,41 @@ class PedometerBindings { _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_93 = __objc_msgSend_93Ptr.asFunction< + late final __objc_msgSend_98 = __objc_msgSend_98Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, _NSRange, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateRangesUsingBlock_1 = _registerName1("enumerateRangesUsingBlock:"); - void _objc_msgSend_94( + void _objc_msgSend_99( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_94( + return __objc_msgSend_99( obj, sel, block, ); } - late final __objc_msgSend_94Ptr = _lookup< + late final __objc_msgSend_99Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_94 = __objc_msgSend_94Ptr.asFunction< + late final __objc_msgSend_99 = __objc_msgSend_99Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateRangesWithOptions_usingBlock_1 = _registerName1("enumerateRangesWithOptions:usingBlock:"); - void _objc_msgSend_95( + void _objc_msgSend_100( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_95( + return __objc_msgSend_100( obj, sel, opts, @@ -2546,24 +2647,24 @@ class PedometerBindings { ); } - late final __objc_msgSend_95Ptr = _lookup< + late final __objc_msgSend_100Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_95 = __objc_msgSend_95Ptr.asFunction< + late final __objc_msgSend_100 = __objc_msgSend_100Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateRangesInRange_options_usingBlock_1 = _registerName1("enumerateRangesInRange:options:usingBlock:"); - void _objc_msgSend_96( + void _objc_msgSend_101( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_96( + return __objc_msgSend_101( obj, sel, range, @@ -2572,32 +2673,32 @@ class PedometerBindings { ); } - late final __objc_msgSend_96Ptr = _lookup< + late final __objc_msgSend_101Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_96 = __objc_msgSend_96Ptr.asFunction< + late final __objc_msgSend_101 = __objc_msgSend_101Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, _NSRange, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_objectsAtIndexes_1 = _registerName1("objectsAtIndexes:"); - ffi.Pointer _objc_msgSend_97( + ffi.Pointer _objc_msgSend_102( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexes, ) { - return __objc_msgSend_97( + return __objc_msgSend_102( obj, sel, indexes, ); } - late final __objc_msgSend_97Ptr = _lookup< + late final __objc_msgSend_102Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_97 = __objc_msgSend_97Ptr.asFunction< + late final __objc_msgSend_102 = __objc_msgSend_102Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -2605,35 +2706,35 @@ class PedometerBindings { _registerName1("objectAtIndexedSubscript:"); late final _sel_enumerateObjectsUsingBlock_1 = _registerName1("enumerateObjectsUsingBlock:"); - void _objc_msgSend_98( + void _objc_msgSend_103( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_98( + return __objc_msgSend_103( obj, sel, block, ); } - late final __objc_msgSend_98Ptr = _lookup< + late final __objc_msgSend_103Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_98 = __objc_msgSend_98Ptr.asFunction< + late final __objc_msgSend_103 = __objc_msgSend_103Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateObjectsWithOptions_usingBlock_1 = _registerName1("enumerateObjectsWithOptions:usingBlock:"); - void _objc_msgSend_99( + void _objc_msgSend_104( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_99( + return __objc_msgSend_104( obj, sel, opts, @@ -2641,24 +2742,24 @@ class PedometerBindings { ); } - late final __objc_msgSend_99Ptr = _lookup< + late final __objc_msgSend_104Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_99 = __objc_msgSend_99Ptr.asFunction< + late final __objc_msgSend_104 = __objc_msgSend_104Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateObjectsAtIndexes_options_usingBlock_1 = _registerName1("enumerateObjectsAtIndexes:options:usingBlock:"); - void _objc_msgSend_100( + void _objc_msgSend_105( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer s, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_100( + return __objc_msgSend_105( obj, sel, s, @@ -2667,7 +2768,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_100Ptr = _lookup< + late final __objc_msgSend_105Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -2675,41 +2776,41 @@ class PedometerBindings { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_100 = __objc_msgSend_100Ptr.asFunction< + late final __objc_msgSend_105 = __objc_msgSend_105Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexOfObjectPassingTest_1 = _registerName1("indexOfObjectPassingTest:"); - int _objc_msgSend_101( + int _objc_msgSend_106( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_101( + return __objc_msgSend_106( obj, sel, predicate, ); } - late final __objc_msgSend_101Ptr = _lookup< + late final __objc_msgSend_106Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedLong Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_101 = __objc_msgSend_101Ptr.asFunction< + late final __objc_msgSend_106 = __objc_msgSend_106Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexOfObjectWithOptions_passingTest_1 = _registerName1("indexOfObjectWithOptions:passingTest:"); - int _objc_msgSend_102( + int _objc_msgSend_107( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_102( + return __objc_msgSend_107( obj, sel, opts, @@ -2717,27 +2818,27 @@ class PedometerBindings { ); } - late final __objc_msgSend_102Ptr = _lookup< + late final __objc_msgSend_107Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_102 = __objc_msgSend_102Ptr.asFunction< + late final __objc_msgSend_107 = __objc_msgSend_107Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexOfObjectAtIndexes_options_passingTest_1 = _registerName1("indexOfObjectAtIndexes:options:passingTest:"); - int _objc_msgSend_103( + int _objc_msgSend_108( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer s, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_103( + return __objc_msgSend_108( obj, sel, s, @@ -2746,7 +2847,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_103Ptr = _lookup< + late final __objc_msgSend_108Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedLong Function( ffi.Pointer, @@ -2754,41 +2855,41 @@ class PedometerBindings { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_103 = __objc_msgSend_103Ptr.asFunction< + late final __objc_msgSend_108 = __objc_msgSend_108Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexesOfObjectsPassingTest_1 = _registerName1("indexesOfObjectsPassingTest:"); - ffi.Pointer _objc_msgSend_104( + ffi.Pointer _objc_msgSend_109( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_104( + return __objc_msgSend_109( obj, sel, predicate, ); } - late final __objc_msgSend_104Ptr = _lookup< + late final __objc_msgSend_109Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_104 = __objc_msgSend_104Ptr.asFunction< + late final __objc_msgSend_109 = __objc_msgSend_109Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexesOfObjectsWithOptions_passingTest_1 = _registerName1("indexesOfObjectsWithOptions:passingTest:"); - ffi.Pointer _objc_msgSend_105( + ffi.Pointer _objc_msgSend_110( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_105( + return __objc_msgSend_110( obj, sel, opts, @@ -2796,27 +2897,27 @@ class PedometerBindings { ); } - late final __objc_msgSend_105Ptr = _lookup< + late final __objc_msgSend_110Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_105 = __objc_msgSend_105Ptr.asFunction< + late final __objc_msgSend_110 = __objc_msgSend_110Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexesOfObjectsAtIndexes_options_passingTest_1 = _registerName1("indexesOfObjectsAtIndexes:options:passingTest:"); - ffi.Pointer _objc_msgSend_106( + ffi.Pointer _objc_msgSend_111( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer s, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_106( + return __objc_msgSend_111( obj, sel, s, @@ -2825,7 +2926,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_106Ptr = _lookup< + late final __objc_msgSend_111Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -2833,7 +2934,7 @@ class PedometerBindings { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_106 = __objc_msgSend_106Ptr.asFunction< + late final __objc_msgSend_111 = __objc_msgSend_111Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -2843,35 +2944,35 @@ class PedometerBindings { late final _sel_sortedArrayUsingComparator_1 = _registerName1("sortedArrayUsingComparator:"); - ffi.Pointer _objc_msgSend_107( + ffi.Pointer _objc_msgSend_112( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> cmptr, ) { - return __objc_msgSend_107( + return __objc_msgSend_112( obj, sel, cmptr, ); } - late final __objc_msgSend_107Ptr = _lookup< + late final __objc_msgSend_112Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_107 = __objc_msgSend_107Ptr.asFunction< + late final __objc_msgSend_112 = __objc_msgSend_112Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_sortedArrayWithOptions_usingComparator_1 = _registerName1("sortedArrayWithOptions:usingComparator:"); - ffi.Pointer _objc_msgSend_108( + ffi.Pointer _objc_msgSend_113( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> cmptr, ) { - return __objc_msgSend_108( + return __objc_msgSend_113( obj, sel, opts, @@ -2879,20 +2980,20 @@ class PedometerBindings { ); } - late final __objc_msgSend_108Ptr = _lookup< + late final __objc_msgSend_113Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_108 = __objc_msgSend_108Ptr.asFunction< + late final __objc_msgSend_113 = __objc_msgSend_113Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexOfObject_inSortedRange_options_usingComparator_1 = _registerName1("indexOfObject:inSortedRange:options:usingComparator:"); - int _objc_msgSend_109( + int _objc_msgSend_114( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer obj1, @@ -2900,7 +3001,7 @@ class PedometerBindings { int opts, ffi.Pointer<_ObjCBlock> cmp, ) { - return __objc_msgSend_109( + return __objc_msgSend_114( obj, sel, obj1, @@ -2910,7 +3011,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_109Ptr = _lookup< + late final __objc_msgSend_114Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedLong Function( ffi.Pointer, @@ -2919,27 +3020,67 @@ class PedometerBindings { _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_109 = __objc_msgSend_109Ptr.asFunction< + late final __objc_msgSend_114 = __objc_msgSend_114Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_array1 = _registerName1("array"); late final _sel_arrayWithObject_1 = _registerName1("arrayWithObject:"); + instancetype _objc_msgSend_115( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer anObject, + ) { + return __objc_msgSend_115( + obj, + sel, + anObject, + ); + } + + late final __objc_msgSend_115Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_115 = __objc_msgSend_115Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_arrayWithObjects_count_1 = _registerName1("arrayWithObjects:count:"); late final _sel_arrayWithObjects_1 = _registerName1("arrayWithObjects:"); late final _sel_arrayWithArray_1 = _registerName1("arrayWithArray:"); + instancetype _objc_msgSend_116( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer array, + ) { + return __objc_msgSend_116( + obj, + sel, + array, + ); + } + + late final __objc_msgSend_116Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_116 = __objc_msgSend_116Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_initWithObjects_1 = _registerName1("initWithObjects:"); late final _sel_initWithArray_1 = _registerName1("initWithArray:"); late final _sel_initWithArray_copyItems_1 = _registerName1("initWithArray:copyItems:"); - instancetype _objc_msgSend_110( + instancetype _objc_msgSend_117( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer array, bool flag, ) { - return __objc_msgSend_110( + return __objc_msgSend_117( obj, sel, array, @@ -2947,23 +3088,23 @@ class PedometerBindings { ); } - late final __objc_msgSend_110Ptr = _lookup< + late final __objc_msgSend_117Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_110 = __objc_msgSend_110Ptr.asFunction< + late final __objc_msgSend_117 = __objc_msgSend_117Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_initWithContentsOfURL_error_1 = _registerName1("initWithContentsOfURL:error:"); - ffi.Pointer _objc_msgSend_111( + ffi.Pointer _objc_msgSend_118( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer> error, ) { - return __objc_msgSend_111( + return __objc_msgSend_118( obj, sel, url, @@ -2971,14 +3112,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_111Ptr = _lookup< + late final __objc_msgSend_118Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_111 = __objc_msgSend_111Ptr.asFunction< + late final __objc_msgSend_118 = __objc_msgSend_118Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -2989,14 +3130,14 @@ class PedometerBindings { _registerName1("arrayWithContentsOfURL:error:"); late final _sel_differenceFromArray_withOptions_usingEquivalenceTest_1 = _registerName1("differenceFromArray:withOptions:usingEquivalenceTest:"); - ffi.Pointer _objc_msgSend_112( + ffi.Pointer _objc_msgSend_119( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, int options, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_112( + return __objc_msgSend_119( obj, sel, other, @@ -3005,7 +3146,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_112Ptr = _lookup< + late final __objc_msgSend_119Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -3013,7 +3154,7 @@ class PedometerBindings { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_112 = __objc_msgSend_112Ptr.asFunction< + late final __objc_msgSend_119 = __objc_msgSend_119Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -3023,13 +3164,13 @@ class PedometerBindings { late final _sel_differenceFromArray_withOptions_1 = _registerName1("differenceFromArray:withOptions:"); - ffi.Pointer _objc_msgSend_113( + ffi.Pointer _objc_msgSend_120( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, int options, ) { - return __objc_msgSend_113( + return __objc_msgSend_120( obj, sel, other, @@ -3037,14 +3178,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_113Ptr = _lookup< + late final __objc_msgSend_120Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_113 = __objc_msgSend_113Ptr.asFunction< + late final __objc_msgSend_120 = __objc_msgSend_120Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -3052,68 +3193,88 @@ class PedometerBindings { _registerName1("differenceFromArray:"); late final _sel_arrayByApplyingDifference_1 = _registerName1("arrayByApplyingDifference:"); + ffi.Pointer _objc_msgSend_121( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer difference, + ) { + return __objc_msgSend_121( + obj, + sel, + difference, + ); + } + + late final __objc_msgSend_121Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_121 = __objc_msgSend_121Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_getObjects_1 = _registerName1("getObjects:"); - void _objc_msgSend_114( + void _objc_msgSend_122( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> objects, ) { - return __objc_msgSend_114( + return __objc_msgSend_122( obj, sel, objects, ); } - late final __objc_msgSend_114Ptr = _lookup< + late final __objc_msgSend_122Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_114 = __objc_msgSend_114Ptr.asFunction< + late final __objc_msgSend_122 = __objc_msgSend_122Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); late final _sel_arrayWithContentsOfFile_1 = _registerName1("arrayWithContentsOfFile:"); - ffi.Pointer _objc_msgSend_115( + ffi.Pointer _objc_msgSend_123( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ) { - return __objc_msgSend_115( + return __objc_msgSend_123( obj, sel, path, ); } - late final __objc_msgSend_115Ptr = _lookup< + late final __objc_msgSend_123Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_115 = __objc_msgSend_115Ptr.asFunction< + late final __objc_msgSend_123 = __objc_msgSend_123Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_arrayWithContentsOfURL_1 = _registerName1("arrayWithContentsOfURL:"); - ffi.Pointer _objc_msgSend_116( + ffi.Pointer _objc_msgSend_124( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_116( + return __objc_msgSend_124( obj, sel, url, ); } - late final __objc_msgSend_116Ptr = _lookup< + late final __objc_msgSend_124Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_116 = __objc_msgSend_116Ptr.asFunction< + late final __objc_msgSend_124 = __objc_msgSend_124Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -3123,13 +3284,13 @@ class PedometerBindings { _registerName1("initWithContentsOfURL:"); late final _sel_writeToURL_atomically_1 = _registerName1("writeToURL:atomically:"); - bool _objc_msgSend_117( + bool _objc_msgSend_125( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, bool atomically, ) { - return __objc_msgSend_117( + return __objc_msgSend_125( obj, sel, url, @@ -3137,11 +3298,11 @@ class PedometerBindings { ); } - late final __objc_msgSend_117Ptr = _lookup< + late final __objc_msgSend_125Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_117 = __objc_msgSend_117Ptr.asFunction< + late final __objc_msgSend_125 = __objc_msgSend_125Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); @@ -3149,13 +3310,13 @@ class PedometerBindings { _registerName1("pathsMatchingExtensions:"); late final _sel_valueForKey_1 = _registerName1("valueForKey:"); late final _sel_setValue_forKey_1 = _registerName1("setValue:forKey:"); - void _objc_msgSend_118( + void _objc_msgSend_126( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ffi.Pointer key, ) { - return __objc_msgSend_118( + return __objc_msgSend_126( obj, sel, value, @@ -3163,21 +3324,21 @@ class PedometerBindings { ); } - late final __objc_msgSend_118Ptr = _lookup< + late final __objc_msgSend_126Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_118 = __objc_msgSend_118Ptr.asFunction< + late final __objc_msgSend_126 = __objc_msgSend_126Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_addObserver_toObjectsAtIndexes_forKeyPath_options_context_1 = _registerName1( "addObserver:toObjectsAtIndexes:forKeyPath:options:context:"); - void _objc_msgSend_119( + void _objc_msgSend_127( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer observer, @@ -3186,7 +3347,7 @@ class PedometerBindings { int options, ffi.Pointer context, ) { - return __objc_msgSend_119( + return __objc_msgSend_127( obj, sel, observer, @@ -3197,7 +3358,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_119Ptr = _lookup< + late final __objc_msgSend_127Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -3207,7 +3368,7 @@ class PedometerBindings { ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_119 = __objc_msgSend_119Ptr.asFunction< + late final __objc_msgSend_127 = __objc_msgSend_127Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -3219,7 +3380,7 @@ class PedometerBindings { late final _sel_removeObserver_fromObjectsAtIndexes_forKeyPath_context_1 = _registerName1("removeObserver:fromObjectsAtIndexes:forKeyPath:context:"); - void _objc_msgSend_120( + void _objc_msgSend_128( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer observer, @@ -3227,7 +3388,7 @@ class PedometerBindings { ffi.Pointer keyPath, ffi.Pointer context, ) { - return __objc_msgSend_120( + return __objc_msgSend_128( obj, sel, observer, @@ -3237,7 +3398,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_120Ptr = _lookup< + late final __objc_msgSend_128Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -3246,7 +3407,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_120 = __objc_msgSend_120Ptr.asFunction< + late final __objc_msgSend_128 = __objc_msgSend_128Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -3257,14 +3418,14 @@ class PedometerBindings { late final _sel_removeObserver_fromObjectsAtIndexes_forKeyPath_1 = _registerName1("removeObserver:fromObjectsAtIndexes:forKeyPath:"); - void _objc_msgSend_121( + void _objc_msgSend_129( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer observer, ffi.Pointer indexes, ffi.Pointer keyPath, ) { - return __objc_msgSend_121( + return __objc_msgSend_129( obj, sel, observer, @@ -3273,7 +3434,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_121Ptr = _lookup< + late final __objc_msgSend_129Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -3281,7 +3442,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_121 = __objc_msgSend_121Ptr.asFunction< + late final __objc_msgSend_129 = __objc_msgSend_129Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -3291,7 +3452,7 @@ class PedometerBindings { late final _sel_addObserver_forKeyPath_options_context_1 = _registerName1("addObserver:forKeyPath:options:context:"); - void _objc_msgSend_122( + void _objc_msgSend_130( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer observer, @@ -3299,7 +3460,7 @@ class PedometerBindings { int options, ffi.Pointer context, ) { - return __objc_msgSend_122( + return __objc_msgSend_130( obj, sel, observer, @@ -3309,7 +3470,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_122Ptr = _lookup< + late final __objc_msgSend_130Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -3318,7 +3479,7 @@ class PedometerBindings { ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_122 = __objc_msgSend_122Ptr.asFunction< + late final __objc_msgSend_130 = __objc_msgSend_130Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -3329,14 +3490,14 @@ class PedometerBindings { late final _sel_removeObserver_forKeyPath_context_1 = _registerName1("removeObserver:forKeyPath:context:"); - void _objc_msgSend_123( + void _objc_msgSend_131( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer observer, ffi.Pointer keyPath, ffi.Pointer context, ) { - return __objc_msgSend_123( + return __objc_msgSend_131( obj, sel, observer, @@ -3345,7 +3506,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_123Ptr = _lookup< + late final __objc_msgSend_131Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -3353,7 +3514,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_123 = __objc_msgSend_123Ptr.asFunction< + late final __objc_msgSend_131 = __objc_msgSend_131Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -3363,13 +3524,13 @@ class PedometerBindings { late final _sel_removeObserver_forKeyPath_1 = _registerName1("removeObserver:forKeyPath:"); - void _objc_msgSend_124( + void _objc_msgSend_132( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer observer, ffi.Pointer keyPath, ) { - return __objc_msgSend_124( + return __objc_msgSend_132( obj, sel, observer, @@ -3377,14 +3538,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_124Ptr = _lookup< + late final __objc_msgSend_132Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_124 = __objc_msgSend_124Ptr.asFunction< + late final __objc_msgSend_132 = __objc_msgSend_132Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -3393,13 +3554,13 @@ class PedometerBindings { late final _class_NSPredicate1 = _getClass1("NSPredicate"); late final _sel_predicateWithFormat_argumentArray_1 = _registerName1("predicateWithFormat:argumentArray:"); - ffi.Pointer _objc_msgSend_125( + ffi.Pointer _objc_msgSend_133( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer predicateFormat, ffi.Pointer arguments, ) { - return __objc_msgSend_125( + return __objc_msgSend_133( obj, sel, predicateFormat, @@ -3407,14 +3568,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_125Ptr = _lookup< + late final __objc_msgSend_133Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_125 = __objc_msgSend_125Ptr.asFunction< + late final __objc_msgSend_133 = __objc_msgSend_133Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -3423,35 +3584,35 @@ class PedometerBindings { late final _sel_predicateWithFormat_1 = _registerName1("predicateWithFormat:"); - ffi.Pointer _objc_msgSend_126( + ffi.Pointer _objc_msgSend_134( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer predicateFormat, ) { - return __objc_msgSend_126( + return __objc_msgSend_134( obj, sel, predicateFormat, ); } - late final __objc_msgSend_126Ptr = _lookup< + late final __objc_msgSend_134Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_126 = __objc_msgSend_126Ptr.asFunction< + late final __objc_msgSend_134 = __objc_msgSend_134Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_predicateWithFormat_arguments_1 = _registerName1("predicateWithFormat:arguments:"); - ffi.Pointer _objc_msgSend_127( + ffi.Pointer _objc_msgSend_135( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer predicateFormat, - ffi.Pointer argList, + ffi.Pointer<__va_list_tag> argList, ) { - return __objc_msgSend_127( + return __objc_msgSend_135( obj, sel, predicateFormat, @@ -3459,40 +3620,60 @@ class PedometerBindings { ); } - late final __objc_msgSend_127Ptr = _lookup< + late final __objc_msgSend_135Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_127 = __objc_msgSend_127Ptr.asFunction< + ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); + late final __objc_msgSend_135 = __objc_msgSend_135Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer<__va_list_tag>)>(); late final _sel_predicateFromMetadataQueryString_1 = _registerName1("predicateFromMetadataQueryString:"); + ffi.Pointer _objc_msgSend_136( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer queryString, + ) { + return __objc_msgSend_136( + obj, + sel, + queryString, + ); + } + + late final __objc_msgSend_136Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_136 = __objc_msgSend_136Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_predicateWithValue_1 = _registerName1("predicateWithValue:"); - ffi.Pointer _objc_msgSend_128( + ffi.Pointer _objc_msgSend_137( ffi.Pointer obj, ffi.Pointer sel, bool value, ) { - return __objc_msgSend_128( + return __objc_msgSend_137( obj, sel, value, ); } - late final __objc_msgSend_128Ptr = _lookup< + late final __objc_msgSend_137Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_128 = __objc_msgSend_128Ptr.asFunction< + late final __objc_msgSend_137 = __objc_msgSend_137Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, bool)>(); @@ -3501,14 +3682,14 @@ class PedometerBindings { late final _sel_keyEnumerator1 = _registerName1("keyEnumerator"); late final _sel_initWithObjects_forKeys_count_1 = _registerName1("initWithObjects:forKeys:count:"); - instancetype _objc_msgSend_129( + instancetype _objc_msgSend_138( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> objects, ffi.Pointer> keys, int cnt, ) { - return __objc_msgSend_129( + return __objc_msgSend_138( obj, sel, objects, @@ -3517,7 +3698,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_129Ptr = _lookup< + late final __objc_msgSend_138Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -3525,7 +3706,7 @@ class PedometerBindings { ffi.Pointer>, ffi.Pointer>, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_129 = __objc_msgSend_129Ptr.asFunction< + late final __objc_msgSend_138 = __objc_msgSend_138Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -3540,35 +3721,35 @@ class PedometerBindings { _registerName1("descriptionInStringsFileFormat"); late final _sel_isEqualToDictionary_1 = _registerName1("isEqualToDictionary:"); - bool _objc_msgSend_130( + bool _objc_msgSend_139( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherDictionary, ) { - return __objc_msgSend_130( + return __objc_msgSend_139( obj, sel, otherDictionary, ); } - late final __objc_msgSend_130Ptr = _lookup< + late final __objc_msgSend_139Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_130 = __objc_msgSend_130Ptr.asFunction< + late final __objc_msgSend_139 = __objc_msgSend_139Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_objectsForKeys_notFoundMarker_1 = _registerName1("objectsForKeys:notFoundMarker:"); - ffi.Pointer _objc_msgSend_131( + ffi.Pointer _objc_msgSend_140( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keys, ffi.Pointer marker, ) { - return __objc_msgSend_131( + return __objc_msgSend_140( obj, sel, keys, @@ -3576,14 +3757,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_131Ptr = _lookup< + late final __objc_msgSend_140Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_131 = __objc_msgSend_131Ptr.asFunction< + late final __objc_msgSend_140 = __objc_msgSend_140Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -3594,14 +3775,14 @@ class PedometerBindings { _registerName1("keysSortedByValueUsingSelector:"); late final _sel_getObjects_andKeys_count_1 = _registerName1("getObjects:andKeys:count:"); - void _objc_msgSend_132( + void _objc_msgSend_141( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> objects, ffi.Pointer> keys, int count, ) { - return __objc_msgSend_132( + return __objc_msgSend_141( obj, sel, objects, @@ -3610,7 +3791,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_132Ptr = _lookup< + late final __objc_msgSend_141Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -3618,7 +3799,7 @@ class PedometerBindings { ffi.Pointer>, ffi.Pointer>, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_132 = __objc_msgSend_132Ptr.asFunction< + late final __objc_msgSend_141 = __objc_msgSend_141Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -3630,35 +3811,35 @@ class PedometerBindings { _registerName1("objectForKeyedSubscript:"); late final _sel_enumerateKeysAndObjectsUsingBlock_1 = _registerName1("enumerateKeysAndObjectsUsingBlock:"); - void _objc_msgSend_133( + void _objc_msgSend_142( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_133( + return __objc_msgSend_142( obj, sel, block, ); } - late final __objc_msgSend_133Ptr = _lookup< + late final __objc_msgSend_142Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_133 = __objc_msgSend_133Ptr.asFunction< + late final __objc_msgSend_142 = __objc_msgSend_142Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateKeysAndObjectsWithOptions_usingBlock_1 = _registerName1("enumerateKeysAndObjectsWithOptions:usingBlock:"); - void _objc_msgSend_134( + void _objc_msgSend_143( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_134( + return __objc_msgSend_143( obj, sel, opts, @@ -3666,11 +3847,11 @@ class PedometerBindings { ); } - late final __objc_msgSend_134Ptr = _lookup< + late final __objc_msgSend_143Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_134 = __objc_msgSend_134Ptr.asFunction< + late final __objc_msgSend_143 = __objc_msgSend_143Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); @@ -3680,35 +3861,35 @@ class PedometerBindings { _registerName1("keysSortedByValueWithOptions:usingComparator:"); late final _sel_keysOfEntriesPassingTest_1 = _registerName1("keysOfEntriesPassingTest:"); - ffi.Pointer _objc_msgSend_135( + ffi.Pointer _objc_msgSend_144( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_135( + return __objc_msgSend_144( obj, sel, predicate, ); } - late final __objc_msgSend_135Ptr = _lookup< + late final __objc_msgSend_144Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_135 = __objc_msgSend_135Ptr.asFunction< + late final __objc_msgSend_144 = __objc_msgSend_144Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_keysOfEntriesWithOptions_passingTest_1 = _registerName1("keysOfEntriesWithOptions:passingTest:"); - ffi.Pointer _objc_msgSend_136( + ffi.Pointer _objc_msgSend_145( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_136( + return __objc_msgSend_145( obj, sel, opts, @@ -3716,25 +3897,25 @@ class PedometerBindings { ); } - late final __objc_msgSend_136Ptr = _lookup< + late final __objc_msgSend_145Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_136 = __objc_msgSend_136Ptr.asFunction< + late final __objc_msgSend_145 = __objc_msgSend_145Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_getObjects_andKeys_1 = _registerName1("getObjects:andKeys:"); - void _objc_msgSend_137( + void _objc_msgSend_146( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> objects, ffi.Pointer> keys, ) { - return __objc_msgSend_137( + return __objc_msgSend_146( obj, sel, objects, @@ -3742,14 +3923,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_137Ptr = _lookup< + late final __objc_msgSend_146Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_137 = __objc_msgSend_137Ptr.asFunction< + late final __objc_msgSend_146 = __objc_msgSend_146Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -3758,58 +3939,58 @@ class PedometerBindings { late final _sel_dictionaryWithContentsOfFile_1 = _registerName1("dictionaryWithContentsOfFile:"); - ffi.Pointer _objc_msgSend_138( + ffi.Pointer _objc_msgSend_147( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ) { - return __objc_msgSend_138( + return __objc_msgSend_147( obj, sel, path, ); } - late final __objc_msgSend_138Ptr = _lookup< + late final __objc_msgSend_147Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_138 = __objc_msgSend_138Ptr.asFunction< + late final __objc_msgSend_147 = __objc_msgSend_147Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dictionaryWithContentsOfURL_1 = _registerName1("dictionaryWithContentsOfURL:"); - ffi.Pointer _objc_msgSend_139( + ffi.Pointer _objc_msgSend_148( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_139( + return __objc_msgSend_148( obj, sel, url, ); } - late final __objc_msgSend_139Ptr = _lookup< + late final __objc_msgSend_148Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_139 = __objc_msgSend_139Ptr.asFunction< + late final __objc_msgSend_148 = __objc_msgSend_148Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dictionary1 = _registerName1("dictionary"); late final _sel_dictionaryWithObject_forKey_1 = _registerName1("dictionaryWithObject:forKey:"); - instancetype _objc_msgSend_140( + instancetype _objc_msgSend_149( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer object, ffi.Pointer key, ) { - return __objc_msgSend_140( + return __objc_msgSend_149( obj, sel, object, @@ -3817,14 +3998,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_140Ptr = _lookup< + late final __objc_msgSend_149Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_140 = __objc_msgSend_140Ptr.asFunction< + late final __objc_msgSend_149 = __objc_msgSend_149Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -3834,35 +4015,35 @@ class PedometerBindings { _registerName1("dictionaryWithObjectsAndKeys:"); late final _sel_dictionaryWithDictionary_1 = _registerName1("dictionaryWithDictionary:"); - instancetype _objc_msgSend_141( + instancetype _objc_msgSend_150( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer dict, ) { - return __objc_msgSend_141( + return __objc_msgSend_150( obj, sel, dict, ); } - late final __objc_msgSend_141Ptr = _lookup< + late final __objc_msgSend_150Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_141 = __objc_msgSend_141Ptr.asFunction< + late final __objc_msgSend_150 = __objc_msgSend_150Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dictionaryWithObjects_forKeys_1 = _registerName1("dictionaryWithObjects:forKeys:"); - instancetype _objc_msgSend_142( + instancetype _objc_msgSend_151( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer objects, ffi.Pointer keys, ) { - return __objc_msgSend_142( + return __objc_msgSend_151( obj, sel, objects, @@ -3870,14 +4051,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_142Ptr = _lookup< + late final __objc_msgSend_151Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_142 = __objc_msgSend_142Ptr.asFunction< + late final __objc_msgSend_151 = __objc_msgSend_151Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -3886,13 +4067,13 @@ class PedometerBindings { late final _sel_initWithDictionary_1 = _registerName1("initWithDictionary:"); late final _sel_initWithDictionary_copyItems_1 = _registerName1("initWithDictionary:copyItems:"); - instancetype _objc_msgSend_143( + instancetype _objc_msgSend_152( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherDictionary, bool flag, ) { - return __objc_msgSend_143( + return __objc_msgSend_152( obj, sel, otherDictionary, @@ -3900,23 +4081,23 @@ class PedometerBindings { ); } - late final __objc_msgSend_143Ptr = _lookup< + late final __objc_msgSend_152Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_143 = __objc_msgSend_143Ptr.asFunction< + late final __objc_msgSend_152 = __objc_msgSend_152Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_initWithObjects_forKeys_1 = _registerName1("initWithObjects:forKeys:"); - ffi.Pointer _objc_msgSend_144( + ffi.Pointer _objc_msgSend_153( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer> error, ) { - return __objc_msgSend_144( + return __objc_msgSend_153( obj, sel, url, @@ -3924,14 +4105,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_144Ptr = _lookup< + late final __objc_msgSend_153Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_144 = __objc_msgSend_144Ptr.asFunction< + late final __objc_msgSend_153 = __objc_msgSend_153Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -3944,14 +4125,14 @@ class PedometerBindings { _registerName1("sharedKeySetForKeys:"); late final _sel_countByEnumeratingWithState_objects_count_1 = _registerName1("countByEnumeratingWithState:objects:count:"); - int _objc_msgSend_145( + int _objc_msgSend_154( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer state, ffi.Pointer> buffer, int len, ) { - return __objc_msgSend_145( + return __objc_msgSend_154( obj, sel, state, @@ -3960,7 +4141,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_145Ptr = _lookup< + late final __objc_msgSend_154Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedLong Function( ffi.Pointer, @@ -3968,7 +4149,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer>, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_145 = __objc_msgSend_145Ptr.asFunction< + late final __objc_msgSend_154 = __objc_msgSend_154Ptr.asFunction< int Function( ffi.Pointer, ffi.Pointer, @@ -3977,84 +4158,84 @@ class PedometerBindings { int)>(); late final _sel_fileSize1 = _registerName1("fileSize"); - int _objc_msgSend_146( + int _objc_msgSend_155( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_146( + return __objc_msgSend_155( obj, sel, ); } - late final __objc_msgSend_146Ptr = _lookup< + late final __objc_msgSend_155Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedLongLong Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_146 = __objc_msgSend_146Ptr.asFunction< + late final __objc_msgSend_155 = __objc_msgSend_155Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _class_NSDate1 = _getClass1("NSDate"); late final _sel_timeIntervalSinceReferenceDate1 = _registerName1("timeIntervalSinceReferenceDate"); - double _objc_msgSend_147( + double _objc_msgSend_156( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_147( + return __objc_msgSend_156( obj, sel, ); } - late final __objc_msgSend_147Ptr = _lookup< + late final __objc_msgSend_156Ptr = _lookup< ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_147 = __objc_msgSend_147Ptr.asFunction< + ffi.Double Function(ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_fpret'); + late final __objc_msgSend_156 = __objc_msgSend_156Ptr.asFunction< double Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithTimeIntervalSinceReferenceDate_1 = _registerName1("initWithTimeIntervalSinceReferenceDate:"); - instancetype _objc_msgSend_148( + instancetype _objc_msgSend_157( ffi.Pointer obj, ffi.Pointer sel, double ti, ) { - return __objc_msgSend_148( + return __objc_msgSend_157( obj, sel, ti, ); } - late final __objc_msgSend_148Ptr = _lookup< + late final __objc_msgSend_157Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_148 = __objc_msgSend_148Ptr.asFunction< + late final __objc_msgSend_157 = __objc_msgSend_157Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, double)>(); late final _sel_timeIntervalSinceDate_1 = _registerName1("timeIntervalSinceDate:"); - double _objc_msgSend_149( + double _objc_msgSend_158( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anotherDate, ) { - return __objc_msgSend_149( + return __objc_msgSend_158( obj, sel, anotherDate, ); } - late final __objc_msgSend_149Ptr = _lookup< + late final __objc_msgSend_158Ptr = _lookup< ffi.NativeFunction< ffi.Double Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_149 = __objc_msgSend_149Ptr.asFunction< + ffi.Pointer)>>('objc_msgSend_fpret'); + late final __objc_msgSend_158 = __objc_msgSend_158Ptr.asFunction< double Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -4066,66 +4247,66 @@ class PedometerBindings { late final _sel_dateByAddingTimeInterval_1 = _registerName1("dateByAddingTimeInterval:"); late final _sel_earlierDate_1 = _registerName1("earlierDate:"); - ffi.Pointer _objc_msgSend_150( + ffi.Pointer _objc_msgSend_159( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anotherDate, ) { - return __objc_msgSend_150( + return __objc_msgSend_159( obj, sel, anotherDate, ); } - late final __objc_msgSend_150Ptr = _lookup< + late final __objc_msgSend_159Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_150 = __objc_msgSend_150Ptr.asFunction< + late final __objc_msgSend_159 = __objc_msgSend_159Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_laterDate_1 = _registerName1("laterDate:"); late final _sel_compare_1 = _registerName1("compare:"); - int _objc_msgSend_151( + int _objc_msgSend_160( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_151( + return __objc_msgSend_160( obj, sel, other, ); } - late final __objc_msgSend_151Ptr = _lookup< + late final __objc_msgSend_160Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_151 = __objc_msgSend_151Ptr.asFunction< + late final __objc_msgSend_160 = __objc_msgSend_160Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_isEqualToDate_1 = _registerName1("isEqualToDate:"); - bool _objc_msgSend_152( + bool _objc_msgSend_161( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherDate, ) { - return __objc_msgSend_152( + return __objc_msgSend_161( obj, sel, otherDate, ); } - late final __objc_msgSend_152Ptr = _lookup< + late final __objc_msgSend_161Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_152 = __objc_msgSend_152Ptr.asFunction< + late final __objc_msgSend_161 = __objc_msgSend_161Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -4138,13 +4319,13 @@ class PedometerBindings { _registerName1("dateWithTimeIntervalSince1970:"); late final _sel_dateWithTimeInterval_sinceDate_1 = _registerName1("dateWithTimeInterval:sinceDate:"); - instancetype _objc_msgSend_153( + instancetype _objc_msgSend_162( ffi.Pointer obj, ffi.Pointer sel, double secsToBeAdded, ffi.Pointer date, ) { - return __objc_msgSend_153( + return __objc_msgSend_162( obj, sel, secsToBeAdded, @@ -4152,30 +4333,30 @@ class PedometerBindings { ); } - late final __objc_msgSend_153Ptr = _lookup< + late final __objc_msgSend_162Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Double, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_153 = __objc_msgSend_153Ptr.asFunction< + late final __objc_msgSend_162 = __objc_msgSend_162Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, double, ffi.Pointer)>(); late final _sel_distantFuture1 = _registerName1("distantFuture"); - ffi.Pointer _objc_msgSend_154( + ffi.Pointer _objc_msgSend_163( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_154( + return __objc_msgSend_163( obj, sel, ); } - late final __objc_msgSend_154Ptr = _lookup< + late final __objc_msgSend_163Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_154 = __objc_msgSend_154Ptr.asFunction< + late final __objc_msgSend_163 = __objc_msgSend_163Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -4189,6 +4370,24 @@ class PedometerBindings { _registerName1("initWithTimeInterval:sinceDate:"); late final _sel_fileModificationDate1 = _registerName1("fileModificationDate"); + ffi.Pointer _objc_msgSend_164( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_164( + obj, + sel, + ); + } + + late final __objc_msgSend_164Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_164 = __objc_msgSend_164Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_fileType1 = _registerName1("fileType"); late final _sel_filePosixPermissions1 = _registerName1("filePosixPermissions"); @@ -4201,21 +4400,21 @@ class PedometerBindings { _registerName1("fileSystemFileNumber"); late final _sel_fileExtensionHidden1 = _registerName1("fileExtensionHidden"); late final _sel_fileHFSCreatorCode1 = _registerName1("fileHFSCreatorCode"); - int _objc_msgSend_155( + int _objc_msgSend_165( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_155( + return __objc_msgSend_165( obj, sel, ); } - late final __objc_msgSend_155Ptr = _lookup< + late final __objc_msgSend_165Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedInt Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_155 = __objc_msgSend_155Ptr.asFunction< + late final __objc_msgSend_165 = __objc_msgSend_165Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_fileHFSTypeCode1 = _registerName1("fileHFSTypeCode"); @@ -4223,44 +4422,44 @@ class PedometerBindings { late final _sel_fileIsAppendOnly1 = _registerName1("fileIsAppendOnly"); late final _sel_fileCreationDate1 = _registerName1("fileCreationDate"); late final _sel_fileOwnerAccountID1 = _registerName1("fileOwnerAccountID"); - ffi.Pointer _objc_msgSend_156( + ffi.Pointer _objc_msgSend_166( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_156( + return __objc_msgSend_166( obj, sel, ); } - late final __objc_msgSend_156Ptr = _lookup< + late final __objc_msgSend_166Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_156 = __objc_msgSend_156Ptr.asFunction< + late final __objc_msgSend_166 = __objc_msgSend_166Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_fileGroupOwnerAccountID1 = _registerName1("fileGroupOwnerAccountID"); late final _sel_predicateWithBlock_1 = _registerName1("predicateWithBlock:"); - ffi.Pointer _objc_msgSend_157( + ffi.Pointer _objc_msgSend_167( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_157( + return __objc_msgSend_167( obj, sel, block, ); } - late final __objc_msgSend_157Ptr = _lookup< + late final __objc_msgSend_167Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_157 = __objc_msgSend_157Ptr.asFunction< + late final __objc_msgSend_167 = __objc_msgSend_167Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); @@ -4268,15 +4467,35 @@ class PedometerBindings { late final _sel_predicateWithSubstitutionVariables_1 = _registerName1("predicateWithSubstitutionVariables:"); late final _sel_evaluateWithObject_1 = _registerName1("evaluateWithObject:"); + bool _objc_msgSend_168( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer object, + ) { + return __objc_msgSend_168( + obj, + sel, + object, + ); + } + + late final __objc_msgSend_168Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_168 = __objc_msgSend_168Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_evaluateWithObject_substitutionVariables_1 = _registerName1("evaluateWithObject:substitutionVariables:"); - bool _objc_msgSend_158( + bool _objc_msgSend_169( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer object, ffi.Pointer bindings, ) { - return __objc_msgSend_158( + return __objc_msgSend_169( obj, sel, object, @@ -4284,315 +4503,315 @@ class PedometerBindings { ); } - late final __objc_msgSend_158Ptr = _lookup< + late final __objc_msgSend_169Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_158 = __objc_msgSend_158Ptr.asFunction< + late final __objc_msgSend_169 = __objc_msgSend_169Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_allowEvaluation1 = _registerName1("allowEvaluation"); late final _sel_filteredArrayUsingPredicate_1 = _registerName1("filteredArrayUsingPredicate:"); - ffi.Pointer _objc_msgSend_159( + ffi.Pointer _objc_msgSend_170( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer predicate, ) { - return __objc_msgSend_159( + return __objc_msgSend_170( obj, sel, predicate, ); } - late final __objc_msgSend_159Ptr = _lookup< + late final __objc_msgSend_170Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_159 = __objc_msgSend_159Ptr.asFunction< + late final __objc_msgSend_170 = __objc_msgSend_170Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithChar_1 = _registerName1("initWithChar:"); - ffi.Pointer _objc_msgSend_160( + ffi.Pointer _objc_msgSend_171( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_160( + return __objc_msgSend_171( obj, sel, value, ); } - late final __objc_msgSend_160Ptr = _lookup< + late final __objc_msgSend_171Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Char)>>('objc_msgSend'); - late final __objc_msgSend_160 = __objc_msgSend_160Ptr.asFunction< + late final __objc_msgSend_171 = __objc_msgSend_171Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithUnsignedChar_1 = _registerName1("initWithUnsignedChar:"); - ffi.Pointer _objc_msgSend_161( + ffi.Pointer _objc_msgSend_172( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_161( + return __objc_msgSend_172( obj, sel, value, ); } - late final __objc_msgSend_161Ptr = _lookup< + late final __objc_msgSend_172Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedChar)>>('objc_msgSend'); - late final __objc_msgSend_161 = __objc_msgSend_161Ptr.asFunction< + late final __objc_msgSend_172 = __objc_msgSend_172Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithShort_1 = _registerName1("initWithShort:"); - ffi.Pointer _objc_msgSend_162( + ffi.Pointer _objc_msgSend_173( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_162( + return __objc_msgSend_173( obj, sel, value, ); } - late final __objc_msgSend_162Ptr = _lookup< + late final __objc_msgSend_173Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Short)>>('objc_msgSend'); - late final __objc_msgSend_162 = __objc_msgSend_162Ptr.asFunction< + late final __objc_msgSend_173 = __objc_msgSend_173Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithUnsignedShort_1 = _registerName1("initWithUnsignedShort:"); - ffi.Pointer _objc_msgSend_163( + ffi.Pointer _objc_msgSend_174( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_163( + return __objc_msgSend_174( obj, sel, value, ); } - late final __objc_msgSend_163Ptr = _lookup< + late final __objc_msgSend_174Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedShort)>>('objc_msgSend'); - late final __objc_msgSend_163 = __objc_msgSend_163Ptr.asFunction< + late final __objc_msgSend_174 = __objc_msgSend_174Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithInt_1 = _registerName1("initWithInt:"); - ffi.Pointer _objc_msgSend_164( + ffi.Pointer _objc_msgSend_175( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_164( + return __objc_msgSend_175( obj, sel, value, ); } - late final __objc_msgSend_164Ptr = _lookup< + late final __objc_msgSend_175Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int)>>('objc_msgSend'); - late final __objc_msgSend_164 = __objc_msgSend_164Ptr.asFunction< + late final __objc_msgSend_175 = __objc_msgSend_175Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithUnsignedInt_1 = _registerName1("initWithUnsignedInt:"); - ffi.Pointer _objc_msgSend_165( + ffi.Pointer _objc_msgSend_176( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_165( + return __objc_msgSend_176( obj, sel, value, ); } - late final __objc_msgSend_165Ptr = _lookup< + late final __objc_msgSend_176Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedInt)>>('objc_msgSend'); - late final __objc_msgSend_165 = __objc_msgSend_165Ptr.asFunction< + late final __objc_msgSend_176 = __objc_msgSend_176Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithLong_1 = _registerName1("initWithLong:"); - ffi.Pointer _objc_msgSend_166( + ffi.Pointer _objc_msgSend_177( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_166( + return __objc_msgSend_177( obj, sel, value, ); } - late final __objc_msgSend_166Ptr = _lookup< + late final __objc_msgSend_177Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_166 = __objc_msgSend_166Ptr.asFunction< + late final __objc_msgSend_177 = __objc_msgSend_177Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithUnsignedLong_1 = _registerName1("initWithUnsignedLong:"); - ffi.Pointer _objc_msgSend_167( + ffi.Pointer _objc_msgSend_178( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_167( + return __objc_msgSend_178( obj, sel, value, ); } - late final __objc_msgSend_167Ptr = _lookup< + late final __objc_msgSend_178Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_167 = __objc_msgSend_167Ptr.asFunction< + late final __objc_msgSend_178 = __objc_msgSend_178Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithLongLong_1 = _registerName1("initWithLongLong:"); - ffi.Pointer _objc_msgSend_168( + ffi.Pointer _objc_msgSend_179( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_168( + return __objc_msgSend_179( obj, sel, value, ); } - late final __objc_msgSend_168Ptr = _lookup< + late final __objc_msgSend_179Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.LongLong)>>('objc_msgSend'); - late final __objc_msgSend_168 = __objc_msgSend_168Ptr.asFunction< + late final __objc_msgSend_179 = __objc_msgSend_179Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithUnsignedLongLong_1 = _registerName1("initWithUnsignedLongLong:"); - ffi.Pointer _objc_msgSend_169( + ffi.Pointer _objc_msgSend_180( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_169( + return __objc_msgSend_180( obj, sel, value, ); } - late final __objc_msgSend_169Ptr = _lookup< + late final __objc_msgSend_180Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLongLong)>>('objc_msgSend'); - late final __objc_msgSend_169 = __objc_msgSend_169Ptr.asFunction< + late final __objc_msgSend_180 = __objc_msgSend_180Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithFloat_1 = _registerName1("initWithFloat:"); - ffi.Pointer _objc_msgSend_170( + ffi.Pointer _objc_msgSend_181( ffi.Pointer obj, ffi.Pointer sel, double value, ) { - return __objc_msgSend_170( + return __objc_msgSend_181( obj, sel, value, ); } - late final __objc_msgSend_170Ptr = _lookup< + late final __objc_msgSend_181Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Float)>>('objc_msgSend'); - late final __objc_msgSend_170 = __objc_msgSend_170Ptr.asFunction< + late final __objc_msgSend_181 = __objc_msgSend_181Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, double)>(); late final _sel_initWithDouble_1 = _registerName1("initWithDouble:"); - ffi.Pointer _objc_msgSend_171( + ffi.Pointer _objc_msgSend_182( ffi.Pointer obj, ffi.Pointer sel, double value, ) { - return __objc_msgSend_171( + return __objc_msgSend_182( obj, sel, value, ); } - late final __objc_msgSend_171Ptr = _lookup< + late final __objc_msgSend_182Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_171 = __objc_msgSend_171Ptr.asFunction< + late final __objc_msgSend_182 = __objc_msgSend_182Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, double)>(); late final _sel_initWithBool_1 = _registerName1("initWithBool:"); - ffi.Pointer _objc_msgSend_172( + ffi.Pointer _objc_msgSend_183( ffi.Pointer obj, ffi.Pointer sel, bool value, ) { - return __objc_msgSend_172( + return __objc_msgSend_183( obj, sel, value, ); } - late final __objc_msgSend_172Ptr = _lookup< + late final __objc_msgSend_183Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_172 = __objc_msgSend_172Ptr.asFunction< + late final __objc_msgSend_183 = __objc_msgSend_183Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, bool)>(); @@ -4600,134 +4819,134 @@ class PedometerBindings { late final _sel_initWithUnsignedInteger_1 = _registerName1("initWithUnsignedInteger:"); late final _sel_charValue1 = _registerName1("charValue"); - int _objc_msgSend_173( + int _objc_msgSend_184( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_173( + return __objc_msgSend_184( obj, sel, ); } - late final __objc_msgSend_173Ptr = _lookup< + late final __objc_msgSend_184Ptr = _lookup< ffi.NativeFunction< ffi.Char Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_173 = __objc_msgSend_173Ptr.asFunction< + late final __objc_msgSend_184 = __objc_msgSend_184Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_unsignedCharValue1 = _registerName1("unsignedCharValue"); - int _objc_msgSend_174( + int _objc_msgSend_185( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_174( + return __objc_msgSend_185( obj, sel, ); } - late final __objc_msgSend_174Ptr = _lookup< + late final __objc_msgSend_185Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedChar Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_174 = __objc_msgSend_174Ptr.asFunction< + late final __objc_msgSend_185 = __objc_msgSend_185Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_shortValue1 = _registerName1("shortValue"); - int _objc_msgSend_175( + int _objc_msgSend_186( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_175( + return __objc_msgSend_186( obj, sel, ); } - late final __objc_msgSend_175Ptr = _lookup< + late final __objc_msgSend_186Ptr = _lookup< ffi.NativeFunction< ffi.Short Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_175 = __objc_msgSend_175Ptr.asFunction< + late final __objc_msgSend_186 = __objc_msgSend_186Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_unsignedShortValue1 = _registerName1("unsignedShortValue"); - int _objc_msgSend_176( + int _objc_msgSend_187( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_176( + return __objc_msgSend_187( obj, sel, ); } - late final __objc_msgSend_176Ptr = _lookup< + late final __objc_msgSend_187Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedShort Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_176 = __objc_msgSend_176Ptr.asFunction< + late final __objc_msgSend_187 = __objc_msgSend_187Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_intValue1 = _registerName1("intValue"); - int _objc_msgSend_177( + int _objc_msgSend_188( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_177( + return __objc_msgSend_188( obj, sel, ); } - late final __objc_msgSend_177Ptr = _lookup< + late final __objc_msgSend_188Ptr = _lookup< ffi.NativeFunction< ffi.Int Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_177 = __objc_msgSend_177Ptr.asFunction< + late final __objc_msgSend_188 = __objc_msgSend_188Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_unsignedIntValue1 = _registerName1("unsignedIntValue"); late final _sel_longValue1 = _registerName1("longValue"); late final _sel_unsignedLongValue1 = _registerName1("unsignedLongValue"); late final _sel_longLongValue1 = _registerName1("longLongValue"); - int _objc_msgSend_178( + int _objc_msgSend_189( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_178( + return __objc_msgSend_189( obj, sel, ); } - late final __objc_msgSend_178Ptr = _lookup< + late final __objc_msgSend_189Ptr = _lookup< ffi.NativeFunction< ffi.LongLong Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_178 = __objc_msgSend_178Ptr.asFunction< + late final __objc_msgSend_189 = __objc_msgSend_189Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_unsignedLongLongValue1 = _registerName1("unsignedLongLongValue"); late final _sel_floatValue1 = _registerName1("floatValue"); - double _objc_msgSend_179( + double _objc_msgSend_190( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_179( + return __objc_msgSend_190( obj, sel, ); } - late final __objc_msgSend_179Ptr = _lookup< + late final __objc_msgSend_190Ptr = _lookup< ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_179 = __objc_msgSend_179Ptr.asFunction< + ffi.Float Function(ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_fpret'); + late final __objc_msgSend_190 = __objc_msgSend_190Ptr.asFunction< double Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_doubleValue1 = _registerName1("doubleValue"); @@ -4736,44 +4955,44 @@ class PedometerBindings { late final _sel_unsignedIntegerValue1 = _registerName1("unsignedIntegerValue"); late final _sel_stringValue1 = _registerName1("stringValue"); - int _objc_msgSend_180( + int _objc_msgSend_191( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherNumber, ) { - return __objc_msgSend_180( + return __objc_msgSend_191( obj, sel, otherNumber, ); } - late final __objc_msgSend_180Ptr = _lookup< + late final __objc_msgSend_191Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_180 = __objc_msgSend_180Ptr.asFunction< + late final __objc_msgSend_191 = __objc_msgSend_191Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_isEqualToNumber_1 = _registerName1("isEqualToNumber:"); - bool _objc_msgSend_181( + bool _objc_msgSend_192( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer number, ) { - return __objc_msgSend_181( + return __objc_msgSend_192( obj, sel, number, ); } - late final __objc_msgSend_181Ptr = _lookup< + late final __objc_msgSend_192Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_181 = __objc_msgSend_181Ptr.asFunction< + late final __objc_msgSend_192 = __objc_msgSend_192Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -4809,13 +5028,13 @@ class PedometerBindings { late final _sel_hasDirectoryPath1 = _registerName1("hasDirectoryPath"); late final _sel_getFileSystemRepresentation_maxLength_1 = _registerName1("getFileSystemRepresentation:maxLength:"); - bool _objc_msgSend_182( + bool _objc_msgSend_193( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, int maxBufferLength, ) { - return __objc_msgSend_182( + return __objc_msgSend_193( obj, sel, buffer, @@ -4823,11 +5042,11 @@ class PedometerBindings { ); } - late final __objc_msgSend_182Ptr = _lookup< + late final __objc_msgSend_193Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_182 = __objc_msgSend_182Ptr.asFunction< + late final __objc_msgSend_193 = __objc_msgSend_193Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -4837,23 +5056,23 @@ class PedometerBindings { late final _sel_standardizedURL1 = _registerName1("standardizedURL"); late final _sel_checkResourceIsReachableAndReturnError_1 = _registerName1("checkResourceIsReachableAndReturnError:"); - bool _objc_msgSend_183( + bool _objc_msgSend_194( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> error, ) { - return __objc_msgSend_183( + return __objc_msgSend_194( obj, sel, error, ); } - late final __objc_msgSend_183Ptr = _lookup< + late final __objc_msgSend_194Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_183 = __objc_msgSend_183Ptr.asFunction< + late final __objc_msgSend_194 = __objc_msgSend_194Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); @@ -4862,14 +5081,14 @@ class PedometerBindings { late final _sel_filePathURL1 = _registerName1("filePathURL"); late final _sel_getResourceValue_forKey_error_1 = _registerName1("getResourceValue:forKey:error:"); - bool _objc_msgSend_184( + bool _objc_msgSend_195( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> value, ffi.Pointer key, ffi.Pointer> error, ) { - return __objc_msgSend_184( + return __objc_msgSend_195( obj, sel, value, @@ -4878,7 +5097,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_184Ptr = _lookup< + late final __objc_msgSend_195Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -4886,7 +5105,7 @@ class PedometerBindings { ffi.Pointer>, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_184 = __objc_msgSend_184Ptr.asFunction< + late final __objc_msgSend_195 = __objc_msgSend_195Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -4896,13 +5115,13 @@ class PedometerBindings { late final _sel_resourceValuesForKeys_error_1 = _registerName1("resourceValuesForKeys:error:"); - ffi.Pointer _objc_msgSend_185( + ffi.Pointer _objc_msgSend_196( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keys, ffi.Pointer> error, ) { - return __objc_msgSend_185( + return __objc_msgSend_196( obj, sel, keys, @@ -4910,14 +5129,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_185Ptr = _lookup< + late final __objc_msgSend_196Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_185 = __objc_msgSend_185Ptr.asFunction< + late final __objc_msgSend_196 = __objc_msgSend_196Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -4926,14 +5145,14 @@ class PedometerBindings { late final _sel_setResourceValue_forKey_error_1 = _registerName1("setResourceValue:forKey:error:"); - bool _objc_msgSend_186( + bool _objc_msgSend_197( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ffi.Pointer key, ffi.Pointer> error, ) { - return __objc_msgSend_186( + return __objc_msgSend_197( obj, sel, value, @@ -4942,7 +5161,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_186Ptr = _lookup< + late final __objc_msgSend_197Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -4950,7 +5169,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_186 = __objc_msgSend_186Ptr.asFunction< + late final __objc_msgSend_197 = __objc_msgSend_197Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -4960,13 +5179,13 @@ class PedometerBindings { late final _sel_setResourceValues_error_1 = _registerName1("setResourceValues:error:"); - bool _objc_msgSend_187( + bool _objc_msgSend_198( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keyedValues, ffi.Pointer> error, ) { - return __objc_msgSend_187( + return __objc_msgSend_198( obj, sel, keyedValues, @@ -4974,36 +5193,36 @@ class PedometerBindings { ); } - late final __objc_msgSend_187Ptr = _lookup< + late final __objc_msgSend_198Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_187 = __objc_msgSend_187Ptr.asFunction< + late final __objc_msgSend_198 = __objc_msgSend_198Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); late final _sel_removeCachedResourceValueForKey_1 = _registerName1("removeCachedResourceValueForKey:"); - void _objc_msgSend_188( + void _objc_msgSend_199( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_188( + return __objc_msgSend_199( obj, sel, key, ); } - late final __objc_msgSend_188Ptr = _lookup< + late final __objc_msgSend_199Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_188 = __objc_msgSend_188Ptr.asFunction< + late final __objc_msgSend_199 = __objc_msgSend_199Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -5014,7 +5233,7 @@ class PedometerBindings { late final _sel_bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_1 = _registerName1( "bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:"); - ffi.Pointer _objc_msgSend_189( + ffi.Pointer _objc_msgSend_200( ffi.Pointer obj, ffi.Pointer sel, int options, @@ -5022,7 +5241,7 @@ class PedometerBindings { ffi.Pointer relativeURL, ffi.Pointer> error, ) { - return __objc_msgSend_189( + return __objc_msgSend_200( obj, sel, options, @@ -5032,7 +5251,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_189Ptr = _lookup< + late final __objc_msgSend_200Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -5041,7 +5260,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_189 = __objc_msgSend_189Ptr.asFunction< + late final __objc_msgSend_200 = __objc_msgSend_200Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -5053,7 +5272,7 @@ class PedometerBindings { late final _sel_initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1 = _registerName1( "initByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:"); - instancetype _objc_msgSend_190( + instancetype _objc_msgSend_201( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bookmarkData, @@ -5062,7 +5281,7 @@ class PedometerBindings { ffi.Pointer isStale, ffi.Pointer> error, ) { - return __objc_msgSend_190( + return __objc_msgSend_201( obj, sel, bookmarkData, @@ -5073,7 +5292,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_190Ptr = _lookup< + late final __objc_msgSend_201Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -5083,7 +5302,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_190 = __objc_msgSend_190Ptr.asFunction< + late final __objc_msgSend_201 = __objc_msgSend_201Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -5098,13 +5317,13 @@ class PedometerBindings { "URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:"); late final _sel_resourceValuesForKeys_fromBookmarkData_1 = _registerName1("resourceValuesForKeys:fromBookmarkData:"); - ffi.Pointer _objc_msgSend_191( + ffi.Pointer _objc_msgSend_202( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keys, ffi.Pointer bookmarkData, ) { - return __objc_msgSend_191( + return __objc_msgSend_202( obj, sel, keys, @@ -5112,14 +5331,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_191Ptr = _lookup< + late final __objc_msgSend_202Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_191 = __objc_msgSend_191Ptr.asFunction< + late final __objc_msgSend_202 = __objc_msgSend_202Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -5128,7 +5347,7 @@ class PedometerBindings { late final _sel_writeBookmarkData_toURL_options_error_1 = _registerName1("writeBookmarkData:toURL:options:error:"); - bool _objc_msgSend_192( + bool _objc_msgSend_203( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bookmarkData, @@ -5136,7 +5355,7 @@ class PedometerBindings { int options, ffi.Pointer> error, ) { - return __objc_msgSend_192( + return __objc_msgSend_203( obj, sel, bookmarkData, @@ -5146,7 +5365,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_192Ptr = _lookup< + late final __objc_msgSend_203Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -5155,7 +5374,7 @@ class PedometerBindings { ffi.Pointer, ffi.UnsignedLong, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_192 = __objc_msgSend_192Ptr.asFunction< + late final __objc_msgSend_203 = __objc_msgSend_203Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -5166,13 +5385,13 @@ class PedometerBindings { late final _sel_bookmarkDataWithContentsOfURL_error_1 = _registerName1("bookmarkDataWithContentsOfURL:error:"); - ffi.Pointer _objc_msgSend_193( + ffi.Pointer _objc_msgSend_204( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bookmarkFileURL, ffi.Pointer> error, ) { - return __objc_msgSend_193( + return __objc_msgSend_204( obj, sel, bookmarkFileURL, @@ -5180,14 +5399,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_193Ptr = _lookup< + late final __objc_msgSend_204Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_193 = __objc_msgSend_193Ptr.asFunction< + late final __objc_msgSend_204 = __objc_msgSend_204Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -5196,14 +5415,14 @@ class PedometerBindings { late final _sel_URLByResolvingAliasFileAtURL_options_error_1 = _registerName1("URLByResolvingAliasFileAtURL:options:error:"); - instancetype _objc_msgSend_194( + instancetype _objc_msgSend_205( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, int options, ffi.Pointer> error, ) { - return __objc_msgSend_194( + return __objc_msgSend_205( obj, sel, url, @@ -5212,7 +5431,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_194Ptr = _lookup< + late final __objc_msgSend_205Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -5220,7 +5439,7 @@ class PedometerBindings { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_194 = __objc_msgSend_194Ptr.asFunction< + late final __objc_msgSend_205 = __objc_msgSend_205Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -5236,13 +5455,13 @@ class PedometerBindings { _registerName1("getPromisedItemResourceValue:forKey:error:"); late final _sel_promisedItemResourceValuesForKeys_error_1 = _registerName1("promisedItemResourceValuesForKeys:error:"); - ffi.Pointer _objc_msgSend_195( + ffi.Pointer _objc_msgSend_206( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keys, ffi.Pointer> error, ) { - return __objc_msgSend_195( + return __objc_msgSend_206( obj, sel, keys, @@ -5250,14 +5469,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_195Ptr = _lookup< + late final __objc_msgSend_206Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_195 = __objc_msgSend_195Ptr.asFunction< + late final __objc_msgSend_206 = __objc_msgSend_206Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -5268,23 +5487,23 @@ class PedometerBindings { _registerName1("checkPromisedItemIsReachableAndReturnError:"); late final _sel_fileURLWithPathComponents_1 = _registerName1("fileURLWithPathComponents:"); - ffi.Pointer _objc_msgSend_196( + ffi.Pointer _objc_msgSend_207( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer components, ) { - return __objc_msgSend_196( + return __objc_msgSend_207( obj, sel, components, ); } - late final __objc_msgSend_196Ptr = _lookup< + late final __objc_msgSend_207Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_196 = __objc_msgSend_196Ptr.asFunction< + late final __objc_msgSend_207 = __objc_msgSend_207Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -5293,124 +5512,73 @@ class PedometerBindings { late final _sel_pathExtension1 = _registerName1("pathExtension"); late final _sel_URLByAppendingPathComponent_1 = _registerName1("URLByAppendingPathComponent:"); - late final _sel_URLByAppendingPathComponent_isDirectory_1 = - _registerName1("URLByAppendingPathComponent:isDirectory:"); - late final _sel_URLByDeletingLastPathComponent1 = - _registerName1("URLByDeletingLastPathComponent"); - late final _sel_URLByAppendingPathExtension_1 = - _registerName1("URLByAppendingPathExtension:"); - late final _sel_URLByDeletingPathExtension1 = - _registerName1("URLByDeletingPathExtension"); - late final _sel_URLByStandardizingPath1 = - _registerName1("URLByStandardizingPath"); - late final _sel_URLByResolvingSymlinksInPath1 = - _registerName1("URLByResolvingSymlinksInPath"); - late final _sel_resourceDataUsingCache_1 = - _registerName1("resourceDataUsingCache:"); - ffi.Pointer _objc_msgSend_197( + ffi.Pointer _objc_msgSend_208( ffi.Pointer obj, ffi.Pointer sel, - bool shouldUseCache, + ffi.Pointer pathComponent, ) { - return __objc_msgSend_197( + return __objc_msgSend_208( obj, sel, - shouldUseCache, + pathComponent, ); } - late final __objc_msgSend_197Ptr = _lookup< + late final __objc_msgSend_208Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_197 = __objc_msgSend_197Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, bool)>(); - - late final _sel_loadResourceDataNotifyingClient_usingCache_1 = - _registerName1("loadResourceDataNotifyingClient:usingCache:"); - void _objc_msgSend_198( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer client, - bool shouldUseCache, - ) { - return __objc_msgSend_198( - obj, - sel, - client, - shouldUseCache, - ); - } - - late final __objc_msgSend_198Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_198 = __objc_msgSend_198Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool)>(); + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_208 = __objc_msgSend_208Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_propertyForKey_1 = _registerName1("propertyForKey:"); - late final _sel_setResourceData_1 = _registerName1("setResourceData:"); - late final _sel_setProperty_forKey_1 = _registerName1("setProperty:forKey:"); - bool _objc_msgSend_199( + late final _sel_URLByAppendingPathComponent_isDirectory_1 = + _registerName1("URLByAppendingPathComponent:isDirectory:"); + ffi.Pointer _objc_msgSend_209( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer property, - ffi.Pointer propertyKey, + ffi.Pointer pathComponent, + bool isDirectory, ) { - return __objc_msgSend_199( + return __objc_msgSend_209( obj, sel, - property, - propertyKey, + pathComponent, + isDirectory, ); } - late final __objc_msgSend_199Ptr = _lookup< + late final __objc_msgSend_209Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_199 = __objc_msgSend_199Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_URLHandleUsingCache_1 = - _registerName1("URLHandleUsingCache:"); - ffi.Pointer _objc_msgSend_200( - ffi.Pointer obj, - ffi.Pointer sel, - bool shouldUseCache, - ) { - return __objc_msgSend_200( - obj, - sel, - shouldUseCache, - ); - } - - late final __objc_msgSend_200Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_200 = __objc_msgSend_200Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, bool)>(); + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_209 = __objc_msgSend_209Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, bool)>(); + late final _sel_URLByDeletingLastPathComponent1 = + _registerName1("URLByDeletingLastPathComponent"); + late final _sel_URLByAppendingPathExtension_1 = + _registerName1("URLByAppendingPathExtension:"); + late final _sel_URLByDeletingPathExtension1 = + _registerName1("URLByDeletingPathExtension"); + late final _sel_URLByStandardizingPath1 = + _registerName1("URLByStandardizingPath"); + late final _sel_URLByResolvingSymlinksInPath1 = + _registerName1("URLByResolvingSymlinksInPath"); late final _sel_writeToFile_options_error_1 = _registerName1("writeToFile:options:error:"); - bool _objc_msgSend_201( + bool _objc_msgSend_210( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, int writeOptionsMask, ffi.Pointer> errorPtr, ) { - return __objc_msgSend_201( + return __objc_msgSend_210( obj, sel, path, @@ -5419,7 +5587,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_201Ptr = _lookup< + late final __objc_msgSend_210Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -5427,7 +5595,7 @@ class PedometerBindings { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_201 = __objc_msgSend_201Ptr.asFunction< + late final __objc_msgSend_210 = __objc_msgSend_210Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -5437,14 +5605,14 @@ class PedometerBindings { late final _sel_writeToURL_options_error_1 = _registerName1("writeToURL:options:error:"); - bool _objc_msgSend_202( + bool _objc_msgSend_211( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, int writeOptionsMask, ffi.Pointer> errorPtr, ) { - return __objc_msgSend_202( + return __objc_msgSend_211( obj, sel, url, @@ -5453,7 +5621,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_202Ptr = _lookup< + late final __objc_msgSend_211Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -5461,7 +5629,7 @@ class PedometerBindings { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_202 = __objc_msgSend_202Ptr.asFunction< + late final __objc_msgSend_211 = __objc_msgSend_211Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -5471,14 +5639,16 @@ class PedometerBindings { late final _sel_rangeOfData_options_range_1 = _registerName1("rangeOfData:options:range:"); - _NSRange _objc_msgSend_203( + void _objc_msgSend_212( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer dataToFind, int mask, _NSRange searchRange, ) { - return __objc_msgSend_203( + return __objc_msgSend_212( + stret, obj, sel, dataToFind, @@ -5487,46 +5657,51 @@ class PedometerBindings { ); } - late final __objc_msgSend_203Ptr = _lookup< + late final __objc_msgSend_212Ptr = _lookup< ffi.NativeFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_203 = __objc_msgSend_203Ptr.asFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, _NSRange)>(); + ffi.Void Function( + ffi.Pointer<_NSRange>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange)>>('objc_msgSend_stret'); + late final __objc_msgSend_212 = __objc_msgSend_212Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, ffi.Pointer, int, _NSRange)>(); late final _sel_enumerateByteRangesUsingBlock_1 = _registerName1("enumerateByteRangesUsingBlock:"); - void _objc_msgSend_204( + void _objc_msgSend_213( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_204( + return __objc_msgSend_213( obj, sel, block, ); } - late final __objc_msgSend_204Ptr = _lookup< + late final __objc_msgSend_213Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_204 = __objc_msgSend_204Ptr.asFunction< + late final __objc_msgSend_213 = __objc_msgSend_213Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_data1 = _registerName1("data"); late final _sel_dataWithBytes_length_1 = _registerName1("dataWithBytes:length:"); - instancetype _objc_msgSend_205( + instancetype _objc_msgSend_214( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, int length, ) { - return __objc_msgSend_205( + return __objc_msgSend_214( obj, sel, bytes, @@ -5534,11 +5709,11 @@ class PedometerBindings { ); } - late final __objc_msgSend_205Ptr = _lookup< + late final __objc_msgSend_214Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_205 = __objc_msgSend_205Ptr.asFunction< + late final __objc_msgSend_214 = __objc_msgSend_214Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -5546,14 +5721,14 @@ class PedometerBindings { _registerName1("dataWithBytesNoCopy:length:"); late final _sel_dataWithBytesNoCopy_length_freeWhenDone_1 = _registerName1("dataWithBytesNoCopy:length:freeWhenDone:"); - instancetype _objc_msgSend_206( + instancetype _objc_msgSend_215( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, int length, bool b, ) { - return __objc_msgSend_206( + return __objc_msgSend_215( obj, sel, bytes, @@ -5562,7 +5737,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_206Ptr = _lookup< + late final __objc_msgSend_215Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -5570,20 +5745,20 @@ class PedometerBindings { ffi.Pointer, ffi.UnsignedLong, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_206 = __objc_msgSend_206Ptr.asFunction< + late final __objc_msgSend_215 = __objc_msgSend_215Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, bool)>(); late final _sel_dataWithContentsOfFile_options_error_1 = _registerName1("dataWithContentsOfFile:options:error:"); - instancetype _objc_msgSend_207( + instancetype _objc_msgSend_216( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, int readOptionsMask, ffi.Pointer> errorPtr, ) { - return __objc_msgSend_207( + return __objc_msgSend_216( obj, sel, path, @@ -5592,7 +5767,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_207Ptr = _lookup< + late final __objc_msgSend_216Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -5600,7 +5775,7 @@ class PedometerBindings { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_207 = __objc_msgSend_207Ptr.asFunction< + late final __objc_msgSend_216 = __objc_msgSend_216Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -5610,14 +5785,14 @@ class PedometerBindings { late final _sel_dataWithContentsOfURL_options_error_1 = _registerName1("dataWithContentsOfURL:options:error:"); - instancetype _objc_msgSend_208( + instancetype _objc_msgSend_217( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, int readOptionsMask, ffi.Pointer> errorPtr, ) { - return __objc_msgSend_208( + return __objc_msgSend_217( obj, sel, url, @@ -5626,7 +5801,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_208Ptr = _lookup< + late final __objc_msgSend_217Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -5634,7 +5809,7 @@ class PedometerBindings { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_208 = __objc_msgSend_208Ptr.asFunction< + late final __objc_msgSend_217 = __objc_msgSend_217Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -5646,23 +5821,23 @@ class PedometerBindings { _registerName1("dataWithContentsOfFile:"); late final _sel_dataWithContentsOfURL_1 = _registerName1("dataWithContentsOfURL:"); - instancetype _objc_msgSend_209( + instancetype _objc_msgSend_218( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_209( + return __objc_msgSend_218( obj, sel, url, ); } - late final __objc_msgSend_209Ptr = _lookup< + late final __objc_msgSend_218Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_209 = __objc_msgSend_209Ptr.asFunction< + late final __objc_msgSend_218 = __objc_msgSend_218Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -5674,14 +5849,14 @@ class PedometerBindings { _registerName1("initWithBytesNoCopy:length:freeWhenDone:"); late final _sel_initWithBytesNoCopy_length_deallocator_1 = _registerName1("initWithBytesNoCopy:length:deallocator:"); - instancetype _objc_msgSend_210( + instancetype _objc_msgSend_219( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, int length, ffi.Pointer<_ObjCBlock> deallocator, ) { - return __objc_msgSend_210( + return __objc_msgSend_219( obj, sel, bytes, @@ -5690,7 +5865,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_210Ptr = _lookup< + late final __objc_msgSend_219Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -5698,7 +5873,7 @@ class PedometerBindings { ffi.Pointer, ffi.UnsignedLong, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_210 = __objc_msgSend_210Ptr.asFunction< + late final __objc_msgSend_219 = __objc_msgSend_219Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); @@ -5707,36 +5882,36 @@ class PedometerBindings { late final _sel_initWithContentsOfURL_options_error_1 = _registerName1("initWithContentsOfURL:options:error:"); late final _sel_initWithData_1 = _registerName1("initWithData:"); - instancetype _objc_msgSend_211( + instancetype _objc_msgSend_220( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ) { - return __objc_msgSend_211( + return __objc_msgSend_220( obj, sel, data, ); } - late final __objc_msgSend_211Ptr = _lookup< + late final __objc_msgSend_220Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_211 = __objc_msgSend_211Ptr.asFunction< + late final __objc_msgSend_220 = __objc_msgSend_220Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dataWithData_1 = _registerName1("dataWithData:"); late final _sel_initWithBase64EncodedString_options_1 = _registerName1("initWithBase64EncodedString:options:"); - instancetype _objc_msgSend_212( + instancetype _objc_msgSend_221( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer base64String, int options, ) { - return __objc_msgSend_212( + return __objc_msgSend_221( obj, sel, base64String, @@ -5744,45 +5919,45 @@ class PedometerBindings { ); } - late final __objc_msgSend_212Ptr = _lookup< + late final __objc_msgSend_221Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_212 = __objc_msgSend_212Ptr.asFunction< + late final __objc_msgSend_221 = __objc_msgSend_221Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_base64EncodedStringWithOptions_1 = _registerName1("base64EncodedStringWithOptions:"); - ffi.Pointer _objc_msgSend_213( + ffi.Pointer _objc_msgSend_222( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_213( + return __objc_msgSend_222( obj, sel, options, ); } - late final __objc_msgSend_213Ptr = _lookup< + late final __objc_msgSend_222Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_213 = __objc_msgSend_213Ptr.asFunction< + late final __objc_msgSend_222 = __objc_msgSend_222Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithBase64EncodedData_options_1 = _registerName1("initWithBase64EncodedData:options:"); - instancetype _objc_msgSend_214( + instancetype _objc_msgSend_223( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer base64Data, int options, ) { - return __objc_msgSend_214( + return __objc_msgSend_223( obj, sel, base64Data, @@ -5790,45 +5965,45 @@ class PedometerBindings { ); } - late final __objc_msgSend_214Ptr = _lookup< + late final __objc_msgSend_223Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_214 = __objc_msgSend_214Ptr.asFunction< + late final __objc_msgSend_223 = __objc_msgSend_223Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_base64EncodedDataWithOptions_1 = _registerName1("base64EncodedDataWithOptions:"); - ffi.Pointer _objc_msgSend_215( + ffi.Pointer _objc_msgSend_224( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_215( + return __objc_msgSend_224( obj, sel, options, ); } - late final __objc_msgSend_215Ptr = _lookup< + late final __objc_msgSend_224Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_215 = __objc_msgSend_215Ptr.asFunction< + late final __objc_msgSend_224 = __objc_msgSend_224Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_decompressedDataUsingAlgorithm_error_1 = _registerName1("decompressedDataUsingAlgorithm:error:"); - instancetype _objc_msgSend_216( + instancetype _objc_msgSend_225( ffi.Pointer obj, ffi.Pointer sel, int algorithm, ffi.Pointer> error, ) { - return __objc_msgSend_216( + return __objc_msgSend_225( obj, sel, algorithm, @@ -5836,14 +6011,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_216Ptr = _lookup< + late final __objc_msgSend_225Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_216 = __objc_msgSend_216Ptr.asFunction< + late final __objc_msgSend_225 = __objc_msgSend_225Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer>)>(); @@ -5858,37 +6033,55 @@ class PedometerBindings { _registerName1("initWithBase64Encoding:"); late final _sel_base64Encoding1 = _registerName1("base64Encoding"); late final _sel_encodeDataObject_1 = _registerName1("encodeDataObject:"); - void _objc_msgSend_217( + void _objc_msgSend_226( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ) { - return __objc_msgSend_217( + return __objc_msgSend_226( obj, sel, data, ); } - late final __objc_msgSend_217Ptr = _lookup< + late final __objc_msgSend_226Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_217 = __objc_msgSend_217Ptr.asFunction< + late final __objc_msgSend_226 = __objc_msgSend_226Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_decodeDataObject1 = _registerName1("decodeDataObject"); + ffi.Pointer _objc_msgSend_227( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_227( + obj, + sel, + ); + } + + late final __objc_msgSend_227Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_227 = __objc_msgSend_227Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_decodeValueOfObjCType_at_size_1 = _registerName1("decodeValueOfObjCType:at:size:"); - void _objc_msgSend_218( + void _objc_msgSend_228( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer type, ffi.Pointer data, int size, ) { - return __objc_msgSend_218( + return __objc_msgSend_228( obj, sel, type, @@ -5897,7 +6090,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_218Ptr = _lookup< + late final __objc_msgSend_228Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -5905,33 +6098,53 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_218 = __objc_msgSend_218Ptr.asFunction< + late final __objc_msgSend_228 = __objc_msgSend_228Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_versionForClassName_1 = _registerName1("versionForClassName:"); - int _objc_msgSend_219( + int _objc_msgSend_229( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer className, ) { - return __objc_msgSend_219( + return __objc_msgSend_229( obj, sel, className, ); } - late final __objc_msgSend_219Ptr = _lookup< + late final __objc_msgSend_229Ptr = _lookup< ffi.NativeFunction< ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_219 = __objc_msgSend_219Ptr.asFunction< + late final __objc_msgSend_229 = __objc_msgSend_229Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_encodeObject_1 = _registerName1("encodeObject:"); + void _objc_msgSend_230( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer object, + ) { + return __objc_msgSend_230( + obj, + sel, + object, + ); + } + + late final __objc_msgSend_230Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_230 = __objc_msgSend_230Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_encodeRootObject_1 = _registerName1("encodeRootObject:"); late final _sel_encodeBycopyObject_1 = _registerName1("encodeBycopyObject:"); late final _sel_encodeByrefObject_1 = _registerName1("encodeByrefObject:"); @@ -5939,36 +6152,36 @@ class PedometerBindings { _registerName1("encodeConditionalObject:"); late final _sel_encodeValuesOfObjCTypes_1 = _registerName1("encodeValuesOfObjCTypes:"); - void _objc_msgSend_220( + void _objc_msgSend_231( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer types, ) { - return __objc_msgSend_220( + return __objc_msgSend_231( obj, sel, types, ); } - late final __objc_msgSend_220Ptr = _lookup< + late final __objc_msgSend_231Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_220 = __objc_msgSend_220Ptr.asFunction< + late final __objc_msgSend_231 = __objc_msgSend_231Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_encodeArrayOfObjCType_count_at_1 = _registerName1("encodeArrayOfObjCType:count:at:"); - void _objc_msgSend_221( + void _objc_msgSend_232( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer type, int count, ffi.Pointer array, ) { - return __objc_msgSend_221( + return __objc_msgSend_232( obj, sel, type, @@ -5977,7 +6190,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_221Ptr = _lookup< + late final __objc_msgSend_232Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -5985,7 +6198,7 @@ class PedometerBindings { ffi.Pointer, ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_221 = __objc_msgSend_221Ptr.asFunction< + late final __objc_msgSend_232 = __objc_msgSend_232Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); @@ -5993,25 +6206,25 @@ class PedometerBindings { late final _sel_decodeObject1 = _registerName1("decodeObject"); late final _sel_decodeTopLevelObjectAndReturnError_1 = _registerName1("decodeTopLevelObjectAndReturnError:"); - ffi.Pointer _objc_msgSend_222( + ffi.Pointer _objc_msgSend_233( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> error, ) { - return __objc_msgSend_222( + return __objc_msgSend_233( obj, sel, error, ); } - late final __objc_msgSend_222Ptr = _lookup< + late final __objc_msgSend_233Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_222 = __objc_msgSend_222Ptr.asFunction< + late final __objc_msgSend_233 = __objc_msgSend_233Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); @@ -6021,67 +6234,65 @@ class PedometerBindings { _registerName1("decodeArrayOfObjCType:count:at:"); late final _sel_decodeBytesWithReturnedLength_1 = _registerName1("decodeBytesWithReturnedLength:"); - ffi.Pointer _objc_msgSend_223( + ffi.Pointer _objc_msgSend_234( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer lengthp, ) { - return __objc_msgSend_223( + return __objc_msgSend_234( obj, sel, lengthp, ); } - late final __objc_msgSend_223Ptr = _lookup< + late final __objc_msgSend_234Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_223 = __objc_msgSend_223Ptr.asFunction< + late final __objc_msgSend_234 = __objc_msgSend_234Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - late final _sel_encodePropertyList_1 = _registerName1("encodePropertyList:"); - late final _sel_decodePropertyList1 = _registerName1("decodePropertyList"); late final _sel_setObjectZone_1 = _registerName1("setObjectZone:"); - void _objc_msgSend_224( + void _objc_msgSend_235( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_NSZone> zone, ) { - return __objc_msgSend_224( + return __objc_msgSend_235( obj, sel, zone, ); } - late final __objc_msgSend_224Ptr = _lookup< + late final __objc_msgSend_235Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_NSZone>)>>('objc_msgSend'); - late final __objc_msgSend_224 = __objc_msgSend_224Ptr.asFunction< + late final __objc_msgSend_235 = __objc_msgSend_235Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_NSZone>)>(); late final _sel_objectZone1 = _registerName1("objectZone"); - ffi.Pointer<_NSZone> _objc_msgSend_225( + ffi.Pointer<_NSZone> _objc_msgSend_236( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_225( + return __objc_msgSend_236( obj, sel, ); } - late final __objc_msgSend_225Ptr = _lookup< + late final __objc_msgSend_236Ptr = _lookup< ffi.NativeFunction< ffi.Pointer<_NSZone> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_225 = __objc_msgSend_225Ptr.asFunction< + late final __objc_msgSend_236 = __objc_msgSend_236Ptr.asFunction< ffi.Pointer<_NSZone> Function( ffi.Pointer, ffi.Pointer)>(); @@ -6092,13 +6303,13 @@ class PedometerBindings { late final _sel_encodeConditionalObject_forKey_1 = _registerName1("encodeConditionalObject:forKey:"); late final _sel_encodeBool_forKey_1 = _registerName1("encodeBool:forKey:"); - void _objc_msgSend_226( + void _objc_msgSend_237( ffi.Pointer obj, ffi.Pointer sel, bool value, ffi.Pointer key, ) { - return __objc_msgSend_226( + return __objc_msgSend_237( obj, sel, value, @@ -6106,22 +6317,22 @@ class PedometerBindings { ); } - late final __objc_msgSend_226Ptr = _lookup< + late final __objc_msgSend_237Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Bool, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_226 = __objc_msgSend_226Ptr.asFunction< + late final __objc_msgSend_237 = __objc_msgSend_237Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, bool, ffi.Pointer)>(); late final _sel_encodeInt_forKey_1 = _registerName1("encodeInt:forKey:"); - void _objc_msgSend_227( + void _objc_msgSend_238( ffi.Pointer obj, ffi.Pointer sel, int value, ffi.Pointer key, ) { - return __objc_msgSend_227( + return __objc_msgSend_238( obj, sel, value, @@ -6129,22 +6340,22 @@ class PedometerBindings { ); } - late final __objc_msgSend_227Ptr = _lookup< + late final __objc_msgSend_238Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_227 = __objc_msgSend_227Ptr.asFunction< + late final __objc_msgSend_238 = __objc_msgSend_238Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_encodeInt32_forKey_1 = _registerName1("encodeInt32:forKey:"); - void _objc_msgSend_228( + void _objc_msgSend_239( ffi.Pointer obj, ffi.Pointer sel, int value, ffi.Pointer key, ) { - return __objc_msgSend_228( + return __objc_msgSend_239( obj, sel, value, @@ -6152,22 +6363,22 @@ class PedometerBindings { ); } - late final __objc_msgSend_228Ptr = _lookup< + late final __objc_msgSend_239Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_228 = __objc_msgSend_228Ptr.asFunction< + late final __objc_msgSend_239 = __objc_msgSend_239Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_encodeInt64_forKey_1 = _registerName1("encodeInt64:forKey:"); - void _objc_msgSend_229( + void _objc_msgSend_240( ffi.Pointer obj, ffi.Pointer sel, int value, ffi.Pointer key, ) { - return __objc_msgSend_229( + return __objc_msgSend_240( obj, sel, value, @@ -6175,22 +6386,22 @@ class PedometerBindings { ); } - late final __objc_msgSend_229Ptr = _lookup< + late final __objc_msgSend_240Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int64, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_229 = __objc_msgSend_229Ptr.asFunction< + late final __objc_msgSend_240 = __objc_msgSend_240Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_encodeFloat_forKey_1 = _registerName1("encodeFloat:forKey:"); - void _objc_msgSend_230( + void _objc_msgSend_241( ffi.Pointer obj, ffi.Pointer sel, double value, ffi.Pointer key, ) { - return __objc_msgSend_230( + return __objc_msgSend_241( obj, sel, value, @@ -6198,23 +6409,23 @@ class PedometerBindings { ); } - late final __objc_msgSend_230Ptr = _lookup< + late final __objc_msgSend_241Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Float, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_230 = __objc_msgSend_230Ptr.asFunction< + late final __objc_msgSend_241 = __objc_msgSend_241Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, double, ffi.Pointer)>(); late final _sel_encodeDouble_forKey_1 = _registerName1("encodeDouble:forKey:"); - void _objc_msgSend_231( + void _objc_msgSend_242( ffi.Pointer obj, ffi.Pointer sel, double value, ffi.Pointer key, ) { - return __objc_msgSend_231( + return __objc_msgSend_242( obj, sel, value, @@ -6222,24 +6433,24 @@ class PedometerBindings { ); } - late final __objc_msgSend_231Ptr = _lookup< + late final __objc_msgSend_242Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Double, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_231 = __objc_msgSend_231Ptr.asFunction< + late final __objc_msgSend_242 = __objc_msgSend_242Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, double, ffi.Pointer)>(); late final _sel_encodeBytes_length_forKey_1 = _registerName1("encodeBytes:length:forKey:"); - void _objc_msgSend_232( + void _objc_msgSend_243( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, int length, ffi.Pointer key, ) { - return __objc_msgSend_232( + return __objc_msgSend_243( obj, sel, bytes, @@ -6248,7 +6459,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_232Ptr = _lookup< + late final __objc_msgSend_243Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -6256,7 +6467,7 @@ class PedometerBindings { ffi.Pointer, ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_232 = __objc_msgSend_232Ptr.asFunction< + late final __objc_msgSend_243 = __objc_msgSend_243Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); @@ -6265,13 +6476,13 @@ class PedometerBindings { late final _sel_decodeObjectForKey_1 = _registerName1("decodeObjectForKey:"); late final _sel_decodeTopLevelObjectForKey_error_1 = _registerName1("decodeTopLevelObjectForKey:error:"); - ffi.Pointer _objc_msgSend_233( + ffi.Pointer _objc_msgSend_244( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ffi.Pointer> error, ) { - return __objc_msgSend_233( + return __objc_msgSend_244( obj, sel, key, @@ -6279,14 +6490,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_233Ptr = _lookup< + late final __objc_msgSend_244Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_233 = __objc_msgSend_233Ptr.asFunction< + late final __objc_msgSend_244 = __objc_msgSend_244Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -6295,119 +6506,119 @@ class PedometerBindings { late final _sel_decodeBoolForKey_1 = _registerName1("decodeBoolForKey:"); late final _sel_decodeIntForKey_1 = _registerName1("decodeIntForKey:"); - int _objc_msgSend_234( + int _objc_msgSend_245( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_234( + return __objc_msgSend_245( obj, sel, key, ); } - late final __objc_msgSend_234Ptr = _lookup< + late final __objc_msgSend_245Ptr = _lookup< ffi.NativeFunction< ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_234 = __objc_msgSend_234Ptr.asFunction< + late final __objc_msgSend_245 = __objc_msgSend_245Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_decodeInt32ForKey_1 = _registerName1("decodeInt32ForKey:"); - int _objc_msgSend_235( + int _objc_msgSend_246( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_235( + return __objc_msgSend_246( obj, sel, key, ); } - late final __objc_msgSend_235Ptr = _lookup< + late final __objc_msgSend_246Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_235 = __objc_msgSend_235Ptr.asFunction< + late final __objc_msgSend_246 = __objc_msgSend_246Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_decodeInt64ForKey_1 = _registerName1("decodeInt64ForKey:"); - int _objc_msgSend_236( + int _objc_msgSend_247( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_236( + return __objc_msgSend_247( obj, sel, key, ); } - late final __objc_msgSend_236Ptr = _lookup< + late final __objc_msgSend_247Ptr = _lookup< ffi.NativeFunction< ffi.Int64 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_236 = __objc_msgSend_236Ptr.asFunction< + late final __objc_msgSend_247 = __objc_msgSend_247Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_decodeFloatForKey_1 = _registerName1("decodeFloatForKey:"); - double _objc_msgSend_237( + double _objc_msgSend_248( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_237( + return __objc_msgSend_248( obj, sel, key, ); } - late final __objc_msgSend_237Ptr = _lookup< + late final __objc_msgSend_248Ptr = _lookup< ffi.NativeFunction< ffi.Float Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_237 = __objc_msgSend_237Ptr.asFunction< + ffi.Pointer)>>('objc_msgSend_fpret'); + late final __objc_msgSend_248 = __objc_msgSend_248Ptr.asFunction< double Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_decodeDoubleForKey_1 = _registerName1("decodeDoubleForKey:"); - double _objc_msgSend_238( + double _objc_msgSend_249( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_238( + return __objc_msgSend_249( obj, sel, key, ); } - late final __objc_msgSend_238Ptr = _lookup< + late final __objc_msgSend_249Ptr = _lookup< ffi.NativeFunction< ffi.Double Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_238 = __objc_msgSend_238Ptr.asFunction< + ffi.Pointer)>>('objc_msgSend_fpret'); + late final __objc_msgSend_249 = __objc_msgSend_249Ptr.asFunction< double Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_decodeBytesForKey_returnedLength_1 = _registerName1("decodeBytesForKey:returnedLength:"); - ffi.Pointer _objc_msgSend_239( + ffi.Pointer _objc_msgSend_250( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ffi.Pointer lengthp, ) { - return __objc_msgSend_239( + return __objc_msgSend_250( obj, sel, key, @@ -6415,14 +6626,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_239Ptr = _lookup< + late final __objc_msgSend_250Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_239 = __objc_msgSend_239Ptr.asFunction< + late final __objc_msgSend_250 = __objc_msgSend_250Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -6431,13 +6642,13 @@ class PedometerBindings { late final _sel_encodeInteger_forKey_1 = _registerName1("encodeInteger:forKey:"); - void _objc_msgSend_240( + void _objc_msgSend_251( ffi.Pointer obj, ffi.Pointer sel, int value, ffi.Pointer key, ) { - return __objc_msgSend_240( + return __objc_msgSend_251( obj, sel, value, @@ -6445,11 +6656,11 @@ class PedometerBindings { ); } - late final __objc_msgSend_240Ptr = _lookup< + late final __objc_msgSend_251Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Long, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_240 = __objc_msgSend_240Ptr.asFunction< + late final __objc_msgSend_251 = __objc_msgSend_251Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); @@ -6459,13 +6670,13 @@ class PedometerBindings { _registerName1("requiresSecureCoding"); late final _sel_decodeObjectOfClass_forKey_1 = _registerName1("decodeObjectOfClass:forKey:"); - ffi.Pointer _objc_msgSend_241( + ffi.Pointer _objc_msgSend_252( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, ffi.Pointer key, ) { - return __objc_msgSend_241( + return __objc_msgSend_252( obj, sel, aClass, @@ -6473,14 +6684,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_241Ptr = _lookup< + late final __objc_msgSend_252Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_241 = __objc_msgSend_241Ptr.asFunction< + late final __objc_msgSend_252 = __objc_msgSend_252Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -6489,14 +6700,14 @@ class PedometerBindings { late final _sel_decodeTopLevelObjectOfClass_forKey_error_1 = _registerName1("decodeTopLevelObjectOfClass:forKey:error:"); - ffi.Pointer _objc_msgSend_242( + ffi.Pointer _objc_msgSend_253( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, ffi.Pointer key, ffi.Pointer> error, ) { - return __objc_msgSend_242( + return __objc_msgSend_253( obj, sel, aClass, @@ -6505,7 +6716,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_242Ptr = _lookup< + late final __objc_msgSend_253Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -6513,7 +6724,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_242 = __objc_msgSend_242Ptr.asFunction< + late final __objc_msgSend_253 = __objc_msgSend_253Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -6523,13 +6734,13 @@ class PedometerBindings { late final _sel_decodeArrayOfObjectsOfClass_forKey_1 = _registerName1("decodeArrayOfObjectsOfClass:forKey:"); - ffi.Pointer _objc_msgSend_243( + ffi.Pointer _objc_msgSend_254( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer cls, ffi.Pointer key, ) { - return __objc_msgSend_243( + return __objc_msgSend_254( obj, sel, cls, @@ -6537,14 +6748,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_243Ptr = _lookup< + late final __objc_msgSend_254Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_243 = __objc_msgSend_243Ptr.asFunction< + late final __objc_msgSend_254 = __objc_msgSend_254Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -6553,14 +6764,14 @@ class PedometerBindings { late final _sel_decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_1 = _registerName1("decodeDictionaryWithKeysOfClass:objectsOfClass:forKey:"); - ffi.Pointer _objc_msgSend_244( + ffi.Pointer _objc_msgSend_255( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keyCls, ffi.Pointer objectCls, ffi.Pointer key, ) { - return __objc_msgSend_244( + return __objc_msgSend_255( obj, sel, keyCls, @@ -6569,7 +6780,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_244Ptr = _lookup< + late final __objc_msgSend_255Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -6577,7 +6788,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_244 = __objc_msgSend_244Ptr.asFunction< + late final __objc_msgSend_255 = __objc_msgSend_255Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -6587,13 +6798,13 @@ class PedometerBindings { late final _sel_decodeObjectOfClasses_forKey_1 = _registerName1("decodeObjectOfClasses:forKey:"); - ffi.Pointer _objc_msgSend_245( + ffi.Pointer _objc_msgSend_256( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer classes, ffi.Pointer key, ) { - return __objc_msgSend_245( + return __objc_msgSend_256( obj, sel, classes, @@ -6601,14 +6812,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_245Ptr = _lookup< + late final __objc_msgSend_256Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_245 = __objc_msgSend_245Ptr.asFunction< + late final __objc_msgSend_256 = __objc_msgSend_256Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -6617,14 +6828,14 @@ class PedometerBindings { late final _sel_decodeTopLevelObjectOfClasses_forKey_error_1 = _registerName1("decodeTopLevelObjectOfClasses:forKey:error:"); - ffi.Pointer _objc_msgSend_246( + ffi.Pointer _objc_msgSend_257( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer classes, ffi.Pointer key, ffi.Pointer> error, ) { - return __objc_msgSend_246( + return __objc_msgSend_257( obj, sel, classes, @@ -6633,7 +6844,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_246Ptr = _lookup< + late final __objc_msgSend_257Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -6641,7 +6852,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_246 = __objc_msgSend_246Ptr.asFunction< + late final __objc_msgSend_257 = __objc_msgSend_257Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -6651,13 +6862,13 @@ class PedometerBindings { late final _sel_decodeArrayOfObjectsOfClasses_forKey_1 = _registerName1("decodeArrayOfObjectsOfClasses:forKey:"); - ffi.Pointer _objc_msgSend_247( + ffi.Pointer _objc_msgSend_258( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer classes, ffi.Pointer key, ) { - return __objc_msgSend_247( + return __objc_msgSend_258( obj, sel, classes, @@ -6665,14 +6876,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_247Ptr = _lookup< + late final __objc_msgSend_258Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_247 = __objc_msgSend_247Ptr.asFunction< + late final __objc_msgSend_258 = __objc_msgSend_258Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -6682,14 +6893,14 @@ class PedometerBindings { late final _sel_decodeDictionaryWithKeysOfClasses_objectsOfClasses_forKey_1 = _registerName1( "decodeDictionaryWithKeysOfClasses:objectsOfClasses:forKey:"); - ffi.Pointer _objc_msgSend_248( + ffi.Pointer _objc_msgSend_259( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keyClasses, ffi.Pointer objectClasses, ffi.Pointer key, ) { - return __objc_msgSend_248( + return __objc_msgSend_259( obj, sel, keyClasses, @@ -6698,7 +6909,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_248Ptr = _lookup< + late final __objc_msgSend_259Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -6706,7 +6917,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_248 = __objc_msgSend_248Ptr.asFunction< + late final __objc_msgSend_259 = __objc_msgSend_259Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -6717,139 +6928,137 @@ class PedometerBindings { late final _sel_decodePropertyListForKey_1 = _registerName1("decodePropertyListForKey:"); late final _sel_allowedClasses1 = _registerName1("allowedClasses"); - ffi.Pointer _objc_msgSend_249( + ffi.Pointer _objc_msgSend_260( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_249( + return __objc_msgSend_260( obj, sel, ); } - late final __objc_msgSend_249Ptr = _lookup< + late final __objc_msgSend_260Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_249 = __objc_msgSend_249Ptr.asFunction< + late final __objc_msgSend_260 = __objc_msgSend_260Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_failWithError_1 = _registerName1("failWithError:"); - void _objc_msgSend_250( + void _objc_msgSend_261( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer error, ) { - return __objc_msgSend_250( + return __objc_msgSend_261( obj, sel, error, ); } - late final __objc_msgSend_250Ptr = _lookup< + late final __objc_msgSend_261Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_250 = __objc_msgSend_250Ptr.asFunction< + late final __objc_msgSend_261 = __objc_msgSend_261Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_decodingFailurePolicy1 = _registerName1("decodingFailurePolicy"); - int _objc_msgSend_251( + int _objc_msgSend_262( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_251( + return __objc_msgSend_262( obj, sel, ); } - late final __objc_msgSend_251Ptr = _lookup< + late final __objc_msgSend_262Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_251 = __objc_msgSend_251Ptr.asFunction< + late final __objc_msgSend_262 = __objc_msgSend_262Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_error1 = _registerName1("error"); - ffi.Pointer _objc_msgSend_252( + ffi.Pointer _objc_msgSend_263( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_252( + return __objc_msgSend_263( obj, sel, ); } - late final __objc_msgSend_252Ptr = _lookup< + late final __objc_msgSend_263Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_252 = __objc_msgSend_252Ptr.asFunction< + late final __objc_msgSend_263 = __objc_msgSend_263Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); - late final _sel_encodeNXObject_1 = _registerName1("encodeNXObject:"); - late final _sel_decodeNXObject1 = _registerName1("decodeNXObject"); late final _sel_decodeValueOfObjCType_at_1 = _registerName1("decodeValueOfObjCType:at:"); late final _sel_substringFromIndex_1 = _registerName1("substringFromIndex:"); - ffi.Pointer _objc_msgSend_253( + ffi.Pointer _objc_msgSend_264( ffi.Pointer obj, ffi.Pointer sel, int from, ) { - return __objc_msgSend_253( + return __objc_msgSend_264( obj, sel, from, ); } - late final __objc_msgSend_253Ptr = _lookup< + late final __objc_msgSend_264Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_253 = __objc_msgSend_253Ptr.asFunction< + late final __objc_msgSend_264 = __objc_msgSend_264Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_substringToIndex_1 = _registerName1("substringToIndex:"); late final _sel_substringWithRange_1 = _registerName1("substringWithRange:"); - ffi.Pointer _objc_msgSend_254( + ffi.Pointer _objc_msgSend_265( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ) { - return __objc_msgSend_254( + return __objc_msgSend_265( obj, sel, range, ); } - late final __objc_msgSend_254Ptr = _lookup< + late final __objc_msgSend_265Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_254 = __objc_msgSend_254Ptr.asFunction< + late final __objc_msgSend_265 = __objc_msgSend_265Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_getCharacters_range_1 = _registerName1("getCharacters:range:"); - void _objc_msgSend_255( + void _objc_msgSend_266( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, _NSRange range, ) { - return __objc_msgSend_255( + return __objc_msgSend_266( obj, sel, buffer, @@ -6857,42 +7066,42 @@ class PedometerBindings { ); } - late final __objc_msgSend_255Ptr = _lookup< + late final __objc_msgSend_266Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_255 = __objc_msgSend_255Ptr.asFunction< + late final __objc_msgSend_266 = __objc_msgSend_266Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange)>(); - int _objc_msgSend_256( + int _objc_msgSend_267( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, ) { - return __objc_msgSend_256( + return __objc_msgSend_267( obj, sel, string, ); } - late final __objc_msgSend_256Ptr = _lookup< + late final __objc_msgSend_267Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_256 = __objc_msgSend_256Ptr.asFunction< + late final __objc_msgSend_267 = __objc_msgSend_267Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_compare_options_1 = _registerName1("compare:options:"); - int _objc_msgSend_257( + int _objc_msgSend_268( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int mask, ) { - return __objc_msgSend_257( + return __objc_msgSend_268( obj, sel, string, @@ -6900,24 +7109,24 @@ class PedometerBindings { ); } - late final __objc_msgSend_257Ptr = _lookup< + late final __objc_msgSend_268Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_257 = __objc_msgSend_257Ptr.asFunction< + late final __objc_msgSend_268 = __objc_msgSend_268Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_compare_options_range_1 = _registerName1("compare:options:range:"); - int _objc_msgSend_258( + int _objc_msgSend_269( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int mask, _NSRange rangeOfReceiverToCompare, ) { - return __objc_msgSend_258( + return __objc_msgSend_269( obj, sel, string, @@ -6926,17 +7135,17 @@ class PedometerBindings { ); } - late final __objc_msgSend_258Ptr = _lookup< + late final __objc_msgSend_269Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_258 = __objc_msgSend_258Ptr.asFunction< + late final __objc_msgSend_269 = __objc_msgSend_269Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, _NSRange)>(); late final _sel_compare_options_range_locale_1 = _registerName1("compare:options:range:locale:"); - int _objc_msgSend_259( + int _objc_msgSend_270( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, @@ -6944,7 +7153,7 @@ class PedometerBindings { _NSRange rangeOfReceiverToCompare, ffi.Pointer locale, ) { - return __objc_msgSend_259( + return __objc_msgSend_270( obj, sel, string, @@ -6954,7 +7163,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_259Ptr = _lookup< + late final __objc_msgSend_270Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, @@ -6963,7 +7172,7 @@ class PedometerBindings { ffi.Int32, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_259 = __objc_msgSend_259Ptr.asFunction< + late final __objc_msgSend_270 = __objc_msgSend_270Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, _NSRange, ffi.Pointer)>(); @@ -6979,13 +7188,13 @@ class PedometerBindings { late final _sel_hasSuffix_1 = _registerName1("hasSuffix:"); late final _sel_commonPrefixWithString_options_1 = _registerName1("commonPrefixWithString:options:"); - ffi.Pointer _objc_msgSend_260( + ffi.Pointer _objc_msgSend_271( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer str, int mask, ) { - return __objc_msgSend_260( + return __objc_msgSend_271( obj, sel, str, @@ -6993,14 +7202,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_260Ptr = _lookup< + late final __objc_msgSend_271Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_260 = __objc_msgSend_260Ptr.asFunction< + late final __objc_msgSend_271 = __objc_msgSend_271Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -7011,36 +7220,43 @@ class PedometerBindings { _registerName1("localizedStandardContainsString:"); late final _sel_localizedStandardRangeOfString_1 = _registerName1("localizedStandardRangeOfString:"); - _NSRange _objc_msgSend_261( + void _objc_msgSend_272( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer str, ) { - return __objc_msgSend_261( + return __objc_msgSend_272( + stret, obj, sel, str, ); } - late final __objc_msgSend_261Ptr = _lookup< + late final __objc_msgSend_272Ptr = _lookup< ffi.NativeFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_261 = __objc_msgSend_261Ptr.asFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Void Function( + ffi.Pointer<_NSRange>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_stret'); + late final __objc_msgSend_272 = __objc_msgSend_272Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); late final _sel_rangeOfString_1 = _registerName1("rangeOfString:"); late final _sel_rangeOfString_options_1 = _registerName1("rangeOfString:options:"); - _NSRange _objc_msgSend_262( + void _objc_msgSend_273( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer searchString, int mask, ) { - return __objc_msgSend_262( + return __objc_msgSend_273( + stret, obj, sel, searchString, @@ -7048,24 +7264,30 @@ class PedometerBindings { ); } - late final __objc_msgSend_262Ptr = _lookup< + late final __objc_msgSend_273Ptr = _lookup< ffi.NativeFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_262 = __objc_msgSend_262Ptr.asFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Void Function( + ffi.Pointer<_NSRange>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend_stret'); + late final __objc_msgSend_273 = __objc_msgSend_273Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); late final _sel_rangeOfString_options_range_1 = _registerName1("rangeOfString:options:range:"); - _NSRange _objc_msgSend_263( + void _objc_msgSend_274( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer searchString, int mask, _NSRange rangeOfReceiverToSearch, ) { - return __objc_msgSend_263( + return __objc_msgSend_274( + stret, obj, sel, searchString, @@ -7074,24 +7296,29 @@ class PedometerBindings { ); } - late final __objc_msgSend_263Ptr = _lookup< + late final __objc_msgSend_274Ptr = _lookup< ffi.NativeFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_263 = __objc_msgSend_263Ptr.asFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, _NSRange)>(); + ffi.Void Function( + ffi.Pointer<_NSRange>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange)>>('objc_msgSend_stret'); + late final __objc_msgSend_274 = __objc_msgSend_274Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, ffi.Pointer, int, _NSRange)>(); late final _class_NSLocale1 = _getClass1("NSLocale"); late final _sel_displayNameForKey_value_1 = _registerName1("displayNameForKey:value:"); - ffi.Pointer _objc_msgSend_264( + ffi.Pointer _objc_msgSend_275( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ffi.Pointer value, ) { - return __objc_msgSend_264( + return __objc_msgSend_275( obj, sel, key, @@ -7099,14 +7326,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_264Ptr = _lookup< + late final __objc_msgSend_275Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_264 = __objc_msgSend_264Ptr.asFunction< + late final __objc_msgSend_275 = __objc_msgSend_275Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -7121,9 +7348,31 @@ class PedometerBindings { late final _sel_languageCode1 = _registerName1("languageCode"); late final _sel_localizedStringForLanguageCode_1 = _registerName1("localizedStringForLanguageCode:"); + ffi.Pointer _objc_msgSend_276( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer languageCode, + ) { + return __objc_msgSend_276( + obj, + sel, + languageCode, + ); + } + + late final __objc_msgSend_276Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_276 = __objc_msgSend_276Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_languageIdentifier1 = _registerName1("languageIdentifier"); late final _sel_countryCode1 = _registerName1("countryCode"); late final _sel_localizedStringForCountryCode_1 = _registerName1("localizedStringForCountryCode:"); + late final _sel_regionCode1 = _registerName1("regionCode"); late final _sel_scriptCode1 = _registerName1("scriptCode"); late final _sel_localizedStringForScriptCode_1 = _registerName1("localizedStringForScriptCode:"); @@ -7132,21 +7381,21 @@ class PedometerBindings { _registerName1("localizedStringForVariantCode:"); late final _class_NSCharacterSet1 = _getClass1("NSCharacterSet"); late final _sel_controlCharacterSet1 = _registerName1("controlCharacterSet"); - ffi.Pointer _objc_msgSend_265( + ffi.Pointer _objc_msgSend_277( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_265( + return __objc_msgSend_277( obj, sel, ); } - late final __objc_msgSend_265Ptr = _lookup< + late final __objc_msgSend_277Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_265 = __objc_msgSend_265Ptr.asFunction< + late final __objc_msgSend_277 = __objc_msgSend_277Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -7175,90 +7424,130 @@ class PedometerBindings { late final _sel_newlineCharacterSet1 = _registerName1("newlineCharacterSet"); late final _sel_characterSetWithRange_1 = _registerName1("characterSetWithRange:"); - ffi.Pointer _objc_msgSend_266( + ffi.Pointer _objc_msgSend_278( ffi.Pointer obj, ffi.Pointer sel, _NSRange aRange, ) { - return __objc_msgSend_266( + return __objc_msgSend_278( obj, sel, aRange, ); } - late final __objc_msgSend_266Ptr = _lookup< + late final __objc_msgSend_278Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_266 = __objc_msgSend_266Ptr.asFunction< + late final __objc_msgSend_278 = __objc_msgSend_278Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_characterSetWithCharactersInString_1 = _registerName1("characterSetWithCharactersInString:"); - ffi.Pointer _objc_msgSend_267( + ffi.Pointer _objc_msgSend_279( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aString, ) { - return __objc_msgSend_267( + return __objc_msgSend_279( obj, sel, aString, ); } - late final __objc_msgSend_267Ptr = _lookup< + late final __objc_msgSend_279Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_267 = __objc_msgSend_267Ptr.asFunction< + late final __objc_msgSend_279 = __objc_msgSend_279Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_characterSetWithBitmapRepresentation_1 = _registerName1("characterSetWithBitmapRepresentation:"); - ffi.Pointer _objc_msgSend_268( + ffi.Pointer _objc_msgSend_280( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ) { - return __objc_msgSend_268( + return __objc_msgSend_280( obj, sel, data, ); } - late final __objc_msgSend_268Ptr = _lookup< + late final __objc_msgSend_280Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_268 = __objc_msgSend_268Ptr.asFunction< + late final __objc_msgSend_280 = __objc_msgSend_280Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_characterSetWithContentsOfFile_1 = _registerName1("characterSetWithContentsOfFile:"); + ffi.Pointer _objc_msgSend_281( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer fName, + ) { + return __objc_msgSend_281( + obj, + sel, + fName, + ); + } + + late final __objc_msgSend_281Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_281 = __objc_msgSend_281Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + instancetype _objc_msgSend_282( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer coder, + ) { + return __objc_msgSend_282( + obj, + sel, + coder, + ); + } + + late final __objc_msgSend_282Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_282 = __objc_msgSend_282Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_characterIsMember_1 = _registerName1("characterIsMember:"); - bool _objc_msgSend_269( + bool _objc_msgSend_283( ffi.Pointer obj, ffi.Pointer sel, int aCharacter, ) { - return __objc_msgSend_269( + return __objc_msgSend_283( obj, sel, aCharacter, ); } - late final __objc_msgSend_269Ptr = _lookup< + late final __objc_msgSend_283Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedShort)>>('objc_msgSend'); - late final __objc_msgSend_269 = __objc_msgSend_269Ptr.asFunction< + late final __objc_msgSend_283 = __objc_msgSend_283Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_bitmapRepresentation1 = @@ -7266,64 +7555,64 @@ class PedometerBindings { late final _sel_invertedSet1 = _registerName1("invertedSet"); late final _sel_longCharacterIsMember_1 = _registerName1("longCharacterIsMember:"); - bool _objc_msgSend_270( + bool _objc_msgSend_284( ffi.Pointer obj, ffi.Pointer sel, int theLongChar, ) { - return __objc_msgSend_270( + return __objc_msgSend_284( obj, sel, theLongChar, ); } - late final __objc_msgSend_270Ptr = _lookup< + late final __objc_msgSend_284Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedInt)>>('objc_msgSend'); - late final __objc_msgSend_270 = __objc_msgSend_270Ptr.asFunction< + late final __objc_msgSend_284 = __objc_msgSend_284Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_isSupersetOfSet_1 = _registerName1("isSupersetOfSet:"); - bool _objc_msgSend_271( + bool _objc_msgSend_285( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer theOtherSet, ) { - return __objc_msgSend_271( + return __objc_msgSend_285( obj, sel, theOtherSet, ); } - late final __objc_msgSend_271Ptr = _lookup< + late final __objc_msgSend_285Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_271 = __objc_msgSend_271Ptr.asFunction< + late final __objc_msgSend_285 = __objc_msgSend_285Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_hasMemberInPlane_1 = _registerName1("hasMemberInPlane:"); - bool _objc_msgSend_272( + bool _objc_msgSend_286( ffi.Pointer obj, ffi.Pointer sel, int thePlane, ) { - return __objc_msgSend_272( + return __objc_msgSend_286( obj, sel, thePlane, ); } - late final __objc_msgSend_272Ptr = _lookup< + late final __objc_msgSend_286Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Uint8)>>('objc_msgSend'); - late final __objc_msgSend_272 = __objc_msgSend_272Ptr.asFunction< + late final __objc_msgSend_286 = __objc_msgSend_286Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_URLUserAllowedCharacterSet1 = @@ -7366,21 +7655,21 @@ class PedometerBindings { _registerName1("alternateQuotationEndDelimiter"); late final _sel_autoupdatingCurrentLocale1 = _registerName1("autoupdatingCurrentLocale"); - ffi.Pointer _objc_msgSend_273( + ffi.Pointer _objc_msgSend_287( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_273( + return __objc_msgSend_287( obj, sel, ); } - late final __objc_msgSend_273Ptr = _lookup< + late final __objc_msgSend_287Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_273 = __objc_msgSend_273Ptr.asFunction< + late final __objc_msgSend_287 = __objc_msgSend_287Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -7398,25 +7687,45 @@ class PedometerBindings { late final _sel_preferredLanguages1 = _registerName1("preferredLanguages"); late final _sel_componentsFromLocaleIdentifier_1 = _registerName1("componentsFromLocaleIdentifier:"); + ffi.Pointer _objc_msgSend_288( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer string, + ) { + return __objc_msgSend_288( + obj, + sel, + string, + ); + } + + late final __objc_msgSend_288Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_288 = __objc_msgSend_288Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_localeIdentifierFromComponents_1 = _registerName1("localeIdentifierFromComponents:"); - ffi.Pointer _objc_msgSend_274( + ffi.Pointer _objc_msgSend_289( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer dict, ) { - return __objc_msgSend_274( + return __objc_msgSend_289( obj, sel, dict, ); } - late final __objc_msgSend_274Ptr = _lookup< + late final __objc_msgSend_289Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_274 = __objc_msgSend_274Ptr.asFunction< + late final __objc_msgSend_289 = __objc_msgSend_289Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -7426,67 +7735,67 @@ class PedometerBindings { _registerName1("canonicalLanguageIdentifierFromString:"); late final _sel_localeIdentifierFromWindowsLocaleCode_1 = _registerName1("localeIdentifierFromWindowsLocaleCode:"); - ffi.Pointer _objc_msgSend_275( + ffi.Pointer _objc_msgSend_290( ffi.Pointer obj, ffi.Pointer sel, int lcid, ) { - return __objc_msgSend_275( + return __objc_msgSend_290( obj, sel, lcid, ); } - late final __objc_msgSend_275Ptr = _lookup< + late final __objc_msgSend_290Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Uint32)>>('objc_msgSend'); - late final __objc_msgSend_275 = __objc_msgSend_275Ptr.asFunction< + late final __objc_msgSend_290 = __objc_msgSend_290Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_windowsLocaleCodeFromLocaleIdentifier_1 = _registerName1("windowsLocaleCodeFromLocaleIdentifier:"); - int _objc_msgSend_276( + int _objc_msgSend_291( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer localeIdentifier, ) { - return __objc_msgSend_276( + return __objc_msgSend_291( obj, sel, localeIdentifier, ); } - late final __objc_msgSend_276Ptr = _lookup< + late final __objc_msgSend_291Ptr = _lookup< ffi.NativeFunction< ffi.Uint32 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_276 = __objc_msgSend_276Ptr.asFunction< + late final __objc_msgSend_291 = __objc_msgSend_291Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_characterDirectionForLanguage_1 = _registerName1("characterDirectionForLanguage:"); - int _objc_msgSend_277( + int _objc_msgSend_292( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer isoLangCode, ) { - return __objc_msgSend_277( + return __objc_msgSend_292( obj, sel, isoLangCode, ); } - late final __objc_msgSend_277Ptr = _lookup< + late final __objc_msgSend_292Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_277 = __objc_msgSend_277Ptr.asFunction< + late final __objc_msgSend_292 = __objc_msgSend_292Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -7494,7 +7803,8 @@ class PedometerBindings { _registerName1("lineDirectionForLanguage:"); late final _sel_rangeOfString_options_range_locale_1 = _registerName1("rangeOfString:options:range:locale:"); - _NSRange _objc_msgSend_278( + void _objc_msgSend_293( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer searchString, @@ -7502,7 +7812,8 @@ class PedometerBindings { _NSRange rangeOfReceiverToSearch, ffi.Pointer locale, ) { - return __objc_msgSend_278( + return __objc_msgSend_293( + stret, obj, sel, searchString, @@ -7512,50 +7823,64 @@ class PedometerBindings { ); } - late final __objc_msgSend_278Ptr = _lookup< + late final __objc_msgSend_293Ptr = _lookup< ffi.NativeFunction< - _NSRange Function( + ffi.Void Function( + ffi.Pointer<_NSRange>, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32, _NSRange, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_278 = __objc_msgSend_278Ptr.asFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, _NSRange, ffi.Pointer)>(); + ffi.Pointer)>>('objc_msgSend_stret'); + late final __objc_msgSend_293 = __objc_msgSend_293Ptr.asFunction< + void Function( + ffi.Pointer<_NSRange>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + _NSRange, + ffi.Pointer)>(); late final _sel_rangeOfCharacterFromSet_1 = _registerName1("rangeOfCharacterFromSet:"); - _NSRange _objc_msgSend_279( + void _objc_msgSend_294( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer searchSet, ) { - return __objc_msgSend_279( + return __objc_msgSend_294( + stret, obj, sel, searchSet, ); } - late final __objc_msgSend_279Ptr = _lookup< + late final __objc_msgSend_294Ptr = _lookup< ffi.NativeFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_279 = __objc_msgSend_279Ptr.asFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Void Function( + ffi.Pointer<_NSRange>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_stret'); + late final __objc_msgSend_294 = __objc_msgSend_294Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); late final _sel_rangeOfCharacterFromSet_options_1 = _registerName1("rangeOfCharacterFromSet:options:"); - _NSRange _objc_msgSend_280( + void _objc_msgSend_295( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer searchSet, int mask, ) { - return __objc_msgSend_280( + return __objc_msgSend_295( + stret, obj, sel, searchSet, @@ -7563,24 +7888,30 @@ class PedometerBindings { ); } - late final __objc_msgSend_280Ptr = _lookup< + late final __objc_msgSend_295Ptr = _lookup< ffi.NativeFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_280 = __objc_msgSend_280Ptr.asFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Void Function( + ffi.Pointer<_NSRange>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend_stret'); + late final __objc_msgSend_295 = __objc_msgSend_295Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); late final _sel_rangeOfCharacterFromSet_options_range_1 = _registerName1("rangeOfCharacterFromSet:options:range:"); - _NSRange _objc_msgSend_281( + void _objc_msgSend_296( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer searchSet, int mask, _NSRange rangeOfReceiverToSearch, ) { - return __objc_msgSend_281( + return __objc_msgSend_296( + stret, obj, sel, searchSet, @@ -7589,56 +7920,66 @@ class PedometerBindings { ); } - late final __objc_msgSend_281Ptr = _lookup< + late final __objc_msgSend_296Ptr = _lookup< ffi.NativeFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_281 = __objc_msgSend_281Ptr.asFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, _NSRange)>(); + ffi.Void Function( + ffi.Pointer<_NSRange>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange)>>('objc_msgSend_stret'); + late final __objc_msgSend_296 = __objc_msgSend_296Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, ffi.Pointer, int, _NSRange)>(); late final _sel_rangeOfComposedCharacterSequenceAtIndex_1 = _registerName1("rangeOfComposedCharacterSequenceAtIndex:"); - _NSRange _objc_msgSend_282( + void _objc_msgSend_297( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_282( + return __objc_msgSend_297( + stret, obj, sel, index, ); } - late final __objc_msgSend_282Ptr = _lookup< + late final __objc_msgSend_297Ptr = _lookup< ffi.NativeFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_282 = __objc_msgSend_282Ptr.asFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.Void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend_stret'); + late final __objc_msgSend_297 = __objc_msgSend_297Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, int)>(); late final _sel_rangeOfComposedCharacterSequencesForRange_1 = _registerName1("rangeOfComposedCharacterSequencesForRange:"); - _NSRange _objc_msgSend_283( + void _objc_msgSend_298( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ) { - return __objc_msgSend_283( + return __objc_msgSend_298( + stret, obj, sel, range, ); } - late final __objc_msgSend_283Ptr = _lookup< + late final __objc_msgSend_298Ptr = _lookup< ffi.NativeFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_283 = __objc_msgSend_283Ptr.asFunction< - _NSRange Function( - ffi.Pointer, ffi.Pointer, _NSRange)>(); + ffi.Void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, _NSRange)>>('objc_msgSend_stret'); + late final __objc_msgSend_298 = __objc_msgSend_298Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, _NSRange)>(); late final _sel_stringByAppendingString_1 = _registerName1("stringByAppendingString:"); @@ -7655,23 +7996,23 @@ class PedometerBindings { _registerName1("localizedCapitalizedString"); late final _sel_uppercaseStringWithLocale_1 = _registerName1("uppercaseStringWithLocale:"); - ffi.Pointer _objc_msgSend_284( + ffi.Pointer _objc_msgSend_299( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer locale, ) { - return __objc_msgSend_284( + return __objc_msgSend_299( obj, sel, locale, ); } - late final __objc_msgSend_284Ptr = _lookup< + late final __objc_msgSend_299Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_284 = __objc_msgSend_284Ptr.asFunction< + late final __objc_msgSend_299 = __objc_msgSend_299Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -7681,7 +8022,7 @@ class PedometerBindings { _registerName1("capitalizedStringWithLocale:"); late final _sel_getLineStart_end_contentsEnd_forRange_1 = _registerName1("getLineStart:end:contentsEnd:forRange:"); - void _objc_msgSend_285( + void _objc_msgSend_300( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer startPtr, @@ -7689,7 +8030,7 @@ class PedometerBindings { ffi.Pointer contentsEndPtr, _NSRange range, ) { - return __objc_msgSend_285( + return __objc_msgSend_300( obj, sel, startPtr, @@ -7699,7 +8040,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_285Ptr = _lookup< + late final __objc_msgSend_300Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -7708,7 +8049,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_285 = __objc_msgSend_285Ptr.asFunction< + late final __objc_msgSend_300 = __objc_msgSend_300Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -7724,14 +8065,14 @@ class PedometerBindings { _registerName1("paragraphRangeForRange:"); late final _sel_enumerateSubstringsInRange_options_usingBlock_1 = _registerName1("enumerateSubstringsInRange:options:usingBlock:"); - void _objc_msgSend_286( + void _objc_msgSend_301( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_286( + return __objc_msgSend_301( obj, sel, range, @@ -7740,33 +8081,33 @@ class PedometerBindings { ); } - late final __objc_msgSend_286Ptr = _lookup< + late final __objc_msgSend_301Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_286 = __objc_msgSend_286Ptr.asFunction< + late final __objc_msgSend_301 = __objc_msgSend_301Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, _NSRange, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateLinesUsingBlock_1 = _registerName1("enumerateLinesUsingBlock:"); - void _objc_msgSend_287( + void _objc_msgSend_302( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_287( + return __objc_msgSend_302( obj, sel, block, ); } - late final __objc_msgSend_287Ptr = _lookup< + late final __objc_msgSend_302Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_287 = __objc_msgSend_287Ptr.asFunction< + late final __objc_msgSend_302 = __objc_msgSend_302Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); @@ -7775,13 +8116,13 @@ class PedometerBindings { late final _sel_smallestEncoding1 = _registerName1("smallestEncoding"); late final _sel_dataUsingEncoding_allowLossyConversion_1 = _registerName1("dataUsingEncoding:allowLossyConversion:"); - ffi.Pointer _objc_msgSend_288( + ffi.Pointer _objc_msgSend_303( ffi.Pointer obj, ffi.Pointer sel, int encoding, bool lossy, ) { - return __objc_msgSend_288( + return __objc_msgSend_303( obj, sel, encoding, @@ -7789,35 +8130,35 @@ class PedometerBindings { ); } - late final __objc_msgSend_288Ptr = _lookup< + late final __objc_msgSend_303Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.UnsignedLong, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_288 = __objc_msgSend_288Ptr.asFunction< + late final __objc_msgSend_303 = __objc_msgSend_303Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int, bool)>(); late final _sel_dataUsingEncoding_1 = _registerName1("dataUsingEncoding:"); - ffi.Pointer _objc_msgSend_289( + ffi.Pointer _objc_msgSend_304( ffi.Pointer obj, ffi.Pointer sel, int encoding, ) { - return __objc_msgSend_289( + return __objc_msgSend_304( obj, sel, encoding, ); } - late final __objc_msgSend_289Ptr = _lookup< + late final __objc_msgSend_304Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_289 = __objc_msgSend_289Ptr.asFunction< + late final __objc_msgSend_304 = __objc_msgSend_304Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -7827,14 +8168,14 @@ class PedometerBindings { _registerName1("cStringUsingEncoding:"); late final _sel_getCString_maxLength_encoding_1 = _registerName1("getCString:maxLength:encoding:"); - bool _objc_msgSend_290( + bool _objc_msgSend_305( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, int maxBufferCount, int encoding, ) { - return __objc_msgSend_290( + return __objc_msgSend_305( obj, sel, buffer, @@ -7843,7 +8184,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_290Ptr = _lookup< + late final __objc_msgSend_305Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -7851,14 +8192,14 @@ class PedometerBindings { ffi.Pointer, ffi.UnsignedLong, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_290 = __objc_msgSend_290Ptr.asFunction< + late final __objc_msgSend_305 = __objc_msgSend_305Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int)>(); late final _sel_getBytes_maxLength_usedLength_encoding_options_range_remainingRange_1 = _registerName1( "getBytes:maxLength:usedLength:encoding:options:range:remainingRange:"); - bool _objc_msgSend_291( + bool _objc_msgSend_306( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, @@ -7869,7 +8210,7 @@ class PedometerBindings { _NSRange range, ffi.Pointer<_NSRange> leftover, ) { - return __objc_msgSend_291( + return __objc_msgSend_306( obj, sel, buffer, @@ -7882,7 +8223,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_291Ptr = _lookup< + late final __objc_msgSend_306Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -7894,7 +8235,7 @@ class PedometerBindings { ffi.Int32, _NSRange, ffi.Pointer<_NSRange>)>>('objc_msgSend'); - late final __objc_msgSend_291 = __objc_msgSend_291Ptr.asFunction< + late final __objc_msgSend_306 = __objc_msgSend_306Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -7912,21 +8253,21 @@ class PedometerBindings { _registerName1("lengthOfBytesUsingEncoding:"); late final _sel_availableStringEncodings1 = _registerName1("availableStringEncodings"); - ffi.Pointer _objc_msgSend_292( + ffi.Pointer _objc_msgSend_307( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_292( + return __objc_msgSend_307( obj, sel, ); } - late final __objc_msgSend_292Ptr = _lookup< + late final __objc_msgSend_307Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_292 = __objc_msgSend_292Ptr.asFunction< + late final __objc_msgSend_307 = __objc_msgSend_307Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -7944,60 +8285,80 @@ class PedometerBindings { _registerName1("precomposedStringWithCompatibilityMapping"); late final _sel_componentsSeparatedByString_1 = _registerName1("componentsSeparatedByString:"); + ffi.Pointer _objc_msgSend_308( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer separator, + ) { + return __objc_msgSend_308( + obj, + sel, + separator, + ); + } + + late final __objc_msgSend_308Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_308 = __objc_msgSend_308Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_componentsSeparatedByCharactersInSet_1 = _registerName1("componentsSeparatedByCharactersInSet:"); - ffi.Pointer _objc_msgSend_293( + ffi.Pointer _objc_msgSend_309( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer separator, ) { - return __objc_msgSend_293( + return __objc_msgSend_309( obj, sel, separator, ); } - late final __objc_msgSend_293Ptr = _lookup< + late final __objc_msgSend_309Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_293 = __objc_msgSend_293Ptr.asFunction< + late final __objc_msgSend_309 = __objc_msgSend_309Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_stringByTrimmingCharactersInSet_1 = _registerName1("stringByTrimmingCharactersInSet:"); - ffi.Pointer _objc_msgSend_294( + ffi.Pointer _objc_msgSend_310( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer set1, ) { - return __objc_msgSend_294( + return __objc_msgSend_310( obj, sel, set1, ); } - late final __objc_msgSend_294Ptr = _lookup< + late final __objc_msgSend_310Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_294 = __objc_msgSend_294Ptr.asFunction< + late final __objc_msgSend_310 = __objc_msgSend_310Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_stringByPaddingToLength_withString_startingAtIndex_1 = _registerName1("stringByPaddingToLength:withString:startingAtIndex:"); - ffi.Pointer _objc_msgSend_295( + ffi.Pointer _objc_msgSend_311( ffi.Pointer obj, ffi.Pointer sel, int newLength, ffi.Pointer padString, int padIndex, ) { - return __objc_msgSend_295( + return __objc_msgSend_311( obj, sel, newLength, @@ -8006,7 +8367,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_295Ptr = _lookup< + late final __objc_msgSend_311Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -8014,19 +8375,19 @@ class PedometerBindings { ffi.UnsignedLong, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_295 = __objc_msgSend_295Ptr.asFunction< + late final __objc_msgSend_311 = __objc_msgSend_311Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer, int)>(); late final _sel_stringByFoldingWithOptions_locale_1 = _registerName1("stringByFoldingWithOptions:locale:"); - ffi.Pointer _objc_msgSend_296( + ffi.Pointer _objc_msgSend_312( ffi.Pointer obj, ffi.Pointer sel, int options, ffi.Pointer locale, ) { - return __objc_msgSend_296( + return __objc_msgSend_312( obj, sel, options, @@ -8034,21 +8395,21 @@ class PedometerBindings { ); } - late final __objc_msgSend_296Ptr = _lookup< + late final __objc_msgSend_312Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_296 = __objc_msgSend_296Ptr.asFunction< + late final __objc_msgSend_312 = __objc_msgSend_312Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_stringByReplacingOccurrencesOfString_withString_options_range_1 = _registerName1( "stringByReplacingOccurrencesOfString:withString:options:range:"); - ffi.Pointer _objc_msgSend_297( + ffi.Pointer _objc_msgSend_313( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer target, @@ -8056,7 +8417,7 @@ class PedometerBindings { int options, _NSRange searchRange, ) { - return __objc_msgSend_297( + return __objc_msgSend_313( obj, sel, target, @@ -8066,7 +8427,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_297Ptr = _lookup< + late final __objc_msgSend_313Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -8075,7 +8436,7 @@ class PedometerBindings { ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_297 = __objc_msgSend_297Ptr.asFunction< + late final __objc_msgSend_313 = __objc_msgSend_313Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -8086,13 +8447,13 @@ class PedometerBindings { late final _sel_stringByReplacingOccurrencesOfString_withString_1 = _registerName1("stringByReplacingOccurrencesOfString:withString:"); - ffi.Pointer _objc_msgSend_298( + ffi.Pointer _objc_msgSend_314( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer target, ffi.Pointer replacement, ) { - return __objc_msgSend_298( + return __objc_msgSend_314( obj, sel, target, @@ -8100,14 +8461,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_298Ptr = _lookup< + late final __objc_msgSend_314Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_298 = __objc_msgSend_298Ptr.asFunction< + late final __objc_msgSend_314 = __objc_msgSend_314Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -8116,13 +8477,13 @@ class PedometerBindings { late final _sel_stringByReplacingCharactersInRange_withString_1 = _registerName1("stringByReplacingCharactersInRange:withString:"); - ffi.Pointer _objc_msgSend_299( + ffi.Pointer _objc_msgSend_315( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer replacement, ) { - return __objc_msgSend_299( + return __objc_msgSend_315( obj, sel, range, @@ -8130,26 +8491,26 @@ class PedometerBindings { ); } - late final __objc_msgSend_299Ptr = _lookup< + late final __objc_msgSend_315Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_299 = __objc_msgSend_299Ptr.asFunction< + late final __objc_msgSend_315 = __objc_msgSend_315Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_stringByApplyingTransform_reverse_1 = _registerName1("stringByApplyingTransform:reverse:"); - ffi.Pointer _objc_msgSend_300( + ffi.Pointer _objc_msgSend_316( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer transform, bool reverse, ) { - return __objc_msgSend_300( + return __objc_msgSend_316( obj, sel, transform, @@ -8157,20 +8518,20 @@ class PedometerBindings { ); } - late final __objc_msgSend_300Ptr = _lookup< + late final __objc_msgSend_316Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_300 = __objc_msgSend_300Ptr.asFunction< + late final __objc_msgSend_316 = __objc_msgSend_316Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_writeToURL_atomically_encoding_error_1 = _registerName1("writeToURL:atomically:encoding:error:"); - bool _objc_msgSend_301( + bool _objc_msgSend_317( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, @@ -8178,7 +8539,7 @@ class PedometerBindings { int enc, ffi.Pointer> error, ) { - return __objc_msgSend_301( + return __objc_msgSend_317( obj, sel, url, @@ -8188,7 +8549,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_301Ptr = _lookup< + late final __objc_msgSend_317Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -8197,7 +8558,7 @@ class PedometerBindings { ffi.Bool, ffi.UnsignedLong, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_301 = __objc_msgSend_301Ptr.asFunction< + late final __objc_msgSend_317 = __objc_msgSend_317Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -8208,7 +8569,7 @@ class PedometerBindings { late final _sel_writeToFile_atomically_encoding_error_1 = _registerName1("writeToFile:atomically:encoding:error:"); - bool _objc_msgSend_302( + bool _objc_msgSend_318( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, @@ -8216,7 +8577,7 @@ class PedometerBindings { int enc, ffi.Pointer> error, ) { - return __objc_msgSend_302( + return __objc_msgSend_318( obj, sel, path, @@ -8226,7 +8587,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_302Ptr = _lookup< + late final __objc_msgSend_318Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -8235,7 +8596,7 @@ class PedometerBindings { ffi.Bool, ffi.UnsignedLong, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_302 = __objc_msgSend_302Ptr.asFunction< + late final __objc_msgSend_318 = __objc_msgSend_318Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -8247,14 +8608,14 @@ class PedometerBindings { late final _sel_hash1 = _registerName1("hash"); late final _sel_initWithCharactersNoCopy_length_freeWhenDone_1 = _registerName1("initWithCharactersNoCopy:length:freeWhenDone:"); - instancetype _objc_msgSend_303( + instancetype _objc_msgSend_319( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer characters, int length, bool freeBuffer, ) { - return __objc_msgSend_303( + return __objc_msgSend_319( obj, sel, characters, @@ -8263,7 +8624,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_303Ptr = _lookup< + late final __objc_msgSend_319Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -8271,20 +8632,20 @@ class PedometerBindings { ffi.Pointer, ffi.UnsignedLong, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_303 = __objc_msgSend_303Ptr.asFunction< + late final __objc_msgSend_319 = __objc_msgSend_319Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, bool)>(); late final _sel_initWithCharactersNoCopy_length_deallocator_1 = _registerName1("initWithCharactersNoCopy:length:deallocator:"); - instancetype _objc_msgSend_304( + instancetype _objc_msgSend_320( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer chars, int len, ffi.Pointer<_ObjCBlock> deallocator, ) { - return __objc_msgSend_304( + return __objc_msgSend_320( obj, sel, chars, @@ -8293,7 +8654,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_304Ptr = _lookup< + late final __objc_msgSend_320Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -8301,19 +8662,19 @@ class PedometerBindings { ffi.Pointer, ffi.UnsignedLong, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_304 = __objc_msgSend_304Ptr.asFunction< + late final __objc_msgSend_320 = __objc_msgSend_320Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_initWithCharacters_length_1 = _registerName1("initWithCharacters:length:"); - instancetype _objc_msgSend_305( + instancetype _objc_msgSend_321( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer characters, int length, ) { - return __objc_msgSend_305( + return __objc_msgSend_321( obj, sel, characters, @@ -8321,48 +8682,48 @@ class PedometerBindings { ); } - late final __objc_msgSend_305Ptr = _lookup< + late final __objc_msgSend_321Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_305 = __objc_msgSend_305Ptr.asFunction< + late final __objc_msgSend_321 = __objc_msgSend_321Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithUTF8String_1 = _registerName1("initWithUTF8String:"); - instancetype _objc_msgSend_306( + instancetype _objc_msgSend_322( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer nullTerminatedCString, ) { - return __objc_msgSend_306( + return __objc_msgSend_322( obj, sel, nullTerminatedCString, ); } - late final __objc_msgSend_306Ptr = _lookup< + late final __objc_msgSend_322Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_306 = __objc_msgSend_306Ptr.asFunction< + late final __objc_msgSend_322 = __objc_msgSend_322Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithFormat_1 = _registerName1("initWithFormat:"); late final _sel_initWithFormat_arguments_1 = _registerName1("initWithFormat:arguments:"); - instancetype _objc_msgSend_307( + instancetype _objc_msgSend_323( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, - ffi.Pointer argList, + ffi.Pointer<__va_list_tag> argList, ) { - return __objc_msgSend_307( + return __objc_msgSend_323( obj, sel, format, @@ -8370,23 +8731,26 @@ class PedometerBindings { ); } - late final __objc_msgSend_307Ptr = _lookup< + late final __objc_msgSend_323Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_307 = __objc_msgSend_307Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); + late final __objc_msgSend_323 = __objc_msgSend_323Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, ffi.Pointer<__va_list_tag>)>(); late final _sel_initWithFormat_locale_1 = _registerName1("initWithFormat:locale:"); - instancetype _objc_msgSend_308( + instancetype _objc_msgSend_324( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, ffi.Pointer locale, ) { - return __objc_msgSend_308( + return __objc_msgSend_324( obj, sel, format, @@ -8394,27 +8758,27 @@ class PedometerBindings { ); } - late final __objc_msgSend_308Ptr = _lookup< + late final __objc_msgSend_324Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_308 = __objc_msgSend_308Ptr.asFunction< + late final __objc_msgSend_324 = __objc_msgSend_324Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithFormat_locale_arguments_1 = _registerName1("initWithFormat:locale:arguments:"); - instancetype _objc_msgSend_309( + instancetype _objc_msgSend_325( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, ffi.Pointer locale, - ffi.Pointer argList, + ffi.Pointer<__va_list_tag> argList, ) { - return __objc_msgSend_309( + return __objc_msgSend_325( obj, sel, format, @@ -8423,32 +8787,32 @@ class PedometerBindings { ); } - late final __objc_msgSend_309Ptr = _lookup< + late final __objc_msgSend_325Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_309 = __objc_msgSend_309Ptr.asFunction< + ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); + late final __objc_msgSend_325 = __objc_msgSend_325Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer<__va_list_tag>)>(); late final _sel_initWithValidatedFormat_validFormatSpecifiers_error_1 = _registerName1("initWithValidatedFormat:validFormatSpecifiers:error:"); - instancetype _objc_msgSend_310( + instancetype _objc_msgSend_326( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, ffi.Pointer validFormatSpecifiers, ffi.Pointer> error, ) { - return __objc_msgSend_310( + return __objc_msgSend_326( obj, sel, format, @@ -8457,7 +8821,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_310Ptr = _lookup< + late final __objc_msgSend_326Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -8465,7 +8829,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_310 = __objc_msgSend_310Ptr.asFunction< + late final __objc_msgSend_326 = __objc_msgSend_326Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -8476,7 +8840,7 @@ class PedometerBindings { late final _sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_1 = _registerName1( "initWithValidatedFormat:validFormatSpecifiers:locale:error:"); - instancetype _objc_msgSend_311( + instancetype _objc_msgSend_327( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, @@ -8484,7 +8848,7 @@ class PedometerBindings { ffi.Pointer locale, ffi.Pointer> error, ) { - return __objc_msgSend_311( + return __objc_msgSend_327( obj, sel, format, @@ -8494,7 +8858,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_311Ptr = _lookup< + late final __objc_msgSend_327Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -8503,7 +8867,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_311 = __objc_msgSend_311Ptr.asFunction< + late final __objc_msgSend_327 = __objc_msgSend_327Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -8515,15 +8879,15 @@ class PedometerBindings { late final _sel_initWithValidatedFormat_validFormatSpecifiers_arguments_error_1 = _registerName1( "initWithValidatedFormat:validFormatSpecifiers:arguments:error:"); - instancetype _objc_msgSend_312( + instancetype _objc_msgSend_328( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, ffi.Pointer validFormatSpecifiers, - ffi.Pointer argList, + ffi.Pointer<__va_list_tag> argList, ffi.Pointer> error, ) { - return __objc_msgSend_312( + return __objc_msgSend_328( obj, sel, format, @@ -8533,37 +8897,37 @@ class PedometerBindings { ); } - late final __objc_msgSend_312Ptr = _lookup< + late final __objc_msgSend_328Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer<__va_list_tag>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_312 = __objc_msgSend_312Ptr.asFunction< + late final __objc_msgSend_328 = __objc_msgSend_328Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer<__va_list_tag>, ffi.Pointer>)>(); late final _sel_initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_1 = _registerName1( "initWithValidatedFormat:validFormatSpecifiers:locale:arguments:error:"); - instancetype _objc_msgSend_313( + instancetype _objc_msgSend_329( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, ffi.Pointer validFormatSpecifiers, ffi.Pointer locale, - ffi.Pointer argList, + ffi.Pointer<__va_list_tag> argList, ffi.Pointer> error, ) { - return __objc_msgSend_313( + return __objc_msgSend_329( obj, sel, format, @@ -8574,7 +8938,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_313Ptr = _lookup< + late final __objc_msgSend_329Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -8582,27 +8946,27 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer<__va_list_tag>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_313 = __objc_msgSend_313Ptr.asFunction< + late final __objc_msgSend_329 = __objc_msgSend_329Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer<__va_list_tag>, ffi.Pointer>)>(); late final _sel_initWithData_encoding_1 = _registerName1("initWithData:encoding:"); - instancetype _objc_msgSend_314( + instancetype _objc_msgSend_330( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, int encoding, ) { - return __objc_msgSend_314( + return __objc_msgSend_330( obj, sel, data, @@ -8610,24 +8974,24 @@ class PedometerBindings { ); } - late final __objc_msgSend_314Ptr = _lookup< + late final __objc_msgSend_330Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_314 = __objc_msgSend_314Ptr.asFunction< + late final __objc_msgSend_330 = __objc_msgSend_330Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithBytes_length_encoding_1 = _registerName1("initWithBytes:length:encoding:"); - instancetype _objc_msgSend_315( + instancetype _objc_msgSend_331( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, int len, int encoding, ) { - return __objc_msgSend_315( + return __objc_msgSend_331( obj, sel, bytes, @@ -8636,7 +9000,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_315Ptr = _lookup< + late final __objc_msgSend_331Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -8644,13 +9008,13 @@ class PedometerBindings { ffi.Pointer, ffi.UnsignedLong, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_315 = __objc_msgSend_315Ptr.asFunction< + late final __objc_msgSend_331 = __objc_msgSend_331Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int)>(); late final _sel_initWithBytesNoCopy_length_encoding_freeWhenDone_1 = _registerName1("initWithBytesNoCopy:length:encoding:freeWhenDone:"); - instancetype _objc_msgSend_316( + instancetype _objc_msgSend_332( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, @@ -8658,7 +9022,7 @@ class PedometerBindings { int encoding, bool freeBuffer, ) { - return __objc_msgSend_316( + return __objc_msgSend_332( obj, sel, bytes, @@ -8668,7 +9032,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_316Ptr = _lookup< + late final __objc_msgSend_332Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -8677,13 +9041,13 @@ class PedometerBindings { ffi.UnsignedLong, ffi.UnsignedLong, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_316 = __objc_msgSend_316Ptr.asFunction< + late final __objc_msgSend_332 = __objc_msgSend_332Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int, bool)>(); late final _sel_initWithBytesNoCopy_length_encoding_deallocator_1 = _registerName1("initWithBytesNoCopy:length:encoding:deallocator:"); - instancetype _objc_msgSend_317( + instancetype _objc_msgSend_333( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, @@ -8691,7 +9055,7 @@ class PedometerBindings { int encoding, ffi.Pointer<_ObjCBlock> deallocator, ) { - return __objc_msgSend_317( + return __objc_msgSend_333( obj, sel, bytes, @@ -8701,7 +9065,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_317Ptr = _lookup< + late final __objc_msgSend_333Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -8710,7 +9074,7 @@ class PedometerBindings { ffi.UnsignedLong, ffi.UnsignedLong, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_317 = __objc_msgSend_317Ptr.asFunction< + late final __objc_msgSend_333 = __objc_msgSend_333Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer<_ObjCBlock>)>(); @@ -8730,13 +9094,13 @@ class PedometerBindings { "localizedStringWithValidatedFormat:validFormatSpecifiers:error:"); late final _sel_initWithCString_encoding_1 = _registerName1("initWithCString:encoding:"); - instancetype _objc_msgSend_318( + instancetype _objc_msgSend_334( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer nullTerminatedCString, int encoding, ) { - return __objc_msgSend_318( + return __objc_msgSend_334( obj, sel, nullTerminatedCString, @@ -8744,11 +9108,11 @@ class PedometerBindings { ); } - late final __objc_msgSend_318Ptr = _lookup< + late final __objc_msgSend_334Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_318 = __objc_msgSend_318Ptr.asFunction< + late final __objc_msgSend_334 = __objc_msgSend_334Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -8756,14 +9120,14 @@ class PedometerBindings { _registerName1("stringWithCString:encoding:"); late final _sel_initWithContentsOfURL_encoding_error_1 = _registerName1("initWithContentsOfURL:encoding:error:"); - instancetype _objc_msgSend_319( + instancetype _objc_msgSend_335( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, int enc, ffi.Pointer> error, ) { - return __objc_msgSend_319( + return __objc_msgSend_335( obj, sel, url, @@ -8772,7 +9136,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_319Ptr = _lookup< + late final __objc_msgSend_335Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -8780,7 +9144,7 @@ class PedometerBindings { ffi.Pointer, ffi.UnsignedLong, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_319 = __objc_msgSend_319Ptr.asFunction< + late final __objc_msgSend_335 = __objc_msgSend_335Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -8790,14 +9154,14 @@ class PedometerBindings { late final _sel_initWithContentsOfFile_encoding_error_1 = _registerName1("initWithContentsOfFile:encoding:error:"); - instancetype _objc_msgSend_320( + instancetype _objc_msgSend_336( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, int enc, ffi.Pointer> error, ) { - return __objc_msgSend_320( + return __objc_msgSend_336( obj, sel, path, @@ -8806,7 +9170,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_320Ptr = _lookup< + late final __objc_msgSend_336Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -8814,7 +9178,7 @@ class PedometerBindings { ffi.Pointer, ffi.UnsignedLong, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_320 = __objc_msgSend_320Ptr.asFunction< + late final __objc_msgSend_336 = __objc_msgSend_336Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -8828,14 +9192,14 @@ class PedometerBindings { _registerName1("stringWithContentsOfFile:encoding:error:"); late final _sel_initWithContentsOfURL_usedEncoding_error_1 = _registerName1("initWithContentsOfURL:usedEncoding:error:"); - instancetype _objc_msgSend_321( + instancetype _objc_msgSend_337( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer enc, ffi.Pointer> error, ) { - return __objc_msgSend_321( + return __objc_msgSend_337( obj, sel, url, @@ -8844,7 +9208,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_321Ptr = _lookup< + late final __objc_msgSend_337Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -8852,7 +9216,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_321 = __objc_msgSend_321Ptr.asFunction< + late final __objc_msgSend_337 = __objc_msgSend_337Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -8862,14 +9226,14 @@ class PedometerBindings { late final _sel_initWithContentsOfFile_usedEncoding_error_1 = _registerName1("initWithContentsOfFile:usedEncoding:error:"); - instancetype _objc_msgSend_322( + instancetype _objc_msgSend_338( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer enc, ffi.Pointer> error, ) { - return __objc_msgSend_322( + return __objc_msgSend_338( obj, sel, path, @@ -8878,7 +9242,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_322Ptr = _lookup< + late final __objc_msgSend_338Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -8886,7 +9250,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_322 = __objc_msgSend_322Ptr.asFunction< + late final __objc_msgSend_338 = __objc_msgSend_338Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -8901,7 +9265,7 @@ class PedometerBindings { late final _sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1 = _registerName1( "stringEncodingForData:encodingOptions:convertedString:usedLossyConversion:"); - int _objc_msgSend_323( + int _objc_msgSend_339( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, @@ -8909,7 +9273,7 @@ class PedometerBindings { ffi.Pointer> string, ffi.Pointer usedLossyConversion, ) { - return __objc_msgSend_323( + return __objc_msgSend_339( obj, sel, data, @@ -8919,7 +9283,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_323Ptr = _lookup< + late final __objc_msgSend_339Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedLong Function( ffi.Pointer, @@ -8928,7 +9292,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer>, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_323 = __objc_msgSend_323Ptr.asFunction< + late final __objc_msgSend_339 = __objc_msgSend_339Ptr.asFunction< int Function( ffi.Pointer, ffi.Pointer, @@ -8940,21 +9304,21 @@ class PedometerBindings { late final _sel_propertyList1 = _registerName1("propertyList"); late final _sel_propertyListFromStringsFileFormat1 = _registerName1("propertyListFromStringsFileFormat"); - ffi.Pointer _objc_msgSend_324( + ffi.Pointer _objc_msgSend_340( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_324( + return __objc_msgSend_340( obj, sel, ); } - late final __objc_msgSend_324Ptr = _lookup< + late final __objc_msgSend_340Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_324 = __objc_msgSend_324Ptr.asFunction< + late final __objc_msgSend_340 = __objc_msgSend_340Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -8964,13 +9328,13 @@ class PedometerBindings { late final _sel_getCString_1 = _registerName1("getCString:"); late final _sel_getCString_maxLength_1 = _registerName1("getCString:maxLength:"); - void _objc_msgSend_325( + void _objc_msgSend_341( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, int maxLength, ) { - return __objc_msgSend_325( + return __objc_msgSend_341( obj, sel, bytes, @@ -8978,17 +9342,17 @@ class PedometerBindings { ); } - late final __objc_msgSend_325Ptr = _lookup< + late final __objc_msgSend_341Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_325 = __objc_msgSend_325Ptr.asFunction< + late final __objc_msgSend_341 = __objc_msgSend_341Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_getCString_maxLength_range_remainingRange_1 = _registerName1("getCString:maxLength:range:remainingRange:"); - void _objc_msgSend_326( + void _objc_msgSend_342( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, @@ -8996,7 +9360,7 @@ class PedometerBindings { _NSRange aRange, ffi.Pointer<_NSRange> leftoverRange, ) { - return __objc_msgSend_326( + return __objc_msgSend_342( obj, sel, bytes, @@ -9006,7 +9370,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_326Ptr = _lookup< + late final __objc_msgSend_342Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -9015,7 +9379,7 @@ class PedometerBindings { ffi.UnsignedLong, _NSRange, ffi.Pointer<_NSRange>)>>('objc_msgSend'); - late final __objc_msgSend_326 = __objc_msgSend_326Ptr.asFunction< + late final __objc_msgSend_342 = __objc_msgSend_342Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, _NSRange, ffi.Pointer<_NSRange>)>(); @@ -9025,14 +9389,14 @@ class PedometerBindings { _registerName1("stringWithContentsOfURL:"); late final _sel_initWithCStringNoCopy_length_freeWhenDone_1 = _registerName1("initWithCStringNoCopy:length:freeWhenDone:"); - ffi.Pointer _objc_msgSend_327( + ffi.Pointer _objc_msgSend_343( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, int length, bool freeBuffer, ) { - return __objc_msgSend_327( + return __objc_msgSend_343( obj, sel, bytes, @@ -9041,7 +9405,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_327Ptr = _lookup< + late final __objc_msgSend_343Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -9049,7 +9413,7 @@ class PedometerBindings { ffi.Pointer, ffi.UnsignedLong, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_327 = __objc_msgSend_327Ptr.asFunction< + late final __objc_msgSend_343 = __objc_msgSend_343Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, bool)>(); @@ -9060,66 +9424,66 @@ class PedometerBindings { _registerName1("stringWithCString:length:"); late final _sel_stringWithCString_1 = _registerName1("stringWithCString:"); late final _sel_getCharacters_1 = _registerName1("getCharacters:"); - void _objc_msgSend_328( + void _objc_msgSend_344( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, ) { - return __objc_msgSend_328( + return __objc_msgSend_344( obj, sel, buffer, ); } - late final __objc_msgSend_328Ptr = _lookup< + late final __objc_msgSend_344Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_328 = __objc_msgSend_328Ptr.asFunction< + late final __objc_msgSend_344 = __objc_msgSend_344Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_variantFittingPresentationWidth_1 = _registerName1("variantFittingPresentationWidth:"); - ffi.Pointer _objc_msgSend_329( + ffi.Pointer _objc_msgSend_345( ffi.Pointer obj, ffi.Pointer sel, int width, ) { - return __objc_msgSend_329( + return __objc_msgSend_345( obj, sel, width, ); } - late final __objc_msgSend_329Ptr = _lookup< + late final __objc_msgSend_345Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_329 = __objc_msgSend_329Ptr.asFunction< + late final __objc_msgSend_345 = __objc_msgSend_345Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_pathWithComponents_1 = _registerName1("pathWithComponents:"); - ffi.Pointer _objc_msgSend_330( + ffi.Pointer _objc_msgSend_346( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer components, ) { - return __objc_msgSend_330( + return __objc_msgSend_346( obj, sel, components, ); } - late final __objc_msgSend_330Ptr = _lookup< + late final __objc_msgSend_346Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_330 = __objc_msgSend_330Ptr.asFunction< + late final __objc_msgSend_346 = __objc_msgSend_346Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -9145,7 +9509,7 @@ class PedometerBindings { late final _sel_completePathIntoString_caseSensitive_matchesIntoArray_filterTypes_1 = _registerName1( "completePathIntoString:caseSensitive:matchesIntoArray:filterTypes:"); - int _objc_msgSend_331( + int _objc_msgSend_347( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> outputName, @@ -9153,7 +9517,7 @@ class PedometerBindings { ffi.Pointer> outputArray, ffi.Pointer filterTypes, ) { - return __objc_msgSend_331( + return __objc_msgSend_347( obj, sel, outputName, @@ -9163,7 +9527,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_331Ptr = _lookup< + late final __objc_msgSend_347Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedLong Function( ffi.Pointer, @@ -9172,7 +9536,7 @@ class PedometerBindings { ffi.Bool, ffi.Pointer>, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_331 = __objc_msgSend_331Ptr.asFunction< + late final __objc_msgSend_347 = __objc_msgSend_347Ptr.asFunction< int Function( ffi.Pointer, ffi.Pointer, @@ -9183,24 +9547,82 @@ class PedometerBindings { late final _sel_stringByAddingPercentEncodingWithAllowedCharacters_1 = _registerName1("stringByAddingPercentEncodingWithAllowedCharacters:"); + ffi.Pointer _objc_msgSend_348( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer allowedCharacters, + ) { + return __objc_msgSend_348( + obj, + sel, + allowedCharacters, + ); + } + + late final __objc_msgSend_348Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_348 = __objc_msgSend_348Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_stringByRemovingPercentEncoding1 = _registerName1("stringByRemovingPercentEncoding"); late final _sel_stringByAddingPercentEscapesUsingEncoding_1 = _registerName1("stringByAddingPercentEscapesUsingEncoding:"); + ffi.Pointer _objc_msgSend_349( + ffi.Pointer obj, + ffi.Pointer sel, + int enc, + ) { + return __objc_msgSend_349( + obj, + sel, + enc, + ); + } + + late final __objc_msgSend_349Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_349 = __objc_msgSend_349Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + late final _sel_stringByReplacingPercentEscapesUsingEncoding_1 = _registerName1("stringByReplacingPercentEscapesUsingEncoding:"); late final _class_NSOrthography1 = _getClass1("NSOrthography"); late final _sel_dominantScript1 = _registerName1("dominantScript"); late final _sel_languageMap1 = _registerName1("languageMap"); + ffi.Pointer _objc_msgSend_350( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_350( + obj, + sel, + ); + } + + late final __objc_msgSend_350Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_350 = __objc_msgSend_350Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_initWithDominantScript_languageMap_1 = _registerName1("initWithDominantScript:languageMap:"); - instancetype _objc_msgSend_332( + instancetype _objc_msgSend_351( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer script, ffi.Pointer map, ) { - return __objc_msgSend_332( + return __objc_msgSend_351( obj, sel, script, @@ -9208,14 +9630,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_332Ptr = _lookup< + late final __objc_msgSend_351Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_332 = __objc_msgSend_332Ptr.asFunction< + late final __objc_msgSend_351 = __objc_msgSend_351Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -9232,7 +9654,7 @@ class PedometerBindings { late final _sel_linguisticTagsInRange_scheme_options_orthography_tokenRanges_1 = _registerName1( "linguisticTagsInRange:scheme:options:orthography:tokenRanges:"); - ffi.Pointer _objc_msgSend_333( + ffi.Pointer _objc_msgSend_352( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, @@ -9241,7 +9663,7 @@ class PedometerBindings { ffi.Pointer orthography, ffi.Pointer> tokenRanges, ) { - return __objc_msgSend_333( + return __objc_msgSend_352( obj, sel, range, @@ -9252,7 +9674,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_333Ptr = _lookup< + late final __objc_msgSend_352Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -9262,7 +9684,7 @@ class PedometerBindings { ffi.Int32, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_333 = __objc_msgSend_333Ptr.asFunction< + late final __objc_msgSend_352 = __objc_msgSend_352Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -9275,7 +9697,7 @@ class PedometerBindings { late final _sel_enumerateLinguisticTagsInRange_scheme_options_orthography_usingBlock_1 = _registerName1( "enumerateLinguisticTagsInRange:scheme:options:orthography:usingBlock:"); - void _objc_msgSend_334( + void _objc_msgSend_353( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, @@ -9284,7 +9706,7 @@ class PedometerBindings { ffi.Pointer orthography, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_334( + return __objc_msgSend_353( obj, sel, range, @@ -9295,7 +9717,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_334Ptr = _lookup< + late final __objc_msgSend_353Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -9305,7 +9727,7 @@ class PedometerBindings { ffi.Int32, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_334 = __objc_msgSend_334Ptr.asFunction< + late final __objc_msgSend_353 = __objc_msgSend_353Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -9317,120 +9739,120 @@ class PedometerBindings { late final _sel_anyObject1 = _registerName1("anyObject"); late final _sel_intersectsSet_1 = _registerName1("intersectsSet:"); - bool _objc_msgSend_335( + bool _objc_msgSend_354( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherSet, ) { - return __objc_msgSend_335( + return __objc_msgSend_354( obj, sel, otherSet, ); } - late final __objc_msgSend_335Ptr = _lookup< + late final __objc_msgSend_354Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_335 = __objc_msgSend_335Ptr.asFunction< + late final __objc_msgSend_354 = __objc_msgSend_354Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_isEqualToSet_1 = _registerName1("isEqualToSet:"); late final _sel_isSubsetOfSet_1 = _registerName1("isSubsetOfSet:"); late final _sel_setByAddingObject_1 = _registerName1("setByAddingObject:"); - ffi.Pointer _objc_msgSend_336( + ffi.Pointer _objc_msgSend_355( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, ) { - return __objc_msgSend_336( + return __objc_msgSend_355( obj, sel, anObject, ); } - late final __objc_msgSend_336Ptr = _lookup< + late final __objc_msgSend_355Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_336 = __objc_msgSend_336Ptr.asFunction< + late final __objc_msgSend_355 = __objc_msgSend_355Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_setByAddingObjectsFromSet_1 = _registerName1("setByAddingObjectsFromSet:"); - ffi.Pointer _objc_msgSend_337( + ffi.Pointer _objc_msgSend_356( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_337( + return __objc_msgSend_356( obj, sel, other, ); } - late final __objc_msgSend_337Ptr = _lookup< + late final __objc_msgSend_356Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_337 = __objc_msgSend_337Ptr.asFunction< + late final __objc_msgSend_356 = __objc_msgSend_356Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_setByAddingObjectsFromArray_1 = _registerName1("setByAddingObjectsFromArray:"); - ffi.Pointer _objc_msgSend_338( + ffi.Pointer _objc_msgSend_357( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_338( + return __objc_msgSend_357( obj, sel, other, ); } - late final __objc_msgSend_338Ptr = _lookup< + late final __objc_msgSend_357Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_338 = __objc_msgSend_338Ptr.asFunction< + late final __objc_msgSend_357 = __objc_msgSend_357Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - void _objc_msgSend_339( + void _objc_msgSend_358( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_339( + return __objc_msgSend_358( obj, sel, block, ); } - late final __objc_msgSend_339Ptr = _lookup< + late final __objc_msgSend_358Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_339 = __objc_msgSend_339Ptr.asFunction< + late final __objc_msgSend_358 = __objc_msgSend_358Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - void _objc_msgSend_340( + void _objc_msgSend_359( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_340( + return __objc_msgSend_359( obj, sel, opts, @@ -9438,44 +9860,44 @@ class PedometerBindings { ); } - late final __objc_msgSend_340Ptr = _lookup< + late final __objc_msgSend_359Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_340 = __objc_msgSend_340Ptr.asFunction< + late final __objc_msgSend_359 = __objc_msgSend_359Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_objectsPassingTest_1 = _registerName1("objectsPassingTest:"); - ffi.Pointer _objc_msgSend_341( + ffi.Pointer _objc_msgSend_360( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_341( + return __objc_msgSend_360( obj, sel, predicate, ); } - late final __objc_msgSend_341Ptr = _lookup< + late final __objc_msgSend_360Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_341 = __objc_msgSend_341Ptr.asFunction< + late final __objc_msgSend_360 = __objc_msgSend_360Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_objectsWithOptions_passingTest_1 = _registerName1("objectsWithOptions:passingTest:"); - ffi.Pointer _objc_msgSend_342( + ffi.Pointer _objc_msgSend_361( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_342( + return __objc_msgSend_361( obj, sel, opts, @@ -9483,14 +9905,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_342Ptr = _lookup< + late final __objc_msgSend_361Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_342 = __objc_msgSend_342Ptr.asFunction< + late final __objc_msgSend_361 = __objc_msgSend_361Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); @@ -9500,23 +9922,23 @@ class PedometerBindings { _registerName1("setWithObjects:count:"); late final _sel_setWithObjects_1 = _registerName1("setWithObjects:"); late final _sel_setWithSet_1 = _registerName1("setWithSet:"); - instancetype _objc_msgSend_343( + instancetype _objc_msgSend_362( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer set1, ) { - return __objc_msgSend_343( + return __objc_msgSend_362( obj, sel, set1, ); } - late final __objc_msgSend_343Ptr = _lookup< + late final __objc_msgSend_362Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_343 = __objc_msgSend_343Ptr.asFunction< + late final __objc_msgSend_362 = __objc_msgSend_362Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -9524,13 +9946,13 @@ class PedometerBindings { late final _sel_initWithSet_1 = _registerName1("initWithSet:"); late final _sel_initWithSet_copyItems_1 = _registerName1("initWithSet:copyItems:"); - instancetype _objc_msgSend_344( + instancetype _objc_msgSend_363( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer set1, bool flag, ) { - return __objc_msgSend_344( + return __objc_msgSend_363( obj, sel, set1, @@ -9538,74 +9960,74 @@ class PedometerBindings { ); } - late final __objc_msgSend_344Ptr = _lookup< + late final __objc_msgSend_363Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_344 = __objc_msgSend_344Ptr.asFunction< + late final __objc_msgSend_363 = __objc_msgSend_363Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_filteredSetUsingPredicate_1 = _registerName1("filteredSetUsingPredicate:"); - ffi.Pointer _objc_msgSend_345( + ffi.Pointer _objc_msgSend_364( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer predicate, ) { - return __objc_msgSend_345( + return __objc_msgSend_364( obj, sel, predicate, ); } - late final __objc_msgSend_345Ptr = _lookup< + late final __objc_msgSend_364Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_345 = __objc_msgSend_345Ptr.asFunction< + late final __objc_msgSend_364 = __objc_msgSend_364Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_invocationWithMethodSignature_1 = _registerName1("invocationWithMethodSignature:"); - ffi.Pointer _objc_msgSend_346( + ffi.Pointer _objc_msgSend_365( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer sig, ) { - return __objc_msgSend_346( + return __objc_msgSend_365( obj, sel, sig, ); } - late final __objc_msgSend_346Ptr = _lookup< + late final __objc_msgSend_365Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_346 = __objc_msgSend_346Ptr.asFunction< + late final __objc_msgSend_365 = __objc_msgSend_365Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_methodSignature1 = _registerName1("methodSignature"); - ffi.Pointer _objc_msgSend_347( + ffi.Pointer _objc_msgSend_366( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_347( + return __objc_msgSend_366( obj, sel, ); } - late final __objc_msgSend_347Ptr = _lookup< + late final __objc_msgSend_366Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_347 = __objc_msgSend_347Ptr.asFunction< + late final __objc_msgSend_366 = __objc_msgSend_366Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -9613,63 +10035,63 @@ class PedometerBindings { late final _sel_argumentsRetained1 = _registerName1("argumentsRetained"); late final _sel_target1 = _registerName1("target"); late final _sel_setTarget_1 = _registerName1("setTarget:"); - void _objc_msgSend_348( + void _objc_msgSend_367( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_348( + return __objc_msgSend_367( obj, sel, value, ); } - late final __objc_msgSend_348Ptr = _lookup< + late final __objc_msgSend_367Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_348 = __objc_msgSend_348Ptr.asFunction< + late final __objc_msgSend_367 = __objc_msgSend_367Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_selector1 = _registerName1("selector"); - ffi.Pointer _objc_msgSend_349( + ffi.Pointer _objc_msgSend_368( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_349( + return __objc_msgSend_368( obj, sel, ); } - late final __objc_msgSend_349Ptr = _lookup< + late final __objc_msgSend_368Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_349 = __objc_msgSend_349Ptr.asFunction< + late final __objc_msgSend_368 = __objc_msgSend_368Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setSelector_1 = _registerName1("setSelector:"); - void _objc_msgSend_350( + void _objc_msgSend_369( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_350( + return __objc_msgSend_369( obj, sel, value, ); } - late final __objc_msgSend_350Ptr = _lookup< + late final __objc_msgSend_369Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_350 = __objc_msgSend_350Ptr.asFunction< + late final __objc_msgSend_369 = __objc_msgSend_369Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -9677,13 +10099,13 @@ class PedometerBindings { late final _sel_setReturnValue_1 = _registerName1("setReturnValue:"); late final _sel_getArgument_atIndex_1 = _registerName1("getArgument:atIndex:"); - void _objc_msgSend_351( + void _objc_msgSend_370( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer argumentLocation, int idx, ) { - return __objc_msgSend_351( + return __objc_msgSend_370( obj, sel, argumentLocation, @@ -9691,11 +10113,11 @@ class PedometerBindings { ); } - late final __objc_msgSend_351Ptr = _lookup< + late final __objc_msgSend_370Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_351 = __objc_msgSend_351Ptr.asFunction< + late final __objc_msgSend_370 = __objc_msgSend_370Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -9704,67 +10126,67 @@ class PedometerBindings { late final _sel_invoke1 = _registerName1("invoke"); late final _sel_invokeWithTarget_1 = _registerName1("invokeWithTarget:"); late final _sel_invokeUsingIMP_1 = _registerName1("invokeUsingIMP:"); - void _objc_msgSend_352( + void _objc_msgSend_371( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> imp, ) { - return __objc_msgSend_352( + return __objc_msgSend_371( obj, sel, imp, ); } - late final __objc_msgSend_352Ptr = _lookup< + late final __objc_msgSend_371Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>( 'objc_msgSend'); - late final __objc_msgSend_352 = __objc_msgSend_352Ptr.asFunction< + late final __objc_msgSend_371 = __objc_msgSend_371Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); late final _sel_forwardInvocation_1 = _registerName1("forwardInvocation:"); - void _objc_msgSend_353( + void _objc_msgSend_372( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anInvocation, ) { - return __objc_msgSend_353( + return __objc_msgSend_372( obj, sel, anInvocation, ); } - late final __objc_msgSend_353Ptr = _lookup< + late final __objc_msgSend_372Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_353 = __objc_msgSend_353Ptr.asFunction< + late final __objc_msgSend_372 = __objc_msgSend_372Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_methodSignatureForSelector_1 = _registerName1("methodSignatureForSelector:"); - ffi.Pointer _objc_msgSend_354( + ffi.Pointer _objc_msgSend_373( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, ) { - return __objc_msgSend_354( + return __objc_msgSend_373( obj, sel, aSelector, ); } - late final __objc_msgSend_354Ptr = _lookup< + late final __objc_msgSend_373Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_354 = __objc_msgSend_354Ptr.asFunction< + late final __objc_msgSend_373 = __objc_msgSend_373Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -9781,23 +10203,23 @@ class PedometerBindings { late final _sel_debugDescription1 = _registerName1("debugDescription"); late final _sel_version1 = _registerName1("version"); late final _sel_setVersion_1 = _registerName1("setVersion:"); - void _objc_msgSend_355( + void _objc_msgSend_374( ffi.Pointer obj, ffi.Pointer sel, int aVersion, ) { - return __objc_msgSend_355( + return __objc_msgSend_374( obj, sel, aVersion, ); } - late final __objc_msgSend_355Ptr = _lookup< + late final __objc_msgSend_374Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_355 = __objc_msgSend_355Ptr.asFunction< + late final __objc_msgSend_374 = __objc_msgSend_374Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_classForCoder1 = _registerName1("classForCoder"); @@ -9805,13 +10227,12 @@ class PedometerBindings { _registerName1("replacementObjectForCoder:"); late final _sel_awakeAfterUsingCoder_1 = _registerName1("awakeAfterUsingCoder:"); - late final _sel_poseAsClass_1 = _registerName1("poseAsClass:"); late final _sel_autoContentAccessingProxy1 = _registerName1("autoContentAccessingProxy"); late final _sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_1 = _registerName1( "attemptRecoveryFromError:optionIndex:delegate:didRecoverSelector:contextInfo:"); - void _objc_msgSend_356( + void _objc_msgSend_375( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer error, @@ -9820,7 +10241,7 @@ class PedometerBindings { ffi.Pointer didRecoverSelector, ffi.Pointer contextInfo, ) { - return __objc_msgSend_356( + return __objc_msgSend_375( obj, sel, error, @@ -9831,7 +10252,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_356Ptr = _lookup< + late final __objc_msgSend_375Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -9841,7 +10262,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_356 = __objc_msgSend_356Ptr.asFunction< + late final __objc_msgSend_375 = __objc_msgSend_375Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -9853,13 +10274,13 @@ class PedometerBindings { late final _sel_attemptRecoveryFromError_optionIndex_1 = _registerName1("attemptRecoveryFromError:optionIndex:"); - bool _objc_msgSend_357( + bool _objc_msgSend_376( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer error, int recoveryOptionIndex, ) { - return __objc_msgSend_357( + return __objc_msgSend_376( obj, sel, error, @@ -9867,17 +10288,17 @@ class PedometerBindings { ); } - late final __objc_msgSend_357Ptr = _lookup< + late final __objc_msgSend_376Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_357 = __objc_msgSend_357Ptr.asFunction< + late final __objc_msgSend_376 = __objc_msgSend_376Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_performSelector_withObject_afterDelay_inModes_1 = _registerName1("performSelector:withObject:afterDelay:inModes:"); - void _objc_msgSend_358( + void _objc_msgSend_377( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, @@ -9885,7 +10306,7 @@ class PedometerBindings { double delay, ffi.Pointer modes, ) { - return __objc_msgSend_358( + return __objc_msgSend_377( obj, sel, aSelector, @@ -9895,7 +10316,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_358Ptr = _lookup< + late final __objc_msgSend_377Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -9904,7 +10325,7 @@ class PedometerBindings { ffi.Pointer, ffi.Double, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_358 = __objc_msgSend_358Ptr.asFunction< + late final __objc_msgSend_377 = __objc_msgSend_377Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -9915,14 +10336,14 @@ class PedometerBindings { late final _sel_performSelector_withObject_afterDelay_1 = _registerName1("performSelector:withObject:afterDelay:"); - void _objc_msgSend_359( + void _objc_msgSend_378( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, ffi.Pointer anArgument, double delay, ) { - return __objc_msgSend_359( + return __objc_msgSend_378( obj, sel, aSelector, @@ -9931,7 +10352,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_359Ptr = _lookup< + late final __objc_msgSend_378Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -9939,118 +10360,40 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_359 = __objc_msgSend_359Ptr.asFunction< + late final __objc_msgSend_378 = __objc_msgSend_378Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, double)>(); - late final _sel_URL_resourceDataDidBecomeAvailable_1 = - _registerName1("URL:resourceDataDidBecomeAvailable:"); - void _objc_msgSend_360( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer sender, - ffi.Pointer newBytes, - ) { - return __objc_msgSend_360( - obj, - sel, - sender, - newBytes, - ); - } - - late final __objc_msgSend_360Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_360 = __objc_msgSend_360Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_URLResourceDidFinishLoading_1 = - _registerName1("URLResourceDidFinishLoading:"); - void _objc_msgSend_361( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer sender, - ) { - return __objc_msgSend_361( - obj, - sel, - sender, - ); - } - - late final __objc_msgSend_361Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_361 = __objc_msgSend_361Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_URLResourceDidCancelLoading_1 = - _registerName1("URLResourceDidCancelLoading:"); - late final _sel_URL_resourceDidFailLoadingWithReason_1 = - _registerName1("URL:resourceDidFailLoadingWithReason:"); - void _objc_msgSend_362( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer sender, - ffi.Pointer reason, - ) { - return __objc_msgSend_362( - obj, - sel, - sender, - reason, - ); - } - - late final __objc_msgSend_362Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_362 = __objc_msgSend_362Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - late final _class_NSFileManager1 = _getClass1("NSFileManager"); late final _sel_defaultManager1 = _registerName1("defaultManager"); - ffi.Pointer _objc_msgSend_363( + ffi.Pointer _objc_msgSend_379( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_363( + return __objc_msgSend_379( obj, sel, ); } - late final __objc_msgSend_363Ptr = _lookup< + late final __objc_msgSend_379Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_363 = __objc_msgSend_363Ptr.asFunction< + late final __objc_msgSend_379 = __objc_msgSend_379Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_mountedVolumeURLsIncludingResourceValuesForKeys_options_1 = _registerName1( "mountedVolumeURLsIncludingResourceValuesForKeys:options:"); - ffi.Pointer _objc_msgSend_364( + ffi.Pointer _objc_msgSend_380( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer propertyKeys, int options, ) { - return __objc_msgSend_364( + return __objc_msgSend_380( obj, sel, propertyKeys, @@ -10058,27 +10401,27 @@ class PedometerBindings { ); } - late final __objc_msgSend_364Ptr = _lookup< + late final __objc_msgSend_380Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_364 = __objc_msgSend_364Ptr.asFunction< + late final __objc_msgSend_380 = __objc_msgSend_380Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_unmountVolumeAtURL_options_completionHandler_1 = _registerName1("unmountVolumeAtURL:options:completionHandler:"); - void _objc_msgSend_365( + void _objc_msgSend_381( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, int mask, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_365( + return __objc_msgSend_381( obj, sel, url, @@ -10087,7 +10430,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_365Ptr = _lookup< + late final __objc_msgSend_381Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -10095,14 +10438,14 @@ class PedometerBindings { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_365 = __objc_msgSend_365Ptr.asFunction< + late final __objc_msgSend_381 = __objc_msgSend_381Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_contentsOfDirectoryAtURL_includingPropertiesForKeys_options_error_1 = _registerName1( "contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error:"); - ffi.Pointer _objc_msgSend_366( + ffi.Pointer _objc_msgSend_382( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, @@ -10110,7 +10453,7 @@ class PedometerBindings { int mask, ffi.Pointer> error, ) { - return __objc_msgSend_366( + return __objc_msgSend_382( obj, sel, url, @@ -10120,7 +10463,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_366Ptr = _lookup< + late final __objc_msgSend_382Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -10129,7 +10472,7 @@ class PedometerBindings { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_366 = __objc_msgSend_366Ptr.asFunction< + late final __objc_msgSend_382 = __objc_msgSend_382Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -10140,13 +10483,13 @@ class PedometerBindings { late final _sel_URLsForDirectory_inDomains_1 = _registerName1("URLsForDirectory:inDomains:"); - ffi.Pointer _objc_msgSend_367( + ffi.Pointer _objc_msgSend_383( ffi.Pointer obj, ffi.Pointer sel, int directory, int domainMask, ) { - return __objc_msgSend_367( + return __objc_msgSend_383( obj, sel, directory, @@ -10154,18 +10497,18 @@ class PedometerBindings { ); } - late final __objc_msgSend_367Ptr = _lookup< + late final __objc_msgSend_383Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_367 = __objc_msgSend_367Ptr.asFunction< + late final __objc_msgSend_383 = __objc_msgSend_383Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int, int)>(); late final _sel_URLForDirectory_inDomain_appropriateForURL_create_error_1 = _registerName1( "URLForDirectory:inDomain:appropriateForURL:create:error:"); - ffi.Pointer _objc_msgSend_368( + ffi.Pointer _objc_msgSend_384( ffi.Pointer obj, ffi.Pointer sel, int directory, @@ -10174,7 +10517,7 @@ class PedometerBindings { bool shouldCreate, ffi.Pointer> error, ) { - return __objc_msgSend_368( + return __objc_msgSend_384( obj, sel, directory, @@ -10185,7 +10528,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_368Ptr = _lookup< + late final __objc_msgSend_384Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -10195,7 +10538,7 @@ class PedometerBindings { ffi.Pointer, ffi.Bool, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_368 = __objc_msgSend_368Ptr.asFunction< + late final __objc_msgSend_384 = __objc_msgSend_384Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -10207,7 +10550,7 @@ class PedometerBindings { late final _sel_getRelationship_ofDirectoryAtURL_toItemAtURL_error_1 = _registerName1("getRelationship:ofDirectoryAtURL:toItemAtURL:error:"); - bool _objc_msgSend_369( + bool _objc_msgSend_385( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer outRelationship, @@ -10215,7 +10558,7 @@ class PedometerBindings { ffi.Pointer otherURL, ffi.Pointer> error, ) { - return __objc_msgSend_369( + return __objc_msgSend_385( obj, sel, outRelationship, @@ -10225,7 +10568,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_369Ptr = _lookup< + late final __objc_msgSend_385Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -10234,7 +10577,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_369 = __objc_msgSend_369Ptr.asFunction< + late final __objc_msgSend_385 = __objc_msgSend_385Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -10245,7 +10588,7 @@ class PedometerBindings { late final _sel_getRelationship_ofDirectory_inDomain_toItemAtURL_error_1 = _registerName1("getRelationship:ofDirectory:inDomain:toItemAtURL:error:"); - bool _objc_msgSend_370( + bool _objc_msgSend_386( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer outRelationship, @@ -10254,7 +10597,7 @@ class PedometerBindings { ffi.Pointer url, ffi.Pointer> error, ) { - return __objc_msgSend_370( + return __objc_msgSend_386( obj, sel, outRelationship, @@ -10265,7 +10608,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_370Ptr = _lookup< + late final __objc_msgSend_386Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -10275,7 +10618,7 @@ class PedometerBindings { ffi.Int32, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_370 = __objc_msgSend_370Ptr.asFunction< + late final __objc_msgSend_386 = __objc_msgSend_386Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -10288,7 +10631,7 @@ class PedometerBindings { late final _sel_createDirectoryAtURL_withIntermediateDirectories_attributes_error_1 = _registerName1( "createDirectoryAtURL:withIntermediateDirectories:attributes:error:"); - bool _objc_msgSend_371( + bool _objc_msgSend_387( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, @@ -10296,7 +10639,7 @@ class PedometerBindings { ffi.Pointer attributes, ffi.Pointer> error, ) { - return __objc_msgSend_371( + return __objc_msgSend_387( obj, sel, url, @@ -10306,7 +10649,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_371Ptr = _lookup< + late final __objc_msgSend_387Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -10315,7 +10658,7 @@ class PedometerBindings { ffi.Bool, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_371 = __objc_msgSend_371Ptr.asFunction< + late final __objc_msgSend_387 = __objc_msgSend_387Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -10326,14 +10669,14 @@ class PedometerBindings { late final _sel_createSymbolicLinkAtURL_withDestinationURL_error_1 = _registerName1("createSymbolicLinkAtURL:withDestinationURL:error:"); - bool _objc_msgSend_372( + bool _objc_msgSend_388( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer destURL, ffi.Pointer> error, ) { - return __objc_msgSend_372( + return __objc_msgSend_388( obj, sel, url, @@ -10342,7 +10685,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_372Ptr = _lookup< + late final __objc_msgSend_388Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -10350,7 +10693,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_372 = __objc_msgSend_372Ptr.asFunction< + late final __objc_msgSend_388 = __objc_msgSend_388Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -10362,14 +10705,14 @@ class PedometerBindings { late final _sel_setDelegate_1 = _registerName1("setDelegate:"); late final _sel_setAttributes_ofItemAtPath_error_1 = _registerName1("setAttributes:ofItemAtPath:error:"); - bool _objc_msgSend_373( + bool _objc_msgSend_389( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attributes, ffi.Pointer path, ffi.Pointer> error, ) { - return __objc_msgSend_373( + return __objc_msgSend_389( obj, sel, attributes, @@ -10378,7 +10721,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_373Ptr = _lookup< + late final __objc_msgSend_389Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -10386,7 +10729,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_373 = __objc_msgSend_373Ptr.asFunction< + late final __objc_msgSend_389 = __objc_msgSend_389Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -10397,7 +10740,7 @@ class PedometerBindings { late final _sel_createDirectoryAtPath_withIntermediateDirectories_attributes_error_1 = _registerName1( "createDirectoryAtPath:withIntermediateDirectories:attributes:error:"); - bool _objc_msgSend_374( + bool _objc_msgSend_390( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, @@ -10405,7 +10748,7 @@ class PedometerBindings { ffi.Pointer attributes, ffi.Pointer> error, ) { - return __objc_msgSend_374( + return __objc_msgSend_390( obj, sel, path, @@ -10415,7 +10758,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_374Ptr = _lookup< + late final __objc_msgSend_390Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -10424,7 +10767,7 @@ class PedometerBindings { ffi.Bool, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_374 = __objc_msgSend_374Ptr.asFunction< + late final __objc_msgSend_390 = __objc_msgSend_390Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -10435,13 +10778,13 @@ class PedometerBindings { late final _sel_contentsOfDirectoryAtPath_error_1 = _registerName1("contentsOfDirectoryAtPath:error:"); - ffi.Pointer _objc_msgSend_375( + ffi.Pointer _objc_msgSend_391( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer> error, ) { - return __objc_msgSend_375( + return __objc_msgSend_391( obj, sel, path, @@ -10449,14 +10792,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_375Ptr = _lookup< + late final __objc_msgSend_391Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_375 = __objc_msgSend_375Ptr.asFunction< + late final __objc_msgSend_391 = __objc_msgSend_391Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -10467,13 +10810,13 @@ class PedometerBindings { _registerName1("subpathsOfDirectoryAtPath:error:"); late final _sel_attributesOfItemAtPath_error_1 = _registerName1("attributesOfItemAtPath:error:"); - ffi.Pointer _objc_msgSend_376( + ffi.Pointer _objc_msgSend_392( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer> error, ) { - return __objc_msgSend_376( + return __objc_msgSend_392( obj, sel, path, @@ -10481,14 +10824,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_376Ptr = _lookup< + late final __objc_msgSend_392Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_376 = __objc_msgSend_376Ptr.asFunction< + late final __objc_msgSend_392 = __objc_msgSend_392Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -10499,14 +10842,14 @@ class PedometerBindings { _registerName1("attributesOfFileSystemForPath:error:"); late final _sel_createSymbolicLinkAtPath_withDestinationPath_error_1 = _registerName1("createSymbolicLinkAtPath:withDestinationPath:error:"); - bool _objc_msgSend_377( + bool _objc_msgSend_393( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer destPath, ffi.Pointer> error, ) { - return __objc_msgSend_377( + return __objc_msgSend_393( obj, sel, path, @@ -10515,7 +10858,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_377Ptr = _lookup< + late final __objc_msgSend_393Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -10523,7 +10866,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_377 = __objc_msgSend_377Ptr.asFunction< + late final __objc_msgSend_393 = __objc_msgSend_393Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -10533,13 +10876,13 @@ class PedometerBindings { late final _sel_destinationOfSymbolicLinkAtPath_error_1 = _registerName1("destinationOfSymbolicLinkAtPath:error:"); - ffi.Pointer _objc_msgSend_378( + ffi.Pointer _objc_msgSend_394( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer> error, ) { - return __objc_msgSend_378( + return __objc_msgSend_394( obj, sel, path, @@ -10547,14 +10890,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_378Ptr = _lookup< + late final __objc_msgSend_394Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_378 = __objc_msgSend_378Ptr.asFunction< + late final __objc_msgSend_394 = __objc_msgSend_394Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -10569,13 +10912,13 @@ class PedometerBindings { _registerName1("linkItemAtPath:toPath:error:"); late final _sel_removeItemAtPath_error_1 = _registerName1("removeItemAtPath:error:"); - bool _objc_msgSend_379( + bool _objc_msgSend_395( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer> error, ) { - return __objc_msgSend_379( + return __objc_msgSend_395( obj, sel, path, @@ -10583,14 +10926,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_379Ptr = _lookup< + late final __objc_msgSend_395Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_379 = __objc_msgSend_379Ptr.asFunction< + late final __objc_msgSend_395 = __objc_msgSend_395Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); @@ -10604,14 +10947,14 @@ class PedometerBindings { _registerName1("removeItemAtURL:error:"); late final _sel_trashItemAtURL_resultingItemURL_error_1 = _registerName1("trashItemAtURL:resultingItemURL:error:"); - bool _objc_msgSend_380( + bool _objc_msgSend_396( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer> outResultingURL, ffi.Pointer> error, ) { - return __objc_msgSend_380( + return __objc_msgSend_396( obj, sel, url, @@ -10620,7 +10963,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_380Ptr = _lookup< + late final __objc_msgSend_396Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -10628,7 +10971,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_380 = __objc_msgSend_380Ptr.asFunction< + late final __objc_msgSend_396 = __objc_msgSend_396Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -10638,13 +10981,13 @@ class PedometerBindings { late final _sel_fileAttributesAtPath_traverseLink_1 = _registerName1("fileAttributesAtPath:traverseLink:"); - ffi.Pointer _objc_msgSend_381( + ffi.Pointer _objc_msgSend_397( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, bool yorn, ) { - return __objc_msgSend_381( + return __objc_msgSend_397( obj, sel, path, @@ -10652,26 +10995,26 @@ class PedometerBindings { ); } - late final __objc_msgSend_381Ptr = _lookup< + late final __objc_msgSend_397Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_381 = __objc_msgSend_381Ptr.asFunction< + late final __objc_msgSend_397 = __objc_msgSend_397Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_changeFileAttributes_atPath_1 = _registerName1("changeFileAttributes:atPath:"); - bool _objc_msgSend_382( + bool _objc_msgSend_398( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attributes, ffi.Pointer path, ) { - return __objc_msgSend_382( + return __objc_msgSend_398( obj, sel, attributes, @@ -10679,14 +11022,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_382Ptr = _lookup< + late final __objc_msgSend_398Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_382 = __objc_msgSend_382Ptr.asFunction< + late final __objc_msgSend_398 = __objc_msgSend_398Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -10698,13 +11041,13 @@ class PedometerBindings { _registerName1("pathContentOfSymbolicLinkAtPath:"); late final _sel_createSymbolicLinkAtPath_pathContent_1 = _registerName1("createSymbolicLinkAtPath:pathContent:"); - bool _objc_msgSend_383( + bool _objc_msgSend_399( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer otherpath, ) { - return __objc_msgSend_383( + return __objc_msgSend_399( obj, sel, path, @@ -10712,26 +11055,26 @@ class PedometerBindings { ); } - late final __objc_msgSend_383Ptr = _lookup< + late final __objc_msgSend_399Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_383 = __objc_msgSend_383Ptr.asFunction< + late final __objc_msgSend_399 = __objc_msgSend_399Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_createDirectoryAtPath_attributes_1 = _registerName1("createDirectoryAtPath:attributes:"); - bool _objc_msgSend_384( + bool _objc_msgSend_400( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer attributes, ) { - return __objc_msgSend_384( + return __objc_msgSend_400( obj, sel, path, @@ -10739,79 +11082,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_384Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_384 = __objc_msgSend_384Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_linkPath_toPath_handler_1 = - _registerName1("linkPath:toPath:handler:"); - bool _objc_msgSend_385( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer src, - ffi.Pointer dest, - ffi.Pointer handler, - ) { - return __objc_msgSend_385( - obj, - sel, - src, - dest, - handler, - ); - } - - late final __objc_msgSend_385Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_385 = __objc_msgSend_385Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_copyPath_toPath_handler_1 = - _registerName1("copyPath:toPath:handler:"); - late final _sel_movePath_toPath_handler_1 = - _registerName1("movePath:toPath:handler:"); - late final _sel_removeFileAtPath_handler_1 = - _registerName1("removeFileAtPath:handler:"); - bool _objc_msgSend_386( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - ffi.Pointer handler, - ) { - return __objc_msgSend_386( - obj, - sel, - path, - handler, - ); - } - - late final __objc_msgSend_386Ptr = _lookup< + late final __objc_msgSend_400Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_386 = __objc_msgSend_386Ptr.asFunction< + late final __objc_msgSend_400 = __objc_msgSend_400Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -10822,13 +11100,13 @@ class PedometerBindings { late final _sel_fileExistsAtPath_1 = _registerName1("fileExistsAtPath:"); late final _sel_fileExistsAtPath_isDirectory_1 = _registerName1("fileExistsAtPath:isDirectory:"); - bool _objc_msgSend_387( + bool _objc_msgSend_401( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer isDirectory, ) { - return __objc_msgSend_387( + return __objc_msgSend_401( obj, sel, path, @@ -10836,11 +11114,11 @@ class PedometerBindings { ); } - late final __objc_msgSend_387Ptr = _lookup< + late final __objc_msgSend_401Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_387 = __objc_msgSend_387Ptr.asFunction< + late final __objc_msgSend_401 = __objc_msgSend_401Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -10861,7 +11139,7 @@ class PedometerBindings { late final _sel_enumeratorAtURL_includingPropertiesForKeys_options_errorHandler_1 = _registerName1( "enumeratorAtURL:includingPropertiesForKeys:options:errorHandler:"); - ffi.Pointer _objc_msgSend_388( + ffi.Pointer _objc_msgSend_402( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, @@ -10869,7 +11147,7 @@ class PedometerBindings { int mask, ffi.Pointer<_ObjCBlock> handler, ) { - return __objc_msgSend_388( + return __objc_msgSend_402( obj, sel, url, @@ -10879,7 +11157,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_388Ptr = _lookup< + late final __objc_msgSend_402Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -10888,7 +11166,7 @@ class PedometerBindings { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_388 = __objc_msgSend_388Ptr.asFunction< + late final __objc_msgSend_402 = __objc_msgSend_402Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -10899,36 +11177,36 @@ class PedometerBindings { late final _sel_subpathsAtPath_1 = _registerName1("subpathsAtPath:"); late final _sel_contentsAtPath_1 = _registerName1("contentsAtPath:"); - ffi.Pointer _objc_msgSend_389( + ffi.Pointer _objc_msgSend_403( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ) { - return __objc_msgSend_389( + return __objc_msgSend_403( obj, sel, path, ); } - late final __objc_msgSend_389Ptr = _lookup< + late final __objc_msgSend_403Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_389 = __objc_msgSend_389Ptr.asFunction< + late final __objc_msgSend_403 = __objc_msgSend_403Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_createFileAtPath_contents_attributes_1 = _registerName1("createFileAtPath:contents:attributes:"); - bool _objc_msgSend_390( + bool _objc_msgSend_404( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer data, ffi.Pointer attr, ) { - return __objc_msgSend_390( + return __objc_msgSend_404( obj, sel, path, @@ -10937,7 +11215,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_390Ptr = _lookup< + late final __objc_msgSend_404Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -10945,7 +11223,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_390 = __objc_msgSend_390Ptr.asFunction< + late final __objc_msgSend_404 = __objc_msgSend_404Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -10955,35 +11233,35 @@ class PedometerBindings { late final _sel_fileSystemRepresentationWithPath_1 = _registerName1("fileSystemRepresentationWithPath:"); - ffi.Pointer _objc_msgSend_391( + ffi.Pointer _objc_msgSend_405( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ) { - return __objc_msgSend_391( + return __objc_msgSend_405( obj, sel, path, ); } - late final __objc_msgSend_391Ptr = _lookup< + late final __objc_msgSend_405Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_391 = __objc_msgSend_391Ptr.asFunction< + late final __objc_msgSend_405 = __objc_msgSend_405Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_stringWithFileSystemRepresentation_length_1 = _registerName1("stringWithFileSystemRepresentation:length:"); - ffi.Pointer _objc_msgSend_392( + ffi.Pointer _objc_msgSend_406( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer str, int len, ) { - return __objc_msgSend_392( + return __objc_msgSend_406( obj, sel, str, @@ -10991,21 +11269,21 @@ class PedometerBindings { ); } - late final __objc_msgSend_392Ptr = _lookup< + late final __objc_msgSend_406Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_392 = __objc_msgSend_392Ptr.asFunction< + late final __objc_msgSend_406 = __objc_msgSend_406Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_replaceItemAtURL_withItemAtURL_backupItemName_options_resultingItemURL_error_1 = _registerName1( "replaceItemAtURL:withItemAtURL:backupItemName:options:resultingItemURL:error:"); - bool _objc_msgSend_393( + bool _objc_msgSend_407( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer originalItemURL, @@ -11015,7 +11293,7 @@ class PedometerBindings { ffi.Pointer> resultingURL, ffi.Pointer> error, ) { - return __objc_msgSend_393( + return __objc_msgSend_407( obj, sel, originalItemURL, @@ -11027,7 +11305,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_393Ptr = _lookup< + late final __objc_msgSend_407Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -11038,7 +11316,7 @@ class PedometerBindings { ffi.Int32, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_393 = __objc_msgSend_393Ptr.asFunction< + late final __objc_msgSend_407 = __objc_msgSend_407Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -11051,7 +11329,7 @@ class PedometerBindings { late final _sel_setUbiquitous_itemAtURL_destinationURL_error_1 = _registerName1("setUbiquitous:itemAtURL:destinationURL:error:"); - bool _objc_msgSend_394( + bool _objc_msgSend_408( ffi.Pointer obj, ffi.Pointer sel, bool flag, @@ -11059,7 +11337,7 @@ class PedometerBindings { ffi.Pointer destinationURL, ffi.Pointer> error, ) { - return __objc_msgSend_394( + return __objc_msgSend_408( obj, sel, flag, @@ -11069,7 +11347,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_394Ptr = _lookup< + late final __objc_msgSend_408Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -11078,7 +11356,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_394 = __objc_msgSend_394Ptr.asFunction< + late final __objc_msgSend_408 = __objc_msgSend_408Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -11089,23 +11367,23 @@ class PedometerBindings { late final _sel_isUbiquitousItemAtURL_1 = _registerName1("isUbiquitousItemAtURL:"); - bool _objc_msgSend_395( + bool _objc_msgSend_409( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_395( + return __objc_msgSend_409( obj, sel, url, ); } - late final __objc_msgSend_395Ptr = _lookup< + late final __objc_msgSend_409Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_395 = __objc_msgSend_395Ptr.asFunction< + late final __objc_msgSend_409 = __objc_msgSend_409Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -11115,17 +11393,37 @@ class PedometerBindings { _registerName1("evictUbiquitousItemAtURL:error:"); late final _sel_URLForUbiquityContainerIdentifier_1 = _registerName1("URLForUbiquityContainerIdentifier:"); + ffi.Pointer _objc_msgSend_410( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer containerIdentifier, + ) { + return __objc_msgSend_410( + obj, + sel, + containerIdentifier, + ); + } + + late final __objc_msgSend_410Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_410 = __objc_msgSend_410Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_URLForPublishingUbiquitousItemAtURL_expirationDate_error_1 = _registerName1( "URLForPublishingUbiquitousItemAtURL:expirationDate:error:"); - ffi.Pointer _objc_msgSend_396( + ffi.Pointer _objc_msgSend_411( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer> outDate, ffi.Pointer> error, ) { - return __objc_msgSend_396( + return __objc_msgSend_411( obj, sel, url, @@ -11134,7 +11432,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_396Ptr = _lookup< + late final __objc_msgSend_411Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -11142,7 +11440,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_396 = __objc_msgSend_396Ptr.asFunction< + late final __objc_msgSend_411 = __objc_msgSend_411Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -11154,13 +11452,13 @@ class PedometerBindings { _registerName1("ubiquityIdentityToken"); late final _sel_getFileProviderServicesForItemAtURL_completionHandler_1 = _registerName1("getFileProviderServicesForItemAtURL:completionHandler:"); - void _objc_msgSend_397( + void _objc_msgSend_412( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_397( + return __objc_msgSend_412( obj, sel, url, @@ -11168,14 +11466,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_397Ptr = _lookup< + late final __objc_msgSend_412Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_397 = __objc_msgSend_397Ptr.asFunction< + late final __objc_msgSend_412 = __objc_msgSend_412Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); @@ -11183,18 +11481,36 @@ class PedometerBindings { _registerName1("containerURLForSecurityApplicationGroupIdentifier:"); late final _sel_homeDirectoryForCurrentUser1 = _registerName1("homeDirectoryForCurrentUser"); + ffi.Pointer _objc_msgSend_413( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_413( + obj, + sel, + ); + } + + late final __objc_msgSend_413Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_413 = __objc_msgSend_413Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_temporaryDirectory1 = _registerName1("temporaryDirectory"); late final _sel_homeDirectoryForUser_1 = _registerName1("homeDirectoryForUser:"); late final _sel_fileManager_shouldProceedAfterError_1 = _registerName1("fileManager:shouldProceedAfterError:"); - bool _objc_msgSend_398( + bool _objc_msgSend_414( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer fm, ffi.Pointer errorInfo, ) { - return __objc_msgSend_398( + return __objc_msgSend_414( obj, sel, fm, @@ -11202,26 +11518,26 @@ class PedometerBindings { ); } - late final __objc_msgSend_398Ptr = _lookup< + late final __objc_msgSend_414Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_398 = __objc_msgSend_398Ptr.asFunction< + late final __objc_msgSend_414 = __objc_msgSend_414Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_fileManager_willProcessPath_1 = _registerName1("fileManager:willProcessPath:"); - void _objc_msgSend_399( + void _objc_msgSend_415( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer fm, ffi.Pointer path, ) { - return __objc_msgSend_399( + return __objc_msgSend_415( obj, sel, fm, @@ -11229,14 +11545,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_399Ptr = _lookup< + late final __objc_msgSend_415Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_399 = __objc_msgSend_399Ptr.asFunction< + late final __objc_msgSend_415 = __objc_msgSend_415Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -11246,13 +11562,13 @@ class PedometerBindings { late final _sel_addObject_1 = _registerName1("addObject:"); late final _sel_insertObject_atIndex_1 = _registerName1("insertObject:atIndex:"); - void _objc_msgSend_400( + void _objc_msgSend_416( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, int index, ) { - return __objc_msgSend_400( + return __objc_msgSend_416( obj, sel, anObject, @@ -11260,45 +11576,45 @@ class PedometerBindings { ); } - late final __objc_msgSend_400Ptr = _lookup< + late final __objc_msgSend_416Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_400 = __objc_msgSend_400Ptr.asFunction< + late final __objc_msgSend_416 = __objc_msgSend_416Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_removeLastObject1 = _registerName1("removeLastObject"); late final _sel_removeObjectAtIndex_1 = _registerName1("removeObjectAtIndex:"); - void _objc_msgSend_401( + void _objc_msgSend_417( ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_401( + return __objc_msgSend_417( obj, sel, index, ); } - late final __objc_msgSend_401Ptr = _lookup< + late final __objc_msgSend_417Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_401 = __objc_msgSend_401Ptr.asFunction< + late final __objc_msgSend_417 = __objc_msgSend_417Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_replaceObjectAtIndex_withObject_1 = _registerName1("replaceObjectAtIndex:withObject:"); - void _objc_msgSend_402( + void _objc_msgSend_418( ffi.Pointer obj, ffi.Pointer sel, int index, ffi.Pointer anObject, ) { - return __objc_msgSend_402( + return __objc_msgSend_418( obj, sel, index, @@ -11306,46 +11622,46 @@ class PedometerBindings { ); } - late final __objc_msgSend_402Ptr = _lookup< + late final __objc_msgSend_418Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_402 = __objc_msgSend_402Ptr.asFunction< + late final __objc_msgSend_418 = __objc_msgSend_418Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_initWithCapacity_1 = _registerName1("initWithCapacity:"); late final _sel_addObjectsFromArray_1 = _registerName1("addObjectsFromArray:"); - void _objc_msgSend_403( + void _objc_msgSend_419( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherArray, ) { - return __objc_msgSend_403( + return __objc_msgSend_419( obj, sel, otherArray, ); } - late final __objc_msgSend_403Ptr = _lookup< + late final __objc_msgSend_419Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_403 = __objc_msgSend_403Ptr.asFunction< + late final __objc_msgSend_419 = __objc_msgSend_419Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_exchangeObjectAtIndex_withObjectAtIndex_1 = _registerName1("exchangeObjectAtIndex:withObjectAtIndex:"); - void _objc_msgSend_404( + void _objc_msgSend_420( ffi.Pointer obj, ffi.Pointer sel, int idx1, int idx2, ) { - return __objc_msgSend_404( + return __objc_msgSend_420( obj, sel, idx1, @@ -11353,23 +11669,23 @@ class PedometerBindings { ); } - late final __objc_msgSend_404Ptr = _lookup< + late final __objc_msgSend_420Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_404 = __objc_msgSend_404Ptr.asFunction< + late final __objc_msgSend_420 = __objc_msgSend_420Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, int)>(); late final _sel_removeAllObjects1 = _registerName1("removeAllObjects"); late final _sel_removeObject_inRange_1 = _registerName1("removeObject:inRange:"); - void _objc_msgSend_405( + void _objc_msgSend_421( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, _NSRange range, ) { - return __objc_msgSend_405( + return __objc_msgSend_421( obj, sel, anObject, @@ -11377,11 +11693,11 @@ class PedometerBindings { ); } - late final __objc_msgSend_405Ptr = _lookup< + late final __objc_msgSend_421Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_405 = __objc_msgSend_405Ptr.asFunction< + late final __objc_msgSend_421 = __objc_msgSend_421Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange)>(); @@ -11392,13 +11708,13 @@ class PedometerBindings { _registerName1("removeObjectIdenticalTo:"); late final _sel_removeObjectsFromIndices_numIndices_1 = _registerName1("removeObjectsFromIndices:numIndices:"); - void _objc_msgSend_406( + void _objc_msgSend_422( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indices, int cnt, ) { - return __objc_msgSend_406( + return __objc_msgSend_422( obj, sel, indices, @@ -11406,14 +11722,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_406Ptr = _lookup< + late final __objc_msgSend_422Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_406 = __objc_msgSend_406Ptr.asFunction< + late final __objc_msgSend_422 = __objc_msgSend_422Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -11421,35 +11737,35 @@ class PedometerBindings { _registerName1("removeObjectsInArray:"); late final _sel_removeObjectsInRange_1 = _registerName1("removeObjectsInRange:"); - void _objc_msgSend_407( + void _objc_msgSend_423( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ) { - return __objc_msgSend_407( + return __objc_msgSend_423( obj, sel, range, ); } - late final __objc_msgSend_407Ptr = _lookup< + late final __objc_msgSend_423Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_407 = __objc_msgSend_407Ptr.asFunction< + late final __objc_msgSend_423 = __objc_msgSend_423Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_replaceObjectsInRange_withObjectsFromArray_range_1 = _registerName1("replaceObjectsInRange:withObjectsFromArray:range:"); - void _objc_msgSend_408( + void _objc_msgSend_424( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer otherArray, _NSRange otherRange, ) { - return __objc_msgSend_408( + return __objc_msgSend_424( obj, sel, range, @@ -11458,23 +11774,23 @@ class PedometerBindings { ); } - late final __objc_msgSend_408Ptr = _lookup< + late final __objc_msgSend_424Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_408 = __objc_msgSend_408Ptr.asFunction< + late final __objc_msgSend_424 = __objc_msgSend_424Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer, _NSRange)>(); late final _sel_replaceObjectsInRange_withObjectsFromArray_1 = _registerName1("replaceObjectsInRange:withObjectsFromArray:"); - void _objc_msgSend_409( + void _objc_msgSend_425( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer otherArray, ) { - return __objc_msgSend_409( + return __objc_msgSend_425( obj, sel, range, @@ -11482,18 +11798,18 @@ class PedometerBindings { ); } - late final __objc_msgSend_409Ptr = _lookup< + late final __objc_msgSend_425Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_409 = __objc_msgSend_409Ptr.asFunction< + late final __objc_msgSend_425 = __objc_msgSend_425Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_setArray_1 = _registerName1("setArray:"); late final _sel_sortUsingFunction_context_1 = _registerName1("sortUsingFunction:context:"); - void _objc_msgSend_410( + void _objc_msgSend_426( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< @@ -11503,7 +11819,7 @@ class PedometerBindings { compare, ffi.Pointer context, ) { - return __objc_msgSend_410( + return __objc_msgSend_426( obj, sel, compare, @@ -11511,7 +11827,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_410Ptr = _lookup< + late final __objc_msgSend_426Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -11521,7 +11837,7 @@ class PedometerBindings { ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_410 = __objc_msgSend_410Ptr.asFunction< + late final __objc_msgSend_426 = __objc_msgSend_426Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -11534,13 +11850,13 @@ class PedometerBindings { late final _sel_sortUsingSelector_1 = _registerName1("sortUsingSelector:"); late final _sel_insertObjects_atIndexes_1 = _registerName1("insertObjects:atIndexes:"); - void _objc_msgSend_411( + void _objc_msgSend_427( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer objects, ffi.Pointer indexes, ) { - return __objc_msgSend_411( + return __objc_msgSend_427( obj, sel, objects, @@ -11548,48 +11864,48 @@ class PedometerBindings { ); } - late final __objc_msgSend_411Ptr = _lookup< + late final __objc_msgSend_427Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_411 = __objc_msgSend_411Ptr.asFunction< + late final __objc_msgSend_427 = __objc_msgSend_427Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_removeObjectsAtIndexes_1 = _registerName1("removeObjectsAtIndexes:"); - void _objc_msgSend_412( + void _objc_msgSend_428( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexes, ) { - return __objc_msgSend_412( + return __objc_msgSend_428( obj, sel, indexes, ); } - late final __objc_msgSend_412Ptr = _lookup< + late final __objc_msgSend_428Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_412 = __objc_msgSend_412Ptr.asFunction< + late final __objc_msgSend_428 = __objc_msgSend_428Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_replaceObjectsAtIndexes_withObjects_1 = _registerName1("replaceObjectsAtIndexes:withObjects:"); - void _objc_msgSend_413( + void _objc_msgSend_429( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexes, ffi.Pointer objects, ) { - return __objc_msgSend_413( + return __objc_msgSend_429( obj, sel, indexes, @@ -11597,14 +11913,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_413Ptr = _lookup< + late final __objc_msgSend_429Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_413 = __objc_msgSend_413Ptr.asFunction< + late final __objc_msgSend_429 = __objc_msgSend_429Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -11612,35 +11928,35 @@ class PedometerBindings { _registerName1("setObject:atIndexedSubscript:"); late final _sel_sortUsingComparator_1 = _registerName1("sortUsingComparator:"); - void _objc_msgSend_414( + void _objc_msgSend_430( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> cmptr, ) { - return __objc_msgSend_414( + return __objc_msgSend_430( obj, sel, cmptr, ); } - late final __objc_msgSend_414Ptr = _lookup< + late final __objc_msgSend_430Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_414 = __objc_msgSend_414Ptr.asFunction< + late final __objc_msgSend_430 = __objc_msgSend_430Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_sortWithOptions_usingComparator_1 = _registerName1("sortWithOptions:usingComparator:"); - void _objc_msgSend_415( + void _objc_msgSend_431( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> cmptr, ) { - return __objc_msgSend_415( + return __objc_msgSend_431( obj, sel, opts, @@ -11648,52 +11964,52 @@ class PedometerBindings { ); } - late final __objc_msgSend_415Ptr = _lookup< + late final __objc_msgSend_431Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_415 = __objc_msgSend_415Ptr.asFunction< + late final __objc_msgSend_431 = __objc_msgSend_431Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_arrayWithCapacity_1 = _registerName1("arrayWithCapacity:"); - ffi.Pointer _objc_msgSend_416( + ffi.Pointer _objc_msgSend_432( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ) { - return __objc_msgSend_416( + return __objc_msgSend_432( obj, sel, path, ); } - late final __objc_msgSend_416Ptr = _lookup< + late final __objc_msgSend_432Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_416 = __objc_msgSend_416Ptr.asFunction< + late final __objc_msgSend_432 = __objc_msgSend_432Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer _objc_msgSend_417( + ffi.Pointer _objc_msgSend_433( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_417( + return __objc_msgSend_433( obj, sel, url, ); } - late final __objc_msgSend_417Ptr = _lookup< + late final __objc_msgSend_433Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_417 = __objc_msgSend_417Ptr.asFunction< + late final __objc_msgSend_433 = __objc_msgSend_433Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -11702,49 +12018,69 @@ class PedometerBindings { _registerName1("sortUsingDescriptors:"); late final _sel_filterUsingPredicate_1 = _registerName1("filterUsingPredicate:"); - void _objc_msgSend_418( + void _objc_msgSend_434( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer predicate, ) { - return __objc_msgSend_418( + return __objc_msgSend_434( obj, sel, predicate, ); } - late final __objc_msgSend_418Ptr = _lookup< + late final __objc_msgSend_434Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_418 = __objc_msgSend_418Ptr.asFunction< + late final __objc_msgSend_434 = __objc_msgSend_434Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_mutableArrayValueForKey_1 = _registerName1("mutableArrayValueForKey:"); + ffi.Pointer _objc_msgSend_435( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer key, + ) { + return __objc_msgSend_435( + obj, + sel, + key, + ); + } + + late final __objc_msgSend_435Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_435 = __objc_msgSend_435Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _class_NSMutableOrderedSet1 = _getClass1("NSMutableOrderedSet"); late final _class_NSOrderedSet1 = _getClass1("NSOrderedSet"); late final _sel_isEqualToOrderedSet_1 = _registerName1("isEqualToOrderedSet:"); - bool _objc_msgSend_419( + bool _objc_msgSend_436( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_419( + return __objc_msgSend_436( obj, sel, other, ); } - late final __objc_msgSend_419Ptr = _lookup< + late final __objc_msgSend_436Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_419 = __objc_msgSend_419Ptr.asFunction< + late final __objc_msgSend_436 = __objc_msgSend_436Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -11753,21 +12089,39 @@ class PedometerBindings { late final _sel_isSubsetOfOrderedSet_1 = _registerName1("isSubsetOfOrderedSet:"); late final _sel_reversedOrderedSet1 = _registerName1("reversedOrderedSet"); - ffi.Pointer _objc_msgSend_420( + ffi.Pointer _objc_msgSend_437( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_420( + return __objc_msgSend_437( obj, sel, ); } - late final __objc_msgSend_420Ptr = _lookup< + late final __objc_msgSend_437Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_420 = __objc_msgSend_420Ptr.asFunction< + late final __objc_msgSend_437 = __objc_msgSend_437Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + ffi.Pointer _objc_msgSend_438( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_438( + obj, + sel, + ); + } + + late final __objc_msgSend_438Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_438 = __objc_msgSend_438Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -11780,36 +12134,36 @@ class PedometerBindings { _registerName1("orderedSetWithObjects:"); late final _sel_orderedSetWithOrderedSet_1 = _registerName1("orderedSetWithOrderedSet:"); - instancetype _objc_msgSend_421( + instancetype _objc_msgSend_439( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer set1, ) { - return __objc_msgSend_421( + return __objc_msgSend_439( obj, sel, set1, ); } - late final __objc_msgSend_421Ptr = _lookup< + late final __objc_msgSend_439Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_421 = __objc_msgSend_421Ptr.asFunction< + late final __objc_msgSend_439 = __objc_msgSend_439Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_orderedSetWithOrderedSet_range_copyItems_1 = _registerName1("orderedSetWithOrderedSet:range:copyItems:"); - instancetype _objc_msgSend_422( + instancetype _objc_msgSend_440( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer set1, _NSRange range, bool flag, ) { - return __objc_msgSend_422( + return __objc_msgSend_440( obj, sel, set1, @@ -11818,11 +12172,11 @@ class PedometerBindings { ); } - late final __objc_msgSend_422Ptr = _lookup< + late final __objc_msgSend_440Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_422 = __objc_msgSend_422Ptr.asFunction< + late final __objc_msgSend_440 = __objc_msgSend_440Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange, bool)>(); @@ -11830,14 +12184,14 @@ class PedometerBindings { _registerName1("orderedSetWithArray:"); late final _sel_orderedSetWithArray_range_copyItems_1 = _registerName1("orderedSetWithArray:range:copyItems:"); - instancetype _objc_msgSend_423( + instancetype _objc_msgSend_441( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer array, _NSRange range, bool flag, ) { - return __objc_msgSend_423( + return __objc_msgSend_441( obj, sel, array, @@ -11846,11 +12200,11 @@ class PedometerBindings { ); } - late final __objc_msgSend_423Ptr = _lookup< + late final __objc_msgSend_441Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_423 = __objc_msgSend_423Ptr.asFunction< + late final __objc_msgSend_441 = __objc_msgSend_441Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange, bool)>(); @@ -11861,13 +12215,13 @@ class PedometerBindings { late final _sel_initWithOrderedSet_1 = _registerName1("initWithOrderedSet:"); late final _sel_initWithOrderedSet_copyItems_1 = _registerName1("initWithOrderedSet:copyItems:"); - instancetype _objc_msgSend_424( + instancetype _objc_msgSend_442( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer set1, bool flag, ) { - return __objc_msgSend_424( + return __objc_msgSend_442( obj, sel, set1, @@ -11875,11 +12229,11 @@ class PedometerBindings { ); } - late final __objc_msgSend_424Ptr = _lookup< + late final __objc_msgSend_442Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_424 = __objc_msgSend_424Ptr.asFunction< + late final __objc_msgSend_442 = __objc_msgSend_442Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); @@ -11890,14 +12244,14 @@ class PedometerBindings { late final _sel_differenceFromOrderedSet_withOptions_usingEquivalenceTest_1 = _registerName1( "differenceFromOrderedSet:withOptions:usingEquivalenceTest:"); - ffi.Pointer _objc_msgSend_425( + ffi.Pointer _objc_msgSend_443( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, int options, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_425( + return __objc_msgSend_443( obj, sel, other, @@ -11906,7 +12260,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_425Ptr = _lookup< + late final __objc_msgSend_443Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -11914,7 +12268,7 @@ class PedometerBindings { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_425 = __objc_msgSend_425Ptr.asFunction< + late final __objc_msgSend_443 = __objc_msgSend_443Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -11924,13 +12278,13 @@ class PedometerBindings { late final _sel_differenceFromOrderedSet_withOptions_1 = _registerName1("differenceFromOrderedSet:withOptions:"); - ffi.Pointer _objc_msgSend_426( + ffi.Pointer _objc_msgSend_444( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, int options, ) { - return __objc_msgSend_426( + return __objc_msgSend_444( obj, sel, other, @@ -11938,14 +12292,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_426Ptr = _lookup< + late final __objc_msgSend_444Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_426 = __objc_msgSend_426Ptr.asFunction< + late final __objc_msgSend_444 = __objc_msgSend_444Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -11953,56 +12307,56 @@ class PedometerBindings { _registerName1("differenceFromOrderedSet:"); late final _sel_orderedSetByApplyingDifference_1 = _registerName1("orderedSetByApplyingDifference:"); - ffi.Pointer _objc_msgSend_427( + ffi.Pointer _objc_msgSend_445( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer difference, ) { - return __objc_msgSend_427( + return __objc_msgSend_445( obj, sel, difference, ); } - late final __objc_msgSend_427Ptr = _lookup< + late final __objc_msgSend_445Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_427 = __objc_msgSend_427Ptr.asFunction< + late final __objc_msgSend_445 = __objc_msgSend_445Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_filteredOrderedSetUsingPredicate_1 = _registerName1("filteredOrderedSetUsingPredicate:"); - ffi.Pointer _objc_msgSend_428( + ffi.Pointer _objc_msgSend_446( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer p, ) { - return __objc_msgSend_428( + return __objc_msgSend_446( obj, sel, p, ); } - late final __objc_msgSend_428Ptr = _lookup< + late final __objc_msgSend_446Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_428 = __objc_msgSend_428Ptr.asFunction< + late final __objc_msgSend_446 = __objc_msgSend_446Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_addObjects_count_1 = _registerName1("addObjects:count:"); - void _objc_msgSend_429( + void _objc_msgSend_447( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> objects, int count, ) { - return __objc_msgSend_429( + return __objc_msgSend_447( obj, sel, objects, @@ -12010,26 +12364,26 @@ class PedometerBindings { ); } - late final __objc_msgSend_429Ptr = _lookup< + late final __objc_msgSend_447Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_429 = __objc_msgSend_429Ptr.asFunction< + late final __objc_msgSend_447 = __objc_msgSend_447Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>, int)>(); late final _sel_moveObjectsAtIndexes_toIndex_1 = _registerName1("moveObjectsAtIndexes:toIndex:"); - void _objc_msgSend_430( + void _objc_msgSend_448( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexes, int idx, ) { - return __objc_msgSend_430( + return __objc_msgSend_448( obj, sel, indexes, @@ -12037,25 +12391,25 @@ class PedometerBindings { ); } - late final __objc_msgSend_430Ptr = _lookup< + late final __objc_msgSend_448Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_430 = __objc_msgSend_430Ptr.asFunction< + late final __objc_msgSend_448 = __objc_msgSend_448Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setObject_atIndex_1 = _registerName1("setObject:atIndex:"); late final _sel_replaceObjectsInRange_withObjects_count_1 = _registerName1("replaceObjectsInRange:withObjects:count:"); - void _objc_msgSend_431( + void _objc_msgSend_449( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer> objects, int count, ) { - return __objc_msgSend_431( + return __objc_msgSend_449( obj, sel, range, @@ -12064,7 +12418,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_431Ptr = _lookup< + late final __objc_msgSend_449Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -12072,52 +12426,52 @@ class PedometerBindings { _NSRange, ffi.Pointer>, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_431 = __objc_msgSend_431Ptr.asFunction< + late final __objc_msgSend_449 = __objc_msgSend_449Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer>, int)>(); late final _sel_intersectOrderedSet_1 = _registerName1("intersectOrderedSet:"); - void _objc_msgSend_432( + void _objc_msgSend_450( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_432( + return __objc_msgSend_450( obj, sel, other, ); } - late final __objc_msgSend_432Ptr = _lookup< + late final __objc_msgSend_450Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_432 = __objc_msgSend_432Ptr.asFunction< + late final __objc_msgSend_450 = __objc_msgSend_450Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_minusOrderedSet_1 = _registerName1("minusOrderedSet:"); late final _sel_unionOrderedSet_1 = _registerName1("unionOrderedSet:"); late final _sel_intersectSet_1 = _registerName1("intersectSet:"); - void _objc_msgSend_433( + void _objc_msgSend_451( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_433( + return __objc_msgSend_451( obj, sel, other, ); } - late final __objc_msgSend_433Ptr = _lookup< + late final __objc_msgSend_451Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_433 = __objc_msgSend_433Ptr.asFunction< + late final __objc_msgSend_451 = __objc_msgSend_451Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -12125,14 +12479,14 @@ class PedometerBindings { late final _sel_unionSet_1 = _registerName1("unionSet:"); late final _sel_sortRange_options_usingComparator_1 = _registerName1("sortRange:options:usingComparator:"); - void _objc_msgSend_434( + void _objc_msgSend_452( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, int opts, ffi.Pointer<_ObjCBlock> cmptr, ) { - return __objc_msgSend_434( + return __objc_msgSend_452( obj, sel, range, @@ -12141,11 +12495,11 @@ class PedometerBindings { ); } - late final __objc_msgSend_434Ptr = _lookup< + late final __objc_msgSend_452Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_434 = __objc_msgSend_434Ptr.asFunction< + late final __objc_msgSend_452 = __objc_msgSend_452Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, _NSRange, int, ffi.Pointer<_ObjCBlock>)>(); @@ -12153,23 +12507,23 @@ class PedometerBindings { _registerName1("orderedSetWithCapacity:"); late final _sel_mutableOrderedSetValueForKey_1 = _registerName1("mutableOrderedSetValueForKey:"); - ffi.Pointer _objc_msgSend_435( + ffi.Pointer _objc_msgSend_453( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_435( + return __objc_msgSend_453( obj, sel, key, ); } - late final __objc_msgSend_435Ptr = _lookup< + late final __objc_msgSend_453Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_435 = __objc_msgSend_435Ptr.asFunction< + late final __objc_msgSend_453 = __objc_msgSend_453Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -12178,23 +12532,23 @@ class PedometerBindings { late final _sel_setWithCapacity_1 = _registerName1("setWithCapacity:"); late final _sel_mutableSetValueForKey_1 = _registerName1("mutableSetValueForKey:"); - ffi.Pointer _objc_msgSend_436( + ffi.Pointer _objc_msgSend_454( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_436( + return __objc_msgSend_454( obj, sel, key, ); } - late final __objc_msgSend_436Ptr = _lookup< + late final __objc_msgSend_454Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_436 = __objc_msgSend_436Ptr.asFunction< + late final __objc_msgSend_454 = __objc_msgSend_454Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -12216,45 +12570,45 @@ class PedometerBindings { late final _sel_setNilValueForKey_1 = _registerName1("setNilValueForKey:"); late final _sel_dictionaryWithValuesForKeys_1 = _registerName1("dictionaryWithValuesForKeys:"); - ffi.Pointer _objc_msgSend_437( + ffi.Pointer _objc_msgSend_455( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keys, ) { - return __objc_msgSend_437( + return __objc_msgSend_455( obj, sel, keys, ); } - late final __objc_msgSend_437Ptr = _lookup< + late final __objc_msgSend_455Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_437 = __objc_msgSend_437Ptr.asFunction< + late final __objc_msgSend_455 = __objc_msgSend_455Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_setValuesForKeysWithDictionary_1 = _registerName1("setValuesForKeysWithDictionary:"); - void _objc_msgSend_438( + void _objc_msgSend_456( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keyedValues, ) { - return __objc_msgSend_438( + return __objc_msgSend_456( obj, sel, keyedValues, ); } - late final __objc_msgSend_438Ptr = _lookup< + late final __objc_msgSend_456Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_438 = __objc_msgSend_438Ptr.asFunction< + late final __objc_msgSend_456 = __objc_msgSend_456Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -12275,7 +12629,7 @@ class PedometerBindings { _registerName1("takeValuesFromDictionary:"); late final _sel_observeValueForKeyPath_ofObject_change_context_1 = _registerName1("observeValueForKeyPath:ofObject:change:context:"); - void _objc_msgSend_439( + void _objc_msgSend_457( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keyPath, @@ -12283,7 +12637,7 @@ class PedometerBindings { ffi.Pointer change, ffi.Pointer context, ) { - return __objc_msgSend_439( + return __objc_msgSend_457( obj, sel, keyPath, @@ -12293,7 +12647,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_439Ptr = _lookup< + late final __objc_msgSend_457Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -12302,7 +12656,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_439 = __objc_msgSend_439Ptr.asFunction< + late final __objc_msgSend_457 = __objc_msgSend_457Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -12317,14 +12671,14 @@ class PedometerBindings { _registerName1("didChangeValueForKey:"); late final _sel_willChange_valuesAtIndexes_forKey_1 = _registerName1("willChange:valuesAtIndexes:forKey:"); - void _objc_msgSend_440( + void _objc_msgSend_458( ffi.Pointer obj, ffi.Pointer sel, int changeKind, ffi.Pointer indexes, ffi.Pointer key, ) { - return __objc_msgSend_440( + return __objc_msgSend_458( obj, sel, changeKind, @@ -12333,7 +12687,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_440Ptr = _lookup< + late final __objc_msgSend_458Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -12341,7 +12695,7 @@ class PedometerBindings { ffi.Int32, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_440 = __objc_msgSend_440Ptr.asFunction< + late final __objc_msgSend_458 = __objc_msgSend_458Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer, ffi.Pointer)>(); @@ -12349,14 +12703,14 @@ class PedometerBindings { _registerName1("didChange:valuesAtIndexes:forKey:"); late final _sel_willChangeValueForKey_withSetMutation_usingObjects_1 = _registerName1("willChangeValueForKey:withSetMutation:usingObjects:"); - void _objc_msgSend_441( + void _objc_msgSend_459( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, int mutationKind, ffi.Pointer objects, ) { - return __objc_msgSend_441( + return __objc_msgSend_459( obj, sel, key, @@ -12365,7 +12719,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_441Ptr = _lookup< + late final __objc_msgSend_459Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -12373,7 +12727,7 @@ class PedometerBindings { ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_441 = __objc_msgSend_441Ptr.asFunction< + late final __objc_msgSend_459 = __objc_msgSend_459Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); @@ -12381,23 +12735,23 @@ class PedometerBindings { _registerName1("didChangeValueForKey:withSetMutation:usingObjects:"); late final _sel_observationInfo1 = _registerName1("observationInfo"); late final _sel_setObservationInfo_1 = _registerName1("setObservationInfo:"); - void _objc_msgSend_442( + void _objc_msgSend_460( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_442( + return __objc_msgSend_460( obj, sel, value, ); } - late final __objc_msgSend_442Ptr = _lookup< + late final __objc_msgSend_460Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_442 = __objc_msgSend_442Ptr.asFunction< + late final __objc_msgSend_460 = __objc_msgSend_460Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -12406,16 +12760,36 @@ class PedometerBindings { late final _class_NSKeyedArchiver1 = _getClass1("NSKeyedArchiver"); late final _sel_initRequiringSecureCoding_1 = _registerName1("initRequiringSecureCoding:"); + instancetype _objc_msgSend_461( + ffi.Pointer obj, + ffi.Pointer sel, + bool requiresSecureCoding, + ) { + return __objc_msgSend_461( + obj, + sel, + requiresSecureCoding, + ); + } + + late final __objc_msgSend_461Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_461 = __objc_msgSend_461Ptr.asFunction< + instancetype Function( + ffi.Pointer, ffi.Pointer, bool)>(); + late final _sel_archivedDataWithRootObject_requiringSecureCoding_error_1 = _registerName1("archivedDataWithRootObject:requiringSecureCoding:error:"); - ffi.Pointer _objc_msgSend_443( + ffi.Pointer _objc_msgSend_462( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer object, bool requiresSecureCoding, ffi.Pointer> error, ) { - return __objc_msgSend_443( + return __objc_msgSend_462( obj, sel, object, @@ -12424,7 +12798,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_443Ptr = _lookup< + late final __objc_msgSend_462Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -12432,7 +12806,7 @@ class PedometerBindings { ffi.Pointer, ffi.Bool, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_443 = __objc_msgSend_443Ptr.asFunction< + late final __objc_msgSend_462 = __objc_msgSend_462Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -12443,23 +12817,23 @@ class PedometerBindings { late final _class_NSMutableData1 = _getClass1("NSMutableData"); late final _sel_mutableBytes1 = _registerName1("mutableBytes"); late final _sel_setLength_1 = _registerName1("setLength:"); - void _objc_msgSend_444( + void _objc_msgSend_463( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_444( + return __objc_msgSend_463( obj, sel, value, ); } - late final __objc_msgSend_444Ptr = _lookup< + late final __objc_msgSend_463Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_444 = __objc_msgSend_444Ptr.asFunction< + late final __objc_msgSend_463 = __objc_msgSend_463Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_appendBytes_length_1 = _registerName1("appendBytes:length:"); @@ -12467,13 +12841,13 @@ class PedometerBindings { late final _sel_increaseLengthBy_1 = _registerName1("increaseLengthBy:"); late final _sel_replaceBytesInRange_withBytes_1 = _registerName1("replaceBytesInRange:withBytes:"); - void _objc_msgSend_445( + void _objc_msgSend_464( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer bytes, ) { - return __objc_msgSend_445( + return __objc_msgSend_464( obj, sel, range, @@ -12481,11 +12855,11 @@ class PedometerBindings { ); } - late final __objc_msgSend_445Ptr = _lookup< + late final __objc_msgSend_464Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_445 = __objc_msgSend_445Ptr.asFunction< + late final __objc_msgSend_464 = __objc_msgSend_464Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); @@ -12493,14 +12867,14 @@ class PedometerBindings { late final _sel_setData_1 = _registerName1("setData:"); late final _sel_replaceBytesInRange_withBytes_length_1 = _registerName1("replaceBytesInRange:withBytes:length:"); - void _objc_msgSend_446( + void _objc_msgSend_465( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer replacementBytes, int replacementLength, ) { - return __objc_msgSend_446( + return __objc_msgSend_465( obj, sel, range, @@ -12509,7 +12883,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_446Ptr = _lookup< + late final __objc_msgSend_465Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -12517,22 +12891,42 @@ class PedometerBindings { _NSRange, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_446 = __objc_msgSend_446Ptr.asFunction< + late final __objc_msgSend_465 = __objc_msgSend_465Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer, int)>(); late final _sel_dataWithCapacity_1 = _registerName1("dataWithCapacity:"); + instancetype _objc_msgSend_466( + ffi.Pointer obj, + ffi.Pointer sel, + int aNumItems, + ) { + return __objc_msgSend_466( + obj, + sel, + aNumItems, + ); + } + + late final __objc_msgSend_466Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_466 = __objc_msgSend_466Ptr.asFunction< + instancetype Function( + ffi.Pointer, ffi.Pointer, int)>(); + late final _sel_dataWithLength_1 = _registerName1("dataWithLength:"); late final _sel_initWithLength_1 = _registerName1("initWithLength:"); late final _sel_decompressUsingAlgorithm_error_1 = _registerName1("decompressUsingAlgorithm:error:"); - bool _objc_msgSend_447( + bool _objc_msgSend_467( ffi.Pointer obj, ffi.Pointer sel, int algorithm, ffi.Pointer> error, ) { - return __objc_msgSend_447( + return __objc_msgSend_467( obj, sel, algorithm, @@ -12540,14 +12934,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_447Ptr = _lookup< + late final __objc_msgSend_467Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_447 = __objc_msgSend_447Ptr.asFunction< + late final __objc_msgSend_467 = __objc_msgSend_467Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer>)>(); @@ -12555,99 +12949,124 @@ class PedometerBindings { _registerName1("compressUsingAlgorithm:error:"); late final _sel_initForWritingWithMutableData_1 = _registerName1("initForWritingWithMutableData:"); - instancetype _objc_msgSend_448( + instancetype _objc_msgSend_468( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ) { - return __objc_msgSend_448( + return __objc_msgSend_468( obj, sel, data, ); } - late final __objc_msgSend_448Ptr = _lookup< + late final __objc_msgSend_468Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_448 = __objc_msgSend_448Ptr.asFunction< + late final __objc_msgSend_468 = __objc_msgSend_468Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_archivedDataWithRootObject_1 = _registerName1("archivedDataWithRootObject:"); - ffi.Pointer _objc_msgSend_449( + ffi.Pointer _objc_msgSend_469( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer rootObject, ) { - return __objc_msgSend_449( + return __objc_msgSend_469( obj, sel, rootObject, ); } - late final __objc_msgSend_449Ptr = _lookup< + late final __objc_msgSend_469Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_449 = __objc_msgSend_449Ptr.asFunction< + late final __objc_msgSend_469 = __objc_msgSend_469Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_archiveRootObject_toFile_1 = _registerName1("archiveRootObject:toFile:"); + bool _objc_msgSend_470( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer rootObject, + ffi.Pointer path, + ) { + return __objc_msgSend_470( + obj, + sel, + rootObject, + path, + ); + } + + late final __objc_msgSend_470Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_470 = __objc_msgSend_470Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_outputFormat1 = _registerName1("outputFormat"); - int _objc_msgSend_450( + int _objc_msgSend_471( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_450( + return __objc_msgSend_471( obj, sel, ); } - late final __objc_msgSend_450Ptr = _lookup< + late final __objc_msgSend_471Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_450 = __objc_msgSend_450Ptr.asFunction< + late final __objc_msgSend_471 = __objc_msgSend_471Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setOutputFormat_1 = _registerName1("setOutputFormat:"); - void _objc_msgSend_451( + void _objc_msgSend_472( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_451( + return __objc_msgSend_472( obj, sel, value, ); } - late final __objc_msgSend_451Ptr = _lookup< + late final __objc_msgSend_472Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_451 = __objc_msgSend_451Ptr.asFunction< + late final __objc_msgSend_472 = __objc_msgSend_472Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_encodedData1 = _registerName1("encodedData"); late final _sel_finishEncoding1 = _registerName1("finishEncoding"); late final _sel_setClassName_forClass_1 = _registerName1("setClassName:forClass:"); - void _objc_msgSend_452( + void _objc_msgSend_473( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer codedName, ffi.Pointer cls, ) { - return __objc_msgSend_452( + return __objc_msgSend_473( obj, sel, codedName, @@ -12655,65 +13074,85 @@ class PedometerBindings { ); } - late final __objc_msgSend_452Ptr = _lookup< + late final __objc_msgSend_473Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_452 = __objc_msgSend_452Ptr.asFunction< + late final __objc_msgSend_473 = __objc_msgSend_473Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_classNameForClass_1 = _registerName1("classNameForClass:"); + ffi.Pointer _objc_msgSend_474( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer cls, + ) { + return __objc_msgSend_474( + obj, + sel, + cls, + ); + } + + late final __objc_msgSend_474Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_474 = __objc_msgSend_474Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_setRequiresSecureCoding_1 = _registerName1("setRequiresSecureCoding:"); - void _objc_msgSend_453( + void _objc_msgSend_475( ffi.Pointer obj, ffi.Pointer sel, bool value, ) { - return __objc_msgSend_453( + return __objc_msgSend_475( obj, sel, value, ); } - late final __objc_msgSend_453Ptr = _lookup< + late final __objc_msgSend_475Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_453 = __objc_msgSend_453Ptr.asFunction< + late final __objc_msgSend_475 = __objc_msgSend_475Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_replacementObjectForKeyedArchiver_1 = _registerName1("replacementObjectForKeyedArchiver:"); - ffi.Pointer _objc_msgSend_454( + ffi.Pointer _objc_msgSend_476( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer archiver, ) { - return __objc_msgSend_454( + return __objc_msgSend_476( obj, sel, archiver, ); } - late final __objc_msgSend_454Ptr = _lookup< + late final __objc_msgSend_476Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_454 = __objc_msgSend_454Ptr.asFunction< + late final __objc_msgSend_476 = __objc_msgSend_476Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_performSelectorOnMainThread_withObject_waitUntilDone_modes_1 = _registerName1( "performSelectorOnMainThread:withObject:waitUntilDone:modes:"); - void _objc_msgSend_455( + void _objc_msgSend_477( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, @@ -12721,7 +13160,7 @@ class PedometerBindings { bool wait, ffi.Pointer array, ) { - return __objc_msgSend_455( + return __objc_msgSend_477( obj, sel, aSelector, @@ -12731,7 +13170,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_455Ptr = _lookup< + late final __objc_msgSend_477Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -12740,7 +13179,7 @@ class PedometerBindings { ffi.Pointer, ffi.Bool, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_455 = __objc_msgSend_455Ptr.asFunction< + late final __objc_msgSend_477 = __objc_msgSend_477Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -12751,14 +13190,14 @@ class PedometerBindings { late final _sel_performSelectorOnMainThread_withObject_waitUntilDone_1 = _registerName1("performSelectorOnMainThread:withObject:waitUntilDone:"); - void _objc_msgSend_456( + void _objc_msgSend_478( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, ffi.Pointer arg, bool wait, ) { - return __objc_msgSend_456( + return __objc_msgSend_478( obj, sel, aSelector, @@ -12767,7 +13206,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_456Ptr = _lookup< + late final __objc_msgSend_478Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -12775,62 +13214,62 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_456 = __objc_msgSend_456Ptr.asFunction< + late final __objc_msgSend_478 = __objc_msgSend_478Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _class_NSThread1 = _getClass1("NSThread"); late final _sel_currentThread1 = _registerName1("currentThread"); - ffi.Pointer _objc_msgSend_457( + ffi.Pointer _objc_msgSend_479( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_457( + return __objc_msgSend_479( obj, sel, ); } - late final __objc_msgSend_457Ptr = _lookup< + late final __objc_msgSend_479Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_457 = __objc_msgSend_457Ptr.asFunction< + late final __objc_msgSend_479 = __objc_msgSend_479Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_detachNewThreadWithBlock_1 = _registerName1("detachNewThreadWithBlock:"); - void _objc_msgSend_458( + void _objc_msgSend_480( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_458( + return __objc_msgSend_480( obj, sel, block, ); } - late final __objc_msgSend_458Ptr = _lookup< + late final __objc_msgSend_480Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_458 = __objc_msgSend_458Ptr.asFunction< + late final __objc_msgSend_480 = __objc_msgSend_480Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_detachNewThreadSelector_toTarget_withObject_1 = _registerName1("detachNewThreadSelector:toTarget:withObject:"); - void _objc_msgSend_459( + void _objc_msgSend_481( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer selector, ffi.Pointer target, ffi.Pointer argument, ) { - return __objc_msgSend_459( + return __objc_msgSend_481( obj, sel, selector, @@ -12839,7 +13278,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_459Ptr = _lookup< + late final __objc_msgSend_481Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -12847,7 +13286,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_459 = __objc_msgSend_459Ptr.asFunction< + late final __objc_msgSend_481 = __objc_msgSend_481Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -12859,13 +13298,13 @@ class PedometerBindings { late final _class_NSMutableDictionary1 = _getClass1("NSMutableDictionary"); late final _sel_removeObjectForKey_1 = _registerName1("removeObjectForKey:"); late final _sel_setObject_forKey_1 = _registerName1("setObject:forKey:"); - void _objc_msgSend_460( + void _objc_msgSend_482( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, ffi.Pointer aKey, ) { - return __objc_msgSend_460( + return __objc_msgSend_482( obj, sel, anObject, @@ -12873,14 +13312,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_460Ptr = _lookup< + late final __objc_msgSend_482Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_460 = __objc_msgSend_460Ptr.asFunction< + late final __objc_msgSend_482 = __objc_msgSend_482Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -12891,190 +13330,215 @@ class PedometerBindings { late final _sel_setDictionary_1 = _registerName1("setDictionary:"); late final _sel_setObject_forKeyedSubscript_1 = _registerName1("setObject:forKeyedSubscript:"); + void _objc_msgSend_483( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer obj1, + ffi.Pointer key, + ) { + return __objc_msgSend_483( + obj, + sel, + obj1, + key, + ); + } + + late final __objc_msgSend_483Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_483 = __objc_msgSend_483Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_dictionaryWithCapacity_1 = _registerName1("dictionaryWithCapacity:"); - ffi.Pointer _objc_msgSend_461( + ffi.Pointer _objc_msgSend_484( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ) { - return __objc_msgSend_461( + return __objc_msgSend_484( obj, sel, path, ); } - late final __objc_msgSend_461Ptr = _lookup< + late final __objc_msgSend_484Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_461 = __objc_msgSend_461Ptr.asFunction< + late final __objc_msgSend_484 = __objc_msgSend_484Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer _objc_msgSend_462( + ffi.Pointer _objc_msgSend_485( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_462( + return __objc_msgSend_485( obj, sel, url, ); } - late final __objc_msgSend_462Ptr = _lookup< + late final __objc_msgSend_485Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_462 = __objc_msgSend_462Ptr.asFunction< + late final __objc_msgSend_485 = __objc_msgSend_485Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dictionaryWithSharedKeySet_1 = _registerName1("dictionaryWithSharedKeySet:"); - ffi.Pointer _objc_msgSend_463( + ffi.Pointer _objc_msgSend_486( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keyset, ) { - return __objc_msgSend_463( + return __objc_msgSend_486( obj, sel, keyset, ); } - late final __objc_msgSend_463Ptr = _lookup< + late final __objc_msgSend_486Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_463 = __objc_msgSend_463Ptr.asFunction< + late final __objc_msgSend_486 = __objc_msgSend_486Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_threadDictionary1 = _registerName1("threadDictionary"); - ffi.Pointer _objc_msgSend_464( + ffi.Pointer _objc_msgSend_487( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_464( + return __objc_msgSend_487( obj, sel, ); } - late final __objc_msgSend_464Ptr = _lookup< + late final __objc_msgSend_487Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_464 = __objc_msgSend_464Ptr.asFunction< + late final __objc_msgSend_487 = __objc_msgSend_487Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_sleepUntilDate_1 = _registerName1("sleepUntilDate:"); - void _objc_msgSend_465( + void _objc_msgSend_488( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, ) { - return __objc_msgSend_465( + return __objc_msgSend_488( obj, sel, date, ); } - late final __objc_msgSend_465Ptr = _lookup< + late final __objc_msgSend_488Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_465 = __objc_msgSend_465Ptr.asFunction< + late final __objc_msgSend_488 = __objc_msgSend_488Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_sleepForTimeInterval_1 = _registerName1("sleepForTimeInterval:"); - void _objc_msgSend_466( + void _objc_msgSend_489( ffi.Pointer obj, ffi.Pointer sel, double ti, ) { - return __objc_msgSend_466( + return __objc_msgSend_489( obj, sel, ti, ); } - late final __objc_msgSend_466Ptr = _lookup< + late final __objc_msgSend_489Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_466 = __objc_msgSend_466Ptr.asFunction< + late final __objc_msgSend_489 = __objc_msgSend_489Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, double)>(); late final _sel_exit1 = _registerName1("exit"); late final _sel_threadPriority1 = _registerName1("threadPriority"); late final _sel_setThreadPriority_1 = _registerName1("setThreadPriority:"); - void _objc_msgSend_467( + void _objc_msgSend_490( ffi.Pointer obj, ffi.Pointer sel, double value, ) { - return __objc_msgSend_467( + return __objc_msgSend_490( obj, sel, value, ); } - late final __objc_msgSend_467Ptr = _lookup< + late final __objc_msgSend_490Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_467 = __objc_msgSend_467Ptr.asFunction< + late final __objc_msgSend_490 = __objc_msgSend_490Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, double)>(); late final _sel_qualityOfService1 = _registerName1("qualityOfService"); - int _objc_msgSend_468( + int _objc_msgSend_491( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_468( + return __objc_msgSend_491( obj, sel, ); } - late final __objc_msgSend_468Ptr = _lookup< + late final __objc_msgSend_491Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_468 = __objc_msgSend_468Ptr.asFunction< + late final __objc_msgSend_491 = __objc_msgSend_491Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setQualityOfService_1 = _registerName1("setQualityOfService:"); - void _objc_msgSend_469( + void _objc_msgSend_492( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_469( + return __objc_msgSend_492( obj, sel, value, ); } - late final __objc_msgSend_469Ptr = _lookup< + late final __objc_msgSend_492Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_469 = __objc_msgSend_469Ptr.asFunction< + late final __objc_msgSend_492 = __objc_msgSend_492Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_callStackReturnAddresses1 = @@ -13082,23 +13546,23 @@ class PedometerBindings { late final _sel_callStackSymbols1 = _registerName1("callStackSymbols"); late final _sel_name1 = _registerName1("name"); late final _sel_setName_1 = _registerName1("setName:"); - void _objc_msgSend_470( + void _objc_msgSend_493( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_470( + return __objc_msgSend_493( obj, sel, value, ); } - late final __objc_msgSend_470Ptr = _lookup< + late final __objc_msgSend_493Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_470 = __objc_msgSend_470Ptr.asFunction< + late final __objc_msgSend_493 = __objc_msgSend_493Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -13108,14 +13572,14 @@ class PedometerBindings { late final _sel_mainThread1 = _registerName1("mainThread"); late final _sel_initWithTarget_selector_object_1 = _registerName1("initWithTarget:selector:object:"); - instancetype _objc_msgSend_471( + instancetype _objc_msgSend_494( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer target, ffi.Pointer selector, ffi.Pointer argument, ) { - return __objc_msgSend_471( + return __objc_msgSend_494( obj, sel, target, @@ -13124,7 +13588,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_471Ptr = _lookup< + late final __objc_msgSend_494Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -13132,7 +13596,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_471 = __objc_msgSend_471Ptr.asFunction< + late final __objc_msgSend_494 = __objc_msgSend_494Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -13141,23 +13605,23 @@ class PedometerBindings { ffi.Pointer)>(); late final _sel_initWithBlock_1 = _registerName1("initWithBlock:"); - instancetype _objc_msgSend_472( + instancetype _objc_msgSend_495( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_472( + return __objc_msgSend_495( obj, sel, block, ); } - late final __objc_msgSend_472Ptr = _lookup< + late final __objc_msgSend_495Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_472 = __objc_msgSend_472Ptr.asFunction< + late final __objc_msgSend_495 = __objc_msgSend_495Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); @@ -13170,7 +13634,7 @@ class PedometerBindings { late final _sel_performSelector_onThread_withObject_waitUntilDone_modes_1 = _registerName1( "performSelector:onThread:withObject:waitUntilDone:modes:"); - void _objc_msgSend_473( + void _objc_msgSend_496( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, @@ -13179,7 +13643,7 @@ class PedometerBindings { bool wait, ffi.Pointer array, ) { - return __objc_msgSend_473( + return __objc_msgSend_496( obj, sel, aSelector, @@ -13190,7 +13654,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_473Ptr = _lookup< + late final __objc_msgSend_496Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -13200,7 +13664,7 @@ class PedometerBindings { ffi.Pointer, ffi.Bool, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_473 = __objc_msgSend_473Ptr.asFunction< + late final __objc_msgSend_496 = __objc_msgSend_496Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -13212,7 +13676,7 @@ class PedometerBindings { late final _sel_performSelector_onThread_withObject_waitUntilDone_1 = _registerName1("performSelector:onThread:withObject:waitUntilDone:"); - void _objc_msgSend_474( + void _objc_msgSend_497( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, @@ -13220,7 +13684,7 @@ class PedometerBindings { ffi.Pointer arg, bool wait, ) { - return __objc_msgSend_474( + return __objc_msgSend_497( obj, sel, aSelector, @@ -13230,7 +13694,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_474Ptr = _lookup< + late final __objc_msgSend_497Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -13239,7 +13703,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_474 = __objc_msgSend_474Ptr.asFunction< + late final __objc_msgSend_497 = __objc_msgSend_497Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -13253,43 +13717,43 @@ class PedometerBindings { late final _class_NSItemProvider1 = _getClass1("NSItemProvider"); late final _class_NSProgress1 = _getClass1("NSProgress"); late final _sel_currentProgress1 = _registerName1("currentProgress"); - ffi.Pointer _objc_msgSend_475( + ffi.Pointer _objc_msgSend_498( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_475( + return __objc_msgSend_498( obj, sel, ); } - late final __objc_msgSend_475Ptr = _lookup< + late final __objc_msgSend_498Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_475 = __objc_msgSend_475Ptr.asFunction< + late final __objc_msgSend_498 = __objc_msgSend_498Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_progressWithTotalUnitCount_1 = _registerName1("progressWithTotalUnitCount:"); - ffi.Pointer _objc_msgSend_476( + ffi.Pointer _objc_msgSend_499( ffi.Pointer obj, ffi.Pointer sel, int unitCount, ) { - return __objc_msgSend_476( + return __objc_msgSend_499( obj, sel, unitCount, ); } - late final __objc_msgSend_476Ptr = _lookup< + late final __objc_msgSend_499Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_476 = __objc_msgSend_476Ptr.asFunction< + late final __objc_msgSend_499 = __objc_msgSend_499Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -13297,14 +13761,14 @@ class PedometerBindings { _registerName1("discreteProgressWithTotalUnitCount:"); late final _sel_progressWithTotalUnitCount_parent_pendingUnitCount_1 = _registerName1("progressWithTotalUnitCount:parent:pendingUnitCount:"); - ffi.Pointer _objc_msgSend_477( + ffi.Pointer _objc_msgSend_500( ffi.Pointer obj, ffi.Pointer sel, int unitCount, ffi.Pointer parent, int portionOfParentTotalUnitCount, ) { - return __objc_msgSend_477( + return __objc_msgSend_500( obj, sel, unitCount, @@ -13313,7 +13777,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_477Ptr = _lookup< + late final __objc_msgSend_500Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -13321,19 +13785,19 @@ class PedometerBindings { ffi.Int64, ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_477 = __objc_msgSend_477Ptr.asFunction< + late final __objc_msgSend_500 = __objc_msgSend_500Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer, int)>(); late final _sel_initWithParent_userInfo_1 = _registerName1("initWithParent:userInfo:"); - instancetype _objc_msgSend_478( + instancetype _objc_msgSend_501( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer parentProgressOrNil, ffi.Pointer userInfoOrNil, ) { - return __objc_msgSend_478( + return __objc_msgSend_501( obj, sel, parentProgressOrNil, @@ -13341,47 +13805,47 @@ class PedometerBindings { ); } - late final __objc_msgSend_478Ptr = _lookup< + late final __objc_msgSend_501Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_478 = __objc_msgSend_478Ptr.asFunction< + late final __objc_msgSend_501 = __objc_msgSend_501Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_becomeCurrentWithPendingUnitCount_1 = _registerName1("becomeCurrentWithPendingUnitCount:"); - void _objc_msgSend_479( + void _objc_msgSend_502( ffi.Pointer obj, ffi.Pointer sel, int unitCount, ) { - return __objc_msgSend_479( + return __objc_msgSend_502( obj, sel, unitCount, ); } - late final __objc_msgSend_479Ptr = _lookup< + late final __objc_msgSend_502Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_479 = __objc_msgSend_479Ptr.asFunction< + late final __objc_msgSend_502 = __objc_msgSend_502Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_performAsCurrentWithPendingUnitCount_usingBlock_1 = _registerName1("performAsCurrentWithPendingUnitCount:usingBlock:"); - void _objc_msgSend_480( + void _objc_msgSend_503( ffi.Pointer obj, ffi.Pointer sel, int unitCount, ffi.Pointer<_ObjCBlock> work, ) { - return __objc_msgSend_480( + return __objc_msgSend_503( obj, sel, unitCount, @@ -13389,24 +13853,24 @@ class PedometerBindings { ); } - late final __objc_msgSend_480Ptr = _lookup< + late final __objc_msgSend_503Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int64, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_480 = __objc_msgSend_480Ptr.asFunction< + late final __objc_msgSend_503 = __objc_msgSend_503Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_resignCurrent1 = _registerName1("resignCurrent"); late final _sel_addChild_withPendingUnitCount_1 = _registerName1("addChild:withPendingUnitCount:"); - void _objc_msgSend_481( + void _objc_msgSend_504( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer child, int inUnitCount, ) { - return __objc_msgSend_481( + return __objc_msgSend_504( obj, sel, child, @@ -13414,50 +13878,50 @@ class PedometerBindings { ); } - late final __objc_msgSend_481Ptr = _lookup< + late final __objc_msgSend_504Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_481 = __objc_msgSend_481Ptr.asFunction< + late final __objc_msgSend_504 = __objc_msgSend_504Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_totalUnitCount1 = _registerName1("totalUnitCount"); - int _objc_msgSend_482( + int _objc_msgSend_505( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_482( + return __objc_msgSend_505( obj, sel, ); } - late final __objc_msgSend_482Ptr = _lookup< + late final __objc_msgSend_505Ptr = _lookup< ffi.NativeFunction< ffi.Int64 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_482 = __objc_msgSend_482Ptr.asFunction< + late final __objc_msgSend_505 = __objc_msgSend_505Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setTotalUnitCount_1 = _registerName1("setTotalUnitCount:"); - void _objc_msgSend_483( + void _objc_msgSend_506( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_483( + return __objc_msgSend_506( obj, sel, value, ); } - late final __objc_msgSend_483Ptr = _lookup< + late final __objc_msgSend_506Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_483 = __objc_msgSend_483Ptr.asFunction< + late final __objc_msgSend_506 = __objc_msgSend_506Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_completedUnitCount1 = _registerName1("completedUnitCount"); @@ -13465,6 +13929,26 @@ class PedometerBindings { _registerName1("setCompletedUnitCount:"); late final _sel_setLocalizedDescription_1 = _registerName1("setLocalizedDescription:"); + void _objc_msgSend_507( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_507( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_507Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_507 = __objc_msgSend_507Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_localizedAdditionalDescription1 = _registerName1("localizedAdditionalDescription"); late final _sel_setLocalizedAdditionalDescription_1 = @@ -13475,43 +13959,43 @@ class PedometerBindings { late final _sel_setPausable_1 = _registerName1("setPausable:"); late final _sel_isPaused1 = _registerName1("isPaused"); late final _sel_cancellationHandler1 = _registerName1("cancellationHandler"); - ffi.Pointer<_ObjCBlock> _objc_msgSend_484( + ffi.Pointer<_ObjCBlock> _objc_msgSend_508( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_484( + return __objc_msgSend_508( obj, sel, ); } - late final __objc_msgSend_484Ptr = _lookup< + late final __objc_msgSend_508Ptr = _lookup< ffi.NativeFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_484 = __objc_msgSend_484Ptr.asFunction< + late final __objc_msgSend_508 = __objc_msgSend_508Ptr.asFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setCancellationHandler_1 = _registerName1("setCancellationHandler:"); - void _objc_msgSend_485( + void _objc_msgSend_509( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> value, ) { - return __objc_msgSend_485( + return __objc_msgSend_509( obj, sel, value, ); } - late final __objc_msgSend_485Ptr = _lookup< + late final __objc_msgSend_509Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_485 = __objc_msgSend_485Ptr.asFunction< + late final __objc_msgSend_509 = __objc_msgSend_509Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); @@ -13531,23 +14015,23 @@ class PedometerBindings { _registerName1("estimatedTimeRemaining"); late final _sel_setEstimatedTimeRemaining_1 = _registerName1("setEstimatedTimeRemaining:"); - void _objc_msgSend_486( + void _objc_msgSend_510( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_486( + return __objc_msgSend_510( obj, sel, value, ); } - late final __objc_msgSend_486Ptr = _lookup< + late final __objc_msgSend_510Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_486 = __objc_msgSend_486Ptr.asFunction< + late final __objc_msgSend_510 = __objc_msgSend_510Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -13558,23 +14042,23 @@ class PedometerBindings { _registerName1("setFileOperationKind:"); late final _sel_fileURL1 = _registerName1("fileURL"); late final _sel_setFileURL_1 = _registerName1("setFileURL:"); - void _objc_msgSend_487( + void _objc_msgSend_511( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_487( + return __objc_msgSend_511( obj, sel, value, ); } - late final __objc_msgSend_487Ptr = _lookup< + late final __objc_msgSend_511Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_487 = __objc_msgSend_487Ptr.asFunction< + late final __objc_msgSend_511 = __objc_msgSend_511Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -13587,13 +14071,13 @@ class PedometerBindings { late final _sel_unpublish1 = _registerName1("unpublish"); late final _sel_addSubscriberForFileURL_withPublishingHandler_1 = _registerName1("addSubscriberForFileURL:withPublishingHandler:"); - ffi.Pointer _objc_msgSend_488( + ffi.Pointer _objc_msgSend_512( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer<_ObjCBlock> publishingHandler, ) { - return __objc_msgSend_488( + return __objc_msgSend_512( obj, sel, url, @@ -13601,14 +14085,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_488Ptr = _lookup< + late final __objc_msgSend_512Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_488 = __objc_msgSend_488Ptr.asFunction< + late final __objc_msgSend_512 = __objc_msgSend_512Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -13620,14 +14104,14 @@ class PedometerBindings { late final _sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_1 = _registerName1( "registerDataRepresentationForTypeIdentifier:visibility:loadHandler:"); - void _objc_msgSend_489( + void _objc_msgSend_513( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, int visibility, ffi.Pointer<_ObjCBlock> loadHandler, ) { - return __objc_msgSend_489( + return __objc_msgSend_513( obj, sel, typeIdentifier, @@ -13636,7 +14120,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_489Ptr = _lookup< + late final __objc_msgSend_513Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -13644,14 +14128,14 @@ class PedometerBindings { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_489 = __objc_msgSend_489Ptr.asFunction< + late final __objc_msgSend_513 = __objc_msgSend_513Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_1 = _registerName1( "registerFileRepresentationForTypeIdentifier:fileOptions:visibility:loadHandler:"); - void _objc_msgSend_490( + void _objc_msgSend_514( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, @@ -13659,7 +14143,7 @@ class PedometerBindings { int visibility, ffi.Pointer<_ObjCBlock> loadHandler, ) { - return __objc_msgSend_490( + return __objc_msgSend_514( obj, sel, typeIdentifier, @@ -13669,7 +14153,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_490Ptr = _lookup< + late final __objc_msgSend_514Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -13678,7 +14162,7 @@ class PedometerBindings { ffi.Int32, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_490 = __objc_msgSend_490Ptr.asFunction< + late final __objc_msgSend_514 = __objc_msgSend_514Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer<_ObjCBlock>)>(); @@ -13686,23 +14170,23 @@ class PedometerBindings { _registerName1("registeredTypeIdentifiers"); late final _sel_registeredTypeIdentifiersWithFileOptions_1 = _registerName1("registeredTypeIdentifiersWithFileOptions:"); - ffi.Pointer _objc_msgSend_491( + ffi.Pointer _objc_msgSend_515( ffi.Pointer obj, ffi.Pointer sel, int fileOptions, ) { - return __objc_msgSend_491( + return __objc_msgSend_515( obj, sel, fileOptions, ); } - late final __objc_msgSend_491Ptr = _lookup< + late final __objc_msgSend_515Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_491 = __objc_msgSend_491Ptr.asFunction< + late final __objc_msgSend_515 = __objc_msgSend_515Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -13711,13 +14195,13 @@ class PedometerBindings { late final _sel_hasRepresentationConformingToTypeIdentifier_fileOptions_1 = _registerName1( "hasRepresentationConformingToTypeIdentifier:fileOptions:"); - bool _objc_msgSend_492( + bool _objc_msgSend_516( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, int fileOptions, ) { - return __objc_msgSend_492( + return __objc_msgSend_516( obj, sel, typeIdentifier, @@ -13725,24 +14209,24 @@ class PedometerBindings { ); } - late final __objc_msgSend_492Ptr = _lookup< + late final __objc_msgSend_516Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_492 = __objc_msgSend_492Ptr.asFunction< + late final __objc_msgSend_516 = __objc_msgSend_516Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_loadDataRepresentationForTypeIdentifier_completionHandler_1 = _registerName1( "loadDataRepresentationForTypeIdentifier:completionHandler:"); - ffi.Pointer _objc_msgSend_493( + ffi.Pointer _objc_msgSend_517( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_493( + return __objc_msgSend_517( obj, sel, typeIdentifier, @@ -13750,14 +14234,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_493Ptr = _lookup< + late final __objc_msgSend_517Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_493 = __objc_msgSend_493Ptr.asFunction< + late final __objc_msgSend_517 = __objc_msgSend_517Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -13767,13 +14251,13 @@ class PedometerBindings { late final _sel_loadFileRepresentationForTypeIdentifier_completionHandler_1 = _registerName1( "loadFileRepresentationForTypeIdentifier:completionHandler:"); - ffi.Pointer _objc_msgSend_494( + ffi.Pointer _objc_msgSend_518( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_494( + return __objc_msgSend_518( obj, sel, typeIdentifier, @@ -13781,14 +14265,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_494Ptr = _lookup< + late final __objc_msgSend_518Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_494 = __objc_msgSend_494Ptr.asFunction< + late final __objc_msgSend_518 = __objc_msgSend_518Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -13798,13 +14282,13 @@ class PedometerBindings { late final _sel_loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_1 = _registerName1( "loadInPlaceFileRepresentationForTypeIdentifier:completionHandler:"); - ffi.Pointer _objc_msgSend_495( + ffi.Pointer _objc_msgSend_519( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_495( + return __objc_msgSend_519( obj, sel, typeIdentifier, @@ -13812,14 +14296,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_495Ptr = _lookup< + late final __objc_msgSend_519Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_495 = __objc_msgSend_495Ptr.asFunction< + late final __objc_msgSend_519 = __objc_msgSend_519Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -13830,13 +14314,13 @@ class PedometerBindings { late final _sel_setSuggestedName_1 = _registerName1("setSuggestedName:"); late final _sel_registerObject_visibility_1 = _registerName1("registerObject:visibility:"); - void _objc_msgSend_496( + void _objc_msgSend_520( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer object, int visibility, ) { - return __objc_msgSend_496( + return __objc_msgSend_520( obj, sel, object, @@ -13844,24 +14328,24 @@ class PedometerBindings { ); } - late final __objc_msgSend_496Ptr = _lookup< + late final __objc_msgSend_520Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_496 = __objc_msgSend_496Ptr.asFunction< + late final __objc_msgSend_520 = __objc_msgSend_520Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_registerObjectOfClass_visibility_loadHandler_1 = _registerName1("registerObjectOfClass:visibility:loadHandler:"); - void _objc_msgSend_497( + void _objc_msgSend_521( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, int visibility, ffi.Pointer<_ObjCBlock> loadHandler, ) { - return __objc_msgSend_497( + return __objc_msgSend_521( obj, sel, aClass, @@ -13870,7 +14354,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_497Ptr = _lookup< + late final __objc_msgSend_521Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -13878,7 +14362,7 @@ class PedometerBindings { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_497 = __objc_msgSend_497Ptr.asFunction< + late final __objc_msgSend_521 = __objc_msgSend_521Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); @@ -13886,13 +14370,13 @@ class PedometerBindings { _registerName1("canLoadObjectOfClass:"); late final _sel_loadObjectOfClass_completionHandler_1 = _registerName1("loadObjectOfClass:completionHandler:"); - ffi.Pointer _objc_msgSend_498( + ffi.Pointer _objc_msgSend_522( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_498( + return __objc_msgSend_522( obj, sel, aClass, @@ -13900,14 +14384,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_498Ptr = _lookup< + late final __objc_msgSend_522Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_498 = __objc_msgSend_498Ptr.asFunction< + late final __objc_msgSend_522 = __objc_msgSend_522Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -13916,15 +14400,40 @@ class PedometerBindings { late final _sel_initWithItem_typeIdentifier_1 = _registerName1("initWithItem:typeIdentifier:"); + instancetype _objc_msgSend_523( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer item, + ffi.Pointer typeIdentifier, + ) { + return __objc_msgSend_523( + obj, + sel, + item, + typeIdentifier, + ); + } + + late final __objc_msgSend_523Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_523 = __objc_msgSend_523Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_registerItemForTypeIdentifier_loadHandler_1 = _registerName1("registerItemForTypeIdentifier:loadHandler:"); - void _objc_msgSend_499( + void _objc_msgSend_524( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, ffi.Pointer<_ObjCBlock> loadHandler, ) { - return __objc_msgSend_499( + return __objc_msgSend_524( obj, sel, typeIdentifier, @@ -13932,27 +14441,27 @@ class PedometerBindings { ); } - late final __objc_msgSend_499Ptr = _lookup< + late final __objc_msgSend_524Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_499 = __objc_msgSend_499Ptr.asFunction< + late final __objc_msgSend_524 = __objc_msgSend_524Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_loadItemForTypeIdentifier_options_completionHandler_1 = _registerName1("loadItemForTypeIdentifier:options:completionHandler:"); - void _objc_msgSend_500( + void _objc_msgSend_525( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, ffi.Pointer options, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_500( + return __objc_msgSend_525( obj, sel, typeIdentifier, @@ -13961,7 +14470,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_500Ptr = _lookup< + late final __objc_msgSend_525Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -13969,7 +14478,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_500 = __objc_msgSend_500Ptr.asFunction< + late final __objc_msgSend_525 = __objc_msgSend_525Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -13978,55 +14487,55 @@ class PedometerBindings { ffi.Pointer<_ObjCBlock>)>(); late final _sel_previewImageHandler1 = _registerName1("previewImageHandler"); - ffi.Pointer<_ObjCBlock> _objc_msgSend_501( + ffi.Pointer<_ObjCBlock> _objc_msgSend_526( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_501( + return __objc_msgSend_526( obj, sel, ); } - late final __objc_msgSend_501Ptr = _lookup< + late final __objc_msgSend_526Ptr = _lookup< ffi.NativeFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_501 = __objc_msgSend_501Ptr.asFunction< + late final __objc_msgSend_526 = __objc_msgSend_526Ptr.asFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setPreviewImageHandler_1 = _registerName1("setPreviewImageHandler:"); - void _objc_msgSend_502( + void _objc_msgSend_527( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> value, ) { - return __objc_msgSend_502( + return __objc_msgSend_527( obj, sel, value, ); } - late final __objc_msgSend_502Ptr = _lookup< + late final __objc_msgSend_527Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_502 = __objc_msgSend_502Ptr.asFunction< + late final __objc_msgSend_527 = __objc_msgSend_527Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_loadPreviewImageWithOptions_completionHandler_1 = _registerName1("loadPreviewImageWithOptions:completionHandler:"); - void _objc_msgSend_503( + void _objc_msgSend_528( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer options, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_503( + return __objc_msgSend_528( obj, sel, options, @@ -14034,27 +14543,27 @@ class PedometerBindings { ); } - late final __objc_msgSend_503Ptr = _lookup< + late final __objc_msgSend_528Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_503 = __objc_msgSend_503Ptr.asFunction< + late final __objc_msgSend_528 = __objc_msgSend_528Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _class_NSMutableString1 = _getClass1("NSMutableString"); late final _sel_replaceCharactersInRange_withString_1 = _registerName1("replaceCharactersInRange:withString:"); - void _objc_msgSend_504( + void _objc_msgSend_529( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer aString, ) { - return __objc_msgSend_504( + return __objc_msgSend_529( obj, sel, range, @@ -14062,23 +14571,23 @@ class PedometerBindings { ); } - late final __objc_msgSend_504Ptr = _lookup< + late final __objc_msgSend_529Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_504 = __objc_msgSend_504Ptr.asFunction< + late final __objc_msgSend_529 = __objc_msgSend_529Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_insertString_atIndex_1 = _registerName1("insertString:atIndex:"); - void _objc_msgSend_505( + void _objc_msgSend_530( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aString, int loc, ) { - return __objc_msgSend_505( + return __objc_msgSend_530( obj, sel, aString, @@ -14086,11 +14595,11 @@ class PedometerBindings { ); } - late final __objc_msgSend_505Ptr = _lookup< + late final __objc_msgSend_530Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_505 = __objc_msgSend_505Ptr.asFunction< + late final __objc_msgSend_530 = __objc_msgSend_530Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -14101,7 +14610,7 @@ class PedometerBindings { late final _sel_setString_1 = _registerName1("setString:"); late final _sel_replaceOccurrencesOfString_withString_options_range_1 = _registerName1("replaceOccurrencesOfString:withString:options:range:"); - int _objc_msgSend_506( + int _objc_msgSend_531( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer target, @@ -14109,7 +14618,7 @@ class PedometerBindings { int options, _NSRange searchRange, ) { - return __objc_msgSend_506( + return __objc_msgSend_531( obj, sel, target, @@ -14119,7 +14628,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_506Ptr = _lookup< + late final __objc_msgSend_531Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedLong Function( ffi.Pointer, @@ -14128,13 +14637,13 @@ class PedometerBindings { ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_506 = __objc_msgSend_506Ptr.asFunction< + late final __objc_msgSend_531 = __objc_msgSend_531Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, int, _NSRange)>(); late final _sel_applyTransform_reverse_range_updatedRange_1 = _registerName1("applyTransform:reverse:range:updatedRange:"); - bool _objc_msgSend_507( + bool _objc_msgSend_532( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer transform, @@ -14142,7 +14651,7 @@ class PedometerBindings { _NSRange range, ffi.Pointer<_NSRange> resultingRange, ) { - return __objc_msgSend_507( + return __objc_msgSend_532( obj, sel, transform, @@ -14152,7 +14661,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_507Ptr = _lookup< + late final __objc_msgSend_532Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -14161,27 +14670,27 @@ class PedometerBindings { ffi.Bool, _NSRange, ffi.Pointer<_NSRange>)>>('objc_msgSend'); - late final __objc_msgSend_507 = __objc_msgSend_507Ptr.asFunction< + late final __objc_msgSend_532 = __objc_msgSend_532Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool, _NSRange, ffi.Pointer<_NSRange>)>(); - ffi.Pointer _objc_msgSend_508( + ffi.Pointer _objc_msgSend_533( ffi.Pointer obj, ffi.Pointer sel, int capacity, ) { - return __objc_msgSend_508( + return __objc_msgSend_533( obj, sel, capacity, ); } - late final __objc_msgSend_508Ptr = _lookup< + late final __objc_msgSend_533Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_508 = __objc_msgSend_508Ptr.asFunction< + late final __objc_msgSend_533 = __objc_msgSend_533Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -14190,14 +14699,14 @@ class PedometerBindings { late final _sel_object1 = _registerName1("object"); late final _sel_initWithName_object_userInfo_1 = _registerName1("initWithName:object:userInfo:"); - instancetype _objc_msgSend_509( + instancetype _objc_msgSend_534( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer object, ffi.Pointer userInfo, ) { - return __objc_msgSend_509( + return __objc_msgSend_534( obj, sel, name, @@ -14206,7 +14715,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_509Ptr = _lookup< + late final __objc_msgSend_534Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -14214,7 +14723,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_509 = __objc_msgSend_509Ptr.asFunction< + late final __objc_msgSend_534 = __objc_msgSend_534Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -14228,21 +14737,21 @@ class PedometerBindings { _registerName1("notificationWithName:object:userInfo:"); late final _class_NSBundle1 = _getClass1("NSBundle"); late final _sel_mainBundle1 = _registerName1("mainBundle"); - ffi.Pointer _objc_msgSend_510( + ffi.Pointer _objc_msgSend_535( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_510( + return __objc_msgSend_535( obj, sel, ); } - late final __objc_msgSend_510Ptr = _lookup< + late final __objc_msgSend_535Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_510 = __objc_msgSend_510Ptr.asFunction< + late final __objc_msgSend_535 = __objc_msgSend_535Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -14251,45 +14760,45 @@ class PedometerBindings { late final _sel_bundleWithURL_1 = _registerName1("bundleWithURL:"); late final _sel_initWithURL_1 = _registerName1("initWithURL:"); late final _sel_bundleForClass_1 = _registerName1("bundleForClass:"); - ffi.Pointer _objc_msgSend_511( + ffi.Pointer _objc_msgSend_536( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, ) { - return __objc_msgSend_511( + return __objc_msgSend_536( obj, sel, aClass, ); } - late final __objc_msgSend_511Ptr = _lookup< + late final __objc_msgSend_536Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_511 = __objc_msgSend_511Ptr.asFunction< + late final __objc_msgSend_536 = __objc_msgSend_536Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_bundleWithIdentifier_1 = _registerName1("bundleWithIdentifier:"); - ffi.Pointer _objc_msgSend_512( + ffi.Pointer _objc_msgSend_537( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer identifier, ) { - return __objc_msgSend_512( + return __objc_msgSend_537( obj, sel, identifier, ); } - late final __objc_msgSend_512Ptr = _lookup< + late final __objc_msgSend_537Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_512 = __objc_msgSend_512Ptr.asFunction< + late final __objc_msgSend_537 = __objc_msgSend_537Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -14325,7 +14834,7 @@ class PedometerBindings { late final _sel_URLForResource_withExtension_subdirectory_inBundleWithURL_1 = _registerName1( "URLForResource:withExtension:subdirectory:inBundleWithURL:"); - ffi.Pointer _objc_msgSend_513( + ffi.Pointer _objc_msgSend_538( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, @@ -14333,7 +14842,7 @@ class PedometerBindings { ffi.Pointer subpath, ffi.Pointer bundleURL, ) { - return __objc_msgSend_513( + return __objc_msgSend_538( obj, sel, name, @@ -14343,7 +14852,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_513Ptr = _lookup< + late final __objc_msgSend_538Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -14352,7 +14861,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_513 = __objc_msgSend_513Ptr.asFunction< + late final __objc_msgSend_538 = __objc_msgSend_538Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -14364,14 +14873,14 @@ class PedometerBindings { late final _sel_URLsForResourcesWithExtension_subdirectory_inBundleWithURL_1 = _registerName1( "URLsForResourcesWithExtension:subdirectory:inBundleWithURL:"); - ffi.Pointer _objc_msgSend_514( + ffi.Pointer _objc_msgSend_539( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer ext, ffi.Pointer subpath, ffi.Pointer bundleURL, ) { - return __objc_msgSend_514( + return __objc_msgSend_539( obj, sel, ext, @@ -14380,7 +14889,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_514Ptr = _lookup< + late final __objc_msgSend_539Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -14388,7 +14897,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_514 = __objc_msgSend_514Ptr.asFunction< + late final __objc_msgSend_539 = __objc_msgSend_539Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -14398,13 +14907,13 @@ class PedometerBindings { late final _sel_URLForResource_withExtension_1 = _registerName1("URLForResource:withExtension:"); - ffi.Pointer _objc_msgSend_515( + ffi.Pointer _objc_msgSend_540( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer ext, ) { - return __objc_msgSend_515( + return __objc_msgSend_540( obj, sel, name, @@ -14412,14 +14921,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_515Ptr = _lookup< + late final __objc_msgSend_540Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_515 = __objc_msgSend_515Ptr.asFunction< + late final __objc_msgSend_540 = __objc_msgSend_540Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -14428,14 +14937,14 @@ class PedometerBindings { late final _sel_URLForResource_withExtension_subdirectory_1 = _registerName1("URLForResource:withExtension:subdirectory:"); - ffi.Pointer _objc_msgSend_516( + ffi.Pointer _objc_msgSend_541( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer ext, ffi.Pointer subpath, ) { - return __objc_msgSend_516( + return __objc_msgSend_541( obj, sel, name, @@ -14444,7 +14953,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_516Ptr = _lookup< + late final __objc_msgSend_541Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -14452,7 +14961,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_516 = __objc_msgSend_516Ptr.asFunction< + late final __objc_msgSend_541 = __objc_msgSend_541Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -14462,7 +14971,7 @@ class PedometerBindings { late final _sel_URLForResource_withExtension_subdirectory_localization_1 = _registerName1("URLForResource:withExtension:subdirectory:localization:"); - ffi.Pointer _objc_msgSend_517( + ffi.Pointer _objc_msgSend_542( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, @@ -14470,7 +14979,7 @@ class PedometerBindings { ffi.Pointer subpath, ffi.Pointer localizationName, ) { - return __objc_msgSend_517( + return __objc_msgSend_542( obj, sel, name, @@ -14480,7 +14989,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_517Ptr = _lookup< + late final __objc_msgSend_542Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -14489,7 +14998,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_517 = __objc_msgSend_517Ptr.asFunction< + late final __objc_msgSend_542 = __objc_msgSend_542Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -14500,13 +15009,13 @@ class PedometerBindings { late final _sel_URLsForResourcesWithExtension_subdirectory_1 = _registerName1("URLsForResourcesWithExtension:subdirectory:"); - ffi.Pointer _objc_msgSend_518( + ffi.Pointer _objc_msgSend_543( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer ext, ffi.Pointer subpath, ) { - return __objc_msgSend_518( + return __objc_msgSend_543( obj, sel, ext, @@ -14514,14 +15023,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_518Ptr = _lookup< + late final __objc_msgSend_543Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_518 = __objc_msgSend_518Ptr.asFunction< + late final __objc_msgSend_543 = __objc_msgSend_543Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -14531,14 +15040,14 @@ class PedometerBindings { late final _sel_URLsForResourcesWithExtension_subdirectory_localization_1 = _registerName1( "URLsForResourcesWithExtension:subdirectory:localization:"); - ffi.Pointer _objc_msgSend_519( + ffi.Pointer _objc_msgSend_544( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer ext, ffi.Pointer subpath, ffi.Pointer localizationName, ) { - return __objc_msgSend_519( + return __objc_msgSend_544( obj, sel, ext, @@ -14547,7 +15056,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_519Ptr = _lookup< + late final __objc_msgSend_544Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -14555,7 +15064,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_519 = __objc_msgSend_519Ptr.asFunction< + late final __objc_msgSend_544 = __objc_msgSend_544Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -14565,14 +15074,14 @@ class PedometerBindings { late final _sel_pathForResource_ofType_inDirectory_1 = _registerName1("pathForResource:ofType:inDirectory:"); - ffi.Pointer _objc_msgSend_520( + ffi.Pointer _objc_msgSend_545( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer ext, ffi.Pointer bundlePath, ) { - return __objc_msgSend_520( + return __objc_msgSend_545( obj, sel, name, @@ -14581,7 +15090,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_520Ptr = _lookup< + late final __objc_msgSend_545Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -14589,7 +15098,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_520 = __objc_msgSend_520Ptr.asFunction< + late final __objc_msgSend_545 = __objc_msgSend_545Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -14599,11 +15108,67 @@ class PedometerBindings { late final _sel_pathsForResourcesOfType_inDirectory_1 = _registerName1("pathsForResourcesOfType:inDirectory:"); + ffi.Pointer _objc_msgSend_546( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer ext, + ffi.Pointer bundlePath, + ) { + return __objc_msgSend_546( + obj, + sel, + ext, + bundlePath, + ); + } + + late final __objc_msgSend_546Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_546 = __objc_msgSend_546Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + late final _sel_pathForResource_ofType_1 = _registerName1("pathForResource:ofType:"); + ffi.Pointer _objc_msgSend_547( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ffi.Pointer ext, + ) { + return __objc_msgSend_547( + obj, + sel, + name, + ext, + ); + } + + late final __objc_msgSend_547Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_547 = __objc_msgSend_547Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + late final _sel_pathForResource_ofType_inDirectory_forLocalization_1 = _registerName1("pathForResource:ofType:inDirectory:forLocalization:"); - ffi.Pointer _objc_msgSend_521( + ffi.Pointer _objc_msgSend_548( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, @@ -14611,7 +15176,7 @@ class PedometerBindings { ffi.Pointer subpath, ffi.Pointer localizationName, ) { - return __objc_msgSend_521( + return __objc_msgSend_548( obj, sel, name, @@ -14621,7 +15186,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_521Ptr = _lookup< + late final __objc_msgSend_548Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -14630,7 +15195,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_521 = __objc_msgSend_521Ptr.asFunction< + late final __objc_msgSend_548 = __objc_msgSend_548Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -14641,18 +15206,82 @@ class PedometerBindings { late final _sel_pathsForResourcesOfType_inDirectory_forLocalization_1 = _registerName1("pathsForResourcesOfType:inDirectory:forLocalization:"); + ffi.Pointer _objc_msgSend_549( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer ext, + ffi.Pointer subpath, + ffi.Pointer localizationName, + ) { + return __objc_msgSend_549( + obj, + sel, + ext, + subpath, + localizationName, + ); + } + + late final __objc_msgSend_549Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_549 = __objc_msgSend_549Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + late final _sel_localizedStringForKey_value_table_1 = _registerName1("localizedStringForKey:value:table:"); + ffi.Pointer _objc_msgSend_550( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer key, + ffi.Pointer value, + ffi.Pointer tableName, + ) { + return __objc_msgSend_550( + obj, + sel, + key, + value, + tableName, + ); + } + + late final __objc_msgSend_550Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_550 = __objc_msgSend_550Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + late final _class_NSAttributedString1 = _getClass1("NSAttributedString"); late final _sel_attributesAtIndex_effectiveRange_1 = _registerName1("attributesAtIndex:effectiveRange:"); - ffi.Pointer _objc_msgSend_522( + ffi.Pointer _objc_msgSend_551( ffi.Pointer obj, ffi.Pointer sel, int location, ffi.Pointer<_NSRange> range, ) { - return __objc_msgSend_522( + return __objc_msgSend_551( obj, sel, location, @@ -14660,27 +15289,27 @@ class PedometerBindings { ); } - late final __objc_msgSend_522Ptr = _lookup< + late final __objc_msgSend_551Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.UnsignedLong, ffi.Pointer<_NSRange>)>>('objc_msgSend'); - late final __objc_msgSend_522 = __objc_msgSend_522Ptr.asFunction< + late final __objc_msgSend_551 = __objc_msgSend_551Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_NSRange>)>(); late final _sel_attribute_atIndex_effectiveRange_1 = _registerName1("attribute:atIndex:effectiveRange:"); - ffi.Pointer _objc_msgSend_523( + ffi.Pointer _objc_msgSend_552( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attrName, int location, ffi.Pointer<_NSRange> range, ) { - return __objc_msgSend_523( + return __objc_msgSend_552( obj, sel, attrName, @@ -14689,7 +15318,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_523Ptr = _lookup< + late final __objc_msgSend_552Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -14697,7 +15326,7 @@ class PedometerBindings { ffi.Pointer, ffi.UnsignedLong, ffi.Pointer<_NSRange>)>>('objc_msgSend'); - late final __objc_msgSend_523 = __objc_msgSend_523Ptr.asFunction< + late final __objc_msgSend_552 = __objc_msgSend_552Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -14707,36 +15336,36 @@ class PedometerBindings { late final _sel_attributedSubstringFromRange_1 = _registerName1("attributedSubstringFromRange:"); - ffi.Pointer _objc_msgSend_524( + ffi.Pointer _objc_msgSend_553( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ) { - return __objc_msgSend_524( + return __objc_msgSend_553( obj, sel, range, ); } - late final __objc_msgSend_524Ptr = _lookup< + late final __objc_msgSend_553Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_524 = __objc_msgSend_524Ptr.asFunction< + late final __objc_msgSend_553 = __objc_msgSend_553Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_attributesAtIndex_longestEffectiveRange_inRange_1 = _registerName1("attributesAtIndex:longestEffectiveRange:inRange:"); - ffi.Pointer _objc_msgSend_525( + ffi.Pointer _objc_msgSend_554( ffi.Pointer obj, ffi.Pointer sel, int location, ffi.Pointer<_NSRange> range, _NSRange rangeLimit, ) { - return __objc_msgSend_525( + return __objc_msgSend_554( obj, sel, location, @@ -14745,7 +15374,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_525Ptr = _lookup< + late final __objc_msgSend_554Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -14753,13 +15382,13 @@ class PedometerBindings { ffi.UnsignedLong, ffi.Pointer<_NSRange>, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_525 = __objc_msgSend_525Ptr.asFunction< + late final __objc_msgSend_554 = __objc_msgSend_554Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_NSRange>, _NSRange)>(); late final _sel_attribute_atIndex_longestEffectiveRange_inRange_1 = _registerName1("attribute:atIndex:longestEffectiveRange:inRange:"); - ffi.Pointer _objc_msgSend_526( + ffi.Pointer _objc_msgSend_555( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attrName, @@ -14767,7 +15396,7 @@ class PedometerBindings { ffi.Pointer<_NSRange> range, _NSRange rangeLimit, ) { - return __objc_msgSend_526( + return __objc_msgSend_555( obj, sel, attrName, @@ -14777,7 +15406,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_526Ptr = _lookup< + late final __objc_msgSend_555Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -14786,7 +15415,7 @@ class PedometerBindings { ffi.UnsignedLong, ffi.Pointer<_NSRange>, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_526 = __objc_msgSend_526Ptr.asFunction< + late final __objc_msgSend_555 = __objc_msgSend_555Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -14797,60 +15426,85 @@ class PedometerBindings { late final _sel_isEqualToAttributedString_1 = _registerName1("isEqualToAttributedString:"); - bool _objc_msgSend_527( + bool _objc_msgSend_556( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_527( + return __objc_msgSend_556( obj, sel, other, ); } - late final __objc_msgSend_527Ptr = _lookup< + late final __objc_msgSend_556Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_527 = __objc_msgSend_527Ptr.asFunction< + late final __objc_msgSend_556 = __objc_msgSend_556Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithString_attributes_1 = _registerName1("initWithString:attributes:"); + instancetype _objc_msgSend_557( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer str, + ffi.Pointer attrs, + ) { + return __objc_msgSend_557( + obj, + sel, + str, + attrs, + ); + } + + late final __objc_msgSend_557Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_557 = __objc_msgSend_557Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_initWithAttributedString_1 = _registerName1("initWithAttributedString:"); - instancetype _objc_msgSend_528( + instancetype _objc_msgSend_558( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attrStr, ) { - return __objc_msgSend_528( + return __objc_msgSend_558( obj, sel, attrStr, ); } - late final __objc_msgSend_528Ptr = _lookup< + late final __objc_msgSend_558Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_528 = __objc_msgSend_528Ptr.asFunction< + late final __objc_msgSend_558 = __objc_msgSend_558Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_enumerateAttributesInRange_options_usingBlock_1 = _registerName1("enumerateAttributesInRange:options:usingBlock:"); - void _objc_msgSend_529( + void _objc_msgSend_559( ffi.Pointer obj, ffi.Pointer sel, _NSRange enumerationRange, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_529( + return __objc_msgSend_559( obj, sel, enumerationRange, @@ -14859,17 +15513,17 @@ class PedometerBindings { ); } - late final __objc_msgSend_529Ptr = _lookup< + late final __objc_msgSend_559Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_529 = __objc_msgSend_529Ptr.asFunction< + late final __objc_msgSend_559 = __objc_msgSend_559Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, _NSRange, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateAttribute_inRange_options_usingBlock_1 = _registerName1("enumerateAttribute:inRange:options:usingBlock:"); - void _objc_msgSend_530( + void _objc_msgSend_560( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attrName, @@ -14877,7 +15531,7 @@ class PedometerBindings { int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_530( + return __objc_msgSend_560( obj, sel, attrName, @@ -14887,7 +15541,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_530Ptr = _lookup< + late final __objc_msgSend_560Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -14896,7 +15550,7 @@ class PedometerBindings { _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_530 = __objc_msgSend_530Ptr.asFunction< + late final __objc_msgSend_560 = __objc_msgSend_560Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange, int, ffi.Pointer<_ObjCBlock>)>(); @@ -14907,80 +15561,80 @@ class PedometerBindings { late final _sel_setAllowsExtendedAttributes_1 = _registerName1("setAllowsExtendedAttributes:"); late final _sel_interpretedSyntax1 = _registerName1("interpretedSyntax"); - int _objc_msgSend_531( + int _objc_msgSend_561( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_531( + return __objc_msgSend_561( obj, sel, ); } - late final __objc_msgSend_531Ptr = _lookup< + late final __objc_msgSend_561Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_531 = __objc_msgSend_531Ptr.asFunction< + late final __objc_msgSend_561 = __objc_msgSend_561Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setInterpretedSyntax_1 = _registerName1("setInterpretedSyntax:"); - void _objc_msgSend_532( + void _objc_msgSend_562( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_532( + return __objc_msgSend_562( obj, sel, value, ); } - late final __objc_msgSend_532Ptr = _lookup< + late final __objc_msgSend_562Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_532 = __objc_msgSend_532Ptr.asFunction< + late final __objc_msgSend_562 = __objc_msgSend_562Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_failurePolicy1 = _registerName1("failurePolicy"); - int _objc_msgSend_533( + int _objc_msgSend_563( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_533( + return __objc_msgSend_563( obj, sel, ); } - late final __objc_msgSend_533Ptr = _lookup< + late final __objc_msgSend_563Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_533 = __objc_msgSend_533Ptr.asFunction< + late final __objc_msgSend_563 = __objc_msgSend_563Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setFailurePolicy_1 = _registerName1("setFailurePolicy:"); - void _objc_msgSend_534( + void _objc_msgSend_564( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_534( + return __objc_msgSend_564( obj, sel, value, ); } - late final __objc_msgSend_534Ptr = _lookup< + late final __objc_msgSend_564Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_534 = __objc_msgSend_534Ptr.asFunction< + late final __objc_msgSend_564 = __objc_msgSend_564Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setLanguageCode_1 = _registerName1("setLanguageCode:"); @@ -14991,7 +15645,7 @@ class PedometerBindings { late final _sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_1 = _registerName1( "initWithContentsOfMarkdownFileAtURL:options:baseURL:error:"); - instancetype _objc_msgSend_535( + instancetype _objc_msgSend_565( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer markdownFile, @@ -14999,7 +15653,7 @@ class PedometerBindings { ffi.Pointer baseURL, ffi.Pointer> error, ) { - return __objc_msgSend_535( + return __objc_msgSend_565( obj, sel, markdownFile, @@ -15009,7 +15663,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_535Ptr = _lookup< + late final __objc_msgSend_565Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -15018,7 +15672,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_535 = __objc_msgSend_535Ptr.asFunction< + late final __objc_msgSend_565 = __objc_msgSend_565Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -15029,7 +15683,7 @@ class PedometerBindings { late final _sel_initWithMarkdown_options_baseURL_error_1 = _registerName1("initWithMarkdown:options:baseURL:error:"); - instancetype _objc_msgSend_536( + instancetype _objc_msgSend_566( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer markdown, @@ -15037,7 +15691,7 @@ class PedometerBindings { ffi.Pointer baseURL, ffi.Pointer> error, ) { - return __objc_msgSend_536( + return __objc_msgSend_566( obj, sel, markdown, @@ -15047,7 +15701,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_536Ptr = _lookup< + late final __objc_msgSend_566Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -15056,7 +15710,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_536 = __objc_msgSend_536Ptr.asFunction< + late final __objc_msgSend_566 = __objc_msgSend_566Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -15067,7 +15721,7 @@ class PedometerBindings { late final _sel_initWithMarkdownString_options_baseURL_error_1 = _registerName1("initWithMarkdownString:options:baseURL:error:"); - instancetype _objc_msgSend_537( + instancetype _objc_msgSend_567( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer markdownString, @@ -15075,7 +15729,7 @@ class PedometerBindings { ffi.Pointer baseURL, ffi.Pointer> error, ) { - return __objc_msgSend_537( + return __objc_msgSend_567( obj, sel, markdownString, @@ -15085,7 +15739,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_537Ptr = _lookup< + late final __objc_msgSend_567Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -15094,7 +15748,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_537 = __objc_msgSend_537Ptr.asFunction< + late final __objc_msgSend_567 = __objc_msgSend_567Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -15105,14 +15759,14 @@ class PedometerBindings { late final _sel_initWithFormat_options_locale_1 = _registerName1("initWithFormat:options:locale:"); - instancetype _objc_msgSend_538( + instancetype _objc_msgSend_568( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, int options, ffi.Pointer locale, ) { - return __objc_msgSend_538( + return __objc_msgSend_568( obj, sel, format, @@ -15121,7 +15775,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_538Ptr = _lookup< + late final __objc_msgSend_568Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -15129,21 +15783,21 @@ class PedometerBindings { ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_538 = __objc_msgSend_538Ptr.asFunction< + late final __objc_msgSend_568 = __objc_msgSend_568Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_initWithFormat_options_locale_arguments_1 = _registerName1("initWithFormat:options:locale:arguments:"); - instancetype _objc_msgSend_539( + instancetype _objc_msgSend_569( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, int options, ffi.Pointer locale, - ffi.Pointer arguments, + ffi.Pointer<__va_list_tag> arguments, ) { - return __objc_msgSend_539( + return __objc_msgSend_569( obj, sel, format, @@ -15153,7 +15807,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_539Ptr = _lookup< + late final __objc_msgSend_569Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -15161,27 +15815,27 @@ class PedometerBindings { ffi.Pointer, ffi.Int32, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_539 = __objc_msgSend_539Ptr.asFunction< + ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); + late final __objc_msgSend_569 = __objc_msgSend_569Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer<__va_list_tag>)>(); late final _sel_localizedAttributedStringWithFormat_1 = _registerName1("localizedAttributedStringWithFormat:"); late final _sel_localizedAttributedStringWithFormat_options_1 = _registerName1("localizedAttributedStringWithFormat:options:"); - instancetype _objc_msgSend_540( + instancetype _objc_msgSend_570( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, int options, ) { - return __objc_msgSend_540( + return __objc_msgSend_570( obj, sel, format, @@ -15189,44 +15843,181 @@ class PedometerBindings { ); } - late final __objc_msgSend_540Ptr = _lookup< + late final __objc_msgSend_570Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_540 = __objc_msgSend_540Ptr.asFunction< + late final __objc_msgSend_570 = __objc_msgSend_570Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); + late final _sel_initWithFormat_options_locale_context_1 = + _registerName1("initWithFormat:options:locale:context:"); + instancetype _objc_msgSend_571( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + int options, + ffi.Pointer locale, + ffi.Pointer context, + ) { + return __objc_msgSend_571( + obj, + sel, + format, + options, + locale, + context, + ); + } + + late final __objc_msgSend_571Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_571 = __objc_msgSend_571Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_initWithFormat_options_locale_context_arguments_1 = + _registerName1("initWithFormat:options:locale:context:arguments:"); + instancetype _objc_msgSend_572( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + int options, + ffi.Pointer locale, + ffi.Pointer context, + ffi.Pointer<__va_list_tag> arguments, + ) { + return __objc_msgSend_572( + obj, + sel, + format, + options, + locale, + context, + arguments, + ); + } + + late final __objc_msgSend_572Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); + late final __objc_msgSend_572 = __objc_msgSend_572Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__va_list_tag>)>(); + + late final _sel_localizedAttributedStringWithFormat_context_1 = + _registerName1("localizedAttributedStringWithFormat:context:"); + instancetype _objc_msgSend_573( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + ffi.Pointer context, + ) { + return __objc_msgSend_573( + obj, + sel, + format, + context, + ); + } + + late final __objc_msgSend_573Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_573 = __objc_msgSend_573Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_localizedAttributedStringWithFormat_options_context_1 = + _registerName1("localizedAttributedStringWithFormat:options:context:"); + instancetype _objc_msgSend_574( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + int options, + ffi.Pointer context, + ) { + return __objc_msgSend_574( + obj, + sel, + format, + options, + context, + ); + } + + late final __objc_msgSend_574Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_574 = __objc_msgSend_574Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, ffi.Pointer)>(); + late final _sel_attributedStringByInflectingString1 = _registerName1("attributedStringByInflectingString"); - ffi.Pointer _objc_msgSend_541( + ffi.Pointer _objc_msgSend_575( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_541( + return __objc_msgSend_575( obj, sel, ); } - late final __objc_msgSend_541Ptr = _lookup< + late final __objc_msgSend_575Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_541 = __objc_msgSend_541Ptr.asFunction< + late final __objc_msgSend_575 = __objc_msgSend_575Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_localizedAttributedStringForKey_value_table_1 = _registerName1("localizedAttributedStringForKey:value:table:"); - ffi.Pointer _objc_msgSend_542( + ffi.Pointer _objc_msgSend_576( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ffi.Pointer value, ffi.Pointer tableName, ) { - return __objc_msgSend_542( + return __objc_msgSend_576( obj, sel, key, @@ -15235,7 +16026,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_542Ptr = _lookup< + late final __objc_msgSend_576Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -15243,7 +16034,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_542 = __objc_msgSend_542Ptr.asFunction< + late final __objc_msgSend_576 = __objc_msgSend_576Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -15268,13 +16059,13 @@ class PedometerBindings { _registerName1("preferredLocalizationsFromArray:"); late final _sel_preferredLocalizationsFromArray_forPreferences_1 = _registerName1("preferredLocalizationsFromArray:forPreferences:"); - ffi.Pointer _objc_msgSend_543( + ffi.Pointer _objc_msgSend_577( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer localizationsArray, ffi.Pointer preferencesArray, ) { - return __objc_msgSend_543( + return __objc_msgSend_577( obj, sel, localizationsArray, @@ -15282,14 +16073,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_543Ptr = _lookup< + late final __objc_msgSend_577Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_543 = __objc_msgSend_543Ptr.asFunction< + late final __objc_msgSend_577 = __objc_msgSend_577Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -15300,13 +16091,13 @@ class PedometerBindings { _registerName1("executableArchitectures"); late final _sel_setPreservationPriority_forTags_1 = _registerName1("setPreservationPriority:forTags:"); - void _objc_msgSend_544( + void _objc_msgSend_578( ffi.Pointer obj, ffi.Pointer sel, double priority, ffi.Pointer tags, ) { - return __objc_msgSend_544( + return __objc_msgSend_578( obj, sel, priority, @@ -15314,11 +16105,11 @@ class PedometerBindings { ); } - late final __objc_msgSend_544Ptr = _lookup< + late final __objc_msgSend_578Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Double, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_544 = __objc_msgSend_544Ptr.asFunction< + late final __objc_msgSend_578 = __objc_msgSend_578Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, double, ffi.Pointer)>(); @@ -15328,13 +16119,13 @@ class PedometerBindings { _getClass1("NSMutableAttributedString"); late final _sel_setAttributes_range_1 = _registerName1("setAttributes:range:"); - void _objc_msgSend_545( + void _objc_msgSend_579( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attrs, _NSRange range, ) { - return __objc_msgSend_545( + return __objc_msgSend_579( obj, sel, attrs, @@ -15342,43 +16133,43 @@ class PedometerBindings { ); } - late final __objc_msgSend_545Ptr = _lookup< + late final __objc_msgSend_579Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_545 = __objc_msgSend_545Ptr.asFunction< + late final __objc_msgSend_579 = __objc_msgSend_579Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_mutableString1 = _registerName1("mutableString"); - ffi.Pointer _objc_msgSend_546( + ffi.Pointer _objc_msgSend_580( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_546( + return __objc_msgSend_580( obj, sel, ); } - late final __objc_msgSend_546Ptr = _lookup< + late final __objc_msgSend_580Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_546 = __objc_msgSend_546Ptr.asFunction< + late final __objc_msgSend_580 = __objc_msgSend_580Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_addAttribute_value_range_1 = _registerName1("addAttribute:value:range:"); - void _objc_msgSend_547( + void _objc_msgSend_581( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer value, _NSRange range, ) { - return __objc_msgSend_547( + return __objc_msgSend_581( obj, sel, name, @@ -15387,7 +16178,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_547Ptr = _lookup< + late final __objc_msgSend_581Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -15395,21 +16186,43 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_547 = __objc_msgSend_547Ptr.asFunction< + late final __objc_msgSend_581 = __objc_msgSend_581Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_addAttributes_range_1 = _registerName1("addAttributes:range:"); + void _objc_msgSend_582( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer attrs, + _NSRange range, + ) { + return __objc_msgSend_582( + obj, + sel, + attrs, + range, + ); + } + + late final __objc_msgSend_582Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_582 = __objc_msgSend_582Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, _NSRange)>(); + late final _sel_removeAttribute_range_1 = _registerName1("removeAttribute:range:"); - void _objc_msgSend_548( + void _objc_msgSend_583( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, _NSRange range, ) { - return __objc_msgSend_548( + return __objc_msgSend_583( obj, sel, name, @@ -15417,23 +16230,23 @@ class PedometerBindings { ); } - late final __objc_msgSend_548Ptr = _lookup< + late final __objc_msgSend_583Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_548 = __objc_msgSend_548Ptr.asFunction< + late final __objc_msgSend_583 = __objc_msgSend_583Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_replaceCharactersInRange_withAttributedString_1 = _registerName1("replaceCharactersInRange:withAttributedString:"); - void _objc_msgSend_549( + void _objc_msgSend_584( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer attrString, ) { - return __objc_msgSend_549( + return __objc_msgSend_584( obj, sel, range, @@ -15441,23 +16254,23 @@ class PedometerBindings { ); } - late final __objc_msgSend_549Ptr = _lookup< + late final __objc_msgSend_584Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_549 = __objc_msgSend_549Ptr.asFunction< + late final __objc_msgSend_584 = __objc_msgSend_584Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_insertAttributedString_atIndex_1 = _registerName1("insertAttributedString:atIndex:"); - void _objc_msgSend_550( + void _objc_msgSend_585( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attrString, int loc, ) { - return __objc_msgSend_550( + return __objc_msgSend_585( obj, sel, attrString, @@ -15465,33 +16278,33 @@ class PedometerBindings { ); } - late final __objc_msgSend_550Ptr = _lookup< + late final __objc_msgSend_585Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_550 = __objc_msgSend_550Ptr.asFunction< + late final __objc_msgSend_585 = __objc_msgSend_585Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_appendAttributedString_1 = _registerName1("appendAttributedString:"); - void _objc_msgSend_551( + void _objc_msgSend_586( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attrString, ) { - return __objc_msgSend_551( + return __objc_msgSend_586( obj, sel, attrString, ); } - late final __objc_msgSend_551Ptr = _lookup< + late final __objc_msgSend_586Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_551 = __objc_msgSend_551Ptr.asFunction< + late final __objc_msgSend_586 = __objc_msgSend_586Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -15505,15 +16318,35 @@ class PedometerBindings { late final _class_NSFormatter1 = _getClass1("NSFormatter"); late final _sel_stringForObjectValue_1 = _registerName1("stringForObjectValue:"); + ffi.Pointer _objc_msgSend_587( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer obj1, + ) { + return __objc_msgSend_587( + obj, + sel, + obj1, + ); + } + + late final __objc_msgSend_587Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_587 = __objc_msgSend_587Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_attributedStringForObjectValue_withDefaultAttributes_1 = _registerName1("attributedStringForObjectValue:withDefaultAttributes:"); - ffi.Pointer _objc_msgSend_552( + ffi.Pointer _objc_msgSend_588( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer obj1, ffi.Pointer attrs, ) { - return __objc_msgSend_552( + return __objc_msgSend_588( obj, sel, obj1, @@ -15521,14 +16354,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_552Ptr = _lookup< + late final __objc_msgSend_588Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_552 = __objc_msgSend_552Ptr.asFunction< + late final __objc_msgSend_588 = __objc_msgSend_588Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -15539,14 +16372,14 @@ class PedometerBindings { _registerName1("editingStringForObjectValue:"); late final _sel_getObjectValue_forString_errorDescription_1 = _registerName1("getObjectValue:forString:errorDescription:"); - bool _objc_msgSend_553( + bool _objc_msgSend_589( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> obj1, ffi.Pointer string, ffi.Pointer> error, ) { - return __objc_msgSend_553( + return __objc_msgSend_589( obj, sel, obj1, @@ -15555,7 +16388,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_553Ptr = _lookup< + late final __objc_msgSend_589Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -15563,7 +16396,7 @@ class PedometerBindings { ffi.Pointer>, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_553 = __objc_msgSend_553Ptr.asFunction< + late final __objc_msgSend_589 = __objc_msgSend_589Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -15573,14 +16406,14 @@ class PedometerBindings { late final _sel_isPartialStringValid_newEditingString_errorDescription_1 = _registerName1("isPartialStringValid:newEditingString:errorDescription:"); - bool _objc_msgSend_554( + bool _objc_msgSend_590( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer partialString, ffi.Pointer> newString, ffi.Pointer> error, ) { - return __objc_msgSend_554( + return __objc_msgSend_590( obj, sel, partialString, @@ -15589,7 +16422,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_554Ptr = _lookup< + late final __objc_msgSend_590Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -15597,7 +16430,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_554 = __objc_msgSend_554Ptr.asFunction< + late final __objc_msgSend_590 = __objc_msgSend_590Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -15608,7 +16441,7 @@ class PedometerBindings { late final _sel_isPartialStringValid_proposedSelectedRange_originalString_originalSelectedRange_errorDescription_1 = _registerName1( "isPartialStringValid:proposedSelectedRange:originalString:originalSelectedRange:errorDescription:"); - bool _objc_msgSend_555( + bool _objc_msgSend_591( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> partialStringPtr, @@ -15617,7 +16450,7 @@ class PedometerBindings { _NSRange origSelRange, ffi.Pointer> error, ) { - return __objc_msgSend_555( + return __objc_msgSend_591( obj, sel, partialStringPtr, @@ -15628,7 +16461,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_555Ptr = _lookup< + late final __objc_msgSend_591Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -15638,7 +16471,7 @@ class PedometerBindings { ffi.Pointer, _NSRange, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_555 = __objc_msgSend_555Ptr.asFunction< + late final __objc_msgSend_591 = __objc_msgSend_591Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -15649,47 +16482,47 @@ class PedometerBindings { ffi.Pointer>)>(); late final _sel_formattingContext1 = _registerName1("formattingContext"); - int _objc_msgSend_556( + int _objc_msgSend_592( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_556( + return __objc_msgSend_592( obj, sel, ); } - late final __objc_msgSend_556Ptr = _lookup< + late final __objc_msgSend_592Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_556 = __objc_msgSend_556Ptr.asFunction< + late final __objc_msgSend_592 = __objc_msgSend_592Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setFormattingContext_1 = _registerName1("setFormattingContext:"); - void _objc_msgSend_557( + void _objc_msgSend_593( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_557( + return __objc_msgSend_593( obj, sel, value, ); } - late final __objc_msgSend_557Ptr = _lookup< + late final __objc_msgSend_593Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_557 = __objc_msgSend_557Ptr.asFunction< + late final __objc_msgSend_593 = __objc_msgSend_593Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_getObjectValue_forString_range_error_1 = _registerName1("getObjectValue:forString:range:error:"); - bool _objc_msgSend_558( + bool _objc_msgSend_594( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> obj1, @@ -15697,7 +16530,7 @@ class PedometerBindings { ffi.Pointer<_NSRange> rangep, ffi.Pointer> error, ) { - return __objc_msgSend_558( + return __objc_msgSend_594( obj, sel, obj1, @@ -15707,7 +16540,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_558Ptr = _lookup< + late final __objc_msgSend_594Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -15716,7 +16549,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer<_NSRange>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_558 = __objc_msgSend_558Ptr.asFunction< + late final __objc_msgSend_594 = __objc_msgSend_594Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -15726,57 +16559,57 @@ class PedometerBindings { ffi.Pointer>)>(); late final _sel_stringFromDate_1 = _registerName1("stringFromDate:"); - ffi.Pointer _objc_msgSend_559( + ffi.Pointer _objc_msgSend_595( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, ) { - return __objc_msgSend_559( + return __objc_msgSend_595( obj, sel, date, ); } - late final __objc_msgSend_559Ptr = _lookup< + late final __objc_msgSend_595Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_559 = __objc_msgSend_559Ptr.asFunction< + late final __objc_msgSend_595 = __objc_msgSend_595Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dateFromString_1 = _registerName1("dateFromString:"); - ffi.Pointer _objc_msgSend_560( + ffi.Pointer _objc_msgSend_596( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, ) { - return __objc_msgSend_560( + return __objc_msgSend_596( obj, sel, string, ); } - late final __objc_msgSend_560Ptr = _lookup< + late final __objc_msgSend_596Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_560 = __objc_msgSend_560Ptr.asFunction< + late final __objc_msgSend_596 = __objc_msgSend_596Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_localizedStringFromDate_dateStyle_timeStyle_1 = _registerName1("localizedStringFromDate:dateStyle:timeStyle:"); - ffi.Pointer _objc_msgSend_561( + ffi.Pointer _objc_msgSend_597( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, int dstyle, int tstyle, ) { - return __objc_msgSend_561( + return __objc_msgSend_597( obj, sel, date, @@ -15785,7 +16618,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_561Ptr = _lookup< + late final __objc_msgSend_597Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -15793,20 +16626,20 @@ class PedometerBindings { ffi.Pointer, ffi.Int32, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_561 = __objc_msgSend_561Ptr.asFunction< + late final __objc_msgSend_597 = __objc_msgSend_597Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int)>(); late final _sel_dateFormatFromTemplate_options_locale_1 = _registerName1("dateFormatFromTemplate:options:locale:"); - ffi.Pointer _objc_msgSend_562( + ffi.Pointer _objc_msgSend_598( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer tmplate, int opts, ffi.Pointer locale, ) { - return __objc_msgSend_562( + return __objc_msgSend_598( obj, sel, tmplate, @@ -15815,7 +16648,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_562Ptr = _lookup< + late final __objc_msgSend_598Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -15823,7 +16656,7 @@ class PedometerBindings { ffi.Pointer, ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_562 = __objc_msgSend_562Ptr.asFunction< + late final __objc_msgSend_598 = __objc_msgSend_598Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -15833,42 +16666,42 @@ class PedometerBindings { late final _sel_defaultFormatterBehavior1 = _registerName1("defaultFormatterBehavior"); - int _objc_msgSend_563( + int _objc_msgSend_599( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_563( + return __objc_msgSend_599( obj, sel, ); } - late final __objc_msgSend_563Ptr = _lookup< + late final __objc_msgSend_599Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_563 = __objc_msgSend_563Ptr.asFunction< + late final __objc_msgSend_599 = __objc_msgSend_599Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setDefaultFormatterBehavior_1 = _registerName1("setDefaultFormatterBehavior:"); - void _objc_msgSend_564( + void _objc_msgSend_600( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_564( + return __objc_msgSend_600( obj, sel, value, ); } - late final __objc_msgSend_564Ptr = _lookup< + late final __objc_msgSend_600Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_564 = __objc_msgSend_564Ptr.asFunction< + late final __objc_msgSend_600 = __objc_msgSend_600Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setLocalizedDateFormatFromTemplate_1 = @@ -15876,64 +16709,64 @@ class PedometerBindings { late final _sel_dateFormat1 = _registerName1("dateFormat"); late final _sel_setDateFormat_1 = _registerName1("setDateFormat:"); late final _sel_dateStyle1 = _registerName1("dateStyle"); - int _objc_msgSend_565( + int _objc_msgSend_601( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_565( + return __objc_msgSend_601( obj, sel, ); } - late final __objc_msgSend_565Ptr = _lookup< + late final __objc_msgSend_601Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_565 = __objc_msgSend_565Ptr.asFunction< + late final __objc_msgSend_601 = __objc_msgSend_601Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setDateStyle_1 = _registerName1("setDateStyle:"); - void _objc_msgSend_566( + void _objc_msgSend_602( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_566( + return __objc_msgSend_602( obj, sel, value, ); } - late final __objc_msgSend_566Ptr = _lookup< + late final __objc_msgSend_602Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_566 = __objc_msgSend_566Ptr.asFunction< + late final __objc_msgSend_602 = __objc_msgSend_602Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_timeStyle1 = _registerName1("timeStyle"); late final _sel_setTimeStyle_1 = _registerName1("setTimeStyle:"); late final _sel_locale1 = _registerName1("locale"); late final _sel_setLocale_1 = _registerName1("setLocale:"); - void _objc_msgSend_567( + void _objc_msgSend_603( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_567( + return __objc_msgSend_603( obj, sel, value, ); } - late final __objc_msgSend_567Ptr = _lookup< + late final __objc_msgSend_603Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_567 = __objc_msgSend_567Ptr.asFunction< + late final __objc_msgSend_603 = __objc_msgSend_603Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -15947,73 +16780,113 @@ class PedometerBindings { late final _class_NSTimeZone1 = _getClass1("NSTimeZone"); late final _sel_secondsFromGMTForDate_1 = _registerName1("secondsFromGMTForDate:"); - int _objc_msgSend_568( + int _objc_msgSend_604( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aDate, ) { - return __objc_msgSend_568( + return __objc_msgSend_604( obj, sel, aDate, ); } - late final __objc_msgSend_568Ptr = _lookup< + late final __objc_msgSend_604Ptr = _lookup< ffi.NativeFunction< ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_568 = __objc_msgSend_568Ptr.asFunction< + late final __objc_msgSend_604 = __objc_msgSend_604Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_abbreviationForDate_1 = _registerName1("abbreviationForDate:"); + ffi.Pointer _objc_msgSend_605( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aDate, + ) { + return __objc_msgSend_605( + obj, + sel, + aDate, + ); + } + + late final __objc_msgSend_605Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_605 = __objc_msgSend_605Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_isDaylightSavingTimeForDate_1 = _registerName1("isDaylightSavingTimeForDate:"); late final _sel_daylightSavingTimeOffsetForDate_1 = _registerName1("daylightSavingTimeOffsetForDate:"); late final _sel_nextDaylightSavingTimeTransitionAfterDate_1 = _registerName1("nextDaylightSavingTimeTransitionAfterDate:"); + ffi.Pointer _objc_msgSend_606( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aDate, + ) { + return __objc_msgSend_606( + obj, + sel, + aDate, + ); + } + + late final __objc_msgSend_606Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_606 = __objc_msgSend_606Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_systemTimeZone1 = _registerName1("systemTimeZone"); - ffi.Pointer _objc_msgSend_569( + ffi.Pointer _objc_msgSend_607( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_569( + return __objc_msgSend_607( obj, sel, ); } - late final __objc_msgSend_569Ptr = _lookup< + late final __objc_msgSend_607Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_569 = __objc_msgSend_569Ptr.asFunction< + late final __objc_msgSend_607 = __objc_msgSend_607Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_resetSystemTimeZone1 = _registerName1("resetSystemTimeZone"); late final _sel_defaultTimeZone1 = _registerName1("defaultTimeZone"); late final _sel_setDefaultTimeZone_1 = _registerName1("setDefaultTimeZone:"); - void _objc_msgSend_570( + void _objc_msgSend_608( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_570( + return __objc_msgSend_608( obj, sel, value, ); } - late final __objc_msgSend_570Ptr = _lookup< + late final __objc_msgSend_608Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_570 = __objc_msgSend_570Ptr.asFunction< + late final __objc_msgSend_608 = __objc_msgSend_608Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -16023,23 +16896,23 @@ class PedometerBindings { _registerName1("abbreviationDictionary"); late final _sel_setAbbreviationDictionary_1 = _registerName1("setAbbreviationDictionary:"); - void _objc_msgSend_571( + void _objc_msgSend_609( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_571( + return __objc_msgSend_609( obj, sel, value, ); } - late final __objc_msgSend_571Ptr = _lookup< + late final __objc_msgSend_609Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_571 = __objc_msgSend_571Ptr.asFunction< + late final __objc_msgSend_609 = __objc_msgSend_609Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -16053,35 +16926,35 @@ class PedometerBindings { late final _sel_nextDaylightSavingTimeTransition1 = _registerName1("nextDaylightSavingTimeTransition"); late final _sel_isEqualToTimeZone_1 = _registerName1("isEqualToTimeZone:"); - bool _objc_msgSend_572( + bool _objc_msgSend_610( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aTimeZone, ) { - return __objc_msgSend_572( + return __objc_msgSend_610( obj, sel, aTimeZone, ); } - late final __objc_msgSend_572Ptr = _lookup< + late final __objc_msgSend_610Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_572 = __objc_msgSend_572Ptr.asFunction< + late final __objc_msgSend_610 = __objc_msgSend_610Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_localizedName_locale_1 = _registerName1("localizedName:locale:"); - ffi.Pointer _objc_msgSend_573( + ffi.Pointer _objc_msgSend_611( ffi.Pointer obj, ffi.Pointer sel, int style, ffi.Pointer locale, ) { - return __objc_msgSend_573( + return __objc_msgSend_611( obj, sel, style, @@ -16089,27 +16962,27 @@ class PedometerBindings { ); } - late final __objc_msgSend_573Ptr = _lookup< + late final __objc_msgSend_611Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_573 = __objc_msgSend_573Ptr.asFunction< + late final __objc_msgSend_611 = __objc_msgSend_611Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_timeZoneWithName_1 = _registerName1("timeZoneWithName:"); late final _sel_timeZoneWithName_data_1 = _registerName1("timeZoneWithName:data:"); - instancetype _objc_msgSend_574( + instancetype _objc_msgSend_612( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer tzName, ffi.Pointer aData, ) { - return __objc_msgSend_574( + return __objc_msgSend_612( obj, sel, tzName, @@ -16117,14 +16990,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_574Ptr = _lookup< + late final __objc_msgSend_612Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_574 = __objc_msgSend_574Ptr.asFunction< + late final __objc_msgSend_612 = __objc_msgSend_612Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -16132,23 +17005,23 @@ class PedometerBindings { late final _sel_initWithName_data_1 = _registerName1("initWithName:data:"); late final _sel_timeZoneForSecondsFromGMT_1 = _registerName1("timeZoneForSecondsFromGMT:"); - instancetype _objc_msgSend_575( + instancetype _objc_msgSend_613( ffi.Pointer obj, ffi.Pointer sel, int seconds, ) { - return __objc_msgSend_575( + return __objc_msgSend_613( obj, sel, seconds, ); } - late final __objc_msgSend_575Ptr = _lookup< + late final __objc_msgSend_613Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_575 = __objc_msgSend_575Ptr.asFunction< + late final __objc_msgSend_613 = __objc_msgSend_613Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -16158,21 +17031,21 @@ class PedometerBindings { late final _sel_setTimeZone_1 = _registerName1("setTimeZone:"); late final _class_NSCalendar1 = _getClass1("NSCalendar"); late final _sel_currentCalendar1 = _registerName1("currentCalendar"); - ffi.Pointer _objc_msgSend_576( + ffi.Pointer _objc_msgSend_614( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_576( + return __objc_msgSend_614( obj, sel, ); } - late final __objc_msgSend_576Ptr = _lookup< + late final __objc_msgSend_614Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_576 = __objc_msgSend_576Ptr.asFunction< + late final __objc_msgSend_614 = __objc_msgSend_614Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -16180,28 +17053,66 @@ class PedometerBindings { _registerName1("autoupdatingCurrentCalendar"); late final _sel_calendarWithIdentifier_1 = _registerName1("calendarWithIdentifier:"); - ffi.Pointer _objc_msgSend_577( + ffi.Pointer _objc_msgSend_615( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer calendarIdentifierConstant, ) { - return __objc_msgSend_577( + return __objc_msgSend_615( obj, sel, calendarIdentifierConstant, ); } - late final __objc_msgSend_577Ptr = _lookup< + late final __objc_msgSend_615Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_577 = __objc_msgSend_577Ptr.asFunction< + late final __objc_msgSend_615 = __objc_msgSend_615Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithCalendarIdentifier_1 = _registerName1("initWithCalendarIdentifier:"); + ffi.Pointer _objc_msgSend_616( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_616( + obj, + sel, + ); + } + + late final __objc_msgSend_616Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_616 = __objc_msgSend_616Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + void _objc_msgSend_617( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_617( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_617Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_617 = __objc_msgSend_617Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_firstWeekday1 = _registerName1("firstWeekday"); late final _sel_setFirstWeekday_1 = _registerName1("setFirstWeekday:"); late final _sel_minimumDaysInFirstWeek1 = @@ -16239,36 +17150,41 @@ class PedometerBindings { late final _sel_AMSymbol1 = _registerName1("AMSymbol"); late final _sel_PMSymbol1 = _registerName1("PMSymbol"); late final _sel_minimumRangeOfUnit_1 = _registerName1("minimumRangeOfUnit:"); - _NSRange _objc_msgSend_578( + void _objc_msgSend_618( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, int unit, ) { - return __objc_msgSend_578( + return __objc_msgSend_618( + stret, obj, sel, unit, ); } - late final __objc_msgSend_578Ptr = _lookup< + late final __objc_msgSend_618Ptr = _lookup< ffi.NativeFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_578 = __objc_msgSend_578Ptr.asFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.Void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend_stret'); + late final __objc_msgSend_618 = __objc_msgSend_618Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, int)>(); late final _sel_maximumRangeOfUnit_1 = _registerName1("maximumRangeOfUnit:"); late final _sel_rangeOfUnit_inUnit_forDate_1 = _registerName1("rangeOfUnit:inUnit:forDate:"); - _NSRange _objc_msgSend_579( + void _objc_msgSend_619( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, int smaller, int larger, ffi.Pointer date, ) { - return __objc_msgSend_579( + return __objc_msgSend_619( + stret, obj, sel, smaller, @@ -16277,24 +17193,29 @@ class PedometerBindings { ); } - late final __objc_msgSend_579Ptr = _lookup< + late final __objc_msgSend_619Ptr = _lookup< ffi.NativeFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_579 = __objc_msgSend_579Ptr.asFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, int, int, - ffi.Pointer)>(); + ffi.Void Function( + ffi.Pointer<_NSRange>, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Int32, + ffi.Pointer)>>('objc_msgSend_stret'); + late final __objc_msgSend_619 = __objc_msgSend_619Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, int, int, ffi.Pointer)>(); late final _sel_ordinalityOfUnit_inUnit_forDate_1 = _registerName1("ordinalityOfUnit:inUnit:forDate:"); - int _objc_msgSend_580( + int _objc_msgSend_620( ffi.Pointer obj, ffi.Pointer sel, int smaller, int larger, ffi.Pointer date, ) { - return __objc_msgSend_580( + return __objc_msgSend_620( obj, sel, smaller, @@ -16303,7 +17224,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_580Ptr = _lookup< + late final __objc_msgSend_620Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedLong Function( ffi.Pointer, @@ -16311,13 +17232,13 @@ class PedometerBindings { ffi.Int32, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_580 = __objc_msgSend_580Ptr.asFunction< + late final __objc_msgSend_620 = __objc_msgSend_620Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer)>(); late final _sel_rangeOfUnit_startDate_interval_forDate_1 = _registerName1("rangeOfUnit:startDate:interval:forDate:"); - bool _objc_msgSend_581( + bool _objc_msgSend_621( ffi.Pointer obj, ffi.Pointer sel, int unit, @@ -16325,7 +17246,7 @@ class PedometerBindings { ffi.Pointer tip, ffi.Pointer date, ) { - return __objc_msgSend_581( + return __objc_msgSend_621( obj, sel, unit, @@ -16335,7 +17256,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_581Ptr = _lookup< + late final __objc_msgSend_621Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -16344,7 +17265,7 @@ class PedometerBindings { ffi.Pointer>, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_581 = __objc_msgSend_581Ptr.asFunction< + late final __objc_msgSend_621 = __objc_msgSend_621Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -16355,46 +17276,102 @@ class PedometerBindings { late final _class_NSDateComponents1 = _getClass1("NSDateComponents"); late final _sel_calendar1 = _registerName1("calendar"); + ffi.Pointer _objc_msgSend_622( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_622( + obj, + sel, + ); + } + + late final __objc_msgSend_622Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_622 = __objc_msgSend_622Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_setCalendar_1 = _registerName1("setCalendar:"); - void _objc_msgSend_582( + void _objc_msgSend_623( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_582( + return __objc_msgSend_623( obj, sel, value, ); } - late final __objc_msgSend_582Ptr = _lookup< + late final __objc_msgSend_623Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_582 = __objc_msgSend_582Ptr.asFunction< + late final __objc_msgSend_623 = __objc_msgSend_623Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + ffi.Pointer _objc_msgSend_624( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_624( + obj, + sel, + ); + } + + late final __objc_msgSend_624Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_624 = __objc_msgSend_624Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + void _objc_msgSend_625( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_625( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_625Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_625 = __objc_msgSend_625Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_era1 = _registerName1("era"); late final _sel_setEra_1 = _registerName1("setEra:"); - void _objc_msgSend_583( + void _objc_msgSend_626( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_583( + return __objc_msgSend_626( obj, sel, value, ); } - late final __objc_msgSend_583Ptr = _lookup< + late final __objc_msgSend_626Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_583 = __objc_msgSend_583Ptr.asFunction< + late final __objc_msgSend_626 = __objc_msgSend_626Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_year1 = _registerName1("year"); @@ -16430,13 +17407,13 @@ class PedometerBindings { late final _sel_setWeek_1 = _registerName1("setWeek:"); late final _sel_setValue_forComponent_1 = _registerName1("setValue:forComponent:"); - void _objc_msgSend_584( + void _objc_msgSend_627( ffi.Pointer obj, ffi.Pointer sel, int value, int unit, ) { - return __objc_msgSend_584( + return __objc_msgSend_627( obj, sel, value, @@ -16444,86 +17421,86 @@ class PedometerBindings { ); } - late final __objc_msgSend_584Ptr = _lookup< + late final __objc_msgSend_627Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Long, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_584 = __objc_msgSend_584Ptr.asFunction< + late final __objc_msgSend_627 = __objc_msgSend_627Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, int)>(); late final _sel_valueForComponent_1 = _registerName1("valueForComponent:"); - int _objc_msgSend_585( + int _objc_msgSend_628( ffi.Pointer obj, ffi.Pointer sel, int unit, ) { - return __objc_msgSend_585( + return __objc_msgSend_628( obj, sel, unit, ); } - late final __objc_msgSend_585Ptr = _lookup< + late final __objc_msgSend_628Ptr = _lookup< ffi.NativeFunction< ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_585 = __objc_msgSend_585Ptr.asFunction< + late final __objc_msgSend_628 = __objc_msgSend_628Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_isValidDate1 = _registerName1("isValidDate"); late final _sel_isValidDateInCalendar_1 = _registerName1("isValidDateInCalendar:"); - bool _objc_msgSend_586( + bool _objc_msgSend_629( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer calendar, ) { - return __objc_msgSend_586( + return __objc_msgSend_629( obj, sel, calendar, ); } - late final __objc_msgSend_586Ptr = _lookup< + late final __objc_msgSend_629Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_586 = __objc_msgSend_586Ptr.asFunction< + late final __objc_msgSend_629 = __objc_msgSend_629Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dateFromComponents_1 = _registerName1("dateFromComponents:"); - ffi.Pointer _objc_msgSend_587( + ffi.Pointer _objc_msgSend_630( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer comps, ) { - return __objc_msgSend_587( + return __objc_msgSend_630( obj, sel, comps, ); } - late final __objc_msgSend_587Ptr = _lookup< + late final __objc_msgSend_630Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_587 = __objc_msgSend_587Ptr.asFunction< + late final __objc_msgSend_630 = __objc_msgSend_630Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_components_fromDate_1 = _registerName1("components:fromDate:"); - ffi.Pointer _objc_msgSend_588( + ffi.Pointer _objc_msgSend_631( ffi.Pointer obj, ffi.Pointer sel, int unitFlags, ffi.Pointer date, ) { - return __objc_msgSend_588( + return __objc_msgSend_631( obj, sel, unitFlags, @@ -16531,27 +17508,27 @@ class PedometerBindings { ); } - late final __objc_msgSend_588Ptr = _lookup< + late final __objc_msgSend_631Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_588 = __objc_msgSend_588Ptr.asFunction< + late final __objc_msgSend_631 = __objc_msgSend_631Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_dateByAddingComponents_toDate_options_1 = _registerName1("dateByAddingComponents:toDate:options:"); - ffi.Pointer _objc_msgSend_589( + ffi.Pointer _objc_msgSend_632( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer comps, ffi.Pointer date, int opts, ) { - return __objc_msgSend_589( + return __objc_msgSend_632( obj, sel, comps, @@ -16560,7 +17537,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_589Ptr = _lookup< + late final __objc_msgSend_632Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -16568,7 +17545,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_589 = __objc_msgSend_589Ptr.asFunction< + late final __objc_msgSend_632 = __objc_msgSend_632Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -16578,7 +17555,7 @@ class PedometerBindings { late final _sel_components_fromDate_toDate_options_1 = _registerName1("components:fromDate:toDate:options:"); - ffi.Pointer _objc_msgSend_590( + ffi.Pointer _objc_msgSend_633( ffi.Pointer obj, ffi.Pointer sel, int unitFlags, @@ -16586,7 +17563,7 @@ class PedometerBindings { ffi.Pointer resultDate, int opts, ) { - return __objc_msgSend_590( + return __objc_msgSend_633( obj, sel, unitFlags, @@ -16596,7 +17573,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_590Ptr = _lookup< + late final __objc_msgSend_633Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -16605,7 +17582,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_590 = __objc_msgSend_590Ptr.asFunction< + late final __objc_msgSend_633 = __objc_msgSend_633Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -16616,7 +17593,7 @@ class PedometerBindings { late final _sel_getEra_year_month_day_fromDate_1 = _registerName1("getEra:year:month:day:fromDate:"); - void _objc_msgSend_591( + void _objc_msgSend_634( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer eraValuePointer, @@ -16625,7 +17602,7 @@ class PedometerBindings { ffi.Pointer dayValuePointer, ffi.Pointer date, ) { - return __objc_msgSend_591( + return __objc_msgSend_634( obj, sel, eraValuePointer, @@ -16636,7 +17613,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_591Ptr = _lookup< + late final __objc_msgSend_634Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -16646,7 +17623,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_591 = __objc_msgSend_591Ptr.asFunction< + late final __objc_msgSend_634 = __objc_msgSend_634Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -16661,13 +17638,13 @@ class PedometerBindings { late final _sel_getHour_minute_second_nanosecond_fromDate_1 = _registerName1("getHour:minute:second:nanosecond:fromDate:"); late final _sel_component_fromDate_1 = _registerName1("component:fromDate:"); - int _objc_msgSend_592( + int _objc_msgSend_635( ffi.Pointer obj, ffi.Pointer sel, int unit, ffi.Pointer date, ) { - return __objc_msgSend_592( + return __objc_msgSend_635( obj, sel, unit, @@ -16675,18 +17652,18 @@ class PedometerBindings { ); } - late final __objc_msgSend_592Ptr = _lookup< + late final __objc_msgSend_635Ptr = _lookup< ffi.NativeFunction< ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_592 = __objc_msgSend_592Ptr.asFunction< + late final __objc_msgSend_635 = __objc_msgSend_635Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_dateWithEra_year_month_day_hour_minute_second_nanosecond_1 = _registerName1( "dateWithEra:year:month:day:hour:minute:second:nanosecond:"); - ffi.Pointer _objc_msgSend_593( + ffi.Pointer _objc_msgSend_636( ffi.Pointer obj, ffi.Pointer sel, int eraValue, @@ -16698,7 +17675,7 @@ class PedometerBindings { int secondValue, int nanosecondValue, ) { - return __objc_msgSend_593( + return __objc_msgSend_636( obj, sel, eraValue, @@ -16712,7 +17689,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_593Ptr = _lookup< + late final __objc_msgSend_636Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -16725,7 +17702,7 @@ class PedometerBindings { ffi.Long, ffi.Long, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_593 = __objc_msgSend_593Ptr.asFunction< + late final __objc_msgSend_636 = __objc_msgSend_636Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, int, int, int, int, int, int, int)>(); @@ -16735,13 +17712,13 @@ class PedometerBindings { late final _sel_startOfDayForDate_1 = _registerName1("startOfDayForDate:"); late final _sel_componentsInTimeZone_fromDate_1 = _registerName1("componentsInTimeZone:fromDate:"); - ffi.Pointer _objc_msgSend_594( + ffi.Pointer _objc_msgSend_637( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer timezone, ffi.Pointer date, ) { - return __objc_msgSend_594( + return __objc_msgSend_637( obj, sel, timezone, @@ -16749,14 +17726,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_594Ptr = _lookup< + late final __objc_msgSend_637Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_594 = __objc_msgSend_594Ptr.asFunction< + late final __objc_msgSend_637 = __objc_msgSend_637Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -16765,14 +17742,14 @@ class PedometerBindings { late final _sel_compareDate_toDate_toUnitGranularity_1 = _registerName1("compareDate:toDate:toUnitGranularity:"); - int _objc_msgSend_595( + int _objc_msgSend_638( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date1, ffi.Pointer date2, int unit, ) { - return __objc_msgSend_595( + return __objc_msgSend_638( obj, sel, date1, @@ -16781,7 +17758,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_595Ptr = _lookup< + late final __objc_msgSend_638Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, @@ -16789,20 +17766,20 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_595 = __objc_msgSend_595Ptr.asFunction< + late final __objc_msgSend_638 = __objc_msgSend_638Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_isDate_equalToDate_toUnitGranularity_1 = _registerName1("isDate:equalToDate:toUnitGranularity:"); - bool _objc_msgSend_596( + bool _objc_msgSend_639( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date1, ffi.Pointer date2, int unit, ) { - return __objc_msgSend_596( + return __objc_msgSend_639( obj, sel, date1, @@ -16811,7 +17788,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_596Ptr = _lookup< + late final __objc_msgSend_639Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -16819,19 +17796,19 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_596 = __objc_msgSend_596Ptr.asFunction< + late final __objc_msgSend_639 = __objc_msgSend_639Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_isDate_inSameDayAsDate_1 = _registerName1("isDate:inSameDayAsDate:"); - bool _objc_msgSend_597( + bool _objc_msgSend_640( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date1, ffi.Pointer date2, ) { - return __objc_msgSend_597( + return __objc_msgSend_640( obj, sel, date1, @@ -16839,14 +17816,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_597Ptr = _lookup< + late final __objc_msgSend_640Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_597 = __objc_msgSend_597Ptr.asFunction< + late final __objc_msgSend_640 = __objc_msgSend_640Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -16856,14 +17833,14 @@ class PedometerBindings { late final _sel_isDateInWeekend_1 = _registerName1("isDateInWeekend:"); late final _sel_rangeOfWeekendStartDate_interval_containingDate_1 = _registerName1("rangeOfWeekendStartDate:interval:containingDate:"); - bool _objc_msgSend_598( + bool _objc_msgSend_641( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> datep, ffi.Pointer tip, ffi.Pointer date, ) { - return __objc_msgSend_598( + return __objc_msgSend_641( obj, sel, datep, @@ -16872,7 +17849,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_598Ptr = _lookup< + late final __objc_msgSend_641Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -16880,7 +17857,7 @@ class PedometerBindings { ffi.Pointer>, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_598 = __objc_msgSend_598Ptr.asFunction< + late final __objc_msgSend_641 = __objc_msgSend_641Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -16890,7 +17867,7 @@ class PedometerBindings { late final _sel_nextWeekendStartDate_interval_options_afterDate_1 = _registerName1("nextWeekendStartDate:interval:options:afterDate:"); - bool _objc_msgSend_599( + bool _objc_msgSend_642( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> datep, @@ -16898,7 +17875,7 @@ class PedometerBindings { int options, ffi.Pointer date, ) { - return __objc_msgSend_599( + return __objc_msgSend_642( obj, sel, datep, @@ -16908,7 +17885,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_599Ptr = _lookup< + late final __objc_msgSend_642Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -16917,7 +17894,7 @@ class PedometerBindings { ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_599 = __objc_msgSend_599Ptr.asFunction< + late final __objc_msgSend_642 = __objc_msgSend_642Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -16928,7 +17905,7 @@ class PedometerBindings { late final _sel_components_fromDateComponents_toDateComponents_options_1 = _registerName1("components:fromDateComponents:toDateComponents:options:"); - ffi.Pointer _objc_msgSend_600( + ffi.Pointer _objc_msgSend_643( ffi.Pointer obj, ffi.Pointer sel, int unitFlags, @@ -16936,7 +17913,7 @@ class PedometerBindings { ffi.Pointer resultDateComp, int options, ) { - return __objc_msgSend_600( + return __objc_msgSend_643( obj, sel, unitFlags, @@ -16946,7 +17923,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_600Ptr = _lookup< + late final __objc_msgSend_643Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -16955,7 +17932,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_600 = __objc_msgSend_600Ptr.asFunction< + late final __objc_msgSend_643 = __objc_msgSend_643Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -16966,7 +17943,7 @@ class PedometerBindings { late final _sel_dateByAddingUnit_value_toDate_options_1 = _registerName1("dateByAddingUnit:value:toDate:options:"); - ffi.Pointer _objc_msgSend_601( + ffi.Pointer _objc_msgSend_644( ffi.Pointer obj, ffi.Pointer sel, int unit, @@ -16974,7 +17951,7 @@ class PedometerBindings { ffi.Pointer date, int options, ) { - return __objc_msgSend_601( + return __objc_msgSend_644( obj, sel, unit, @@ -16984,7 +17961,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_601Ptr = _lookup< + late final __objc_msgSend_644Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -16993,14 +17970,14 @@ class PedometerBindings { ffi.Long, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_601 = __objc_msgSend_601Ptr.asFunction< + late final __objc_msgSend_644 = __objc_msgSend_644Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer, int)>(); late final _sel_enumerateDatesStartingAfterDate_matchingComponents_options_usingBlock_1 = _registerName1( "enumerateDatesStartingAfterDate:matchingComponents:options:usingBlock:"); - void _objc_msgSend_602( + void _objc_msgSend_645( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer start, @@ -17008,7 +17985,7 @@ class PedometerBindings { int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_602( + return __objc_msgSend_645( obj, sel, start, @@ -17018,7 +17995,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_602Ptr = _lookup< + late final __objc_msgSend_645Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -17027,7 +18004,7 @@ class PedometerBindings { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_602 = __objc_msgSend_602Ptr.asFunction< + late final __objc_msgSend_645 = __objc_msgSend_645Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -17038,14 +18015,14 @@ class PedometerBindings { late final _sel_nextDateAfterDate_matchingComponents_options_1 = _registerName1("nextDateAfterDate:matchingComponents:options:"); - ffi.Pointer _objc_msgSend_603( + ffi.Pointer _objc_msgSend_646( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, ffi.Pointer comps, int options, ) { - return __objc_msgSend_603( + return __objc_msgSend_646( obj, sel, date, @@ -17054,7 +18031,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_603Ptr = _lookup< + late final __objc_msgSend_646Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -17062,7 +18039,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_603 = __objc_msgSend_603Ptr.asFunction< + late final __objc_msgSend_646 = __objc_msgSend_646Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -17072,7 +18049,7 @@ class PedometerBindings { late final _sel_nextDateAfterDate_matchingUnit_value_options_1 = _registerName1("nextDateAfterDate:matchingUnit:value:options:"); - ffi.Pointer _objc_msgSend_604( + ffi.Pointer _objc_msgSend_647( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, @@ -17080,7 +18057,7 @@ class PedometerBindings { int value, int options, ) { - return __objc_msgSend_604( + return __objc_msgSend_647( obj, sel, date, @@ -17090,7 +18067,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_604Ptr = _lookup< + late final __objc_msgSend_647Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -17099,13 +18076,13 @@ class PedometerBindings { ffi.Int32, ffi.Long, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_604 = __objc_msgSend_604Ptr.asFunction< + late final __objc_msgSend_647 = __objc_msgSend_647Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int, int)>(); late final _sel_nextDateAfterDate_matchingHour_minute_second_options_1 = _registerName1("nextDateAfterDate:matchingHour:minute:second:options:"); - ffi.Pointer _objc_msgSend_605( + ffi.Pointer _objc_msgSend_648( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, @@ -17114,7 +18091,7 @@ class PedometerBindings { int secondValue, int options, ) { - return __objc_msgSend_605( + return __objc_msgSend_648( obj, sel, date, @@ -17125,7 +18102,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_605Ptr = _lookup< + late final __objc_msgSend_648Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -17135,7 +18112,7 @@ class PedometerBindings { ffi.Long, ffi.Long, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_605 = __objc_msgSend_605Ptr.asFunction< + late final __objc_msgSend_648 = __objc_msgSend_648Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int, int, int)>(); @@ -17143,7 +18120,7 @@ class PedometerBindings { _registerName1("dateBySettingUnit:value:ofDate:options:"); late final _sel_dateBySettingHour_minute_second_ofDate_options_1 = _registerName1("dateBySettingHour:minute:second:ofDate:options:"); - ffi.Pointer _objc_msgSend_606( + ffi.Pointer _objc_msgSend_649( ffi.Pointer obj, ffi.Pointer sel, int h, @@ -17152,7 +18129,7 @@ class PedometerBindings { ffi.Pointer date, int opts, ) { - return __objc_msgSend_606( + return __objc_msgSend_649( obj, sel, h, @@ -17163,7 +18140,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_606Ptr = _lookup< + late final __objc_msgSend_649Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -17173,19 +18150,19 @@ class PedometerBindings { ffi.Long, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_606 = __objc_msgSend_606Ptr.asFunction< + late final __objc_msgSend_649 = __objc_msgSend_649Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, int, int, ffi.Pointer, int)>(); late final _sel_date_matchesComponents_1 = _registerName1("date:matchesComponents:"); - bool _objc_msgSend_607( + bool _objc_msgSend_650( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, ffi.Pointer components, ) { - return __objc_msgSend_607( + return __objc_msgSend_650( obj, sel, date, @@ -17193,62 +18170,82 @@ class PedometerBindings { ); } - late final __objc_msgSend_607Ptr = _lookup< + late final __objc_msgSend_650Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_607 = __objc_msgSend_607Ptr.asFunction< + late final __objc_msgSend_650 = __objc_msgSend_650Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + void _objc_msgSend_651( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_651( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_651Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_651 = __objc_msgSend_651Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_isLenient1 = _registerName1("isLenient"); late final _sel_setLenient_1 = _registerName1("setLenient:"); late final _sel_twoDigitStartDate1 = _registerName1("twoDigitStartDate"); late final _sel_setTwoDigitStartDate_1 = _registerName1("setTwoDigitStartDate:"); - void _objc_msgSend_608( + void _objc_msgSend_652( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_608( + return __objc_msgSend_652( obj, sel, value, ); } - late final __objc_msgSend_608Ptr = _lookup< + late final __objc_msgSend_652Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_608 = __objc_msgSend_608Ptr.asFunction< + late final __objc_msgSend_652 = __objc_msgSend_652Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_defaultDate1 = _registerName1("defaultDate"); late final _sel_setDefaultDate_1 = _registerName1("setDefaultDate:"); late final _sel_setEraSymbols_1 = _registerName1("setEraSymbols:"); - void _objc_msgSend_609( + void _objc_msgSend_653( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_609( + return __objc_msgSend_653( obj, sel, value, ); } - late final __objc_msgSend_609Ptr = _lookup< + late final __objc_msgSend_653Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_609 = __objc_msgSend_609Ptr.asFunction< + late final __objc_msgSend_653 = __objc_msgSend_653Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -17291,703 +18288,198 @@ class PedometerBindings { _registerName1("doesRelativeDateFormatting"); late final _sel_setDoesRelativeDateFormatting_1 = _registerName1("setDoesRelativeDateFormatting:"); - late final _sel_initWithDateFormat_allowNaturalLanguage_1 = - _registerName1("initWithDateFormat:allowNaturalLanguage:"); - late final _sel_allowsNaturalLanguage1 = - _registerName1("allowsNaturalLanguage"); - late final _class_NSNumberFormatter1 = _getClass1("NSNumberFormatter"); - late final _sel_stringFromNumber_1 = _registerName1("stringFromNumber:"); - ffi.Pointer _objc_msgSend_610( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer number, - ) { - return __objc_msgSend_610( - obj, - sel, - number, - ); - } - - late final __objc_msgSend_610Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_610 = __objc_msgSend_610Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_numberFromString_1 = _registerName1("numberFromString:"); - ffi.Pointer _objc_msgSend_611( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer string, - ) { - return __objc_msgSend_611( - obj, - sel, - string, - ); - } - - late final __objc_msgSend_611Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_611 = __objc_msgSend_611Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_localizedStringFromNumber_numberStyle_1 = - _registerName1("localizedStringFromNumber:numberStyle:"); - ffi.Pointer _objc_msgSend_612( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer num, - int nstyle, - ) { - return __objc_msgSend_612( - obj, - sel, - num, - nstyle, - ); - } - - late final __objc_msgSend_612Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_612 = __objc_msgSend_612Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); - - int _objc_msgSend_613( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_613( - obj, - sel, - ); - } - - late final __objc_msgSend_613Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_613 = __objc_msgSend_613Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - void _objc_msgSend_614( - ffi.Pointer obj, - ffi.Pointer sel, - int behavior, - ) { - return __objc_msgSend_614( - obj, - sel, - behavior, - ); - } - - late final __objc_msgSend_614Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_614 = __objc_msgSend_614Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_numberStyle1 = _registerName1("numberStyle"); - int _objc_msgSend_615( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_615( - obj, - sel, - ); - } - - late final __objc_msgSend_615Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_615 = __objc_msgSend_615Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setNumberStyle_1 = _registerName1("setNumberStyle:"); - void _objc_msgSend_616( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_616( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_616Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_616 = __objc_msgSend_616Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_generatesDecimalNumbers1 = - _registerName1("generatesDecimalNumbers"); - late final _sel_setGeneratesDecimalNumbers_1 = - _registerName1("setGeneratesDecimalNumbers:"); - void _objc_msgSend_617( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_617( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_617Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_617 = __objc_msgSend_617Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_negativeFormat1 = _registerName1("negativeFormat"); - late final _sel_setNegativeFormat_1 = _registerName1("setNegativeFormat:"); - late final _sel_textAttributesForNegativeValues1 = - _registerName1("textAttributesForNegativeValues"); - late final _sel_setTextAttributesForNegativeValues_1 = - _registerName1("setTextAttributesForNegativeValues:"); - late final _sel_positiveFormat1 = _registerName1("positiveFormat"); - late final _sel_setPositiveFormat_1 = _registerName1("setPositiveFormat:"); - late final _sel_textAttributesForPositiveValues1 = - _registerName1("textAttributesForPositiveValues"); - late final _sel_setTextAttributesForPositiveValues_1 = - _registerName1("setTextAttributesForPositiveValues:"); - late final _sel_allowsFloats1 = _registerName1("allowsFloats"); - late final _sel_setAllowsFloats_1 = _registerName1("setAllowsFloats:"); - late final _sel_setDecimalSeparator_1 = - _registerName1("setDecimalSeparator:"); - late final _sel_alwaysShowsDecimalSeparator1 = - _registerName1("alwaysShowsDecimalSeparator"); - late final _sel_setAlwaysShowsDecimalSeparator_1 = - _registerName1("setAlwaysShowsDecimalSeparator:"); - late final _sel_currencyDecimalSeparator1 = - _registerName1("currencyDecimalSeparator"); - late final _sel_setCurrencyDecimalSeparator_1 = - _registerName1("setCurrencyDecimalSeparator:"); - late final _sel_usesGroupingSeparator1 = - _registerName1("usesGroupingSeparator"); - late final _sel_setUsesGroupingSeparator_1 = - _registerName1("setUsesGroupingSeparator:"); - late final _sel_setGroupingSeparator_1 = - _registerName1("setGroupingSeparator:"); - late final _sel_zeroSymbol1 = _registerName1("zeroSymbol"); - late final _sel_setZeroSymbol_1 = _registerName1("setZeroSymbol:"); - late final _sel_textAttributesForZero1 = - _registerName1("textAttributesForZero"); - late final _sel_setTextAttributesForZero_1 = - _registerName1("setTextAttributesForZero:"); - late final _sel_nilSymbol1 = _registerName1("nilSymbol"); - late final _sel_setNilSymbol_1 = _registerName1("setNilSymbol:"); - late final _sel_textAttributesForNil1 = - _registerName1("textAttributesForNil"); - late final _sel_setTextAttributesForNil_1 = - _registerName1("setTextAttributesForNil:"); - late final _sel_notANumberSymbol1 = _registerName1("notANumberSymbol"); - late final _sel_setNotANumberSymbol_1 = - _registerName1("setNotANumberSymbol:"); - late final _sel_textAttributesForNotANumber1 = - _registerName1("textAttributesForNotANumber"); - late final _sel_setTextAttributesForNotANumber_1 = - _registerName1("setTextAttributesForNotANumber:"); - late final _sel_positiveInfinitySymbol1 = - _registerName1("positiveInfinitySymbol"); - late final _sel_setPositiveInfinitySymbol_1 = - _registerName1("setPositiveInfinitySymbol:"); - late final _sel_textAttributesForPositiveInfinity1 = - _registerName1("textAttributesForPositiveInfinity"); - late final _sel_setTextAttributesForPositiveInfinity_1 = - _registerName1("setTextAttributesForPositiveInfinity:"); - late final _sel_negativeInfinitySymbol1 = - _registerName1("negativeInfinitySymbol"); - late final _sel_setNegativeInfinitySymbol_1 = - _registerName1("setNegativeInfinitySymbol:"); - late final _sel_textAttributesForNegativeInfinity1 = - _registerName1("textAttributesForNegativeInfinity"); - late final _sel_setTextAttributesForNegativeInfinity_1 = - _registerName1("setTextAttributesForNegativeInfinity:"); - late final _sel_positivePrefix1 = _registerName1("positivePrefix"); - late final _sel_setPositivePrefix_1 = _registerName1("setPositivePrefix:"); - late final _sel_positiveSuffix1 = _registerName1("positiveSuffix"); - late final _sel_setPositiveSuffix_1 = _registerName1("setPositiveSuffix:"); - late final _sel_negativePrefix1 = _registerName1("negativePrefix"); - late final _sel_setNegativePrefix_1 = _registerName1("setNegativePrefix:"); - late final _sel_negativeSuffix1 = _registerName1("negativeSuffix"); - late final _sel_setNegativeSuffix_1 = _registerName1("setNegativeSuffix:"); - late final _sel_setCurrencyCode_1 = _registerName1("setCurrencyCode:"); - late final _sel_setCurrencySymbol_1 = _registerName1("setCurrencySymbol:"); - late final _sel_internationalCurrencySymbol1 = - _registerName1("internationalCurrencySymbol"); - late final _sel_setInternationalCurrencySymbol_1 = - _registerName1("setInternationalCurrencySymbol:"); - late final _sel_percentSymbol1 = _registerName1("percentSymbol"); - late final _sel_setPercentSymbol_1 = _registerName1("setPercentSymbol:"); - late final _sel_perMillSymbol1 = _registerName1("perMillSymbol"); - late final _sel_setPerMillSymbol_1 = _registerName1("setPerMillSymbol:"); - late final _sel_minusSign1 = _registerName1("minusSign"); - late final _sel_setMinusSign_1 = _registerName1("setMinusSign:"); - late final _sel_plusSign1 = _registerName1("plusSign"); - late final _sel_setPlusSign_1 = _registerName1("setPlusSign:"); - late final _sel_exponentSymbol1 = _registerName1("exponentSymbol"); - late final _sel_setExponentSymbol_1 = _registerName1("setExponentSymbol:"); - late final _sel_groupingSize1 = _registerName1("groupingSize"); - late final _sel_setGroupingSize_1 = _registerName1("setGroupingSize:"); - late final _sel_secondaryGroupingSize1 = - _registerName1("secondaryGroupingSize"); - late final _sel_setSecondaryGroupingSize_1 = - _registerName1("setSecondaryGroupingSize:"); - late final _sel_multiplier1 = _registerName1("multiplier"); - late final _sel_setMultiplier_1 = _registerName1("setMultiplier:"); - late final _sel_formatWidth1 = _registerName1("formatWidth"); - late final _sel_setFormatWidth_1 = _registerName1("setFormatWidth:"); - late final _sel_paddingCharacter1 = _registerName1("paddingCharacter"); - late final _sel_setPaddingCharacter_1 = - _registerName1("setPaddingCharacter:"); - late final _sel_paddingPosition1 = _registerName1("paddingPosition"); - int _objc_msgSend_618( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_618( - obj, - sel, - ); - } - - late final __objc_msgSend_618Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_618 = __objc_msgSend_618Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setPaddingPosition_1 = _registerName1("setPaddingPosition:"); - void _objc_msgSend_619( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_619( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_619Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_619 = __objc_msgSend_619Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_roundingMode1 = _registerName1("roundingMode"); - int _objc_msgSend_620( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_620( - obj, - sel, - ); - } - - late final __objc_msgSend_620Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_620 = __objc_msgSend_620Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setRoundingMode_1 = _registerName1("setRoundingMode:"); - void _objc_msgSend_621( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_621( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_621Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_621 = __objc_msgSend_621Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_roundingIncrement1 = _registerName1("roundingIncrement"); - late final _sel_setRoundingIncrement_1 = - _registerName1("setRoundingIncrement:"); - late final _sel_minimumIntegerDigits1 = - _registerName1("minimumIntegerDigits"); - late final _sel_setMinimumIntegerDigits_1 = - _registerName1("setMinimumIntegerDigits:"); - late final _sel_maximumIntegerDigits1 = - _registerName1("maximumIntegerDigits"); - late final _sel_setMaximumIntegerDigits_1 = - _registerName1("setMaximumIntegerDigits:"); - late final _sel_minimumFractionDigits1 = - _registerName1("minimumFractionDigits"); - late final _sel_setMinimumFractionDigits_1 = - _registerName1("setMinimumFractionDigits:"); - late final _sel_maximumFractionDigits1 = - _registerName1("maximumFractionDigits"); - late final _sel_setMaximumFractionDigits_1 = - _registerName1("setMaximumFractionDigits:"); - late final _sel_minimum1 = _registerName1("minimum"); - late final _sel_setMinimum_1 = _registerName1("setMinimum:"); - late final _sel_maximum1 = _registerName1("maximum"); - late final _sel_setMaximum_1 = _registerName1("setMaximum:"); - late final _sel_currencyGroupingSeparator1 = - _registerName1("currencyGroupingSeparator"); - late final _sel_setCurrencyGroupingSeparator_1 = - _registerName1("setCurrencyGroupingSeparator:"); - late final _sel_usesSignificantDigits1 = - _registerName1("usesSignificantDigits"); - late final _sel_setUsesSignificantDigits_1 = - _registerName1("setUsesSignificantDigits:"); - late final _sel_minimumSignificantDigits1 = - _registerName1("minimumSignificantDigits"); - late final _sel_setMinimumSignificantDigits_1 = - _registerName1("setMinimumSignificantDigits:"); - late final _sel_maximumSignificantDigits1 = - _registerName1("maximumSignificantDigits"); - late final _sel_setMaximumSignificantDigits_1 = - _registerName1("setMaximumSignificantDigits:"); - late final _sel_isPartialStringValidationEnabled1 = - _registerName1("isPartialStringValidationEnabled"); - late final _sel_setPartialStringValidationEnabled_1 = - _registerName1("setPartialStringValidationEnabled:"); - late final _sel_hasThousandSeparators1 = - _registerName1("hasThousandSeparators"); - late final _sel_setHasThousandSeparators_1 = - _registerName1("setHasThousandSeparators:"); - late final _sel_thousandSeparator1 = _registerName1("thousandSeparator"); - late final _sel_setThousandSeparator_1 = - _registerName1("setThousandSeparator:"); - late final _sel_localizesFormat1 = _registerName1("localizesFormat"); - late final _sel_setLocalizesFormat_1 = _registerName1("setLocalizesFormat:"); - late final _sel_format1 = _registerName1("format"); - late final _sel_setFormat_1 = _registerName1("setFormat:"); - late final _sel_attributedStringForZero1 = - _registerName1("attributedStringForZero"); - late final _sel_setAttributedStringForZero_1 = - _registerName1("setAttributedStringForZero:"); - void _objc_msgSend_622( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ) { - return __objc_msgSend_622( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_622Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_622 = __objc_msgSend_622Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_attributedStringForNil1 = - _registerName1("attributedStringForNil"); - late final _sel_setAttributedStringForNil_1 = - _registerName1("setAttributedStringForNil:"); - late final _sel_attributedStringForNotANumber1 = - _registerName1("attributedStringForNotANumber"); - late final _sel_setAttributedStringForNotANumber_1 = - _registerName1("setAttributedStringForNotANumber:"); - late final _class_NSDecimalNumberHandler1 = - _getClass1("NSDecimalNumberHandler"); - late final _sel_defaultDecimalNumberHandler1 = - _registerName1("defaultDecimalNumberHandler"); - ffi.Pointer _objc_msgSend_623( + late final _class_NSScanner1 = _getClass1("NSScanner"); + late final _sel_scanLocation1 = _registerName1("scanLocation"); + late final _sel_setScanLocation_1 = _registerName1("setScanLocation:"); + late final _sel_charactersToBeSkipped1 = + _registerName1("charactersToBeSkipped"); + ffi.Pointer _objc_msgSend_654( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_623( + return __objc_msgSend_654( obj, sel, ); } - late final __objc_msgSend_623Ptr = _lookup< + late final __objc_msgSend_654Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_623 = __objc_msgSend_623Ptr.asFunction< + late final __objc_msgSend_654 = __objc_msgSend_654Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); - late final _sel_initWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_1 = - _registerName1( - "initWithRoundingMode:scale:raiseOnExactness:raiseOnOverflow:raiseOnUnderflow:raiseOnDivideByZero:"); - instancetype _objc_msgSend_624( - ffi.Pointer obj, - ffi.Pointer sel, - int roundingMode, - int scale, - bool exact, - bool overflow, - bool underflow, - bool divideByZero, - ) { - return __objc_msgSend_624( - obj, - sel, - roundingMode, - scale, - exact, - overflow, - underflow, - divideByZero, - ); - } - - late final __objc_msgSend_624Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Short, - ffi.Bool, - ffi.Bool, - ffi.Bool, - ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_624 = __objc_msgSend_624Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, int, - int, bool, bool, bool, bool)>(); - - late final _sel_decimalNumberHandlerWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_1 = - _registerName1( - "decimalNumberHandlerWithRoundingMode:scale:raiseOnExactness:raiseOnOverflow:raiseOnUnderflow:raiseOnDivideByZero:"); - late final _sel_roundingBehavior1 = _registerName1("roundingBehavior"); - late final _sel_setRoundingBehavior_1 = - _registerName1("setRoundingBehavior:"); - void _objc_msgSend_625( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ) { - return __objc_msgSend_625( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_625Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_625 = __objc_msgSend_625Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _class_NSScanner1 = _getClass1("NSScanner"); - late final _sel_scanLocation1 = _registerName1("scanLocation"); - late final _sel_setScanLocation_1 = _registerName1("setScanLocation:"); - late final _sel_charactersToBeSkipped1 = - _registerName1("charactersToBeSkipped"); late final _sel_setCharactersToBeSkipped_1 = _registerName1("setCharactersToBeSkipped:"); - void _objc_msgSend_626( + void _objc_msgSend_655( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_626( + return __objc_msgSend_655( obj, sel, value, ); } - late final __objc_msgSend_626Ptr = _lookup< + late final __objc_msgSend_655Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_626 = __objc_msgSend_626Ptr.asFunction< + late final __objc_msgSend_655 = __objc_msgSend_655Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_caseSensitive1 = _registerName1("caseSensitive"); late final _sel_setCaseSensitive_1 = _registerName1("setCaseSensitive:"); late final _sel_scanInt_1 = _registerName1("scanInt:"); - bool _objc_msgSend_627( + bool _objc_msgSend_656( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, ) { - return __objc_msgSend_627( + return __objc_msgSend_656( obj, sel, result, ); } - late final __objc_msgSend_627Ptr = _lookup< + late final __objc_msgSend_656Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_627 = __objc_msgSend_627Ptr.asFunction< + late final __objc_msgSend_656 = __objc_msgSend_656Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_scanInteger_1 = _registerName1("scanInteger:"); - bool _objc_msgSend_628( + bool _objc_msgSend_657( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, ) { - return __objc_msgSend_628( + return __objc_msgSend_657( obj, sel, result, ); } - late final __objc_msgSend_628Ptr = _lookup< + late final __objc_msgSend_657Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_628 = __objc_msgSend_628Ptr.asFunction< + late final __objc_msgSend_657 = __objc_msgSend_657Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_scanLongLong_1 = _registerName1("scanLongLong:"); - bool _objc_msgSend_629( + bool _objc_msgSend_658( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, ) { - return __objc_msgSend_629( + return __objc_msgSend_658( obj, sel, result, ); } - late final __objc_msgSend_629Ptr = _lookup< + late final __objc_msgSend_658Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_629 = __objc_msgSend_629Ptr.asFunction< + late final __objc_msgSend_658 = __objc_msgSend_658Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_scanUnsignedLongLong_1 = _registerName1("scanUnsignedLongLong:"); - bool _objc_msgSend_630( + bool _objc_msgSend_659( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, ) { - return __objc_msgSend_630( + return __objc_msgSend_659( obj, sel, result, ); } - late final __objc_msgSend_630Ptr = _lookup< + late final __objc_msgSend_659Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_630 = __objc_msgSend_630Ptr.asFunction< + late final __objc_msgSend_659 = __objc_msgSend_659Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_scanFloat_1 = _registerName1("scanFloat:"); - bool _objc_msgSend_631( + bool _objc_msgSend_660( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, ) { - return __objc_msgSend_631( + return __objc_msgSend_660( obj, sel, result, ); } - late final __objc_msgSend_631Ptr = _lookup< + late final __objc_msgSend_660Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_631 = __objc_msgSend_631Ptr.asFunction< + late final __objc_msgSend_660 = __objc_msgSend_660Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_scanDouble_1 = _registerName1("scanDouble:"); - bool _objc_msgSend_632( + bool _objc_msgSend_661( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, ) { - return __objc_msgSend_632( + return __objc_msgSend_661( obj, sel, result, ); } - late final __objc_msgSend_632Ptr = _lookup< + late final __objc_msgSend_661Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_632 = __objc_msgSend_632Ptr.asFunction< + late final __objc_msgSend_661 = __objc_msgSend_661Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_scanHexInt_1 = _registerName1("scanHexInt:"); - bool _objc_msgSend_633( + bool _objc_msgSend_662( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, ) { - return __objc_msgSend_633( + return __objc_msgSend_662( obj, sel, result, ); } - late final __objc_msgSend_633Ptr = _lookup< + late final __objc_msgSend_662Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_633 = __objc_msgSend_633Ptr.asFunction< + late final __objc_msgSend_662 = __objc_msgSend_662Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -17996,13 +18488,13 @@ class PedometerBindings { late final _sel_scanHexDouble_1 = _registerName1("scanHexDouble:"); late final _sel_scanString_intoString_1 = _registerName1("scanString:intoString:"); - bool _objc_msgSend_634( + bool _objc_msgSend_663( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, ffi.Pointer> result, ) { - return __objc_msgSend_634( + return __objc_msgSend_663( obj, sel, string, @@ -18010,26 +18502,26 @@ class PedometerBindings { ); } - late final __objc_msgSend_634Ptr = _lookup< + late final __objc_msgSend_663Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_634 = __objc_msgSend_634Ptr.asFunction< + late final __objc_msgSend_663 = __objc_msgSend_663Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); late final _sel_scanCharactersFromSet_intoString_1 = _registerName1("scanCharactersFromSet:intoString:"); - bool _objc_msgSend_635( + bool _objc_msgSend_664( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer set1, ffi.Pointer> result, ) { - return __objc_msgSend_635( + return __objc_msgSend_664( obj, sel, set1, @@ -18037,14 +18529,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_635Ptr = _lookup< + late final __objc_msgSend_664Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_635 = __objc_msgSend_635Ptr.asFunction< + late final __objc_msgSend_664 = __objc_msgSend_664Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); @@ -18057,37 +18549,37 @@ class PedometerBindings { late final _sel_localizedScannerWithString_1 = _registerName1("localizedScannerWithString:"); late final _sel_scanDecimal_1 = _registerName1("scanDecimal:"); - bool _objc_msgSend_636( + bool _objc_msgSend_665( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer dcm, ) { - return __objc_msgSend_636( + return __objc_msgSend_665( obj, sel, dcm, ); } - late final __objc_msgSend_636Ptr = _lookup< + late final __objc_msgSend_665Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_636 = __objc_msgSend_636Ptr.asFunction< + late final __objc_msgSend_665 = __objc_msgSend_665Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSException1 = _getClass1("NSException"); late final _sel_exceptionWithName_reason_userInfo_1 = _registerName1("exceptionWithName:reason:userInfo:"); - ffi.Pointer _objc_msgSend_637( + ffi.Pointer _objc_msgSend_666( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer reason, ffi.Pointer userInfo, ) { - return __objc_msgSend_637( + return __objc_msgSend_666( obj, sel, name, @@ -18096,7 +18588,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_637Ptr = _lookup< + late final __objc_msgSend_666Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -18104,7 +18596,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_637 = __objc_msgSend_637Ptr.asFunction< + late final __objc_msgSend_666 = __objc_msgSend_666Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -18114,14 +18606,14 @@ class PedometerBindings { late final _sel_initWithName_reason_userInfo_1 = _registerName1("initWithName:reason:userInfo:"); - instancetype _objc_msgSend_638( + instancetype _objc_msgSend_667( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aName, ffi.Pointer aReason, ffi.Pointer aUserInfo, ) { - return __objc_msgSend_638( + return __objc_msgSend_667( obj, sel, aName, @@ -18130,7 +18622,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_638Ptr = _lookup< + late final __objc_msgSend_667Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -18138,7 +18630,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_638 = __objc_msgSend_638Ptr.asFunction< + late final __objc_msgSend_667 = __objc_msgSend_667Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -18149,13 +18641,13 @@ class PedometerBindings { late final _sel_reason1 = _registerName1("reason"); late final _sel_raise1 = _registerName1("raise"); late final _sel_raise_format_1 = _registerName1("raise:format:"); - void _objc_msgSend_639( + void _objc_msgSend_668( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer format, ) { - return __objc_msgSend_639( + return __objc_msgSend_668( obj, sel, name, @@ -18163,27 +18655,27 @@ class PedometerBindings { ); } - late final __objc_msgSend_639Ptr = _lookup< + late final __objc_msgSend_668Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_639 = __objc_msgSend_639Ptr.asFunction< + late final __objc_msgSend_668 = __objc_msgSend_668Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_raise_format_arguments_1 = _registerName1("raise:format:arguments:"); - void _objc_msgSend_640( + void _objc_msgSend_669( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer format, - ffi.Pointer argList, + ffi.Pointer<__va_list_tag> argList, ) { - return __objc_msgSend_640( + return __objc_msgSend_669( obj, sel, name, @@ -18192,74 +18684,74 @@ class PedometerBindings { ); } - late final __objc_msgSend_640Ptr = _lookup< + late final __objc_msgSend_669Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_640 = __objc_msgSend_640Ptr.asFunction< + ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); + late final __objc_msgSend_669 = __objc_msgSend_669Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer<__va_list_tag>)>(); late final _class_NSRunLoop1 = _getClass1("NSRunLoop"); late final _sel_currentRunLoop1 = _registerName1("currentRunLoop"); - ffi.Pointer _objc_msgSend_641( + ffi.Pointer _objc_msgSend_670( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_641( + return __objc_msgSend_670( obj, sel, ); } - late final __objc_msgSend_641Ptr = _lookup< + late final __objc_msgSend_670Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_641 = __objc_msgSend_641Ptr.asFunction< + late final __objc_msgSend_670 = __objc_msgSend_670Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_mainRunLoop1 = _registerName1("mainRunLoop"); late final _sel_currentMode1 = _registerName1("currentMode"); late final _sel_getCFRunLoop1 = _registerName1("getCFRunLoop"); - ffi.Pointer<__CFRunLoop> _objc_msgSend_642( + ffi.Pointer<__CFRunLoop> _objc_msgSend_671( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_642( + return __objc_msgSend_671( obj, sel, ); } - late final __objc_msgSend_642Ptr = _lookup< + late final __objc_msgSend_671Ptr = _lookup< ffi.NativeFunction< ffi.Pointer<__CFRunLoop> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_642 = __objc_msgSend_642Ptr.asFunction< + late final __objc_msgSend_671 = __objc_msgSend_671Ptr.asFunction< ffi.Pointer<__CFRunLoop> Function( ffi.Pointer, ffi.Pointer)>(); late final _class_NSTimer1 = _getClass1("NSTimer"); late final _sel_timerWithTimeInterval_invocation_repeats_1 = _registerName1("timerWithTimeInterval:invocation:repeats:"); - ffi.Pointer _objc_msgSend_643( + ffi.Pointer _objc_msgSend_672( ffi.Pointer obj, ffi.Pointer sel, double ti, ffi.Pointer invocation, bool yesOrNo, ) { - return __objc_msgSend_643( + return __objc_msgSend_672( obj, sel, ti, @@ -18268,7 +18760,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_643Ptr = _lookup< + late final __objc_msgSend_672Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -18276,7 +18768,7 @@ class PedometerBindings { ffi.Double, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_643 = __objc_msgSend_643Ptr.asFunction< + late final __objc_msgSend_672 = __objc_msgSend_672Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, double, ffi.Pointer, bool)>(); @@ -18284,7 +18776,7 @@ class PedometerBindings { _registerName1("scheduledTimerWithTimeInterval:invocation:repeats:"); late final _sel_timerWithTimeInterval_target_selector_userInfo_repeats_1 = _registerName1("timerWithTimeInterval:target:selector:userInfo:repeats:"); - ffi.Pointer _objc_msgSend_644( + ffi.Pointer _objc_msgSend_673( ffi.Pointer obj, ffi.Pointer sel, double ti, @@ -18293,7 +18785,7 @@ class PedometerBindings { ffi.Pointer userInfo, bool yesOrNo, ) { - return __objc_msgSend_644( + return __objc_msgSend_673( obj, sel, ti, @@ -18304,7 +18796,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_644Ptr = _lookup< + late final __objc_msgSend_673Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -18314,7 +18806,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_644 = __objc_msgSend_644Ptr.asFunction< + late final __objc_msgSend_673 = __objc_msgSend_673Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -18329,14 +18821,14 @@ class PedometerBindings { "scheduledTimerWithTimeInterval:target:selector:userInfo:repeats:"); late final _sel_timerWithTimeInterval_repeats_block_1 = _registerName1("timerWithTimeInterval:repeats:block:"); - ffi.Pointer _objc_msgSend_645( + ffi.Pointer _objc_msgSend_674( ffi.Pointer obj, ffi.Pointer sel, double interval, bool repeats, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_645( + return __objc_msgSend_674( obj, sel, interval, @@ -18345,7 +18837,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_645Ptr = _lookup< + late final __objc_msgSend_674Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -18353,7 +18845,7 @@ class PedometerBindings { ffi.Double, ffi.Bool, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_645 = __objc_msgSend_645Ptr.asFunction< + late final __objc_msgSend_674 = __objc_msgSend_674Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, double, bool, ffi.Pointer<_ObjCBlock>)>(); @@ -18361,7 +18853,7 @@ class PedometerBindings { _registerName1("scheduledTimerWithTimeInterval:repeats:block:"); late final _sel_initWithFireDate_interval_repeats_block_1 = _registerName1("initWithFireDate:interval:repeats:block:"); - instancetype _objc_msgSend_646( + instancetype _objc_msgSend_675( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, @@ -18369,7 +18861,7 @@ class PedometerBindings { bool repeats, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_646( + return __objc_msgSend_675( obj, sel, date, @@ -18379,7 +18871,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_646Ptr = _lookup< + late final __objc_msgSend_675Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -18388,14 +18880,14 @@ class PedometerBindings { ffi.Double, ffi.Bool, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_646 = __objc_msgSend_646Ptr.asFunction< + late final __objc_msgSend_675 = __objc_msgSend_675Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, double, bool, ffi.Pointer<_ObjCBlock>)>(); late final _sel_initWithFireDate_interval_target_selector_userInfo_repeats_1 = _registerName1( "initWithFireDate:interval:target:selector:userInfo:repeats:"); - instancetype _objc_msgSend_647( + instancetype _objc_msgSend_676( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, @@ -18405,7 +18897,7 @@ class PedometerBindings { ffi.Pointer ui, bool rep, ) { - return __objc_msgSend_647( + return __objc_msgSend_676( obj, sel, date, @@ -18417,7 +18909,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_647Ptr = _lookup< + late final __objc_msgSend_676Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -18428,7 +18920,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_647 = __objc_msgSend_647Ptr.asFunction< + late final __objc_msgSend_676 = __objc_msgSend_676Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -18442,19 +18934,39 @@ class PedometerBindings { late final _sel_fire1 = _registerName1("fire"); late final _sel_fireDate1 = _registerName1("fireDate"); late final _sel_setFireDate_1 = _registerName1("setFireDate:"); + void _objc_msgSend_677( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_677( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_677Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_677 = __objc_msgSend_677Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_timeInterval1 = _registerName1("timeInterval"); late final _sel_tolerance1 = _registerName1("tolerance"); late final _sel_setTolerance_1 = _registerName1("setTolerance:"); late final _sel_invalidate1 = _registerName1("invalidate"); late final _sel_isValid1 = _registerName1("isValid"); late final _sel_addTimer_forMode_1 = _registerName1("addTimer:forMode:"); - void _objc_msgSend_648( + void _objc_msgSend_678( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer timer, ffi.Pointer mode, ) { - return __objc_msgSend_648( + return __objc_msgSend_678( obj, sel, timer, @@ -18462,45 +18974,45 @@ class PedometerBindings { ); } - late final __objc_msgSend_648Ptr = _lookup< + late final __objc_msgSend_678Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_648 = __objc_msgSend_648Ptr.asFunction< + late final __objc_msgSend_678 = __objc_msgSend_678Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSPort1 = _getClass1("NSPort"); - ffi.Pointer _objc_msgSend_649( + ffi.Pointer _objc_msgSend_679( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_649( + return __objc_msgSend_679( obj, sel, ); } - late final __objc_msgSend_649Ptr = _lookup< + late final __objc_msgSend_679Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_649 = __objc_msgSend_649Ptr.asFunction< + late final __objc_msgSend_679 = __objc_msgSend_679Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_scheduleInRunLoop_forMode_1 = _registerName1("scheduleInRunLoop:forMode:"); - void _objc_msgSend_650( + void _objc_msgSend_680( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer runLoop, ffi.Pointer mode, ) { - return __objc_msgSend_650( + return __objc_msgSend_680( obj, sel, runLoop, @@ -18508,14 +19020,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_650Ptr = _lookup< + late final __objc_msgSend_680Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_650 = __objc_msgSend_650Ptr.asFunction< + late final __objc_msgSend_680 = __objc_msgSend_680Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -18524,7 +19036,7 @@ class PedometerBindings { late final _sel_reservedSpaceLength1 = _registerName1("reservedSpaceLength"); late final _sel_sendBeforeDate_components_from_reserved_1 = _registerName1("sendBeforeDate:components:from:reserved:"); - bool _objc_msgSend_651( + bool _objc_msgSend_681( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer limitDate, @@ -18532,7 +19044,7 @@ class PedometerBindings { ffi.Pointer receivePort, int headerSpaceReserved, ) { - return __objc_msgSend_651( + return __objc_msgSend_681( obj, sel, limitDate, @@ -18542,7 +19054,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_651Ptr = _lookup< + late final __objc_msgSend_681Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -18551,7 +19063,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_651 = __objc_msgSend_651Ptr.asFunction< + late final __objc_msgSend_681 = __objc_msgSend_681Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -18562,7 +19074,7 @@ class PedometerBindings { late final _sel_sendBeforeDate_msgid_components_from_reserved_1 = _registerName1("sendBeforeDate:msgid:components:from:reserved:"); - bool _objc_msgSend_652( + bool _objc_msgSend_682( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer limitDate, @@ -18571,7 +19083,7 @@ class PedometerBindings { ffi.Pointer receivePort, int headerSpaceReserved, ) { - return __objc_msgSend_652( + return __objc_msgSend_682( obj, sel, limitDate, @@ -18582,7 +19094,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_652Ptr = _lookup< + late final __objc_msgSend_682Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -18592,7 +19104,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_652 = __objc_msgSend_652Ptr.asFunction< + late final __objc_msgSend_682 = __objc_msgSend_682Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -18602,66 +19114,29 @@ class PedometerBindings { ffi.Pointer, int)>(); - late final _class_NSConnection1 = _getClass1("NSConnection"); - late final _sel_addConnection_toRunLoop_forMode_1 = - _registerName1("addConnection:toRunLoop:forMode:"); - void _objc_msgSend_653( + late final _sel_addPort_forMode_1 = _registerName1("addPort:forMode:"); + void _objc_msgSend_683( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer conn, - ffi.Pointer runLoop, + ffi.Pointer aPort, ffi.Pointer mode, ) { - return __objc_msgSend_653( + return __objc_msgSend_683( obj, sel, - conn, - runLoop, + aPort, mode, ); } - late final __objc_msgSend_653Ptr = _lookup< + late final __objc_msgSend_683Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_653 = __objc_msgSend_653Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_removeConnection_fromRunLoop_forMode_1 = - _registerName1("removeConnection:fromRunLoop:forMode:"); - late final _sel_addPort_forMode_1 = _registerName1("addPort:forMode:"); - void _objc_msgSend_654( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer aPort, - ffi.Pointer mode, - ) { - return __objc_msgSend_654( - obj, - sel, - aPort, - mode, - ); - } - - late final __objc_msgSend_654Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_654 = __objc_msgSend_654Ptr.asFunction< + late final __objc_msgSend_683 = __objc_msgSend_683Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -18669,13 +19144,13 @@ class PedometerBindings { late final _sel_limitDateForMode_1 = _registerName1("limitDateForMode:"); late final _sel_acceptInputForMode_beforeDate_1 = _registerName1("acceptInputForMode:beforeDate:"); - void _objc_msgSend_655( + void _objc_msgSend_684( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer mode, ffi.Pointer limitDate, ) { - return __objc_msgSend_655( + return __objc_msgSend_684( obj, sel, mode, @@ -18683,27 +19158,27 @@ class PedometerBindings { ); } - late final __objc_msgSend_655Ptr = _lookup< + late final __objc_msgSend_684Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_655 = __objc_msgSend_655Ptr.asFunction< + late final __objc_msgSend_684 = __objc_msgSend_684Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_run1 = _registerName1("run"); late final _sel_runUntilDate_1 = _registerName1("runUntilDate:"); late final _sel_runMode_beforeDate_1 = _registerName1("runMode:beforeDate:"); - bool _objc_msgSend_656( + bool _objc_msgSend_685( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer mode, ffi.Pointer limitDate, ) { - return __objc_msgSend_656( + return __objc_msgSend_685( obj, sel, mode, @@ -18711,27 +19186,26 @@ class PedometerBindings { ); } - late final __objc_msgSend_656Ptr = _lookup< + late final __objc_msgSend_685Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_656 = __objc_msgSend_656Ptr.asFunction< + late final __objc_msgSend_685 = __objc_msgSend_685Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - late final _sel_configureAsServer1 = _registerName1("configureAsServer"); late final _sel_performInModes_block_1 = _registerName1("performInModes:block:"); - void _objc_msgSend_657( + void _objc_msgSend_686( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer modes, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_657( + return __objc_msgSend_686( obj, sel, modes, @@ -18739,21 +19213,21 @@ class PedometerBindings { ); } - late final __objc_msgSend_657Ptr = _lookup< + late final __objc_msgSend_686Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_657 = __objc_msgSend_657Ptr.asFunction< + late final __objc_msgSend_686 = __objc_msgSend_686Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_performBlock_1 = _registerName1("performBlock:"); late final _sel_performSelector_target_argument_order_modes_1 = _registerName1("performSelector:target:argument:order:modes:"); - void _objc_msgSend_658( + void _objc_msgSend_687( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, @@ -18762,7 +19236,7 @@ class PedometerBindings { int order, ffi.Pointer modes, ) { - return __objc_msgSend_658( + return __objc_msgSend_687( obj, sel, aSelector, @@ -18773,7 +19247,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_658Ptr = _lookup< + late final __objc_msgSend_687Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -18783,7 +19257,7 @@ class PedometerBindings { ffi.Pointer, ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_658 = __objc_msgSend_658Ptr.asFunction< + late final __objc_msgSend_687 = __objc_msgSend_687Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -18801,13 +19275,13 @@ class PedometerBindings { late final _sel_availableData1 = _registerName1("availableData"); late final _sel_initWithFileDescriptor_closeOnDealloc_1 = _registerName1("initWithFileDescriptor:closeOnDealloc:"); - instancetype _objc_msgSend_659( + instancetype _objc_msgSend_688( ffi.Pointer obj, ffi.Pointer sel, int fd, bool closeopt, ) { - return __objc_msgSend_659( + return __objc_msgSend_688( obj, sel, fd, @@ -18815,47 +19289,47 @@ class PedometerBindings { ); } - late final __objc_msgSend_659Ptr = _lookup< + late final __objc_msgSend_688Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Int, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_659 = __objc_msgSend_659Ptr.asFunction< + late final __objc_msgSend_688 = __objc_msgSend_688Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, int, bool)>(); late final _sel_readDataToEndOfFileAndReturnError_1 = _registerName1("readDataToEndOfFileAndReturnError:"); - ffi.Pointer _objc_msgSend_660( + ffi.Pointer _objc_msgSend_689( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> error, ) { - return __objc_msgSend_660( + return __objc_msgSend_689( obj, sel, error, ); } - late final __objc_msgSend_660Ptr = _lookup< + late final __objc_msgSend_689Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_660 = __objc_msgSend_660Ptr.asFunction< + late final __objc_msgSend_689 = __objc_msgSend_689Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); late final _sel_readDataUpToLength_error_1 = _registerName1("readDataUpToLength:error:"); - ffi.Pointer _objc_msgSend_661( + ffi.Pointer _objc_msgSend_690( ffi.Pointer obj, ffi.Pointer sel, int length, ffi.Pointer> error, ) { - return __objc_msgSend_661( + return __objc_msgSend_690( obj, sel, length, @@ -18863,25 +19337,25 @@ class PedometerBindings { ); } - late final __objc_msgSend_661Ptr = _lookup< + late final __objc_msgSend_690Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.UnsignedLong, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_661 = __objc_msgSend_661Ptr.asFunction< + late final __objc_msgSend_690 = __objc_msgSend_690Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer>)>(); late final _sel_writeData_error_1 = _registerName1("writeData:error:"); - bool _objc_msgSend_662( + bool _objc_msgSend_691( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ffi.Pointer> error, ) { - return __objc_msgSend_662( + return __objc_msgSend_691( obj, sel, data, @@ -18889,25 +19363,25 @@ class PedometerBindings { ); } - late final __objc_msgSend_662Ptr = _lookup< + late final __objc_msgSend_691Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_662 = __objc_msgSend_662Ptr.asFunction< + late final __objc_msgSend_691 = __objc_msgSend_691Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); late final _sel_getOffset_error_1 = _registerName1("getOffset:error:"); - bool _objc_msgSend_663( + bool _objc_msgSend_692( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer offsetInFile, ffi.Pointer> error, ) { - return __objc_msgSend_663( + return __objc_msgSend_692( obj, sel, offsetInFile, @@ -18915,14 +19389,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_663Ptr = _lookup< + late final __objc_msgSend_692Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_663 = __objc_msgSend_663Ptr.asFunction< + late final __objc_msgSend_692 = __objc_msgSend_692Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -18932,13 +19406,13 @@ class PedometerBindings { late final _sel_seekToEndReturningOffset_error_1 = _registerName1("seekToEndReturningOffset:error:"); late final _sel_seekToOffset_error_1 = _registerName1("seekToOffset:error:"); - bool _objc_msgSend_664( + bool _objc_msgSend_693( ffi.Pointer obj, ffi.Pointer sel, int offset, ffi.Pointer> error, ) { - return __objc_msgSend_664( + return __objc_msgSend_693( obj, sel, offset, @@ -18946,14 +19420,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_664Ptr = _lookup< + late final __objc_msgSend_693Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.UnsignedLongLong, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_664 = __objc_msgSend_664Ptr.asFunction< + late final __objc_msgSend_693 = __objc_msgSend_693Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer>)>(); @@ -18965,21 +19439,21 @@ class PedometerBindings { _registerName1("closeAndReturnError:"); late final _sel_fileHandleWithStandardInput1 = _registerName1("fileHandleWithStandardInput"); - ffi.Pointer _objc_msgSend_665( + ffi.Pointer _objc_msgSend_694( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_665( + return __objc_msgSend_694( obj, sel, ); } - late final __objc_msgSend_665Ptr = _lookup< + late final __objc_msgSend_694Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_665 = __objc_msgSend_665Ptr.asFunction< + late final __objc_msgSend_694 = __objc_msgSend_694Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -18997,13 +19471,13 @@ class PedometerBindings { _registerName1("fileHandleForUpdatingAtPath:"); late final _sel_fileHandleForReadingFromURL_error_1 = _registerName1("fileHandleForReadingFromURL:error:"); - instancetype _objc_msgSend_666( + instancetype _objc_msgSend_695( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer> error, ) { - return __objc_msgSend_666( + return __objc_msgSend_695( obj, sel, url, @@ -19011,14 +19485,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_666Ptr = _lookup< + late final __objc_msgSend_695Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_666 = __objc_msgSend_666Ptr.asFunction< + late final __objc_msgSend_695 = __objc_msgSend_695Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); @@ -19028,6 +19502,26 @@ class PedometerBindings { _registerName1("fileHandleForUpdatingURL:error:"); late final _sel_readInBackgroundAndNotifyForModes_1 = _registerName1("readInBackgroundAndNotifyForModes:"); + void _objc_msgSend_696( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer modes, + ) { + return __objc_msgSend_696( + obj, + sel, + modes, + ); + } + + late final __objc_msgSend_696Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_696 = __objc_msgSend_696Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_readInBackgroundAndNotify1 = _registerName1("readInBackgroundAndNotify"); late final _sel_readToEndOfFileInBackgroundAndNotifyForModes_1 = @@ -19043,43 +19537,43 @@ class PedometerBindings { late final _sel_waitForDataInBackgroundAndNotify1 = _registerName1("waitForDataInBackgroundAndNotify"); late final _sel_readabilityHandler1 = _registerName1("readabilityHandler"); - ffi.Pointer<_ObjCBlock> _objc_msgSend_667( + ffi.Pointer<_ObjCBlock> _objc_msgSend_697( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_667( + return __objc_msgSend_697( obj, sel, ); } - late final __objc_msgSend_667Ptr = _lookup< + late final __objc_msgSend_697Ptr = _lookup< ffi.NativeFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_667 = __objc_msgSend_667Ptr.asFunction< + late final __objc_msgSend_697 = __objc_msgSend_697Ptr.asFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setReadabilityHandler_1 = _registerName1("setReadabilityHandler:"); - void _objc_msgSend_668( + void _objc_msgSend_698( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> value, ) { - return __objc_msgSend_668( + return __objc_msgSend_698( obj, sel, value, ); } - late final __objc_msgSend_668Ptr = _lookup< + late final __objc_msgSend_698Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_668 = __objc_msgSend_668Ptr.asFunction< + late final __objc_msgSend_698 = __objc_msgSend_698Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); @@ -19088,50 +19582,70 @@ class PedometerBindings { _registerName1("setWriteabilityHandler:"); late final _sel_initWithFileDescriptor_1 = _registerName1("initWithFileDescriptor:"); - instancetype _objc_msgSend_669( + instancetype _objc_msgSend_699( ffi.Pointer obj, ffi.Pointer sel, int fd, ) { - return __objc_msgSend_669( + return __objc_msgSend_699( obj, sel, fd, ); } - late final __objc_msgSend_669Ptr = _lookup< + late final __objc_msgSend_699Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Int)>>('objc_msgSend'); - late final __objc_msgSend_669 = __objc_msgSend_669Ptr.asFunction< + late final __objc_msgSend_699 = __objc_msgSend_699Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_fileDescriptor1 = _registerName1("fileDescriptor"); late final _sel_readDataToEndOfFile1 = _registerName1("readDataToEndOfFile"); late final _sel_readDataOfLength_1 = _registerName1("readDataOfLength:"); + ffi.Pointer _objc_msgSend_700( + ffi.Pointer obj, + ffi.Pointer sel, + int length, + ) { + return __objc_msgSend_700( + obj, + sel, + length, + ); + } + + late final __objc_msgSend_700Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_700 = __objc_msgSend_700Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + late final _sel_writeData_1 = _registerName1("writeData:"); late final _sel_offsetInFile1 = _registerName1("offsetInFile"); late final _sel_seekToEndOfFile1 = _registerName1("seekToEndOfFile"); late final _sel_seekToFileOffset_1 = _registerName1("seekToFileOffset:"); - void _objc_msgSend_670( + void _objc_msgSend_701( ffi.Pointer obj, ffi.Pointer sel, int offset, ) { - return __objc_msgSend_670( + return __objc_msgSend_701( obj, sel, offset, ); } - late final __objc_msgSend_670Ptr = _lookup< + late final __objc_msgSend_701Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLongLong)>>('objc_msgSend'); - late final __objc_msgSend_670 = __objc_msgSend_670Ptr.asFunction< + late final __objc_msgSend_701 = __objc_msgSend_701Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_truncateFileAtOffset_1 = @@ -19141,68 +19655,88 @@ class PedometerBindings { late final _class_NSHTTPCookieStorage1 = _getClass1("NSHTTPCookieStorage"); late final _sel_sharedHTTPCookieStorage1 = _registerName1("sharedHTTPCookieStorage"); - ffi.Pointer _objc_msgSend_671( + ffi.Pointer _objc_msgSend_702( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_671( + return __objc_msgSend_702( obj, sel, ); } - late final __objc_msgSend_671Ptr = _lookup< + late final __objc_msgSend_702Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_671 = __objc_msgSend_671Ptr.asFunction< + late final __objc_msgSend_702 = __objc_msgSend_702Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_sharedCookieStorageForGroupContainerIdentifier_1 = _registerName1("sharedCookieStorageForGroupContainerIdentifier:"); - ffi.Pointer _objc_msgSend_672( + ffi.Pointer _objc_msgSend_703( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer identifier, ) { - return __objc_msgSend_672( + return __objc_msgSend_703( obj, sel, identifier, ); } - late final __objc_msgSend_672Ptr = _lookup< + late final __objc_msgSend_703Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_672 = __objc_msgSend_672Ptr.asFunction< + late final __objc_msgSend_703 = __objc_msgSend_703Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_cookies1 = _registerName1("cookies"); late final _class_NSHTTPCookie1 = _getClass1("NSHTTPCookie"); late final _sel_initWithProperties_1 = _registerName1("initWithProperties:"); + instancetype _objc_msgSend_704( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer properties, + ) { + return __objc_msgSend_704( + obj, + sel, + properties, + ); + } + + late final __objc_msgSend_704Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_704 = __objc_msgSend_704Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_cookieWithProperties_1 = _registerName1("cookieWithProperties:"); - ffi.Pointer _objc_msgSend_673( + ffi.Pointer _objc_msgSend_705( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer properties, ) { - return __objc_msgSend_673( + return __objc_msgSend_705( obj, sel, properties, ); } - late final __objc_msgSend_673Ptr = _lookup< + late final __objc_msgSend_705Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_673 = __objc_msgSend_673Ptr.asFunction< + late final __objc_msgSend_705 = __objc_msgSend_705Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -19210,13 +19744,13 @@ class PedometerBindings { _registerName1("requestHeaderFieldsWithCookies:"); late final _sel_cookiesWithResponseHeaderFields_forURL_1 = _registerName1("cookiesWithResponseHeaderFields:forURL:"); - ffi.Pointer _objc_msgSend_674( + ffi.Pointer _objc_msgSend_706( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer headerFields, ffi.Pointer URL, ) { - return __objc_msgSend_674( + return __objc_msgSend_706( obj, sel, headerFields, @@ -19224,14 +19758,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_674Ptr = _lookup< + late final __objc_msgSend_706Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_674 = __objc_msgSend_674Ptr.asFunction< + late final __objc_msgSend_706 = __objc_msgSend_706Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -19249,23 +19783,23 @@ class PedometerBindings { late final _sel_portList1 = _registerName1("portList"); late final _sel_sameSitePolicy1 = _registerName1("sameSitePolicy"); late final _sel_setCookie_1 = _registerName1("setCookie:"); - void _objc_msgSend_675( + void _objc_msgSend_707( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer cookie, ) { - return __objc_msgSend_675( + return __objc_msgSend_707( obj, sel, cookie, ); } - late final __objc_msgSend_675Ptr = _lookup< + late final __objc_msgSend_707Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_675 = __objc_msgSend_675Ptr.asFunction< + late final __objc_msgSend_707 = __objc_msgSend_707Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -19275,14 +19809,14 @@ class PedometerBindings { late final _sel_cookiesForURL_1 = _registerName1("cookiesForURL:"); late final _sel_setCookies_forURL_mainDocumentURL_1 = _registerName1("setCookies:forURL:mainDocumentURL:"); - void _objc_msgSend_676( + void _objc_msgSend_708( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer cookies, ffi.Pointer URL, ffi.Pointer mainDocumentURL, ) { - return __objc_msgSend_676( + return __objc_msgSend_708( obj, sel, cookies, @@ -19291,7 +19825,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_676Ptr = _lookup< + late final __objc_msgSend_708Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -19299,7 +19833,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_676 = __objc_msgSend_676Ptr.asFunction< + late final __objc_msgSend_708 = __objc_msgSend_708Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -19308,42 +19842,42 @@ class PedometerBindings { ffi.Pointer)>(); late final _sel_cookieAcceptPolicy1 = _registerName1("cookieAcceptPolicy"); - int _objc_msgSend_677( + int _objc_msgSend_709( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_677( + return __objc_msgSend_709( obj, sel, ); } - late final __objc_msgSend_677Ptr = _lookup< + late final __objc_msgSend_709Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_677 = __objc_msgSend_677Ptr.asFunction< + late final __objc_msgSend_709 = __objc_msgSend_709Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setCookieAcceptPolicy_1 = _registerName1("setCookieAcceptPolicy:"); - void _objc_msgSend_678( + void _objc_msgSend_710( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_678( + return __objc_msgSend_710( obj, sel, value, ); } - late final __objc_msgSend_678Ptr = _lookup< + late final __objc_msgSend_710Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_678 = __objc_msgSend_678Ptr.asFunction< + late final __objc_msgSend_710 = __objc_msgSend_710Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_sortedCookiesUsingDescriptors_1 = @@ -19352,18 +19886,38 @@ class PedometerBindings { late final _sel_taskIdentifier1 = _registerName1("taskIdentifier"); late final _class_NSURLRequest1 = _getClass1("NSURLRequest"); late final _sel_requestWithURL_1 = _registerName1("requestWithURL:"); + instancetype _objc_msgSend_711( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer URL, + ) { + return __objc_msgSend_711( + obj, + sel, + URL, + ); + } + + late final __objc_msgSend_711Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_711 = __objc_msgSend_711Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_supportsSecureCoding1 = _registerName1("supportsSecureCoding"); late final _sel_requestWithURL_cachePolicy_timeoutInterval_1 = _registerName1("requestWithURL:cachePolicy:timeoutInterval:"); - instancetype _objc_msgSend_679( + instancetype _objc_msgSend_712( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer URL, int cachePolicy, double timeoutInterval, ) { - return __objc_msgSend_679( + return __objc_msgSend_712( obj, sel, URL, @@ -19372,11 +19926,11 @@ class PedometerBindings { ); } - late final __objc_msgSend_679Ptr = _lookup< + late final __objc_msgSend_712Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_679 = __objc_msgSend_679Ptr.asFunction< + late final __objc_msgSend_712 = __objc_msgSend_712Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, double)>(); @@ -19384,41 +19938,41 @@ class PedometerBindings { _registerName1("initWithURL:cachePolicy:timeoutInterval:"); late final _sel_URL1 = _registerName1("URL"); late final _sel_cachePolicy1 = _registerName1("cachePolicy"); - int _objc_msgSend_680( + int _objc_msgSend_713( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_680( + return __objc_msgSend_713( obj, sel, ); } - late final __objc_msgSend_680Ptr = _lookup< + late final __objc_msgSend_713Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_680 = __objc_msgSend_680Ptr.asFunction< + late final __objc_msgSend_713 = __objc_msgSend_713Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_timeoutInterval1 = _registerName1("timeoutInterval"); late final _sel_mainDocumentURL1 = _registerName1("mainDocumentURL"); late final _sel_networkServiceType1 = _registerName1("networkServiceType"); - int _objc_msgSend_681( + int _objc_msgSend_714( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_681( + return __objc_msgSend_714( obj, sel, ); } - late final __objc_msgSend_681Ptr = _lookup< + late final __objc_msgSend_714Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_681 = __objc_msgSend_681Ptr.asFunction< + late final __objc_msgSend_714 = __objc_msgSend_714Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_allowsCellularAccess1 = @@ -19429,21 +19983,21 @@ class PedometerBindings { _registerName1("allowsConstrainedNetworkAccess"); late final _sel_assumesHTTP3Capable1 = _registerName1("assumesHTTP3Capable"); late final _sel_attribution1 = _registerName1("attribution"); - int _objc_msgSend_682( + int _objc_msgSend_715( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_682( + return __objc_msgSend_715( obj, sel, ); } - late final __objc_msgSend_682Ptr = _lookup< + late final __objc_msgSend_715Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_682 = __objc_msgSend_682Ptr.asFunction< + late final __objc_msgSend_715 = __objc_msgSend_715Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_requiresDNSSECValidation1 = @@ -19457,34 +20011,61 @@ class PedometerBindings { late final _class_NSStream1 = _getClass1("NSStream"); late final _sel_open1 = _registerName1("open"); late final _sel_close1 = _registerName1("close"); + late final _sel_propertyForKey_1 = _registerName1("propertyForKey:"); + late final _sel_setProperty_forKey_1 = _registerName1("setProperty:forKey:"); + bool _objc_msgSend_716( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer property, + ffi.Pointer key, + ) { + return __objc_msgSend_716( + obj, + sel, + property, + key, + ); + } + + late final __objc_msgSend_716Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_716 = __objc_msgSend_716Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_streamStatus1 = _registerName1("streamStatus"); - int _objc_msgSend_683( + int _objc_msgSend_717( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_683( + return __objc_msgSend_717( obj, sel, ); } - late final __objc_msgSend_683Ptr = _lookup< + late final __objc_msgSend_717Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_683 = __objc_msgSend_683Ptr.asFunction< + late final __objc_msgSend_717 = __objc_msgSend_717Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_streamError1 = _registerName1("streamError"); late final _class_NSOutputStream1 = _getClass1("NSOutputStream"); late final _sel_write_maxLength_1 = _registerName1("write:maxLength:"); - int _objc_msgSend_684( + int _objc_msgSend_718( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, int len, ) { - return __objc_msgSend_684( + return __objc_msgSend_718( obj, sel, buffer, @@ -19492,11 +20073,11 @@ class PedometerBindings { ); } - late final __objc_msgSend_684Ptr = _lookup< + late final __objc_msgSend_718Ptr = _lookup< ffi.NativeFunction< ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_684 = __objc_msgSend_684Ptr.asFunction< + late final __objc_msgSend_718 = __objc_msgSend_718Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -19504,13 +20085,13 @@ class PedometerBindings { late final _sel_initToMemory1 = _registerName1("initToMemory"); late final _sel_initToBuffer_capacity_1 = _registerName1("initToBuffer:capacity:"); - instancetype _objc_msgSend_685( + instancetype _objc_msgSend_719( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, int capacity, ) { - return __objc_msgSend_685( + return __objc_msgSend_719( obj, sel, buffer, @@ -19518,22 +20099,22 @@ class PedometerBindings { ); } - late final __objc_msgSend_685Ptr = _lookup< + late final __objc_msgSend_719Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_685 = __objc_msgSend_685Ptr.asFunction< + late final __objc_msgSend_719 = __objc_msgSend_719Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithURL_append_1 = _registerName1("initWithURL:append:"); - instancetype _objc_msgSend_686( + instancetype _objc_msgSend_720( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, bool shouldAppend, ) { - return __objc_msgSend_686( + return __objc_msgSend_720( obj, sel, url, @@ -19541,11 +20122,11 @@ class PedometerBindings { ); } - late final __objc_msgSend_686Ptr = _lookup< + late final __objc_msgSend_720Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_686 = __objc_msgSend_686Ptr.asFunction< + late final __objc_msgSend_720 = __objc_msgSend_720Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); @@ -19561,7 +20142,7 @@ class PedometerBindings { _registerName1("outputStreamWithURL:append:"); late final _sel_getStreamsToHostWithName_port_inputStream_outputStream_1 = _registerName1("getStreamsToHostWithName:port:inputStream:outputStream:"); - void _objc_msgSend_687( + void _objc_msgSend_721( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer hostname, @@ -19569,7 +20150,7 @@ class PedometerBindings { ffi.Pointer> inputStream, ffi.Pointer> outputStream, ) { - return __objc_msgSend_687( + return __objc_msgSend_721( obj, sel, hostname, @@ -19579,46 +20160,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_687Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Pointer>, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_687 = __objc_msgSend_687Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ffi.Pointer>)>(); - - late final _class_NSHost1 = _getClass1("NSHost"); - late final _sel_getStreamsToHost_port_inputStream_outputStream_1 = - _registerName1("getStreamsToHost:port:inputStream:outputStream:"); - void _objc_msgSend_688( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer host, - int port, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream, - ) { - return __objc_msgSend_688( - obj, - sel, - host, - port, - inputStream, - outputStream, - ); - } - - late final __objc_msgSend_688Ptr = _lookup< + late final __objc_msgSend_721Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -19627,7 +20169,7 @@ class PedometerBindings { ffi.Long, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_688 = __objc_msgSend_688Ptr.asFunction< + late final __objc_msgSend_721 = __objc_msgSend_721Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -19638,14 +20180,14 @@ class PedometerBindings { late final _sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1 = _registerName1("getBoundStreamsWithBufferSize:inputStream:outputStream:"); - void _objc_msgSend_689( + void _objc_msgSend_722( ffi.Pointer obj, ffi.Pointer sel, int bufferSize, ffi.Pointer> inputStream, ffi.Pointer> outputStream, ) { - return __objc_msgSend_689( + return __objc_msgSend_722( obj, sel, bufferSize, @@ -19654,7 +20196,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_689Ptr = _lookup< + late final __objc_msgSend_722Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -19662,7 +20204,7 @@ class PedometerBindings { ffi.UnsignedLong, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_689 = __objc_msgSend_689Ptr.asFunction< + late final __objc_msgSend_722 = __objc_msgSend_722Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -19672,13 +20214,13 @@ class PedometerBindings { late final _sel_read_maxLength_1 = _registerName1("read:maxLength:"); late final _sel_getBuffer_length_1 = _registerName1("getBuffer:length:"); - bool _objc_msgSend_690( + bool _objc_msgSend_723( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> buffer, ffi.Pointer len, ) { - return __objc_msgSend_690( + return __objc_msgSend_723( obj, sel, buffer, @@ -19686,14 +20228,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_690Ptr = _lookup< + late final __objc_msgSend_723Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_690 = __objc_msgSend_690Ptr.asFunction< + late final __objc_msgSend_723 = __objc_msgSend_723Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -19704,25 +20246,45 @@ class PedometerBindings { late final _sel_initWithFileAtPath_1 = _registerName1("initWithFileAtPath:"); late final _sel_inputStreamWithData_1 = _registerName1("inputStreamWithData:"); + instancetype _objc_msgSend_724( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer data, + ) { + return __objc_msgSend_724( + obj, + sel, + data, + ); + } + + late final __objc_msgSend_724Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_724 = __objc_msgSend_724Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_inputStreamWithFileAtPath_1 = _registerName1("inputStreamWithFileAtPath:"); late final _sel_inputStreamWithURL_1 = _registerName1("inputStreamWithURL:"); late final _sel_HTTPBodyStream1 = _registerName1("HTTPBodyStream"); - ffi.Pointer _objc_msgSend_691( + ffi.Pointer _objc_msgSend_725( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_691( + return __objc_msgSend_725( obj, sel, ); } - late final __objc_msgSend_691Ptr = _lookup< + late final __objc_msgSend_725Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_691 = __objc_msgSend_691Ptr.asFunction< + late final __objc_msgSend_725 = __objc_msgSend_725Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -19731,21 +20293,21 @@ class PedometerBindings { late final _sel_HTTPShouldUsePipelining1 = _registerName1("HTTPShouldUsePipelining"); late final _sel_originalRequest1 = _registerName1("originalRequest"); - ffi.Pointer _objc_msgSend_692( + ffi.Pointer _objc_msgSend_726( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_692( + return __objc_msgSend_726( obj, sel, ); } - late final __objc_msgSend_692Ptr = _lookup< + late final __objc_msgSend_726Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_692 = __objc_msgSend_692Ptr.asFunction< + late final __objc_msgSend_726 = __objc_msgSend_726Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -19754,7 +20316,7 @@ class PedometerBindings { late final _sel_initWithURL_MIMEType_expectedContentLength_textEncodingName_1 = _registerName1( "initWithURL:MIMEType:expectedContentLength:textEncodingName:"); - instancetype _objc_msgSend_693( + instancetype _objc_msgSend_727( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer URL, @@ -19762,7 +20324,7 @@ class PedometerBindings { int length, ffi.Pointer name, ) { - return __objc_msgSend_693( + return __objc_msgSend_727( obj, sel, URL, @@ -19772,7 +20334,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_693Ptr = _lookup< + late final __objc_msgSend_727Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -19781,7 +20343,7 @@ class PedometerBindings { ffi.Pointer, ffi.Long, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_693 = __objc_msgSend_693Ptr.asFunction< + late final __objc_msgSend_727 = __objc_msgSend_727Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -19796,25 +20358,43 @@ class PedometerBindings { late final _sel_textEncodingName1 = _registerName1("textEncodingName"); late final _sel_suggestedFilename1 = _registerName1("suggestedFilename"); late final _sel_response1 = _registerName1("response"); - ffi.Pointer _objc_msgSend_694( + ffi.Pointer _objc_msgSend_728( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_694( + return __objc_msgSend_728( obj, sel, ); } - late final __objc_msgSend_694Ptr = _lookup< + late final __objc_msgSend_728Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_694 = __objc_msgSend_694Ptr.asFunction< + late final __objc_msgSend_728 = __objc_msgSend_728Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_progress1 = _registerName1("progress"); + ffi.Pointer _objc_msgSend_729( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_729( + obj, + sel, + ); + } + + late final __objc_msgSend_729Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_729 = __objc_msgSend_729Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_earliestBeginDate1 = _registerName1("earliestBeginDate"); late final _sel_setEarliestBeginDate_1 = _registerName1("setEarliestBeginDate:"); @@ -19836,43 +20416,43 @@ class PedometerBindings { late final _sel_taskDescription1 = _registerName1("taskDescription"); late final _sel_setTaskDescription_1 = _registerName1("setTaskDescription:"); late final _sel_state1 = _registerName1("state"); - int _objc_msgSend_695( + int _objc_msgSend_730( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_695( + return __objc_msgSend_730( obj, sel, ); } - late final __objc_msgSend_695Ptr = _lookup< + late final __objc_msgSend_730Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_695 = __objc_msgSend_695Ptr.asFunction< + late final __objc_msgSend_730 = __objc_msgSend_730Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_suspend1 = _registerName1("suspend"); late final _sel_priority1 = _registerName1("priority"); late final _sel_setPriority_1 = _registerName1("setPriority:"); - void _objc_msgSend_696( + void _objc_msgSend_731( ffi.Pointer obj, ffi.Pointer sel, double value, ) { - return __objc_msgSend_696( + return __objc_msgSend_731( obj, sel, value, ); } - late final __objc_msgSend_696Ptr = _lookup< + late final __objc_msgSend_731Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Float)>>('objc_msgSend'); - late final __objc_msgSend_696 = __objc_msgSend_696Ptr.asFunction< + late final __objc_msgSend_731 = __objc_msgSend_731Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, double)>(); late final _sel_prefersIncrementalDelivery1 = @@ -19881,13 +20461,13 @@ class PedometerBindings { _registerName1("setPrefersIncrementalDelivery:"); late final _sel_storeCookies_forTask_1 = _registerName1("storeCookies:forTask:"); - void _objc_msgSend_697( + void _objc_msgSend_732( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer cookies, ffi.Pointer task, ) { - return __objc_msgSend_697( + return __objc_msgSend_732( obj, sel, cookies, @@ -19895,26 +20475,26 @@ class PedometerBindings { ); } - late final __objc_msgSend_697Ptr = _lookup< + late final __objc_msgSend_732Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_697 = __objc_msgSend_697Ptr.asFunction< + late final __objc_msgSend_732 = __objc_msgSend_732Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_getCookiesForTask_completionHandler_1 = _registerName1("getCookiesForTask:completionHandler:"); - void _objc_msgSend_698( + void _objc_msgSend_733( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer task, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_698( + return __objc_msgSend_733( obj, sel, task, @@ -19922,14 +20502,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_698Ptr = _lookup< + late final __objc_msgSend_733Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_698 = __objc_msgSend_698Ptr.asFunction< + late final __objc_msgSend_733 = __objc_msgSend_733Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); @@ -19937,13 +20517,13 @@ class PedometerBindings { late final _sel_indexPathWithIndex_1 = _registerName1("indexPathWithIndex:"); late final _sel_indexPathWithIndexes_length_1 = _registerName1("indexPathWithIndexes:length:"); - instancetype _objc_msgSend_699( + instancetype _objc_msgSend_734( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexes, int length, ) { - return __objc_msgSend_699( + return __objc_msgSend_734( obj, sel, indexes, @@ -19951,14 +20531,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_699Ptr = _lookup< + late final __objc_msgSend_734Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_699 = __objc_msgSend_699Ptr.asFunction< + late final __objc_msgSend_734 = __objc_msgSend_734Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -19966,55 +20546,55 @@ class PedometerBindings { _registerName1("initWithIndexes:length:"); late final _sel_indexPathByAddingIndex_1 = _registerName1("indexPathByAddingIndex:"); - ffi.Pointer _objc_msgSend_700( + ffi.Pointer _objc_msgSend_735( ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_700( + return __objc_msgSend_735( obj, sel, index, ); } - late final __objc_msgSend_700Ptr = _lookup< + late final __objc_msgSend_735Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_700 = __objc_msgSend_700Ptr.asFunction< + late final __objc_msgSend_735 = __objc_msgSend_735Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_indexPathByRemovingLastIndex1 = _registerName1("indexPathByRemovingLastIndex"); - ffi.Pointer _objc_msgSend_701( + ffi.Pointer _objc_msgSend_736( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_701( + return __objc_msgSend_736( obj, sel, ); } - late final __objc_msgSend_701Ptr = _lookup< + late final __objc_msgSend_736Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_701 = __objc_msgSend_701Ptr.asFunction< + late final __objc_msgSend_736 = __objc_msgSend_736Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_indexAtPosition_1 = _registerName1("indexAtPosition:"); late final _sel_getIndexes_range_1 = _registerName1("getIndexes:range:"); - void _objc_msgSend_702( + void _objc_msgSend_737( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexes, _NSRange positionRange, ) { - return __objc_msgSend_702( + return __objc_msgSend_737( obj, sel, indexes, @@ -20022,72 +20602,72 @@ class PedometerBindings { ); } - late final __objc_msgSend_702Ptr = _lookup< + late final __objc_msgSend_737Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_702 = __objc_msgSend_702Ptr.asFunction< + late final __objc_msgSend_737 = __objc_msgSend_737Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange)>(); - int _objc_msgSend_703( + int _objc_msgSend_738( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherObject, ) { - return __objc_msgSend_703( + return __objc_msgSend_738( obj, sel, otherObject, ); } - late final __objc_msgSend_703Ptr = _lookup< + late final __objc_msgSend_738Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_703 = __objc_msgSend_703Ptr.asFunction< + late final __objc_msgSend_738 = __objc_msgSend_738Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_getIndexes_1 = _registerName1("getIndexes:"); - void _objc_msgSend_704( + void _objc_msgSend_739( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexes, ) { - return __objc_msgSend_704( + return __objc_msgSend_739( obj, sel, indexes, ); } - late final __objc_msgSend_704Ptr = _lookup< + late final __objc_msgSend_739Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_704 = __objc_msgSend_704Ptr.asFunction< + late final __objc_msgSend_739 = __objc_msgSend_739Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSInflectionRule1 = _getClass1("NSInflectionRule"); late final _sel_automaticRule1 = _registerName1("automaticRule"); - ffi.Pointer _objc_msgSend_705( + ffi.Pointer _objc_msgSend_740( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_705( + return __objc_msgSend_740( obj, sel, ); } - late final __objc_msgSend_705Ptr = _lookup< + late final __objc_msgSend_740Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_705 = __objc_msgSend_705Ptr.asFunction< + late final __objc_msgSend_740 = __objc_msgSend_740Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -20096,118 +20676,309 @@ class PedometerBindings { _registerName1("canInflectPreferredLocalization"); late final _class_NSMorphology1 = _getClass1("NSMorphology"); late final _sel_grammaticalGender1 = _registerName1("grammaticalGender"); - int _objc_msgSend_706( + int _objc_msgSend_741( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_706( + return __objc_msgSend_741( obj, sel, ); } - late final __objc_msgSend_706Ptr = _lookup< + late final __objc_msgSend_741Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_706 = __objc_msgSend_706Ptr.asFunction< + late final __objc_msgSend_741 = __objc_msgSend_741Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setGrammaticalGender_1 = _registerName1("setGrammaticalGender:"); - void _objc_msgSend_707( + void _objc_msgSend_742( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_707( + return __objc_msgSend_742( obj, sel, value, ); } - late final __objc_msgSend_707Ptr = _lookup< + late final __objc_msgSend_742Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_707 = __objc_msgSend_707Ptr.asFunction< + late final __objc_msgSend_742 = __objc_msgSend_742Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_partOfSpeech1 = _registerName1("partOfSpeech"); - int _objc_msgSend_708( + int _objc_msgSend_743( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_708( + return __objc_msgSend_743( obj, sel, ); } - late final __objc_msgSend_708Ptr = _lookup< + late final __objc_msgSend_743Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_708 = __objc_msgSend_708Ptr.asFunction< + late final __objc_msgSend_743 = __objc_msgSend_743Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setPartOfSpeech_1 = _registerName1("setPartOfSpeech:"); - void _objc_msgSend_709( + void _objc_msgSend_744( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_709( + return __objc_msgSend_744( obj, sel, value, ); } - late final __objc_msgSend_709Ptr = _lookup< + late final __objc_msgSend_744Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_709 = __objc_msgSend_709Ptr.asFunction< + late final __objc_msgSend_744 = __objc_msgSend_744Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_number1 = _registerName1("number"); - int _objc_msgSend_710( + int _objc_msgSend_745( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_710( + return __objc_msgSend_745( obj, sel, ); } - late final __objc_msgSend_710Ptr = _lookup< + late final __objc_msgSend_745Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_710 = __objc_msgSend_710Ptr.asFunction< + late final __objc_msgSend_745 = __objc_msgSend_745Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setNumber_1 = _registerName1("setNumber:"); - void _objc_msgSend_711( + void _objc_msgSend_746( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_711( + return __objc_msgSend_746( obj, sel, value, ); } - late final __objc_msgSend_711Ptr = _lookup< + late final __objc_msgSend_746Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_711 = __objc_msgSend_711Ptr.asFunction< + late final __objc_msgSend_746 = __objc_msgSend_746Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_grammaticalCase1 = _registerName1("grammaticalCase"); + int _objc_msgSend_747( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_747( + obj, + sel, + ); + } + + late final __objc_msgSend_747Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_747 = __objc_msgSend_747Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setGrammaticalCase_1 = _registerName1("setGrammaticalCase:"); + void _objc_msgSend_748( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_748( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_748Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_748 = __objc_msgSend_748Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_determination1 = _registerName1("determination"); + int _objc_msgSend_749( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_749( + obj, + sel, + ); + } + + late final __objc_msgSend_749Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_749 = __objc_msgSend_749Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setDetermination_1 = _registerName1("setDetermination:"); + void _objc_msgSend_750( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_750( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_750Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_750 = __objc_msgSend_750Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_grammaticalPerson1 = _registerName1("grammaticalPerson"); + int _objc_msgSend_751( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_751( + obj, + sel, + ); + } + + late final __objc_msgSend_751Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_751 = __objc_msgSend_751Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setGrammaticalPerson_1 = + _registerName1("setGrammaticalPerson:"); + void _objc_msgSend_752( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_752( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_752Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_752 = __objc_msgSend_752Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_pronounType1 = _registerName1("pronounType"); + int _objc_msgSend_753( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_753( + obj, + sel, + ); + } + + late final __objc_msgSend_753Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_753 = __objc_msgSend_753Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setPronounType_1 = _registerName1("setPronounType:"); + void _objc_msgSend_754( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_754( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_754Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_754 = __objc_msgSend_754Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_definiteness1 = _registerName1("definiteness"); + int _objc_msgSend_755( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_755( + obj, + sel, + ); + } + + late final __objc_msgSend_755Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_755 = __objc_msgSend_755Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setDefiniteness_1 = _registerName1("setDefiniteness:"); + void _objc_msgSend_756( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_756( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_756Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_756 = __objc_msgSend_756Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _class_NSMorphologyCustomPronoun1 = @@ -20230,36 +21001,36 @@ class PedometerBindings { late final _sel_setReflexiveForm_1 = _registerName1("setReflexiveForm:"); late final _sel_customPronounForLanguage_1 = _registerName1("customPronounForLanguage:"); - ffi.Pointer _objc_msgSend_712( + ffi.Pointer _objc_msgSend_757( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer language, ) { - return __objc_msgSend_712( + return __objc_msgSend_757( obj, sel, language, ); } - late final __objc_msgSend_712Ptr = _lookup< + late final __objc_msgSend_757Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_712 = __objc_msgSend_712Ptr.asFunction< + late final __objc_msgSend_757 = __objc_msgSend_757Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_setCustomPronoun_forLanguage_error_1 = _registerName1("setCustomPronoun:forLanguage:error:"); - bool _objc_msgSend_713( + bool _objc_msgSend_758( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer features, ffi.Pointer language, ffi.Pointer> error, ) { - return __objc_msgSend_713( + return __objc_msgSend_758( obj, sel, features, @@ -20268,7 +21039,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_713Ptr = _lookup< + late final __objc_msgSend_758Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -20276,7 +21047,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_713 = __objc_msgSend_713Ptr.asFunction< + late final __objc_msgSend_758 = __objc_msgSend_758Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -20286,21 +21057,21 @@ class PedometerBindings { late final _sel_isUnspecified1 = _registerName1("isUnspecified"); late final _sel_userMorphology1 = _registerName1("userMorphology"); - ffi.Pointer _objc_msgSend_714( + ffi.Pointer _objc_msgSend_759( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_714( + return __objc_msgSend_759( obj, sel, ); } - late final __objc_msgSend_714Ptr = _lookup< + late final __objc_msgSend_759Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_714 = __objc_msgSend_714Ptr.asFunction< + late final __objc_msgSend_759 = __objc_msgSend_759Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -20310,64 +21081,64 @@ class PedometerBindings { late final _sel_isAsynchronous1 = _registerName1("isAsynchronous"); late final _sel_isReady1 = _registerName1("isReady"); late final _sel_addDependency_1 = _registerName1("addDependency:"); - void _objc_msgSend_715( + void _objc_msgSend_760( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer op, ) { - return __objc_msgSend_715( + return __objc_msgSend_760( obj, sel, op, ); } - late final __objc_msgSend_715Ptr = _lookup< + late final __objc_msgSend_760Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_715 = __objc_msgSend_715Ptr.asFunction< + late final __objc_msgSend_760 = __objc_msgSend_760Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_removeDependency_1 = _registerName1("removeDependency:"); late final _sel_dependencies1 = _registerName1("dependencies"); late final _sel_queuePriority1 = _registerName1("queuePriority"); - int _objc_msgSend_716( + int _objc_msgSend_761( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_716( + return __objc_msgSend_761( obj, sel, ); } - late final __objc_msgSend_716Ptr = _lookup< + late final __objc_msgSend_761Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_716 = __objc_msgSend_716Ptr.asFunction< + late final __objc_msgSend_761 = __objc_msgSend_761Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setQueuePriority_1 = _registerName1("setQueuePriority:"); - void _objc_msgSend_717( + void _objc_msgSend_762( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_717( + return __objc_msgSend_762( obj, sel, value, ); } - late final __objc_msgSend_717Ptr = _lookup< + late final __objc_msgSend_762Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_717 = __objc_msgSend_717Ptr.asFunction< + late final __objc_msgSend_762 = __objc_msgSend_762Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_completionBlock1 = _registerName1("completionBlock"); @@ -20376,13 +21147,13 @@ class PedometerBindings { late final _sel_addOperation_1 = _registerName1("addOperation:"); late final _sel_addOperations_waitUntilFinished_1 = _registerName1("addOperations:waitUntilFinished:"); - void _objc_msgSend_718( + void _objc_msgSend_763( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer ops, bool wait, ) { - return __objc_msgSend_718( + return __objc_msgSend_763( obj, sel, ops, @@ -20390,11 +21161,11 @@ class PedometerBindings { ); } - late final __objc_msgSend_718Ptr = _lookup< + late final __objc_msgSend_763Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_718 = __objc_msgSend_718Ptr.asFunction< + late final __objc_msgSend_763 = __objc_msgSend_763Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); @@ -20408,42 +21179,42 @@ class PedometerBindings { late final _sel_isSuspended1 = _registerName1("isSuspended"); late final _sel_setSuspended_1 = _registerName1("setSuspended:"); late final _sel_underlyingQueue1 = _registerName1("underlyingQueue"); - ffi.Pointer _objc_msgSend_719( + ffi.Pointer _objc_msgSend_764( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_719( + return __objc_msgSend_764( obj, sel, ); } - late final __objc_msgSend_719Ptr = _lookup< + late final __objc_msgSend_764Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_719 = __objc_msgSend_719Ptr.asFunction< + late final __objc_msgSend_764 = __objc_msgSend_764Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setUnderlyingQueue_1 = _registerName1("setUnderlyingQueue:"); - void _objc_msgSend_720( + void _objc_msgSend_765( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_720( + return __objc_msgSend_765( obj, sel, value, ); } - late final __objc_msgSend_720Ptr = _lookup< + late final __objc_msgSend_765Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_720 = __objc_msgSend_720Ptr.asFunction< + late final __objc_msgSend_765 = __objc_msgSend_765Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -20451,69 +21222,87 @@ class PedometerBindings { late final _sel_waitUntilAllOperationsAreFinished1 = _registerName1("waitUntilAllOperationsAreFinished"); late final _sel_currentQueue1 = _registerName1("currentQueue"); - ffi.Pointer _objc_msgSend_721( + ffi.Pointer _objc_msgSend_766( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_721( + return __objc_msgSend_766( obj, sel, ); } - late final __objc_msgSend_721Ptr = _lookup< + late final __objc_msgSend_766Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_721 = __objc_msgSend_721Ptr.asFunction< + late final __objc_msgSend_766 = __objc_msgSend_766Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_mainQueue1 = _registerName1("mainQueue"); + ffi.Pointer _objc_msgSend_767( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_767( + obj, + sel, + ); + } + + late final __objc_msgSend_767Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_767 = __objc_msgSend_767Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_operations1 = _registerName1("operations"); late final _sel_operationCount1 = _registerName1("operationCount"); late final _class_NSPointerArray1 = _getClass1("NSPointerArray"); late final _sel_initWithOptions_1 = _registerName1("initWithOptions:"); - instancetype _objc_msgSend_722( + instancetype _objc_msgSend_768( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_722( + return __objc_msgSend_768( obj, sel, options, ); } - late final __objc_msgSend_722Ptr = _lookup< + late final __objc_msgSend_768Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_722 = __objc_msgSend_722Ptr.asFunction< + late final __objc_msgSend_768 = __objc_msgSend_768Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, int)>(); late final _class_NSPointerFunctions1 = _getClass1("NSPointerFunctions"); late final _sel_pointerFunctionsWithOptions_1 = _registerName1("pointerFunctionsWithOptions:"); - ffi.Pointer _objc_msgSend_723( + ffi.Pointer _objc_msgSend_769( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_723( + return __objc_msgSend_769( obj, sel, options, ); } - late final __objc_msgSend_723Ptr = _lookup< + late final __objc_msgSend_769Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_723 = __objc_msgSend_723Ptr.asFunction< + late final __objc_msgSend_769 = __objc_msgSend_769Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -20525,17 +21314,17 @@ class PedometerBindings { ffi.Pointer< ffi.NativeFunction< ffi.UnsignedLong Function(ffi.Pointer)>>)>> - _objc_msgSend_724( + _objc_msgSend_770( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_724( + return __objc_msgSend_770( obj, sel, ); } - late final __objc_msgSend_724Ptr = _lookup< + late final __objc_msgSend_770Ptr = _lookup< ffi.NativeFunction< ffi.Pointer< ffi.NativeFunction< @@ -20547,7 +21336,7 @@ class PedometerBindings { ffi.Pointer)>>)>> Function(ffi.Pointer, ffi.Pointer)>>( 'objc_msgSend'); - late final __objc_msgSend_724 = __objc_msgSend_724Ptr.asFunction< + late final __objc_msgSend_770 = __objc_msgSend_770Ptr.asFunction< ffi.Pointer< ffi.NativeFunction< ffi.UnsignedLong Function( @@ -20559,7 +21348,7 @@ class PedometerBindings { Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setHashFunction_1 = _registerName1("setHashFunction:"); - void _objc_msgSend_725( + void _objc_msgSend_771( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< @@ -20572,14 +21361,14 @@ class PedometerBindings { ffi.Pointer)>>)>> value, ) { - return __objc_msgSend_725( + return __objc_msgSend_771( obj, sel, value, ); } - late final __objc_msgSend_725Ptr = _lookup< + late final __objc_msgSend_771Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -20593,7 +21382,7 @@ class PedometerBindings { ffi.UnsignedLong Function( ffi.Pointer)>>)>>)>>( 'objc_msgSend'); - late final __objc_msgSend_725 = __objc_msgSend_725Ptr.asFunction< + late final __objc_msgSend_771 = __objc_msgSend_771Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -20615,17 +21404,17 @@ class PedometerBindings { ffi.Pointer< ffi.NativeFunction< ffi.UnsignedLong Function(ffi.Pointer)>>)>> - _objc_msgSend_726( + _objc_msgSend_772( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_726( + return __objc_msgSend_772( obj, sel, ); } - late final __objc_msgSend_726Ptr = _lookup< + late final __objc_msgSend_772Ptr = _lookup< ffi.NativeFunction< ffi.Pointer< ffi.NativeFunction< @@ -20638,7 +21427,7 @@ class PedometerBindings { ffi.Pointer)>>)>> Function(ffi.Pointer, ffi.Pointer)>>( 'objc_msgSend'); - late final __objc_msgSend_726 = __objc_msgSend_726Ptr.asFunction< + late final __objc_msgSend_772 = __objc_msgSend_772Ptr.asFunction< ffi.Pointer< ffi.NativeFunction< ffi.Bool Function( @@ -20651,7 +21440,7 @@ class PedometerBindings { Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setIsEqualFunction_1 = _registerName1("setIsEqualFunction:"); - void _objc_msgSend_727( + void _objc_msgSend_773( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< @@ -20665,14 +21454,14 @@ class PedometerBindings { ffi.Pointer)>>)>> value, ) { - return __objc_msgSend_727( + return __objc_msgSend_773( obj, sel, value, ); } - late final __objc_msgSend_727Ptr = _lookup< + late final __objc_msgSend_773Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -20687,7 +21476,7 @@ class PedometerBindings { ffi.UnsignedLong Function( ffi.Pointer)>>)>>)>>( 'objc_msgSend'); - late final __objc_msgSend_727 = __objc_msgSend_727Ptr.asFunction< + late final __objc_msgSend_773 = __objc_msgSend_773Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -20704,31 +21493,31 @@ class PedometerBindings { late final _sel_sizeFunction1 = _registerName1("sizeFunction"); ffi.Pointer< ffi.NativeFunction)>> - _objc_msgSend_728( + _objc_msgSend_774( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_728( + return __objc_msgSend_774( obj, sel, ); } - late final __objc_msgSend_728Ptr = _lookup< + late final __objc_msgSend_774Ptr = _lookup< ffi.NativeFunction< ffi.Pointer< ffi.NativeFunction< ffi.UnsignedLong Function(ffi.Pointer)>> Function(ffi.Pointer, ffi.Pointer)>>( 'objc_msgSend'); - late final __objc_msgSend_728 = __objc_msgSend_728Ptr.asFunction< + late final __objc_msgSend_774 = __objc_msgSend_774Ptr.asFunction< ffi.Pointer< ffi .NativeFunction)>> Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setSizeFunction_1 = _registerName1("setSizeFunction:"); - void _objc_msgSend_729( + void _objc_msgSend_775( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< @@ -20736,14 +21525,14 @@ class PedometerBindings { .NativeFunction)>> value, ) { - return __objc_msgSend_729( + return __objc_msgSend_775( obj, sel, value, ); } - late final __objc_msgSend_729Ptr = _lookup< + late final __objc_msgSend_775Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -20752,7 +21541,7 @@ class PedometerBindings { ffi.NativeFunction< ffi.UnsignedLong Function( ffi.Pointer)>>)>>('objc_msgSend'); - late final __objc_msgSend_729 = __objc_msgSend_729Ptr.asFunction< + late final __objc_msgSend_775 = __objc_msgSend_775Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -20764,17 +21553,17 @@ class PedometerBindings { ffi.Pointer< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer)>> - _objc_msgSend_730( + _objc_msgSend_776( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_730( + return __objc_msgSend_776( obj, sel, ); } - late final __objc_msgSend_730Ptr = + late final __objc_msgSend_776Ptr = _lookup< ffi.NativeFunction< ffi.Pointer< @@ -20783,7 +21572,7 @@ class PedometerBindings { ffi.Pointer)>> Function(ffi.Pointer, ffi.Pointer)>>( 'objc_msgSend'); - late final __objc_msgSend_730 = __objc_msgSend_730Ptr.asFunction< + late final __objc_msgSend_776 = __objc_msgSend_776Ptr.asFunction< ffi.Pointer< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer)>> @@ -20791,7 +21580,7 @@ class PedometerBindings { late final _sel_setDescriptionFunction_1 = _registerName1("setDescriptionFunction:"); - void _objc_msgSend_731( + void _objc_msgSend_777( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< @@ -20799,14 +21588,14 @@ class PedometerBindings { ffi.Pointer Function(ffi.Pointer)>> value, ) { - return __objc_msgSend_731( + return __objc_msgSend_777( obj, sel, value, ); } - late final __objc_msgSend_731Ptr = _lookup< + late final __objc_msgSend_777Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -20815,7 +21604,7 @@ class PedometerBindings { ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer)>>)>>('objc_msgSend'); - late final __objc_msgSend_731 = __objc_msgSend_731Ptr.asFunction< + late final __objc_msgSend_777 = __objc_msgSend_777Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -20831,17 +21620,17 @@ class PedometerBindings { ffi.Pointer< ffi.NativeFunction< ffi.UnsignedLong Function(ffi.Pointer)>>)>> - _objc_msgSend_732( + _objc_msgSend_778( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_732( + return __objc_msgSend_778( obj, sel, ); } - late final __objc_msgSend_732Ptr = _lookup< + late final __objc_msgSend_778Ptr = _lookup< ffi.NativeFunction< ffi.Pointer< ffi.NativeFunction< @@ -20853,7 +21642,7 @@ class PedometerBindings { ffi.Pointer)>>)>> Function(ffi.Pointer, ffi.Pointer)>>( 'objc_msgSend'); - late final __objc_msgSend_732 = __objc_msgSend_732Ptr.asFunction< + late final __objc_msgSend_778 = __objc_msgSend_778Ptr.asFunction< ffi.Pointer< ffi.NativeFunction< ffi.Void Function( @@ -20866,7 +21655,7 @@ class PedometerBindings { late final _sel_setRelinquishFunction_1 = _registerName1("setRelinquishFunction:"); - void _objc_msgSend_733( + void _objc_msgSend_779( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< @@ -20879,14 +21668,14 @@ class PedometerBindings { ffi.Pointer)>>)>> value, ) { - return __objc_msgSend_733( + return __objc_msgSend_779( obj, sel, value, ); } - late final __objc_msgSend_733Ptr = _lookup< + late final __objc_msgSend_779Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -20900,7 +21689,7 @@ class PedometerBindings { ffi.UnsignedLong Function( ffi.Pointer)>>)>>)>>( 'objc_msgSend'); - late final __objc_msgSend_733 = __objc_msgSend_733Ptr.asFunction< + late final __objc_msgSend_779 = __objc_msgSend_779Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -20921,17 +21710,17 @@ class PedometerBindings { ffi.Pointer< ffi.NativeFunction< ffi.UnsignedLong Function(ffi.Pointer)>>, - ffi.Bool)>> _objc_msgSend_734( + ffi.Bool)>> _objc_msgSend_780( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_734( + return __objc_msgSend_780( obj, sel, ); } - late final __objc_msgSend_734Ptr = _lookup< + late final __objc_msgSend_780Ptr = _lookup< ffi.NativeFunction< ffi.Pointer< ffi.NativeFunction< @@ -20944,7 +21733,7 @@ class PedometerBindings { ffi.Bool)>> Function(ffi.Pointer, ffi.Pointer)>>( 'objc_msgSend'); - late final __objc_msgSend_734 = __objc_msgSend_734Ptr.asFunction< + late final __objc_msgSend_780 = __objc_msgSend_780Ptr.asFunction< ffi.Pointer< ffi.NativeFunction< ffi.Pointer Function( @@ -20957,7 +21746,7 @@ class PedometerBindings { Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setAcquireFunction_1 = _registerName1("setAcquireFunction:"); - void _objc_msgSend_735( + void _objc_msgSend_781( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< @@ -20970,14 +21759,14 @@ class PedometerBindings { ffi.Bool)>> value, ) { - return __objc_msgSend_735( + return __objc_msgSend_781( obj, sel, value, ); } - late final __objc_msgSend_735Ptr = _lookup< + late final __objc_msgSend_781Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -20991,7 +21780,7 @@ class PedometerBindings { ffi.UnsignedLong Function( ffi.Pointer)>>, ffi.Bool)>>)>>('objc_msgSend'); - late final __objc_msgSend_735 = __objc_msgSend_735Ptr.asFunction< + late final __objc_msgSend_781 = __objc_msgSend_781Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -21015,107 +21804,107 @@ class PedometerBindings { _registerName1("setUsesWeakReadAndWriteBarriers:"); late final _sel_initWithPointerFunctions_1 = _registerName1("initWithPointerFunctions:"); - instancetype _objc_msgSend_736( + instancetype _objc_msgSend_782( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer functions, ) { - return __objc_msgSend_736( + return __objc_msgSend_782( obj, sel, functions, ); } - late final __objc_msgSend_736Ptr = _lookup< + late final __objc_msgSend_782Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_736 = __objc_msgSend_736Ptr.asFunction< + late final __objc_msgSend_782 = __objc_msgSend_782Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_pointerArrayWithOptions_1 = _registerName1("pointerArrayWithOptions:"); - ffi.Pointer _objc_msgSend_737( + ffi.Pointer _objc_msgSend_783( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_737( + return __objc_msgSend_783( obj, sel, options, ); } - late final __objc_msgSend_737Ptr = _lookup< + late final __objc_msgSend_783Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_737 = __objc_msgSend_737Ptr.asFunction< + late final __objc_msgSend_783 = __objc_msgSend_783Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_pointerArrayWithPointerFunctions_1 = _registerName1("pointerArrayWithPointerFunctions:"); - ffi.Pointer _objc_msgSend_738( + ffi.Pointer _objc_msgSend_784( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer functions, ) { - return __objc_msgSend_738( + return __objc_msgSend_784( obj, sel, functions, ); } - late final __objc_msgSend_738Ptr = _lookup< + late final __objc_msgSend_784Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_738 = __objc_msgSend_738Ptr.asFunction< + late final __objc_msgSend_784 = __objc_msgSend_784Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_pointerFunctions1 = _registerName1("pointerFunctions"); - ffi.Pointer _objc_msgSend_739( + ffi.Pointer _objc_msgSend_785( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_739( + return __objc_msgSend_785( obj, sel, ); } - late final __objc_msgSend_739Ptr = _lookup< + late final __objc_msgSend_785Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_739 = __objc_msgSend_739Ptr.asFunction< + late final __objc_msgSend_785 = __objc_msgSend_785Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_pointerAtIndex_1 = _registerName1("pointerAtIndex:"); - ffi.Pointer _objc_msgSend_740( + ffi.Pointer _objc_msgSend_786( ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_740( + return __objc_msgSend_786( obj, sel, index, ); } - late final __objc_msgSend_740Ptr = _lookup< + late final __objc_msgSend_786Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_740 = __objc_msgSend_740Ptr.asFunction< + late final __objc_msgSend_786 = __objc_msgSend_786Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -21126,13 +21915,13 @@ class PedometerBindings { _registerName1("insertPointer:atIndex:"); late final _sel_replacePointerAtIndex_withPointer_1 = _registerName1("replacePointerAtIndex:withPointer:"); - void _objc_msgSend_741( + void _objc_msgSend_787( ffi.Pointer obj, ffi.Pointer sel, int index, ffi.Pointer item, ) { - return __objc_msgSend_741( + return __objc_msgSend_787( obj, sel, index, @@ -21140,37 +21929,33 @@ class PedometerBindings { ); } - late final __objc_msgSend_741Ptr = _lookup< + late final __objc_msgSend_787Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_741 = __objc_msgSend_741Ptr.asFunction< + late final __objc_msgSend_787 = __objc_msgSend_787Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_compact1 = _registerName1("compact"); late final _sel_setCount_1 = _registerName1("setCount:"); - late final _sel_pointerArrayWithStrongObjects1 = - _registerName1("pointerArrayWithStrongObjects"); - late final _sel_pointerArrayWithWeakObjects1 = - _registerName1("pointerArrayWithWeakObjects"); late final _sel_strongObjectsPointerArray1 = _registerName1("strongObjectsPointerArray"); - ffi.Pointer _objc_msgSend_742( + ffi.Pointer _objc_msgSend_788( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_742( + return __objc_msgSend_788( obj, sel, ); } - late final __objc_msgSend_742Ptr = _lookup< + late final __objc_msgSend_788Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_742 = __objc_msgSend_742Ptr.asFunction< + late final __objc_msgSend_788 = __objc_msgSend_788Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -21178,21 +21963,21 @@ class PedometerBindings { _registerName1("weakObjectsPointerArray"); late final _class_NSProcessInfo1 = _getClass1("NSProcessInfo"); late final _sel_processInfo1 = _registerName1("processInfo"); - ffi.Pointer _objc_msgSend_743( + ffi.Pointer _objc_msgSend_789( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_743( + return __objc_msgSend_789( obj, sel, ); } - late final __objc_msgSend_743Ptr = _lookup< + late final __objc_msgSend_789Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_743 = __objc_msgSend_743Ptr.asFunction< + late final __objc_msgSend_789 = __objc_msgSend_789Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -21210,22 +21995,26 @@ class PedometerBindings { _registerName1("operatingSystemVersionString"); late final _sel_operatingSystemVersion1 = _registerName1("operatingSystemVersion"); - NSOperatingSystemVersion _objc_msgSend_744( + void _objc_msgSend_790( + ffi.Pointer stret, ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_744( + return __objc_msgSend_790( + stret, obj, sel, ); } - late final __objc_msgSend_744Ptr = _lookup< + late final __objc_msgSend_790Ptr = _lookup< ffi.NativeFunction< - NSOperatingSystemVersion Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_744 = __objc_msgSend_744Ptr.asFunction< - NSOperatingSystemVersion Function( + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_stret'); + late final __objc_msgSend_790 = __objc_msgSend_790Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_processorCount1 = _registerName1("processorCount"); @@ -21234,23 +22023,23 @@ class PedometerBindings { late final _sel_physicalMemory1 = _registerName1("physicalMemory"); late final _sel_isOperatingSystemAtLeastVersion_1 = _registerName1("isOperatingSystemAtLeastVersion:"); - bool _objc_msgSend_745( + bool _objc_msgSend_791( ffi.Pointer obj, ffi.Pointer sel, NSOperatingSystemVersion version, ) { - return __objc_msgSend_745( + return __objc_msgSend_791( obj, sel, version, ); } - late final __objc_msgSend_745Ptr = _lookup< + late final __objc_msgSend_791Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, NSOperatingSystemVersion)>>('objc_msgSend'); - late final __objc_msgSend_745 = __objc_msgSend_745Ptr.asFunction< + late final __objc_msgSend_791 = __objc_msgSend_791Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, NSOperatingSystemVersion)>(); @@ -21269,13 +22058,13 @@ class PedometerBindings { _registerName1("setAutomaticTerminationSupportEnabled:"); late final _sel_beginActivityWithOptions_reason_1 = _registerName1("beginActivityWithOptions:reason:"); - ffi.Pointer _objc_msgSend_746( + ffi.Pointer _objc_msgSend_792( ffi.Pointer obj, ffi.Pointer sel, int options, ffi.Pointer reason, ) { - return __objc_msgSend_746( + return __objc_msgSend_792( obj, sel, options, @@ -21283,28 +22072,28 @@ class PedometerBindings { ); } - late final __objc_msgSend_746Ptr = _lookup< + late final __objc_msgSend_792Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_746 = __objc_msgSend_746Ptr.asFunction< + late final __objc_msgSend_792 = __objc_msgSend_792Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_endActivity_1 = _registerName1("endActivity:"); late final _sel_performActivityWithOptions_reason_usingBlock_1 = _registerName1("performActivityWithOptions:reason:usingBlock:"); - void _objc_msgSend_747( + void _objc_msgSend_793( ffi.Pointer obj, ffi.Pointer sel, int options, ffi.Pointer reason, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_747( + return __objc_msgSend_793( obj, sel, options, @@ -21313,7 +22102,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_747Ptr = _lookup< + late final __objc_msgSend_793Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -21321,19 +22110,19 @@ class PedometerBindings { ffi.Int32, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_747 = __objc_msgSend_747Ptr.asFunction< + late final __objc_msgSend_793 = __objc_msgSend_793Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_performExpiringActivityWithReason_usingBlock_1 = _registerName1("performExpiringActivityWithReason:usingBlock:"); - void _objc_msgSend_748( + void _objc_msgSend_794( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer reason, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_748( + return __objc_msgSend_794( obj, sel, reason, @@ -21341,35 +22130,35 @@ class PedometerBindings { ); } - late final __objc_msgSend_748Ptr = _lookup< + late final __objc_msgSend_794Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_748 = __objc_msgSend_748Ptr.asFunction< + late final __objc_msgSend_794 = __objc_msgSend_794Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_userName1 = _registerName1("userName"); late final _sel_fullUserName1 = _registerName1("fullUserName"); late final _sel_thermalState1 = _registerName1("thermalState"); - int _objc_msgSend_749( + int _objc_msgSend_795( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_749( + return __objc_msgSend_795( obj, sel, ); } - late final __objc_msgSend_749Ptr = _lookup< + late final __objc_msgSend_795Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_749 = __objc_msgSend_749Ptr.asFunction< + late final __objc_msgSend_795 = __objc_msgSend_795Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_isLowPowerModeEnabled1 = @@ -21378,40 +22167,40 @@ class PedometerBindings { late final _sel_isiOSAppOnMac1 = _registerName1("isiOSAppOnMac"); late final _class_NSTextCheckingResult1 = _getClass1("NSTextCheckingResult"); late final _sel_resultType1 = _registerName1("resultType"); - int _objc_msgSend_750( + int _objc_msgSend_796( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_750( + return __objc_msgSend_796( obj, sel, ); } - late final __objc_msgSend_750Ptr = _lookup< + late final __objc_msgSend_796Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_750 = __objc_msgSend_750Ptr.asFunction< + late final __objc_msgSend_796 = __objc_msgSend_796Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_range1 = _registerName1("range"); late final _sel_orthography1 = _registerName1("orthography"); - ffi.Pointer _objc_msgSend_751( + ffi.Pointer _objc_msgSend_797( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_751( + return __objc_msgSend_797( obj, sel, ); } - late final __objc_msgSend_751Ptr = _lookup< + late final __objc_msgSend_797Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_751 = __objc_msgSend_751Ptr.asFunction< + late final __objc_msgSend_797 = __objc_msgSend_797Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -21423,14 +22212,14 @@ class PedometerBindings { late final _class_NSRegularExpression1 = _getClass1("NSRegularExpression"); late final _sel_regularExpressionWithPattern_options_error_1 = _registerName1("regularExpressionWithPattern:options:error:"); - ffi.Pointer _objc_msgSend_752( + ffi.Pointer _objc_msgSend_798( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer pattern, int options, ffi.Pointer> error, ) { - return __objc_msgSend_752( + return __objc_msgSend_798( obj, sel, pattern, @@ -21439,7 +22228,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_752Ptr = _lookup< + late final __objc_msgSend_798Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -21447,7 +22236,7 @@ class PedometerBindings { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_752 = __objc_msgSend_752Ptr.asFunction< + late final __objc_msgSend_798 = __objc_msgSend_798Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -21457,14 +22246,14 @@ class PedometerBindings { late final _sel_initWithPattern_options_error_1 = _registerName1("initWithPattern:options:error:"); - instancetype _objc_msgSend_753( + instancetype _objc_msgSend_799( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer pattern, int options, ffi.Pointer> error, ) { - return __objc_msgSend_753( + return __objc_msgSend_799( obj, sel, pattern, @@ -21473,7 +22262,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_753Ptr = _lookup< + late final __objc_msgSend_799Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -21481,7 +22270,7 @@ class PedometerBindings { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_753 = __objc_msgSend_753Ptr.asFunction< + late final __objc_msgSend_799 = __objc_msgSend_799Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -21491,21 +22280,21 @@ class PedometerBindings { late final _sel_pattern1 = _registerName1("pattern"); late final _sel_options1 = _registerName1("options"); - int _objc_msgSend_754( + int _objc_msgSend_800( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_754( + return __objc_msgSend_800( obj, sel, ); } - late final __objc_msgSend_754Ptr = _lookup< + late final __objc_msgSend_800Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_754 = __objc_msgSend_754Ptr.asFunction< + late final __objc_msgSend_800 = __objc_msgSend_800Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_numberOfCaptureGroups1 = @@ -21514,7 +22303,7 @@ class PedometerBindings { _registerName1("escapedPatternForString:"); late final _sel_enumerateMatchesInString_options_range_usingBlock_1 = _registerName1("enumerateMatchesInString:options:range:usingBlock:"); - void _objc_msgSend_755( + void _objc_msgSend_801( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, @@ -21522,7 +22311,7 @@ class PedometerBindings { _NSRange range, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_755( + return __objc_msgSend_801( obj, sel, string, @@ -21532,7 +22321,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_755Ptr = _lookup< + late final __objc_msgSend_801Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -21541,20 +22330,20 @@ class PedometerBindings { ffi.Int32, _NSRange, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_755 = __objc_msgSend_755Ptr.asFunction< + late final __objc_msgSend_801 = __objc_msgSend_801Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, _NSRange, ffi.Pointer<_ObjCBlock>)>(); late final _sel_matchesInString_options_range_1 = _registerName1("matchesInString:options:range:"); - ffi.Pointer _objc_msgSend_756( + ffi.Pointer _objc_msgSend_802( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int options, _NSRange range, ) { - return __objc_msgSend_756( + return __objc_msgSend_802( obj, sel, string, @@ -21563,7 +22352,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_756Ptr = _lookup< + late final __objc_msgSend_802Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -21571,20 +22360,20 @@ class PedometerBindings { ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_756 = __objc_msgSend_756Ptr.asFunction< + late final __objc_msgSend_802 = __objc_msgSend_802Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, _NSRange)>(); late final _sel_numberOfMatchesInString_options_range_1 = _registerName1("numberOfMatchesInString:options:range:"); - int _objc_msgSend_757( + int _objc_msgSend_803( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int options, _NSRange range, ) { - return __objc_msgSend_757( + return __objc_msgSend_803( obj, sel, string, @@ -21593,7 +22382,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_757Ptr = _lookup< + late final __objc_msgSend_803Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedLong Function( ffi.Pointer, @@ -21601,20 +22390,20 @@ class PedometerBindings { ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_757 = __objc_msgSend_757Ptr.asFunction< + late final __objc_msgSend_803 = __objc_msgSend_803Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, _NSRange)>(); late final _sel_firstMatchInString_options_range_1 = _registerName1("firstMatchInString:options:range:"); - ffi.Pointer _objc_msgSend_758( + ffi.Pointer _objc_msgSend_804( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int options, _NSRange range, ) { - return __objc_msgSend_758( + return __objc_msgSend_804( obj, sel, string, @@ -21623,7 +22412,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_758Ptr = _lookup< + late final __objc_msgSend_804Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -21631,20 +22420,22 @@ class PedometerBindings { ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_758 = __objc_msgSend_758Ptr.asFunction< + late final __objc_msgSend_804 = __objc_msgSend_804Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, _NSRange)>(); late final _sel_rangeOfFirstMatchInString_options_range_1 = _registerName1("rangeOfFirstMatchInString:options:range:"); - _NSRange _objc_msgSend_759( + void _objc_msgSend_805( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int options, _NSRange range, ) { - return __objc_msgSend_759( + return __objc_msgSend_805( + stret, obj, sel, string, @@ -21653,18 +22444,23 @@ class PedometerBindings { ); } - late final __objc_msgSend_759Ptr = _lookup< + late final __objc_msgSend_805Ptr = _lookup< ffi.NativeFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_759 = __objc_msgSend_759Ptr.asFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, _NSRange)>(); + ffi.Void Function( + ffi.Pointer<_NSRange>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange)>>('objc_msgSend_stret'); + late final __objc_msgSend_805 = __objc_msgSend_805Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, ffi.Pointer, int, _NSRange)>(); late final _sel_stringByReplacingMatchesInString_options_range_withTemplate_1 = _registerName1( "stringByReplacingMatchesInString:options:range:withTemplate:"); - ffi.Pointer _objc_msgSend_760( + ffi.Pointer _objc_msgSend_806( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, @@ -21672,7 +22468,7 @@ class PedometerBindings { _NSRange range, ffi.Pointer templ, ) { - return __objc_msgSend_760( + return __objc_msgSend_806( obj, sel, string, @@ -21682,7 +22478,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_760Ptr = _lookup< + late final __objc_msgSend_806Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -21691,7 +22487,7 @@ class PedometerBindings { ffi.Int32, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_760 = __objc_msgSend_760Ptr.asFunction< + late final __objc_msgSend_806 = __objc_msgSend_806Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -21702,7 +22498,7 @@ class PedometerBindings { late final _sel_replaceMatchesInString_options_range_withTemplate_1 = _registerName1("replaceMatchesInString:options:range:withTemplate:"); - int _objc_msgSend_761( + int _objc_msgSend_807( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, @@ -21710,7 +22506,7 @@ class PedometerBindings { _NSRange range, ffi.Pointer templ, ) { - return __objc_msgSend_761( + return __objc_msgSend_807( obj, sel, string, @@ -21720,7 +22516,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_761Ptr = _lookup< + late final __objc_msgSend_807Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedLong Function( ffi.Pointer, @@ -21729,13 +22525,13 @@ class PedometerBindings { ffi.Int32, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_761 = __objc_msgSend_761Ptr.asFunction< + late final __objc_msgSend_807 = __objc_msgSend_807Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, _NSRange, ffi.Pointer)>(); late final _sel_replacementStringForResult_inString_offset_template_1 = _registerName1("replacementStringForResult:inString:offset:template:"); - ffi.Pointer _objc_msgSend_762( + ffi.Pointer _objc_msgSend_808( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, @@ -21743,7 +22539,7 @@ class PedometerBindings { int offset, ffi.Pointer templ, ) { - return __objc_msgSend_762( + return __objc_msgSend_808( obj, sel, result, @@ -21753,7 +22549,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_762Ptr = _lookup< + late final __objc_msgSend_808Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -21762,7 +22558,7 @@ class PedometerBindings { ffi.Pointer, ffi.Long, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_762 = __objc_msgSend_762Ptr.asFunction< + late final __objc_msgSend_808 = __objc_msgSend_808Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -21774,21 +22570,21 @@ class PedometerBindings { late final _sel_escapedTemplateForString_1 = _registerName1("escapedTemplateForString:"); late final _sel_regularExpression1 = _registerName1("regularExpression"); - ffi.Pointer _objc_msgSend_763( + ffi.Pointer _objc_msgSend_809( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_763( + return __objc_msgSend_809( obj, sel, ); } - late final __objc_msgSend_763Ptr = _lookup< + late final __objc_msgSend_809Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_763 = __objc_msgSend_763Ptr.asFunction< + late final __objc_msgSend_809 = __objc_msgSend_809Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -21798,36 +22594,36 @@ class PedometerBindings { late final _sel_rangeWithName_1 = _registerName1("rangeWithName:"); late final _sel_resultByAdjustingRangesWithOffset_1 = _registerName1("resultByAdjustingRangesWithOffset:"); - ffi.Pointer _objc_msgSend_764( + ffi.Pointer _objc_msgSend_810( ffi.Pointer obj, ffi.Pointer sel, int offset, ) { - return __objc_msgSend_764( + return __objc_msgSend_810( obj, sel, offset, ); } - late final __objc_msgSend_764Ptr = _lookup< + late final __objc_msgSend_810Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_764 = __objc_msgSend_764Ptr.asFunction< + late final __objc_msgSend_810 = __objc_msgSend_810Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_addressComponents1 = _registerName1("addressComponents"); late final _sel_orthographyCheckingResultWithRange_orthography_1 = _registerName1("orthographyCheckingResultWithRange:orthography:"); - ffi.Pointer _objc_msgSend_765( + ffi.Pointer _objc_msgSend_811( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer orthography, ) { - return __objc_msgSend_765( + return __objc_msgSend_811( obj, sel, range, @@ -21835,48 +22631,48 @@ class PedometerBindings { ); } - late final __objc_msgSend_765Ptr = _lookup< + late final __objc_msgSend_811Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_765 = __objc_msgSend_765Ptr.asFunction< + late final __objc_msgSend_811 = __objc_msgSend_811Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_spellCheckingResultWithRange_1 = _registerName1("spellCheckingResultWithRange:"); - ffi.Pointer _objc_msgSend_766( + ffi.Pointer _objc_msgSend_812( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ) { - return __objc_msgSend_766( + return __objc_msgSend_812( obj, sel, range, ); } - late final __objc_msgSend_766Ptr = _lookup< + late final __objc_msgSend_812Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_766 = __objc_msgSend_766Ptr.asFunction< + late final __objc_msgSend_812 = __objc_msgSend_812Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_grammarCheckingResultWithRange_details_1 = _registerName1("grammarCheckingResultWithRange:details:"); - ffi.Pointer _objc_msgSend_767( + ffi.Pointer _objc_msgSend_813( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer details, ) { - return __objc_msgSend_767( + return __objc_msgSend_813( obj, sel, range, @@ -21884,26 +22680,26 @@ class PedometerBindings { ); } - late final __objc_msgSend_767Ptr = _lookup< + late final __objc_msgSend_813Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_767 = __objc_msgSend_767Ptr.asFunction< + late final __objc_msgSend_813 = __objc_msgSend_813Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_dateCheckingResultWithRange_date_1 = _registerName1("dateCheckingResultWithRange:date:"); - ffi.Pointer _objc_msgSend_768( + ffi.Pointer _objc_msgSend_814( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer date, ) { - return __objc_msgSend_768( + return __objc_msgSend_814( obj, sel, range, @@ -21911,20 +22707,20 @@ class PedometerBindings { ); } - late final __objc_msgSend_768Ptr = _lookup< + late final __objc_msgSend_814Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_768 = __objc_msgSend_768Ptr.asFunction< + late final __objc_msgSend_814 = __objc_msgSend_814Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_dateCheckingResultWithRange_date_timeZone_duration_1 = _registerName1("dateCheckingResultWithRange:date:timeZone:duration:"); - ffi.Pointer _objc_msgSend_769( + ffi.Pointer _objc_msgSend_815( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, @@ -21932,7 +22728,7 @@ class PedometerBindings { ffi.Pointer timeZone, double duration, ) { - return __objc_msgSend_769( + return __objc_msgSend_815( obj, sel, range, @@ -21942,7 +22738,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_769Ptr = _lookup< + late final __objc_msgSend_815Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -21951,7 +22747,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_769 = __objc_msgSend_769Ptr.asFunction< + late final __objc_msgSend_815 = __objc_msgSend_815Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -21962,13 +22758,13 @@ class PedometerBindings { late final _sel_addressCheckingResultWithRange_components_1 = _registerName1("addressCheckingResultWithRange:components:"); - ffi.Pointer _objc_msgSend_770( + ffi.Pointer _objc_msgSend_816( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer components, ) { - return __objc_msgSend_770( + return __objc_msgSend_816( obj, sel, range, @@ -21976,26 +22772,26 @@ class PedometerBindings { ); } - late final __objc_msgSend_770Ptr = _lookup< + late final __objc_msgSend_816Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_770 = __objc_msgSend_770Ptr.asFunction< + late final __objc_msgSend_816 = __objc_msgSend_816Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_linkCheckingResultWithRange_URL_1 = _registerName1("linkCheckingResultWithRange:URL:"); - ffi.Pointer _objc_msgSend_771( + ffi.Pointer _objc_msgSend_817( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer url, ) { - return __objc_msgSend_771( + return __objc_msgSend_817( obj, sel, range, @@ -22003,26 +22799,26 @@ class PedometerBindings { ); } - late final __objc_msgSend_771Ptr = _lookup< + late final __objc_msgSend_817Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_771 = __objc_msgSend_771Ptr.asFunction< + late final __objc_msgSend_817 = __objc_msgSend_817Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_quoteCheckingResultWithRange_replacementString_1 = _registerName1("quoteCheckingResultWithRange:replacementString:"); - ffi.Pointer _objc_msgSend_772( + ffi.Pointer _objc_msgSend_818( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer replacementString, ) { - return __objc_msgSend_772( + return __objc_msgSend_818( obj, sel, range, @@ -22030,14 +22826,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_772Ptr = _lookup< + late final __objc_msgSend_818Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_772 = __objc_msgSend_772Ptr.asFunction< + late final __objc_msgSend_818 = __objc_msgSend_818Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); @@ -22050,14 +22846,14 @@ class PedometerBindings { late final _sel_correctionCheckingResultWithRange_replacementString_alternativeStrings_1 = _registerName1( "correctionCheckingResultWithRange:replacementString:alternativeStrings:"); - ffi.Pointer _objc_msgSend_773( + ffi.Pointer _objc_msgSend_819( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer replacementString, ffi.Pointer alternativeStrings, ) { - return __objc_msgSend_773( + return __objc_msgSend_819( obj, sel, range, @@ -22066,7 +22862,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_773Ptr = _lookup< + late final __objc_msgSend_819Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -22074,7 +22870,7 @@ class PedometerBindings { _NSRange, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_773 = __objc_msgSend_773Ptr.asFunction< + late final __objc_msgSend_819 = __objc_msgSend_819Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -22085,14 +22881,14 @@ class PedometerBindings { late final _sel_regularExpressionCheckingResultWithRanges_count_regularExpression_1 = _registerName1( "regularExpressionCheckingResultWithRanges:count:regularExpression:"); - ffi.Pointer _objc_msgSend_774( + ffi.Pointer _objc_msgSend_820( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_NSRange> ranges, int count, ffi.Pointer regularExpression, ) { - return __objc_msgSend_774( + return __objc_msgSend_820( obj, sel, ranges, @@ -22101,7 +22897,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_774Ptr = _lookup< + late final __objc_msgSend_820Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -22109,7 +22905,7 @@ class PedometerBindings { ffi.Pointer<_NSRange>, ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_774 = __objc_msgSend_774Ptr.asFunction< + late final __objc_msgSend_820 = __objc_msgSend_820Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -22123,55 +22919,55 @@ class PedometerBindings { _registerName1("transitInformationCheckingResultWithRange:components:"); late final _class_NSURLCache1 = _getClass1("NSURLCache"); late final _sel_sharedURLCache1 = _registerName1("sharedURLCache"); - ffi.Pointer _objc_msgSend_775( + ffi.Pointer _objc_msgSend_821( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_775( + return __objc_msgSend_821( obj, sel, ); } - late final __objc_msgSend_775Ptr = _lookup< + late final __objc_msgSend_821Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_775 = __objc_msgSend_775Ptr.asFunction< + late final __objc_msgSend_821 = __objc_msgSend_821Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setSharedURLCache_1 = _registerName1("setSharedURLCache:"); - void _objc_msgSend_776( + void _objc_msgSend_822( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_776( + return __objc_msgSend_822( obj, sel, value, ); } - late final __objc_msgSend_776Ptr = _lookup< + late final __objc_msgSend_822Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_776 = __objc_msgSend_776Ptr.asFunction< + late final __objc_msgSend_822 = __objc_msgSend_822Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithMemoryCapacity_diskCapacity_diskPath_1 = _registerName1("initWithMemoryCapacity:diskCapacity:diskPath:"); - instancetype _objc_msgSend_777( + instancetype _objc_msgSend_823( ffi.Pointer obj, ffi.Pointer sel, int memoryCapacity, int diskCapacity, ffi.Pointer path, ) { - return __objc_msgSend_777( + return __objc_msgSend_823( obj, sel, memoryCapacity, @@ -22180,7 +22976,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_777Ptr = _lookup< + late final __objc_msgSend_823Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -22188,20 +22984,20 @@ class PedometerBindings { ffi.UnsignedLong, ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_777 = __objc_msgSend_777Ptr.asFunction< + late final __objc_msgSend_823 = __objc_msgSend_823Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer)>(); late final _sel_initWithMemoryCapacity_diskCapacity_directoryURL_1 = _registerName1("initWithMemoryCapacity:diskCapacity:directoryURL:"); - instancetype _objc_msgSend_778( + instancetype _objc_msgSend_824( ffi.Pointer obj, ffi.Pointer sel, int memoryCapacity, int diskCapacity, ffi.Pointer directoryURL, ) { - return __objc_msgSend_778( + return __objc_msgSend_824( obj, sel, memoryCapacity, @@ -22210,7 +23006,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_778Ptr = _lookup< + late final __objc_msgSend_824Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -22218,20 +23014,20 @@ class PedometerBindings { ffi.UnsignedLong, ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_778 = __objc_msgSend_778Ptr.asFunction< + late final __objc_msgSend_824 = __objc_msgSend_824Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer)>(); late final _class_NSCachedURLResponse1 = _getClass1("NSCachedURLResponse"); late final _sel_initWithResponse_data_1 = _registerName1("initWithResponse:data:"); - instancetype _objc_msgSend_779( + instancetype _objc_msgSend_825( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer response, ffi.Pointer data, ) { - return __objc_msgSend_779( + return __objc_msgSend_825( obj, sel, response, @@ -22239,20 +23035,20 @@ class PedometerBindings { ); } - late final __objc_msgSend_779Ptr = _lookup< + late final __objc_msgSend_825Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_779 = __objc_msgSend_779Ptr.asFunction< + late final __objc_msgSend_825 = __objc_msgSend_825Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithResponse_data_userInfo_storagePolicy_1 = _registerName1("initWithResponse:data:userInfo:storagePolicy:"); - instancetype _objc_msgSend_780( + instancetype _objc_msgSend_826( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer response, @@ -22260,7 +23056,7 @@ class PedometerBindings { ffi.Pointer userInfo, int storagePolicy, ) { - return __objc_msgSend_780( + return __objc_msgSend_826( obj, sel, response, @@ -22270,7 +23066,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_780Ptr = _lookup< + late final __objc_msgSend_826Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -22279,7 +23075,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_780 = __objc_msgSend_780Ptr.asFunction< + late final __objc_msgSend_826 = __objc_msgSend_826Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -22288,55 +23084,73 @@ class PedometerBindings { ffi.Pointer, int)>(); + ffi.Pointer _objc_msgSend_827( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_827( + obj, + sel, + ); + } + + late final __objc_msgSend_827Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_827 = __objc_msgSend_827Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_storagePolicy1 = _registerName1("storagePolicy"); - int _objc_msgSend_781( + int _objc_msgSend_828( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_781( + return __objc_msgSend_828( obj, sel, ); } - late final __objc_msgSend_781Ptr = _lookup< + late final __objc_msgSend_828Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_781 = __objc_msgSend_781Ptr.asFunction< + late final __objc_msgSend_828 = __objc_msgSend_828Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_cachedResponseForRequest_1 = _registerName1("cachedResponseForRequest:"); - ffi.Pointer _objc_msgSend_782( + ffi.Pointer _objc_msgSend_829( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_782( + return __objc_msgSend_829( obj, sel, request, ); } - late final __objc_msgSend_782Ptr = _lookup< + late final __objc_msgSend_829Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_782 = __objc_msgSend_782Ptr.asFunction< + late final __objc_msgSend_829 = __objc_msgSend_829Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_storeCachedResponse_forRequest_1 = _registerName1("storeCachedResponse:forRequest:"); - void _objc_msgSend_783( + void _objc_msgSend_830( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer cachedResponse, ffi.Pointer request, ) { - return __objc_msgSend_783( + return __objc_msgSend_830( obj, sel, cachedResponse, @@ -22344,36 +23158,36 @@ class PedometerBindings { ); } - late final __objc_msgSend_783Ptr = _lookup< + late final __objc_msgSend_830Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_783 = __objc_msgSend_783Ptr.asFunction< + late final __objc_msgSend_830 = __objc_msgSend_830Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_removeCachedResponseForRequest_1 = _registerName1("removeCachedResponseForRequest:"); - void _objc_msgSend_784( + void _objc_msgSend_831( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_784( + return __objc_msgSend_831( obj, sel, request, ); } - late final __objc_msgSend_784Ptr = _lookup< + late final __objc_msgSend_831Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_784 = __objc_msgSend_784Ptr.asFunction< + late final __objc_msgSend_831 = __objc_msgSend_831Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -22390,13 +23204,13 @@ class PedometerBindings { late final _class_NSURLSessionDataTask1 = _getClass1("NSURLSessionDataTask"); late final _sel_storeCachedResponse_forDataTask_1 = _registerName1("storeCachedResponse:forDataTask:"); - void _objc_msgSend_785( + void _objc_msgSend_832( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer cachedResponse, ffi.Pointer dataTask, ) { - return __objc_msgSend_785( + return __objc_msgSend_832( obj, sel, cachedResponse, @@ -22404,26 +23218,26 @@ class PedometerBindings { ); } - late final __objc_msgSend_785Ptr = _lookup< + late final __objc_msgSend_832Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_785 = __objc_msgSend_785Ptr.asFunction< + late final __objc_msgSend_832 = __objc_msgSend_832Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_getCachedResponseForDataTask_completionHandler_1 = _registerName1("getCachedResponseForDataTask:completionHandler:"); - void _objc_msgSend_786( + void _objc_msgSend_833( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer dataTask, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_786( + return __objc_msgSend_833( obj, sel, dataTask, @@ -22431,50 +23245,50 @@ class PedometerBindings { ); } - late final __objc_msgSend_786Ptr = _lookup< + late final __objc_msgSend_833Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_786 = __objc_msgSend_786Ptr.asFunction< + late final __objc_msgSend_833 = __objc_msgSend_833Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_removeCachedResponseForDataTask_1 = _registerName1("removeCachedResponseForDataTask:"); - void _objc_msgSend_787( + void _objc_msgSend_834( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer dataTask, ) { - return __objc_msgSend_787( + return __objc_msgSend_834( obj, sel, dataTask, ); } - late final __objc_msgSend_787Ptr = _lookup< + late final __objc_msgSend_834Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_787 = __objc_msgSend_787Ptr.asFunction< + late final __objc_msgSend_834 = __objc_msgSend_834Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSURLConnection1 = _getClass1("NSURLConnection"); late final _sel_initWithRequest_delegate_startImmediately_1 = _registerName1("initWithRequest:delegate:startImmediately:"); - instancetype _objc_msgSend_788( + instancetype _objc_msgSend_835( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer delegate, bool startImmediately, ) { - return __objc_msgSend_788( + return __objc_msgSend_835( obj, sel, request, @@ -22483,7 +23297,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_788Ptr = _lookup< + late final __objc_msgSend_835Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -22491,19 +23305,19 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_788 = __objc_msgSend_788Ptr.asFunction< + late final __objc_msgSend_835 = __objc_msgSend_835Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_initWithRequest_delegate_1 = _registerName1("initWithRequest:delegate:"); - instancetype _objc_msgSend_789( + instancetype _objc_msgSend_836( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer delegate, ) { - return __objc_msgSend_789( + return __objc_msgSend_836( obj, sel, request, @@ -22511,26 +23325,26 @@ class PedometerBindings { ); } - late final __objc_msgSend_789Ptr = _lookup< + late final __objc_msgSend_836Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_789 = __objc_msgSend_789Ptr.asFunction< + late final __objc_msgSend_836 = __objc_msgSend_836Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_connectionWithRequest_delegate_1 = _registerName1("connectionWithRequest:delegate:"); - ffi.Pointer _objc_msgSend_790( + ffi.Pointer _objc_msgSend_837( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer delegate, ) { - return __objc_msgSend_790( + return __objc_msgSend_837( obj, sel, request, @@ -22538,74 +23352,92 @@ class PedometerBindings { ); } - late final __objc_msgSend_790Ptr = _lookup< + late final __objc_msgSend_837Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_790 = __objc_msgSend_790Ptr.asFunction< + late final __objc_msgSend_837 = __objc_msgSend_837Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer _objc_msgSend_838( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_838( + obj, + sel, + ); + } + + late final __objc_msgSend_838Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_838 = __objc_msgSend_838Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_unscheduleFromRunLoop_forMode_1 = _registerName1("unscheduleFromRunLoop:forMode:"); late final _sel_setDelegateQueue_1 = _registerName1("setDelegateQueue:"); - void _objc_msgSend_791( + void _objc_msgSend_839( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer queue, ) { - return __objc_msgSend_791( + return __objc_msgSend_839( obj, sel, queue, ); } - late final __objc_msgSend_791Ptr = _lookup< + late final __objc_msgSend_839Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_791 = __objc_msgSend_791Ptr.asFunction< + late final __objc_msgSend_839 = __objc_msgSend_839Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_canHandleRequest_1 = _registerName1("canHandleRequest:"); - bool _objc_msgSend_792( + bool _objc_msgSend_840( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_792( + return __objc_msgSend_840( obj, sel, request, ); } - late final __objc_msgSend_792Ptr = _lookup< + late final __objc_msgSend_840Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_792 = __objc_msgSend_792Ptr.asFunction< + late final __objc_msgSend_840 = __objc_msgSend_840Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_sendSynchronousRequest_returningResponse_error_1 = _registerName1("sendSynchronousRequest:returningResponse:error:"); - ffi.Pointer _objc_msgSend_793( + ffi.Pointer _objc_msgSend_841( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer> response, ffi.Pointer> error, ) { - return __objc_msgSend_793( + return __objc_msgSend_841( obj, sel, request, @@ -22614,7 +23446,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_793Ptr = _lookup< + late final __objc_msgSend_841Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -22622,7 +23454,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_793 = __objc_msgSend_793Ptr.asFunction< + late final __objc_msgSend_841 = __objc_msgSend_841Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -22632,14 +23464,14 @@ class PedometerBindings { late final _sel_sendAsynchronousRequest_queue_completionHandler_1 = _registerName1("sendAsynchronousRequest:queue:completionHandler:"); - void _objc_msgSend_794( + void _objc_msgSend_842( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer queue, ffi.Pointer<_ObjCBlock> handler, ) { - return __objc_msgSend_794( + return __objc_msgSend_842( obj, sel, request, @@ -22648,7 +23480,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_794Ptr = _lookup< + late final __objc_msgSend_842Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -22656,7 +23488,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_794 = __objc_msgSend_794Ptr.asFunction< + late final __objc_msgSend_842 = __objc_msgSend_842Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -22666,33 +23498,33 @@ class PedometerBindings { late final _class_NSURLCredential1 = _getClass1("NSURLCredential"); late final _sel_persistence1 = _registerName1("persistence"); - int _objc_msgSend_795( + int _objc_msgSend_843( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_795( + return __objc_msgSend_843( obj, sel, ); } - late final __objc_msgSend_795Ptr = _lookup< + late final __objc_msgSend_843Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_795 = __objc_msgSend_795Ptr.asFunction< + late final __objc_msgSend_843 = __objc_msgSend_843Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithUser_password_persistence_1 = _registerName1("initWithUser:password:persistence:"); - instancetype _objc_msgSend_796( + instancetype _objc_msgSend_844( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer user, ffi.Pointer password, int persistence, ) { - return __objc_msgSend_796( + return __objc_msgSend_844( obj, sel, user, @@ -22701,7 +23533,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_796Ptr = _lookup< + late final __objc_msgSend_844Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -22709,20 +23541,20 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_796 = __objc_msgSend_796Ptr.asFunction< + late final __objc_msgSend_844 = __objc_msgSend_844Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_credentialWithUser_password_persistence_1 = _registerName1("credentialWithUser:password:persistence:"); - ffi.Pointer _objc_msgSend_797( + ffi.Pointer _objc_msgSend_845( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer user, ffi.Pointer password, int persistence, ) { - return __objc_msgSend_797( + return __objc_msgSend_845( obj, sel, user, @@ -22731,7 +23563,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_797Ptr = _lookup< + late final __objc_msgSend_845Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -22739,7 +23571,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_797 = __objc_msgSend_797Ptr.asFunction< + late final __objc_msgSend_845 = __objc_msgSend_845Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -22750,14 +23582,14 @@ class PedometerBindings { late final _sel_hasPassword1 = _registerName1("hasPassword"); late final _sel_initWithIdentity_certificates_persistence_1 = _registerName1("initWithIdentity:certificates:persistence:"); - instancetype _objc_msgSend_798( + instancetype _objc_msgSend_846( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<__SecIdentity> identity, ffi.Pointer certArray, int persistence, ) { - return __objc_msgSend_798( + return __objc_msgSend_846( obj, sel, identity, @@ -22766,7 +23598,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_798Ptr = _lookup< + late final __objc_msgSend_846Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -22774,20 +23606,20 @@ class PedometerBindings { ffi.Pointer<__SecIdentity>, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_798 = __objc_msgSend_798Ptr.asFunction< + late final __objc_msgSend_846 = __objc_msgSend_846Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<__SecIdentity>, ffi.Pointer, int)>(); late final _sel_credentialWithIdentity_certificates_persistence_1 = _registerName1("credentialWithIdentity:certificates:persistence:"); - ffi.Pointer _objc_msgSend_799( + ffi.Pointer _objc_msgSend_847( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<__SecIdentity> identity, ffi.Pointer certArray, int persistence, ) { - return __objc_msgSend_799( + return __objc_msgSend_847( obj, sel, identity, @@ -22796,7 +23628,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_799Ptr = _lookup< + late final __objc_msgSend_847Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -22804,7 +23636,7 @@ class PedometerBindings { ffi.Pointer<__SecIdentity>, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_799 = __objc_msgSend_799Ptr.asFunction< + late final __objc_msgSend_847 = __objc_msgSend_847Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -22813,71 +23645,71 @@ class PedometerBindings { int)>(); late final _sel_identity1 = _registerName1("identity"); - ffi.Pointer<__SecIdentity> _objc_msgSend_800( + ffi.Pointer<__SecIdentity> _objc_msgSend_848( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_800( + return __objc_msgSend_848( obj, sel, ); } - late final __objc_msgSend_800Ptr = _lookup< + late final __objc_msgSend_848Ptr = _lookup< ffi.NativeFunction< ffi.Pointer<__SecIdentity> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_800 = __objc_msgSend_800Ptr.asFunction< + late final __objc_msgSend_848 = __objc_msgSend_848Ptr.asFunction< ffi.Pointer<__SecIdentity> Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_certificates1 = _registerName1("certificates"); late final _sel_initWithTrust_1 = _registerName1("initWithTrust:"); - instancetype _objc_msgSend_801( + instancetype _objc_msgSend_849( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<__SecTrust> trust, ) { - return __objc_msgSend_801( + return __objc_msgSend_849( obj, sel, trust, ); } - late final __objc_msgSend_801Ptr = _lookup< + late final __objc_msgSend_849Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<__SecTrust>)>>('objc_msgSend'); - late final __objc_msgSend_801 = __objc_msgSend_801Ptr.asFunction< + late final __objc_msgSend_849 = __objc_msgSend_849Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<__SecTrust>)>(); late final _sel_credentialForTrust_1 = _registerName1("credentialForTrust:"); - ffi.Pointer _objc_msgSend_802( + ffi.Pointer _objc_msgSend_850( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<__SecTrust> trust, ) { - return __objc_msgSend_802( + return __objc_msgSend_850( obj, sel, trust, ); } - late final __objc_msgSend_802Ptr = _lookup< + late final __objc_msgSend_850Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<__SecTrust>)>>('objc_msgSend'); - late final __objc_msgSend_802 = __objc_msgSend_802Ptr.asFunction< + late final __objc_msgSend_850 = __objc_msgSend_850Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<__SecTrust>)>(); late final _class_NSURLProtectionSpace1 = _getClass1("NSURLProtectionSpace"); late final _sel_initWithHost_port_protocol_realm_authenticationMethod_1 = _registerName1("initWithHost:port:protocol:realm:authenticationMethod:"); - instancetype _objc_msgSend_803( + instancetype _objc_msgSend_851( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer host, @@ -22886,7 +23718,7 @@ class PedometerBindings { ffi.Pointer realm, ffi.Pointer authenticationMethod, ) { - return __objc_msgSend_803( + return __objc_msgSend_851( obj, sel, host, @@ -22897,7 +23729,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_803Ptr = _lookup< + late final __objc_msgSend_851Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -22907,7 +23739,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_803 = __objc_msgSend_803Ptr.asFunction< + late final __objc_msgSend_851 = __objc_msgSend_851Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -22929,21 +23761,21 @@ class PedometerBindings { _registerName1("authenticationMethod"); late final _sel_distinguishedNames1 = _registerName1("distinguishedNames"); late final _sel_serverTrust1 = _registerName1("serverTrust"); - ffi.Pointer<__SecTrust> _objc_msgSend_804( + ffi.Pointer<__SecTrust> _objc_msgSend_852( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_804( + return __objc_msgSend_852( obj, sel, ); } - late final __objc_msgSend_804Ptr = _lookup< + late final __objc_msgSend_852Ptr = _lookup< ffi.NativeFunction< ffi.Pointer<__SecTrust> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_804 = __objc_msgSend_804Ptr.asFunction< + late final __objc_msgSend_852 = __objc_msgSend_852Ptr.asFunction< ffi.Pointer<__SecTrust> Function( ffi.Pointer, ffi.Pointer)>(); @@ -22951,56 +23783,56 @@ class PedometerBindings { _getClass1("NSURLCredentialStorage"); late final _sel_sharedCredentialStorage1 = _registerName1("sharedCredentialStorage"); - ffi.Pointer _objc_msgSend_805( + ffi.Pointer _objc_msgSend_853( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_805( + return __objc_msgSend_853( obj, sel, ); } - late final __objc_msgSend_805Ptr = _lookup< + late final __objc_msgSend_853Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_805 = __objc_msgSend_805Ptr.asFunction< + late final __objc_msgSend_853 = __objc_msgSend_853Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_credentialsForProtectionSpace_1 = _registerName1("credentialsForProtectionSpace:"); - ffi.Pointer _objc_msgSend_806( + ffi.Pointer _objc_msgSend_854( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer space, ) { - return __objc_msgSend_806( + return __objc_msgSend_854( obj, sel, space, ); } - late final __objc_msgSend_806Ptr = _lookup< + late final __objc_msgSend_854Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_806 = __objc_msgSend_806Ptr.asFunction< + late final __objc_msgSend_854 = __objc_msgSend_854Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_allCredentials1 = _registerName1("allCredentials"); late final _sel_setCredential_forProtectionSpace_1 = _registerName1("setCredential:forProtectionSpace:"); - void _objc_msgSend_807( + void _objc_msgSend_855( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer credential, ffi.Pointer space, ) { - return __objc_msgSend_807( + return __objc_msgSend_855( obj, sel, credential, @@ -23008,14 +23840,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_807Ptr = _lookup< + late final __objc_msgSend_855Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_807 = __objc_msgSend_807Ptr.asFunction< + late final __objc_msgSend_855 = __objc_msgSend_855Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -23023,14 +23855,14 @@ class PedometerBindings { _registerName1("removeCredential:forProtectionSpace:"); late final _sel_removeCredential_forProtectionSpace_options_1 = _registerName1("removeCredential:forProtectionSpace:options:"); - void _objc_msgSend_808( + void _objc_msgSend_856( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer credential, ffi.Pointer space, ffi.Pointer options, ) { - return __objc_msgSend_808( + return __objc_msgSend_856( obj, sel, credential, @@ -23039,7 +23871,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_808Ptr = _lookup< + late final __objc_msgSend_856Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -23047,7 +23879,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_808 = __objc_msgSend_808Ptr.asFunction< + late final __objc_msgSend_856 = __objc_msgSend_856Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -23057,23 +23889,23 @@ class PedometerBindings { late final _sel_defaultCredentialForProtectionSpace_1 = _registerName1("defaultCredentialForProtectionSpace:"); - ffi.Pointer _objc_msgSend_809( + ffi.Pointer _objc_msgSend_857( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer space, ) { - return __objc_msgSend_809( + return __objc_msgSend_857( obj, sel, space, ); } - late final __objc_msgSend_809Ptr = _lookup< + late final __objc_msgSend_857Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_809 = __objc_msgSend_809Ptr.asFunction< + late final __objc_msgSend_857 = __objc_msgSend_857Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -23082,14 +23914,14 @@ class PedometerBindings { late final _sel_getCredentialsForProtectionSpace_task_completionHandler_1 = _registerName1( "getCredentialsForProtectionSpace:task:completionHandler:"); - void _objc_msgSend_810( + void _objc_msgSend_858( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer protectionSpace, ffi.Pointer task, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_810( + return __objc_msgSend_858( obj, sel, protectionSpace, @@ -23098,7 +23930,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_810Ptr = _lookup< + late final __objc_msgSend_858Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -23106,7 +23938,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_810 = __objc_msgSend_810Ptr.asFunction< + late final __objc_msgSend_858 = __objc_msgSend_858Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -23116,14 +23948,14 @@ class PedometerBindings { late final _sel_setCredential_forProtectionSpace_task_1 = _registerName1("setCredential:forProtectionSpace:task:"); - void _objc_msgSend_811( + void _objc_msgSend_859( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer credential, ffi.Pointer protectionSpace, ffi.Pointer task, ) { - return __objc_msgSend_811( + return __objc_msgSend_859( obj, sel, credential, @@ -23132,7 +23964,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_811Ptr = _lookup< + late final __objc_msgSend_859Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -23140,7 +23972,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_811 = __objc_msgSend_811Ptr.asFunction< + late final __objc_msgSend_859 = __objc_msgSend_859Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -23150,7 +23982,7 @@ class PedometerBindings { late final _sel_removeCredential_forProtectionSpace_options_task_1 = _registerName1("removeCredential:forProtectionSpace:options:task:"); - void _objc_msgSend_812( + void _objc_msgSend_860( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer credential, @@ -23158,7 +23990,7 @@ class PedometerBindings { ffi.Pointer options, ffi.Pointer task, ) { - return __objc_msgSend_812( + return __objc_msgSend_860( obj, sel, credential, @@ -23168,7 +24000,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_812Ptr = _lookup< + late final __objc_msgSend_860Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -23177,7 +24009,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_812 = __objc_msgSend_812Ptr.asFunction< + late final __objc_msgSend_860 = __objc_msgSend_860Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -23189,14 +24021,14 @@ class PedometerBindings { late final _sel_getDefaultCredentialForProtectionSpace_task_completionHandler_1 = _registerName1( "getDefaultCredentialForProtectionSpace:task:completionHandler:"); - void _objc_msgSend_813( + void _objc_msgSend_861( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer space, ffi.Pointer task, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_813( + return __objc_msgSend_861( obj, sel, space, @@ -23205,7 +24037,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_813Ptr = _lookup< + late final __objc_msgSend_861Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -23213,7 +24045,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_813 = __objc_msgSend_813Ptr.asFunction< + late final __objc_msgSend_861 = __objc_msgSend_861Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -23226,14 +24058,14 @@ class PedometerBindings { late final _class_NSURLProtocol1 = _getClass1("NSURLProtocol"); late final _sel_initWithRequest_cachedResponse_client_1 = _registerName1("initWithRequest:cachedResponse:client:"); - instancetype _objc_msgSend_814( + instancetype _objc_msgSend_862( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer cachedResponse, ffi.Pointer client, ) { - return __objc_msgSend_814( + return __objc_msgSend_862( obj, sel, request, @@ -23242,7 +24074,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_814Ptr = _lookup< + late final __objc_msgSend_862Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -23250,7 +24082,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_814 = __objc_msgSend_814Ptr.asFunction< + late final __objc_msgSend_862 = __objc_msgSend_862Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -23261,56 +24093,56 @@ class PedometerBindings { late final _sel_client1 = _registerName1("client"); late final _sel_request1 = _registerName1("request"); late final _sel_cachedResponse1 = _registerName1("cachedResponse"); - ffi.Pointer _objc_msgSend_815( + ffi.Pointer _objc_msgSend_863( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_815( + return __objc_msgSend_863( obj, sel, ); } - late final __objc_msgSend_815Ptr = _lookup< + late final __objc_msgSend_863Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_815 = __objc_msgSend_815Ptr.asFunction< + late final __objc_msgSend_863 = __objc_msgSend_863Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_canInitWithRequest_1 = _registerName1("canInitWithRequest:"); late final _sel_canonicalRequestForRequest_1 = _registerName1("canonicalRequestForRequest:"); - ffi.Pointer _objc_msgSend_816( + ffi.Pointer _objc_msgSend_864( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_816( + return __objc_msgSend_864( obj, sel, request, ); } - late final __objc_msgSend_816Ptr = _lookup< + late final __objc_msgSend_864Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_816 = __objc_msgSend_816Ptr.asFunction< + late final __objc_msgSend_864 = __objc_msgSend_864Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_requestIsCacheEquivalent_toRequest_1 = _registerName1("requestIsCacheEquivalent:toRequest:"); - bool _objc_msgSend_817( + bool _objc_msgSend_865( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer a, ffi.Pointer b, ) { - return __objc_msgSend_817( + return __objc_msgSend_865( obj, sel, a, @@ -23318,14 +24150,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_817Ptr = _lookup< + late final __objc_msgSend_865Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_817 = __objc_msgSend_817Ptr.asFunction< + late final __objc_msgSend_865 = __objc_msgSend_865Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -23333,13 +24165,13 @@ class PedometerBindings { late final _sel_stopLoading1 = _registerName1("stopLoading"); late final _sel_propertyForKey_inRequest_1 = _registerName1("propertyForKey:inRequest:"); - ffi.Pointer _objc_msgSend_818( + ffi.Pointer _objc_msgSend_866( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ffi.Pointer request, ) { - return __objc_msgSend_818( + return __objc_msgSend_866( obj, sel, key, @@ -23347,14 +24179,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_818Ptr = _lookup< + late final __objc_msgSend_866Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_818 = __objc_msgSend_818Ptr.asFunction< + late final __objc_msgSend_866 = __objc_msgSend_866Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -23364,46 +24196,46 @@ class PedometerBindings { late final _class_NSMutableURLRequest1 = _getClass1("NSMutableURLRequest"); late final _sel_setURL_1 = _registerName1("setURL:"); late final _sel_setCachePolicy_1 = _registerName1("setCachePolicy:"); - void _objc_msgSend_819( + void _objc_msgSend_867( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_819( + return __objc_msgSend_867( obj, sel, value, ); } - late final __objc_msgSend_819Ptr = _lookup< + late final __objc_msgSend_867Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_819 = __objc_msgSend_819Ptr.asFunction< + late final __objc_msgSend_867 = __objc_msgSend_867Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setTimeoutInterval_1 = _registerName1("setTimeoutInterval:"); late final _sel_setMainDocumentURL_1 = _registerName1("setMainDocumentURL:"); late final _sel_setNetworkServiceType_1 = _registerName1("setNetworkServiceType:"); - void _objc_msgSend_820( + void _objc_msgSend_868( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_820( + return __objc_msgSend_868( obj, sel, value, ); } - late final __objc_msgSend_820Ptr = _lookup< + late final __objc_msgSend_868Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_820 = __objc_msgSend_820Ptr.asFunction< + late final __objc_msgSend_868 = __objc_msgSend_868Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setAllowsCellularAccess_1 = @@ -23415,23 +24247,23 @@ class PedometerBindings { late final _sel_setAssumesHTTP3Capable_1 = _registerName1("setAssumesHTTP3Capable:"); late final _sel_setAttribution_1 = _registerName1("setAttribution:"); - void _objc_msgSend_821( + void _objc_msgSend_869( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_821( + return __objc_msgSend_869( obj, sel, value, ); } - late final __objc_msgSend_821Ptr = _lookup< + late final __objc_msgSend_869Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_821 = __objc_msgSend_821Ptr.asFunction< + late final __objc_msgSend_869 = __objc_msgSend_869Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setRequiresDNSSECValidation_1 = @@ -23439,49 +24271,94 @@ class PedometerBindings { late final _sel_setHTTPMethod_1 = _registerName1("setHTTPMethod:"); late final _sel_setAllHTTPHeaderFields_1 = _registerName1("setAllHTTPHeaderFields:"); + void _objc_msgSend_870( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_870( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_870Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_870 = __objc_msgSend_870Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_setValue_forHTTPHeaderField_1 = _registerName1("setValue:forHTTPHeaderField:"); + void _objc_msgSend_871( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ffi.Pointer field, + ) { + return __objc_msgSend_871( + obj, + sel, + value, + field, + ); + } + + late final __objc_msgSend_871Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_871 = __objc_msgSend_871Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_addValue_forHTTPHeaderField_1 = _registerName1("addValue:forHTTPHeaderField:"); late final _sel_setHTTPBody_1 = _registerName1("setHTTPBody:"); - void _objc_msgSend_822( + void _objc_msgSend_872( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_822( + return __objc_msgSend_872( obj, sel, value, ); } - late final __objc_msgSend_822Ptr = _lookup< + late final __objc_msgSend_872Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_822 = __objc_msgSend_822Ptr.asFunction< + late final __objc_msgSend_872 = __objc_msgSend_872Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_setHTTPBodyStream_1 = _registerName1("setHTTPBodyStream:"); - void _objc_msgSend_823( + void _objc_msgSend_873( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_823( + return __objc_msgSend_873( obj, sel, value, ); } - late final __objc_msgSend_823Ptr = _lookup< + late final __objc_msgSend_873Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_823 = __objc_msgSend_823Ptr.asFunction< + late final __objc_msgSend_873 = __objc_msgSend_873Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -23491,14 +24368,14 @@ class PedometerBindings { _registerName1("setHTTPShouldUsePipelining:"); late final _sel_setProperty_forKey_inRequest_1 = _registerName1("setProperty:forKey:inRequest:"); - void _objc_msgSend_824( + void _objc_msgSend_874( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ffi.Pointer key, ffi.Pointer request, ) { - return __objc_msgSend_824( + return __objc_msgSend_874( obj, sel, value, @@ -23507,7 +24384,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_824Ptr = _lookup< + late final __objc_msgSend_874Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -23515,7 +24392,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_824 = __objc_msgSend_824Ptr.asFunction< + late final __objc_msgSend_874 = __objc_msgSend_874Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -23525,13 +24402,13 @@ class PedometerBindings { late final _sel_removePropertyForKey_inRequest_1 = _registerName1("removePropertyForKey:inRequest:"); - void _objc_msgSend_825( + void _objc_msgSend_875( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ffi.Pointer request, ) { - return __objc_msgSend_825( + return __objc_msgSend_875( obj, sel, key, @@ -23539,50 +24416,50 @@ class PedometerBindings { ); } - late final __objc_msgSend_825Ptr = _lookup< + late final __objc_msgSend_875Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_825 = __objc_msgSend_825Ptr.asFunction< + late final __objc_msgSend_875 = __objc_msgSend_875Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_registerClass_1 = _registerName1("registerClass:"); late final _sel_unregisterClass_1 = _registerName1("unregisterClass:"); late final _sel_canInitWithTask_1 = _registerName1("canInitWithTask:"); - bool _objc_msgSend_826( + bool _objc_msgSend_876( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer task, ) { - return __objc_msgSend_826( + return __objc_msgSend_876( obj, sel, task, ); } - late final __objc_msgSend_826Ptr = _lookup< + late final __objc_msgSend_876Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_826 = __objc_msgSend_826Ptr.asFunction< + late final __objc_msgSend_876 = __objc_msgSend_876Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithTask_cachedResponse_client_1 = _registerName1("initWithTask:cachedResponse:client:"); - instancetype _objc_msgSend_827( + instancetype _objc_msgSend_877( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer task, ffi.Pointer cachedResponse, ffi.Pointer client, ) { - return __objc_msgSend_827( + return __objc_msgSend_877( obj, sel, task, @@ -23591,7 +24468,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_827Ptr = _lookup< + late final __objc_msgSend_877Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -23599,7 +24476,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_827 = __objc_msgSend_827Ptr.asFunction< + late final __objc_msgSend_877 = __objc_msgSend_877Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -23608,43 +24485,43 @@ class PedometerBindings { ffi.Pointer)>(); late final _sel_task1 = _registerName1("task"); - ffi.Pointer _objc_msgSend_828( + ffi.Pointer _objc_msgSend_878( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_828( + return __objc_msgSend_878( obj, sel, ); } - late final __objc_msgSend_828Ptr = _lookup< + late final __objc_msgSend_878Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_828 = __objc_msgSend_828Ptr.asFunction< + late final __objc_msgSend_878 = __objc_msgSend_878Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _class_NSXMLParser1 = _getClass1("NSXMLParser"); late final _sel_initWithStream_1 = _registerName1("initWithStream:"); - instancetype _objc_msgSend_829( + instancetype _objc_msgSend_879( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer stream, ) { - return __objc_msgSend_829( + return __objc_msgSend_879( obj, sel, stream, ); } - late final __objc_msgSend_829Ptr = _lookup< + late final __objc_msgSend_879Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_829 = __objc_msgSend_829Ptr.asFunction< + late final __objc_msgSend_879 = __objc_msgSend_879Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -23658,65 +24535,65 @@ class PedometerBindings { _registerName1("setShouldReportNamespacePrefixes:"); late final _sel_externalEntityResolvingPolicy1 = _registerName1("externalEntityResolvingPolicy"); - int _objc_msgSend_830( + int _objc_msgSend_880( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_830( + return __objc_msgSend_880( obj, sel, ); } - late final __objc_msgSend_830Ptr = _lookup< + late final __objc_msgSend_880Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_830 = __objc_msgSend_830Ptr.asFunction< + late final __objc_msgSend_880 = __objc_msgSend_880Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setExternalEntityResolvingPolicy_1 = _registerName1("setExternalEntityResolvingPolicy:"); - void _objc_msgSend_831( + void _objc_msgSend_881( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_831( + return __objc_msgSend_881( obj, sel, value, ); } - late final __objc_msgSend_831Ptr = _lookup< + late final __objc_msgSend_881Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_831 = __objc_msgSend_831Ptr.asFunction< + late final __objc_msgSend_881 = __objc_msgSend_881Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_allowedExternalEntityURLs1 = _registerName1("allowedExternalEntityURLs"); late final _sel_setAllowedExternalEntityURLs_1 = _registerName1("setAllowedExternalEntityURLs:"); - void _objc_msgSend_832( + void _objc_msgSend_882( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_832( + return __objc_msgSend_882( obj, sel, value, ); } - late final __objc_msgSend_832Ptr = _lookup< + late final __objc_msgSend_882Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_832 = __objc_msgSend_832Ptr.asFunction< + late final __objc_msgSend_882 = __objc_msgSend_882Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -23731,265 +24608,23 @@ class PedometerBindings { late final _sel_systemID1 = _registerName1("systemID"); late final _sel_lineNumber1 = _registerName1("lineNumber"); late final _sel_columnNumber1 = _registerName1("columnNumber"); - late final _class_NSFileWrapper1 = _getClass1("NSFileWrapper"); - late final _sel_initWithURL_options_error_1 = - _registerName1("initWithURL:options:error:"); - instancetype _objc_msgSend_833( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - int options, - ffi.Pointer> outError, - ) { - return __objc_msgSend_833( - obj, - sel, - url, - options, - outError, - ); - } - - late final __objc_msgSend_833Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_833 = __objc_msgSend_833Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); - - late final _sel_initDirectoryWithFileWrappers_1 = - _registerName1("initDirectoryWithFileWrappers:"); - late final _sel_initRegularFileWithContents_1 = - _registerName1("initRegularFileWithContents:"); - late final _sel_initSymbolicLinkWithDestinationURL_1 = - _registerName1("initSymbolicLinkWithDestinationURL:"); - late final _sel_initWithSerializedRepresentation_1 = - _registerName1("initWithSerializedRepresentation:"); - late final _sel_isDirectory1 = _registerName1("isDirectory"); - late final _sel_isRegularFile1 = _registerName1("isRegularFile"); - late final _sel_isSymbolicLink1 = _registerName1("isSymbolicLink"); - late final _sel_preferredFilename1 = _registerName1("preferredFilename"); - late final _sel_setPreferredFilename_1 = - _registerName1("setPreferredFilename:"); - late final _sel_filename1 = _registerName1("filename"); - late final _sel_setFilename_1 = _registerName1("setFilename:"); - late final _sel_fileAttributes1 = _registerName1("fileAttributes"); - late final _sel_setFileAttributes_1 = _registerName1("setFileAttributes:"); - late final _sel_matchesContentsOfURL_1 = - _registerName1("matchesContentsOfURL:"); - late final _sel_readFromURL_options_error_1 = - _registerName1("readFromURL:options:error:"); - bool _objc_msgSend_834( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - int options, - ffi.Pointer> outError, - ) { - return __objc_msgSend_834( - obj, - sel, - url, - options, - outError, - ); - } - - late final __objc_msgSend_834Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_834 = __objc_msgSend_834Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); - - late final _sel_writeToURL_options_originalContentsURL_error_1 = - _registerName1("writeToURL:options:originalContentsURL:error:"); - bool _objc_msgSend_835( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - int options, - ffi.Pointer originalContentsURL, - ffi.Pointer> outError, - ) { - return __objc_msgSend_835( - obj, - sel, - url, - options, - originalContentsURL, - outError, - ); - } - - late final __objc_msgSend_835Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_835 = __objc_msgSend_835Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_serializedRepresentation1 = - _registerName1("serializedRepresentation"); - late final _sel_addFileWrapper_1 = _registerName1("addFileWrapper:"); - ffi.Pointer _objc_msgSend_836( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer child, - ) { - return __objc_msgSend_836( - obj, - sel, - child, - ); - } - - late final __objc_msgSend_836Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_836 = __objc_msgSend_836Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_addRegularFileWithContents_preferredFilename_1 = - _registerName1("addRegularFileWithContents:preferredFilename:"); - ffi.Pointer _objc_msgSend_837( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer data, - ffi.Pointer fileName, - ) { - return __objc_msgSend_837( - obj, - sel, - data, - fileName, - ); - } - - late final __objc_msgSend_837Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_837 = __objc_msgSend_837Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_removeFileWrapper_1 = _registerName1("removeFileWrapper:"); - void _objc_msgSend_838( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer child, - ) { - return __objc_msgSend_838( - obj, - sel, - child, - ); - } - - late final __objc_msgSend_838Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_838 = __objc_msgSend_838Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_fileWrappers1 = _registerName1("fileWrappers"); - late final _sel_keyForFileWrapper_1 = _registerName1("keyForFileWrapper:"); - late final _sel_regularFileContents1 = _registerName1("regularFileContents"); - late final _sel_symbolicLinkDestinationURL1 = - _registerName1("symbolicLinkDestinationURL"); - late final _sel_initSymbolicLinkWithDestination_1 = - _registerName1("initSymbolicLinkWithDestination:"); - late final _sel_needsToBeUpdatedFromPath_1 = - _registerName1("needsToBeUpdatedFromPath:"); - late final _sel_updateFromPath_1 = _registerName1("updateFromPath:"); - late final _sel_writeToFile_atomically_updateFilenames_1 = - _registerName1("writeToFile:atomically:updateFilenames:"); - bool _objc_msgSend_839( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - bool atomicFlag, - bool updateFilenamesFlag, - ) { - return __objc_msgSend_839( - obj, - sel, - path, - atomicFlag, - updateFilenamesFlag, - ); - } - - late final __objc_msgSend_839Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Bool, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_839 = __objc_msgSend_839Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool, bool)>(); - - late final _sel_addFileWithPath_1 = _registerName1("addFileWithPath:"); - late final _sel_addSymbolicLinkWithDestination_preferredFilename_1 = - _registerName1("addSymbolicLinkWithDestination:preferredFilename:"); - late final _sel_symbolicLinkDestination1 = - _registerName1("symbolicLinkDestination"); late final _class_NSURLSession1 = _getClass1("NSURLSession"); late final _sel_sharedSession1 = _registerName1("sharedSession"); - ffi.Pointer _objc_msgSend_840( + ffi.Pointer _objc_msgSend_883( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_840( + return __objc_msgSend_883( obj, sel, ); } - late final __objc_msgSend_840Ptr = _lookup< + late final __objc_msgSend_883Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_840 = __objc_msgSend_840Ptr.asFunction< + late final __objc_msgSend_883 = __objc_msgSend_883Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -23997,21 +24632,21 @@ class PedometerBindings { _getClass1("NSURLSessionConfiguration"); late final _sel_defaultSessionConfiguration1 = _registerName1("defaultSessionConfiguration"); - ffi.Pointer _objc_msgSend_841( + ffi.Pointer _objc_msgSend_884( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_841( + return __objc_msgSend_884( obj, sel, ); } - late final __objc_msgSend_841Ptr = _lookup< + late final __objc_msgSend_884Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_841 = __objc_msgSend_841Ptr.asFunction< + late final __objc_msgSend_884 = __objc_msgSend_884Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -24019,23 +24654,23 @@ class PedometerBindings { _registerName1("ephemeralSessionConfiguration"); late final _sel_backgroundSessionConfigurationWithIdentifier_1 = _registerName1("backgroundSessionConfigurationWithIdentifier:"); - ffi.Pointer _objc_msgSend_842( + ffi.Pointer _objc_msgSend_885( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer identifier, ) { - return __objc_msgSend_842( + return __objc_msgSend_885( obj, sel, identifier, ); } - late final __objc_msgSend_842Ptr = _lookup< + late final __objc_msgSend_885Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_842 = __objc_msgSend_842Ptr.asFunction< + late final __objc_msgSend_885 = __objc_msgSend_885Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -24071,42 +24706,42 @@ class PedometerBindings { _registerName1("setConnectionProxyDictionary:"); late final _sel_TLSMinimumSupportedProtocol1 = _registerName1("TLSMinimumSupportedProtocol"); - int _objc_msgSend_843( + int _objc_msgSend_886( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_843( + return __objc_msgSend_886( obj, sel, ); } - late final __objc_msgSend_843Ptr = _lookup< + late final __objc_msgSend_886Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_843 = __objc_msgSend_843Ptr.asFunction< + late final __objc_msgSend_886 = __objc_msgSend_886Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setTLSMinimumSupportedProtocol_1 = _registerName1("setTLSMinimumSupportedProtocol:"); - void _objc_msgSend_844( + void _objc_msgSend_887( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_844( + return __objc_msgSend_887( obj, sel, value, ); } - late final __objc_msgSend_844Ptr = _lookup< + late final __objc_msgSend_887Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_844 = __objc_msgSend_844Ptr.asFunction< + late final __objc_msgSend_887 = __objc_msgSend_887Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_TLSMaximumSupportedProtocol1 = @@ -24115,42 +24750,42 @@ class PedometerBindings { _registerName1("setTLSMaximumSupportedProtocol:"); late final _sel_TLSMinimumSupportedProtocolVersion1 = _registerName1("TLSMinimumSupportedProtocolVersion"); - int _objc_msgSend_845( + int _objc_msgSend_888( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_845( + return __objc_msgSend_888( obj, sel, ); } - late final __objc_msgSend_845Ptr = _lookup< + late final __objc_msgSend_888Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_845 = __objc_msgSend_845Ptr.asFunction< + late final __objc_msgSend_888 = __objc_msgSend_888Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setTLSMinimumSupportedProtocolVersion_1 = _registerName1("setTLSMinimumSupportedProtocolVersion:"); - void _objc_msgSend_846( + void _objc_msgSend_889( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_846( + return __objc_msgSend_889( obj, sel, value, ); } - late final __objc_msgSend_846Ptr = _lookup< + late final __objc_msgSend_889Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_846 = __objc_msgSend_846Ptr.asFunction< + late final __objc_msgSend_889 = __objc_msgSend_889Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_TLSMaximumSupportedProtocolVersion1 = @@ -24174,134 +24809,228 @@ class PedometerBindings { late final _sel_setHTTPMaximumConnectionsPerHost_1 = _registerName1("setHTTPMaximumConnectionsPerHost:"); late final _sel_HTTPCookieStorage1 = _registerName1("HTTPCookieStorage"); + ffi.Pointer _objc_msgSend_890( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_890( + obj, + sel, + ); + } + + late final __objc_msgSend_890Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_890 = __objc_msgSend_890Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_setHTTPCookieStorage_1 = _registerName1("setHTTPCookieStorage:"); - void _objc_msgSend_847( + void _objc_msgSend_891( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_847( + return __objc_msgSend_891( obj, sel, value, ); } - late final __objc_msgSend_847Ptr = _lookup< + late final __objc_msgSend_891Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_847 = __objc_msgSend_847Ptr.asFunction< + late final __objc_msgSend_891 = __objc_msgSend_891Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_URLCredentialStorage1 = _registerName1("URLCredentialStorage"); + ffi.Pointer _objc_msgSend_892( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_892( + obj, + sel, + ); + } + + late final __objc_msgSend_892Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_892 = __objc_msgSend_892Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_setURLCredentialStorage_1 = _registerName1("setURLCredentialStorage:"); - void _objc_msgSend_848( + void _objc_msgSend_893( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_848( + return __objc_msgSend_893( obj, sel, value, ); } - late final __objc_msgSend_848Ptr = _lookup< + late final __objc_msgSend_893Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_848 = __objc_msgSend_848Ptr.asFunction< + late final __objc_msgSend_893 = __objc_msgSend_893Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_URLCache1 = _registerName1("URLCache"); + ffi.Pointer _objc_msgSend_894( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_894( + obj, + sel, + ); + } + + late final __objc_msgSend_894Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_894 = __objc_msgSend_894Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_setURLCache_1 = _registerName1("setURLCache:"); + void _objc_msgSend_895( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_895( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_895Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_895 = __objc_msgSend_895Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_shouldUseExtendedBackgroundIdleMode1 = _registerName1("shouldUseExtendedBackgroundIdleMode"); late final _sel_setShouldUseExtendedBackgroundIdleMode_1 = _registerName1("setShouldUseExtendedBackgroundIdleMode:"); late final _sel_protocolClasses1 = _registerName1("protocolClasses"); late final _sel_setProtocolClasses_1 = _registerName1("setProtocolClasses:"); + void _objc_msgSend_896( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_896( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_896Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_896 = __objc_msgSend_896Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_multipathServiceType1 = _registerName1("multipathServiceType"); - int _objc_msgSend_849( + int _objc_msgSend_897( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_849( + return __objc_msgSend_897( obj, sel, ); } - late final __objc_msgSend_849Ptr = _lookup< + late final __objc_msgSend_897Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_849 = __objc_msgSend_849Ptr.asFunction< + late final __objc_msgSend_897 = __objc_msgSend_897Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setMultipathServiceType_1 = _registerName1("setMultipathServiceType:"); - void _objc_msgSend_850( + void _objc_msgSend_898( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_850( + return __objc_msgSend_898( obj, sel, value, ); } - late final __objc_msgSend_850Ptr = _lookup< + late final __objc_msgSend_898Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_850 = __objc_msgSend_850Ptr.asFunction< + late final __objc_msgSend_898 = __objc_msgSend_898Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_backgroundSessionConfiguration_1 = _registerName1("backgroundSessionConfiguration:"); late final _sel_sessionWithConfiguration_1 = _registerName1("sessionWithConfiguration:"); - ffi.Pointer _objc_msgSend_851( + ffi.Pointer _objc_msgSend_899( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer configuration, ) { - return __objc_msgSend_851( + return __objc_msgSend_899( obj, sel, configuration, ); } - late final __objc_msgSend_851Ptr = _lookup< + late final __objc_msgSend_899Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_851 = __objc_msgSend_851Ptr.asFunction< + late final __objc_msgSend_899 = __objc_msgSend_899Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_sessionWithConfiguration_delegate_delegateQueue_1 = _registerName1("sessionWithConfiguration:delegate:delegateQueue:"); - ffi.Pointer _objc_msgSend_852( + ffi.Pointer _objc_msgSend_900( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer configuration, ffi.Pointer delegate, ffi.Pointer queue, ) { - return __objc_msgSend_852( + return __objc_msgSend_900( obj, sel, configuration, @@ -24310,7 +25039,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_852Ptr = _lookup< + late final __objc_msgSend_900Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -24318,7 +25047,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_852 = __objc_msgSend_852Ptr.asFunction< + late final __objc_msgSend_900 = __objc_msgSend_900Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -24340,102 +25069,124 @@ class PedometerBindings { _registerName1("flushWithCompletionHandler:"); late final _sel_getTasksWithCompletionHandler_1 = _registerName1("getTasksWithCompletionHandler:"); - void _objc_msgSend_853( + void _objc_msgSend_901( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_853( + return __objc_msgSend_901( obj, sel, completionHandler, ); } - late final __objc_msgSend_853Ptr = _lookup< + late final __objc_msgSend_901Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_853 = __objc_msgSend_853Ptr.asFunction< + late final __objc_msgSend_901 = __objc_msgSend_901Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_getAllTasksWithCompletionHandler_1 = _registerName1("getAllTasksWithCompletionHandler:"); - void _objc_msgSend_854( + void _objc_msgSend_902( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_854( + return __objc_msgSend_902( obj, sel, completionHandler, ); } - late final __objc_msgSend_854Ptr = _lookup< + late final __objc_msgSend_902Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_854 = __objc_msgSend_854Ptr.asFunction< + late final __objc_msgSend_902 = __objc_msgSend_902Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_dataTaskWithRequest_1 = _registerName1("dataTaskWithRequest:"); - ffi.Pointer _objc_msgSend_855( + ffi.Pointer _objc_msgSend_903( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_855( + return __objc_msgSend_903( obj, sel, request, ); } - late final __objc_msgSend_855Ptr = _lookup< + late final __objc_msgSend_903Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_855 = __objc_msgSend_855Ptr.asFunction< + late final __objc_msgSend_903 = __objc_msgSend_903Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dataTaskWithURL_1 = _registerName1("dataTaskWithURL:"); - ffi.Pointer _objc_msgSend_856( + ffi.Pointer _objc_msgSend_904( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_856( + return __objc_msgSend_904( obj, sel, url, ); } - late final __objc_msgSend_856Ptr = _lookup< + late final __objc_msgSend_904Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_856 = __objc_msgSend_856Ptr.asFunction< + late final __objc_msgSend_904 = __objc_msgSend_904Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSURLSessionUploadTask1 = _getClass1("NSURLSessionUploadTask"); + late final _sel_cancelByProducingResumeData_1 = + _registerName1("cancelByProducingResumeData:"); + void _objc_msgSend_905( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_905( + obj, + sel, + completionHandler, + ); + } + + late final __objc_msgSend_905Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_905 = __objc_msgSend_905Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + late final _sel_uploadTaskWithRequest_fromFile_1 = _registerName1("uploadTaskWithRequest:fromFile:"); - ffi.Pointer _objc_msgSend_857( + ffi.Pointer _objc_msgSend_906( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer fileURL, ) { - return __objc_msgSend_857( + return __objc_msgSend_906( obj, sel, request, @@ -24443,14 +25194,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_857Ptr = _lookup< + late final __objc_msgSend_906Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_857 = __objc_msgSend_857Ptr.asFunction< + late final __objc_msgSend_906 = __objc_msgSend_906Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -24459,13 +25210,13 @@ class PedometerBindings { late final _sel_uploadTaskWithRequest_fromData_1 = _registerName1("uploadTaskWithRequest:fromData:"); - ffi.Pointer _objc_msgSend_858( + ffi.Pointer _objc_msgSend_907( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer bodyData, ) { - return __objc_msgSend_858( + return __objc_msgSend_907( obj, sel, request, @@ -24473,129 +25224,129 @@ class PedometerBindings { ); } - late final __objc_msgSend_858Ptr = _lookup< + late final __objc_msgSend_907Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_858 = __objc_msgSend_858Ptr.asFunction< + late final __objc_msgSend_907 = __objc_msgSend_907Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - late final _sel_uploadTaskWithStreamedRequest_1 = - _registerName1("uploadTaskWithStreamedRequest:"); - ffi.Pointer _objc_msgSend_859( + late final _sel_uploadTaskWithResumeData_1 = + _registerName1("uploadTaskWithResumeData:"); + ffi.Pointer _objc_msgSend_908( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer request, + ffi.Pointer resumeData, ) { - return __objc_msgSend_859( + return __objc_msgSend_908( obj, sel, - request, + resumeData, ); } - late final __objc_msgSend_859Ptr = _lookup< + late final __objc_msgSend_908Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_859 = __objc_msgSend_859Ptr.asFunction< + late final __objc_msgSend_908 = __objc_msgSend_908Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - late final _class_NSURLSessionDownloadTask1 = - _getClass1("NSURLSessionDownloadTask"); - late final _sel_cancelByProducingResumeData_1 = - _registerName1("cancelByProducingResumeData:"); - void _objc_msgSend_860( + late final _sel_uploadTaskWithStreamedRequest_1 = + _registerName1("uploadTaskWithStreamedRequest:"); + ffi.Pointer _objc_msgSend_909( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> completionHandler, + ffi.Pointer request, ) { - return __objc_msgSend_860( + return __objc_msgSend_909( obj, sel, - completionHandler, + request, ); } - late final __objc_msgSend_860Ptr = _lookup< + late final __objc_msgSend_909Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_860 = __objc_msgSend_860Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_909 = __objc_msgSend_909Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _class_NSURLSessionDownloadTask1 = + _getClass1("NSURLSessionDownloadTask"); late final _sel_downloadTaskWithRequest_1 = _registerName1("downloadTaskWithRequest:"); - ffi.Pointer _objc_msgSend_861( + ffi.Pointer _objc_msgSend_910( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_861( + return __objc_msgSend_910( obj, sel, request, ); } - late final __objc_msgSend_861Ptr = _lookup< + late final __objc_msgSend_910Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_861 = __objc_msgSend_861Ptr.asFunction< + late final __objc_msgSend_910 = __objc_msgSend_910Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_downloadTaskWithURL_1 = _registerName1("downloadTaskWithURL:"); - ffi.Pointer _objc_msgSend_862( + ffi.Pointer _objc_msgSend_911( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_862( + return __objc_msgSend_911( obj, sel, url, ); } - late final __objc_msgSend_862Ptr = _lookup< + late final __objc_msgSend_911Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_862 = __objc_msgSend_862Ptr.asFunction< + late final __objc_msgSend_911 = __objc_msgSend_911Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_downloadTaskWithResumeData_1 = _registerName1("downloadTaskWithResumeData:"); - ffi.Pointer _objc_msgSend_863( + ffi.Pointer _objc_msgSend_912( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer resumeData, ) { - return __objc_msgSend_863( + return __objc_msgSend_912( obj, sel, resumeData, ); } - late final __objc_msgSend_863Ptr = _lookup< + late final __objc_msgSend_912Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_863 = __objc_msgSend_863Ptr.asFunction< + late final __objc_msgSend_912 = __objc_msgSend_912Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -24604,7 +25355,7 @@ class PedometerBindings { late final _sel_readDataOfMinLength_maxLength_timeout_completionHandler_1 = _registerName1( "readDataOfMinLength:maxLength:timeout:completionHandler:"); - void _objc_msgSend_864( + void _objc_msgSend_913( ffi.Pointer obj, ffi.Pointer sel, int minBytes, @@ -24612,7 +25363,7 @@ class PedometerBindings { double timeout, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_864( + return __objc_msgSend_913( obj, sel, minBytes, @@ -24622,7 +25373,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_864Ptr = _lookup< + late final __objc_msgSend_913Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -24631,20 +25382,20 @@ class PedometerBindings { ffi.UnsignedLong, ffi.Double, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_864 = __objc_msgSend_864Ptr.asFunction< + late final __objc_msgSend_913 = __objc_msgSend_913Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, int, double, ffi.Pointer<_ObjCBlock>)>(); late final _sel_writeData_timeout_completionHandler_1 = _registerName1("writeData:timeout:completionHandler:"); - void _objc_msgSend_865( + void _objc_msgSend_914( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, double timeout, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_865( + return __objc_msgSend_914( obj, sel, data, @@ -24653,7 +25404,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_865Ptr = _lookup< + late final __objc_msgSend_914Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -24661,7 +25412,7 @@ class PedometerBindings { ffi.Pointer, ffi.Double, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_865 = __objc_msgSend_865Ptr.asFunction< + late final __objc_msgSend_914 = __objc_msgSend_914Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, double, ffi.Pointer<_ObjCBlock>)>(); @@ -24674,13 +25425,13 @@ class PedometerBindings { _registerName1("stopSecureConnection"); late final _sel_streamTaskWithHostName_port_1 = _registerName1("streamTaskWithHostName:port:"); - ffi.Pointer _objc_msgSend_866( + ffi.Pointer _objc_msgSend_915( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer hostname, int port, ) { - return __objc_msgSend_866( + return __objc_msgSend_915( obj, sel, hostname, @@ -24688,21 +25439,21 @@ class PedometerBindings { ); } - late final __objc_msgSend_866Ptr = _lookup< + late final __objc_msgSend_915Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_866 = __objc_msgSend_866Ptr.asFunction< + late final __objc_msgSend_915 = __objc_msgSend_915Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _class_NSNetService1 = _getClass1("NSNetService"); late final _sel_initWithDomain_type_name_port_1 = _registerName1("initWithDomain:type:name:port:"); - instancetype _objc_msgSend_867( + instancetype _objc_msgSend_916( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer domain, @@ -24710,7 +25461,7 @@ class PedometerBindings { ffi.Pointer name, int port, ) { - return __objc_msgSend_867( + return __objc_msgSend_916( obj, sel, domain, @@ -24720,7 +25471,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_867Ptr = _lookup< + late final __objc_msgSend_916Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -24729,7 +25480,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Int)>>('objc_msgSend'); - late final __objc_msgSend_867 = __objc_msgSend_867Ptr.asFunction< + late final __objc_msgSend_916 = __objc_msgSend_916Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -24740,87 +25491,119 @@ class PedometerBindings { late final _sel_initWithDomain_type_name_1 = _registerName1("initWithDomain:type:name:"); + instancetype _objc_msgSend_917( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer domain, + ffi.Pointer type, + ffi.Pointer name, + ) { + return __objc_msgSend_917( + obj, + sel, + domain, + type, + name, + ); + } + + late final __objc_msgSend_917Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_917 = __objc_msgSend_917Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + late final _sel_includesPeerToPeer1 = _registerName1("includesPeerToPeer"); late final _sel_setIncludesPeerToPeer_1 = _registerName1("setIncludesPeerToPeer:"); late final _sel_type1 = _registerName1("type"); late final _sel_addresses1 = _registerName1("addresses"); late final _sel_publishWithOptions_1 = _registerName1("publishWithOptions:"); - void _objc_msgSend_868( + void _objc_msgSend_918( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_868( + return __objc_msgSend_918( obj, sel, options, ); } - late final __objc_msgSend_868Ptr = _lookup< + late final __objc_msgSend_918Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_868 = __objc_msgSend_868Ptr.asFunction< + late final __objc_msgSend_918 = __objc_msgSend_918Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_resolve1 = _registerName1("resolve"); late final _sel_stop1 = _registerName1("stop"); late final _sel_dictionaryFromTXTRecordData_1 = _registerName1("dictionaryFromTXTRecordData:"); - ffi.Pointer _objc_msgSend_869( + ffi.Pointer _objc_msgSend_919( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer txtData, ) { - return __objc_msgSend_869( + return __objc_msgSend_919( obj, sel, txtData, ); } - late final __objc_msgSend_869Ptr = _lookup< + late final __objc_msgSend_919Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_869 = __objc_msgSend_869Ptr.asFunction< + late final __objc_msgSend_919 = __objc_msgSend_919Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dataFromTXTRecordDictionary_1 = _registerName1("dataFromTXTRecordDictionary:"); - ffi.Pointer _objc_msgSend_870( + ffi.Pointer _objc_msgSend_920( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer txtDictionary, ) { - return __objc_msgSend_870( + return __objc_msgSend_920( obj, sel, txtDictionary, ); } - late final __objc_msgSend_870Ptr = _lookup< + late final __objc_msgSend_920Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_870 = __objc_msgSend_870Ptr.asFunction< + late final __objc_msgSend_920 = __objc_msgSend_920Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_resolveWithTimeout_1 = _registerName1("resolveWithTimeout:"); late final _sel_getInputStream_outputStream_1 = _registerName1("getInputStream:outputStream:"); - bool _objc_msgSend_871( + bool _objc_msgSend_921( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> inputStream, ffi.Pointer> outputStream, ) { - return __objc_msgSend_871( + return __objc_msgSend_921( obj, sel, inputStream, @@ -24828,14 +25611,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_871Ptr = _lookup< + late final __objc_msgSend_921Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_871 = __objc_msgSend_871Ptr.asFunction< + late final __objc_msgSend_921 = __objc_msgSend_921Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -24843,28 +25626,48 @@ class PedometerBindings { ffi.Pointer>)>(); late final _sel_setTXTRecordData_1 = _registerName1("setTXTRecordData:"); + bool _objc_msgSend_922( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer recordData, + ) { + return __objc_msgSend_922( + obj, + sel, + recordData, + ); + } + + late final __objc_msgSend_922Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_922 = __objc_msgSend_922Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_TXTRecordData1 = _registerName1("TXTRecordData"); late final _sel_startMonitoring1 = _registerName1("startMonitoring"); late final _sel_stopMonitoring1 = _registerName1("stopMonitoring"); late final _sel_streamTaskWithNetService_1 = _registerName1("streamTaskWithNetService:"); - ffi.Pointer _objc_msgSend_872( + ffi.Pointer _objc_msgSend_923( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer service, ) { - return __objc_msgSend_872( + return __objc_msgSend_923( obj, sel, service, ); } - late final __objc_msgSend_872Ptr = _lookup< + late final __objc_msgSend_923Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_872 = __objc_msgSend_872Ptr.asFunction< + late final __objc_msgSend_923 = __objc_msgSend_923Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -24872,32 +25675,32 @@ class PedometerBindings { _getClass1("NSURLSessionWebSocketTask"); late final _class_NSURLSessionWebSocketMessage1 = _getClass1("NSURLSessionWebSocketMessage"); - int _objc_msgSend_873( + int _objc_msgSend_924( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_873( + return __objc_msgSend_924( obj, sel, ); } - late final __objc_msgSend_873Ptr = _lookup< + late final __objc_msgSend_924Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_873 = __objc_msgSend_873Ptr.asFunction< + late final __objc_msgSend_924 = __objc_msgSend_924Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_sendMessage_completionHandler_1 = _registerName1("sendMessage:completionHandler:"); - void _objc_msgSend_874( + void _objc_msgSend_925( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer message, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_874( + return __objc_msgSend_925( obj, sel, message, @@ -24905,70 +25708,70 @@ class PedometerBindings { ); } - late final __objc_msgSend_874Ptr = _lookup< + late final __objc_msgSend_925Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_874 = __objc_msgSend_874Ptr.asFunction< + late final __objc_msgSend_925 = __objc_msgSend_925Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_receiveMessageWithCompletionHandler_1 = _registerName1("receiveMessageWithCompletionHandler:"); - void _objc_msgSend_875( + void _objc_msgSend_926( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_875( + return __objc_msgSend_926( obj, sel, completionHandler, ); } - late final __objc_msgSend_875Ptr = _lookup< + late final __objc_msgSend_926Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_875 = __objc_msgSend_875Ptr.asFunction< + late final __objc_msgSend_926 = __objc_msgSend_926Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_sendPingWithPongReceiveHandler_1 = _registerName1("sendPingWithPongReceiveHandler:"); - void _objc_msgSend_876( + void _objc_msgSend_927( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> pongReceiveHandler, ) { - return __objc_msgSend_876( + return __objc_msgSend_927( obj, sel, pongReceiveHandler, ); } - late final __objc_msgSend_876Ptr = _lookup< + late final __objc_msgSend_927Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_876 = __objc_msgSend_876Ptr.asFunction< + late final __objc_msgSend_927 = __objc_msgSend_927Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_cancelWithCloseCode_reason_1 = _registerName1("cancelWithCloseCode:reason:"); - void _objc_msgSend_877( + void _objc_msgSend_928( ffi.Pointer obj, ffi.Pointer sel, int closeCode, ffi.Pointer reason, ) { - return __objc_msgSend_877( + return __objc_msgSend_928( obj, sel, closeCode, @@ -24976,11 +25779,11 @@ class PedometerBindings { ); } - late final __objc_msgSend_877Ptr = _lookup< + late final __objc_msgSend_928Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_877 = __objc_msgSend_877Ptr.asFunction< + late final __objc_msgSend_928 = __objc_msgSend_928Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); @@ -24988,55 +25791,55 @@ class PedometerBindings { late final _sel_setMaximumMessageSize_1 = _registerName1("setMaximumMessageSize:"); late final _sel_closeCode1 = _registerName1("closeCode"); - int _objc_msgSend_878( + int _objc_msgSend_929( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_878( + return __objc_msgSend_929( obj, sel, ); } - late final __objc_msgSend_878Ptr = _lookup< + late final __objc_msgSend_929Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_878 = __objc_msgSend_878Ptr.asFunction< + late final __objc_msgSend_929 = __objc_msgSend_929Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_closeReason1 = _registerName1("closeReason"); late final _sel_webSocketTaskWithURL_1 = _registerName1("webSocketTaskWithURL:"); - ffi.Pointer _objc_msgSend_879( + ffi.Pointer _objc_msgSend_930( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_879( + return __objc_msgSend_930( obj, sel, url, ); } - late final __objc_msgSend_879Ptr = _lookup< + late final __objc_msgSend_930Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_879 = __objc_msgSend_879Ptr.asFunction< + late final __objc_msgSend_930 = __objc_msgSend_930Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_webSocketTaskWithURL_protocols_1 = _registerName1("webSocketTaskWithURL:protocols:"); - ffi.Pointer _objc_msgSend_880( + ffi.Pointer _objc_msgSend_931( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer protocols, ) { - return __objc_msgSend_880( + return __objc_msgSend_931( obj, sel, url, @@ -25044,14 +25847,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_880Ptr = _lookup< + late final __objc_msgSend_931Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_880 = __objc_msgSend_880Ptr.asFunction< + late final __objc_msgSend_931 = __objc_msgSend_931Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -25060,35 +25863,35 @@ class PedometerBindings { late final _sel_webSocketTaskWithRequest_1 = _registerName1("webSocketTaskWithRequest:"); - ffi.Pointer _objc_msgSend_881( + ffi.Pointer _objc_msgSend_932( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_881( + return __objc_msgSend_932( obj, sel, request, ); } - late final __objc_msgSend_881Ptr = _lookup< + late final __objc_msgSend_932Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_881 = __objc_msgSend_881Ptr.asFunction< + late final __objc_msgSend_932 = __objc_msgSend_932Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dataTaskWithRequest_completionHandler_1 = _registerName1("dataTaskWithRequest:completionHandler:"); - ffi.Pointer _objc_msgSend_882( + ffi.Pointer _objc_msgSend_933( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_882( + return __objc_msgSend_933( obj, sel, request, @@ -25096,14 +25899,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_882Ptr = _lookup< + late final __objc_msgSend_933Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_882 = __objc_msgSend_882Ptr.asFunction< + late final __objc_msgSend_933 = __objc_msgSend_933Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -25112,13 +25915,13 @@ class PedometerBindings { late final _sel_dataTaskWithURL_completionHandler_1 = _registerName1("dataTaskWithURL:completionHandler:"); - ffi.Pointer _objc_msgSend_883( + ffi.Pointer _objc_msgSend_934( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_883( + return __objc_msgSend_934( obj, sel, url, @@ -25126,14 +25929,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_883Ptr = _lookup< + late final __objc_msgSend_934Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_883 = __objc_msgSend_883Ptr.asFunction< + late final __objc_msgSend_934 = __objc_msgSend_934Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -25142,14 +25945,14 @@ class PedometerBindings { late final _sel_uploadTaskWithRequest_fromFile_completionHandler_1 = _registerName1("uploadTaskWithRequest:fromFile:completionHandler:"); - ffi.Pointer _objc_msgSend_884( + ffi.Pointer _objc_msgSend_935( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer fileURL, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_884( + return __objc_msgSend_935( obj, sel, request, @@ -25158,7 +25961,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_884Ptr = _lookup< + late final __objc_msgSend_935Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -25166,7 +25969,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_884 = __objc_msgSend_884Ptr.asFunction< + late final __objc_msgSend_935 = __objc_msgSend_935Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -25176,14 +25979,14 @@ class PedometerBindings { late final _sel_uploadTaskWithRequest_fromData_completionHandler_1 = _registerName1("uploadTaskWithRequest:fromData:completionHandler:"); - ffi.Pointer _objc_msgSend_885( + ffi.Pointer _objc_msgSend_936( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer bodyData, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_885( + return __objc_msgSend_936( obj, sel, request, @@ -25192,7 +25995,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_885Ptr = _lookup< + late final __objc_msgSend_936Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -25200,7 +26003,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_885 = __objc_msgSend_885Ptr.asFunction< + late final __objc_msgSend_936 = __objc_msgSend_936Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -25208,15 +26011,45 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + late final _sel_uploadTaskWithResumeData_completionHandler_1 = + _registerName1("uploadTaskWithResumeData:completionHandler:"); + ffi.Pointer _objc_msgSend_937( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer resumeData, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_937( + obj, + sel, + resumeData, + completionHandler, + ); + } + + late final __objc_msgSend_937Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_937 = __objc_msgSend_937Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + late final _sel_downloadTaskWithRequest_completionHandler_1 = _registerName1("downloadTaskWithRequest:completionHandler:"); - ffi.Pointer _objc_msgSend_886( + ffi.Pointer _objc_msgSend_938( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_886( + return __objc_msgSend_938( obj, sel, request, @@ -25224,14 +26057,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_886Ptr = _lookup< + late final __objc_msgSend_938Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_886 = __objc_msgSend_886Ptr.asFunction< + late final __objc_msgSend_938 = __objc_msgSend_938Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -25240,13 +26073,13 @@ class PedometerBindings { late final _sel_downloadTaskWithURL_completionHandler_1 = _registerName1("downloadTaskWithURL:completionHandler:"); - ffi.Pointer _objc_msgSend_887( + ffi.Pointer _objc_msgSend_939( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_887( + return __objc_msgSend_939( obj, sel, url, @@ -25254,14 +26087,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_887Ptr = _lookup< + late final __objc_msgSend_939Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_887 = __objc_msgSend_887Ptr.asFunction< + late final __objc_msgSend_939 = __objc_msgSend_939Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -25270,13 +26103,13 @@ class PedometerBindings { late final _sel_downloadTaskWithResumeData_completionHandler_1 = _registerName1("downloadTaskWithResumeData:completionHandler:"); - ffi.Pointer _objc_msgSend_888( + ffi.Pointer _objc_msgSend_940( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer resumeData, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_888( + return __objc_msgSend_940( obj, sel, resumeData, @@ -25284,14 +26117,14 @@ class PedometerBindings { ); } - late final __objc_msgSend_888Ptr = _lookup< + late final __objc_msgSend_940Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_888 = __objc_msgSend_888Ptr.asFunction< + late final __objc_msgSend_940 = __objc_msgSend_940Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -25309,27 +26142,45 @@ class PedometerBindings { late final _sel_isPedometerEventTrackingAvailable1 = _registerName1("isPedometerEventTrackingAvailable"); late final _sel_authorizationStatus1 = _registerName1("authorizationStatus"); - int _objc_msgSend_889( + int _objc_msgSend_941( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_889( + return __objc_msgSend_941( obj, sel, ); } - late final __objc_msgSend_889Ptr = _lookup< + late final __objc_msgSend_941Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_889 = __objc_msgSend_889Ptr.asFunction< + late final __objc_msgSend_941 = __objc_msgSend_941Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _class_CMPedometerData1 = _getClass1("CMPedometerData"); late final _sel_startDate1 = _registerName1("startDate"); late final _sel_endDate1 = _registerName1("endDate"); late final _sel_numberOfSteps1 = _registerName1("numberOfSteps"); + ffi.Pointer _objc_msgSend_942( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_942( + obj, + sel, + ); + } + + late final __objc_msgSend_942Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_942 = __objc_msgSend_942Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_distance1 = _registerName1("distance"); late final _sel_floorsAscended1 = _registerName1("floorsAscended"); late final _sel_floorsDescended1 = _registerName1("floorsDescended"); @@ -25338,14 +26189,14 @@ class PedometerBindings { late final _sel_averageActivePace1 = _registerName1("averageActivePace"); late final _sel_queryPedometerDataFromDate_toDate_withHandler_1 = _registerName1("queryPedometerDataFromDate:toDate:withHandler:"); - void _objc_msgSend_890( + void _objc_msgSend_943( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer start, ffi.Pointer end, ffi.Pointer<_ObjCBlock> handler, ) { - return __objc_msgSend_890( + return __objc_msgSend_943( obj, sel, start, @@ -25354,7 +26205,7 @@ class PedometerBindings { ); } - late final __objc_msgSend_890Ptr = _lookup< + late final __objc_msgSend_943Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -25362,7 +26213,7 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_890 = __objc_msgSend_890Ptr.asFunction< + late final __objc_msgSend_943 = __objc_msgSend_943Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -25372,13 +26223,13 @@ class PedometerBindings { late final _sel_startPedometerUpdatesFromDate_withHandler_1 = _registerName1("startPedometerUpdatesFromDate:withHandler:"); - void _objc_msgSend_891( + void _objc_msgSend_944( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer start, ffi.Pointer<_ObjCBlock> handler, ) { - return __objc_msgSend_891( + return __objc_msgSend_944( obj, sel, start, @@ -25386,841 +26237,2301 @@ class PedometerBindings { ); } - late final __objc_msgSend_891Ptr = _lookup< + late final __objc_msgSend_944Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_891 = __objc_msgSend_891Ptr.asFunction< + late final __objc_msgSend_944 = __objc_msgSend_944Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_stopPedometerUpdates1 = _registerName1("stopPedometerUpdates"); late final _class_CMPedometerEvent1 = _getClass1("CMPedometerEvent"); - int _objc_msgSend_892( + int _objc_msgSend_945( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_892( + return __objc_msgSend_945( obj, sel, ); } - late final __objc_msgSend_892Ptr = _lookup< + late final __objc_msgSend_945Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_892 = __objc_msgSend_892Ptr.asFunction< + late final __objc_msgSend_945 = __objc_msgSend_945Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_startPedometerEventUpdatesWithHandler_1 = _registerName1("startPedometerEventUpdatesWithHandler:"); - void _objc_msgSend_893( + void _objc_msgSend_946( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> handler, ) { - return __objc_msgSend_893( + return __objc_msgSend_946( obj, sel, handler, ); } - late final __objc_msgSend_893Ptr = _lookup< + late final __objc_msgSend_946Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_893 = __objc_msgSend_893Ptr.asFunction< + late final __objc_msgSend_946 = __objc_msgSend_946Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_stopPedometerEventUpdates1 = _registerName1("stopPedometerEventUpdates"); - late final _class_PedometerHelper1 = _getClass1("PedometerHelper"); - late final _sel_startPedometerWithPort_pedometer_start_end_1 = - _registerName1("startPedometerWithPort:pedometer:start:end:"); - void _objc_msgSend_894( + late final _class_CLLocationManager1 = _getClass1("CLLocationManager"); + late final _sel_locationServicesEnabled1 = + _registerName1("locationServicesEnabled"); + late final _sel_headingAvailable1 = _registerName1("headingAvailable"); + late final _sel_significantLocationChangeMonitoringAvailable1 = + _registerName1("significantLocationChangeMonitoringAvailable"); + late final _sel_isMonitoringAvailableForClass_1 = + _registerName1("isMonitoringAvailableForClass:"); + late final _sel_regionMonitoringAvailable1 = + _registerName1("regionMonitoringAvailable"); + late final _sel_regionMonitoringEnabled1 = + _registerName1("regionMonitoringEnabled"); + late final _sel_isRangingAvailable1 = _registerName1("isRangingAvailable"); + int _objc_msgSend_947( ffi.Pointer obj, ffi.Pointer sel, - int sendPort, - ffi.Pointer pedometer, - ffi.Pointer start, - ffi.Pointer end, ) { - return __objc_msgSend_894( + return __objc_msgSend_947( obj, sel, - sendPort, - pedometer, - start, - end, ); } - late final __objc_msgSend_894Ptr = _lookup< + late final __objc_msgSend_947Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_894 = __objc_msgSend_894Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); -} - -class _ObjCWrapper implements ffi.Finalizable { - final ffi.Pointer _id; - final PedometerBindings _lib; - bool _pendingRelease; + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_947 = __objc_msgSend_947Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); - _ObjCWrapper._(this._id, this._lib, - {bool retain = false, bool release = false}) - : _pendingRelease = release { - if (retain) { - _lib._objc_retain(_id.cast()); - } - if (release) { - _lib._objc_releaseFinalizer2.attach(this, _id.cast(), detach: this); - } + late final _sel_accuracyAuthorization1 = + _registerName1("accuracyAuthorization"); + int _objc_msgSend_948( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_948( + obj, + sel, + ); } - /// Releases the reference to the underlying ObjC object held by this wrapper. - /// Throws a StateError if this wrapper doesn't currently hold a reference. - void release() { - if (_pendingRelease) { - _pendingRelease = false; - _lib._objc_release(_id.cast()); - _lib._objc_releaseFinalizer2.detach(this); - } else { - throw StateError( - 'Released an ObjC object that was unowned or already released.'); - } - } + late final __objc_msgSend_948Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_948 = __objc_msgSend_948Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); - @override - bool operator ==(Object other) { - return other is _ObjCWrapper && _id == other._id; + late final _sel_isAuthorizedForWidgetUpdates1 = + _registerName1("isAuthorizedForWidgetUpdates"); + late final _sel_purpose1 = _registerName1("purpose"); + late final _sel_setPurpose_1 = _registerName1("setPurpose:"); + late final _sel_activityType1 = _registerName1("activityType"); + int _objc_msgSend_949( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_949( + obj, + sel, + ); } - @override - int get hashCode => _id.hashCode; -} - -class NSObject extends _ObjCWrapper { - NSObject._(ffi.Pointer id, PedometerBindings lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + late final __objc_msgSend_949Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_949 = __objc_msgSend_949Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); - /// Returns a [NSObject] that points to the same underlying object as [other]. - static NSObject castFrom(T other) { - return NSObject._(other._id, other._lib, retain: true, release: true); + late final _sel_setActivityType_1 = _registerName1("setActivityType:"); + void _objc_msgSend_950( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_950( + obj, + sel, + value, + ); } - /// Returns a [NSObject] that wraps the given raw object pointer. - static NSObject castFromPointer( - PedometerBindings lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSObject._(other, lib, retain: retain, release: release); - } + late final __objc_msgSend_950Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_950 = __objc_msgSend_950Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); - /// Returns whether [obj] is an instance of [NSObject]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSObject1); + late final _sel_distanceFilter1 = _registerName1("distanceFilter"); + late final _sel_setDistanceFilter_1 = _registerName1("setDistanceFilter:"); + late final _sel_desiredAccuracy1 = _registerName1("desiredAccuracy"); + late final _sel_setDesiredAccuracy_1 = _registerName1("setDesiredAccuracy:"); + late final _sel_pausesLocationUpdatesAutomatically1 = + _registerName1("pausesLocationUpdatesAutomatically"); + late final _sel_setPausesLocationUpdatesAutomatically_1 = + _registerName1("setPausesLocationUpdatesAutomatically:"); + late final _sel_allowsBackgroundLocationUpdates1 = + _registerName1("allowsBackgroundLocationUpdates"); + late final _sel_setAllowsBackgroundLocationUpdates_1 = + _registerName1("setAllowsBackgroundLocationUpdates:"); + late final _sel_showsBackgroundLocationIndicator1 = + _registerName1("showsBackgroundLocationIndicator"); + late final _sel_setShowsBackgroundLocationIndicator_1 = + _registerName1("setShowsBackgroundLocationIndicator:"); + late final _class_CLLocation1 = _getClass1("CLLocation"); + late final _sel_initWithLatitude_longitude_1 = + _registerName1("initWithLatitude:longitude:"); + instancetype _objc_msgSend_951( + ffi.Pointer obj, + ffi.Pointer sel, + double latitude, + double longitude, + ) { + return __objc_msgSend_951( + obj, + sel, + latitude, + longitude, + ); } - static void load(PedometerBindings _lib) { - return _lib._objc_msgSend_1(_lib._class_NSObject1, _lib._sel_load1); - } + late final __objc_msgSend_951Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Double, ffi.Double)>>('objc_msgSend'); + late final __objc_msgSend_951 = __objc_msgSend_951Ptr.asFunction< + instancetype Function( + ffi.Pointer, ffi.Pointer, double, double)>(); - static void initialize(PedometerBindings _lib) { - return _lib._objc_msgSend_1(_lib._class_NSObject1, _lib._sel_initialize1); - } - - NSObject init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSObject._(_ret, _lib, retain: true, release: true); + late final _sel_initWithCoordinate_altitude_horizontalAccuracy_verticalAccuracy_timestamp_1 = + _registerName1( + "initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:timestamp:"); + instancetype _objc_msgSend_952( + ffi.Pointer obj, + ffi.Pointer sel, + CLLocationCoordinate2D coordinate, + double altitude, + double hAccuracy, + double vAccuracy, + ffi.Pointer timestamp, + ) { + return __objc_msgSend_952( + obj, + sel, + coordinate, + altitude, + hAccuracy, + vAccuracy, + timestamp, + ); } - static NSObject new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_new1); - return NSObject._(_ret, _lib, retain: false, release: true); - } + late final __objc_msgSend_952Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + CLLocationCoordinate2D, + ffi.Double, + ffi.Double, + ffi.Double, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_952 = __objc_msgSend_952Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + CLLocationCoordinate2D, + double, + double, + double, + ffi.Pointer)>(); - static NSObject allocWithZone_( - PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSObject1, _lib._sel_allocWithZone_1, zone); - return NSObject._(_ret, _lib, retain: false, release: true); + late final _sel_initWithCoordinate_altitude_horizontalAccuracy_verticalAccuracy_course_speed_timestamp_1 = + _registerName1( + "initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:course:speed:timestamp:"); + instancetype _objc_msgSend_953( + ffi.Pointer obj, + ffi.Pointer sel, + CLLocationCoordinate2D coordinate, + double altitude, + double hAccuracy, + double vAccuracy, + double course, + double speed, + ffi.Pointer timestamp, + ) { + return __objc_msgSend_953( + obj, + sel, + coordinate, + altitude, + hAccuracy, + vAccuracy, + course, + speed, + timestamp, + ); } - static NSObject alloc(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_alloc1); - return NSObject._(_ret, _lib, retain: false, release: true); - } + late final __objc_msgSend_953Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + CLLocationCoordinate2D, + ffi.Double, + ffi.Double, + ffi.Double, + ffi.Double, + ffi.Double, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_953 = __objc_msgSend_953Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + CLLocationCoordinate2D, + double, + double, + double, + double, + double, + ffi.Pointer)>(); - void dealloc() { - return _lib._objc_msgSend_1(_id, _lib._sel_dealloc1); + late final _sel_initWithCoordinate_altitude_horizontalAccuracy_verticalAccuracy_course_courseAccuracy_speed_speedAccuracy_timestamp_1 = + _registerName1( + "initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:course:courseAccuracy:speed:speedAccuracy:timestamp:"); + instancetype _objc_msgSend_954( + ffi.Pointer obj, + ffi.Pointer sel, + CLLocationCoordinate2D coordinate, + double altitude, + double hAccuracy, + double vAccuracy, + double course, + double courseAccuracy, + double speed, + double speedAccuracy, + ffi.Pointer timestamp, + ) { + return __objc_msgSend_954( + obj, + sel, + coordinate, + altitude, + hAccuracy, + vAccuracy, + course, + courseAccuracy, + speed, + speedAccuracy, + timestamp, + ); } - void finalize() { - return _lib._objc_msgSend_1(_id, _lib._sel_finalize1); - } + late final __objc_msgSend_954Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + CLLocationCoordinate2D, + ffi.Double, + ffi.Double, + ffi.Double, + ffi.Double, + ffi.Double, + ffi.Double, + ffi.Double, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_954 = __objc_msgSend_954Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + CLLocationCoordinate2D, + double, + double, + double, + double, + double, + double, + double, + ffi.Pointer)>(); - NSObject copy() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_copy1); - return NSObject._(_ret, _lib, retain: false, release: true); + late final _class_CLLocationSourceInformation1 = + _getClass1("CLLocationSourceInformation"); + late final _sel_initWithSoftwareSimulationState_andExternalAccessoryState_1 = + _registerName1( + "initWithSoftwareSimulationState:andExternalAccessoryState:"); + instancetype _objc_msgSend_955( + ffi.Pointer obj, + ffi.Pointer sel, + bool isSoftware, + bool isAccessory, + ) { + return __objc_msgSend_955( + obj, + sel, + isSoftware, + isAccessory, + ); } - NSObject mutableCopy() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_mutableCopy1); - return NSObject._(_ret, _lib, retain: false, release: true); - } + late final __objc_msgSend_955Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Bool, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_955 = __objc_msgSend_955Ptr.asFunction< + instancetype Function( + ffi.Pointer, ffi.Pointer, bool, bool)>(); - static NSObject copyWithZone_( - PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSObject1, _lib._sel_copyWithZone_1, zone); - return NSObject._(_ret, _lib, retain: false, release: true); + late final _sel_isSimulatedBySoftware1 = + _registerName1("isSimulatedBySoftware"); + late final _sel_isProducedByAccessory1 = + _registerName1("isProducedByAccessory"); + late final _sel_initWithCoordinate_altitude_horizontalAccuracy_verticalAccuracy_course_courseAccuracy_speed_speedAccuracy_timestamp_sourceInfo_1 = + _registerName1( + "initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:course:courseAccuracy:speed:speedAccuracy:timestamp:sourceInfo:"); + instancetype _objc_msgSend_956( + ffi.Pointer obj, + ffi.Pointer sel, + CLLocationCoordinate2D coordinate, + double altitude, + double hAccuracy, + double vAccuracy, + double course, + double courseAccuracy, + double speed, + double speedAccuracy, + ffi.Pointer timestamp, + ffi.Pointer sourceInfo, + ) { + return __objc_msgSend_956( + obj, + sel, + coordinate, + altitude, + hAccuracy, + vAccuracy, + course, + courseAccuracy, + speed, + speedAccuracy, + timestamp, + sourceInfo, + ); } - static NSObject mutableCopyWithZone_( - PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSObject1, _lib._sel_mutableCopyWithZone_1, zone); - return NSObject._(_ret, _lib, retain: false, release: true); - } + late final __objc_msgSend_956Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + CLLocationCoordinate2D, + ffi.Double, + ffi.Double, + ffi.Double, + ffi.Double, + ffi.Double, + ffi.Double, + ffi.Double, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_956 = __objc_msgSend_956Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + CLLocationCoordinate2D, + double, + double, + double, + double, + double, + double, + double, + ffi.Pointer, + ffi.Pointer)>(); - static bool instancesRespondToSelector_( - PedometerBindings _lib, ffi.Pointer aSelector) { - return _lib._objc_msgSend_4(_lib._class_NSObject1, - _lib._sel_instancesRespondToSelector_1, aSelector); + late final _sel_coordinate1 = _registerName1("coordinate"); + void _objc_msgSend_957( + ffi.Pointer stret, + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_957( + stret, + obj, + sel, + ); } - static bool conformsToProtocol_(PedometerBindings _lib, Protocol? protocol) { - return _lib._objc_msgSend_5(_lib._class_NSObject1, - _lib._sel_conformsToProtocol_1, protocol?._id ?? ffi.nullptr); - } + late final __objc_msgSend_957Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_stret'); + late final __objc_msgSend_957 = __objc_msgSend_957Ptr.asFunction< + void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer> methodForSelector_( - ffi.Pointer aSelector) { - return _lib._objc_msgSend_6(_id, _lib._sel_methodForSelector_1, aSelector); + late final _sel_altitude1 = _registerName1("altitude"); + late final _sel_ellipsoidalAltitude1 = _registerName1("ellipsoidalAltitude"); + late final _sel_horizontalAccuracy1 = _registerName1("horizontalAccuracy"); + late final _sel_verticalAccuracy1 = _registerName1("verticalAccuracy"); + late final _sel_course1 = _registerName1("course"); + late final _sel_courseAccuracy1 = _registerName1("courseAccuracy"); + late final _sel_speed1 = _registerName1("speed"); + late final _sel_speedAccuracy1 = _registerName1("speedAccuracy"); + late final _sel_timestamp1 = _registerName1("timestamp"); + late final _class_CLFloor1 = _getClass1("CLFloor"); + late final _sel_level1 = _registerName1("level"); + late final _sel_floor1 = _registerName1("floor"); + ffi.Pointer _objc_msgSend_958( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_958( + obj, + sel, + ); } - static ffi.Pointer> - instanceMethodForSelector_( - PedometerBindings _lib, ffi.Pointer aSelector) { - return _lib._objc_msgSend_6(_lib._class_NSObject1, - _lib._sel_instanceMethodForSelector_1, aSelector); - } + late final __objc_msgSend_958Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_958 = __objc_msgSend_958Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - void doesNotRecognizeSelector_(ffi.Pointer aSelector) { - return _lib._objc_msgSend_7( - _id, _lib._sel_doesNotRecognizeSelector_1, aSelector); + late final _sel_sourceInformation1 = _registerName1("sourceInformation"); + ffi.Pointer _objc_msgSend_959( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_959( + obj, + sel, + ); } - NSObject forwardingTargetForSelector_(ffi.Pointer aSelector) { - final _ret = _lib._objc_msgSend_8( - _id, _lib._sel_forwardingTargetForSelector_1, aSelector); - return NSObject._(_ret, _lib, retain: true, release: true); - } + late final __objc_msgSend_959Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_959 = __objc_msgSend_959Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - void forwardInvocation_(NSInvocation? anInvocation) { - return _lib._objc_msgSend_353( - _id, _lib._sel_forwardInvocation_1, anInvocation?._id ?? ffi.nullptr); + late final _sel_getDistanceFrom_1 = _registerName1("getDistanceFrom:"); + double _objc_msgSend_960( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer location, + ) { + return __objc_msgSend_960( + obj, + sel, + location, + ); } - NSMethodSignature methodSignatureForSelector_( - ffi.Pointer aSelector) { - final _ret = _lib._objc_msgSend_354( - _id, _lib._sel_methodSignatureForSelector_1, aSelector); - return NSMethodSignature._(_ret, _lib, retain: true, release: true); - } + late final __objc_msgSend_960Ptr = _lookup< + ffi.NativeFunction< + ffi.Double Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_fpret'); + late final __objc_msgSend_960 = __objc_msgSend_960Ptr.asFunction< + double Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - static NSMethodSignature instanceMethodSignatureForSelector_( - PedometerBindings _lib, ffi.Pointer aSelector) { - final _ret = _lib._objc_msgSend_354(_lib._class_NSObject1, - _lib._sel_instanceMethodSignatureForSelector_1, aSelector); - return NSMethodSignature._(_ret, _lib, retain: true, release: true); + late final _sel_distanceFromLocation_1 = + _registerName1("distanceFromLocation:"); + late final _sel_location1 = _registerName1("location"); + ffi.Pointer _objc_msgSend_961( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_961( + obj, + sel, + ); } - bool allowsWeakReference() { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsWeakReference1); - } + late final __objc_msgSend_961Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_961 = __objc_msgSend_961Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - bool retainWeakReference() { - return _lib._objc_msgSend_12(_id, _lib._sel_retainWeakReference1); + late final _sel_headingFilter1 = _registerName1("headingFilter"); + late final _sel_setHeadingFilter_1 = _registerName1("setHeadingFilter:"); + late final _sel_headingOrientation1 = _registerName1("headingOrientation"); + int _objc_msgSend_962( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_962( + obj, + sel, + ); } - static bool isSubclassOfClass_(PedometerBindings _lib, NSObject aClass) { - return _lib._objc_msgSend_0( - _lib._class_NSObject1, _lib._sel_isSubclassOfClass_1, aClass._id); - } + late final __objc_msgSend_962Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_962 = __objc_msgSend_962Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); - static bool resolveClassMethod_( - PedometerBindings _lib, ffi.Pointer sel) { - return _lib._objc_msgSend_4( - _lib._class_NSObject1, _lib._sel_resolveClassMethod_1, sel); + late final _sel_setHeadingOrientation_1 = + _registerName1("setHeadingOrientation:"); + void _objc_msgSend_963( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_963( + obj, + sel, + value, + ); } - static bool resolveInstanceMethod_( - PedometerBindings _lib, ffi.Pointer sel) { - return _lib._objc_msgSend_4( - _lib._class_NSObject1, _lib._sel_resolveInstanceMethod_1, sel); - } + late final __objc_msgSend_963Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_963 = __objc_msgSend_963Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); - static int hash(PedometerBindings _lib) { - return _lib._objc_msgSend_10(_lib._class_NSObject1, _lib._sel_hash1); + late final _class_CLHeading1 = _getClass1("CLHeading"); + late final _sel_magneticHeading1 = _registerName1("magneticHeading"); + late final _sel_trueHeading1 = _registerName1("trueHeading"); + late final _sel_headingAccuracy1 = _registerName1("headingAccuracy"); + late final _sel_x1 = _registerName1("x"); + late final _sel_y1 = _registerName1("y"); + late final _sel_z1 = _registerName1("z"); + late final _sel_heading1 = _registerName1("heading"); + ffi.Pointer _objc_msgSend_964( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_964( + obj, + sel, + ); } - static NSObject superclass(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_superclass1); - return NSObject._(_ret, _lib, retain: true, release: true); - } + late final __objc_msgSend_964Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_964 = __objc_msgSend_964Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - static NSObject class1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_class1); - return NSObject._(_ret, _lib, retain: true, release: true); + late final _sel_maximumRegionMonitoringDistance1 = + _registerName1("maximumRegionMonitoringDistance"); + late final _sel_monitoredRegions1 = _registerName1("monitoredRegions"); + late final _sel_rangedRegions1 = _registerName1("rangedRegions"); + late final _sel_rangedBeaconConstraints1 = + _registerName1("rangedBeaconConstraints"); + late final _sel_requestWhenInUseAuthorization1 = + _registerName1("requestWhenInUseAuthorization"); + late final _sel_requestAlwaysAuthorization1 = + _registerName1("requestAlwaysAuthorization"); + late final _sel_requestTemporaryFullAccuracyAuthorizationWithPurposeKey_completion_1 = + _registerName1( + "requestTemporaryFullAccuracyAuthorizationWithPurposeKey:completion:"); + void _objc_msgSend_965( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer purposeKey, + ffi.Pointer<_ObjCBlock> completion, + ) { + return __objc_msgSend_965( + obj, + sel, + purposeKey, + completion, + ); } - static NSString description(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_20(_lib._class_NSObject1, _lib._sel_description1); - return NSString._(_ret, _lib, retain: true, release: true); - } + late final __objc_msgSend_965Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_965 = __objc_msgSend_965Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - static NSString debugDescription(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_20( - _lib._class_NSObject1, _lib._sel_debugDescription1); - return NSString._(_ret, _lib, retain: true, release: true); + late final _sel_requestTemporaryFullAccuracyAuthorizationWithPurposeKey_1 = + _registerName1( + "requestTemporaryFullAccuracyAuthorizationWithPurposeKey:"); + late final _sel_startUpdatingLocation1 = + _registerName1("startUpdatingLocation"); + late final _sel_stopUpdatingLocation1 = + _registerName1("stopUpdatingLocation"); + late final _sel_requestLocation1 = _registerName1("requestLocation"); + late final _sel_startUpdatingHeading1 = + _registerName1("startUpdatingHeading"); + late final _sel_stopUpdatingHeading1 = _registerName1("stopUpdatingHeading"); + late final _sel_dismissHeadingCalibrationDisplay1 = + _registerName1("dismissHeadingCalibrationDisplay"); + late final _sel_startMonitoringSignificantLocationChanges1 = + _registerName1("startMonitoringSignificantLocationChanges"); + late final _sel_stopMonitoringSignificantLocationChanges1 = + _registerName1("stopMonitoringSignificantLocationChanges"); + late final _sel_startMonitoringLocationPushesWithCompletion_1 = + _registerName1("startMonitoringLocationPushesWithCompletion:"); + void _objc_msgSend_966( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> completion, + ) { + return __objc_msgSend_966( + obj, + sel, + completion, + ); } - static int version(PedometerBindings _lib) { - return _lib._objc_msgSend_70(_lib._class_NSObject1, _lib._sel_version1); - } + late final __objc_msgSend_966Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_966 = __objc_msgSend_966Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - static void setVersion_(PedometerBindings _lib, int aVersion) { - return _lib._objc_msgSend_355( - _lib._class_NSObject1, _lib._sel_setVersion_1, aVersion); + late final _sel_stopMonitoringLocationPushes1 = + _registerName1("stopMonitoringLocationPushes"); + late final _class_CLRegion1 = _getClass1("CLRegion"); + late final _sel_initCircularRegionWithCenter_radius_identifier_1 = + _registerName1("initCircularRegionWithCenter:radius:identifier:"); + instancetype _objc_msgSend_967( + ffi.Pointer obj, + ffi.Pointer sel, + CLLocationCoordinate2D center, + double radius, + ffi.Pointer identifier, + ) { + return __objc_msgSend_967( + obj, + sel, + center, + radius, + identifier, + ); } - NSObject get classForCoder { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_classForCoder1); - return NSObject._(_ret, _lib, retain: true, release: true); - } + late final __objc_msgSend_967Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + CLLocationCoordinate2D, + ffi.Double, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_967 = __objc_msgSend_967Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + CLLocationCoordinate2D, double, ffi.Pointer)>(); - NSObject replacementObjectForCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_replacementObjectForCoder_1, coder?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + late final _sel_center1 = _registerName1("center"); + late final _sel_radius1 = _registerName1("radius"); + late final _sel_notifyOnEntry1 = _registerName1("notifyOnEntry"); + late final _sel_setNotifyOnEntry_1 = _registerName1("setNotifyOnEntry:"); + late final _sel_notifyOnExit1 = _registerName1("notifyOnExit"); + late final _sel_setNotifyOnExit_1 = _registerName1("setNotifyOnExit:"); + late final _sel_containsCoordinate_1 = _registerName1("containsCoordinate:"); + bool _objc_msgSend_968( + ffi.Pointer obj, + ffi.Pointer sel, + CLLocationCoordinate2D coordinate, + ) { + return __objc_msgSend_968( + obj, + sel, + coordinate, + ); } - NSObject awakeAfterUsingCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_awakeAfterUsingCoder_1, coder?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: false, release: true); - } + late final __objc_msgSend_968Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + CLLocationCoordinate2D)>>('objc_msgSend'); + late final __objc_msgSend_968 = __objc_msgSend_968Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + CLLocationCoordinate2D)>(); - static void poseAsClass_(PedometerBindings _lib, NSObject aClass) { - return _lib._objc_msgSend_15( - _lib._class_NSObject1, _lib._sel_poseAsClass_1, aClass._id); + late final _sel_startMonitoringForRegion_desiredAccuracy_1 = + _registerName1("startMonitoringForRegion:desiredAccuracy:"); + void _objc_msgSend_969( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer region, + double accuracy, + ) { + return __objc_msgSend_969( + obj, + sel, + region, + accuracy, + ); } - NSObject get autoContentAccessingProxy { - final _ret = - _lib._objc_msgSend_2(_id, _lib._sel_autoContentAccessingProxy1); - return NSObject._(_ret, _lib, retain: true, release: true); - } + late final __objc_msgSend_969Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Double)>>('objc_msgSend'); + late final __objc_msgSend_969 = __objc_msgSend_969Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, double)>(); - void - attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_( - NSError? error, - int recoveryOptionIndex, - NSObject delegate, - ffi.Pointer didRecoverSelector, - ffi.Pointer contextInfo) { - return _lib._objc_msgSend_356( - _id, - _lib._sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_1, - error?._id ?? ffi.nullptr, - recoveryOptionIndex, - delegate._id, - didRecoverSelector, - contextInfo); + late final _sel_stopMonitoringForRegion_1 = + _registerName1("stopMonitoringForRegion:"); + void _objc_msgSend_970( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer region, + ) { + return __objc_msgSend_970( + obj, + sel, + region, + ); } - bool attemptRecoveryFromError_optionIndex_( - NSError? error, int recoveryOptionIndex) { - return _lib._objc_msgSend_357( - _id, - _lib._sel_attemptRecoveryFromError_optionIndex_1, - error?._id ?? ffi.nullptr, - recoveryOptionIndex); - } + late final __objc_msgSend_970Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_970 = __objc_msgSend_970Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - void performSelector_withObject_afterDelay_inModes_( - ffi.Pointer aSelector, - NSObject anArgument, - double delay, - NSArray? modes) { - return _lib._objc_msgSend_358( - _id, - _lib._sel_performSelector_withObject_afterDelay_inModes_1, - aSelector, - anArgument._id, - delay, - modes?._id ?? ffi.nullptr); + late final _sel_startMonitoringForRegion_1 = + _registerName1("startMonitoringForRegion:"); + late final _sel_requestStateForRegion_1 = + _registerName1("requestStateForRegion:"); + late final _class_CLBeaconRegion1 = _getClass1("CLBeaconRegion"); + late final _class_NSUUID1 = _getClass1("NSUUID"); + late final _sel_UUID1 = _registerName1("UUID"); + late final _sel_initWithUUIDString_1 = _registerName1("initWithUUIDString:"); + late final _sel_initWithUUIDBytes_1 = _registerName1("initWithUUIDBytes:"); + instancetype _objc_msgSend_971( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer bytes, + ) { + return __objc_msgSend_971( + obj, + sel, + bytes, + ); } - void performSelector_withObject_afterDelay_( - ffi.Pointer aSelector, NSObject anArgument, double delay) { - return _lib._objc_msgSend_359( - _id, - _lib._sel_performSelector_withObject_afterDelay_1, - aSelector, - anArgument._id, - delay); - } + late final __objc_msgSend_971Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_971 = __objc_msgSend_971Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - PedometerBindings _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSObject1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + late final _sel_getUUIDBytes_1 = _registerName1("getUUIDBytes:"); + void _objc_msgSend_972( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer uuid, + ) { + return __objc_msgSend_972( + obj, + sel, + uuid, + ); } - static void cancelPreviousPerformRequestsWithTarget_( - PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSObject1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } + late final __objc_msgSend_972Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_972 = __objc_msgSend_972Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - void URL_resourceDataDidBecomeAvailable_(NSURL? sender, NSData? newBytes) { - return _lib._objc_msgSend_360( - _id, - _lib._sel_URL_resourceDataDidBecomeAvailable_1, - sender?._id ?? ffi.nullptr, - newBytes?._id ?? ffi.nullptr); + int _objc_msgSend_973( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer otherUUID, + ) { + return __objc_msgSend_973( + obj, + sel, + otherUUID, + ); } - void URLResourceDidFinishLoading_(NSURL? sender) { - return _lib._objc_msgSend_361(_id, _lib._sel_URLResourceDidFinishLoading_1, - sender?._id ?? ffi.nullptr); - } + late final __objc_msgSend_973Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_973 = __objc_msgSend_973Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - void URLResourceDidCancelLoading_(NSURL? sender) { - return _lib._objc_msgSend_361(_id, _lib._sel_URLResourceDidCancelLoading_1, - sender?._id ?? ffi.nullptr); + late final _sel_UUIDString1 = _registerName1("UUIDString"); + late final _sel_initWithUUID_identifier_1 = + _registerName1("initWithUUID:identifier:"); + instancetype _objc_msgSend_974( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer uuid, + ffi.Pointer identifier, + ) { + return __objc_msgSend_974( + obj, + sel, + uuid, + identifier, + ); } - void URL_resourceDidFailLoadingWithReason_(NSURL? sender, NSString? reason) { - return _lib._objc_msgSend_362( - _id, - _lib._sel_URL_resourceDidFailLoadingWithReason_1, - sender?._id ?? ffi.nullptr, - reason?._id ?? ffi.nullptr); - } + late final __objc_msgSend_974Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_974 = __objc_msgSend_974Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - bool fileManager_shouldProceedAfterError_( - NSFileManager? fm, NSDictionary? errorInfo) { - return _lib._objc_msgSend_398( - _id, - _lib._sel_fileManager_shouldProceedAfterError_1, - fm?._id ?? ffi.nullptr, - errorInfo?._id ?? ffi.nullptr); + late final _sel_initWithProximityUUID_identifier_1 = + _registerName1("initWithProximityUUID:identifier:"); + late final _sel_initWithUUID_major_identifier_1 = + _registerName1("initWithUUID:major:identifier:"); + instancetype _objc_msgSend_975( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer uuid, + int major, + ffi.Pointer identifier, + ) { + return __objc_msgSend_975( + obj, + sel, + uuid, + major, + identifier, + ); } - void fileManager_willProcessPath_(NSFileManager? fm, NSString? path) { - return _lib._objc_msgSend_399(_id, _lib._sel_fileManager_willProcessPath_1, - fm?._id ?? ffi.nullptr, path?._id ?? ffi.nullptr); - } + late final __objc_msgSend_975Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Uint16, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_975 = __objc_msgSend_975Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, ffi.Pointer)>(); - static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSObject1, _lib._sel_accessInstanceVariablesDirectly1); + late final _sel_initWithProximityUUID_major_identifier_1 = + _registerName1("initWithProximityUUID:major:identifier:"); + late final _sel_initWithUUID_major_minor_identifier_1 = + _registerName1("initWithUUID:major:minor:identifier:"); + instancetype _objc_msgSend_976( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer uuid, + int major, + int minor, + ffi.Pointer identifier, + ) { + return __objc_msgSend_976( + obj, + sel, + uuid, + major, + minor, + identifier, + ); } - NSObject valueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_valueForKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } + late final __objc_msgSend_976Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Uint16, + ffi.Uint16, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_976 = __objc_msgSend_976Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, int, ffi.Pointer)>(); - void setValue_forKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_118( - _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); + late final _sel_initWithProximityUUID_major_minor_identifier_1 = + _registerName1("initWithProximityUUID:major:minor:identifier:"); + late final _class_CLBeaconIdentityConstraint1 = + _getClass1("CLBeaconIdentityConstraint"); + late final _class_CLBeaconIdentityCondition1 = + _getClass1("CLBeaconIdentityCondition"); + late final _class_CLCondition1 = _getClass1("CLCondition"); + ffi.Pointer _objc_msgSend_977( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_977( + obj, + sel, + ); } - bool validateValue_forKey_error_(ffi.Pointer> ioValue, - NSString? inKey, ffi.Pointer> outError) { - return _lib._objc_msgSend_184(_id, _lib._sel_validateValue_forKey_error_1, - ioValue, inKey?._id ?? ffi.nullptr, outError); - } + late final __objc_msgSend_977Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_977 = __objc_msgSend_977Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - NSMutableArray mutableArrayValueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_416( - _id, _lib._sel_mutableArrayValueForKey_1, key?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + late final _sel_major1 = _registerName1("major"); + late final _sel_minor1 = _registerName1("minor"); + late final _sel_initWithUUID_1 = _registerName1("initWithUUID:"); + instancetype _objc_msgSend_978( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer uuid, + ) { + return __objc_msgSend_978( + obj, + sel, + uuid, + ); } - NSMutableOrderedSet mutableOrderedSetValueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_435( - _id, _lib._sel_mutableOrderedSetValueForKey_1, key?._id ?? ffi.nullptr); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); - } + late final __objc_msgSend_978Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_978 = __objc_msgSend_978Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - NSMutableSet mutableSetValueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_436( - _id, _lib._sel_mutableSetValueForKey_1, key?._id ?? ffi.nullptr); - return NSMutableSet._(_ret, _lib, retain: true, release: true); + late final _sel_initWithUUID_major_1 = _registerName1("initWithUUID:major:"); + instancetype _objc_msgSend_979( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer uuid, + int major, + ) { + return __objc_msgSend_979( + obj, + sel, + uuid, + major, + ); } - NSObject valueForKeyPath_(NSString? keyPath) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_valueForKeyPath_1, keyPath?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } + late final __objc_msgSend_979Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Uint16)>>('objc_msgSend'); + late final __objc_msgSend_979 = __objc_msgSend_979Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); - void setValue_forKeyPath_(NSObject value, NSString? keyPath) { - return _lib._objc_msgSend_118(_id, _lib._sel_setValue_forKeyPath_1, - value._id, keyPath?._id ?? ffi.nullptr); + late final _sel_initWithUUID_major_minor_1 = + _registerName1("initWithUUID:major:minor:"); + instancetype _objc_msgSend_980( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer uuid, + int major, + int minor, + ) { + return __objc_msgSend_980( + obj, + sel, + uuid, + major, + minor, + ); } - bool validateValue_forKeyPath_error_( - ffi.Pointer> ioValue, - NSString? inKeyPath, - ffi.Pointer> outError) { - return _lib._objc_msgSend_184( - _id, - _lib._sel_validateValue_forKeyPath_error_1, - ioValue, - inKeyPath?._id ?? ffi.nullptr, - outError); - } + late final __objc_msgSend_980Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Uint16, + ffi.Uint16)>>('objc_msgSend'); + late final __objc_msgSend_980 = __objc_msgSend_980Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, int)>(); - NSMutableArray mutableArrayValueForKeyPath_(NSString? keyPath) { - final _ret = _lib._objc_msgSend_416(_id, - _lib._sel_mutableArrayValueForKeyPath_1, keyPath?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + late final _sel_initWithBeaconIdentityConstraint_identifier_1 = + _registerName1("initWithBeaconIdentityConstraint:identifier:"); + instancetype _objc_msgSend_981( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer beaconIdentityConstraint, + ffi.Pointer identifier, + ) { + return __objc_msgSend_981( + obj, + sel, + beaconIdentityConstraint, + identifier, + ); } - NSMutableOrderedSet mutableOrderedSetValueForKeyPath_(NSString? keyPath) { - final _ret = _lib._objc_msgSend_435( - _id, - _lib._sel_mutableOrderedSetValueForKeyPath_1, - keyPath?._id ?? ffi.nullptr); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); - } + late final __objc_msgSend_981Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_981 = __objc_msgSend_981Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - NSMutableSet mutableSetValueForKeyPath_(NSString? keyPath) { - final _ret = _lib._objc_msgSend_436(_id, - _lib._sel_mutableSetValueForKeyPath_1, keyPath?._id ?? ffi.nullptr); - return NSMutableSet._(_ret, _lib, retain: true, release: true); + late final _sel_peripheralDataWithMeasuredPower_1 = + _registerName1("peripheralDataWithMeasuredPower:"); + ffi.Pointer _objc_msgSend_982( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer measuredPower, + ) { + return __objc_msgSend_982( + obj, + sel, + measuredPower, + ); } - NSObject valueForUndefinedKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_valueForUndefinedKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } + late final __objc_msgSend_982Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_982 = __objc_msgSend_982Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - void setValue_forUndefinedKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_118(_id, _lib._sel_setValue_forUndefinedKey_1, - value._id, key?._id ?? ffi.nullptr); + late final _sel_beaconIdentityConstraint1 = + _registerName1("beaconIdentityConstraint"); + ffi.Pointer _objc_msgSend_983( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_983( + obj, + sel, + ); } - void setNilValueForKey_(NSString? key) { - return _lib._objc_msgSend_188( - _id, _lib._sel_setNilValueForKey_1, key?._id ?? ffi.nullptr); - } + late final __objc_msgSend_983Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_983 = __objc_msgSend_983Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - NSDictionary dictionaryWithValuesForKeys_(NSArray? keys) { - final _ret = _lib._objc_msgSend_437( - _id, _lib._sel_dictionaryWithValuesForKeys_1, keys?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + late final _sel_proximityUUID1 = _registerName1("proximityUUID"); + late final _sel_notifyEntryStateOnDisplay1 = + _registerName1("notifyEntryStateOnDisplay"); + late final _sel_setNotifyEntryStateOnDisplay_1 = + _registerName1("setNotifyEntryStateOnDisplay:"); + late final _sel_startRangingBeaconsInRegion_1 = + _registerName1("startRangingBeaconsInRegion:"); + void _objc_msgSend_984( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer region, + ) { + return __objc_msgSend_984( + obj, + sel, + region, + ); } - void setValuesForKeysWithDictionary_(NSDictionary? keyedValues) { - return _lib._objc_msgSend_438( - _id, - _lib._sel_setValuesForKeysWithDictionary_1, - keyedValues?._id ?? ffi.nullptr); - } + late final __objc_msgSend_984Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_984 = __objc_msgSend_984Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - static bool useStoredAccessor(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSObject1, _lib._sel_useStoredAccessor1); + late final _sel_stopRangingBeaconsInRegion_1 = + _registerName1("stopRangingBeaconsInRegion:"); + late final _sel_startRangingBeaconsSatisfyingConstraint_1 = + _registerName1("startRangingBeaconsSatisfyingConstraint:"); + void _objc_msgSend_985( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer constraint, + ) { + return __objc_msgSend_985( + obj, + sel, + constraint, + ); } - NSObject storedValueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_storedValueForKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } + late final __objc_msgSend_985Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_985 = __objc_msgSend_985Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - void takeStoredValue_forKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_118(_id, _lib._sel_takeStoredValue_forKey_1, - value._id, key?._id ?? ffi.nullptr); + late final _sel_stopRangingBeaconsSatisfyingConstraint_1 = + _registerName1("stopRangingBeaconsSatisfyingConstraint:"); + late final _sel_allowDeferredLocationUpdatesUntilTraveled_timeout_1 = + _registerName1("allowDeferredLocationUpdatesUntilTraveled:timeout:"); + void _objc_msgSend_986( + ffi.Pointer obj, + ffi.Pointer sel, + double distance, + double timeout, + ) { + return __objc_msgSend_986( + obj, + sel, + distance, + timeout, + ); } - void takeValue_forKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_118( - _id, _lib._sel_takeValue_forKey_1, value._id, key?._id ?? ffi.nullptr); - } + late final __objc_msgSend_986Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Double, ffi.Double)>>('objc_msgSend'); + late final __objc_msgSend_986 = __objc_msgSend_986Ptr.asFunction< + void Function( + ffi.Pointer, ffi.Pointer, double, double)>(); - void takeValue_forKeyPath_(NSObject value, NSString? keyPath) { - return _lib._objc_msgSend_118(_id, _lib._sel_takeValue_forKeyPath_1, - value._id, keyPath?._id ?? ffi.nullptr); + late final _sel_disallowDeferredLocationUpdates1 = + _registerName1("disallowDeferredLocationUpdates"); + late final _sel_deferredLocationUpdatesAvailable1 = + _registerName1("deferredLocationUpdatesAvailable"); + late final _sel_requestHistoricalLocationsWithPurposeKey_sampleCount_completionHandler_1 = + _registerName1( + "requestHistoricalLocationsWithPurposeKey:sampleCount:completionHandler:"); + void _objc_msgSend_987( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer purposeKey, + int sampleCount, + ffi.Pointer<_ObjCBlock> handler, + ) { + return __objc_msgSend_987( + obj, + sel, + purposeKey, + sampleCount, + handler, + ); } - NSObject handleQueryWithUnboundKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_handleQueryWithUnboundKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } + late final __objc_msgSend_987Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_987 = __objc_msgSend_987Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); - void handleTakeValue_forUnboundKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_118( - _id, - _lib._sel_handleTakeValue_forUnboundKey_1, - value._id, - key?._id ?? ffi.nullptr); + late final _sel_startMonitoringVisits1 = + _registerName1("startMonitoringVisits"); + late final _sel_stopMonitoringVisits1 = + _registerName1("stopMonitoringVisits"); + late final _class_CLPlacemark1 = _getClass1("CLPlacemark"); + late final _sel_initWithPlacemark_1 = _registerName1("initWithPlacemark:"); + instancetype _objc_msgSend_988( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer placemark, + ) { + return __objc_msgSend_988( + obj, + sel, + placemark, + ); } - void unableToSetNilForKey_(NSString? key) { - return _lib._objc_msgSend_188( - _id, _lib._sel_unableToSetNilForKey_1, key?._id ?? ffi.nullptr); - } + late final __objc_msgSend_988Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_988 = __objc_msgSend_988Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - NSDictionary valuesForKeys_(NSArray? keys) { - final _ret = _lib._objc_msgSend_437( - _id, _lib._sel_valuesForKeys_1, keys?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + late final _sel_region1 = _registerName1("region"); + ffi.Pointer _objc_msgSend_989( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_989( + obj, + sel, + ); } - void takeValuesFromDictionary_(NSDictionary? properties) { - return _lib._objc_msgSend_438(_id, _lib._sel_takeValuesFromDictionary_1, - properties?._id ?? ffi.nullptr); + late final __objc_msgSend_989Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_989 = __objc_msgSend_989Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_addressDictionary1 = _registerName1("addressDictionary"); + late final _sel_thoroughfare1 = _registerName1("thoroughfare"); + late final _sel_subThoroughfare1 = _registerName1("subThoroughfare"); + late final _sel_locality1 = _registerName1("locality"); + late final _sel_subLocality1 = _registerName1("subLocality"); + late final _sel_administrativeArea1 = _registerName1("administrativeArea"); + late final _sel_subAdministrativeArea1 = + _registerName1("subAdministrativeArea"); + late final _sel_postalCode1 = _registerName1("postalCode"); + late final _sel_ISOcountryCode1 = _registerName1("ISOcountryCode"); + late final _sel_country1 = _registerName1("country"); + late final _sel_inlandWater1 = _registerName1("inlandWater"); + late final _sel_ocean1 = _registerName1("ocean"); + late final _sel_areasOfInterest1 = _registerName1("areasOfInterest"); + late final _class_CNPostalAddress1 = _getClass1("CNPostalAddress"); + late final _sel_postalAddress1 = _registerName1("postalAddress"); + ffi.Pointer _objc_msgSend_990( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_990( + obj, + sel, + ); } - void observeValueForKeyPath_ofObject_change_context_(NSString? keyPath, - NSObject object, NSDictionary? change, ffi.Pointer context) { - return _lib._objc_msgSend_439( - _id, - _lib._sel_observeValueForKeyPath_ofObject_change_context_1, - keyPath?._id ?? ffi.nullptr, - object._id, - change?._id ?? ffi.nullptr, - context); + late final __objc_msgSend_990Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_990 = __objc_msgSend_990Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _class_CLGeocoder1 = _getClass1("CLGeocoder"); + late final _sel_isGeocoding1 = _registerName1("isGeocoding"); + late final _sel_reverseGeocodeLocation_completionHandler_1 = + _registerName1("reverseGeocodeLocation:completionHandler:"); + void _objc_msgSend_991( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer location, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_991( + obj, + sel, + location, + completionHandler, + ); } - void addObserver_forKeyPath_options_context_(NSObject? observer, - NSString? keyPath, int options, ffi.Pointer context) { - return _lib._objc_msgSend_122( - _id, - _lib._sel_addObserver_forKeyPath_options_context_1, - observer?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, - options, - context); + late final __objc_msgSend_991Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_991 = __objc_msgSend_991Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_reverseGeocodeLocation_preferredLocale_completionHandler_1 = + _registerName1( + "reverseGeocodeLocation:preferredLocale:completionHandler:"); + void _objc_msgSend_992( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer location, + ffi.Pointer locale, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_992( + obj, + sel, + location, + locale, + completionHandler, + ); } - void removeObserver_forKeyPath_context_( - NSObject? observer, NSString? keyPath, ffi.Pointer context) { - return _lib._objc_msgSend_123( - _id, - _lib._sel_removeObserver_forKeyPath_context_1, - observer?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, - context); + late final __objc_msgSend_992Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_992 = __objc_msgSend_992Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_geocodeAddressDictionary_completionHandler_1 = + _registerName1("geocodeAddressDictionary:completionHandler:"); + void _objc_msgSend_993( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer addressDictionary, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_993( + obj, + sel, + addressDictionary, + completionHandler, + ); } - void removeObserver_forKeyPath_(NSObject? observer, NSString? keyPath) { - return _lib._objc_msgSend_124(_id, _lib._sel_removeObserver_forKeyPath_1, - observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); + late final __objc_msgSend_993Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_993 = __objc_msgSend_993Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_geocodeAddressString_inRegion_completionHandler_1 = + _registerName1("geocodeAddressString:inRegion:completionHandler:"); + void _objc_msgSend_994( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer addressString, + ffi.Pointer region, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_994( + obj, + sel, + addressString, + region, + completionHandler, + ); } - void willChangeValueForKey_(NSString? key) { - return _lib._objc_msgSend_188( - _id, _lib._sel_willChangeValueForKey_1, key?._id ?? ffi.nullptr); + late final __objc_msgSend_994Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_994 = __objc_msgSend_994Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_geocodeAddressString_inRegion_preferredLocale_completionHandler_1 = + _registerName1( + "geocodeAddressString:inRegion:preferredLocale:completionHandler:"); + void _objc_msgSend_995( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer addressString, + ffi.Pointer region, + ffi.Pointer locale, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_995( + obj, + sel, + addressString, + region, + locale, + completionHandler, + ); } - void didChangeValueForKey_(NSString? key) { - return _lib._objc_msgSend_188( - _id, _lib._sel_didChangeValueForKey_1, key?._id ?? ffi.nullptr); + late final __objc_msgSend_995Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_995 = __objc_msgSend_995Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_geocodeAddressString_completionHandler_1 = + _registerName1("geocodeAddressString:completionHandler:"); + void _objc_msgSend_996( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer addressString, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_996( + obj, + sel, + addressString, + completionHandler, + ); } - void willChange_valuesAtIndexes_forKey_( - int changeKind, NSIndexSet? indexes, NSString? key) { - return _lib._objc_msgSend_440( - _id, - _lib._sel_willChange_valuesAtIndexes_forKey_1, - changeKind, - indexes?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr); + late final __objc_msgSend_996Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_996 = __objc_msgSend_996Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_cancelGeocode1 = _registerName1("cancelGeocode"); + late final _sel_geocodePostalAddress_completionHandler_1 = + _registerName1("geocodePostalAddress:completionHandler:"); + void _objc_msgSend_997( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer postalAddress, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_997( + obj, + sel, + postalAddress, + completionHandler, + ); } - void didChange_valuesAtIndexes_forKey_( - int changeKind, NSIndexSet? indexes, NSString? key) { - return _lib._objc_msgSend_440( - _id, - _lib._sel_didChange_valuesAtIndexes_forKey_1, - changeKind, - indexes?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr); + late final __objc_msgSend_997Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_997 = __objc_msgSend_997Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_geocodePostalAddress_preferredLocale_completionHandler_1 = + _registerName1("geocodePostalAddress:preferredLocale:completionHandler:"); + void _objc_msgSend_998( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer postalAddress, + ffi.Pointer locale, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_998( + obj, + sel, + postalAddress, + locale, + completionHandler, + ); } - void willChangeValueForKey_withSetMutation_usingObjects_( - NSString? key, int mutationKind, NSSet? objects) { - return _lib._objc_msgSend_441( - _id, - _lib._sel_willChangeValueForKey_withSetMutation_usingObjects_1, - key?._id ?? ffi.nullptr, - mutationKind, - objects?._id ?? ffi.nullptr); + late final __objc_msgSend_998Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_998 = __objc_msgSend_998Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + ObjCBlock_ffiVoid_CMPedometerData_NSError wrapCallback( + ObjCBlock_ffiVoid_CMPedometerData_NSError callback, + ) { + return ObjCBlock_ffiVoid_CMPedometerData_NSError._( + _wrapCallback( + callback._id, + ), + this, + retain: true, + release: true); } - void didChangeValueForKey_withSetMutation_usingObjects_( - NSString? key, int mutationKind, NSSet? objects) { - return _lib._objc_msgSend_441( - _id, - _lib._sel_didChangeValueForKey_withSetMutation_usingObjects_1, - key?._id ?? ffi.nullptr, - mutationKind, - objects?._id ?? ffi.nullptr); + late final _wrapCallbackPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer<_ObjCBlock>)>>('wrapCallback'); + late final _wrapCallback = _wrapCallbackPtr + .asFunction Function(ffi.Pointer<_ObjCBlock>)>(); +} + +class _ObjCWrapper implements ffi.Finalizable { + final ffi.Pointer _id; + final PedometerBindings _lib; + bool _pendingRelease; + + _ObjCWrapper._(this._id, this._lib, + {bool retain = false, bool release = false}) + : _pendingRelease = release { + if (retain) { + _lib._objc_retain(_id.cast()); + } + if (release) { + _lib._objc_releaseFinalizer2.attach(this, _id.cast(), detach: this); + } } - static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSObject1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + /// Releases the reference to the underlying ObjC object held by this wrapper. + /// Throws a StateError if this wrapper doesn't currently hold a reference. + void release() { + if (_pendingRelease) { + _pendingRelease = false; + _lib._objc_release(_id.cast()); + _lib._objc_releaseFinalizer2.detach(this); + } else { + throw StateError( + 'Released an ObjC object that was unowned or already released.'); + } } - static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSObject1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + @override + bool operator ==(Object other) { + return other is _ObjCWrapper && _id == other._id; } - ffi.Pointer get observationInfo { - return _lib._objc_msgSend_19(_id, _lib._sel_observationInfo1); + @override + int get hashCode => _id.hashCode; + + /// Return a pointer to this object. + ffi.Pointer get pointer => _id; + + ffi.Pointer _retainAndReturnId() { + _lib._objc_retain(_id.cast()); + return _id; } +} - set observationInfo(ffi.Pointer value) { - _lib._objc_msgSend_442(_id, _lib._sel_setObservationInfo_1, value); +class NSObject extends _ObjCWrapper { + NSObject._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSObject] that points to the same underlying object as [other]. + static NSObject castFrom(T other) { + return NSObject._(other._id, other._lib, retain: true, release: true); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSObject1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + /// Returns a [NSObject] that wraps the given raw object pointer. + static NSObject castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSObject._(other, lib, retain: retain, release: release); } - NSObject get classForKeyedArchiver { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_classForKeyedArchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [NSObject]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSObject1); } - NSObject replacementObjectForKeyedArchiver_(NSKeyedArchiver? archiver) { - final _ret = _lib._objc_msgSend_454( - _id, - _lib._sel_replacementObjectForKeyedArchiver_1, - archiver?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static void load(PedometerBindings _lib) { + _lib._objc_msgSend_1(_lib._class_NSObject1, _lib._sel_load1); } - static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSObject1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + static void initialize(PedometerBindings _lib) { + _lib._objc_msgSend_1(_lib._class_NSObject1, _lib._sel_initialize1); } - static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSObject1, _lib._sel_classForKeyedUnarchiver1); + NSObject init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); return NSObject._(_ret, _lib, retain: true, release: true); } - void performSelectorOnMainThread_withObject_waitUntilDone_modes_( - ffi.Pointer aSelector, NSObject arg, bool wait, NSArray? array) { - return _lib._objc_msgSend_455( - _id, + static NSObject new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_new1); + return NSObject._(_ret, _lib, retain: false, release: true); + } + + static NSObject allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSObject1, _lib._sel_allocWithZone_1, zone); + return NSObject._(_ret, _lib, retain: false, release: true); + } + + static NSObject alloc(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_alloc1); + return NSObject._(_ret, _lib, retain: false, release: true); + } + + void dealloc() { + _lib._objc_msgSend_1(_id, _lib._sel_dealloc1); + } + + void finalize() { + _lib._objc_msgSend_1(_id, _lib._sel_finalize1); + } + + NSObject copy() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_copy1); + return NSObject._(_ret, _lib, retain: false, release: true); + } + + NSObject mutableCopy() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_mutableCopy1); + return NSObject._(_ret, _lib, retain: false, release: true); + } + + static NSObject copyWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSObject1, _lib._sel_copyWithZone_1, zone); + return NSObject._(_ret, _lib, retain: false, release: true); + } + + static NSObject mutableCopyWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSObject1, _lib._sel_mutableCopyWithZone_1, zone); + return NSObject._(_ret, _lib, retain: false, release: true); + } + + static bool instancesRespondToSelector_( + PedometerBindings _lib, ffi.Pointer aSelector) { + return _lib._objc_msgSend_4(_lib._class_NSObject1, + _lib._sel_instancesRespondToSelector_1, aSelector); + } + + static bool conformsToProtocol_(PedometerBindings _lib, Protocol protocol) { + return _lib._objc_msgSend_5( + _lib._class_NSObject1, _lib._sel_conformsToProtocol_1, protocol._id); + } + + ffi.Pointer> methodForSelector_( + ffi.Pointer aSelector) { + return _lib._objc_msgSend_6(_id, _lib._sel_methodForSelector_1, aSelector); + } + + static ffi.Pointer> + instanceMethodForSelector_( + PedometerBindings _lib, ffi.Pointer aSelector) { + return _lib._objc_msgSend_6(_lib._class_NSObject1, + _lib._sel_instanceMethodForSelector_1, aSelector); + } + + void doesNotRecognizeSelector_(ffi.Pointer aSelector) { + _lib._objc_msgSend_7(_id, _lib._sel_doesNotRecognizeSelector_1, aSelector); + } + + NSObject forwardingTargetForSelector_(ffi.Pointer aSelector) { + final _ret = _lib._objc_msgSend_8( + _id, _lib._sel_forwardingTargetForSelector_1, aSelector); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + void forwardInvocation_(NSInvocation anInvocation) { + _lib._objc_msgSend_372( + _id, _lib._sel_forwardInvocation_1, anInvocation._id); + } + + NSMethodSignature methodSignatureForSelector_( + ffi.Pointer aSelector) { + final _ret = _lib._objc_msgSend_373( + _id, _lib._sel_methodSignatureForSelector_1, aSelector); + return NSMethodSignature._(_ret, _lib, retain: true, release: true); + } + + static NSMethodSignature instanceMethodSignatureForSelector_( + PedometerBindings _lib, ffi.Pointer aSelector) { + final _ret = _lib._objc_msgSend_373(_lib._class_NSObject1, + _lib._sel_instanceMethodSignatureForSelector_1, aSelector); + return NSMethodSignature._(_ret, _lib, retain: true, release: true); + } + + bool allowsWeakReference() { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsWeakReference1); + } + + bool retainWeakReference() { + return _lib._objc_msgSend_12(_id, _lib._sel_retainWeakReference1); + } + + static bool isSubclassOfClass_(PedometerBindings _lib, NSObject aClass) { + return _lib._objc_msgSend_0( + _lib._class_NSObject1, _lib._sel_isSubclassOfClass_1, aClass._id); + } + + static bool resolveClassMethod_( + PedometerBindings _lib, ffi.Pointer sel) { + return _lib._objc_msgSend_4( + _lib._class_NSObject1, _lib._sel_resolveClassMethod_1, sel); + } + + static bool resolveInstanceMethod_( + PedometerBindings _lib, ffi.Pointer sel) { + return _lib._objc_msgSend_4( + _lib._class_NSObject1, _lib._sel_resolveInstanceMethod_1, sel); + } + + static int hash(PedometerBindings _lib) { + return _lib._objc_msgSend_10(_lib._class_NSObject1, _lib._sel_hash1); + } + + static NSObject superclass(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_superclass1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject class1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_class1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSString description(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_21(_lib._class_NSObject1, _lib._sel_description1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSString debugDescription(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_21( + _lib._class_NSObject1, _lib._sel_debugDescription1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static int version(PedometerBindings _lib) { + return _lib._objc_msgSend_75(_lib._class_NSObject1, _lib._sel_version1); + } + + static void setVersion_(PedometerBindings _lib, int aVersion) { + _lib._objc_msgSend_374( + _lib._class_NSObject1, _lib._sel_setVersion_1, aVersion); + } + + NSObject get classForCoder { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_classForCoder1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject? replacementObjectForCoder_(NSCoder coder) { + final _ret = _lib._objc_msgSend_47( + _id, _lib._sel_replacementObjectForCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject? awakeAfterUsingCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_awakeAfterUsingCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: false, release: true); + } + + NSObject get autoContentAccessingProxy { + final _ret = + _lib._objc_msgSend_2(_id, _lib._sel_autoContentAccessingProxy1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + void + attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_( + NSError error, + int recoveryOptionIndex, + NSObject? delegate, + ffi.Pointer didRecoverSelector, + ffi.Pointer contextInfo) { + _lib._objc_msgSend_375( + _id, + _lib._sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_1, + error._id, + recoveryOptionIndex, + delegate?._id ?? ffi.nullptr, + didRecoverSelector, + contextInfo); + } + + bool attemptRecoveryFromError_optionIndex_( + NSError error, int recoveryOptionIndex) { + return _lib._objc_msgSend_376( + _id, + _lib._sel_attemptRecoveryFromError_optionIndex_1, + error._id, + recoveryOptionIndex); + } + + void performSelector_withObject_afterDelay_inModes_( + ffi.Pointer aSelector, + NSObject? anArgument, + double delay, + NSArray modes) { + _lib._objc_msgSend_377( + _id, + _lib._sel_performSelector_withObject_afterDelay_inModes_1, + aSelector, + anArgument?._id ?? ffi.nullptr, + delay, + modes._id); + } + + void performSelector_withObject_afterDelay_( + ffi.Pointer aSelector, NSObject? anArgument, double delay) { + _lib._objc_msgSend_378( + _id, + _lib._sel_performSelector_withObject_afterDelay_1, + aSelector, + anArgument?._id ?? ffi.nullptr, + delay); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + PedometerBindings _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSObject1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument?._id ?? ffi.nullptr); + } + + static void cancelPreviousPerformRequestsWithTarget_( + PedometerBindings _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSObject1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + bool fileManager_shouldProceedAfterError_( + NSFileManager fm, NSDictionary errorInfo) { + return _lib._objc_msgSend_414(_id, + _lib._sel_fileManager_shouldProceedAfterError_1, fm._id, errorInfo._id); + } + + void fileManager_willProcessPath_(NSFileManager fm, NSString path) { + _lib._objc_msgSend_415( + _id, _lib._sel_fileManager_willProcessPath_1, fm._id, path._id); + } + + static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSObject1, _lib._sel_accessInstanceVariablesDirectly1); + } + + NSObject? valueForKey_(NSString key) { + final _ret = _lib._objc_msgSend_38(_id, _lib._sel_valueForKey_1, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + void setValue_forKey_(NSObject? value, NSString key) { + _lib._objc_msgSend_126( + _id, _lib._sel_setValue_forKey_1, value?._id ?? ffi.nullptr, key._id); + } + + bool validateValue_forKey_error_(ffi.Pointer> ioValue, + NSString inKey, ffi.Pointer> outError) { + return _lib._objc_msgSend_195(_id, _lib._sel_validateValue_forKey_error_1, + ioValue, inKey._id, outError); + } + + NSMutableArray mutableArrayValueForKey_(NSString key) { + final _ret = _lib._objc_msgSend_435( + _id, _lib._sel_mutableArrayValueForKey_1, key._id); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } + + NSMutableOrderedSet mutableOrderedSetValueForKey_(NSString key) { + final _ret = _lib._objc_msgSend_453( + _id, _lib._sel_mutableOrderedSetValueForKey_1, key._id); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + } + + NSMutableSet mutableSetValueForKey_(NSString key) { + final _ret = + _lib._objc_msgSend_454(_id, _lib._sel_mutableSetValueForKey_1, key._id); + return NSMutableSet._(_ret, _lib, retain: true, release: true); + } + + NSObject? valueForKeyPath_(NSString keyPath) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_valueForKeyPath_1, keyPath._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + void setValue_forKeyPath_(NSObject? value, NSString keyPath) { + _lib._objc_msgSend_126(_id, _lib._sel_setValue_forKeyPath_1, + value?._id ?? ffi.nullptr, keyPath._id); + } + + bool validateValue_forKeyPath_error_( + ffi.Pointer> ioValue, + NSString inKeyPath, + ffi.Pointer> outError) { + return _lib._objc_msgSend_195( + _id, + _lib._sel_validateValue_forKeyPath_error_1, + ioValue, + inKeyPath._id, + outError); + } + + NSMutableArray mutableArrayValueForKeyPath_(NSString keyPath) { + final _ret = _lib._objc_msgSend_435( + _id, _lib._sel_mutableArrayValueForKeyPath_1, keyPath._id); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } + + NSMutableOrderedSet mutableOrderedSetValueForKeyPath_(NSString keyPath) { + final _ret = _lib._objc_msgSend_453( + _id, _lib._sel_mutableOrderedSetValueForKeyPath_1, keyPath._id); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + } + + NSMutableSet mutableSetValueForKeyPath_(NSString keyPath) { + final _ret = _lib._objc_msgSend_454( + _id, _lib._sel_mutableSetValueForKeyPath_1, keyPath._id); + return NSMutableSet._(_ret, _lib, retain: true, release: true); + } + + NSObject? valueForUndefinedKey_(NSString key) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_valueForUndefinedKey_1, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + void setValue_forUndefinedKey_(NSObject? value, NSString key) { + _lib._objc_msgSend_126(_id, _lib._sel_setValue_forUndefinedKey_1, + value?._id ?? ffi.nullptr, key._id); + } + + void setNilValueForKey_(NSString key) { + _lib._objc_msgSend_199(_id, _lib._sel_setNilValueForKey_1, key._id); + } + + NSDictionary dictionaryWithValuesForKeys_(NSArray keys) { + final _ret = _lib._objc_msgSend_455( + _id, _lib._sel_dictionaryWithValuesForKeys_1, keys._id); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + void setValuesForKeysWithDictionary_(NSDictionary keyedValues) { + _lib._objc_msgSend_456( + _id, _lib._sel_setValuesForKeysWithDictionary_1, keyedValues._id); + } + + static bool useStoredAccessor(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSObject1, _lib._sel_useStoredAccessor1); + } + + NSObject? storedValueForKey_(NSString key) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_storedValueForKey_1, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + void takeStoredValue_forKey_(NSObject? value, NSString key) { + _lib._objc_msgSend_126(_id, _lib._sel_takeStoredValue_forKey_1, + value?._id ?? ffi.nullptr, key._id); + } + + void takeValue_forKey_(NSObject? value, NSString key) { + _lib._objc_msgSend_126( + _id, _lib._sel_takeValue_forKey_1, value?._id ?? ffi.nullptr, key._id); + } + + void takeValue_forKeyPath_(NSObject? value, NSString keyPath) { + _lib._objc_msgSend_126(_id, _lib._sel_takeValue_forKeyPath_1, + value?._id ?? ffi.nullptr, keyPath._id); + } + + NSObject? handleQueryWithUnboundKey_(NSString key) { + final _ret = _lib._objc_msgSend_38( + _id, _lib._sel_handleQueryWithUnboundKey_1, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + void handleTakeValue_forUnboundKey_(NSObject? value, NSString key) { + _lib._objc_msgSend_126(_id, _lib._sel_handleTakeValue_forUnboundKey_1, + value?._id ?? ffi.nullptr, key._id); + } + + void unableToSetNilForKey_(NSString key) { + _lib._objc_msgSend_199(_id, _lib._sel_unableToSetNilForKey_1, key._id); + } + + NSDictionary valuesForKeys_(NSArray keys) { + final _ret = + _lib._objc_msgSend_455(_id, _lib._sel_valuesForKeys_1, keys._id); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + void takeValuesFromDictionary_(NSDictionary properties) { + _lib._objc_msgSend_456( + _id, _lib._sel_takeValuesFromDictionary_1, properties._id); + } + + void observeValueForKeyPath_ofObject_change_context_(NSString? keyPath, + NSObject? object, NSDictionary? change, ffi.Pointer context) { + _lib._objc_msgSend_457( + _id, + _lib._sel_observeValueForKeyPath_ofObject_change_context_1, + keyPath?._id ?? ffi.nullptr, + object?._id ?? ffi.nullptr, + change?._id ?? ffi.nullptr, + context); + } + + void addObserver_forKeyPath_options_context_(NSObject observer, + NSString keyPath, int options, ffi.Pointer context) { + _lib._objc_msgSend_130( + _id, + _lib._sel_addObserver_forKeyPath_options_context_1, + observer._id, + keyPath._id, + options, + context); + } + + void removeObserver_forKeyPath_context_( + NSObject observer, NSString keyPath, ffi.Pointer context) { + _lib._objc_msgSend_131(_id, _lib._sel_removeObserver_forKeyPath_context_1, + observer._id, keyPath._id, context); + } + + void removeObserver_forKeyPath_(NSObject observer, NSString keyPath) { + _lib._objc_msgSend_132( + _id, _lib._sel_removeObserver_forKeyPath_1, observer._id, keyPath._id); + } + + void willChangeValueForKey_(NSString key) { + _lib._objc_msgSend_199(_id, _lib._sel_willChangeValueForKey_1, key._id); + } + + void didChangeValueForKey_(NSString key) { + _lib._objc_msgSend_199(_id, _lib._sel_didChangeValueForKey_1, key._id); + } + + void willChange_valuesAtIndexes_forKey_( + int changeKind, NSIndexSet indexes, NSString key) { + _lib._objc_msgSend_458(_id, _lib._sel_willChange_valuesAtIndexes_forKey_1, + changeKind, indexes._id, key._id); + } + + void didChange_valuesAtIndexes_forKey_( + int changeKind, NSIndexSet indexes, NSString key) { + _lib._objc_msgSend_458(_id, _lib._sel_didChange_valuesAtIndexes_forKey_1, + changeKind, indexes._id, key._id); + } + + void willChangeValueForKey_withSetMutation_usingObjects_( + NSString key, int mutationKind, NSSet objects) { + _lib._objc_msgSend_459( + _id, + _lib._sel_willChangeValueForKey_withSetMutation_usingObjects_1, + key._id, + mutationKind, + objects._id); + } + + void didChangeValueForKey_withSetMutation_usingObjects_( + NSString key, int mutationKind, NSSet objects) { + _lib._objc_msgSend_459( + _id, + _lib._sel_didChangeValueForKey_withSetMutation_usingObjects_1, + key._id, + mutationKind, + objects._id); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSObject1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSObject1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); + } + + ffi.Pointer get observationInfo { + return _lib._objc_msgSend_20(_id, _lib._sel_observationInfo1); + } + + set observationInfo(ffi.Pointer value) { + return _lib._objc_msgSend_460(_id, _lib._sel_setObservationInfo_1, value); + } + + NSObject? get classForKeyedArchiver { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_classForKeyedArchiver1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject? replacementObjectForKeyedArchiver_(NSKeyedArchiver archiver) { + final _ret = _lib._objc_msgSend_476( + _id, _lib._sel_replacementObjectForKeyedArchiver_1, archiver._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77( + _lib._class_NSObject1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSObject1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + void performSelectorOnMainThread_withObject_waitUntilDone_modes_( + ffi.Pointer aSelector, + NSObject? arg, + bool wait, + NSArray? array) { + _lib._objc_msgSend_477( + _id, _lib._sel_performSelectorOnMainThread_withObject_waitUntilDone_modes_1, aSelector, - arg._id, + arg?._id ?? ffi.nullptr, wait, array?._id ?? ffi.nullptr); } void performSelectorOnMainThread_withObject_waitUntilDone_( - ffi.Pointer aSelector, NSObject arg, bool wait) { - return _lib._objc_msgSend_456( + ffi.Pointer aSelector, NSObject? arg, bool wait) { + _lib._objc_msgSend_478( _id, _lib._sel_performSelectorOnMainThread_withObject_waitUntilDone_1, aSelector, - arg._id, + arg?._id ?? ffi.nullptr, wait); } void performSelector_onThread_withObject_waitUntilDone_modes_( ffi.Pointer aSelector, - NSThread? thr, - NSObject arg, + NSThread thr, + NSObject? arg, bool wait, NSArray? array) { - return _lib._objc_msgSend_473( + _lib._objc_msgSend_496( _id, _lib._sel_performSelector_onThread_withObject_waitUntilDone_modes_1, aSelector, - thr?._id ?? ffi.nullptr, - arg._id, + thr._id, + arg?._id ?? ffi.nullptr, wait, array?._id ?? ffi.nullptr); } void performSelector_onThread_withObject_waitUntilDone_( - ffi.Pointer aSelector, NSThread? thr, NSObject arg, bool wait) { - return _lib._objc_msgSend_474( + ffi.Pointer aSelector, NSThread thr, NSObject? arg, bool wait) { + _lib._objc_msgSend_497( _id, _lib._sel_performSelector_onThread_withObject_waitUntilDone_1, aSelector, - thr?._id ?? ffi.nullptr, - arg._id, + thr._id, + arg?._id ?? ffi.nullptr, wait); } void performSelectorInBackground_withObject_( - ffi.Pointer aSelector, NSObject arg) { - return _lib._objc_msgSend_76(_id, - _lib._sel_performSelectorInBackground_withObject_1, aSelector, arg._id); + ffi.Pointer aSelector, NSObject? arg) { + _lib._objc_msgSend_81( + _id, + _lib._sel_performSelectorInBackground_withObject_1, + aSelector, + arg?._id ?? ffi.nullptr); } } @@ -26229,6 +28540,7 @@ final class ObjCSel extends ffi.Opaque {} final class ObjCObject extends ffi.Opaque {} typedef instancetype = ffi.Pointer; +typedef Dartinstancetype = NSObject; final class _NSZone extends ffi.Opaque {} @@ -26280,73 +28592,80 @@ class NSInvocation extends NSObject { } static NSInvocation invocationWithMethodSignature_( - PedometerBindings _lib, NSMethodSignature? sig) { - final _ret = _lib._objc_msgSend_346(_lib._class_NSInvocation1, - _lib._sel_invocationWithMethodSignature_1, sig?._id ?? ffi.nullptr); + PedometerBindings _lib, NSMethodSignature sig) { + final _ret = _lib._objc_msgSend_365(_lib._class_NSInvocation1, + _lib._sel_invocationWithMethodSignature_1, sig._id); return NSInvocation._(_ret, _lib, retain: true, release: true); } - NSMethodSignature? get methodSignature { - final _ret = _lib._objc_msgSend_347(_id, _lib._sel_methodSignature1); - return _ret.address == 0 - ? null - : NSMethodSignature._(_ret, _lib, retain: true, release: true); + NSMethodSignature get methodSignature { + final _ret = _lib._objc_msgSend_366(_id, _lib._sel_methodSignature1); + return NSMethodSignature._(_ret, _lib, retain: true, release: true); } void retainArguments() { - return _lib._objc_msgSend_1(_id, _lib._sel_retainArguments1); + _lib._objc_msgSend_1(_id, _lib._sel_retainArguments1); } bool get argumentsRetained { return _lib._objc_msgSend_12(_id, _lib._sel_argumentsRetained1); } - NSObject get target { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_target1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get target { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_target1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - set target(NSObject value) { - _lib._objc_msgSend_348(_id, _lib._sel_setTarget_1, value._id); + set target(NSObject? value) { + return _lib._objc_msgSend_367( + _id, _lib._sel_setTarget_1, value?._id ?? ffi.nullptr); } ffi.Pointer get selector { - return _lib._objc_msgSend_349(_id, _lib._sel_selector1); + return _lib._objc_msgSend_368(_id, _lib._sel_selector1); } set selector(ffi.Pointer value) { - _lib._objc_msgSend_350(_id, _lib._sel_setSelector_1, value); + return _lib._objc_msgSend_369(_id, _lib._sel_setSelector_1, value); } void getReturnValue_(ffi.Pointer retLoc) { - return _lib._objc_msgSend_47(_id, _lib._sel_getReturnValue_1, retLoc); + _lib._objc_msgSend_52(_id, _lib._sel_getReturnValue_1, retLoc); } void setReturnValue_(ffi.Pointer retLoc) { - return _lib._objc_msgSend_47(_id, _lib._sel_setReturnValue_1, retLoc); + _lib._objc_msgSend_52(_id, _lib._sel_setReturnValue_1, retLoc); } void getArgument_atIndex_(ffi.Pointer argumentLocation, int idx) { - return _lib._objc_msgSend_351( + _lib._objc_msgSend_370( _id, _lib._sel_getArgument_atIndex_1, argumentLocation, idx); } void setArgument_atIndex_(ffi.Pointer argumentLocation, int idx) { - return _lib._objc_msgSend_351( + _lib._objc_msgSend_370( _id, _lib._sel_setArgument_atIndex_1, argumentLocation, idx); } void invoke() { - return _lib._objc_msgSend_1(_id, _lib._sel_invoke1); + _lib._objc_msgSend_1(_id, _lib._sel_invoke1); } void invokeWithTarget_(NSObject target) { - return _lib._objc_msgSend_15(_id, _lib._sel_invokeWithTarget_1, target._id); + _lib._objc_msgSend_15(_id, _lib._sel_invokeWithTarget_1, target._id); } void invokeUsingIMP_( ffi.Pointer> imp) { - return _lib._objc_msgSend_352(_id, _lib._sel_invokeUsingIMP_1, imp); + _lib._objc_msgSend_371(_id, _lib._sel_invokeUsingIMP_1, imp); + } + + @override + NSInvocation init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSInvocation._(_ret, _lib, retain: true, release: true); } static NSInvocation new1(PedometerBindings _lib) { @@ -26355,6 +28674,13 @@ class NSInvocation extends NSObject { return NSInvocation._(_ret, _lib, retain: false, release: true); } + static NSInvocation allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSInvocation1, _lib._sel_allocWithZone_1, zone); + return NSInvocation._(_ret, _lib, retain: false, release: true); + } + static NSInvocation alloc(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSInvocation1, _lib._sel_alloc1); @@ -26365,18 +28691,18 @@ class NSInvocation extends NSObject { PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSInvocation1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSInvocation1, + _lib._objc_msgSend_15(_lib._class_NSInvocation1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -26391,33 +28717,20 @@ class NSInvocation extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSInvocation1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSInvocation1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSInvocation1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSInvocation1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSInvocation1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( + final _ret = _lib._objc_msgSend_77( _lib._class_NSInvocation1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -26453,11 +28766,13 @@ class NSMethodSignature extends NSObject { obj._lib._class_NSMethodSignature1); } - static NSMethodSignature signatureWithObjCTypes_( + static NSMethodSignature? signatureWithObjCTypes_( PedometerBindings _lib, ffi.Pointer types) { final _ret = _lib._objc_msgSend_9(_lib._class_NSMethodSignature1, _lib._sel_signatureWithObjCTypes_1, types); - return NSMethodSignature._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSMethodSignature._(_ret, _lib, retain: true, release: true); } int get numberOfArguments { @@ -26484,12 +28799,25 @@ class NSMethodSignature extends NSObject { return _lib._objc_msgSend_10(_id, _lib._sel_methodReturnLength1); } + @override + NSMethodSignature init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMethodSignature._(_ret, _lib, retain: true, release: true); + } + static NSMethodSignature new1(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSMethodSignature1, _lib._sel_new1); return NSMethodSignature._(_ret, _lib, retain: false, release: true); } + static NSMethodSignature allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSMethodSignature1, _lib._sel_allocWithZone_1, zone); + return NSMethodSignature._(_ret, _lib, retain: false, release: true); + } + static NSMethodSignature alloc(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSMethodSignature1, _lib._sel_alloc1); @@ -26500,18 +28828,18 @@ class NSMethodSignature extends NSObject { PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSMethodSignature1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMethodSignature1, + _lib._objc_msgSend_15(_lib._class_NSMethodSignature1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -26526,33 +28854,20 @@ class NSMethodSignature extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSMethodSignature1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSMethodSignature1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSMethodSignature1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSMethodSignature1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSMethodSignature1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71(_lib._class_NSMethodSignature1, + final _ret = _lib._objc_msgSend_77(_lib._class_NSMethodSignature1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -26592,13 +28907,15 @@ class NSSet extends NSObject { return _lib._objc_msgSend_10(_id, _lib._sel_count1); } - NSObject member_(NSObject object) { + NSObject? member_(NSObject object) { final _ret = _lib._objc_msgSend_16(_id, _lib._sel_member_1, object._id); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } NSEnumerator objectEnumerator() { - final _ret = _lib._objc_msgSend_64(_id, _lib._sel_objectEnumerator1); + final _ret = _lib._objc_msgSend_69(_id, _lib._sel_objectEnumerator1); return NSEnumerator._(_ret, _lib, retain: true, release: true); } @@ -26610,111 +28927,110 @@ class NSSet extends NSObject { NSSet initWithObjects_count_( ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_53( + final _ret = _lib._objc_msgSend_58( _id, _lib._sel_initWithObjects_count_1, objects, cnt); return NSSet._(_ret, _lib, retain: true, release: true); } - NSSet initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - NSArray? get allObjects { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_allObjects1); + NSSet? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSSet._(_ret, _lib, retain: true, release: true); } - NSObject anyObject() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_anyObject1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSArray get allObjects { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_allObjects1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSObject? anyObject() { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_anyObject1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } bool containsObject_(NSObject anObject) { return _lib._objc_msgSend_0(_id, _lib._sel_containsObject_1, anObject._id); } - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get description { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_description1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_57( - _id, _lib._sel_descriptionWithLocale_1, locale._id); + NSString descriptionWithLocale_(NSObject? locale) { + final _ret = _lib._objc_msgSend_62( + _id, _lib._sel_descriptionWithLocale_1, locale?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } - bool intersectsSet_(NSSet? otherSet) { - return _lib._objc_msgSend_335( - _id, _lib._sel_intersectsSet_1, otherSet?._id ?? ffi.nullptr); + bool intersectsSet_(NSSet otherSet) { + return _lib._objc_msgSend_354(_id, _lib._sel_intersectsSet_1, otherSet._id); } - bool isEqualToSet_(NSSet? otherSet) { - return _lib._objc_msgSend_335( - _id, _lib._sel_isEqualToSet_1, otherSet?._id ?? ffi.nullptr); + bool isEqualToSet_(NSSet otherSet) { + return _lib._objc_msgSend_354(_id, _lib._sel_isEqualToSet_1, otherSet._id); } - bool isSubsetOfSet_(NSSet? otherSet) { - return _lib._objc_msgSend_335( - _id, _lib._sel_isSubsetOfSet_1, otherSet?._id ?? ffi.nullptr); + bool isSubsetOfSet_(NSSet otherSet) { + return _lib._objc_msgSend_354(_id, _lib._sel_isSubsetOfSet_1, otherSet._id); } void makeObjectsPerformSelector_(ffi.Pointer aSelector) { - return _lib._objc_msgSend_7( + _lib._objc_msgSend_7( _id, _lib._sel_makeObjectsPerformSelector_1, aSelector); } void makeObjectsPerformSelector_withObject_( - ffi.Pointer aSelector, NSObject argument) { - return _lib._objc_msgSend_76( + ffi.Pointer aSelector, NSObject? argument) { + _lib._objc_msgSend_81( _id, _lib._sel_makeObjectsPerformSelector_withObject_1, aSelector, - argument._id); + argument?._id ?? ffi.nullptr); } NSSet setByAddingObject_(NSObject anObject) { - final _ret = _lib._objc_msgSend_336( + final _ret = _lib._objc_msgSend_355( _id, _lib._sel_setByAddingObject_1, anObject._id); return NSSet._(_ret, _lib, retain: true, release: true); } - NSSet setByAddingObjectsFromSet_(NSSet? other) { - final _ret = _lib._objc_msgSend_337( - _id, _lib._sel_setByAddingObjectsFromSet_1, other?._id ?? ffi.nullptr); + NSSet setByAddingObjectsFromSet_(NSSet other) { + final _ret = _lib._objc_msgSend_356( + _id, _lib._sel_setByAddingObjectsFromSet_1, other._id); return NSSet._(_ret, _lib, retain: true, release: true); } - NSSet setByAddingObjectsFromArray_(NSArray? other) { - final _ret = _lib._objc_msgSend_338(_id, - _lib._sel_setByAddingObjectsFromArray_1, other?._id ?? ffi.nullptr); + NSSet setByAddingObjectsFromArray_(NSArray other) { + final _ret = _lib._objc_msgSend_357( + _id, _lib._sel_setByAddingObjectsFromArray_1, other._id); return NSSet._(_ret, _lib, retain: true, release: true); } - void enumerateObjectsUsingBlock_(ObjCBlock16 block) { - return _lib._objc_msgSend_339( + void enumerateObjectsUsingBlock_(ObjCBlock_ffiVoid_ObjCObject_bool block) { + _lib._objc_msgSend_358( _id, _lib._sel_enumerateObjectsUsingBlock_1, block._id); } - void enumerateObjectsWithOptions_usingBlock_(int opts, ObjCBlock16 block) { - return _lib._objc_msgSend_340(_id, + void enumerateObjectsWithOptions_usingBlock_( + int opts, ObjCBlock_ffiVoid_ObjCObject_bool block) { + _lib._objc_msgSend_359(_id, _lib._sel_enumerateObjectsWithOptions_usingBlock_1, opts, block._id); } - NSSet objectsPassingTest_(ObjCBlock17 predicate) { - final _ret = _lib._objc_msgSend_341( + NSSet objectsPassingTest_(ObjCBlock_bool_ObjCObject_bool predicate) { + final _ret = _lib._objc_msgSend_360( _id, _lib._sel_objectsPassingTest_1, predicate._id); return NSSet._(_ret, _lib, retain: true, release: true); } - NSSet objectsWithOptions_passingTest_(int opts, ObjCBlock17 predicate) { - final _ret = _lib._objc_msgSend_342( + NSSet objectsWithOptions_passingTest_( + int opts, ObjCBlock_bool_ObjCObject_bool predicate) { + final _ret = _lib._objc_msgSend_361( _id, _lib._sel_objectsWithOptions_passingTest_1, opts, predicate._id); return NSSet._(_ret, _lib, retain: true, release: true); } @@ -26725,113 +29041,104 @@ class NSSet extends NSObject { } static NSSet setWithObject_(PedometerBindings _lib, NSObject object) { - final _ret = _lib._objc_msgSend_16( + final _ret = _lib._objc_msgSend_115( _lib._class_NSSet1, _lib._sel_setWithObject_1, object._id); return NSSet._(_ret, _lib, retain: true, release: true); } static NSSet setWithObjects_count_(PedometerBindings _lib, ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_53( + final _ret = _lib._objc_msgSend_58( _lib._class_NSSet1, _lib._sel_setWithObjects_count_1, objects, cnt); return NSSet._(_ret, _lib, retain: true, release: true); } static NSSet setWithObjects_(PedometerBindings _lib, NSObject firstObj) { - final _ret = _lib._objc_msgSend_16( + final _ret = _lib._objc_msgSend_115( _lib._class_NSSet1, _lib._sel_setWithObjects_1, firstObj._id); return NSSet._(_ret, _lib, retain: true, release: true); } - static NSSet setWithSet_(PedometerBindings _lib, NSSet? set) { - final _ret = _lib._objc_msgSend_343( - _lib._class_NSSet1, _lib._sel_setWithSet_1, set?._id ?? ffi.nullptr); + static NSSet setWithSet_(PedometerBindings _lib, NSSet set) { + final _ret = _lib._objc_msgSend_362( + _lib._class_NSSet1, _lib._sel_setWithSet_1, set._id); return NSSet._(_ret, _lib, retain: true, release: true); } - static NSSet setWithArray_(PedometerBindings _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_59(_lib._class_NSSet1, - _lib._sel_setWithArray_1, array?._id ?? ffi.nullptr); + static NSSet setWithArray_(PedometerBindings _lib, NSArray array) { + final _ret = _lib._objc_msgSend_116( + _lib._class_NSSet1, _lib._sel_setWithArray_1, array._id); return NSSet._(_ret, _lib, retain: true, release: true); } NSSet initWithObjects_(NSObject firstObj) { final _ret = - _lib._objc_msgSend_16(_id, _lib._sel_initWithObjects_1, firstObj._id); + _lib._objc_msgSend_115(_id, _lib._sel_initWithObjects_1, firstObj._id); return NSSet._(_ret, _lib, retain: true, release: true); } - NSSet initWithSet_(NSSet? set) { - final _ret = _lib._objc_msgSend_343( - _id, _lib._sel_initWithSet_1, set?._id ?? ffi.nullptr); + NSSet initWithSet_(NSSet set) { + final _ret = _lib._objc_msgSend_362(_id, _lib._sel_initWithSet_1, set._id); return NSSet._(_ret, _lib, retain: true, release: true); } - NSSet initWithSet_copyItems_(NSSet? set, bool flag) { - final _ret = _lib._objc_msgSend_344( - _id, _lib._sel_initWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); + NSSet initWithSet_copyItems_(NSSet set, bool flag) { + final _ret = _lib._objc_msgSend_363( + _id, _lib._sel_initWithSet_copyItems_1, set._id, flag); return NSSet._(_ret, _lib, retain: false, release: true); } - NSSet initWithArray_(NSArray? array) { - final _ret = _lib._objc_msgSend_59( - _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); + NSSet initWithArray_(NSArray array) { + final _ret = + _lib._objc_msgSend_116(_id, _lib._sel_initWithArray_1, array._id); return NSSet._(_ret, _lib, retain: true, release: true); } - @override - NSObject valueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_valueForKey_1, key?._id ?? ffi.nullptr); + NSObject valueForKey_(NSString key) { + final _ret = _lib._objc_msgSend_31(_id, _lib._sel_valueForKey_1, key._id); return NSObject._(_ret, _lib, retain: true, release: true); } @override - void setValue_forKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_118( - _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); + void setValue_forKey_(NSObject? value, NSString key) { + _lib._objc_msgSend_126( + _id, _lib._sel_setValue_forKey_1, value?._id ?? ffi.nullptr, key._id); } @override - void addObserver_forKeyPath_options_context_(NSObject? observer, - NSString? keyPath, int options, ffi.Pointer context) { - return _lib._objc_msgSend_122( + void addObserver_forKeyPath_options_context_(NSObject observer, + NSString keyPath, int options, ffi.Pointer context) { + _lib._objc_msgSend_130( _id, _lib._sel_addObserver_forKeyPath_options_context_1, - observer?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, + observer._id, + keyPath._id, options, context); } @override void removeObserver_forKeyPath_context_( - NSObject? observer, NSString? keyPath, ffi.Pointer context) { - return _lib._objc_msgSend_123( - _id, - _lib._sel_removeObserver_forKeyPath_context_1, - observer?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, - context); + NSObject observer, NSString keyPath, ffi.Pointer context) { + _lib._objc_msgSend_131(_id, _lib._sel_removeObserver_forKeyPath_context_1, + observer._id, keyPath._id, context); } @override - void removeObserver_forKeyPath_(NSObject? observer, NSString? keyPath) { - return _lib._objc_msgSend_124(_id, _lib._sel_removeObserver_forKeyPath_1, - observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); + void removeObserver_forKeyPath_(NSObject observer, NSString keyPath) { + _lib._objc_msgSend_132( + _id, _lib._sel_removeObserver_forKeyPath_1, observer._id, keyPath._id); } - NSArray sortedArrayUsingDescriptors_(NSArray? sortDescriptors) { - final _ret = _lib._objc_msgSend_55( - _id, - _lib._sel_sortedArrayUsingDescriptors_1, - sortDescriptors?._id ?? ffi.nullptr); + NSArray sortedArrayUsingDescriptors_(NSArray sortDescriptors) { + final _ret = _lib._objc_msgSend_60( + _id, _lib._sel_sortedArrayUsingDescriptors_1, sortDescriptors._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSSet filteredSetUsingPredicate_(NSPredicate? predicate) { - final _ret = _lib._objc_msgSend_345(_id, - _lib._sel_filteredSetUsingPredicate_1, predicate?._id ?? ffi.nullptr); + NSSet filteredSetUsingPredicate_(NSPredicate predicate) { + final _ret = _lib._objc_msgSend_364( + _id, _lib._sel_filteredSetUsingPredicate_1, predicate._id); return NSSet._(_ret, _lib, retain: true, release: true); } @@ -26840,7 +29147,14 @@ class NSSet extends NSObject { return NSSet._(_ret, _lib, retain: false, release: true); } - static NSSet alloc(PedometerBindings _lib) { + static NSSet allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSSet1, _lib._sel_allocWithZone_1, zone); + return NSSet._(_ret, _lib, retain: false, release: true); + } + + static NSSet alloc(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSSet1, _lib._sel_alloc1); return NSSet._(_ret, _lib, retain: false, release: true); } @@ -26849,18 +29163,18 @@ class NSSet extends NSObject { PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSSet1, + _lib._objc_msgSend_15(_lib._class_NSSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -26875,33 +29189,20 @@ class NSSet extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSSet1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSSet1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSSet1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSSet1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSSet1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( + final _ret = _lib._objc_msgSend_77( _lib._class_NSSet1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -26936,24 +29237,37 @@ class NSEnumerator extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSEnumerator1); } - NSObject nextObject() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_nextObject1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject? get allObjects { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_allObjects1); + NSObject? nextObject() { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_nextObject1); return _ret.address == 0 ? null : NSObject._(_ret, _lib, retain: true, release: true); } + NSObject get allObjects { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_allObjects1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + @override + NSEnumerator init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSEnumerator._(_ret, _lib, retain: true, release: true); + } + static NSEnumerator new1(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSEnumerator1, _lib._sel_new1); return NSEnumerator._(_ret, _lib, retain: false, release: true); } + static NSEnumerator allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSEnumerator1, _lib._sel_allocWithZone_1, zone); + return NSEnumerator._(_ret, _lib, retain: false, release: true); + } + static NSEnumerator alloc(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSEnumerator1, _lib._sel_alloc1); @@ -26964,18 +29278,18 @@ class NSEnumerator extends NSObject { PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSEnumerator1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSEnumerator1, + _lib._objc_msgSend_15(_lib._class_NSEnumerator1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -26990,33 +29304,20 @@ class NSEnumerator extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSEnumerator1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSEnumerator1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSEnumerator1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSEnumerator1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSEnumerator1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( + final _ret = _lib._objc_msgSend_77( _lib._class_NSEnumerator1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -27062,7 +29363,7 @@ class NSString extends NSObject { String toString() { final data = dataUsingEncoding_(0x94000100 /* NSUTF16LittleEndianStringEncoding */); - return data.bytes.cast().toDartString(length: length); + return data!.bytes.cast().toDartString(length: length); } int get length { @@ -27070,7 +29371,7 @@ class NSString extends NSObject { } int characterAtIndex_(int index) { - return _lib._objc_msgSend_17(_id, _lib._sel_characterAtIndex_1, index); + return _lib._objc_msgSend_18(_id, _lib._sel_characterAtIndex_1, index); } @override @@ -27079,281 +29380,266 @@ class NSString extends NSObject { return NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } NSString substringFromIndex_(int from) { final _ret = - _lib._objc_msgSend_253(_id, _lib._sel_substringFromIndex_1, from); + _lib._objc_msgSend_264(_id, _lib._sel_substringFromIndex_1, from); return NSString._(_ret, _lib, retain: true, release: true); } NSString substringToIndex_(int to) { - final _ret = _lib._objc_msgSend_253(_id, _lib._sel_substringToIndex_1, to); + final _ret = _lib._objc_msgSend_264(_id, _lib._sel_substringToIndex_1, to); return NSString._(_ret, _lib, retain: true, release: true); } NSString substringWithRange_(_NSRange range) { final _ret = - _lib._objc_msgSend_254(_id, _lib._sel_substringWithRange_1, range); + _lib._objc_msgSend_265(_id, _lib._sel_substringWithRange_1, range); return NSString._(_ret, _lib, retain: true, release: true); } void getCharacters_range_( ffi.Pointer buffer, _NSRange range) { - return _lib._objc_msgSend_255( - _id, _lib._sel_getCharacters_range_1, buffer, range); + _lib._objc_msgSend_266(_id, _lib._sel_getCharacters_range_1, buffer, range); } - int compare_(NSString? string) { - return _lib._objc_msgSend_256( - _id, _lib._sel_compare_1, string?._id ?? ffi.nullptr); + int compare_(NSString string) { + return _lib._objc_msgSend_267(_id, _lib._sel_compare_1, string._id); } - int compare_options_(NSString? string, int mask) { - return _lib._objc_msgSend_257( - _id, _lib._sel_compare_options_1, string?._id ?? ffi.nullptr, mask); + int compare_options_(NSString string, int mask) { + return _lib._objc_msgSend_268( + _id, _lib._sel_compare_options_1, string._id, mask); } int compare_options_range_( - NSString? string, int mask, _NSRange rangeOfReceiverToCompare) { - return _lib._objc_msgSend_258(_id, _lib._sel_compare_options_range_1, - string?._id ?? ffi.nullptr, mask, rangeOfReceiverToCompare); + NSString string, int mask, _NSRange rangeOfReceiverToCompare) { + return _lib._objc_msgSend_269(_id, _lib._sel_compare_options_range_1, + string._id, mask, rangeOfReceiverToCompare); } - int compare_options_range_locale_(NSString? string, int mask, - _NSRange rangeOfReceiverToCompare, NSObject locale) { - return _lib._objc_msgSend_259(_id, _lib._sel_compare_options_range_locale_1, - string?._id ?? ffi.nullptr, mask, rangeOfReceiverToCompare, locale._id); + int compare_options_range_locale_(NSString string, int mask, + _NSRange rangeOfReceiverToCompare, NSObject? locale) { + return _lib._objc_msgSend_270(_id, _lib._sel_compare_options_range_locale_1, + string._id, mask, rangeOfReceiverToCompare, locale?._id ?? ffi.nullptr); } - int caseInsensitiveCompare_(NSString? string) { - return _lib._objc_msgSend_256( - _id, _lib._sel_caseInsensitiveCompare_1, string?._id ?? ffi.nullptr); + int caseInsensitiveCompare_(NSString string) { + return _lib._objc_msgSend_267( + _id, _lib._sel_caseInsensitiveCompare_1, string._id); } - int localizedCompare_(NSString? string) { - return _lib._objc_msgSend_256( - _id, _lib._sel_localizedCompare_1, string?._id ?? ffi.nullptr); + int localizedCompare_(NSString string) { + return _lib._objc_msgSend_267( + _id, _lib._sel_localizedCompare_1, string._id); } - int localizedCaseInsensitiveCompare_(NSString? string) { - return _lib._objc_msgSend_256( - _id, - _lib._sel_localizedCaseInsensitiveCompare_1, - string?._id ?? ffi.nullptr); + int localizedCaseInsensitiveCompare_(NSString string) { + return _lib._objc_msgSend_267( + _id, _lib._sel_localizedCaseInsensitiveCompare_1, string._id); } - int localizedStandardCompare_(NSString? string) { - return _lib._objc_msgSend_256( - _id, _lib._sel_localizedStandardCompare_1, string?._id ?? ffi.nullptr); + int localizedStandardCompare_(NSString string) { + return _lib._objc_msgSend_267( + _id, _lib._sel_localizedStandardCompare_1, string._id); } - bool isEqualToString_(NSString? aString) { - return _lib._objc_msgSend_51( - _id, _lib._sel_isEqualToString_1, aString?._id ?? ffi.nullptr); + bool isEqualToString_(NSString aString) { + return _lib._objc_msgSend_56(_id, _lib._sel_isEqualToString_1, aString._id); } - bool hasPrefix_(NSString? str) { - return _lib._objc_msgSend_51( - _id, _lib._sel_hasPrefix_1, str?._id ?? ffi.nullptr); + bool hasPrefix_(NSString str) { + return _lib._objc_msgSend_56(_id, _lib._sel_hasPrefix_1, str._id); } - bool hasSuffix_(NSString? str) { - return _lib._objc_msgSend_51( - _id, _lib._sel_hasSuffix_1, str?._id ?? ffi.nullptr); + bool hasSuffix_(NSString str) { + return _lib._objc_msgSend_56(_id, _lib._sel_hasSuffix_1, str._id); } - NSString commonPrefixWithString_options_(NSString? str, int mask) { - final _ret = _lib._objc_msgSend_260( - _id, - _lib._sel_commonPrefixWithString_options_1, - str?._id ?? ffi.nullptr, - mask); + NSString commonPrefixWithString_options_(NSString str, int mask) { + final _ret = _lib._objc_msgSend_271( + _id, _lib._sel_commonPrefixWithString_options_1, str._id, mask); return NSString._(_ret, _lib, retain: true, release: true); } - bool containsString_(NSString? str) { - return _lib._objc_msgSend_51( - _id, _lib._sel_containsString_1, str?._id ?? ffi.nullptr); + bool containsString_(NSString str) { + return _lib._objc_msgSend_56(_id, _lib._sel_containsString_1, str._id); } - bool localizedCaseInsensitiveContainsString_(NSString? str) { - return _lib._objc_msgSend_51( - _id, - _lib._sel_localizedCaseInsensitiveContainsString_1, - str?._id ?? ffi.nullptr); + bool localizedCaseInsensitiveContainsString_(NSString str) { + return _lib._objc_msgSend_56( + _id, _lib._sel_localizedCaseInsensitiveContainsString_1, str._id); } - bool localizedStandardContainsString_(NSString? str) { - return _lib._objc_msgSend_51(_id, - _lib._sel_localizedStandardContainsString_1, str?._id ?? ffi.nullptr); + bool localizedStandardContainsString_(NSString str) { + return _lib._objc_msgSend_56( + _id, _lib._sel_localizedStandardContainsString_1, str._id); } - _NSRange localizedStandardRangeOfString_(NSString? str) { - return _lib._objc_msgSend_261(_id, - _lib._sel_localizedStandardRangeOfString_1, str?._id ?? ffi.nullptr); + void localizedStandardRangeOfString_( + ffi.Pointer<_NSRange> stret, NSString str) { + _lib._objc_msgSend_272( + stret, _id, _lib._sel_localizedStandardRangeOfString_1, str._id); } - _NSRange rangeOfString_(NSString? searchString) { - return _lib._objc_msgSend_261( - _id, _lib._sel_rangeOfString_1, searchString?._id ?? ffi.nullptr); + void rangeOfString_(ffi.Pointer<_NSRange> stret, NSString searchString) { + _lib._objc_msgSend_272( + stret, _id, _lib._sel_rangeOfString_1, searchString._id); } - _NSRange rangeOfString_options_(NSString? searchString, int mask) { - return _lib._objc_msgSend_262(_id, _lib._sel_rangeOfString_options_1, - searchString?._id ?? ffi.nullptr, mask); + void rangeOfString_options_( + ffi.Pointer<_NSRange> stret, NSString searchString, int mask) { + _lib._objc_msgSend_273( + stret, _id, _lib._sel_rangeOfString_options_1, searchString._id, mask); } - _NSRange rangeOfString_options_range_( - NSString? searchString, int mask, _NSRange rangeOfReceiverToSearch) { - return _lib._objc_msgSend_263(_id, _lib._sel_rangeOfString_options_range_1, - searchString?._id ?? ffi.nullptr, mask, rangeOfReceiverToSearch); + void rangeOfString_options_range_(ffi.Pointer<_NSRange> stret, + NSString searchString, int mask, _NSRange rangeOfReceiverToSearch) { + _lib._objc_msgSend_274(stret, _id, _lib._sel_rangeOfString_options_range_1, + searchString._id, mask, rangeOfReceiverToSearch); } - _NSRange rangeOfString_options_range_locale_(NSString? searchString, int mask, - _NSRange rangeOfReceiverToSearch, NSLocale? locale) { - return _lib._objc_msgSend_278( + void rangeOfString_options_range_locale_( + ffi.Pointer<_NSRange> stret, + NSString searchString, + int mask, + _NSRange rangeOfReceiverToSearch, + NSLocale? locale) { + _lib._objc_msgSend_293( + stret, _id, _lib._sel_rangeOfString_options_range_locale_1, - searchString?._id ?? ffi.nullptr, + searchString._id, mask, rangeOfReceiverToSearch, locale?._id ?? ffi.nullptr); } - _NSRange rangeOfCharacterFromSet_(NSCharacterSet? searchSet) { - return _lib._objc_msgSend_279(_id, _lib._sel_rangeOfCharacterFromSet_1, - searchSet?._id ?? ffi.nullptr); + void rangeOfCharacterFromSet_( + ffi.Pointer<_NSRange> stret, NSCharacterSet searchSet) { + _lib._objc_msgSend_294( + stret, _id, _lib._sel_rangeOfCharacterFromSet_1, searchSet._id); } - _NSRange rangeOfCharacterFromSet_options_( - NSCharacterSet? searchSet, int mask) { - return _lib._objc_msgSend_280( - _id, - _lib._sel_rangeOfCharacterFromSet_options_1, - searchSet?._id ?? ffi.nullptr, - mask); + void rangeOfCharacterFromSet_options_( + ffi.Pointer<_NSRange> stret, NSCharacterSet searchSet, int mask) { + _lib._objc_msgSend_295(stret, _id, + _lib._sel_rangeOfCharacterFromSet_options_1, searchSet._id, mask); } - _NSRange rangeOfCharacterFromSet_options_range_( - NSCharacterSet? searchSet, int mask, _NSRange rangeOfReceiverToSearch) { - return _lib._objc_msgSend_281( + void rangeOfCharacterFromSet_options_range_(ffi.Pointer<_NSRange> stret, + NSCharacterSet searchSet, int mask, _NSRange rangeOfReceiverToSearch) { + _lib._objc_msgSend_296( + stret, _id, _lib._sel_rangeOfCharacterFromSet_options_range_1, - searchSet?._id ?? ffi.nullptr, + searchSet._id, mask, rangeOfReceiverToSearch); } - _NSRange rangeOfComposedCharacterSequenceAtIndex_(int index) { - return _lib._objc_msgSend_282( - _id, _lib._sel_rangeOfComposedCharacterSequenceAtIndex_1, index); + void rangeOfComposedCharacterSequenceAtIndex_( + ffi.Pointer<_NSRange> stret, int index) { + _lib._objc_msgSend_297( + stret, _id, _lib._sel_rangeOfComposedCharacterSequenceAtIndex_1, index); } - _NSRange rangeOfComposedCharacterSequencesForRange_(_NSRange range) { - return _lib._objc_msgSend_283( - _id, _lib._sel_rangeOfComposedCharacterSequencesForRange_1, range); + void rangeOfComposedCharacterSequencesForRange_( + ffi.Pointer<_NSRange> stret, _NSRange range) { + _lib._objc_msgSend_298(stret, _id, + _lib._sel_rangeOfComposedCharacterSequencesForRange_1, range); } - NSString stringByAppendingString_(NSString? aString) { - final _ret = _lib._objc_msgSend_56( - _id, _lib._sel_stringByAppendingString_1, aString?._id ?? ffi.nullptr); + NSString stringByAppendingString_(NSString aString) { + final _ret = _lib._objc_msgSend_61( + _id, _lib._sel_stringByAppendingString_1, aString._id); return NSString._(_ret, _lib, retain: true, release: true); } - NSString stringByAppendingFormat_(NSString? format) { - final _ret = _lib._objc_msgSend_56( - _id, _lib._sel_stringByAppendingFormat_1, format?._id ?? ffi.nullptr); + NSString stringByAppendingFormat_(NSString format) { + final _ret = _lib._objc_msgSend_61( + _id, _lib._sel_stringByAppendingFormat_1, format._id); return NSString._(_ret, _lib, retain: true, release: true); } double get doubleValue { - return _lib._objc_msgSend_147(_id, _lib._sel_doubleValue1); + return _lib._objc_msgSend_156(_id, _lib._sel_doubleValue1); } double get floatValue { - return _lib._objc_msgSend_179(_id, _lib._sel_floatValue1); + return _lib._objc_msgSend_190(_id, _lib._sel_floatValue1); } int get intValue { - return _lib._objc_msgSend_177(_id, _lib._sel_intValue1); + return _lib._objc_msgSend_188(_id, _lib._sel_intValue1); } int get integerValue { - return _lib._objc_msgSend_70(_id, _lib._sel_integerValue1); + return _lib._objc_msgSend_75(_id, _lib._sel_integerValue1); } int get longLongValue { - return _lib._objc_msgSend_178(_id, _lib._sel_longLongValue1); + return _lib._objc_msgSend_189(_id, _lib._sel_longLongValue1); } bool get boolValue { return _lib._objc_msgSend_12(_id, _lib._sel_boolValue1); } - NSString? get uppercaseString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_uppercaseString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get uppercaseString { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_uppercaseString1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get lowercaseString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_lowercaseString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get lowercaseString { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_lowercaseString1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get capitalizedString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_capitalizedString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get capitalizedString { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_capitalizedString1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get localizedUppercaseString { + NSString get localizedUppercaseString { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_localizedUppercaseString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_21(_id, _lib._sel_localizedUppercaseString1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get localizedLowercaseString { + NSString get localizedLowercaseString { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_localizedLowercaseString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_21(_id, _lib._sel_localizedLowercaseString1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get localizedCapitalizedString { + NSString get localizedCapitalizedString { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_localizedCapitalizedString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_21(_id, _lib._sel_localizedCapitalizedString1); + return NSString._(_ret, _lib, retain: true, release: true); } NSString uppercaseStringWithLocale_(NSLocale? locale) { - final _ret = _lib._objc_msgSend_284( + final _ret = _lib._objc_msgSend_299( _id, _lib._sel_uppercaseStringWithLocale_1, locale?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } NSString lowercaseStringWithLocale_(NSLocale? locale) { - final _ret = _lib._objc_msgSend_284( + final _ret = _lib._objc_msgSend_299( _id, _lib._sel_lowercaseStringWithLocale_1, locale?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } NSString capitalizedStringWithLocale_(NSLocale? locale) { - final _ret = _lib._objc_msgSend_284(_id, + final _ret = _lib._objc_msgSend_299(_id, _lib._sel_capitalizedStringWithLocale_1, locale?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } @@ -27363,7 +29649,7 @@ class NSString extends NSObject { ffi.Pointer lineEndPtr, ffi.Pointer contentsEndPtr, _NSRange range) { - return _lib._objc_msgSend_285( + _lib._objc_msgSend_300( _id, _lib._sel_getLineStart_end_contentsEnd_forRange_1, startPtr, @@ -27372,8 +29658,8 @@ class NSString extends NSObject { range); } - _NSRange lineRangeForRange_(_NSRange range) { - return _lib._objc_msgSend_283(_id, _lib._sel_lineRangeForRange_1, range); + void lineRangeForRange_(ffi.Pointer<_NSRange> stret, _NSRange range) { + _lib._objc_msgSend_298(stret, _id, _lib._sel_lineRangeForRange_1, range); } void getParagraphStart_end_contentsEnd_forRange_( @@ -27381,7 +29667,7 @@ class NSString extends NSObject { ffi.Pointer parEndPtr, ffi.Pointer contentsEndPtr, _NSRange range) { - return _lib._objc_msgSend_285( + _lib._objc_msgSend_300( _id, _lib._sel_getParagraphStart_end_contentsEnd_forRange_1, startPtr, @@ -27390,14 +29676,14 @@ class NSString extends NSObject { range); } - _NSRange paragraphRangeForRange_(_NSRange range) { - return _lib._objc_msgSend_283( - _id, _lib._sel_paragraphRangeForRange_1, range); + void paragraphRangeForRange_(ffi.Pointer<_NSRange> stret, _NSRange range) { + _lib._objc_msgSend_298( + stret, _id, _lib._sel_paragraphRangeForRange_1, range); } - void enumerateSubstringsInRange_options_usingBlock_( - _NSRange range, int opts, ObjCBlock13 block) { - return _lib._objc_msgSend_286( + void enumerateSubstringsInRange_options_usingBlock_(_NSRange range, int opts, + ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool block) { + _lib._objc_msgSend_301( _id, _lib._sel_enumerateSubstringsInRange_options_usingBlock_1, range, @@ -27405,8 +29691,8 @@ class NSString extends NSObject { block._id); } - void enumerateLinesUsingBlock_(ObjCBlock14 block) { - return _lib._objc_msgSend_287( + void enumerateLinesUsingBlock_(ObjCBlock_ffiVoid_NSString_bool block) { + _lib._objc_msgSend_302( _id, _lib._sel_enumerateLinesUsingBlock_1, block._id); } @@ -27422,20 +29708,24 @@ class NSString extends NSObject { return _lib._objc_msgSend_10(_id, _lib._sel_smallestEncoding1); } - NSData dataUsingEncoding_allowLossyConversion_(int encoding, bool lossy) { - final _ret = _lib._objc_msgSend_288(_id, + NSData? dataUsingEncoding_allowLossyConversion_(int encoding, bool lossy) { + final _ret = _lib._objc_msgSend_303(_id, _lib._sel_dataUsingEncoding_allowLossyConversion_1, encoding, lossy); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - NSData dataUsingEncoding_(int encoding) { + NSData? dataUsingEncoding_(int encoding) { final _ret = - _lib._objc_msgSend_289(_id, _lib._sel_dataUsingEncoding_1, encoding); - return NSData._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_304(_id, _lib._sel_dataUsingEncoding_1, encoding); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } bool canBeConvertedToEncoding_(int encoding) { - return _lib._objc_msgSend_83( + return _lib._objc_msgSend_88( _id, _lib._sel_canBeConvertedToEncoding_1, encoding); } @@ -27446,7 +29736,7 @@ class NSString extends NSObject { bool getCString_maxLength_encoding_( ffi.Pointer buffer, int maxBufferCount, int encoding) { - return _lib._objc_msgSend_290( + return _lib._objc_msgSend_305( _id, _lib._sel_getCString_maxLength_encoding_1, buffer, @@ -27462,7 +29752,7 @@ class NSString extends NSObject { int options, _NSRange range, ffi.Pointer<_NSRange> leftover) { - return _lib._objc_msgSend_291( + return _lib._objc_msgSend_306( _id, _lib._sel_getBytes_maxLength_usedLength_encoding_options_range_remainingRange_1, buffer, @@ -27475,24 +29765,24 @@ class NSString extends NSObject { } int maximumLengthOfBytesUsingEncoding_(int enc) { - return _lib._objc_msgSend_80( + return _lib._objc_msgSend_85( _id, _lib._sel_maximumLengthOfBytesUsingEncoding_1, enc); } int lengthOfBytesUsingEncoding_(int enc) { - return _lib._objc_msgSend_80( + return _lib._objc_msgSend_85( _id, _lib._sel_lengthOfBytesUsingEncoding_1, enc); } static ffi.Pointer getAvailableStringEncodings( PedometerBindings _lib) { - return _lib._objc_msgSend_292( + return _lib._objc_msgSend_307( _lib._class_NSString1, _lib._sel_availableStringEncodings1); } static NSString localizedNameOfStringEncoding_( PedometerBindings _lib, int encoding) { - final _ret = _lib._objc_msgSend_253(_lib._class_NSString1, + final _ret = _lib._objc_msgSend_264(_lib._class_NSString1, _lib._sel_localizedNameOfStringEncoding_1, encoding); return NSString._(_ret, _lib, retain: true, release: true); } @@ -27502,71 +29792,61 @@ class NSString extends NSObject { _lib._class_NSString1, _lib._sel_defaultCStringEncoding1); } - NSString? get decomposedStringWithCanonicalMapping { - final _ret = _lib._objc_msgSend_20( + NSString get decomposedStringWithCanonicalMapping { + final _ret = _lib._objc_msgSend_21( _id, _lib._sel_decomposedStringWithCanonicalMapping1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get precomposedStringWithCanonicalMapping { - final _ret = _lib._objc_msgSend_20( + NSString get precomposedStringWithCanonicalMapping { + final _ret = _lib._objc_msgSend_21( _id, _lib._sel_precomposedStringWithCanonicalMapping1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get decomposedStringWithCompatibilityMapping { - final _ret = _lib._objc_msgSend_20( + NSString get decomposedStringWithCompatibilityMapping { + final _ret = _lib._objc_msgSend_21( _id, _lib._sel_decomposedStringWithCompatibilityMapping1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get precomposedStringWithCompatibilityMapping { - final _ret = _lib._objc_msgSend_20( + NSString get precomposedStringWithCompatibilityMapping { + final _ret = _lib._objc_msgSend_21( _id, _lib._sel_precomposedStringWithCompatibilityMapping1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } - NSArray componentsSeparatedByString_(NSString? separator) { - final _ret = _lib._objc_msgSend_115(_id, - _lib._sel_componentsSeparatedByString_1, separator?._id ?? ffi.nullptr); + NSArray componentsSeparatedByString_(NSString separator) { + final _ret = _lib._objc_msgSend_308( + _id, _lib._sel_componentsSeparatedByString_1, separator._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray componentsSeparatedByCharactersInSet_(NSCharacterSet? separator) { - final _ret = _lib._objc_msgSend_293( - _id, - _lib._sel_componentsSeparatedByCharactersInSet_1, - separator?._id ?? ffi.nullptr); + NSArray componentsSeparatedByCharactersInSet_(NSCharacterSet separator) { + final _ret = _lib._objc_msgSend_309( + _id, _lib._sel_componentsSeparatedByCharactersInSet_1, separator._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSString stringByTrimmingCharactersInSet_(NSCharacterSet? set) { - final _ret = _lib._objc_msgSend_294(_id, - _lib._sel_stringByTrimmingCharactersInSet_1, set?._id ?? ffi.nullptr); + NSString stringByTrimmingCharactersInSet_(NSCharacterSet set) { + final _ret = _lib._objc_msgSend_310( + _id, _lib._sel_stringByTrimmingCharactersInSet_1, set._id); return NSString._(_ret, _lib, retain: true, release: true); } NSString stringByPaddingToLength_withString_startingAtIndex_( - int newLength, NSString? padString, int padIndex) { - final _ret = _lib._objc_msgSend_295( + int newLength, NSString padString, int padIndex) { + final _ret = _lib._objc_msgSend_311( _id, _lib._sel_stringByPaddingToLength_withString_startingAtIndex_1, newLength, - padString?._id ?? ffi.nullptr, + padString._id, padIndex); return NSString._(_ret, _lib, retain: true, release: true); } NSString stringByFoldingWithOptions_locale_(int options, NSLocale? locale) { - final _ret = _lib._objc_msgSend_296( + final _ret = _lib._objc_msgSend_312( _id, _lib._sel_stringByFoldingWithOptions_locale_1, options, @@ -27575,77 +29855,77 @@ class NSString extends NSObject { } NSString stringByReplacingOccurrencesOfString_withString_options_range_( - NSString? target, - NSString? replacement, + NSString target, + NSString replacement, int options, _NSRange searchRange) { - final _ret = _lib._objc_msgSend_297( + final _ret = _lib._objc_msgSend_313( _id, _lib._sel_stringByReplacingOccurrencesOfString_withString_options_range_1, - target?._id ?? ffi.nullptr, - replacement?._id ?? ffi.nullptr, + target._id, + replacement._id, options, searchRange); return NSString._(_ret, _lib, retain: true, release: true); } NSString stringByReplacingOccurrencesOfString_withString_( - NSString? target, NSString? replacement) { - final _ret = _lib._objc_msgSend_298( + NSString target, NSString replacement) { + final _ret = _lib._objc_msgSend_314( _id, _lib._sel_stringByReplacingOccurrencesOfString_withString_1, - target?._id ?? ffi.nullptr, - replacement?._id ?? ffi.nullptr); + target._id, + replacement._id); return NSString._(_ret, _lib, retain: true, release: true); } NSString stringByReplacingCharactersInRange_withString_( - _NSRange range, NSString? replacement) { - final _ret = _lib._objc_msgSend_299( + _NSRange range, NSString replacement) { + final _ret = _lib._objc_msgSend_315( _id, _lib._sel_stringByReplacingCharactersInRange_withString_1, range, - replacement?._id ?? ffi.nullptr); + replacement._id); return NSString._(_ret, _lib, retain: true, release: true); } - NSString stringByApplyingTransform_reverse_( + NSString? stringByApplyingTransform_reverse_( NSString transform, bool reverse) { - final _ret = _lib._objc_msgSend_300(_id, + final _ret = _lib._objc_msgSend_316(_id, _lib._sel_stringByApplyingTransform_reverse_1, transform._id, reverse); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - bool writeToURL_atomically_encoding_error_(NSURL? url, bool useAuxiliaryFile, + bool writeToURL_atomically_encoding_error_(NSURL url, bool useAuxiliaryFile, int enc, ffi.Pointer> error) { - return _lib._objc_msgSend_301( + return _lib._objc_msgSend_317( _id, _lib._sel_writeToURL_atomically_encoding_error_1, - url?._id ?? ffi.nullptr, + url._id, useAuxiliaryFile, enc, error); } bool writeToFile_atomically_encoding_error_( - NSString? path, + NSString path, bool useAuxiliaryFile, int enc, ffi.Pointer> error) { - return _lib._objc_msgSend_302( + return _lib._objc_msgSend_318( _id, _lib._sel_writeToFile_atomically_encoding_error_1, - path?._id ?? ffi.nullptr, + path._id, useAuxiliaryFile, enc, error); } - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get description { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_description1); + return NSString._(_ret, _lib, retain: true, release: true); } int get hash { @@ -27654,7 +29934,7 @@ class NSString extends NSObject { NSString initWithCharactersNoCopy_length_freeWhenDone_( ffi.Pointer characters, int length, bool freeBuffer) { - final _ret = _lib._objc_msgSend_303( + final _ret = _lib._objc_msgSend_319( _id, _lib._sel_initWithCharactersNoCopy_length_freeWhenDone_1, characters, @@ -27664,167 +29944,184 @@ class NSString extends NSObject { } NSString initWithCharactersNoCopy_length_deallocator_( - ffi.Pointer chars, int len, ObjCBlock15 deallocator) { - final _ret = _lib._objc_msgSend_304( + ffi.Pointer chars, + int len, + ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong? deallocator) { + final _ret = _lib._objc_msgSend_320( _id, _lib._sel_initWithCharactersNoCopy_length_deallocator_1, chars, len, - deallocator._id); + deallocator?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: false, release: true); } NSString initWithCharacters_length_( ffi.Pointer characters, int length) { - final _ret = _lib._objc_msgSend_305( + final _ret = _lib._objc_msgSend_321( _id, _lib._sel_initWithCharacters_length_1, characters, length); return NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithUTF8String_(ffi.Pointer nullTerminatedCString) { - final _ret = _lib._objc_msgSend_306( + NSString? initWithUTF8String_(ffi.Pointer nullTerminatedCString) { + final _ret = _lib._objc_msgSend_322( _id, _lib._sel_initWithUTF8String_1, nullTerminatedCString); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithString_(NSString? aString) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, aString?._id ?? ffi.nullptr); + NSString initWithString_(NSString aString) { + final _ret = + _lib._objc_msgSend_31(_id, _lib._sel_initWithString_1, aString._id); return NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithFormat_(NSString? format) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithFormat_1, format?._id ?? ffi.nullptr); + NSString initWithFormat_(NSString format) { + final _ret = + _lib._objc_msgSend_31(_id, _lib._sel_initWithFormat_1, format._id); return NSString._(_ret, _lib, retain: true, release: true); } NSString initWithFormat_arguments_( - NSString? format, ffi.Pointer argList) { - final _ret = _lib._objc_msgSend_307( - _id, - _lib._sel_initWithFormat_arguments_1, - format?._id ?? ffi.nullptr, - argList); + NSString format, ffi.Pointer<__va_list_tag> argList) { + final _ret = _lib._objc_msgSend_323( + _id, _lib._sel_initWithFormat_arguments_1, format._id, argList); return NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithFormat_locale_(NSString? format, NSObject locale) { - final _ret = _lib._objc_msgSend_308(_id, _lib._sel_initWithFormat_locale_1, - format?._id ?? ffi.nullptr, locale._id); + NSString initWithFormat_locale_(NSString format, NSObject? locale) { + final _ret = _lib._objc_msgSend_324(_id, _lib._sel_initWithFormat_locale_1, + format._id, locale?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } NSString initWithFormat_locale_arguments_( - NSString? format, NSObject locale, ffi.Pointer argList) { - final _ret = _lib._objc_msgSend_309( + NSString format, NSObject? locale, ffi.Pointer<__va_list_tag> argList) { + final _ret = _lib._objc_msgSend_325( _id, _lib._sel_initWithFormat_locale_arguments_1, - format?._id ?? ffi.nullptr, - locale._id, + format._id, + locale?._id ?? ffi.nullptr, argList); return NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithValidatedFormat_validFormatSpecifiers_error_( - NSString? format, - NSString? validFormatSpecifiers, + NSString? initWithValidatedFormat_validFormatSpecifiers_error_( + NSString format, + NSString validFormatSpecifiers, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_310( + final _ret = _lib._objc_msgSend_326( _id, _lib._sel_initWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, + format._id, + validFormatSpecifiers._id, error); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithValidatedFormat_validFormatSpecifiers_locale_error_( - NSString? format, - NSString? validFormatSpecifiers, - NSObject locale, + NSString? initWithValidatedFormat_validFormatSpecifiers_locale_error_( + NSString format, + NSString validFormatSpecifiers, + NSObject? locale, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_311( + final _ret = _lib._objc_msgSend_327( _id, _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - locale._id, + format._id, + validFormatSpecifiers._id, + locale?._id ?? ffi.nullptr, error); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithValidatedFormat_validFormatSpecifiers_arguments_error_( - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer argList, + NSString? initWithValidatedFormat_validFormatSpecifiers_arguments_error_( + NSString format, + NSString validFormatSpecifiers, + ffi.Pointer<__va_list_tag> argList, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_312( + final _ret = _lib._objc_msgSend_328( _id, _lib._sel_initWithValidatedFormat_validFormatSpecifiers_arguments_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, + format._id, + validFormatSpecifiers._id, argList, error); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString + NSString? initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_( - NSString? format, - NSString? validFormatSpecifiers, - NSObject locale, - ffi.Pointer argList, + NSString format, + NSString validFormatSpecifiers, + NSObject? locale, + ffi.Pointer<__va_list_tag> argList, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_313( + final _ret = _lib._objc_msgSend_329( _id, _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - locale._id, + format._id, + validFormatSpecifiers._id, + locale?._id ?? ffi.nullptr, argList, error); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithData_encoding_(NSData? data, int encoding) { - final _ret = _lib._objc_msgSend_314(_id, _lib._sel_initWithData_encoding_1, - data?._id ?? ffi.nullptr, encoding); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? initWithData_encoding_(NSData data, int encoding) { + final _ret = _lib._objc_msgSend_330( + _id, _lib._sel_initWithData_encoding_1, data._id, encoding); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithBytes_length_encoding_( + NSString? initWithBytes_length_encoding_( ffi.Pointer bytes, int len, int encoding) { - final _ret = _lib._objc_msgSend_315( + final _ret = _lib._objc_msgSend_331( _id, _lib._sel_initWithBytes_length_encoding_1, bytes, len, encoding); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithBytesNoCopy_length_encoding_freeWhenDone_( + NSString? initWithBytesNoCopy_length_encoding_freeWhenDone_( ffi.Pointer bytes, int len, int encoding, bool freeBuffer) { - final _ret = _lib._objc_msgSend_316( + final _ret = _lib._objc_msgSend_332( _id, _lib._sel_initWithBytesNoCopy_length_encoding_freeWhenDone_1, bytes, len, encoding, freeBuffer); - return NSString._(_ret, _lib, retain: false, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: false, release: true); } - NSString initWithBytesNoCopy_length_encoding_deallocator_( + NSString? initWithBytesNoCopy_length_encoding_deallocator_( ffi.Pointer bytes, int len, int encoding, - ObjCBlock12 deallocator) { - final _ret = _lib._objc_msgSend_317( + ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong? deallocator) { + final _ret = _lib._objc_msgSend_333( _id, _lib._sel_initWithBytesNoCopy_length_encoding_deallocator_1, bytes, len, encoding, - deallocator._id); - return NSString._(_ret, _lib, retain: false, release: true); + deallocator?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: false, release: true); } static NSString string(PedometerBindings _lib) { @@ -27832,197 +30129,219 @@ class NSString extends NSObject { return NSString._(_ret, _lib, retain: true, release: true); } - static NSString stringWithString_(PedometerBindings _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSString1, - _lib._sel_stringWithString_1, string?._id ?? ffi.nullptr); + static NSString stringWithString_(PedometerBindings _lib, NSString string) { + final _ret = _lib._objc_msgSend_31( + _lib._class_NSString1, _lib._sel_stringWithString_1, string._id); return NSString._(_ret, _lib, retain: true, release: true); } static NSString stringWithCharacters_length_(PedometerBindings _lib, ffi.Pointer characters, int length) { - final _ret = _lib._objc_msgSend_305(_lib._class_NSString1, + final _ret = _lib._objc_msgSend_321(_lib._class_NSString1, _lib._sel_stringWithCharacters_length_1, characters, length); return NSString._(_ret, _lib, retain: true, release: true); } - static NSString stringWithUTF8String_( + static NSString? stringWithUTF8String_( PedometerBindings _lib, ffi.Pointer nullTerminatedCString) { - final _ret = _lib._objc_msgSend_306(_lib._class_NSString1, + final _ret = _lib._objc_msgSend_322(_lib._class_NSString1, _lib._sel_stringWithUTF8String_1, nullTerminatedCString); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSString stringWithFormat_(PedometerBindings _lib, NSString? format) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSString1, - _lib._sel_stringWithFormat_1, format?._id ?? ffi.nullptr); + static NSString stringWithFormat_(PedometerBindings _lib, NSString format) { + final _ret = _lib._objc_msgSend_31( + _lib._class_NSString1, _lib._sel_stringWithFormat_1, format._id); return NSString._(_ret, _lib, retain: true, release: true); } static NSString localizedStringWithFormat_( - PedometerBindings _lib, NSString? format) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSString1, - _lib._sel_localizedStringWithFormat_1, format?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString format) { + final _ret = _lib._objc_msgSend_31(_lib._class_NSString1, + _lib._sel_localizedStringWithFormat_1, format._id); return NSString._(_ret, _lib, retain: true, release: true); } - static NSString stringWithValidatedFormat_validFormatSpecifiers_error_( + static NSString? stringWithValidatedFormat_validFormatSpecifiers_error_( PedometerBindings _lib, - NSString? format, - NSString? validFormatSpecifiers, + NSString format, + NSString validFormatSpecifiers, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_310( + final _ret = _lib._objc_msgSend_326( _lib._class_NSString1, _lib._sel_stringWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, + format._id, + validFormatSpecifiers._id, error); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSString + static NSString? localizedStringWithValidatedFormat_validFormatSpecifiers_error_( PedometerBindings _lib, - NSString? format, - NSString? validFormatSpecifiers, + NSString format, + NSString validFormatSpecifiers, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_310( + final _ret = _lib._objc_msgSend_326( _lib._class_NSString1, _lib._sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, + format._id, + validFormatSpecifiers._id, error); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithCString_encoding_( + NSString? initWithCString_encoding_( ffi.Pointer nullTerminatedCString, int encoding) { - final _ret = _lib._objc_msgSend_318(_id, + final _ret = _lib._objc_msgSend_334(_id, _lib._sel_initWithCString_encoding_1, nullTerminatedCString, encoding); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSString stringWithCString_encoding_( + static NSString? stringWithCString_encoding_( PedometerBindings _lib, ffi.Pointer cString, int enc) { - final _ret = _lib._objc_msgSend_318(_lib._class_NSString1, + final _ret = _lib._objc_msgSend_334(_lib._class_NSString1, _lib._sel_stringWithCString_encoding_1, cString, enc); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithContentsOfURL_encoding_error_( - NSURL? url, int enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_319( - _id, - _lib._sel_initWithContentsOfURL_encoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? initWithContentsOfURL_encoding_error_( + NSURL url, int enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_335(_id, + _lib._sel_initWithContentsOfURL_encoding_error_1, url._id, enc, error); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithContentsOfFile_encoding_error_( - NSString? path, int enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_320( + NSString? initWithContentsOfFile_encoding_error_( + NSString path, int enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_336( _id, _lib._sel_initWithContentsOfFile_encoding_error_1, - path?._id ?? ffi.nullptr, + path._id, enc, error); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSString stringWithContentsOfURL_encoding_error_( + static NSString? stringWithContentsOfURL_encoding_error_( PedometerBindings _lib, - NSURL? url, + NSURL url, int enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_319( + final _ret = _lib._objc_msgSend_335( _lib._class_NSString1, _lib._sel_stringWithContentsOfURL_encoding_error_1, - url?._id ?? ffi.nullptr, + url._id, enc, error); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSString stringWithContentsOfFile_encoding_error_( + static NSString? stringWithContentsOfFile_encoding_error_( PedometerBindings _lib, - NSString? path, + NSString path, int enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_320( + final _ret = _lib._objc_msgSend_336( _lib._class_NSString1, _lib._sel_stringWithContentsOfFile_encoding_error_1, - path?._id ?? ffi.nullptr, + path._id, enc, error); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithContentsOfURL_usedEncoding_error_( - NSURL? url, + NSString? initWithContentsOfURL_usedEncoding_error_( + NSURL url, ffi.Pointer enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_321( + final _ret = _lib._objc_msgSend_337( _id, _lib._sel_initWithContentsOfURL_usedEncoding_error_1, - url?._id ?? ffi.nullptr, + url._id, enc, error); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithContentsOfFile_usedEncoding_error_( - NSString? path, + NSString? initWithContentsOfFile_usedEncoding_error_( + NSString path, ffi.Pointer enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_322( + final _ret = _lib._objc_msgSend_338( _id, _lib._sel_initWithContentsOfFile_usedEncoding_error_1, - path?._id ?? ffi.nullptr, + path._id, enc, error); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSString stringWithContentsOfURL_usedEncoding_error_( + static NSString? stringWithContentsOfURL_usedEncoding_error_( PedometerBindings _lib, - NSURL? url, + NSURL url, ffi.Pointer enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_321( + final _ret = _lib._objc_msgSend_337( _lib._class_NSString1, _lib._sel_stringWithContentsOfURL_usedEncoding_error_1, - url?._id ?? ffi.nullptr, + url._id, enc, error); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSString stringWithContentsOfFile_usedEncoding_error_( + static NSString? stringWithContentsOfFile_usedEncoding_error_( PedometerBindings _lib, - NSString? path, + NSString path, ffi.Pointer enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_322( + final _ret = _lib._objc_msgSend_338( _lib._class_NSString1, _lib._sel_stringWithContentsOfFile_usedEncoding_error_1, - path?._id ?? ffi.nullptr, + path._id, enc, error); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } static int stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_( PedometerBindings _lib, - NSData? data, + NSData data, NSDictionary? opts, ffi.Pointer> string, ffi.Pointer usedLossyConversion) { - return _lib._objc_msgSend_323( + return _lib._objc_msgSend_339( _lib._class_NSString1, _lib._sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1, - data?._id ?? ffi.nullptr, + data._id, opts?._id ?? ffi.nullptr, string, usedLossyConversion); @@ -28033,10 +30352,12 @@ class NSString extends NSObject { return NSObject._(_ret, _lib, retain: true, release: true); } - NSDictionary propertyListFromStringsFileFormat() { - final _ret = _lib._objc_msgSend_324( + NSDictionary? propertyListFromStringsFileFormat() { + final _ret = _lib._objc_msgSend_340( _id, _lib._sel_propertyListFromStringsFileFormat1); - return NSDictionary._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } ffi.Pointer cString() { @@ -28052,17 +30373,17 @@ class NSString extends NSObject { } void getCString_(ffi.Pointer bytes) { - return _lib._objc_msgSend_220(_id, _lib._sel_getCString_1, bytes); + _lib._objc_msgSend_231(_id, _lib._sel_getCString_1, bytes); } void getCString_maxLength_(ffi.Pointer bytes, int maxLength) { - return _lib._objc_msgSend_325( + _lib._objc_msgSend_341( _id, _lib._sel_getCString_maxLength_1, bytes, maxLength); } void getCString_maxLength_range_remainingRange_(ffi.Pointer bytes, int maxLength, _NSRange aRange, ffi.Pointer<_NSRange> leftoverRange) { - return _lib._objc_msgSend_326( + _lib._objc_msgSend_342( _id, _lib._sel_getCString_maxLength_range_remainingRange_1, bytes, @@ -28071,183 +30392,185 @@ class NSString extends NSObject { leftoverRange); } - bool writeToFile_atomically_(NSString? path, bool useAuxiliaryFile) { - return _lib._objc_msgSend_25(_id, _lib._sel_writeToFile_atomically_1, - path?._id ?? ffi.nullptr, useAuxiliaryFile); + bool writeToFile_atomically_(NSString path, bool useAuxiliaryFile) { + return _lib._objc_msgSend_26( + _id, _lib._sel_writeToFile_atomically_1, path._id, useAuxiliaryFile); } - bool writeToURL_atomically_(NSURL? url, bool atomically) { - return _lib._objc_msgSend_117(_id, _lib._sel_writeToURL_atomically_1, - url?._id ?? ffi.nullptr, atomically); + bool writeToURL_atomically_(NSURL url, bool atomically) { + return _lib._objc_msgSend_125( + _id, _lib._sel_writeToURL_atomically_1, url._id, atomically); } - NSObject initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? initWithContentsOfFile_(NSString path) { + final _ret = _lib._objc_msgSend_38( + _id, _lib._sel_initWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_209( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? initWithContentsOfURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_218(_id, _lib._sel_initWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithContentsOfFile_( - PedometerBindings _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSString1, - _lib._sel_stringWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? stringWithContentsOfFile_( + PedometerBindings _lib, NSString path) { + final _ret = _lib._objc_msgSend_38( + _lib._class_NSString1, _lib._sel_stringWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithContentsOfURL_(PedometerBindings _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_209(_lib._class_NSString1, - _lib._sel_stringWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? stringWithContentsOfURL_(PedometerBindings _lib, NSURL url) { + final _ret = _lib._objc_msgSend_218( + _lib._class_NSString1, _lib._sel_stringWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject initWithCStringNoCopy_length_freeWhenDone_( + NSObject? initWithCStringNoCopy_length_freeWhenDone_( ffi.Pointer bytes, int length, bool freeBuffer) { - final _ret = _lib._objc_msgSend_327( + final _ret = _lib._objc_msgSend_343( _id, _lib._sel_initWithCStringNoCopy_length_freeWhenDone_1, bytes, length, freeBuffer); - return NSObject._(_ret, _lib, retain: false, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: false, release: true); } - NSObject initWithCString_length_(ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_318( + NSObject? initWithCString_length_(ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_334( _id, _lib._sel_initWithCString_length_1, bytes, length); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject initWithCString_(ffi.Pointer bytes) { + NSObject? initWithCString_(ffi.Pointer bytes) { final _ret = - _lib._objc_msgSend_306(_id, _lib._sel_initWithCString_1, bytes); - return NSObject._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_322(_id, _lib._sel_initWithCString_1, bytes); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithCString_length_( + static NSObject? stringWithCString_length_( PedometerBindings _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_318(_lib._class_NSString1, + final _ret = _lib._objc_msgSend_334(_lib._class_NSString1, _lib._sel_stringWithCString_length_1, bytes, length); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithCString_( + static NSObject? stringWithCString_( PedometerBindings _lib, ffi.Pointer bytes) { - final _ret = _lib._objc_msgSend_306( + final _ret = _lib._objc_msgSend_322( _lib._class_NSString1, _lib._sel_stringWithCString_1, bytes); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } void getCharacters_(ffi.Pointer buffer) { - return _lib._objc_msgSend_328(_id, _lib._sel_getCharacters_1, buffer); + _lib._objc_msgSend_344(_id, _lib._sel_getCharacters_1, buffer); } NSString variantFittingPresentationWidth_(int width) { - final _ret = _lib._objc_msgSend_329( + final _ret = _lib._objc_msgSend_345( _id, _lib._sel_variantFittingPresentationWidth_1, width); return NSString._(_ret, _lib, retain: true, release: true); } static NSString pathWithComponents_( - PedometerBindings _lib, NSArray? components) { - final _ret = _lib._objc_msgSend_330(_lib._class_NSString1, - _lib._sel_pathWithComponents_1, components?._id ?? ffi.nullptr); + PedometerBindings _lib, NSArray components) { + final _ret = _lib._objc_msgSend_346( + _lib._class_NSString1, _lib._sel_pathWithComponents_1, components._id); return NSString._(_ret, _lib, retain: true, release: true); } - NSArray? get pathComponents { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_pathComponents1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get pathComponents { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_pathComponents1); + return NSArray._(_ret, _lib, retain: true, release: true); } bool get absolutePath { return _lib._objc_msgSend_12(_id, _lib._sel_isAbsolutePath1); } - NSString? get lastPathComponent { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_lastPathComponent1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get lastPathComponent { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_lastPathComponent1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get stringByDeletingLastPathComponent { - final _ret = _lib._objc_msgSend_20( + NSString get stringByDeletingLastPathComponent { + final _ret = _lib._objc_msgSend_21( _id, _lib._sel_stringByDeletingLastPathComponent1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString stringByAppendingPathComponent_(NSString? str) { - final _ret = _lib._objc_msgSend_56(_id, - _lib._sel_stringByAppendingPathComponent_1, str?._id ?? ffi.nullptr); + NSString stringByAppendingPathComponent_(NSString str) { + final _ret = _lib._objc_msgSend_61( + _id, _lib._sel_stringByAppendingPathComponent_1, str._id); return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get pathExtension { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_pathExtension1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get pathExtension { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_pathExtension1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get stringByDeletingPathExtension { + NSString get stringByDeletingPathExtension { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_stringByDeletingPathExtension1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString stringByAppendingPathExtension_(NSString? str) { - final _ret = _lib._objc_msgSend_56(_id, - _lib._sel_stringByAppendingPathExtension_1, str?._id ?? ffi.nullptr); + _lib._objc_msgSend_21(_id, _lib._sel_stringByDeletingPathExtension1); return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get stringByAbbreviatingWithTildeInPath { - final _ret = _lib._objc_msgSend_20( - _id, _lib._sel_stringByAbbreviatingWithTildeInPath1); + NSString? stringByAppendingPathExtension_(NSString str) { + final _ret = _lib._objc_msgSend_276( + _id, _lib._sel_stringByAppendingPathExtension_1, str._id); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString? get stringByExpandingTildeInPath { + NSString get stringByAbbreviatingWithTildeInPath { + final _ret = _lib._objc_msgSend_21( + _id, _lib._sel_stringByAbbreviatingWithTildeInPath1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString get stringByExpandingTildeInPath { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_stringByExpandingTildeInPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_21(_id, _lib._sel_stringByExpandingTildeInPath1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get stringByStandardizingPath { + NSString get stringByStandardizingPath { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_stringByStandardizingPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_21(_id, _lib._sel_stringByStandardizingPath1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get stringByResolvingSymlinksInPath { + NSString get stringByResolvingSymlinksInPath { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_stringByResolvingSymlinksInPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_21(_id, _lib._sel_stringByResolvingSymlinksInPath1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSArray stringsByAppendingPaths_(NSArray? paths) { - final _ret = _lib._objc_msgSend_55( - _id, _lib._sel_stringsByAppendingPaths_1, paths?._id ?? ffi.nullptr); + NSArray stringsByAppendingPaths_(NSArray paths) { + final _ret = _lib._objc_msgSend_60( + _id, _lib._sel_stringsByAppendingPaths_1, paths._id); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -28256,7 +30579,7 @@ class NSString extends NSObject { bool flag, ffi.Pointer> outputArray, NSArray? filterTypes) { - return _lib._objc_msgSend_331( + return _lib._objc_msgSend_347( _id, _lib._sel_completePathIntoString_caseSensitive_matchesIntoArray_filterTypes_1, outputName, @@ -28271,37 +30594,43 @@ class NSString extends NSObject { bool getFileSystemRepresentation_maxLength_( ffi.Pointer cname, int max) { - return _lib._objc_msgSend_182( + return _lib._objc_msgSend_193( _id, _lib._sel_getFileSystemRepresentation_maxLength_1, cname, max); } - NSString stringByAddingPercentEncodingWithAllowedCharacters_( - NSCharacterSet? allowedCharacters) { - final _ret = _lib._objc_msgSend_294( + NSString? stringByAddingPercentEncodingWithAllowedCharacters_( + NSCharacterSet allowedCharacters) { + final _ret = _lib._objc_msgSend_348( _id, _lib._sel_stringByAddingPercentEncodingWithAllowedCharacters_1, - allowedCharacters?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + allowedCharacters._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } NSString? get stringByRemovingPercentEncoding { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_stringByRemovingPercentEncoding1); + _lib._objc_msgSend_44(_id, _lib._sel_stringByRemovingPercentEncoding1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString stringByAddingPercentEscapesUsingEncoding_(int enc) { - final _ret = _lib._objc_msgSend_253( + NSString? stringByAddingPercentEscapesUsingEncoding_(int enc) { + final _ret = _lib._objc_msgSend_349( _id, _lib._sel_stringByAddingPercentEscapesUsingEncoding_1, enc); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString stringByReplacingPercentEscapesUsingEncoding_(int enc) { - final _ret = _lib._objc_msgSend_253( + NSString? stringByReplacingPercentEscapesUsingEncoding_(int enc) { + final _ret = _lib._objc_msgSend_349( _id, _lib._sel_stringByReplacingPercentEscapesUsingEncoding_1, enc); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } NSArray linguisticTagsInRange_scheme_options_orthography_tokenRanges_( @@ -28310,7 +30639,7 @@ class NSString extends NSObject { int options, NSOrthography? orthography, ffi.Pointer> tokenRanges) { - final _ret = _lib._objc_msgSend_333( + final _ret = _lib._objc_msgSend_352( _id, _lib._sel_linguisticTagsInRange_scheme_options_orthography_tokenRanges_1, range, @@ -28326,8 +30655,8 @@ class NSString extends NSObject { NSString scheme, int options, NSOrthography? orthography, - ObjCBlock13 block) { - return _lib._objc_msgSend_334( + ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool block) { + _lib._objc_msgSend_353( _id, _lib._sel_enumerateLinguisticTagsInRange_scheme_options_orthography_usingBlock_1, range, @@ -28342,6 +30671,13 @@ class NSString extends NSObject { return NSString._(_ret, _lib, retain: false, release: true); } + static NSString allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSString1, _lib._sel_allocWithZone_1, zone); + return NSString._(_ret, _lib, retain: false, release: true); + } + static NSString alloc(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSString1, _lib._sel_alloc1); return NSString._(_ret, _lib, retain: false, release: true); @@ -28351,18 +30687,18 @@ class NSString extends NSObject { PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSString1, + _lib._objc_msgSend_15(_lib._class_NSString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -28377,33 +30713,20 @@ class NSString extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSString1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSString1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSString1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSString1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSString1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( + final _ret = _lib._objc_msgSend_77( _lib._class_NSString1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -28444,267 +30767,244 @@ class NSCoder extends NSObject { void encodeValueOfObjCType_at_( ffi.Pointer type, ffi.Pointer addr) { - return _lib._objc_msgSend_18( + _lib._objc_msgSend_19( _id, _lib._sel_encodeValueOfObjCType_at_1, type, addr); } - void encodeDataObject_(NSData? data) { - return _lib._objc_msgSend_217( - _id, _lib._sel_encodeDataObject_1, data?._id ?? ffi.nullptr); + void encodeDataObject_(NSData data) { + _lib._objc_msgSend_226(_id, _lib._sel_encodeDataObject_1, data._id); } - NSData decodeDataObject() { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_decodeDataObject1); - return NSData._(_ret, _lib, retain: true, release: true); + NSData? decodeDataObject() { + final _ret = _lib._objc_msgSend_227(_id, _lib._sel_decodeDataObject1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } void decodeValueOfObjCType_at_size_( ffi.Pointer type, ffi.Pointer data, int size) { - return _lib._objc_msgSend_218( + _lib._objc_msgSend_228( _id, _lib._sel_decodeValueOfObjCType_at_size_1, type, data, size); } - int versionForClassName_(NSString? className) { - return _lib._objc_msgSend_219( - _id, _lib._sel_versionForClassName_1, className?._id ?? ffi.nullptr); + int versionForClassName_(NSString className) { + return _lib._objc_msgSend_229( + _id, _lib._sel_versionForClassName_1, className._id); } - void encodeObject_(NSObject object) { - return _lib._objc_msgSend_15(_id, _lib._sel_encodeObject_1, object._id); + void encodeObject_(NSObject? object) { + _lib._objc_msgSend_230( + _id, _lib._sel_encodeObject_1, object?._id ?? ffi.nullptr); } void encodeRootObject_(NSObject rootObject) { - return _lib._objc_msgSend_15( - _id, _lib._sel_encodeRootObject_1, rootObject._id); + _lib._objc_msgSend_15(_id, _lib._sel_encodeRootObject_1, rootObject._id); } - void encodeBycopyObject_(NSObject anObject) { - return _lib._objc_msgSend_15( - _id, _lib._sel_encodeBycopyObject_1, anObject._id); + void encodeBycopyObject_(NSObject? anObject) { + _lib._objc_msgSend_230( + _id, _lib._sel_encodeBycopyObject_1, anObject?._id ?? ffi.nullptr); } - void encodeByrefObject_(NSObject anObject) { - return _lib._objc_msgSend_15( - _id, _lib._sel_encodeByrefObject_1, anObject._id); + void encodeByrefObject_(NSObject? anObject) { + _lib._objc_msgSend_230( + _id, _lib._sel_encodeByrefObject_1, anObject?._id ?? ffi.nullptr); } - void encodeConditionalObject_(NSObject object) { - return _lib._objc_msgSend_15( - _id, _lib._sel_encodeConditionalObject_1, object._id); + void encodeConditionalObject_(NSObject? object) { + _lib._objc_msgSend_230( + _id, _lib._sel_encodeConditionalObject_1, object?._id ?? ffi.nullptr); } void encodeValuesOfObjCTypes_(ffi.Pointer types) { - return _lib._objc_msgSend_220( - _id, _lib._sel_encodeValuesOfObjCTypes_1, types); + _lib._objc_msgSend_231(_id, _lib._sel_encodeValuesOfObjCTypes_1, types); } void encodeArrayOfObjCType_count_at_( ffi.Pointer type, int count, ffi.Pointer array) { - return _lib._objc_msgSend_221( + _lib._objc_msgSend_232( _id, _lib._sel_encodeArrayOfObjCType_count_at_1, type, count, array); } void encodeBytes_length_(ffi.Pointer byteaddr, int length) { - return _lib._objc_msgSend_21( + _lib._objc_msgSend_22( _id, _lib._sel_encodeBytes_length_1, byteaddr, length); } - NSObject decodeObject() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_decodeObject1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? decodeObject() { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_decodeObject1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject decodeTopLevelObjectAndReturnError_( + NSObject? decodeTopLevelObjectAndReturnError_( ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_222( + final _ret = _lib._objc_msgSend_233( _id, _lib._sel_decodeTopLevelObjectAndReturnError_1, error); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } void decodeValuesOfObjCTypes_(ffi.Pointer types) { - return _lib._objc_msgSend_220( - _id, _lib._sel_decodeValuesOfObjCTypes_1, types); + _lib._objc_msgSend_231(_id, _lib._sel_decodeValuesOfObjCTypes_1, types); } void decodeArrayOfObjCType_count_at_( ffi.Pointer itemType, int count, ffi.Pointer array) { - return _lib._objc_msgSend_221(_id, - _lib._sel_decodeArrayOfObjCType_count_at_1, itemType, count, array); + _lib._objc_msgSend_232(_id, _lib._sel_decodeArrayOfObjCType_count_at_1, + itemType, count, array); } ffi.Pointer decodeBytesWithReturnedLength_( ffi.Pointer lengthp) { - return _lib._objc_msgSend_223( + return _lib._objc_msgSend_234( _id, _lib._sel_decodeBytesWithReturnedLength_1, lengthp); } - void encodePropertyList_(NSObject aPropertyList) { - return _lib._objc_msgSend_15( - _id, _lib._sel_encodePropertyList_1, aPropertyList._id); - } - - NSObject decodePropertyList() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_decodePropertyList1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - void setObjectZone_(ffi.Pointer<_NSZone> zone) { - return _lib._objc_msgSend_224(_id, _lib._sel_setObjectZone_1, zone); + _lib._objc_msgSend_235(_id, _lib._sel_setObjectZone_1, zone); } ffi.Pointer<_NSZone> objectZone() { - return _lib._objc_msgSend_225(_id, _lib._sel_objectZone1); + return _lib._objc_msgSend_236(_id, _lib._sel_objectZone1); } int get systemVersion { - return _lib._objc_msgSend_155(_id, _lib._sel_systemVersion1); + return _lib._objc_msgSend_165(_id, _lib._sel_systemVersion1); } bool get allowsKeyedCoding { return _lib._objc_msgSend_12(_id, _lib._sel_allowsKeyedCoding1); } - void encodeObject_forKey_(NSObject object, NSString? key) { - return _lib._objc_msgSend_118(_id, _lib._sel_encodeObject_forKey_1, - object._id, key?._id ?? ffi.nullptr); + void encodeObject_forKey_(NSObject? object, NSString key) { + _lib._objc_msgSend_126(_id, _lib._sel_encodeObject_forKey_1, + object?._id ?? ffi.nullptr, key._id); } - void encodeConditionalObject_forKey_(NSObject object, NSString? key) { - return _lib._objc_msgSend_118( - _id, - _lib._sel_encodeConditionalObject_forKey_1, - object._id, - key?._id ?? ffi.nullptr); + void encodeConditionalObject_forKey_(NSObject? object, NSString key) { + _lib._objc_msgSend_126(_id, _lib._sel_encodeConditionalObject_forKey_1, + object?._id ?? ffi.nullptr, key._id); } - void encodeBool_forKey_(bool value, NSString? key) { - return _lib._objc_msgSend_226( - _id, _lib._sel_encodeBool_forKey_1, value, key?._id ?? ffi.nullptr); + void encodeBool_forKey_(bool value, NSString key) { + _lib._objc_msgSend_237(_id, _lib._sel_encodeBool_forKey_1, value, key._id); } - void encodeInt_forKey_(int value, NSString? key) { - return _lib._objc_msgSend_227( - _id, _lib._sel_encodeInt_forKey_1, value, key?._id ?? ffi.nullptr); + void encodeInt_forKey_(int value, NSString key) { + _lib._objc_msgSend_238(_id, _lib._sel_encodeInt_forKey_1, value, key._id); } - void encodeInt32_forKey_(int value, NSString? key) { - return _lib._objc_msgSend_228( - _id, _lib._sel_encodeInt32_forKey_1, value, key?._id ?? ffi.nullptr); + void encodeInt32_forKey_(int value, NSString key) { + _lib._objc_msgSend_239(_id, _lib._sel_encodeInt32_forKey_1, value, key._id); } - void encodeInt64_forKey_(int value, NSString? key) { - return _lib._objc_msgSend_229( - _id, _lib._sel_encodeInt64_forKey_1, value, key?._id ?? ffi.nullptr); + void encodeInt64_forKey_(int value, NSString key) { + _lib._objc_msgSend_240(_id, _lib._sel_encodeInt64_forKey_1, value, key._id); } - void encodeFloat_forKey_(double value, NSString? key) { - return _lib._objc_msgSend_230( - _id, _lib._sel_encodeFloat_forKey_1, value, key?._id ?? ffi.nullptr); + void encodeFloat_forKey_(double value, NSString key) { + _lib._objc_msgSend_241(_id, _lib._sel_encodeFloat_forKey_1, value, key._id); } - void encodeDouble_forKey_(double value, NSString? key) { - return _lib._objc_msgSend_231( - _id, _lib._sel_encodeDouble_forKey_1, value, key?._id ?? ffi.nullptr); + void encodeDouble_forKey_(double value, NSString key) { + _lib._objc_msgSend_242( + _id, _lib._sel_encodeDouble_forKey_1, value, key._id); } void encodeBytes_length_forKey_( - ffi.Pointer bytes, int length, NSString? key) { - return _lib._objc_msgSend_232(_id, _lib._sel_encodeBytes_length_forKey_1, - bytes, length, key?._id ?? ffi.nullptr); + ffi.Pointer bytes, int length, NSString key) { + _lib._objc_msgSend_243( + _id, _lib._sel_encodeBytes_length_forKey_1, bytes, length, key._id); } - bool containsValueForKey_(NSString? key) { - return _lib._objc_msgSend_51( - _id, _lib._sel_containsValueForKey_1, key?._id ?? ffi.nullptr); + bool containsValueForKey_(NSString key) { + return _lib._objc_msgSend_56(_id, _lib._sel_containsValueForKey_1, key._id); } - NSObject decodeObjectForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_decodeObjectForKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? decodeObjectForKey_(NSString key) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_decodeObjectForKey_1, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject decodeTopLevelObjectForKey_error_( - NSString? key, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_233( - _id, - _lib._sel_decodeTopLevelObjectForKey_error_1, - key?._id ?? ffi.nullptr, - error); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? decodeTopLevelObjectForKey_error_( + NSString key, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_244( + _id, _lib._sel_decodeTopLevelObjectForKey_error_1, key._id, error); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - bool decodeBoolForKey_(NSString? key) { - return _lib._objc_msgSend_51( - _id, _lib._sel_decodeBoolForKey_1, key?._id ?? ffi.nullptr); + bool decodeBoolForKey_(NSString key) { + return _lib._objc_msgSend_56(_id, _lib._sel_decodeBoolForKey_1, key._id); } - int decodeIntForKey_(NSString? key) { - return _lib._objc_msgSend_234( - _id, _lib._sel_decodeIntForKey_1, key?._id ?? ffi.nullptr); + int decodeIntForKey_(NSString key) { + return _lib._objc_msgSend_245(_id, _lib._sel_decodeIntForKey_1, key._id); } - int decodeInt32ForKey_(NSString? key) { - return _lib._objc_msgSend_235( - _id, _lib._sel_decodeInt32ForKey_1, key?._id ?? ffi.nullptr); + int decodeInt32ForKey_(NSString key) { + return _lib._objc_msgSend_246(_id, _lib._sel_decodeInt32ForKey_1, key._id); } - int decodeInt64ForKey_(NSString? key) { - return _lib._objc_msgSend_236( - _id, _lib._sel_decodeInt64ForKey_1, key?._id ?? ffi.nullptr); + int decodeInt64ForKey_(NSString key) { + return _lib._objc_msgSend_247(_id, _lib._sel_decodeInt64ForKey_1, key._id); } - double decodeFloatForKey_(NSString? key) { - return _lib._objc_msgSend_237( - _id, _lib._sel_decodeFloatForKey_1, key?._id ?? ffi.nullptr); + double decodeFloatForKey_(NSString key) { + return _lib._objc_msgSend_248(_id, _lib._sel_decodeFloatForKey_1, key._id); } - double decodeDoubleForKey_(NSString? key) { - return _lib._objc_msgSend_238( - _id, _lib._sel_decodeDoubleForKey_1, key?._id ?? ffi.nullptr); + double decodeDoubleForKey_(NSString key) { + return _lib._objc_msgSend_249(_id, _lib._sel_decodeDoubleForKey_1, key._id); } ffi.Pointer decodeBytesForKey_returnedLength_( - NSString? key, ffi.Pointer lengthp) { - return _lib._objc_msgSend_239( - _id, - _lib._sel_decodeBytesForKey_returnedLength_1, - key?._id ?? ffi.nullptr, - lengthp); + NSString key, ffi.Pointer lengthp) { + return _lib._objc_msgSend_250( + _id, _lib._sel_decodeBytesForKey_returnedLength_1, key._id, lengthp); } - void encodeInteger_forKey_(int value, NSString? key) { - return _lib._objc_msgSend_240( - _id, _lib._sel_encodeInteger_forKey_1, value, key?._id ?? ffi.nullptr); + void encodeInteger_forKey_(int value, NSString key) { + _lib._objc_msgSend_251( + _id, _lib._sel_encodeInteger_forKey_1, value, key._id); } - int decodeIntegerForKey_(NSString? key) { - return _lib._objc_msgSend_219( - _id, _lib._sel_decodeIntegerForKey_1, key?._id ?? ffi.nullptr); + int decodeIntegerForKey_(NSString key) { + return _lib._objc_msgSend_229( + _id, _lib._sel_decodeIntegerForKey_1, key._id); } bool get requiresSecureCoding { return _lib._objc_msgSend_12(_id, _lib._sel_requiresSecureCoding1); } - NSObject decodeObjectOfClass_forKey_(NSObject aClass, NSString? key) { - final _ret = _lib._objc_msgSend_241( - _id, - _lib._sel_decodeObjectOfClass_forKey_1, - aClass._id, - key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? decodeObjectOfClass_forKey_(NSObject aClass, NSString key) { + final _ret = _lib._objc_msgSend_252( + _id, _lib._sel_decodeObjectOfClass_forKey_1, aClass._id, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject decodeTopLevelObjectOfClass_forKey_error_(NSObject aClass, - NSString? key, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_242( + NSObject? decodeTopLevelObjectOfClass_forKey_error_(NSObject aClass, + NSString key, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_253( _id, _lib._sel_decodeTopLevelObjectOfClass_forKey_error_1, aClass._id, - key?._id ?? ffi.nullptr, + key._id, error); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } /// Decodes the \c NSArray object for the given \c key, which should be an \c NSArray, containing the given non-collection class (no nested arrays or arrays of dictionaries, etc) from the coder. @@ -28712,13 +31012,12 @@ class NSCoder extends NSObject { /// Requires \c NSSecureCoding otherwise an exception is thrown and sets the \c decodingFailurePolicy to \c NSDecodingFailurePolicySetErrorAndReturn. /// /// Returns \c nil if the object for \c key is not of the expected types, or cannot be decoded, and sets the \c error on the decoder. - NSArray decodeArrayOfObjectsOfClass_forKey_(NSObject cls, NSString? key) { - final _ret = _lib._objc_msgSend_243( - _id, - _lib._sel_decodeArrayOfObjectsOfClass_forKey_1, - cls._id, - key?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSArray? decodeArrayOfObjectsOfClass_forKey_(NSObject cls, NSString key) { + final _ret = _lib._objc_msgSend_254( + _id, _lib._sel_decodeArrayOfObjectsOfClass_forKey_1, cls._id, key._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } /// Decodes the \c NSDictionary object for the given \c key, which should be an \c NSDictionary , with keys of type given in \c keyCls and objects of the given non-collection class \c objectCls (no nested dictionaries or other dictionaries contained in the dictionary, etc) from the coder. @@ -28726,35 +31025,41 @@ class NSCoder extends NSObject { /// Requires \c NSSecureCoding otherwise an exception is thrown and sets the \c decodingFailurePolicy to \c NSDecodingFailurePolicySetErrorAndReturn. /// /// Returns \c nil if the object for \c key is not of the expected types, or cannot be decoded, and sets the \c error on the decoder. - NSDictionary decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_( - NSObject keyCls, NSObject objectCls, NSString? key) { - final _ret = _lib._objc_msgSend_244( + NSDictionary? decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_( + NSObject keyCls, NSObject objectCls, NSString key) { + final _ret = _lib._objc_msgSend_255( _id, _lib._sel_decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_1, keyCls._id, objectCls._id, - key?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + key._id); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSObject decodeObjectOfClasses_forKey_(NSSet? classes, NSString? key) { - final _ret = _lib._objc_msgSend_245( + NSObject? decodeObjectOfClasses_forKey_(NSSet? classes, NSString key) { + final _ret = _lib._objc_msgSend_256( _id, _lib._sel_decodeObjectOfClasses_forKey_1, classes?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject decodeTopLevelObjectOfClasses_forKey_error_(NSSet? classes, - NSString? key, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_246( + NSObject? decodeTopLevelObjectOfClasses_forKey_error_(NSSet? classes, + NSString key, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_257( _id, _lib._sel_decodeTopLevelObjectOfClasses_forKey_error_1, classes?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr, + key._id, error); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } /// Decodes the \c NSArray object for the given \c key, which should be an \c NSArray, containing the given non-collection classes (no nested arrays or arrays of dictionaries, etc) from the coder. @@ -28762,13 +31067,12 @@ class NSCoder extends NSObject { /// Requires \c NSSecureCoding otherwise an exception is thrown and sets the \c decodingFailurePolicy to \c NSDecodingFailurePolicySetErrorAndReturn. /// /// Returns \c nil if the object for \c key is not of the expected types, or cannot be decoded, and sets the \c error on the decoder. - NSArray decodeArrayOfObjectsOfClasses_forKey_(NSSet? classes, NSString? key) { - final _ret = _lib._objc_msgSend_247( - _id, - _lib._sel_decodeArrayOfObjectsOfClasses_forKey_1, - classes?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSArray? decodeArrayOfObjectsOfClasses_forKey_(NSSet classes, NSString key) { + final _ret = _lib._objc_msgSend_258(_id, + _lib._sel_decodeArrayOfObjectsOfClasses_forKey_1, classes._id, key._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } /// Decodes the \c NSDictionary object for the given \c key, which should be an \c NSDictionary, with keys of the types given in \c keyClasses and objects of the given non-collection classes in \c objectClasses (no nested dictionaries or other dictionaries contained in the dictionary, etc) from the given coder. @@ -28776,25 +31080,29 @@ class NSCoder extends NSObject { /// Requires \c NSSecureCoding otherwise an exception is thrown and sets the \c decodingFailurePolicy to \c NSDecodingFailurePolicySetErrorAndReturn. /// /// Returns \c nil if the object for \c key is not of the expected types, or cannot be decoded, and sets the \c error on the decoder. - NSDictionary decodeDictionaryWithKeysOfClasses_objectsOfClasses_forKey_( - NSSet? keyClasses, NSSet? objectClasses, NSString? key) { - final _ret = _lib._objc_msgSend_248( + NSDictionary? decodeDictionaryWithKeysOfClasses_objectsOfClasses_forKey_( + NSSet keyClasses, NSSet objectClasses, NSString key) { + final _ret = _lib._objc_msgSend_259( _id, _lib._sel_decodeDictionaryWithKeysOfClasses_objectsOfClasses_forKey_1, - keyClasses?._id ?? ffi.nullptr, - objectClasses?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + keyClasses._id, + objectClasses._id, + key._id); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSObject decodePropertyListForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_decodePropertyListForKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? decodePropertyListForKey_(NSString key) { + final _ret = _lib._objc_msgSend_38( + _id, _lib._sel_decodePropertyListForKey_1, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } NSSet? get allowedClasses { - final _ret = _lib._objc_msgSend_249(_id, _lib._sel_allowedClasses1); + final _ret = _lib._objc_msgSend_260(_id, _lib._sel_allowedClasses1); return _ret.address == 0 ? null : NSSet._(_ret, _lib, retain: true, release: true); @@ -28830,9 +31138,8 @@ class NSCoder extends NSObject { /// - particpatory (error based) /// /// The kind of unwinding you get is determined by the decodingFailurePolicy property of this NSCoder (which defaults to NSDecodingFailurePolicyRaiseException to match historical behavior). - void failWithError_(NSError? error) { - return _lib._objc_msgSend_250( - _id, _lib._sel_failWithError_1, error?._id ?? ffi.nullptr); + void failWithError_(NSError error) { + _lib._objc_msgSend_261(_id, _lib._sel_failWithError_1, error._id); } /// ! @@ -28840,7 +31147,7 @@ class NSCoder extends NSObject { /// @discussion /// The default result of this property is NSDecodingFailurePolicyRaiseException, subclasses can change this to an alternative policy. int get decodingFailurePolicy { - return _lib._objc_msgSend_251(_id, _lib._sel_decodingFailurePolicy1); + return _lib._objc_msgSend_262(_id, _lib._sel_decodingFailurePolicy1); } /// ! @@ -28854,32 +31161,36 @@ class NSCoder extends NSObject { /// /// This error is consumed by a TopLevel decode API (which resets this coder back to a being able to potentially decode data). NSError? get error { - final _ret = _lib._objc_msgSend_252(_id, _lib._sel_error1); + final _ret = _lib._objc_msgSend_263(_id, _lib._sel_error1); return _ret.address == 0 ? null : NSError._(_ret, _lib, retain: true, release: true); } - void encodeNXObject_(NSObject object) { - return _lib._objc_msgSend_15(_id, _lib._sel_encodeNXObject_1, object._id); - } - - NSObject decodeNXObject() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_decodeNXObject1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - void decodeValueOfObjCType_at_( ffi.Pointer type, ffi.Pointer data) { - return _lib._objc_msgSend_18( + _lib._objc_msgSend_19( _id, _lib._sel_decodeValueOfObjCType_at_1, type, data); } + @override + NSCoder init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSCoder._(_ret, _lib, retain: true, release: true); + } + static NSCoder new1(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSCoder1, _lib._sel_new1); return NSCoder._(_ret, _lib, retain: false, release: true); } + static NSCoder allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSCoder1, _lib._sel_allocWithZone_1, zone); + return NSCoder._(_ret, _lib, retain: false, release: true); + } + static NSCoder alloc(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSCoder1, _lib._sel_alloc1); return NSCoder._(_ret, _lib, retain: false, release: true); @@ -28889,18 +31200,18 @@ class NSCoder extends NSObject { PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSCoder1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSCoder1, + _lib._objc_msgSend_15(_lib._class_NSCoder1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -28915,33 +31226,20 @@ class NSCoder extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSCoder1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSCoder1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSCoder1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSCoder1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSCoder1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( + final _ret = _lib._objc_msgSend_77( _lib._class_NSCoder1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -28982,67 +31280,63 @@ class NSData extends NSObject { } ffi.Pointer get bytes { - return _lib._objc_msgSend_19(_id, _lib._sel_bytes1); + return _lib._objc_msgSend_20(_id, _lib._sel_bytes1); } - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get description { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_description1); + return NSString._(_ret, _lib, retain: true, release: true); } void getBytes_length_(ffi.Pointer buffer, int length) { - return _lib._objc_msgSend_21( - _id, _lib._sel_getBytes_length_1, buffer, length); + _lib._objc_msgSend_22(_id, _lib._sel_getBytes_length_1, buffer, length); } void getBytes_range_(ffi.Pointer buffer, _NSRange range) { - return _lib._objc_msgSend_22( - _id, _lib._sel_getBytes_range_1, buffer, range); + _lib._objc_msgSend_23(_id, _lib._sel_getBytes_range_1, buffer, range); } - bool isEqualToData_(NSData? other) { - return _lib._objc_msgSend_23( - _id, _lib._sel_isEqualToData_1, other?._id ?? ffi.nullptr); + bool isEqualToData_(NSData other) { + return _lib._objc_msgSend_24(_id, _lib._sel_isEqualToData_1, other._id); } NSData subdataWithRange_(_NSRange range) { final _ret = - _lib._objc_msgSend_24(_id, _lib._sel_subdataWithRange_1, range); + _lib._objc_msgSend_25(_id, _lib._sel_subdataWithRange_1, range); return NSData._(_ret, _lib, retain: true, release: true); } - bool writeToFile_atomically_(NSString? path, bool useAuxiliaryFile) { - return _lib._objc_msgSend_25(_id, _lib._sel_writeToFile_atomically_1, - path?._id ?? ffi.nullptr, useAuxiliaryFile); + bool writeToFile_atomically_(NSString path, bool useAuxiliaryFile) { + return _lib._objc_msgSend_26( + _id, _lib._sel_writeToFile_atomically_1, path._id, useAuxiliaryFile); } - bool writeToURL_atomically_(NSURL? url, bool atomically) { - return _lib._objc_msgSend_117(_id, _lib._sel_writeToURL_atomically_1, - url?._id ?? ffi.nullptr, atomically); + bool writeToURL_atomically_(NSURL url, bool atomically) { + return _lib._objc_msgSend_125( + _id, _lib._sel_writeToURL_atomically_1, url._id, atomically); } - bool writeToFile_options_error_(NSString? path, int writeOptionsMask, + bool writeToFile_options_error_(NSString path, int writeOptionsMask, ffi.Pointer> errorPtr) { - return _lib._objc_msgSend_201(_id, _lib._sel_writeToFile_options_error_1, - path?._id ?? ffi.nullptr, writeOptionsMask, errorPtr); + return _lib._objc_msgSend_210(_id, _lib._sel_writeToFile_options_error_1, + path._id, writeOptionsMask, errorPtr); } - bool writeToURL_options_error_(NSURL? url, int writeOptionsMask, + bool writeToURL_options_error_(NSURL url, int writeOptionsMask, ffi.Pointer> errorPtr) { - return _lib._objc_msgSend_202(_id, _lib._sel_writeToURL_options_error_1, - url?._id ?? ffi.nullptr, writeOptionsMask, errorPtr); + return _lib._objc_msgSend_211(_id, _lib._sel_writeToURL_options_error_1, + url._id, writeOptionsMask, errorPtr); } - _NSRange rangeOfData_options_range_( - NSData? dataToFind, int mask, _NSRange searchRange) { - return _lib._objc_msgSend_203(_id, _lib._sel_rangeOfData_options_range_1, - dataToFind?._id ?? ffi.nullptr, mask, searchRange); + void rangeOfData_options_range_(ffi.Pointer<_NSRange> stret, + NSData dataToFind, int mask, _NSRange searchRange) { + _lib._objc_msgSend_212(stret, _id, _lib._sel_rangeOfData_options_range_1, + dataToFind._id, mask, searchRange); } - void enumerateByteRangesUsingBlock_(ObjCBlock11 block) { - return _lib._objc_msgSend_204( + void enumerateByteRangesUsingBlock_( + ObjCBlock_ffiVoid_ffiVoid_NSRange_bool block) { + _lib._objc_msgSend_213( _id, _lib._sel_enumerateByteRangesUsingBlock_1, block._id); } @@ -29053,220 +31347,260 @@ class NSData extends NSObject { static NSData dataWithBytes_length_( PedometerBindings _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_205( + final _ret = _lib._objc_msgSend_214( _lib._class_NSData1, _lib._sel_dataWithBytes_length_1, bytes, length); return NSData._(_ret, _lib, retain: true, release: true); } static NSData dataWithBytesNoCopy_length_( PedometerBindings _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_205(_lib._class_NSData1, + final _ret = _lib._objc_msgSend_214(_lib._class_NSData1, _lib._sel_dataWithBytesNoCopy_length_1, bytes, length); return NSData._(_ret, _lib, retain: false, release: true); } static NSData dataWithBytesNoCopy_length_freeWhenDone_( PedometerBindings _lib, ffi.Pointer bytes, int length, bool b) { - final _ret = _lib._objc_msgSend_206(_lib._class_NSData1, + final _ret = _lib._objc_msgSend_215(_lib._class_NSData1, _lib._sel_dataWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); return NSData._(_ret, _lib, retain: false, release: true); } - static NSData dataWithContentsOfFile_options_error_( + static NSData? dataWithContentsOfFile_options_error_( PedometerBindings _lib, - NSString? path, + NSString path, int readOptionsMask, ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_207( + final _ret = _lib._objc_msgSend_216( _lib._class_NSData1, _lib._sel_dataWithContentsOfFile_options_error_1, - path?._id ?? ffi.nullptr, + path._id, readOptionsMask, errorPtr); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - static NSData dataWithContentsOfURL_options_error_( + static NSData? dataWithContentsOfURL_options_error_( PedometerBindings _lib, - NSURL? url, + NSURL url, int readOptionsMask, ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_208( + final _ret = _lib._objc_msgSend_217( _lib._class_NSData1, _lib._sel_dataWithContentsOfURL_options_error_1, - url?._id ?? ffi.nullptr, + url._id, readOptionsMask, errorPtr); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - static NSData dataWithContentsOfFile_( - PedometerBindings _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSData1, - _lib._sel_dataWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); + static NSData? dataWithContentsOfFile_( + PedometerBindings _lib, NSString path) { + final _ret = _lib._objc_msgSend_38( + _lib._class_NSData1, _lib._sel_dataWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - static NSData dataWithContentsOfURL_(PedometerBindings _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_209(_lib._class_NSData1, - _lib._sel_dataWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); + static NSData? dataWithContentsOfURL_(PedometerBindings _lib, NSURL url) { + final _ret = _lib._objc_msgSend_218( + _lib._class_NSData1, _lib._sel_dataWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } NSData initWithBytes_length_(ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_205( + final _ret = _lib._objc_msgSend_214( _id, _lib._sel_initWithBytes_length_1, bytes, length); return NSData._(_ret, _lib, retain: true, release: true); } NSData initWithBytesNoCopy_length_(ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_205( + final _ret = _lib._objc_msgSend_214( _id, _lib._sel_initWithBytesNoCopy_length_1, bytes, length); return NSData._(_ret, _lib, retain: false, release: true); } NSData initWithBytesNoCopy_length_freeWhenDone_( ffi.Pointer bytes, int length, bool b) { - final _ret = _lib._objc_msgSend_206(_id, + final _ret = _lib._objc_msgSend_215(_id, _lib._sel_initWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); return NSData._(_ret, _lib, retain: false, release: true); } - NSData initWithBytesNoCopy_length_deallocator_( - ffi.Pointer bytes, int length, ObjCBlock12 deallocator) { - final _ret = _lib._objc_msgSend_210( + NSData initWithBytesNoCopy_length_deallocator_(ffi.Pointer bytes, + int length, ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong? deallocator) { + final _ret = _lib._objc_msgSend_219( _id, _lib._sel_initWithBytesNoCopy_length_deallocator_1, bytes, length, - deallocator._id); + deallocator?._id ?? ffi.nullptr); return NSData._(_ret, _lib, retain: false, release: true); } - NSData initWithContentsOfFile_options_error_(NSString? path, + NSData? initWithContentsOfFile_options_error_(NSString path, int readOptionsMask, ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_207( + final _ret = _lib._objc_msgSend_216( _id, _lib._sel_initWithContentsOfFile_options_error_1, - path?._id ?? ffi.nullptr, + path._id, readOptionsMask, errorPtr); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - NSData initWithContentsOfURL_options_error_(NSURL? url, int readOptionsMask, + NSData? initWithContentsOfURL_options_error_(NSURL url, int readOptionsMask, ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_208( + final _ret = _lib._objc_msgSend_217( _id, _lib._sel_initWithContentsOfURL_options_error_1, - url?._id ?? ffi.nullptr, + url._id, readOptionsMask, errorPtr); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - NSData initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); + NSData? initWithContentsOfFile_(NSString path) { + final _ret = _lib._objc_msgSend_38( + _id, _lib._sel_initWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - NSData initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_209( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); + NSData? initWithContentsOfURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_218(_id, _lib._sel_initWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - NSData initWithData_(NSData? data) { - final _ret = _lib._objc_msgSend_211( - _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); + NSData initWithData_(NSData data) { + final _ret = + _lib._objc_msgSend_220(_id, _lib._sel_initWithData_1, data._id); return NSData._(_ret, _lib, retain: true, release: true); } - static NSData dataWithData_(PedometerBindings _lib, NSData? data) { - final _ret = _lib._objc_msgSend_211(_lib._class_NSData1, - _lib._sel_dataWithData_1, data?._id ?? ffi.nullptr); + static NSData dataWithData_(PedometerBindings _lib, NSData data) { + final _ret = _lib._objc_msgSend_220( + _lib._class_NSData1, _lib._sel_dataWithData_1, data._id); return NSData._(_ret, _lib, retain: true, release: true); } - NSData initWithBase64EncodedString_options_( - NSString? base64String, int options) { - final _ret = _lib._objc_msgSend_212( + NSData? initWithBase64EncodedString_options_( + NSString base64String, int options) { + final _ret = _lib._objc_msgSend_221( _id, _lib._sel_initWithBase64EncodedString_options_1, - base64String?._id ?? ffi.nullptr, + base64String._id, options); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } NSString base64EncodedStringWithOptions_(int options) { - final _ret = _lib._objc_msgSend_213( + final _ret = _lib._objc_msgSend_222( _id, _lib._sel_base64EncodedStringWithOptions_1, options); return NSString._(_ret, _lib, retain: true, release: true); } - NSData initWithBase64EncodedData_options_(NSData? base64Data, int options) { - final _ret = _lib._objc_msgSend_214( - _id, - _lib._sel_initWithBase64EncodedData_options_1, - base64Data?._id ?? ffi.nullptr, - options); - return NSData._(_ret, _lib, retain: true, release: true); + NSData? initWithBase64EncodedData_options_(NSData base64Data, int options) { + final _ret = _lib._objc_msgSend_223(_id, + _lib._sel_initWithBase64EncodedData_options_1, base64Data._id, options); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } NSData base64EncodedDataWithOptions_(int options) { - final _ret = _lib._objc_msgSend_215( + final _ret = _lib._objc_msgSend_224( _id, _lib._sel_base64EncodedDataWithOptions_1, options); return NSData._(_ret, _lib, retain: true, release: true); } - NSData decompressedDataUsingAlgorithm_error_( + NSData? decompressedDataUsingAlgorithm_error_( int algorithm, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_216(_id, + final _ret = _lib._objc_msgSend_225(_id, _lib._sel_decompressedDataUsingAlgorithm_error_1, algorithm, error); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - NSData compressedDataUsingAlgorithm_error_( + NSData? compressedDataUsingAlgorithm_error_( int algorithm, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_216( + final _ret = _lib._objc_msgSend_225( _id, _lib._sel_compressedDataUsingAlgorithm_error_1, algorithm, error); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } void getBytes_(ffi.Pointer buffer) { - return _lib._objc_msgSend_47(_id, _lib._sel_getBytes_1, buffer); + _lib._objc_msgSend_52(_id, _lib._sel_getBytes_1, buffer); } - static NSObject dataWithContentsOfMappedFile_( - PedometerBindings _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSData1, - _lib._sel_dataWithContentsOfMappedFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? dataWithContentsOfMappedFile_( + PedometerBindings _lib, NSString path) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSData1, + _lib._sel_dataWithContentsOfMappedFile_1, path._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject initWithContentsOfMappedFile_(NSString? path) { - final _ret = _lib._objc_msgSend_30(_id, - _lib._sel_initWithContentsOfMappedFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? initWithContentsOfMappedFile_(NSString path) { + final _ret = _lib._objc_msgSend_38( + _id, _lib._sel_initWithContentsOfMappedFile_1, path._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject initWithBase64Encoding_(NSString? base64String) { - final _ret = _lib._objc_msgSend_30(_id, _lib._sel_initWithBase64Encoding_1, - base64String?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? initWithBase64Encoding_(NSString base64String) { + final _ret = _lib._objc_msgSend_38( + _id, _lib._sel_initWithBase64Encoding_1, base64String._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } NSString base64Encoding() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_base64Encoding1); + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_base64Encoding1); return NSString._(_ret, _lib, retain: true, release: true); } + @override + NSData init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSData._(_ret, _lib, retain: true, release: true); + } + static NSData new1(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSData1, _lib._sel_new1); return NSData._(_ret, _lib, retain: false, release: true); } + static NSData allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSData1, _lib._sel_allocWithZone_1, zone); + return NSData._(_ret, _lib, retain: false, release: true); + } + static NSData alloc(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSData1, _lib._sel_alloc1); return NSData._(_ret, _lib, retain: false, release: true); @@ -29276,18 +31610,18 @@ class NSData extends NSObject { PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSData1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSData1, + _lib._objc_msgSend_15(_lib._class_NSData1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -29302,33 +31636,20 @@ class NSData extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSData1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSData1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSData1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSData1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSData1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( + final _ret = _lib._objc_msgSend_77( _lib._class_NSData1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -29371,92 +31692,88 @@ class NSURL extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURL1); } - NSURL initWithScheme_host_path_( - NSString? scheme, NSString? host, NSString? path) { - final _ret = _lib._objc_msgSend_26( + NSURL? initWithScheme_host_path_( + NSString scheme, NSString? host, NSString path) { + final _ret = _lib._objc_msgSend_27( _id, _lib._sel_initWithScheme_host_path_1, - scheme?._id ?? ffi.nullptr, + scheme._id, host?._id ?? ffi.nullptr, - path?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + path._id); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } NSURL initFileURLWithPath_isDirectory_relativeToURL_( - NSString? path, bool isDir, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_27( + NSString path, bool isDir, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_28( _id, _lib._sel_initFileURLWithPath_isDirectory_relativeToURL_1, - path?._id ?? ffi.nullptr, + path._id, isDir, baseURL?._id ?? ffi.nullptr); return NSURL._(_ret, _lib, retain: true, release: true); } - NSURL initFileURLWithPath_relativeToURL_(NSString? path, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_28( + NSURL initFileURLWithPath_relativeToURL_(NSString path, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_29( _id, _lib._sel_initFileURLWithPath_relativeToURL_1, - path?._id ?? ffi.nullptr, + path._id, baseURL?._id ?? ffi.nullptr); return NSURL._(_ret, _lib, retain: true, release: true); } - NSURL initFileURLWithPath_isDirectory_(NSString? path, bool isDir) { - final _ret = _lib._objc_msgSend_29( - _id, - _lib._sel_initFileURLWithPath_isDirectory_1, - path?._id ?? ffi.nullptr, - isDir); + NSURL initFileURLWithPath_isDirectory_(NSString path, bool isDir) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initFileURLWithPath_isDirectory_1, path._id, isDir); return NSURL._(_ret, _lib, retain: true, release: true); } - NSURL initFileURLWithPath_(NSString? path) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initFileURLWithPath_1, path?._id ?? ffi.nullptr); + NSURL initFileURLWithPath_(NSString path) { + final _ret = + _lib._objc_msgSend_31(_id, _lib._sel_initFileURLWithPath_1, path._id); return NSURL._(_ret, _lib, retain: true, release: true); } static NSURL fileURLWithPath_isDirectory_relativeToURL_( - PedometerBindings _lib, NSString? path, bool isDir, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_31( + PedometerBindings _lib, NSString path, bool isDir, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_32( _lib._class_NSURL1, _lib._sel_fileURLWithPath_isDirectory_relativeToURL_1, - path?._id ?? ffi.nullptr, + path._id, isDir, baseURL?._id ?? ffi.nullptr); return NSURL._(_ret, _lib, retain: true, release: true); } static NSURL fileURLWithPath_relativeToURL_( - PedometerBindings _lib, NSString? path, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_32( + PedometerBindings _lib, NSString path, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_33( _lib._class_NSURL1, _lib._sel_fileURLWithPath_relativeToURL_1, - path?._id ?? ffi.nullptr, + path._id, baseURL?._id ?? ffi.nullptr); return NSURL._(_ret, _lib, retain: true, release: true); } static NSURL fileURLWithPath_isDirectory_( - PedometerBindings _lib, NSString? path, bool isDir) { - final _ret = _lib._objc_msgSend_33( - _lib._class_NSURL1, - _lib._sel_fileURLWithPath_isDirectory_1, - path?._id ?? ffi.nullptr, - isDir); + PedometerBindings _lib, NSString path, bool isDir) { + final _ret = _lib._objc_msgSend_34(_lib._class_NSURL1, + _lib._sel_fileURLWithPath_isDirectory_1, path._id, isDir); return NSURL._(_ret, _lib, retain: true, release: true); } - static NSURL fileURLWithPath_(PedometerBindings _lib, NSString? path) { - final _ret = _lib._objc_msgSend_34(_lib._class_NSURL1, - _lib._sel_fileURLWithPath_1, path?._id ?? ffi.nullptr); + static NSURL fileURLWithPath_(PedometerBindings _lib, NSString path) { + final _ret = _lib._objc_msgSend_35( + _lib._class_NSURL1, _lib._sel_fileURLWithPath_1, path._id); return NSURL._(_ret, _lib, retain: true, release: true); } NSURL initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_( ffi.Pointer path, bool isDir, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_35( + final _ret = _lib._objc_msgSend_36( _id, _lib._sel_initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_1, path, @@ -29470,7 +31787,7 @@ class NSURL extends NSObject { ffi.Pointer path, bool isDir, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_36( + final _ret = _lib._objc_msgSend_37( _lib._class_NSURL1, _lib._sel_fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_1, path, @@ -29479,184 +31796,227 @@ class NSURL extends NSObject { return NSURL._(_ret, _lib, retain: true, release: true); } - NSURL initWithString_(NSString? URLString) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, URLString?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + NSURL? initWithString_(NSString URLString) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_initWithString_1, URLString._id); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - NSURL initWithString_relativeToURL_(NSString? URLString, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_28( + NSURL? initWithString_relativeToURL_(NSString URLString, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_39( _id, _lib._sel_initWithString_relativeToURL_1, - URLString?._id ?? ffi.nullptr, + URLString._id, baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - static NSURL URLWithString_(PedometerBindings _lib, NSString? URLString) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSURL1, - _lib._sel_URLWithString_1, URLString?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + static NSURL? URLWithString_(PedometerBindings _lib, NSString URLString) { + final _ret = _lib._objc_msgSend_38( + _lib._class_NSURL1, _lib._sel_URLWithString_1, URLString._id); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - static NSURL URLWithString_relativeToURL_( - PedometerBindings _lib, NSString? URLString, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_28( + static NSURL? URLWithString_relativeToURL_( + PedometerBindings _lib, NSString URLString, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_39( _lib._class_NSURL1, _lib._sel_URLWithString_relativeToURL_1, - URLString?._id ?? ffi.nullptr, + URLString._id, baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - NSURL initWithDataRepresentation_relativeToURL_( - NSData? data, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_37( + /// Initializes an `NSURL` with a URL string and the option to add (or skip) IDNA- and percent-encoding of invalid characters. + /// If `encodingInvalidCharacters` is false, and the URL string is invalid according to RFC 3986, `nil` is returned. + /// If `encodingInvalidCharacters` is true, `NSURL` will try to encode the string to create a valid URL. + /// If the URL string is still invalid after encoding, `nil` is returned. + /// + /// - Parameter URLString: The URL string. + /// - Parameter encodingInvalidCharacters: True if `NSURL` should try to encode an invalid URL string, false otherwise. + /// - Returns: An `NSURL` instance for a valid URL, or `nil` if the URL is invalid. + NSURL? initWithString_encodingInvalidCharacters_( + NSString URLString, bool encodingInvalidCharacters) { + final _ret = _lib._objc_msgSend_40( + _id, + _lib._sel_initWithString_encodingInvalidCharacters_1, + URLString._id, + encodingInvalidCharacters); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + /// Initializes and returns a newly created `NSURL` with a URL string and the option to add (or skip) IDNA- and percent-encoding of invalid characters. + /// If `encodingInvalidCharacters` is false, and the URL string is invalid according to RFC 3986, `nil` is returned. + /// If `encodingInvalidCharacters` is true, `NSURL` will try to encode the string to create a valid URL. + /// If the URL string is still invalid after encoding, `nil` is returned. + /// + /// - Parameter URLString: The URL string. + /// - Parameter encodingInvalidCharacters: True if `NSURL` should try to encode an invalid URL string, false otherwise. + /// - Returns: An `NSURL` instance for a valid URL, or `nil` if the URL is invalid. + static NSURL? URLWithString_encodingInvalidCharacters_(PedometerBindings _lib, + NSString URLString, bool encodingInvalidCharacters) { + final _ret = _lib._objc_msgSend_40( + _lib._class_NSURL1, + _lib._sel_URLWithString_encodingInvalidCharacters_1, + URLString._id, + encodingInvalidCharacters); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL initWithDataRepresentation_relativeToURL_(NSData data, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_41( _id, _lib._sel_initWithDataRepresentation_relativeToURL_1, - data?._id ?? ffi.nullptr, + data._id, baseURL?._id ?? ffi.nullptr); return NSURL._(_ret, _lib, retain: true, release: true); } static NSURL URLWithDataRepresentation_relativeToURL_( - PedometerBindings _lib, NSData? data, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_38( + PedometerBindings _lib, NSData data, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_42( _lib._class_NSURL1, _lib._sel_URLWithDataRepresentation_relativeToURL_1, - data?._id ?? ffi.nullptr, + data._id, baseURL?._id ?? ffi.nullptr); return NSURL._(_ret, _lib, retain: true, release: true); } NSURL initAbsoluteURLWithDataRepresentation_relativeToURL_( - NSData? data, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_37( + NSData data, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_41( _id, _lib._sel_initAbsoluteURLWithDataRepresentation_relativeToURL_1, - data?._id ?? ffi.nullptr, + data._id, baseURL?._id ?? ffi.nullptr); return NSURL._(_ret, _lib, retain: true, release: true); } static NSURL absoluteURLWithDataRepresentation_relativeToURL_( - PedometerBindings _lib, NSData? data, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_38( + PedometerBindings _lib, NSData data, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_42( _lib._class_NSURL1, _lib._sel_absoluteURLWithDataRepresentation_relativeToURL_1, - data?._id ?? ffi.nullptr, + data._id, baseURL?._id ?? ffi.nullptr); return NSURL._(_ret, _lib, retain: true, release: true); } - NSData? get dataRepresentation { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_dataRepresentation1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + NSData get dataRepresentation { + final _ret = _lib._objc_msgSend_43(_id, _lib._sel_dataRepresentation1); + return NSData._(_ret, _lib, retain: true, release: true); } NSString? get absoluteString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_absoluteString1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_absoluteString1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString? get relativeString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_relativeString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get relativeString { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_relativeString1); + return NSString._(_ret, _lib, retain: true, release: true); } NSURL? get baseURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_baseURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_baseURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } NSURL? get absoluteURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_absoluteURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_absoluteURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } NSString? get scheme { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_scheme1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_scheme1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get resourceSpecifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_resourceSpecifier1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_resourceSpecifier1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get host { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_host1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_host1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSNumber? get port { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_port1); + final _ret = _lib._objc_msgSend_166(_id, _lib._sel_port1); return _ret.address == 0 ? null : NSNumber._(_ret, _lib, retain: true, release: true); } NSString? get user { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_user1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_user1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get password { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_password1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_password1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get path { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_path1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_path1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get fragment { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fragment1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_fragment1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get parameterString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_parameterString1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_parameterString1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get query { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_query1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_query1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get relativePath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_relativePath1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_relativePath1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -29668,7 +32028,7 @@ class NSURL extends NSObject { bool getFileSystemRepresentation_maxLength_( ffi.Pointer buffer, int maxBufferLength) { - return _lib._objc_msgSend_182( + return _lib._objc_msgSend_193( _id, _lib._sel_getFileSystemRepresentation_maxLength_1, buffer, @@ -29684,7 +32044,7 @@ class NSURL extends NSObject { } NSURL? get standardizedURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_standardizedURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_standardizedURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); @@ -29692,7 +32052,7 @@ class NSURL extends NSObject { bool checkResourceIsReachableAndReturnError_( ffi.Pointer> error) { - return _lib._objc_msgSend_183( + return _lib._objc_msgSend_194( _id, _lib._sel_checkResourceIsReachableAndReturnError_1, error); } @@ -29700,13 +32060,15 @@ class NSURL extends NSObject { return _lib._objc_msgSend_12(_id, _lib._sel_isFileReferenceURL1); } - NSURL fileReferenceURL() { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_fileReferenceURL1); - return NSURL._(_ret, _lib, retain: true, release: true); + NSURL? fileReferenceURL() { + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_fileReferenceURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } NSURL? get filePathURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_filePathURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_filePathURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); @@ -29716,17201 +32078,21048 @@ class NSURL extends NSObject { ffi.Pointer> value, NSString key, ffi.Pointer> error) { - return _lib._objc_msgSend_184( + return _lib._objc_msgSend_195( _id, _lib._sel_getResourceValue_forKey_error_1, value, key._id, error); } - NSObject resourceValuesForKeys_error_( - NSArray? keys, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_185( - _id, - _lib._sel_resourceValuesForKeys_error_1, - keys?._id ?? ffi.nullptr, - error); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? resourceValuesForKeys_error_( + NSArray keys, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_196( + _id, _lib._sel_resourceValuesForKeys_error_1, keys._id, error); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - bool setResourceValue_forKey_error_(NSObject value, NSString key, + bool setResourceValue_forKey_error_(NSObject? value, NSString key, ffi.Pointer> error) { - return _lib._objc_msgSend_186(_id, - _lib._sel_setResourceValue_forKey_error_1, value._id, key._id, error); + return _lib._objc_msgSend_197( + _id, + _lib._sel_setResourceValue_forKey_error_1, + value?._id ?? ffi.nullptr, + key._id, + error); } bool setResourceValues_error_( - NSObject? keyedValues, ffi.Pointer> error) { - return _lib._objc_msgSend_187(_id, _lib._sel_setResourceValues_error_1, - keyedValues?._id ?? ffi.nullptr, error); + NSObject keyedValues, ffi.Pointer> error) { + return _lib._objc_msgSend_198( + _id, _lib._sel_setResourceValues_error_1, keyedValues._id, error); } void removeCachedResourceValueForKey_(NSString key) { - return _lib._objc_msgSend_188( + _lib._objc_msgSend_199( _id, _lib._sel_removeCachedResourceValueForKey_1, key._id); } void removeAllCachedResourceValues() { - return _lib._objc_msgSend_1(_id, _lib._sel_removeAllCachedResourceValues1); + _lib._objc_msgSend_1(_id, _lib._sel_removeAllCachedResourceValues1); } - void setTemporaryResourceValue_forKey_(NSObject value, NSString key) { - return _lib._objc_msgSend_118( - _id, _lib._sel_setTemporaryResourceValue_forKey_1, value._id, key._id); + void setTemporaryResourceValue_forKey_(NSObject? value, NSString key) { + _lib._objc_msgSend_126(_id, _lib._sel_setTemporaryResourceValue_forKey_1, + value?._id ?? ffi.nullptr, key._id); } - NSData + NSData? bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_( int options, NSArray? keys, NSURL? relativeURL, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_189( + final _ret = _lib._objc_msgSend_200( _id, _lib._sel_bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_1, options, keys?._id ?? ffi.nullptr, relativeURL?._id ?? ffi.nullptr, error); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - NSURL + NSURL? initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_( - NSData? bookmarkData, + NSData bookmarkData, int options, NSURL? relativeURL, ffi.Pointer isStale, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_190( + final _ret = _lib._objc_msgSend_201( _id, _lib._sel_initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1, - bookmarkData?._id ?? ffi.nullptr, + bookmarkData._id, options, relativeURL?._id ?? ffi.nullptr, isStale, error); - return NSURL._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - static NSURL + static NSURL? URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_( PedometerBindings _lib, - NSData? bookmarkData, + NSData bookmarkData, int options, NSURL? relativeURL, ffi.Pointer isStale, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_190( + final _ret = _lib._objc_msgSend_201( _lib._class_NSURL1, _lib._sel_URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1, - bookmarkData?._id ?? ffi.nullptr, + bookmarkData._id, options, relativeURL?._id ?? ffi.nullptr, isStale, error); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + static NSObject? resourceValuesForKeys_fromBookmarkData_( + PedometerBindings _lib, NSArray keys, NSData bookmarkData) { + final _ret = _lib._objc_msgSend_202( + _lib._class_NSURL1, + _lib._sel_resourceValuesForKeys_fromBookmarkData_1, + keys._id, + bookmarkData._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + static bool writeBookmarkData_toURL_options_error_( + PedometerBindings _lib, + NSData bookmarkData, + NSURL bookmarkFileURL, + int options, + ffi.Pointer> error) { + return _lib._objc_msgSend_203( + _lib._class_NSURL1, + _lib._sel_writeBookmarkData_toURL_options_error_1, + bookmarkData._id, + bookmarkFileURL._id, + options, + error); + } + + static NSData? bookmarkDataWithContentsOfURL_error_(PedometerBindings _lib, + NSURL bookmarkFileURL, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_204( + _lib._class_NSURL1, + _lib._sel_bookmarkDataWithContentsOfURL_error_1, + bookmarkFileURL._id, + error); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); + } + + static NSURL? URLByResolvingAliasFileAtURL_options_error_( + PedometerBindings _lib, + NSURL url, + int options, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_205( + _lib._class_NSURL1, + _lib._sel_URLByResolvingAliasFileAtURL_options_error_1, + url._id, + options, + error); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + bool startAccessingSecurityScopedResource() { + return _lib._objc_msgSend_12( + _id, _lib._sel_startAccessingSecurityScopedResource1); + } + + void stopAccessingSecurityScopedResource() { + _lib._objc_msgSend_1(_id, _lib._sel_stopAccessingSecurityScopedResource1); + } + + bool getPromisedItemResourceValue_forKey_error_( + ffi.Pointer> value, + NSString key, + ffi.Pointer> error) { + return _lib._objc_msgSend_195( + _id, + _lib._sel_getPromisedItemResourceValue_forKey_error_1, + value, + key._id, + error); + } + + NSDictionary? promisedItemResourceValuesForKeys_error_( + NSArray keys, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_206(_id, + _lib._sel_promisedItemResourceValuesForKeys_error_1, keys._id, error); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + bool checkPromisedItemIsReachableAndReturnError_( + ffi.Pointer> error) { + return _lib._objc_msgSend_194( + _id, _lib._sel_checkPromisedItemIsReachableAndReturnError_1, error); + } + + static NSURL? fileURLWithPathComponents_( + PedometerBindings _lib, NSArray components) { + final _ret = _lib._objc_msgSend_207(_lib._class_NSURL1, + _lib._sel_fileURLWithPathComponents_1, components._id); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSArray? get pathComponents { + final _ret = _lib._objc_msgSend_76(_id, _lib._sel_pathComponents1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSString? get lastPathComponent { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_lastPathComponent1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get pathExtension { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_pathExtension1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSURL? URLByAppendingPathComponent_(NSString pathComponent) { + final _ret = _lib._objc_msgSend_208( + _id, _lib._sel_URLByAppendingPathComponent_1, pathComponent._id); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL? URLByAppendingPathComponent_isDirectory_( + NSString pathComponent, bool isDirectory) { + final _ret = _lib._objc_msgSend_209( + _id, + _lib._sel_URLByAppendingPathComponent_isDirectory_1, + pathComponent._id, + isDirectory); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL? get URLByDeletingLastPathComponent { + final _ret = + _lib._objc_msgSend_45(_id, _lib._sel_URLByDeletingLastPathComponent1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL? URLByAppendingPathExtension_(NSString pathExtension) { + final _ret = _lib._objc_msgSend_208( + _id, _lib._sel_URLByAppendingPathExtension_1, pathExtension._id); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL? get URLByDeletingPathExtension { + final _ret = + _lib._objc_msgSend_45(_id, _lib._sel_URLByDeletingPathExtension1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL? get URLByStandardizingPath { + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_URLByStandardizingPath1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL? get URLByResolvingSymlinksInPath { + final _ret = + _lib._objc_msgSend_45(_id, _lib._sel_URLByResolvingSymlinksInPath1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + @override + NSURL init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); return NSURL._(_ret, _lib, retain: true, release: true); } - static NSObject resourceValuesForKeys_fromBookmarkData_( - PedometerBindings _lib, NSArray? keys, NSData? bookmarkData) { - final _ret = _lib._objc_msgSend_191( - _lib._class_NSURL1, - _lib._sel_resourceValuesForKeys_fromBookmarkData_1, - keys?._id ?? ffi.nullptr, - bookmarkData?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } + static NSURL new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSURL1, _lib._sel_new1); + return NSURL._(_ret, _lib, retain: false, release: true); + } + + static NSURL allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURL1, _lib._sel_allocWithZone_1, zone); + return NSURL._(_ret, _lib, retain: false, release: true); + } + + static NSURL alloc(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSURL1, _lib._sel_alloc1); + return NSURL._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + PedometerBindings _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSURL1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument?._id ?? ffi.nullptr); + } + + static void cancelPreviousPerformRequestsWithTarget_( + PedometerBindings _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSURL1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURL1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURL1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSURL1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSURL1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); + } + + static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77( + _lib._class_NSURL1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURL1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSNumber extends NSValue { + NSNumber._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSNumber] that points to the same underlying object as [other]. + static NSNumber castFrom(T other) { + return NSNumber._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSNumber] that wraps the given raw object pointer. + static NSNumber castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSNumber._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSNumber]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSNumber1); + } + + @override + NSNumber? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); + } + + NSNumber initWithChar_(int value) { + final _ret = _lib._objc_msgSend_171(_id, _lib._sel_initWithChar_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + NSNumber initWithUnsignedChar_(int value) { + final _ret = + _lib._objc_msgSend_172(_id, _lib._sel_initWithUnsignedChar_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + NSNumber initWithShort_(int value) { + final _ret = _lib._objc_msgSend_173(_id, _lib._sel_initWithShort_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + NSNumber initWithUnsignedShort_(int value) { + final _ret = + _lib._objc_msgSend_174(_id, _lib._sel_initWithUnsignedShort_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + NSNumber initWithInt_(int value) { + final _ret = _lib._objc_msgSend_175(_id, _lib._sel_initWithInt_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + NSNumber initWithUnsignedInt_(int value) { + final _ret = + _lib._objc_msgSend_176(_id, _lib._sel_initWithUnsignedInt_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + NSNumber initWithLong_(int value) { + final _ret = _lib._objc_msgSend_177(_id, _lib._sel_initWithLong_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + NSNumber initWithUnsignedLong_(int value) { + final _ret = + _lib._objc_msgSend_178(_id, _lib._sel_initWithUnsignedLong_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + NSNumber initWithLongLong_(int value) { + final _ret = + _lib._objc_msgSend_179(_id, _lib._sel_initWithLongLong_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + NSNumber initWithUnsignedLongLong_(int value) { + final _ret = _lib._objc_msgSend_180( + _id, _lib._sel_initWithUnsignedLongLong_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + NSNumber initWithFloat_(double value) { + final _ret = _lib._objc_msgSend_181(_id, _lib._sel_initWithFloat_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + NSNumber initWithDouble_(double value) { + final _ret = _lib._objc_msgSend_182(_id, _lib._sel_initWithDouble_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + NSNumber initWithBool_(bool value) { + final _ret = _lib._objc_msgSend_183(_id, _lib._sel_initWithBool_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + NSNumber initWithInteger_(int value) { + final _ret = + _lib._objc_msgSend_177(_id, _lib._sel_initWithInteger_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + NSNumber initWithUnsignedInteger_(int value) { + final _ret = + _lib._objc_msgSend_178(_id, _lib._sel_initWithUnsignedInteger_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + int get charValue { + return _lib._objc_msgSend_184(_id, _lib._sel_charValue1); + } + + int get unsignedCharValue { + return _lib._objc_msgSend_185(_id, _lib._sel_unsignedCharValue1); + } + + int get shortValue { + return _lib._objc_msgSend_186(_id, _lib._sel_shortValue1); + } + + int get unsignedShortValue { + return _lib._objc_msgSend_187(_id, _lib._sel_unsignedShortValue1); + } + + int get intValue { + return _lib._objc_msgSend_188(_id, _lib._sel_intValue1); + } + + int get unsignedIntValue { + return _lib._objc_msgSend_165(_id, _lib._sel_unsignedIntValue1); + } + + int get longValue { + return _lib._objc_msgSend_75(_id, _lib._sel_longValue1); + } + + int get unsignedLongValue { + return _lib._objc_msgSend_10(_id, _lib._sel_unsignedLongValue1); + } + + int get longLongValue { + return _lib._objc_msgSend_189(_id, _lib._sel_longLongValue1); + } + + int get unsignedLongLongValue { + return _lib._objc_msgSend_155(_id, _lib._sel_unsignedLongLongValue1); + } + + double get floatValue { + return _lib._objc_msgSend_190(_id, _lib._sel_floatValue1); + } + + double get doubleValue { + return _lib._objc_msgSend_156(_id, _lib._sel_doubleValue1); + } + + bool get boolValue { + return _lib._objc_msgSend_12(_id, _lib._sel_boolValue1); + } + + int get integerValue { + return _lib._objc_msgSend_75(_id, _lib._sel_integerValue1); + } + + int get unsignedIntegerValue { + return _lib._objc_msgSend_10(_id, _lib._sel_unsignedIntegerValue1); + } + + NSString get stringValue { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_stringValue1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + int compare_(NSNumber otherNumber) { + return _lib._objc_msgSend_191(_id, _lib._sel_compare_1, otherNumber._id); + } + + bool isEqualToNumber_(NSNumber number) { + return _lib._objc_msgSend_192(_id, _lib._sel_isEqualToNumber_1, number._id); + } + + NSString descriptionWithLocale_(NSObject? locale) { + final _ret = _lib._objc_msgSend_62( + _id, _lib._sel_descriptionWithLocale_1, locale?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSNumber numberWithChar_(PedometerBindings _lib, int value) { + final _ret = _lib._objc_msgSend_171( + _lib._class_NSNumber1, _lib._sel_numberWithChar_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + static NSNumber numberWithUnsignedChar_(PedometerBindings _lib, int value) { + final _ret = _lib._objc_msgSend_172( + _lib._class_NSNumber1, _lib._sel_numberWithUnsignedChar_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + static NSNumber numberWithShort_(PedometerBindings _lib, int value) { + final _ret = _lib._objc_msgSend_173( + _lib._class_NSNumber1, _lib._sel_numberWithShort_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + static NSNumber numberWithUnsignedShort_(PedometerBindings _lib, int value) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSNumber1, _lib._sel_numberWithUnsignedShort_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + static NSNumber numberWithInt_(PedometerBindings _lib, int value) { + final _ret = _lib._objc_msgSend_175( + _lib._class_NSNumber1, _lib._sel_numberWithInt_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + static NSNumber numberWithUnsignedInt_(PedometerBindings _lib, int value) { + final _ret = _lib._objc_msgSend_176( + _lib._class_NSNumber1, _lib._sel_numberWithUnsignedInt_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + static NSNumber numberWithLong_(PedometerBindings _lib, int value) { + final _ret = _lib._objc_msgSend_177( + _lib._class_NSNumber1, _lib._sel_numberWithLong_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + static NSNumber numberWithUnsignedLong_(PedometerBindings _lib, int value) { + final _ret = _lib._objc_msgSend_178( + _lib._class_NSNumber1, _lib._sel_numberWithUnsignedLong_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + static NSNumber numberWithLongLong_(PedometerBindings _lib, int value) { + final _ret = _lib._objc_msgSend_179( + _lib._class_NSNumber1, _lib._sel_numberWithLongLong_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + static NSNumber numberWithUnsignedLongLong_( + PedometerBindings _lib, int value) { + final _ret = _lib._objc_msgSend_180( + _lib._class_NSNumber1, _lib._sel_numberWithUnsignedLongLong_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + static NSNumber numberWithFloat_(PedometerBindings _lib, double value) { + final _ret = _lib._objc_msgSend_181( + _lib._class_NSNumber1, _lib._sel_numberWithFloat_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + static NSNumber numberWithDouble_(PedometerBindings _lib, double value) { + final _ret = _lib._objc_msgSend_182( + _lib._class_NSNumber1, _lib._sel_numberWithDouble_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + static NSNumber numberWithBool_(PedometerBindings _lib, bool value) { + final _ret = _lib._objc_msgSend_183( + _lib._class_NSNumber1, _lib._sel_numberWithBool_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + static NSNumber numberWithInteger_(PedometerBindings _lib, int value) { + final _ret = _lib._objc_msgSend_177( + _lib._class_NSNumber1, _lib._sel_numberWithInteger_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + static NSNumber numberWithUnsignedInteger_( + PedometerBindings _lib, int value) { + final _ret = _lib._objc_msgSend_178( + _lib._class_NSNumber1, _lib._sel_numberWithUnsignedInteger_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + @override + NSNumber initWithBytes_objCType_( + ffi.Pointer value, ffi.Pointer type) { + final _ret = _lib._objc_msgSend_46( + _id, _lib._sel_initWithBytes_objCType_1, value, type); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + static NSValue valueWithBytes_objCType_(PedometerBindings _lib, + ffi.Pointer value, ffi.Pointer type) { + final _ret = _lib._objc_msgSend_48(_lib._class_NSNumber1, + _lib._sel_valueWithBytes_objCType_1, value, type); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + static NSValue value_withObjCType_(PedometerBindings _lib, + ffi.Pointer value, ffi.Pointer type) { + final _ret = _lib._objc_msgSend_48( + _lib._class_NSNumber1, _lib._sel_value_withObjCType_1, value, type); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + static NSValue valueWithNonretainedObject_( + PedometerBindings _lib, NSObject? anObject) { + final _ret = _lib._objc_msgSend_49(_lib._class_NSNumber1, + _lib._sel_valueWithNonretainedObject_1, anObject?._id ?? ffi.nullptr); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + static NSValue valueWithPointer_( + PedometerBindings _lib, ffi.Pointer pointer) { + final _ret = _lib._objc_msgSend_50( + _lib._class_NSNumber1, _lib._sel_valueWithPointer_1, pointer); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + static NSValue valueWithRange_(PedometerBindings _lib, _NSRange range) { + final _ret = _lib._objc_msgSend_53( + _lib._class_NSNumber1, _lib._sel_valueWithRange_1, range); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + @override + NSNumber init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + static NSNumber new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSNumber1, _lib._sel_new1); + return NSNumber._(_ret, _lib, retain: false, release: true); + } + + static NSNumber allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSNumber1, _lib._sel_allocWithZone_1, zone); + return NSNumber._(_ret, _lib, retain: false, release: true); + } + + static NSNumber alloc(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSNumber1, _lib._sel_alloc1); + return NSNumber._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + PedometerBindings _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSNumber1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument?._id ?? ffi.nullptr); + } + + static void cancelPreviousPerformRequestsWithTarget_( + PedometerBindings _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSNumber1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSNumber1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSNumber1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSNumber1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSNumber1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); + } + + static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77( + _lib._class_NSNumber1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSNumber1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSValue extends NSObject { + NSValue._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSValue] that points to the same underlying object as [other]. + static NSValue castFrom(T other) { + return NSValue._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSValue] that wraps the given raw object pointer. + static NSValue castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSValue._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSValue]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSValue1); + } + + void getValue_size_(ffi.Pointer value, int size) { + _lib._objc_msgSend_22(_id, _lib._sel_getValue_size_1, value, size); + } + + ffi.Pointer get objCType { + return _lib._objc_msgSend_13(_id, _lib._sel_objCType1); + } + + NSValue initWithBytes_objCType_( + ffi.Pointer value, ffi.Pointer type) { + final _ret = _lib._objc_msgSend_46( + _id, _lib._sel_initWithBytes_objCType_1, value, type); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + NSValue? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSValue._(_ret, _lib, retain: true, release: true); + } + + static NSValue valueWithBytes_objCType_(PedometerBindings _lib, + ffi.Pointer value, ffi.Pointer type) { + final _ret = _lib._objc_msgSend_48( + _lib._class_NSValue1, _lib._sel_valueWithBytes_objCType_1, value, type); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + static NSValue value_withObjCType_(PedometerBindings _lib, + ffi.Pointer value, ffi.Pointer type) { + final _ret = _lib._objc_msgSend_48( + _lib._class_NSValue1, _lib._sel_value_withObjCType_1, value, type); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + static NSValue valueWithNonretainedObject_( + PedometerBindings _lib, NSObject? anObject) { + final _ret = _lib._objc_msgSend_49(_lib._class_NSValue1, + _lib._sel_valueWithNonretainedObject_1, anObject?._id ?? ffi.nullptr); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + NSObject? get nonretainedObjectValue { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_nonretainedObjectValue1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSValue valueWithPointer_( + PedometerBindings _lib, ffi.Pointer pointer) { + final _ret = _lib._objc_msgSend_50( + _lib._class_NSValue1, _lib._sel_valueWithPointer_1, pointer); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + ffi.Pointer get pointerValue { + return _lib._objc_msgSend_20(_id, _lib._sel_pointerValue1); + } + + bool isEqualToValue_(NSValue value) { + return _lib._objc_msgSend_51(_id, _lib._sel_isEqualToValue_1, value._id); + } + + void getValue_(ffi.Pointer value) { + _lib._objc_msgSend_52(_id, _lib._sel_getValue_1, value); + } + + static NSValue valueWithRange_(PedometerBindings _lib, _NSRange range) { + final _ret = _lib._objc_msgSend_53( + _lib._class_NSValue1, _lib._sel_valueWithRange_1, range); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + void getRangeValue(ffi.Pointer<_NSRange> stret) { + _lib._objc_msgSend_54(stret, _id, _lib._sel_rangeValue1); + } + + @override + NSValue init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + static NSValue new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSValue1, _lib._sel_new1); + return NSValue._(_ret, _lib, retain: false, release: true); + } + + static NSValue allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSValue1, _lib._sel_allocWithZone_1, zone); + return NSValue._(_ret, _lib, retain: false, release: true); + } + + static NSValue alloc(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSValue1, _lib._sel_alloc1); + return NSValue._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + PedometerBindings _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSValue1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument?._id ?? ffi.nullptr); + } + + static void cancelPreviousPerformRequestsWithTarget_( + PedometerBindings _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSValue1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSValue1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSValue1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSValue1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSValue1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); + } + + static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77( + _lib._class_NSValue1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSValue1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +/// Immutable Array +class NSArray extends NSObject { + NSArray._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSArray] that points to the same underlying object as [other]. + static NSArray castFrom(T other) { + return NSArray._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSArray] that wraps the given raw object pointer. + static NSArray castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSArray._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSArray]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSArray1); + } + + int get count { + return _lib._objc_msgSend_10(_id, _lib._sel_count1); + } + + NSObject objectAtIndex_(int index) { + final _ret = _lib._objc_msgSend_57(_id, _lib._sel_objectAtIndex_1, index); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + @override + NSArray init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray initWithObjects_count_( + ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_58( + _id, _lib._sel_initWithObjects_count_1, objects, cnt); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray arrayByAddingObject_(NSObject anObject) { + final _ret = _lib._objc_msgSend_59( + _id, _lib._sel_arrayByAddingObject_1, anObject._id); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray arrayByAddingObjectsFromArray_(NSArray otherArray) { + final _ret = _lib._objc_msgSend_60( + _id, _lib._sel_arrayByAddingObjectsFromArray_1, otherArray._id); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSString componentsJoinedByString_(NSString separator) { + final _ret = _lib._objc_msgSend_61( + _id, _lib._sel_componentsJoinedByString_1, separator._id); + return NSString._(_ret, _lib, retain: true, release: true); + } + + bool containsObject_(NSObject anObject) { + return _lib._objc_msgSend_0(_id, _lib._sel_containsObject_1, anObject._id); + } + + NSString get description { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_description1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString descriptionWithLocale_(NSObject? locale) { + final _ret = _lib._objc_msgSend_62( + _id, _lib._sel_descriptionWithLocale_1, locale?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString descriptionWithLocale_indent_(NSObject? locale, int level) { + final _ret = _lib._objc_msgSend_63( + _id, + _lib._sel_descriptionWithLocale_indent_1, + locale?._id ?? ffi.nullptr, + level); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSObject? firstObjectCommonWithArray_(NSArray otherArray) { + final _ret = _lib._objc_msgSend_64( + _id, _lib._sel_firstObjectCommonWithArray_1, otherArray._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + void getObjects_range_( + ffi.Pointer> objects, _NSRange range) { + _lib._objc_msgSend_65(_id, _lib._sel_getObjects_range_1, objects, range); + } + + int indexOfObject_(NSObject anObject) { + return _lib._objc_msgSend_66(_id, _lib._sel_indexOfObject_1, anObject._id); + } + + int indexOfObject_inRange_(NSObject anObject, _NSRange range) { + return _lib._objc_msgSend_67( + _id, _lib._sel_indexOfObject_inRange_1, anObject._id, range); + } + + int indexOfObjectIdenticalTo_(NSObject anObject) { + return _lib._objc_msgSend_66( + _id, _lib._sel_indexOfObjectIdenticalTo_1, anObject._id); + } + + int indexOfObjectIdenticalTo_inRange_(NSObject anObject, _NSRange range) { + return _lib._objc_msgSend_67( + _id, _lib._sel_indexOfObjectIdenticalTo_inRange_1, anObject._id, range); + } + + bool isEqualToArray_(NSArray otherArray) { + return _lib._objc_msgSend_68( + _id, _lib._sel_isEqualToArray_1, otherArray._id); + } + + NSObject? get firstObject { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_firstObject1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject? get lastObject { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_lastObject1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + NSEnumerator objectEnumerator() { + final _ret = _lib._objc_msgSend_69(_id, _lib._sel_objectEnumerator1); + return NSEnumerator._(_ret, _lib, retain: true, release: true); + } + + NSEnumerator reverseObjectEnumerator() { + final _ret = _lib._objc_msgSend_69(_id, _lib._sel_reverseObjectEnumerator1); + return NSEnumerator._(_ret, _lib, retain: true, release: true); + } + + NSData get sortedArrayHint { + final _ret = _lib._objc_msgSend_43(_id, _lib._sel_sortedArrayHint1); + return NSData._(_ret, _lib, retain: true, release: true); + } + + NSArray sortedArrayUsingFunction_context_( + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>> + comparator, + ffi.Pointer context) { + final _ret = _lib._objc_msgSend_70( + _id, _lib._sel_sortedArrayUsingFunction_context_1, comparator, context); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray sortedArrayUsingFunction_context_hint_( + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>> + comparator, + ffi.Pointer context, + NSData? hint) { + final _ret = _lib._objc_msgSend_71( + _id, + _lib._sel_sortedArrayUsingFunction_context_hint_1, + comparator, + context, + hint?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray sortedArrayUsingSelector_(ffi.Pointer comparator) { + final _ret = _lib._objc_msgSend_72( + _id, _lib._sel_sortedArrayUsingSelector_1, comparator); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray subarrayWithRange_(_NSRange range) { + final _ret = + _lib._objc_msgSend_73(_id, _lib._sel_subarrayWithRange_1, range); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + bool writeToURL_error_( + NSURL url, ffi.Pointer> error) { + return _lib._objc_msgSend_80( + _id, _lib._sel_writeToURL_error_1, url._id, error); + } + + void makeObjectsPerformSelector_(ffi.Pointer aSelector) { + _lib._objc_msgSend_7( + _id, _lib._sel_makeObjectsPerformSelector_1, aSelector); + } + + void makeObjectsPerformSelector_withObject_( + ffi.Pointer aSelector, NSObject? argument) { + _lib._objc_msgSend_81( + _id, + _lib._sel_makeObjectsPerformSelector_withObject_1, + aSelector, + argument?._id ?? ffi.nullptr); + } + + NSArray objectsAtIndexes_(NSIndexSet indexes) { + final _ret = + _lib._objc_msgSend_102(_id, _lib._sel_objectsAtIndexes_1, indexes._id); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSObject objectAtIndexedSubscript_(int idx) { + final _ret = + _lib._objc_msgSend_57(_id, _lib._sel_objectAtIndexedSubscript_1, idx); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + void enumerateObjectsUsingBlock_( + ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool block) { + _lib._objc_msgSend_103( + _id, _lib._sel_enumerateObjectsUsingBlock_1, block._id); + } + + void enumerateObjectsWithOptions_usingBlock_( + int opts, ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool block) { + _lib._objc_msgSend_104(_id, + _lib._sel_enumerateObjectsWithOptions_usingBlock_1, opts, block._id); + } + + void enumerateObjectsAtIndexes_options_usingBlock_(NSIndexSet s, int opts, + ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool block) { + _lib._objc_msgSend_105( + _id, + _lib._sel_enumerateObjectsAtIndexes_options_usingBlock_1, + s._id, + opts, + block._id); + } + + int indexOfObjectPassingTest_( + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_106( + _id, _lib._sel_indexOfObjectPassingTest_1, predicate._id); + } + + int indexOfObjectWithOptions_passingTest_( + int opts, ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_107(_id, + _lib._sel_indexOfObjectWithOptions_passingTest_1, opts, predicate._id); + } + + int indexOfObjectAtIndexes_options_passingTest_(NSIndexSet s, int opts, + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_108( + _id, + _lib._sel_indexOfObjectAtIndexes_options_passingTest_1, + s._id, + opts, + predicate._id); + } + + NSIndexSet indexesOfObjectsPassingTest_( + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + final _ret = _lib._objc_msgSend_109( + _id, _lib._sel_indexesOfObjectsPassingTest_1, predicate._id); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + NSIndexSet indexesOfObjectsWithOptions_passingTest_( + int opts, ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + final _ret = _lib._objc_msgSend_110( + _id, + _lib._sel_indexesOfObjectsWithOptions_passingTest_1, + opts, + predicate._id); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + NSIndexSet indexesOfObjectsAtIndexes_options_passingTest_(NSIndexSet s, + int opts, ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + final _ret = _lib._objc_msgSend_111( + _id, + _lib._sel_indexesOfObjectsAtIndexes_options_passingTest_1, + s._id, + opts, + predicate._id); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + NSArray sortedArrayUsingComparator_( + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + final _ret = _lib._objc_msgSend_112( + _id, _lib._sel_sortedArrayUsingComparator_1, cmptr._id); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray sortedArrayWithOptions_usingComparator_( + int opts, ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + final _ret = _lib._objc_msgSend_113(_id, + _lib._sel_sortedArrayWithOptions_usingComparator_1, opts, cmptr._id); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + int indexOfObject_inSortedRange_options_usingComparator_( + NSObject obj, + _NSRange r, + int opts, + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmp) { + return _lib._objc_msgSend_114( + _id, + _lib._sel_indexOfObject_inSortedRange_options_usingComparator_1, + obj._id, + r, + opts, + cmp._id); + } + + static NSArray array(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSArray1, _lib._sel_array1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray arrayWithObject_(PedometerBindings _lib, NSObject anObject) { + final _ret = _lib._objc_msgSend_115( + _lib._class_NSArray1, _lib._sel_arrayWithObject_1, anObject._id); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray arrayWithObjects_count_(PedometerBindings _lib, + ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSArray1, _lib._sel_arrayWithObjects_count_1, objects, cnt); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray arrayWithObjects_(PedometerBindings _lib, NSObject firstObj) { + final _ret = _lib._objc_msgSend_115( + _lib._class_NSArray1, _lib._sel_arrayWithObjects_1, firstObj._id); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray arrayWithArray_(PedometerBindings _lib, NSArray array) { + final _ret = _lib._objc_msgSend_116( + _lib._class_NSArray1, _lib._sel_arrayWithArray_1, array._id); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray initWithObjects_(NSObject firstObj) { + final _ret = + _lib._objc_msgSend_115(_id, _lib._sel_initWithObjects_1, firstObj._id); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray initWithArray_(NSArray array) { + final _ret = + _lib._objc_msgSend_116(_id, _lib._sel_initWithArray_1, array._id); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray initWithArray_copyItems_(NSArray array, bool flag) { + final _ret = _lib._objc_msgSend_117( + _id, _lib._sel_initWithArray_copyItems_1, array._id, flag); + return NSArray._(_ret, _lib, retain: false, release: true); + } + + NSArray? initWithContentsOfURL_error_( + NSURL url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_118( + _id, _lib._sel_initWithContentsOfURL_error_1, url._id, error); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray? arrayWithContentsOfURL_error_(PedometerBindings _lib, + NSURL url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_118(_lib._class_NSArray1, + _lib._sel_arrayWithContentsOfURL_error_1, url._id, error); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSObject differenceFromArray_withOptions_usingEquivalenceTest_( + NSArray other, int options, ObjCBlock_bool_ObjCObject_ObjCObject block) { + final _ret = _lib._objc_msgSend_119( + _id, + _lib._sel_differenceFromArray_withOptions_usingEquivalenceTest_1, + other._id, + options, + block._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject differenceFromArray_withOptions_(NSArray other, int options) { + final _ret = _lib._objc_msgSend_120( + _id, _lib._sel_differenceFromArray_withOptions_1, other._id, options); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject differenceFromArray_(NSArray other) { + final _ret = + _lib._objc_msgSend_116(_id, _lib._sel_differenceFromArray_1, other._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSArray? arrayByApplyingDifference_(NSObject difference) { + final _ret = _lib._objc_msgSend_121( + _id, _lib._sel_arrayByApplyingDifference_1, difference._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + void getObjects_(ffi.Pointer> objects) { + _lib._objc_msgSend_122(_id, _lib._sel_getObjects_1, objects); + } + + static NSArray? arrayWithContentsOfFile_( + PedometerBindings _lib, NSString path) { + final _ret = _lib._objc_msgSend_123( + _lib._class_NSArray1, _lib._sel_arrayWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray? arrayWithContentsOfURL_(PedometerBindings _lib, NSURL url) { + final _ret = _lib._objc_msgSend_124( + _lib._class_NSArray1, _lib._sel_arrayWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? initWithContentsOfFile_(NSString path) { + final _ret = _lib._objc_msgSend_123( + _id, _lib._sel_initWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? initWithContentsOfURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_124(_id, _lib._sel_initWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + bool writeToFile_atomically_(NSString path, bool useAuxiliaryFile) { + return _lib._objc_msgSend_26( + _id, _lib._sel_writeToFile_atomically_1, path._id, useAuxiliaryFile); + } + + bool writeToURL_atomically_(NSURL url, bool atomically) { + return _lib._objc_msgSend_125( + _id, _lib._sel_writeToURL_atomically_1, url._id, atomically); + } + + NSArray pathsMatchingExtensions_(NSArray filterTypes) { + final _ret = _lib._objc_msgSend_60( + _id, _lib._sel_pathsMatchingExtensions_1, filterTypes._id); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSObject valueForKey_(NSString key) { + final _ret = _lib._objc_msgSend_31(_id, _lib._sel_valueForKey_1, key._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + @override + void setValue_forKey_(NSObject? value, NSString key) { + _lib._objc_msgSend_126( + _id, _lib._sel_setValue_forKey_1, value?._id ?? ffi.nullptr, key._id); + } + + void addObserver_toObjectsAtIndexes_forKeyPath_options_context_( + NSObject observer, + NSIndexSet indexes, + NSString keyPath, + int options, + ffi.Pointer context) { + _lib._objc_msgSend_127( + _id, + _lib._sel_addObserver_toObjectsAtIndexes_forKeyPath_options_context_1, + observer._id, + indexes._id, + keyPath._id, + options, + context); + } + + void removeObserver_fromObjectsAtIndexes_forKeyPath_context_( + NSObject observer, + NSIndexSet indexes, + NSString keyPath, + ffi.Pointer context) { + _lib._objc_msgSend_128( + _id, + _lib._sel_removeObserver_fromObjectsAtIndexes_forKeyPath_context_1, + observer._id, + indexes._id, + keyPath._id, + context); + } + + void removeObserver_fromObjectsAtIndexes_forKeyPath_( + NSObject observer, NSIndexSet indexes, NSString keyPath) { + _lib._objc_msgSend_129( + _id, + _lib._sel_removeObserver_fromObjectsAtIndexes_forKeyPath_1, + observer._id, + indexes._id, + keyPath._id); + } + + @override + void addObserver_forKeyPath_options_context_(NSObject observer, + NSString keyPath, int options, ffi.Pointer context) { + _lib._objc_msgSend_130( + _id, + _lib._sel_addObserver_forKeyPath_options_context_1, + observer._id, + keyPath._id, + options, + context); + } + + @override + void removeObserver_forKeyPath_context_( + NSObject observer, NSString keyPath, ffi.Pointer context) { + _lib._objc_msgSend_131(_id, _lib._sel_removeObserver_forKeyPath_context_1, + observer._id, keyPath._id, context); + } + + @override + void removeObserver_forKeyPath_(NSObject observer, NSString keyPath) { + _lib._objc_msgSend_132( + _id, _lib._sel_removeObserver_forKeyPath_1, observer._id, keyPath._id); + } + + NSArray sortedArrayUsingDescriptors_(NSArray sortDescriptors) { + final _ret = _lib._objc_msgSend_60( + _id, _lib._sel_sortedArrayUsingDescriptors_1, sortDescriptors._id); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray filteredArrayUsingPredicate_(NSPredicate predicate) { + final _ret = _lib._objc_msgSend_170( + _id, _lib._sel_filteredArrayUsingPredicate_1, predicate._id); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSArray1, _lib._sel_new1); + return NSArray._(_ret, _lib, retain: false, release: true); + } + + static NSArray allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSArray1, _lib._sel_allocWithZone_1, zone); + return NSArray._(_ret, _lib, retain: false, release: true); + } + + static NSArray alloc(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSArray1, _lib._sel_alloc1); + return NSArray._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + PedometerBindings _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSArray1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument?._id ?? ffi.nullptr); + } + + static void cancelPreviousPerformRequestsWithTarget_( + PedometerBindings _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSArray1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSArray1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSArray1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSArray1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSArray1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); + } + + static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77( + _lib._class_NSArray1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSArray1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSError extends NSObject { + NSError._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSError] that points to the same underlying object as [other]. + static NSError castFrom(T other) { + return NSError._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSError] that wraps the given raw object pointer. + static NSError castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSError._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSError]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSError1); + } + + NSError initWithDomain_code_userInfo_( + NSString domain, int code, NSObject? dict) { + final _ret = _lib._objc_msgSend_74( + _id, + _lib._sel_initWithDomain_code_userInfo_1, + domain._id, + code, + dict?._id ?? ffi.nullptr); + return NSError._(_ret, _lib, retain: true, release: true); + } + + static NSError errorWithDomain_code_userInfo_( + PedometerBindings _lib, NSString domain, int code, NSObject? dict) { + final _ret = _lib._objc_msgSend_74( + _lib._class_NSError1, + _lib._sel_errorWithDomain_code_userInfo_1, + domain._id, + code, + dict?._id ?? ffi.nullptr); + return NSError._(_ret, _lib, retain: true, release: true); + } + + NSString get domain { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_domain1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + int get code { + return _lib._objc_msgSend_75(_id, _lib._sel_code1); + } + + NSObject get userInfo { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_userInfo1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSString get localizedDescription { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_localizedDescription1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get localizedFailureReason { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_localizedFailureReason1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get localizedRecoverySuggestion { + final _ret = + _lib._objc_msgSend_44(_id, _lib._sel_localizedRecoverySuggestion1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSArray? get localizedRecoveryOptions { + final _ret = + _lib._objc_msgSend_76(_id, _lib._sel_localizedRecoveryOptions1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSObject? get recoveryAttempter { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_recoveryAttempter1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + NSString? get helpAnchor { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_helpAnchor1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSArray get underlyingErrors { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_underlyingErrors1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static void setUserInfoValueProviderForDomain_provider_( + PedometerBindings _lib, + NSString errorDomain, + ObjCBlock_ObjCObject_NSError_NSString? provider) { + _lib._objc_msgSend_78( + _lib._class_NSError1, + _lib._sel_setUserInfoValueProviderForDomain_provider_1, + errorDomain._id, + provider?._id ?? ffi.nullptr); + } + + static ObjCBlock_ObjCObject_NSError_NSString? userInfoValueProviderForDomain_( + PedometerBindings _lib, + NSError err, + NSString userInfoKey, + NSString errorDomain) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSError1, + _lib._sel_userInfoValueProviderForDomain_1, + err._id, + userInfoKey._id, + errorDomain._id); + return _ret.address == 0 + ? null + : ObjCBlock_ObjCObject_NSError_NSString._(_ret, _lib, + retain: true, release: true); + } + + @override + NSError init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSError._(_ret, _lib, retain: true, release: true); + } + + static NSError new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSError1, _lib._sel_new1); + return NSError._(_ret, _lib, retain: false, release: true); + } + + static NSError allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSError1, _lib._sel_allocWithZone_1, zone); + return NSError._(_ret, _lib, retain: false, release: true); + } + + static NSError alloc(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSError1, _lib._sel_alloc1); + return NSError._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + PedometerBindings _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSError1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument?._id ?? ffi.nullptr); + } + + static void cancelPreviousPerformRequestsWithTarget_( + PedometerBindings _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSError1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSError1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSError1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSError1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSError1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); + } + + static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77( + _lib._class_NSError1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSError1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class _ObjCBlockBase implements ffi.Finalizable { + final ffi.Pointer<_ObjCBlock> _id; + final PedometerBindings _lib; + bool _pendingRelease; + + _ObjCBlockBase._(this._id, this._lib, + {bool retain = false, bool release = false}) + : _pendingRelease = release { + if (retain) { + _lib._Block_copy(_id.cast()); + } + if (release) { + _lib._objc_releaseFinalizer11.attach(this, _id.cast(), detach: this); + } + } + + /// Releases the reference to the underlying ObjC block held by this wrapper. + /// Throws a StateError if this wrapper doesn't currently hold a reference. + void release() { + if (_pendingRelease) { + _pendingRelease = false; + _lib._Block_release(_id.cast()); + _lib._objc_releaseFinalizer11.detach(this); + } else { + throw StateError( + 'Released an ObjC block that was unowned or already released.'); + } + } + + @override + bool operator ==(Object other) { + return other is _ObjCBlockBase && _id == other._id; + } + + @override + int get hashCode => _id.hashCode; + + /// Return a pointer to this object. + ffi.Pointer<_ObjCBlock> get pointer => _id; + + ffi.Pointer<_ObjCBlock> _retainAndReturnId() { + _lib._Block_copy(_id.cast()); + return _id; + } +} + +ffi.Pointer _ObjCBlock_ObjCObject_NSError_NSString_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer)>()(arg0, arg1); +final _ObjCBlock_ObjCObject_NSError_NSString_closureRegistry = Function( + ffi.Pointer, ffi.Pointer)>{}; +int _ObjCBlock_ObjCObject_NSError_NSString_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ObjCObject_NSError_NSString_registerClosure( + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer) + fn) { + final id = ++_ObjCBlock_ObjCObject_NSError_NSString_closureRegistryIndex; + _ObjCBlock_ObjCObject_NSError_NSString_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +ffi.Pointer + _ObjCBlock_ObjCObject_NSError_NSString_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_ObjCObject_NSError_NSString_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_ObjCObject_NSError_NSString extends _ObjCBlockBase { + ObjCBlock_ObjCObject_NSError_NSString._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ObjCObject_NSError_NSString.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ObjCObject_NSError_NSString_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ObjCObject_NSError_NSString.fromFunction( + PedometerBindings lib, NSObject? Function(NSError, NSString) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ObjCObject_NSError_NSString_closureTrampoline) + .cast(), + _ObjCBlock_ObjCObject_NSError_NSString_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(NSError._(arg0, lib, retain: true, release: true), NSString._(arg1, lib, retain: true, release: true)) + ?._retainAndReturnId() ?? + ffi.nullptr)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + NSObject? call(NSError arg0, NSString arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, ffi.Pointer)>() + (_id, arg0._id, arg1._id) + .address == + 0 + ? null + : NSObject._( + _id.ref.invoke + .cast Function(ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1)>>() + .asFunction Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, ffi.Pointer)>()(_id, arg0._id, arg1._id), + _lib, + retain: false, + release: true); +} + +final class _ObjCBlockDesc extends ffi.Struct { + @ffi.UnsignedLong() + external int reserved; + + @ffi.UnsignedLong() + external int size; + + external ffi.Pointer copy_helper; + + external ffi.Pointer dispose_helper; + + external ffi.Pointer signature; +} + +final class _ObjCBlock extends ffi.Struct { + external ffi.Pointer isa; + + @ffi.Int() + external int flags; + + @ffi.Int() + external int reserved; + + external ffi.Pointer invoke; + + external ffi.Pointer<_ObjCBlockDesc> descriptor; + + external ffi.Pointer target; +} + +class NSIndexSet extends NSObject { + NSIndexSet._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSIndexSet] that points to the same underlying object as [other]. + static NSIndexSet castFrom(T other) { + return NSIndexSet._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSIndexSet] that wraps the given raw object pointer. + static NSIndexSet castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSIndexSet._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSIndexSet]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSIndexSet1); + } + + static NSIndexSet indexSet(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSIndexSet1, _lib._sel_indexSet1); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + static NSIndexSet indexSetWithIndex_(PedometerBindings _lib, int value) { + final _ret = _lib._objc_msgSend_57( + _lib._class_NSIndexSet1, _lib._sel_indexSetWithIndex_1, value); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + static NSIndexSet indexSetWithIndexesInRange_( + PedometerBindings _lib, _NSRange range) { + final _ret = _lib._objc_msgSend_82( + _lib._class_NSIndexSet1, _lib._sel_indexSetWithIndexesInRange_1, range); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + NSIndexSet initWithIndexesInRange_(_NSRange range) { + final _ret = + _lib._objc_msgSend_82(_id, _lib._sel_initWithIndexesInRange_1, range); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + NSIndexSet initWithIndexSet_(NSIndexSet indexSet) { + final _ret = + _lib._objc_msgSend_83(_id, _lib._sel_initWithIndexSet_1, indexSet._id); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + NSIndexSet initWithIndex_(int value) { + final _ret = _lib._objc_msgSend_57(_id, _lib._sel_initWithIndex_1, value); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + bool isEqualToIndexSet_(NSIndexSet indexSet) { + return _lib._objc_msgSend_84( + _id, _lib._sel_isEqualToIndexSet_1, indexSet._id); + } + + int get count { + return _lib._objc_msgSend_10(_id, _lib._sel_count1); + } + + int get firstIndex { + return _lib._objc_msgSend_10(_id, _lib._sel_firstIndex1); + } + + int get lastIndex { + return _lib._objc_msgSend_10(_id, _lib._sel_lastIndex1); + } + + int indexGreaterThanIndex_(int value) { + return _lib._objc_msgSend_85(_id, _lib._sel_indexGreaterThanIndex_1, value); + } + + int indexLessThanIndex_(int value) { + return _lib._objc_msgSend_85(_id, _lib._sel_indexLessThanIndex_1, value); + } + + int indexGreaterThanOrEqualToIndex_(int value) { + return _lib._objc_msgSend_85( + _id, _lib._sel_indexGreaterThanOrEqualToIndex_1, value); + } + + int indexLessThanOrEqualToIndex_(int value) { + return _lib._objc_msgSend_85( + _id, _lib._sel_indexLessThanOrEqualToIndex_1, value); + } + + int getIndexes_maxCount_inIndexRange_( + ffi.Pointer indexBuffer, + int bufferSize, + ffi.Pointer<_NSRange> range) { + return _lib._objc_msgSend_86( + _id, + _lib._sel_getIndexes_maxCount_inIndexRange_1, + indexBuffer, + bufferSize, + range); + } + + int countOfIndexesInRange_(_NSRange range) { + return _lib._objc_msgSend_87(_id, _lib._sel_countOfIndexesInRange_1, range); + } + + bool containsIndex_(int value) { + return _lib._objc_msgSend_88(_id, _lib._sel_containsIndex_1, value); + } + + bool containsIndexesInRange_(_NSRange range) { + return _lib._objc_msgSend_89( + _id, _lib._sel_containsIndexesInRange_1, range); + } + + bool containsIndexes_(NSIndexSet indexSet) { + return _lib._objc_msgSend_84( + _id, _lib._sel_containsIndexes_1, indexSet._id); + } + + bool intersectsIndexesInRange_(_NSRange range) { + return _lib._objc_msgSend_89( + _id, _lib._sel_intersectsIndexesInRange_1, range); + } + + void enumerateIndexesUsingBlock_( + ObjCBlock_ffiVoid_ffiUnsignedLong_bool block) { + _lib._objc_msgSend_90( + _id, _lib._sel_enumerateIndexesUsingBlock_1, block._id); + } + + void enumerateIndexesWithOptions_usingBlock_( + int opts, ObjCBlock_ffiVoid_ffiUnsignedLong_bool block) { + _lib._objc_msgSend_91(_id, + _lib._sel_enumerateIndexesWithOptions_usingBlock_1, opts, block._id); + } + + void enumerateIndexesInRange_options_usingBlock_( + _NSRange range, int opts, ObjCBlock_ffiVoid_ffiUnsignedLong_bool block) { + _lib._objc_msgSend_92( + _id, + _lib._sel_enumerateIndexesInRange_options_usingBlock_1, + range, + opts, + block._id); + } + + int indexPassingTest_(ObjCBlock_bool_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_93( + _id, _lib._sel_indexPassingTest_1, predicate._id); + } + + int indexWithOptions_passingTest_( + int opts, ObjCBlock_bool_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_94( + _id, _lib._sel_indexWithOptions_passingTest_1, opts, predicate._id); + } + + int indexInRange_options_passingTest_( + _NSRange range, int opts, ObjCBlock_bool_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_95( + _id, + _lib._sel_indexInRange_options_passingTest_1, + range, + opts, + predicate._id); + } + + NSIndexSet indexesPassingTest_( + ObjCBlock_bool_ffiUnsignedLong_bool predicate) { + final _ret = _lib._objc_msgSend_96( + _id, _lib._sel_indexesPassingTest_1, predicate._id); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + NSIndexSet indexesWithOptions_passingTest_( + int opts, ObjCBlock_bool_ffiUnsignedLong_bool predicate) { + final _ret = _lib._objc_msgSend_97( + _id, _lib._sel_indexesWithOptions_passingTest_1, opts, predicate._id); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + NSIndexSet indexesInRange_options_passingTest_( + _NSRange range, int opts, ObjCBlock_bool_ffiUnsignedLong_bool predicate) { + final _ret = _lib._objc_msgSend_98( + _id, + _lib._sel_indexesInRange_options_passingTest_1, + range, + opts, + predicate._id); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + void enumerateRangesUsingBlock_(ObjCBlock_ffiVoid_NSRange_bool block) { + _lib._objc_msgSend_99( + _id, _lib._sel_enumerateRangesUsingBlock_1, block._id); + } + + void enumerateRangesWithOptions_usingBlock_( + int opts, ObjCBlock_ffiVoid_NSRange_bool block) { + _lib._objc_msgSend_100(_id, + _lib._sel_enumerateRangesWithOptions_usingBlock_1, opts, block._id); + } + + void enumerateRangesInRange_options_usingBlock_( + _NSRange range, int opts, ObjCBlock_ffiVoid_NSRange_bool block) { + _lib._objc_msgSend_101( + _id, + _lib._sel_enumerateRangesInRange_options_usingBlock_1, + range, + opts, + block._id); + } + + @override + NSIndexSet init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + static NSIndexSet new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSIndexSet1, _lib._sel_new1); + return NSIndexSet._(_ret, _lib, retain: false, release: true); + } + + static NSIndexSet allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSIndexSet1, _lib._sel_allocWithZone_1, zone); + return NSIndexSet._(_ret, _lib, retain: false, release: true); + } + + static NSIndexSet alloc(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSIndexSet1, _lib._sel_alloc1); + return NSIndexSet._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + PedometerBindings _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSIndexSet1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument?._id ?? ffi.nullptr); + } + + static void cancelPreviousPerformRequestsWithTarget_( + PedometerBindings _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSIndexSet1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSIndexSet1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSIndexSet1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSIndexSet1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSIndexSet1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); + } + + static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77( + _lib._class_NSIndexSet1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSIndexSet1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +void _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.UnsignedLong arg0, ffi.Pointer arg1)>>() + .asFunction)>()(arg0, arg1); +final _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_registerClosure( + void Function(int, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_ffiVoid_ffiUnsignedLong_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ffiUnsignedLong_bool._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ffiUnsignedLong_bool.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.UnsignedLong arg0, ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.UnsignedLong, ffi.Pointer)>( + _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ffiUnsignedLong_bool.fromFunction( + PedometerBindings lib, void Function(int, ffi.Pointer) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.UnsignedLong, ffi.Pointer)>( + _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_registerClosure( + (int arg0, ffi.Pointer arg1) => fn(arg0, arg1))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_ffiUnsignedLong_bool.listener( + PedometerBindings lib, void Function(int, ffi.Pointer) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.UnsignedLong, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_registerClosure( + (int arg0, ffi.Pointer arg1) => fn(arg0, arg1))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.UnsignedLong, + ffi.Pointer)>? _dartFuncListenerTrampoline; + + void call(int arg0, ffi.Pointer arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.UnsignedLong arg0, ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, int, + ffi.Pointer)>()(_id, arg0, arg1); +} + +abstract class NSEnumerationOptions { + static const int NSEnumerationConcurrent = 1; + static const int NSEnumerationReverse = 2; +} + +bool _ObjCBlock_bool_ffiUnsignedLong_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.UnsignedLong arg0, ffi.Pointer arg1)>>() + .asFunction)>()(arg0, arg1); +final _ObjCBlock_bool_ffiUnsignedLong_bool_closureRegistry = + )>{}; +int _ObjCBlock_bool_ffiUnsignedLong_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_bool_ffiUnsignedLong_bool_registerClosure( + bool Function(int, ffi.Pointer) fn) { + final id = ++_ObjCBlock_bool_ffiUnsignedLong_bool_closureRegistryIndex; + _ObjCBlock_bool_ffiUnsignedLong_bool_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +bool _ObjCBlock_bool_ffiUnsignedLong_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) => + _ObjCBlock_bool_ffiUnsignedLong_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_bool_ffiUnsignedLong_bool extends _ObjCBlockBase { + ObjCBlock_bool_ffiUnsignedLong_bool._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ffiUnsignedLong_bool.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.UnsignedLong arg0, ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function(ffi.Pointer<_ObjCBlock>, + ffi.UnsignedLong, ffi.Pointer)>( + _ObjCBlock_bool_ffiUnsignedLong_bool_fnPtrTrampoline, + false) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ffiUnsignedLong_bool.fromFunction( + PedometerBindings lib, bool Function(int, ffi.Pointer) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function(ffi.Pointer<_ObjCBlock>, + ffi.UnsignedLong, ffi.Pointer)>( + _ObjCBlock_bool_ffiUnsignedLong_bool_closureTrampoline, + false) + .cast(), + _ObjCBlock_bool_ffiUnsignedLong_bool_registerClosure( + (int arg0, ffi.Pointer arg1) => fn(arg0, arg1))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + bool call(int arg0, ffi.Pointer arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer<_ObjCBlock> block, + ffi.UnsignedLong arg0, ffi.Pointer arg1)>>() + .asFunction< + bool Function(ffi.Pointer<_ObjCBlock>, int, + ffi.Pointer)>()(_id, arg0, arg1); +} + +void _ObjCBlock_ffiVoid_NSRange_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + _NSRange arg0, + ffi.Pointer arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(_NSRange arg0, ffi.Pointer arg1)>>() + .asFunction< + void Function(_NSRange, ffi.Pointer)>()(arg0, arg1); +final _ObjCBlock_ffiVoid_NSRange_bool_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_NSRange_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSRange_bool_registerClosure( + void Function(_NSRange, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSRange_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSRange_bool_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSRange_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + _NSRange arg0, + ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_NSRange_bool_closureRegistry[block.ref.target.address]!( + arg0, arg1); + +class ObjCBlock_ffiVoid_NSRange_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSRange_bool._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSRange_bool.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(_NSRange arg0, ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, _NSRange, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSRange_bool_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSRange_bool.fromFunction( + PedometerBindings lib, void Function(_NSRange, ffi.Pointer) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, _NSRange, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSRange_bool_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSRange_bool_registerClosure( + (_NSRange arg0, ffi.Pointer arg1) => + fn(arg0, arg1))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSRange_bool.listener( + PedometerBindings lib, void Function(_NSRange, ffi.Pointer) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, _NSRange, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSRange_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSRange_bool_registerClosure( + (_NSRange arg0, ffi.Pointer arg1) => + fn(arg0, arg1))), + lib); + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, _NSRange, ffi.Pointer)>? + _dartFuncListenerTrampoline; + + void call(_NSRange arg0, ffi.Pointer arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, _NSRange arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, _NSRange, + ffi.Pointer)>()(_id, arg0, arg1); +} + +void _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.UnsignedLong arg1, ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer, int, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureRegistry = + , int, ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_registerClosure( + void Function(ffi.Pointer, int, ffi.Pointer) fn) { + final id = + ++_ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.UnsignedLong arg1, ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool.fromFunction( + PedometerBindings lib, + void Function(NSObject, int, ffi.Pointer) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_registerClosure( + (ffi.Pointer arg0, int arg1, + ffi.Pointer arg2) => + fn(NSObject._(arg0, lib, retain: true, release: true), arg1, arg2))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool.listener( + PedometerBindings lib, + void Function(NSObject, int, ffi.Pointer) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_registerClosure( + (ffi.Pointer arg0, int arg1, ffi.Pointer arg2) => + fn(NSObject._(arg0, lib, retain: true, release: true), + arg1, arg2))), + lib); + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer)>? _dartFuncListenerTrampoline; + + void call(NSObject arg0, int arg1, ffi.Pointer arg2) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + int, ffi.Pointer)>()(_id, arg0._id, arg1, arg2); +} + +bool _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer arg0, + ffi.UnsignedLong arg1, ffi.Pointer arg2)>>() + .asFunction< + bool Function(ffi.Pointer, int, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureRegistry = + , int, ffi.Pointer)>{}; +int _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_registerClosure( + bool Function(ffi.Pointer, int, ffi.Pointer) fn) { + final id = + ++_ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureRegistryIndex; + _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +bool _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2) => + _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool extends _ObjCBlockBase { + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer arg0, + ffi.UnsignedLong arg1, ffi.Pointer arg2)>> + ptr) + : this._( + lib + ._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer)>( + _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_fnPtrTrampoline, + false) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool.fromFunction( + PedometerBindings lib, + bool Function(NSObject, int, ffi.Pointer) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer)>( + _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureTrampoline, false) + .cast(), + _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_registerClosure( + (ffi.Pointer arg0, int arg1, + ffi.Pointer arg2) => + fn(NSObject._(arg0, lib, retain: true, release: true), arg1, arg2))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + bool call(NSObject arg0, int arg1, ffi.Pointer arg2) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2)>>() + .asFunction< + bool Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + int, ffi.Pointer)>()(_id, arg0._id, arg1, arg2); +} + +int _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + int Function(ffi.Pointer, + ffi.Pointer)>()(arg0, arg1); +final _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureRegistryIndex = + 0; +ffi.Pointer + _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_registerClosure( + int Function(ffi.Pointer, ffi.Pointer) fn) { + final id = + ++_ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureRegistryIndex; + _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +int _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject + extends _ObjCBlockBase { + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Int32 Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_fnPtrTrampoline, + 0) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject.fromFunction( + PedometerBindings lib, int Function(NSObject, NSObject) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Int32 Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureTrampoline, 0) + .cast(), + _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + NSObject._(arg0, lib, retain: true, release: true), + NSObject._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + int call(NSObject arg0, NSObject arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + int Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()(_id, arg0._id, arg1._id); +} + +abstract class NSComparisonResult { + static const int NSOrderedAscending = -1; + static const int NSOrderedSame = 0; + static const int NSOrderedDescending = 1; +} + +abstract class NSSortOptions { + static const int NSSortConcurrent = 1; + static const int NSSortStable = 16; +} + +abstract class NSBinarySearchingOptions { + static const int NSBinarySearchingFirstEqual = 256; + static const int NSBinarySearchingLastEqual = 512; + static const int NSBinarySearchingInsertionIndex = 1024; +} - static bool writeBookmarkData_toURL_options_error_( - PedometerBindings _lib, - NSData? bookmarkData, - NSURL? bookmarkFileURL, - int options, - ffi.Pointer> error) { - return _lib._objc_msgSend_192( - _lib._class_NSURL1, - _lib._sel_writeBookmarkData_toURL_options_error_1, - bookmarkData?._id ?? ffi.nullptr, - bookmarkFileURL?._id ?? ffi.nullptr, - options, - error); - } +/// Options supported by methods that produce difference objects. +abstract class NSOrderedCollectionDifferenceCalculationOptions { + /// Insertion changes do not store a reference to the inserted object. + static const int NSOrderedCollectionDifferenceCalculationOmitInsertedObjects = + 1; - static NSData bookmarkDataWithContentsOfURL_error_(PedometerBindings _lib, - NSURL? bookmarkFileURL, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_193( - _lib._class_NSURL1, - _lib._sel_bookmarkDataWithContentsOfURL_error_1, - bookmarkFileURL?._id ?? ffi.nullptr, - error); - return NSData._(_ret, _lib, retain: true, release: true); - } + /// Insertion changes do not store a reference to the removed object. + static const int NSOrderedCollectionDifferenceCalculationOmitRemovedObjects = + 2; - static NSURL URLByResolvingAliasFileAtURL_options_error_( - PedometerBindings _lib, - NSURL? url, - int options, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_194( - _lib._class_NSURL1, - _lib._sel_URLByResolvingAliasFileAtURL_options_error_1, - url?._id ?? ffi.nullptr, - options, - error); - return NSURL._(_ret, _lib, retain: true, release: true); - } + /// Assume objects that were uniquely removed and inserted were moved. + /// This is useful when diffing based on identity instead of equality. + static const int NSOrderedCollectionDifferenceCalculationInferMoves = 4; +} - bool startAccessingSecurityScopedResource() { - return _lib._objc_msgSend_12( - _id, _lib._sel_startAccessingSecurityScopedResource1); - } +bool _ObjCBlock_bool_ObjCObject_ObjCObject_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + bool Function(ffi.Pointer, + ffi.Pointer)>()(arg0, arg1); +final _ObjCBlock_bool_ObjCObject_ObjCObject_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_bool_ObjCObject_ObjCObject_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_bool_ObjCObject_ObjCObject_registerClosure( + bool Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_bool_ObjCObject_ObjCObject_closureRegistryIndex; + _ObjCBlock_bool_ObjCObject_ObjCObject_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - void stopAccessingSecurityScopedResource() { - return _lib._objc_msgSend_1( - _id, _lib._sel_stopAccessingSecurityScopedResource1); - } +bool _ObjCBlock_bool_ObjCObject_ObjCObject_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_bool_ObjCObject_ObjCObject_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_bool_ObjCObject_ObjCObject extends _ObjCBlockBase { + ObjCBlock_bool_ObjCObject_ObjCObject._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); - bool getPromisedItemResourceValue_forKey_error_( - ffi.Pointer> value, - NSString key, - ffi.Pointer> error) { - return _lib._objc_msgSend_184( - _id, - _lib._sel_getPromisedItemResourceValue_forKey_error_1, - value, - key._id, - error); - } + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ObjCObject_ObjCObject.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_bool_ObjCObject_ObjCObject_fnPtrTrampoline, + false) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - NSDictionary promisedItemResourceValuesForKeys_error_( - NSArray? keys, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_195( - _id, - _lib._sel_promisedItemResourceValuesForKeys_error_1, - keys?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ObjCObject_ObjCObject.fromFunction( + PedometerBindings lib, bool Function(NSObject, NSObject) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_bool_ObjCObject_ObjCObject_closureTrampoline, + false) + .cast(), + _ObjCBlock_bool_ObjCObject_ObjCObject_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(NSObject._(arg0, lib, retain: true, release: true), NSObject._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; - bool checkPromisedItemIsReachableAndReturnError_( - ffi.Pointer> error) { - return _lib._objc_msgSend_183( - _id, _lib._sel_checkPromisedItemIsReachableAndReturnError_1, error); - } + bool call(NSObject arg0, NSObject arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + bool Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()(_id, arg0._id, arg1._id); +} - static NSURL fileURLWithPathComponents_( - PedometerBindings _lib, NSArray? components) { - final _ret = _lib._objc_msgSend_196(_lib._class_NSURL1, - _lib._sel_fileURLWithPathComponents_1, components?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); +abstract class NSKeyValueObservingOptions { + static const int NSKeyValueObservingOptionNew = 1; + static const int NSKeyValueObservingOptionOld = 2; + static const int NSKeyValueObservingOptionInitial = 4; + static const int NSKeyValueObservingOptionPrior = 8; +} + +class NSPredicate extends NSObject { + NSPredicate._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSPredicate] that points to the same underlying object as [other]. + static NSPredicate castFrom(T other) { + return NSPredicate._(other._id, other._lib, retain: true, release: true); } - NSArray? get pathComponents { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_pathComponents1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + /// Returns a [NSPredicate] that wraps the given raw object pointer. + static NSPredicate castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSPredicate._(other, lib, retain: retain, release: release); } - NSString? get lastPathComponent { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_lastPathComponent1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [NSPredicate]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSPredicate1); } - NSString? get pathExtension { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_pathExtension1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSPredicate predicateWithFormat_argumentArray_( + PedometerBindings _lib, NSString predicateFormat, NSArray? arguments) { + final _ret = _lib._objc_msgSend_133( + _lib._class_NSPredicate1, + _lib._sel_predicateWithFormat_argumentArray_1, + predicateFormat._id, + arguments?._id ?? ffi.nullptr); + return NSPredicate._(_ret, _lib, retain: true, release: true); } - NSURL URLByAppendingPathComponent_(NSString? pathComponent) { - final _ret = _lib._objc_msgSend_34( - _id, - _lib._sel_URLByAppendingPathComponent_1, - pathComponent?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + static NSPredicate predicateWithFormat_( + PedometerBindings _lib, NSString predicateFormat) { + final _ret = _lib._objc_msgSend_134(_lib._class_NSPredicate1, + _lib._sel_predicateWithFormat_1, predicateFormat._id); + return NSPredicate._(_ret, _lib, retain: true, release: true); } - NSURL URLByAppendingPathComponent_isDirectory_( - NSString? pathComponent, bool isDirectory) { - final _ret = _lib._objc_msgSend_33( - _id, - _lib._sel_URLByAppendingPathComponent_isDirectory_1, - pathComponent?._id ?? ffi.nullptr, - isDirectory); - return NSURL._(_ret, _lib, retain: true, release: true); + static NSPredicate predicateWithFormat_arguments_(PedometerBindings _lib, + NSString predicateFormat, ffi.Pointer<__va_list_tag> argList) { + final _ret = _lib._objc_msgSend_135( + _lib._class_NSPredicate1, + _lib._sel_predicateWithFormat_arguments_1, + predicateFormat._id, + argList); + return NSPredicate._(_ret, _lib, retain: true, release: true); } - NSURL? get URLByDeletingLastPathComponent { - final _ret = - _lib._objc_msgSend_40(_id, _lib._sel_URLByDeletingLastPathComponent1); + static NSPredicate? predicateFromMetadataQueryString_( + PedometerBindings _lib, NSString queryString) { + final _ret = _lib._objc_msgSend_136(_lib._class_NSPredicate1, + _lib._sel_predicateFromMetadataQueryString_1, queryString._id); return _ret.address == 0 ? null - : NSURL._(_ret, _lib, retain: true, release: true); + : NSPredicate._(_ret, _lib, retain: true, release: true); } - NSURL URLByAppendingPathExtension_(NSString? pathExtension) { - final _ret = _lib._objc_msgSend_34( - _id, - _lib._sel_URLByAppendingPathExtension_1, - pathExtension?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + static NSPredicate predicateWithValue_(PedometerBindings _lib, bool value) { + final _ret = _lib._objc_msgSend_137( + _lib._class_NSPredicate1, _lib._sel_predicateWithValue_1, value); + return NSPredicate._(_ret, _lib, retain: true, release: true); } - NSURL? get URLByDeletingPathExtension { - final _ret = - _lib._objc_msgSend_40(_id, _lib._sel_URLByDeletingPathExtension1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + static NSPredicate predicateWithBlock_( + PedometerBindings _lib, ObjCBlock_bool_ObjCObject_NSDictionary block) { + final _ret = _lib._objc_msgSend_167( + _lib._class_NSPredicate1, _lib._sel_predicateWithBlock_1, block._id); + return NSPredicate._(_ret, _lib, retain: true, release: true); } - NSURL? get URLByStandardizingPath { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URLByStandardizingPath1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + NSString get predicateFormat { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_predicateFormat1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSURL? get URLByResolvingSymlinksInPath { - final _ret = - _lib._objc_msgSend_40(_id, _lib._sel_URLByResolvingSymlinksInPath1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + NSPredicate predicateWithSubstitutionVariables_(NSDictionary variables) { + final _ret = _lib._objc_msgSend_150( + _id, _lib._sel_predicateWithSubstitutionVariables_1, variables._id); + return NSPredicate._(_ret, _lib, retain: true, release: true); } - NSData resourceDataUsingCache_(bool shouldUseCache) { - final _ret = _lib._objc_msgSend_197( - _id, _lib._sel_resourceDataUsingCache_1, shouldUseCache); - return NSData._(_ret, _lib, retain: true, release: true); + bool evaluateWithObject_(NSObject? object) { + return _lib._objc_msgSend_168( + _id, _lib._sel_evaluateWithObject_1, object?._id ?? ffi.nullptr); } - void loadResourceDataNotifyingClient_usingCache_( - NSObject client, bool shouldUseCache) { - return _lib._objc_msgSend_198( + bool evaluateWithObject_substitutionVariables_( + NSObject? object, NSDictionary? bindings) { + return _lib._objc_msgSend_169( _id, - _lib._sel_loadResourceDataNotifyingClient_usingCache_1, - client._id, - shouldUseCache); - } - - NSObject propertyForKey_(NSString? propertyKey) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_propertyForKey_1, propertyKey?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + _lib._sel_evaluateWithObject_substitutionVariables_1, + object?._id ?? ffi.nullptr, + bindings?._id ?? ffi.nullptr); } - bool setResourceData_(NSData? data) { - return _lib._objc_msgSend_23( - _id, _lib._sel_setResourceData_1, data?._id ?? ffi.nullptr); + void allowEvaluation() { + _lib._objc_msgSend_1(_id, _lib._sel_allowEvaluation1); } - bool setProperty_forKey_(NSObject property, NSString? propertyKey) { - return _lib._objc_msgSend_199(_id, _lib._sel_setProperty_forKey_1, - property._id, propertyKey?._id ?? ffi.nullptr); + @override + NSPredicate init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSPredicate._(_ret, _lib, retain: true, release: true); } - NSObject URLHandleUsingCache_(bool shouldUseCache) { - final _ret = _lib._objc_msgSend_200( - _id, _lib._sel_URLHandleUsingCache_1, shouldUseCache); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSPredicate new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSPredicate1, _lib._sel_new1); + return NSPredicate._(_ret, _lib, retain: false, release: true); } - static NSURL new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURL1, _lib._sel_new1); - return NSURL._(_ret, _lib, retain: false, release: true); + static NSPredicate allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSPredicate1, _lib._sel_allocWithZone_1, zone); + return NSPredicate._(_ret, _lib, retain: false, release: true); } - static NSURL alloc(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURL1, _lib._sel_alloc1); - return NSURL._(_ret, _lib, retain: false, release: true); + static NSPredicate alloc(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSPredicate1, _lib._sel_alloc1); + return NSPredicate._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURL1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSPredicate1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURL1, + _lib._objc_msgSend_15(_lib._class_NSPredicate1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURL1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSPredicate1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURL1, _lib._sel_useStoredAccessor1); + _lib._class_NSPredicate1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSURL1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSPredicate1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSURL1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSURL1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSPredicate1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSURL1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_NSPredicate1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSURL1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSPredicate1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSNumber extends NSValue { - NSNumber._(ffi.Pointer id, PedometerBindings lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSNumber] that points to the same underlying object as [other]. - static NSNumber castFrom(T other) { - return NSNumber._(other._id, other._lib, retain: true, release: true); - } +final class __va_list_tag extends ffi.Struct { + @ffi.UnsignedInt() + external int gp_offset; - /// Returns a [NSNumber] that wraps the given raw object pointer. - static NSNumber castFromPointer( - PedometerBindings lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSNumber._(other, lib, retain: retain, release: release); - } + @ffi.UnsignedInt() + external int fp_offset; - /// Returns whether [obj] is an instance of [NSNumber]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSNumber1); - } + external ffi.Pointer overflow_arg_area; - @override - NSNumber initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSNumber._(_ret, _lib, retain: true, release: true); - } + external ffi.Pointer reg_save_area; +} - NSNumber initWithChar_(int value) { - final _ret = _lib._objc_msgSend_160(_id, _lib._sel_initWithChar_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } +bool _ObjCBlock_bool_ObjCObject_NSDictionary_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + bool Function(ffi.Pointer, + ffi.Pointer)>()(arg0, arg1); +final _ObjCBlock_bool_ObjCObject_NSDictionary_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_bool_ObjCObject_NSDictionary_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_bool_ObjCObject_NSDictionary_registerClosure( + bool Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_bool_ObjCObject_NSDictionary_closureRegistryIndex; + _ObjCBlock_bool_ObjCObject_NSDictionary_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - NSNumber initWithUnsignedChar_(int value) { - final _ret = - _lib._objc_msgSend_161(_id, _lib._sel_initWithUnsignedChar_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } +bool _ObjCBlock_bool_ObjCObject_NSDictionary_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_bool_ObjCObject_NSDictionary_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_bool_ObjCObject_NSDictionary extends _ObjCBlockBase { + ObjCBlock_bool_ObjCObject_NSDictionary._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); - NSNumber initWithShort_(int value) { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_initWithShort_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ObjCObject_NSDictionary.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_bool_ObjCObject_NSDictionary_fnPtrTrampoline, + false) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - NSNumber initWithUnsignedShort_(int value) { - final _ret = - _lib._objc_msgSend_163(_id, _lib._sel_initWithUnsignedShort_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ObjCObject_NSDictionary.fromFunction( + PedometerBindings lib, bool Function(NSObject?, NSDictionary?) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_bool_ObjCObject_NSDictionary_closureTrampoline, false) + .cast(), + _ObjCBlock_bool_ObjCObject_NSDictionary_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 + ? null + : NSObject._(arg0, lib, retain: true, release: true), + arg1.address == 0 ? null : NSDictionary._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; - NSNumber initWithInt_(int value) { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_initWithInt_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } + bool call(NSObject? arg0, NSDictionary? arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + bool Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1?._id ?? ffi.nullptr); +} - NSNumber initWithUnsignedInt_(int value) { - final _ret = - _lib._objc_msgSend_165(_id, _lib._sel_initWithUnsignedInt_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } +/// Immutable Dictionary +class NSDictionary extends NSObject { + NSDictionary._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - NSNumber initWithLong_(int value) { - final _ret = _lib._objc_msgSend_166(_id, _lib._sel_initWithLong_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + /// Returns a [NSDictionary] that points to the same underlying object as [other]. + static NSDictionary castFrom(T other) { + return NSDictionary._(other._id, other._lib, retain: true, release: true); } - NSNumber initWithUnsignedLong_(int value) { - final _ret = - _lib._objc_msgSend_167(_id, _lib._sel_initWithUnsignedLong_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + /// Returns a [NSDictionary] that wraps the given raw object pointer. + static NSDictionary castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSDictionary._(other, lib, retain: retain, release: release); } - NSNumber initWithLongLong_(int value) { - final _ret = - _lib._objc_msgSend_168(_id, _lib._sel_initWithLongLong_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [NSDictionary]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSDictionary1); } - NSNumber initWithUnsignedLongLong_(int value) { - final _ret = _lib._objc_msgSend_169( - _id, _lib._sel_initWithUnsignedLongLong_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + int get count { + return _lib._objc_msgSend_10(_id, _lib._sel_count1); } - NSNumber initWithFloat_(double value) { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_initWithFloat_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + NSObject? objectForKey_(NSObject aKey) { + final _ret = _lib._objc_msgSend_16(_id, _lib._sel_objectForKey_1, aKey._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSNumber initWithDouble_(double value) { - final _ret = _lib._objc_msgSend_171(_id, _lib._sel_initWithDouble_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + NSEnumerator keyEnumerator() { + final _ret = _lib._objc_msgSend_69(_id, _lib._sel_keyEnumerator1); + return NSEnumerator._(_ret, _lib, retain: true, release: true); } - NSNumber initWithBool_(bool value) { - final _ret = _lib._objc_msgSend_172(_id, _lib._sel_initWithBool_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + @override + NSDictionary init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - NSNumber initWithInteger_(int value) { - final _ret = - _lib._objc_msgSend_166(_id, _lib._sel_initWithInteger_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + NSDictionary initWithObjects_forKeys_count_( + ffi.Pointer> objects, + ffi.Pointer> keys, + int cnt) { + final _ret = _lib._objc_msgSend_138( + _id, _lib._sel_initWithObjects_forKeys_count_1, objects, keys, cnt); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - NSNumber initWithUnsignedInteger_(int value) { + NSDictionary? initWithCoder_(NSCoder coder) { final _ret = - _lib._objc_msgSend_167(_id, _lib._sel_initWithUnsignedInteger_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - int get charValue { - return _lib._objc_msgSend_173(_id, _lib._sel_charValue1); - } - - int get unsignedCharValue { - return _lib._objc_msgSend_174(_id, _lib._sel_unsignedCharValue1); + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - int get shortValue { - return _lib._objc_msgSend_175(_id, _lib._sel_shortValue1); + NSArray get allKeys { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_allKeys1); + return NSArray._(_ret, _lib, retain: true, release: true); } - int get unsignedShortValue { - return _lib._objc_msgSend_176(_id, _lib._sel_unsignedShortValue1); + NSArray allKeysForObject_(NSObject anObject) { + final _ret = + _lib._objc_msgSend_59(_id, _lib._sel_allKeysForObject_1, anObject._id); + return NSArray._(_ret, _lib, retain: true, release: true); } - int get intValue { - return _lib._objc_msgSend_177(_id, _lib._sel_intValue1); + NSArray get allValues { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_allValues1); + return NSArray._(_ret, _lib, retain: true, release: true); } - int get unsignedIntValue { - return _lib._objc_msgSend_155(_id, _lib._sel_unsignedIntValue1); + NSString get description { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_description1); + return NSString._(_ret, _lib, retain: true, release: true); } - int get longValue { - return _lib._objc_msgSend_70(_id, _lib._sel_longValue1); + NSString get descriptionInStringsFileFormat { + final _ret = + _lib._objc_msgSend_21(_id, _lib._sel_descriptionInStringsFileFormat1); + return NSString._(_ret, _lib, retain: true, release: true); } - int get unsignedLongValue { - return _lib._objc_msgSend_10(_id, _lib._sel_unsignedLongValue1); + NSString descriptionWithLocale_(NSObject? locale) { + final _ret = _lib._objc_msgSend_62( + _id, _lib._sel_descriptionWithLocale_1, locale?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - int get longLongValue { - return _lib._objc_msgSend_178(_id, _lib._sel_longLongValue1); + NSString descriptionWithLocale_indent_(NSObject? locale, int level) { + final _ret = _lib._objc_msgSend_63( + _id, + _lib._sel_descriptionWithLocale_indent_1, + locale?._id ?? ffi.nullptr, + level); + return NSString._(_ret, _lib, retain: true, release: true); } - int get unsignedLongLongValue { - return _lib._objc_msgSend_146(_id, _lib._sel_unsignedLongLongValue1); + bool isEqualToDictionary_(NSDictionary otherDictionary) { + return _lib._objc_msgSend_139( + _id, _lib._sel_isEqualToDictionary_1, otherDictionary._id); } - double get floatValue { - return _lib._objc_msgSend_179(_id, _lib._sel_floatValue1); + NSEnumerator objectEnumerator() { + final _ret = _lib._objc_msgSend_69(_id, _lib._sel_objectEnumerator1); + return NSEnumerator._(_ret, _lib, retain: true, release: true); } - double get doubleValue { - return _lib._objc_msgSend_147(_id, _lib._sel_doubleValue1); + NSArray objectsForKeys_notFoundMarker_(NSArray keys, NSObject marker) { + final _ret = _lib._objc_msgSend_140( + _id, _lib._sel_objectsForKeys_notFoundMarker_1, keys._id, marker._id); + return NSArray._(_ret, _lib, retain: true, release: true); } - bool get boolValue { - return _lib._objc_msgSend_12(_id, _lib._sel_boolValue1); + bool writeToURL_error_( + NSURL url, ffi.Pointer> error) { + return _lib._objc_msgSend_80( + _id, _lib._sel_writeToURL_error_1, url._id, error); } - int get integerValue { - return _lib._objc_msgSend_70(_id, _lib._sel_integerValue1); + NSArray keysSortedByValueUsingSelector_(ffi.Pointer comparator) { + final _ret = _lib._objc_msgSend_72( + _id, _lib._sel_keysSortedByValueUsingSelector_1, comparator); + return NSArray._(_ret, _lib, retain: true, release: true); } - int get unsignedIntegerValue { - return _lib._objc_msgSend_10(_id, _lib._sel_unsignedIntegerValue1); + void getObjects_andKeys_count_(ffi.Pointer> objects, + ffi.Pointer> keys, int count) { + _lib._objc_msgSend_141( + _id, _lib._sel_getObjects_andKeys_count_1, objects, keys, count); } - NSString? get stringValue { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_stringValue1); + NSObject? objectForKeyedSubscript_(NSObject key) { + final _ret = _lib._objc_msgSend_16( + _id, _lib._sel_objectForKeyedSubscript_1, key._id); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - int compare_(NSNumber? otherNumber) { - return _lib._objc_msgSend_180( - _id, _lib._sel_compare_1, otherNumber?._id ?? ffi.nullptr); - } - - bool isEqualToNumber_(NSNumber? number) { - return _lib._objc_msgSend_181( - _id, _lib._sel_isEqualToNumber_1, number?._id ?? ffi.nullptr); - } - - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_57( - _id, _lib._sel_descriptionWithLocale_1, locale._id); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSNumber numberWithChar_(PedometerBindings _lib, int value) { - final _ret = _lib._objc_msgSend_160( - _lib._class_NSNumber1, _lib._sel_numberWithChar_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSNumber numberWithUnsignedChar_(PedometerBindings _lib, int value) { - final _ret = _lib._objc_msgSend_161( - _lib._class_NSNumber1, _lib._sel_numberWithUnsignedChar_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSNumber numberWithShort_(PedometerBindings _lib, int value) { - final _ret = _lib._objc_msgSend_162( - _lib._class_NSNumber1, _lib._sel_numberWithShort_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSNumber numberWithUnsignedShort_(PedometerBindings _lib, int value) { - final _ret = _lib._objc_msgSend_163( - _lib._class_NSNumber1, _lib._sel_numberWithUnsignedShort_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSNumber numberWithInt_(PedometerBindings _lib, int value) { - final _ret = _lib._objc_msgSend_164( - _lib._class_NSNumber1, _lib._sel_numberWithInt_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSNumber numberWithUnsignedInt_(PedometerBindings _lib, int value) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSNumber1, _lib._sel_numberWithUnsignedInt_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + void enumerateKeysAndObjectsUsingBlock_( + ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool block) { + _lib._objc_msgSend_142( + _id, _lib._sel_enumerateKeysAndObjectsUsingBlock_1, block._id); } - static NSNumber numberWithLong_(PedometerBindings _lib, int value) { - final _ret = _lib._objc_msgSend_166( - _lib._class_NSNumber1, _lib._sel_numberWithLong_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + void enumerateKeysAndObjectsWithOptions_usingBlock_( + int opts, ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool block) { + _lib._objc_msgSend_143( + _id, + _lib._sel_enumerateKeysAndObjectsWithOptions_usingBlock_1, + opts, + block._id); } - static NSNumber numberWithUnsignedLong_(PedometerBindings _lib, int value) { - final _ret = _lib._objc_msgSend_167( - _lib._class_NSNumber1, _lib._sel_numberWithUnsignedLong_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + NSArray keysSortedByValueUsingComparator_( + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + final _ret = _lib._objc_msgSend_112( + _id, _lib._sel_keysSortedByValueUsingComparator_1, cmptr._id); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSNumber numberWithLongLong_(PedometerBindings _lib, int value) { - final _ret = _lib._objc_msgSend_168( - _lib._class_NSNumber1, _lib._sel_numberWithLongLong_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + NSArray keysSortedByValueWithOptions_usingComparator_( + int opts, ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + final _ret = _lib._objc_msgSend_113( + _id, + _lib._sel_keysSortedByValueWithOptions_usingComparator_1, + opts, + cmptr._id); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSNumber numberWithUnsignedLongLong_( - PedometerBindings _lib, int value) { - final _ret = _lib._objc_msgSend_169( - _lib._class_NSNumber1, _lib._sel_numberWithUnsignedLongLong_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + NSObject keysOfEntriesPassingTest_( + ObjCBlock_bool_ObjCObject_ObjCObject_bool predicate) { + final _ret = _lib._objc_msgSend_144( + _id, _lib._sel_keysOfEntriesPassingTest_1, predicate._id); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSNumber numberWithFloat_(PedometerBindings _lib, double value) { - final _ret = _lib._objc_msgSend_170( - _lib._class_NSNumber1, _lib._sel_numberWithFloat_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + NSObject keysOfEntriesWithOptions_passingTest_( + int opts, ObjCBlock_bool_ObjCObject_ObjCObject_bool predicate) { + final _ret = _lib._objc_msgSend_145(_id, + _lib._sel_keysOfEntriesWithOptions_passingTest_1, opts, predicate._id); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSNumber numberWithDouble_(PedometerBindings _lib, double value) { - final _ret = _lib._objc_msgSend_171( - _lib._class_NSNumber1, _lib._sel_numberWithDouble_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + /// This method is unsafe because it could potentially cause buffer overruns. You should use -getObjects:andKeys:count: + void getObjects_andKeys_(ffi.Pointer> objects, + ffi.Pointer> keys) { + _lib._objc_msgSend_146(_id, _lib._sel_getObjects_andKeys_1, objects, keys); } - static NSNumber numberWithBool_(PedometerBindings _lib, bool value) { - final _ret = _lib._objc_msgSend_172( - _lib._class_NSNumber1, _lib._sel_numberWithBool_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + static NSDictionary? dictionaryWithContentsOfFile_( + PedometerBindings _lib, NSString path) { + final _ret = _lib._objc_msgSend_147(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSNumber numberWithInteger_(PedometerBindings _lib, int value) { - final _ret = _lib._objc_msgSend_166( - _lib._class_NSNumber1, _lib._sel_numberWithInteger_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + static NSDictionary? dictionaryWithContentsOfURL_( + PedometerBindings _lib, NSURL url) { + final _ret = _lib._objc_msgSend_148(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSNumber numberWithUnsignedInteger_( - PedometerBindings _lib, int value) { - final _ret = _lib._objc_msgSend_167( - _lib._class_NSNumber1, _lib._sel_numberWithUnsignedInteger_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + NSDictionary? initWithContentsOfFile_(NSString path) { + final _ret = _lib._objc_msgSend_147( + _id, _lib._sel_initWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSValue valueWithBytes_objCType_(PedometerBindings _lib, - ffi.Pointer value, ffi.Pointer type) { - final _ret = _lib._objc_msgSend_43(_lib._class_NSNumber1, - _lib._sel_valueWithBytes_objCType_1, value, type); - return NSValue._(_ret, _lib, retain: true, release: true); + NSDictionary? initWithContentsOfURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_148(_id, _lib._sel_initWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSValue value_withObjCType_(PedometerBindings _lib, - ffi.Pointer value, ffi.Pointer type) { - final _ret = _lib._objc_msgSend_43( - _lib._class_NSNumber1, _lib._sel_value_withObjCType_1, value, type); - return NSValue._(_ret, _lib, retain: true, release: true); + bool writeToFile_atomically_(NSString path, bool useAuxiliaryFile) { + return _lib._objc_msgSend_26( + _id, _lib._sel_writeToFile_atomically_1, path._id, useAuxiliaryFile); } - static NSValue valueWithNonretainedObject_( - PedometerBindings _lib, NSObject anObject) { - final _ret = _lib._objc_msgSend_44(_lib._class_NSNumber1, - _lib._sel_valueWithNonretainedObject_1, anObject._id); - return NSValue._(_ret, _lib, retain: true, release: true); + bool writeToURL_atomically_(NSURL url, bool atomically) { + return _lib._objc_msgSend_125( + _id, _lib._sel_writeToURL_atomically_1, url._id, atomically); } - static NSValue valueWithPointer_( - PedometerBindings _lib, ffi.Pointer pointer) { - final _ret = _lib._objc_msgSend_45( - _lib._class_NSNumber1, _lib._sel_valueWithPointer_1, pointer); - return NSValue._(_ret, _lib, retain: true, release: true); + static NSDictionary dictionary(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSDictionary1, _lib._sel_dictionary1); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSValue valueWithRange_(PedometerBindings _lib, _NSRange range) { - final _ret = _lib._objc_msgSend_48( - _lib._class_NSNumber1, _lib._sel_valueWithRange_1, range); - return NSValue._(_ret, _lib, retain: true, release: true); + static NSDictionary dictionaryWithObject_forKey_( + PedometerBindings _lib, NSObject object, NSObject key) { + final _ret = _lib._objc_msgSend_149(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithObject_forKey_1, object._id, key._id); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSNumber new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSNumber1, _lib._sel_new1); - return NSNumber._(_ret, _lib, retain: false, release: true); + static NSDictionary dictionaryWithObjects_forKeys_count_( + PedometerBindings _lib, + ffi.Pointer> objects, + ffi.Pointer> keys, + int cnt) { + final _ret = _lib._objc_msgSend_138(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithObjects_forKeys_count_1, objects, keys, cnt); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSNumber alloc(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSNumber1, _lib._sel_alloc1); - return NSNumber._(_ret, _lib, retain: false, release: true); + static NSDictionary dictionaryWithObjectsAndKeys_( + PedometerBindings _lib, NSObject firstObject) { + final _ret = _lib._objc_msgSend_115(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithObjectsAndKeys_1, firstObject._id); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - PedometerBindings _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSNumber1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + static NSDictionary dictionaryWithDictionary_( + PedometerBindings _lib, NSDictionary dict) { + final _ret = _lib._objc_msgSend_150(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithDictionary_1, dict._id); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_( - PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSNumber1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + static NSDictionary dictionaryWithObjects_forKeys_( + PedometerBindings _lib, NSArray objects, NSArray keys) { + final _ret = _lib._objc_msgSend_151(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithObjects_forKeys_1, objects._id, keys._id); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSNumber1, _lib._sel_accessInstanceVariablesDirectly1); + NSDictionary initWithObjectsAndKeys_(NSObject firstObject) { + final _ret = _lib._objc_msgSend_115( + _id, _lib._sel_initWithObjectsAndKeys_1, firstObject._id); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - static bool useStoredAccessor(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSNumber1, _lib._sel_useStoredAccessor1); + NSDictionary initWithDictionary_(NSDictionary otherDictionary) { + final _ret = _lib._objc_msgSend_150( + _id, _lib._sel_initWithDictionary_1, otherDictionary._id); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSNumber1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + NSDictionary initWithDictionary_copyItems_( + NSDictionary otherDictionary, bool flag) { + final _ret = _lib._objc_msgSend_152(_id, + _lib._sel_initWithDictionary_copyItems_1, otherDictionary._id, flag); + return NSDictionary._(_ret, _lib, retain: false, release: true); } - static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSNumber1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + NSDictionary initWithObjects_forKeys_(NSArray objects, NSArray keys) { + final _ret = _lib._objc_msgSend_151( + _id, _lib._sel_initWithObjects_forKeys_1, objects._id, keys._id); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSNumber1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + NSDictionary? initWithContentsOfURL_error_( + NSURL url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_153( + _id, _lib._sel_initWithContentsOfURL_error_1, url._id, error); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSNumber1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + static NSDictionary? dictionaryWithContentsOfURL_error_( + PedometerBindings _lib, + NSURL url, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_153(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithContentsOfURL_error_1, url._id, error); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSNumber1, _lib._sel_classForKeyedUnarchiver1); + static NSObject sharedKeySetForKeys_(PedometerBindings _lib, NSArray keys) { + final _ret = _lib._objc_msgSend_116( + _lib._class_NSDictionary1, _lib._sel_sharedKeySetForKeys_1, keys._id); return NSObject._(_ret, _lib, retain: true, release: true); } -} -class NSValue extends NSObject { - NSValue._(ffi.Pointer id, PedometerBindings lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + int countByEnumeratingWithState_objects_count_( + ffi.Pointer state, + ffi.Pointer> buffer, + int len) { + return _lib._objc_msgSend_154( + _id, + _lib._sel_countByEnumeratingWithState_objects_count_1, + state, + buffer, + len); + } - /// Returns a [NSValue] that points to the same underlying object as [other]. - static NSValue castFrom(T other) { - return NSValue._(other._id, other._lib, retain: true, release: true); + int fileSize() { + return _lib._objc_msgSend_155(_id, _lib._sel_fileSize1); } - /// Returns a [NSValue] that wraps the given raw object pointer. - static NSValue castFromPointer( - PedometerBindings lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSValue._(other, lib, retain: retain, release: release); + NSDate? fileModificationDate() { + final _ret = _lib._objc_msgSend_164(_id, _lib._sel_fileModificationDate1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - /// Returns whether [obj] is an instance of [NSValue]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSValue1); + NSString? fileType() { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_fileType1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void getValue_size_(ffi.Pointer value, int size) { - return _lib._objc_msgSend_21(_id, _lib._sel_getValue_size_1, value, size); + int filePosixPermissions() { + return _lib._objc_msgSend_10(_id, _lib._sel_filePosixPermissions1); } - ffi.Pointer get objCType { - return _lib._objc_msgSend_13(_id, _lib._sel_objCType1); + NSString? fileOwnerAccountName() { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_fileOwnerAccountName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSValue initWithBytes_objCType_( - ffi.Pointer value, ffi.Pointer type) { - final _ret = _lib._objc_msgSend_41( - _id, _lib._sel_initWithBytes_objCType_1, value, type); - return NSValue._(_ret, _lib, retain: true, release: true); + NSString? fileGroupOwnerAccountName() { + final _ret = + _lib._objc_msgSend_44(_id, _lib._sel_fileGroupOwnerAccountName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSValue initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSValue._(_ret, _lib, retain: true, release: true); + int fileSystemNumber() { + return _lib._objc_msgSend_75(_id, _lib._sel_fileSystemNumber1); } - static NSValue valueWithBytes_objCType_(PedometerBindings _lib, - ffi.Pointer value, ffi.Pointer type) { - final _ret = _lib._objc_msgSend_43( - _lib._class_NSValue1, _lib._sel_valueWithBytes_objCType_1, value, type); - return NSValue._(_ret, _lib, retain: true, release: true); + int fileSystemFileNumber() { + return _lib._objc_msgSend_10(_id, _lib._sel_fileSystemFileNumber1); } - static NSValue value_withObjCType_(PedometerBindings _lib, - ffi.Pointer value, ffi.Pointer type) { - final _ret = _lib._objc_msgSend_43( - _lib._class_NSValue1, _lib._sel_value_withObjCType_1, value, type); - return NSValue._(_ret, _lib, retain: true, release: true); + bool fileExtensionHidden() { + return _lib._objc_msgSend_12(_id, _lib._sel_fileExtensionHidden1); } - static NSValue valueWithNonretainedObject_( - PedometerBindings _lib, NSObject anObject) { - final _ret = _lib._objc_msgSend_44(_lib._class_NSValue1, - _lib._sel_valueWithNonretainedObject_1, anObject._id); - return NSValue._(_ret, _lib, retain: true, release: true); + int fileHFSCreatorCode() { + return _lib._objc_msgSend_165(_id, _lib._sel_fileHFSCreatorCode1); } - NSObject get nonretainedObjectValue { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_nonretainedObjectValue1); - return NSObject._(_ret, _lib, retain: true, release: true); + int fileHFSTypeCode() { + return _lib._objc_msgSend_165(_id, _lib._sel_fileHFSTypeCode1); } - static NSValue valueWithPointer_( - PedometerBindings _lib, ffi.Pointer pointer) { - final _ret = _lib._objc_msgSend_45( - _lib._class_NSValue1, _lib._sel_valueWithPointer_1, pointer); - return NSValue._(_ret, _lib, retain: true, release: true); + bool fileIsImmutable() { + return _lib._objc_msgSend_12(_id, _lib._sel_fileIsImmutable1); } - ffi.Pointer get pointerValue { - return _lib._objc_msgSend_19(_id, _lib._sel_pointerValue1); + bool fileIsAppendOnly() { + return _lib._objc_msgSend_12(_id, _lib._sel_fileIsAppendOnly1); + } + + NSDate? fileCreationDate() { + final _ret = _lib._objc_msgSend_164(_id, _lib._sel_fileCreationDate1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - bool isEqualToValue_(NSValue? value) { - return _lib._objc_msgSend_46( - _id, _lib._sel_isEqualToValue_1, value?._id ?? ffi.nullptr); + NSNumber? fileOwnerAccountID() { + final _ret = _lib._objc_msgSend_166(_id, _lib._sel_fileOwnerAccountID1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } - void getValue_(ffi.Pointer value) { - return _lib._objc_msgSend_47(_id, _lib._sel_getValue_1, value); + NSNumber? fileGroupOwnerAccountID() { + final _ret = + _lib._objc_msgSend_166(_id, _lib._sel_fileGroupOwnerAccountID1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } - static NSValue valueWithRange_(PedometerBindings _lib, _NSRange range) { - final _ret = _lib._objc_msgSend_48( - _lib._class_NSValue1, _lib._sel_valueWithRange_1, range); - return NSValue._(_ret, _lib, retain: true, release: true); + @override + NSObject? valueForKey_(NSString key) { + final _ret = _lib._objc_msgSend_38(_id, _lib._sel_valueForKey_1, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - _NSRange get rangeValue { - return _lib._objc_msgSend_49(_id, _lib._sel_rangeValue1); + static NSDictionary new1(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSDictionary1, _lib._sel_new1); + return NSDictionary._(_ret, _lib, retain: false, release: true); } - static NSValue new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSValue1, _lib._sel_new1); - return NSValue._(_ret, _lib, retain: false, release: true); + static NSDictionary allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSDictionary1, _lib._sel_allocWithZone_1, zone); + return NSDictionary._(_ret, _lib, retain: false, release: true); } - static NSValue alloc(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSValue1, _lib._sel_alloc1); - return NSValue._(_ret, _lib, retain: false, release: true); + static NSDictionary alloc(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSDictionary1, _lib._sel_alloc1); + return NSDictionary._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSValue1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSDictionary1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSValue1, + _lib._objc_msgSend_15(_lib._class_NSDictionary1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSValue1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSDictionary1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSValue1, _lib._sel_useStoredAccessor1); + _lib._class_NSDictionary1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSValue1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSDictionary1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSValue1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSValue1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSDictionary1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSValue1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_NSDictionary1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSValue1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSDictionary1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -/// Immutable Array -class NSArray extends NSObject { - NSArray._(ffi.Pointer id, PedometerBindings lib, +void _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureRegistry = , ffi.Pointer, + ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_registerClosure( + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer) + fn) { + final id = + ++_ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool.fromFunction( + PedometerBindings lib, + void Function(NSObject, NSObject, ffi.Pointer) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2) => fn( + NSObject._(arg0, lib, retain: true, release: true), + NSObject._(arg1, lib, retain: true, release: true), + arg2))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool.listener(PedometerBindings lib, + void Function(NSObject, NSObject, ffi.Pointer) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2) => + fn( + NSObject._(arg0, lib, retain: true, release: true), + NSObject._(arg1, lib, retain: true, release: true), + arg2))), + lib); + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; + + void call(NSObject arg0, NSObject arg1, ffi.Pointer arg2) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>()(_id, arg0._id, arg1._id, arg2); +} + +bool _ObjCBlock_bool_ObjCObject_ObjCObject_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureRegistry = , ffi.Pointer, + ffi.Pointer)>{}; +int _ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_bool_ObjCObject_ObjCObject_bool_registerClosure( + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer) + fn) { + final id = ++_ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureRegistryIndex; + _ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +bool _ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + _ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_bool_ObjCObject_ObjCObject_bool extends _ObjCBlockBase { + ObjCBlock_bool_ObjCObject_ObjCObject_bool._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ObjCObject_ObjCObject_bool.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_bool_ObjCObject_ObjCObject_bool_fnPtrTrampoline, + false) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ObjCObject_ObjCObject_bool.fromFunction(PedometerBindings lib, + bool Function(NSObject, NSObject, ffi.Pointer) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureTrampoline, false) + .cast(), + _ObjCBlock_bool_ObjCObject_ObjCObject_bool_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) => + fn(NSObject._(arg0, lib, retain: true, release: true), NSObject._(arg1, lib, retain: true, release: true), arg2))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + bool call(NSObject arg0, NSObject arg1, ffi.Pointer arg2) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + bool Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>()(_id, arg0._id, arg1._id, arg2); +} + +final class NSFastEnumerationState extends ffi.Struct { + @ffi.UnsignedLong() + external int state; + + external ffi.Pointer> itemsPtr; + + external ffi.Pointer mutationsPtr; + + @ffi.Array.multi([5]) + external ffi.Array extra; +} + +class NSDate extends NSObject { + NSDate._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSArray] that points to the same underlying object as [other]. - static NSArray castFrom(T other) { - return NSArray._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSDate] that points to the same underlying object as [other]. + static NSDate castFrom(T other) { + return NSDate._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSArray] that wraps the given raw object pointer. - static NSArray castFromPointer( + /// Returns a [NSDate] that wraps the given raw object pointer. + static NSDate castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSArray._(other, lib, retain: retain, release: release); + return NSDate._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSArray]. + /// Returns whether [obj] is an instance of [NSDate]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSArray1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSDate1); } - int get count { - return _lib._objc_msgSend_10(_id, _lib._sel_count1); + double get timeIntervalSinceReferenceDate { + return _lib._objc_msgSend_156( + _id, _lib._sel_timeIntervalSinceReferenceDate1); } - NSObject objectAtIndex_(int index) { - final _ret = _lib._objc_msgSend_52(_id, _lib._sel_objectAtIndex_1, index); + @override + NSDate init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + NSDate initWithTimeIntervalSinceReferenceDate_(double ti) { + final _ret = _lib._objc_msgSend_157( + _id, _lib._sel_initWithTimeIntervalSinceReferenceDate_1, ti); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + NSDate? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); + } + + double timeIntervalSinceDate_(NSDate anotherDate) { + return _lib._objc_msgSend_158( + _id, _lib._sel_timeIntervalSinceDate_1, anotherDate._id); + } + + double get timeIntervalSinceNow { + return _lib._objc_msgSend_156(_id, _lib._sel_timeIntervalSinceNow1); + } + + double get timeIntervalSince1970 { + return _lib._objc_msgSend_156(_id, _lib._sel_timeIntervalSince19701); + } + + NSObject addTimeInterval_(double seconds) { + final _ret = + _lib._objc_msgSend_157(_id, _lib._sel_addTimeInterval_1, seconds); return NSObject._(_ret, _lib, retain: true, release: true); } - @override - NSArray init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSArray._(_ret, _lib, retain: true, release: true); + NSDate dateByAddingTimeInterval_(double ti) { + final _ret = + _lib._objc_msgSend_157(_id, _lib._sel_dateByAddingTimeInterval_1, ti); + return NSDate._(_ret, _lib, retain: true, release: true); } - NSArray initWithObjects_count_( - ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_53( - _id, _lib._sel_initWithObjects_count_1, objects, cnt); - return NSArray._(_ret, _lib, retain: true, release: true); + NSDate earlierDate_(NSDate anotherDate) { + final _ret = + _lib._objc_msgSend_159(_id, _lib._sel_earlierDate_1, anotherDate._id); + return NSDate._(_ret, _lib, retain: true, release: true); } - NSArray initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSDate laterDate_(NSDate anotherDate) { + final _ret = + _lib._objc_msgSend_159(_id, _lib._sel_laterDate_1, anotherDate._id); + return NSDate._(_ret, _lib, retain: true, release: true); } - NSArray arrayByAddingObject_(NSObject anObject) { - final _ret = _lib._objc_msgSend_54( - _id, _lib._sel_arrayByAddingObject_1, anObject._id); - return NSArray._(_ret, _lib, retain: true, release: true); + int compare_(NSDate other) { + return _lib._objc_msgSend_160(_id, _lib._sel_compare_1, other._id); } - NSArray arrayByAddingObjectsFromArray_(NSArray? otherArray) { - final _ret = _lib._objc_msgSend_55( - _id, - _lib._sel_arrayByAddingObjectsFromArray_1, - otherArray?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + bool isEqualToDate_(NSDate otherDate) { + return _lib._objc_msgSend_161( + _id, _lib._sel_isEqualToDate_1, otherDate._id); } - NSString componentsJoinedByString_(NSString? separator) { - final _ret = _lib._objc_msgSend_56(_id, - _lib._sel_componentsJoinedByString_1, separator?._id ?? ffi.nullptr); + NSString get description { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_description1); return NSString._(_ret, _lib, retain: true, release: true); } - bool containsObject_(NSObject anObject) { - return _lib._objc_msgSend_0(_id, _lib._sel_containsObject_1, anObject._id); + NSString descriptionWithLocale_(NSObject? locale) { + final _ret = _lib._objc_msgSend_62( + _id, _lib._sel_descriptionWithLocale_1, locale?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSDate date(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSDate1, _lib._sel_date1); + return NSDate._(_ret, _lib, retain: true, release: true); } - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_57( - _id, _lib._sel_descriptionWithLocale_1, locale._id); - return NSString._(_ret, _lib, retain: true, release: true); + static NSDate dateWithTimeIntervalSinceNow_( + PedometerBindings _lib, double secs) { + final _ret = _lib._objc_msgSend_157( + _lib._class_NSDate1, _lib._sel_dateWithTimeIntervalSinceNow_1, secs); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + static NSDate dateWithTimeIntervalSinceReferenceDate_( + PedometerBindings _lib, double ti) { + final _ret = _lib._objc_msgSend_157(_lib._class_NSDate1, + _lib._sel_dateWithTimeIntervalSinceReferenceDate_1, ti); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + static NSDate dateWithTimeIntervalSince1970_( + PedometerBindings _lib, double secs) { + final _ret = _lib._objc_msgSend_157( + _lib._class_NSDate1, _lib._sel_dateWithTimeIntervalSince1970_1, secs); + return NSDate._(_ret, _lib, retain: true, release: true); } - NSString descriptionWithLocale_indent_(NSObject locale, int level) { - final _ret = _lib._objc_msgSend_58( - _id, _lib._sel_descriptionWithLocale_indent_1, locale._id, level); - return NSString._(_ret, _lib, retain: true, release: true); + static NSDate dateWithTimeInterval_sinceDate_( + PedometerBindings _lib, double secsToBeAdded, NSDate date) { + final _ret = _lib._objc_msgSend_162(_lib._class_NSDate1, + _lib._sel_dateWithTimeInterval_sinceDate_1, secsToBeAdded, date._id); + return NSDate._(_ret, _lib, retain: true, release: true); } - NSObject firstObjectCommonWithArray_(NSArray? otherArray) { - final _ret = _lib._objc_msgSend_59(_id, - _lib._sel_firstObjectCommonWithArray_1, otherArray?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSDate getDistantFuture(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_163(_lib._class_NSDate1, _lib._sel_distantFuture1); + return NSDate._(_ret, _lib, retain: true, release: true); } - void getObjects_range_( - ffi.Pointer> objects, _NSRange range) { - return _lib._objc_msgSend_60( - _id, _lib._sel_getObjects_range_1, objects, range); + static NSDate getDistantPast(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_163(_lib._class_NSDate1, _lib._sel_distantPast1); + return NSDate._(_ret, _lib, retain: true, release: true); } - int indexOfObject_(NSObject anObject) { - return _lib._objc_msgSend_61(_id, _lib._sel_indexOfObject_1, anObject._id); + static NSDate getNow(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_163(_lib._class_NSDate1, _lib._sel_now1); + return NSDate._(_ret, _lib, retain: true, release: true); } - int indexOfObject_inRange_(NSObject anObject, _NSRange range) { - return _lib._objc_msgSend_62( - _id, _lib._sel_indexOfObject_inRange_1, anObject._id, range); + NSDate initWithTimeIntervalSinceNow_(double secs) { + final _ret = _lib._objc_msgSend_157( + _id, _lib._sel_initWithTimeIntervalSinceNow_1, secs); + return NSDate._(_ret, _lib, retain: true, release: true); } - int indexOfObjectIdenticalTo_(NSObject anObject) { - return _lib._objc_msgSend_61( - _id, _lib._sel_indexOfObjectIdenticalTo_1, anObject._id); + NSDate initWithTimeIntervalSince1970_(double secs) { + final _ret = _lib._objc_msgSend_157( + _id, _lib._sel_initWithTimeIntervalSince1970_1, secs); + return NSDate._(_ret, _lib, retain: true, release: true); } - int indexOfObjectIdenticalTo_inRange_(NSObject anObject, _NSRange range) { - return _lib._objc_msgSend_62( - _id, _lib._sel_indexOfObjectIdenticalTo_inRange_1, anObject._id, range); + NSDate initWithTimeInterval_sinceDate_(double secsToBeAdded, NSDate date) { + final _ret = _lib._objc_msgSend_162(_id, + _lib._sel_initWithTimeInterval_sinceDate_1, secsToBeAdded, date._id); + return NSDate._(_ret, _lib, retain: true, release: true); } - bool isEqualToArray_(NSArray? otherArray) { - return _lib._objc_msgSend_63( - _id, _lib._sel_isEqualToArray_1, otherArray?._id ?? ffi.nullptr); + static NSDate new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSDate1, _lib._sel_new1); + return NSDate._(_ret, _lib, retain: false, release: true); } - NSObject get firstObject { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_firstObject1); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSDate allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSDate1, _lib._sel_allocWithZone_1, zone); + return NSDate._(_ret, _lib, retain: false, release: true); } - NSObject get lastObject { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_lastObject1); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSDate alloc(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSDate1, _lib._sel_alloc1); + return NSDate._(_ret, _lib, retain: false, release: true); } - NSEnumerator objectEnumerator() { - final _ret = _lib._objc_msgSend_64(_id, _lib._sel_objectEnumerator1); - return NSEnumerator._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + PedometerBindings _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSDate1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument?._id ?? ffi.nullptr); } - NSEnumerator reverseObjectEnumerator() { - final _ret = _lib._objc_msgSend_64(_id, _lib._sel_reverseObjectEnumerator1); - return NSEnumerator._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_( + PedometerBindings _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSDate1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - NSData? get sortedArrayHint { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_sortedArrayHint1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSDate1, _lib._sel_accessInstanceVariablesDirectly1); } - NSArray sortedArrayUsingFunction_context_( - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>> - comparator, - ffi.Pointer context) { - final _ret = _lib._objc_msgSend_65( - _id, _lib._sel_sortedArrayUsingFunction_context_1, comparator, context); - return NSArray._(_ret, _lib, retain: true, release: true); + static bool useStoredAccessor(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSDate1, _lib._sel_useStoredAccessor1); } - NSArray sortedArrayUsingFunction_context_hint_( - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>> - comparator, - ffi.Pointer context, - NSData? hint) { - final _ret = _lib._objc_msgSend_66( - _id, - _lib._sel_sortedArrayUsingFunction_context_hint_1, - comparator, - context, - hint?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + static NSSet keyPathsForValuesAffectingValueForKey_( + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSDate1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); + return NSSet._(_ret, _lib, retain: true, release: true); } - NSArray sortedArrayUsingSelector_(ffi.Pointer comparator) { - final _ret = _lib._objc_msgSend_67( - _id, _lib._sel_sortedArrayUsingSelector_1, comparator); - return NSArray._(_ret, _lib, retain: true, release: true); + static bool automaticallyNotifiesObserversForKey_( + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSDate1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } - NSArray subarrayWithRange_(_NSRange range) { - final _ret = - _lib._objc_msgSend_68(_id, _lib._sel_subarrayWithRange_1, range); + static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77( + _lib._class_NSDate1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } - bool writeToURL_error_( - NSURL? url, ffi.Pointer> error) { - return _lib._objc_msgSend_75( - _id, _lib._sel_writeToURL_error_1, url?._id ?? ffi.nullptr, error); + static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSDate1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - void makeObjectsPerformSelector_(ffi.Pointer aSelector) { - return _lib._objc_msgSend_7( - _id, _lib._sel_makeObjectsPerformSelector_1, aSelector); - } +abstract class NSURLBookmarkCreationOptions { + static const int NSURLBookmarkCreationPreferFileIDResolution = 256; + static const int NSURLBookmarkCreationMinimalBookmark = 512; + static const int NSURLBookmarkCreationSuitableForBookmarkFile = 1024; + static const int NSURLBookmarkCreationWithSecurityScope = 2048; + static const int NSURLBookmarkCreationSecurityScopeAllowOnlyReadAccess = 4096; + static const int NSURLBookmarkCreationWithoutImplicitSecurityScope = + 536870912; +} - void makeObjectsPerformSelector_withObject_( - ffi.Pointer aSelector, NSObject argument) { - return _lib._objc_msgSend_76( - _id, - _lib._sel_makeObjectsPerformSelector_withObject_1, - aSelector, - argument._id); - } +abstract class NSURLBookmarkResolutionOptions { + static const int NSURLBookmarkResolutionWithoutUI = 256; + static const int NSURLBookmarkResolutionWithoutMounting = 512; + static const int NSURLBookmarkResolutionWithSecurityScope = 1024; + static const int NSURLBookmarkResolutionWithoutImplicitStartAccessing = 32768; +} - NSArray objectsAtIndexes_(NSIndexSet? indexes) { - final _ret = _lib._objc_msgSend_97( - _id, _lib._sel_objectsAtIndexes_1, indexes?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } +abstract class NSDataWritingOptions { + static const int NSDataWritingAtomic = 1; + static const int NSDataWritingWithoutOverwriting = 2; + static const int NSDataWritingFileProtectionNone = 268435456; + static const int NSDataWritingFileProtectionComplete = 536870912; + static const int NSDataWritingFileProtectionCompleteUnlessOpen = 805306368; + static const int + NSDataWritingFileProtectionCompleteUntilFirstUserAuthentication = + 1073741824; + static const int NSDataWritingFileProtectionCompleteWhenUserInactive = + 1342177280; + static const int NSDataWritingFileProtectionMask = 4026531840; + static const int NSAtomicWrite = 1; +} - NSObject objectAtIndexedSubscript_(int idx) { - final _ret = - _lib._objc_msgSend_52(_id, _lib._sel_objectAtIndexedSubscript_1, idx); - return NSObject._(_ret, _lib, retain: true, release: true); - } +/// Data Search Options +abstract class NSDataSearchOptions { + static const int NSDataSearchBackwards = 1; + static const int NSDataSearchAnchored = 2; +} - void enumerateObjectsUsingBlock_(ObjCBlock4 block) { - return _lib._objc_msgSend_98( - _id, _lib._sel_enumerateObjectsUsingBlock_1, block._id); - } +void _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer, _NSRange, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureRegistry = , _NSRange, ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_registerClosure( + void Function(ffi.Pointer, _NSRange, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - void enumerateObjectsWithOptions_usingBlock_(int opts, ObjCBlock4 block) { - return _lib._objc_msgSend_99(_id, - _lib._sel_enumerateObjectsWithOptions_usingBlock_1, opts, block._id); - } +void _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_ffiVoid_NSRange_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ffiVoid_NSRange_bool._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); - void enumerateObjectsAtIndexes_options_usingBlock_( - NSIndexSet? s, int opts, ObjCBlock4 block) { - return _lib._objc_msgSend_100( - _id, - _lib._sel_enumerateObjectsAtIndexes_options_usingBlock_1, - s?._id ?? ffi.nullptr, - opts, - block._id); - } + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ffiVoid_NSRange_bool.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - int indexOfObjectPassingTest_(ObjCBlock5 predicate) { - return _lib._objc_msgSend_101( - _id, _lib._sel_indexOfObjectPassingTest_1, predicate._id); - } + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ffiVoid_NSRange_bool.fromFunction(PedometerBindings lib, + void Function(ffi.Pointer, _NSRange, ffi.Pointer) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_registerClosure( + (ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2) => + fn(arg0, arg1, arg2))), + lib); + static ffi.Pointer? _dartFuncTrampoline; - int indexOfObjectWithOptions_passingTest_(int opts, ObjCBlock5 predicate) { - return _lib._objc_msgSend_102(_id, - _lib._sel_indexOfObjectWithOptions_passingTest_1, opts, predicate._id); - } + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_ffiVoid_NSRange_bool.listener(PedometerBindings lib, + void Function(ffi.Pointer, _NSRange, ffi.Pointer) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_registerClosure( + (ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2) => + fn(arg0, arg1, arg2))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + _NSRange, ffi.Pointer)>? _dartFuncListenerTrampoline; - int indexOfObjectAtIndexes_options_passingTest_( - NSIndexSet? s, int opts, ObjCBlock5 predicate) { - return _lib._objc_msgSend_103( - _id, - _lib._sel_indexOfObjectAtIndexes_options_passingTest_1, - s?._id ?? ffi.nullptr, - opts, - predicate._id); - } + void call(ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + _NSRange, ffi.Pointer)>()(_id, arg0, arg1, arg2); +} - NSIndexSet indexesOfObjectsPassingTest_(ObjCBlock5 predicate) { - final _ret = _lib._objc_msgSend_104( - _id, _lib._sel_indexesOfObjectsPassingTest_1, predicate._id); - return NSIndexSet._(_ret, _lib, retain: true, release: true); - } +/// Read/Write Options +abstract class NSDataReadingOptions { + static const int NSDataReadingMappedIfSafe = 1; + static const int NSDataReadingUncached = 2; + static const int NSDataReadingMappedAlways = 8; + static const int NSDataReadingMapped = 1; + static const int NSMappedRead = 1; + static const int NSUncachedRead = 2; +} - NSIndexSet indexesOfObjectsWithOptions_passingTest_( - int opts, ObjCBlock5 predicate) { - final _ret = _lib._objc_msgSend_105( - _id, - _lib._sel_indexesOfObjectsWithOptions_passingTest_1, - opts, - predicate._id); - return NSIndexSet._(_ret, _lib, retain: true, release: true); - } +void _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, ffi.UnsignedLong arg1)>>() + .asFunction, int)>()(arg0, arg1); +final _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureRegistry = + , int)>{}; +int _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_registerClosure( + void Function(ffi.Pointer, int) fn) { + final id = ++_ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureRegistryIndex; + _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - NSIndexSet indexesOfObjectsAtIndexes_options_passingTest_( - NSIndexSet? s, int opts, ObjCBlock5 predicate) { - final _ret = _lib._objc_msgSend_106( - _id, - _lib._sel_indexesOfObjectsAtIndexes_options_passingTest_1, - s?._id ?? ffi.nullptr, - opts, - predicate._id); - return NSIndexSet._(_ret, _lib, retain: true, release: true); - } +void _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) => + _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureRegistry[ + block.ref.target.address]!(arg0, arg1); - NSArray sortedArrayUsingComparator_(ObjCBlock6 cmptr) { - final _ret = _lib._objc_msgSend_107( - _id, _lib._sel_sortedArrayUsingComparator_1, cmptr._id); - return NSArray._(_ret, _lib, retain: true, release: true); - } +class ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); - NSArray sortedArrayWithOptions_usingComparator_(int opts, ObjCBlock6 cmptr) { - final _ret = _lib._objc_msgSend_108(_id, - _lib._sel_sortedArrayWithOptions_usingComparator_1, opts, cmptr._id); - return NSArray._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, ffi.UnsignedLong arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer, ffi.UnsignedLong)>( + _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - int indexOfObject_inSortedRange_options_usingComparator_( - NSObject obj, _NSRange r, int opts, ObjCBlock6 cmp) { - return _lib._objc_msgSend_109( - _id, - _lib._sel_indexOfObject_inSortedRange_options_usingComparator_1, - obj._id, - r, - opts, - cmp._id); - } + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong.fromFunction( + PedometerBindings lib, void Function(ffi.Pointer, int) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer, ffi.UnsignedLong)>( + _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_registerClosure( + (ffi.Pointer arg0, int arg1) => fn(arg0, arg1))), + lib); + static ffi.Pointer? _dartFuncTrampoline; - static NSArray array(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSArray1, _lib._sel_array1); - return NSArray._(_ret, _lib, retain: true, release: true); - } + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong.listener( + PedometerBindings lib, void Function(ffi.Pointer, int) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.UnsignedLong)>.listener( + _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_registerClosure( + (ffi.Pointer arg0, int arg1) => fn(arg0, arg1))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.UnsignedLong)>? _dartFuncListenerTrampoline; - static NSArray arrayWithObject_(PedometerBindings _lib, NSObject anObject) { - final _ret = _lib._objc_msgSend_16( - _lib._class_NSArray1, _lib._sel_arrayWithObject_1, anObject._id); - return NSArray._(_ret, _lib, retain: true, release: true); - } + void call(ffi.Pointer arg0, int arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.UnsignedLong arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + int)>()(_id, arg0, arg1); +} - static NSArray arrayWithObjects_count_(PedometerBindings _lib, - ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_53( - _lib._class_NSArray1, _lib._sel_arrayWithObjects_count_1, objects, cnt); - return NSArray._(_ret, _lib, retain: true, release: true); - } +abstract class NSDataBase64DecodingOptions { + static const int NSDataBase64DecodingIgnoreUnknownCharacters = 1; +} - static NSArray arrayWithObjects_(PedometerBindings _lib, NSObject firstObj) { - final _ret = _lib._objc_msgSend_16( - _lib._class_NSArray1, _lib._sel_arrayWithObjects_1, firstObj._id); - return NSArray._(_ret, _lib, retain: true, release: true); - } +/// Base 64 Options +abstract class NSDataBase64EncodingOptions { + static const int NSDataBase64Encoding64CharacterLineLength = 1; + static const int NSDataBase64Encoding76CharacterLineLength = 2; + static const int NSDataBase64EncodingEndLineWithCarriageReturn = 16; + static const int NSDataBase64EncodingEndLineWithLineFeed = 32; +} - static NSArray arrayWithArray_(PedometerBindings _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_59(_lib._class_NSArray1, - _lib._sel_arrayWithArray_1, array?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } +abstract class NSDataCompressionAlgorithm { + static const int NSDataCompressionAlgorithmLZFSE = 0; + static const int NSDataCompressionAlgorithmLZ4 = 1; + static const int NSDataCompressionAlgorithmLZMA = 2; + static const int NSDataCompressionAlgorithmZlib = 3; +} - NSArray initWithObjects_(NSObject firstObj) { - final _ret = - _lib._objc_msgSend_16(_id, _lib._sel_initWithObjects_1, firstObj._id); - return NSArray._(_ret, _lib, retain: true, release: true); +/// ! +/// Describes the action an NSCoder should take when it encounters decode failures (e.g. corrupt data) for non-TopLevel decodes. +abstract class NSDecodingFailurePolicy { + static const int NSDecodingFailurePolicyRaiseException = 0; + static const int NSDecodingFailurePolicySetErrorAndReturn = 1; +} + +abstract class NSStringCompareOptions { + static const int NSCaseInsensitiveSearch = 1; + static const int NSLiteralSearch = 2; + static const int NSBackwardsSearch = 4; + static const int NSAnchoredSearch = 8; + static const int NSNumericSearch = 64; + static const int NSDiacriticInsensitiveSearch = 128; + static const int NSWidthInsensitiveSearch = 256; + static const int NSForcedOrderingSearch = 512; + static const int NSRegularExpressionSearch = 1024; +} + +class NSLocale extends NSObject { + NSLocale._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSLocale] that points to the same underlying object as [other]. + static NSLocale castFrom(T other) { + return NSLocale._(other._id, other._lib, retain: true, release: true); } - NSArray initWithArray_(NSArray? array) { - final _ret = _lib._objc_msgSend_59( - _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + /// Returns a [NSLocale] that wraps the given raw object pointer. + static NSLocale castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSLocale._(other, lib, retain: retain, release: release); } - NSArray initWithArray_copyItems_(NSArray? array, bool flag) { - final _ret = _lib._objc_msgSend_110(_id, - _lib._sel_initWithArray_copyItems_1, array?._id ?? ffi.nullptr, flag); - return NSArray._(_ret, _lib, retain: false, release: true); + /// Returns whether [obj] is an instance of [NSLocale]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSLocale1); } - NSArray initWithContentsOfURL_error_( - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_111( - _id, - _lib._sel_initWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSArray._(_ret, _lib, retain: true, release: true); + NSObject? objectForKey_(NSString key) { + final _ret = _lib._objc_msgSend_38(_id, _lib._sel_objectForKey_1, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSArray arrayWithContentsOfURL_error_(PedometerBindings _lib, - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_111( - _lib._class_NSArray1, - _lib._sel_arrayWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSArray._(_ret, _lib, retain: true, release: true); + NSString? displayNameForKey_value_(NSString key, NSObject value) { + final _ret = _lib._objc_msgSend_275( + _id, _lib._sel_displayNameForKey_value_1, key._id, value._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSObject differenceFromArray_withOptions_usingEquivalenceTest_( - NSArray? other, int options, ObjCBlock7 block) { - final _ret = _lib._objc_msgSend_112( - _id, - _lib._sel_differenceFromArray_withOptions_usingEquivalenceTest_1, - other?._id ?? ffi.nullptr, - options, - block._id); - return NSObject._(_ret, _lib, retain: true, release: true); + NSLocale initWithLocaleIdentifier_(NSString string) { + final _ret = _lib._objc_msgSend_31( + _id, _lib._sel_initWithLocaleIdentifier_1, string._id); + return NSLocale._(_ret, _lib, retain: true, release: true); } - NSObject differenceFromArray_withOptions_(NSArray? other, int options) { - final _ret = _lib._objc_msgSend_113( - _id, - _lib._sel_differenceFromArray_withOptions_1, - other?._id ?? ffi.nullptr, - options); - return NSObject._(_ret, _lib, retain: true, release: true); + NSLocale? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSLocale._(_ret, _lib, retain: true, release: true); } - NSObject differenceFromArray_(NSArray? other) { - final _ret = _lib._objc_msgSend_59( - _id, _lib._sel_differenceFromArray_1, other?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSString get localeIdentifier { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_localeIdentifier1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSArray arrayByApplyingDifference_(NSObject? difference) { - final _ret = _lib._objc_msgSend_54(_id, - _lib._sel_arrayByApplyingDifference_1, difference?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSString localizedStringForLocaleIdentifier_(NSString localeIdentifier) { + final _ret = _lib._objc_msgSend_61(_id, + _lib._sel_localizedStringForLocaleIdentifier_1, localeIdentifier._id); + return NSString._(_ret, _lib, retain: true, release: true); } - void getObjects_(ffi.Pointer> objects) { - return _lib._objc_msgSend_114(_id, _lib._sel_getObjects_1, objects); + NSString get languageCode { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_languageCode1); + return NSString._(_ret, _lib, retain: true, release: true); } - static NSArray arrayWithContentsOfFile_( - PedometerBindings _lib, NSString? path) { - final _ret = _lib._objc_msgSend_115(_lib._class_NSArray1, - _lib._sel_arrayWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSString? localizedStringForLanguageCode_(NSString languageCode) { + final _ret = _lib._objc_msgSend_276( + _id, _lib._sel_localizedStringForLanguageCode_1, languageCode._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSArray arrayWithContentsOfURL_(PedometerBindings _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_116(_lib._class_NSArray1, - _lib._sel_arrayWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + /// Returns the identifier for the language part of the locale. For example, returns "en-US" for "en_US@rg=gbzzzz" locale. + NSString get languageIdentifier { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_languageIdentifier1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSArray initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_115( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSString? get countryCode { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_countryCode1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSArray initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_116( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSString? localizedStringForCountryCode_(NSString countryCode) { + final _ret = _lib._objc_msgSend_276( + _id, _lib._sel_localizedStringForCountryCode_1, countryCode._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - bool writeToFile_atomically_(NSString? path, bool useAuxiliaryFile) { - return _lib._objc_msgSend_25(_id, _lib._sel_writeToFile_atomically_1, - path?._id ?? ffi.nullptr, useAuxiliaryFile); + /// Returns the region code of the locale. + /// If the `rg` subtag is present, the value of the subtag will be used. For example, returns "GB" for "en_US@rg=gbzzzz" locale. + /// If the `localeIdentifier` doesn’t contain a region, returns `nil`. + NSString? get regionCode { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_regionCode1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - bool writeToURL_atomically_(NSURL? url, bool atomically) { - return _lib._objc_msgSend_117(_id, _lib._sel_writeToURL_atomically_1, - url?._id ?? ffi.nullptr, atomically); + NSString? get scriptCode { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_scriptCode1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSArray pathsMatchingExtensions_(NSArray? filterTypes) { - final _ret = _lib._objc_msgSend_55(_id, _lib._sel_pathsMatchingExtensions_1, - filterTypes?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSString? localizedStringForScriptCode_(NSString scriptCode) { + final _ret = _lib._objc_msgSend_276( + _id, _lib._sel_localizedStringForScriptCode_1, scriptCode._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - @override - NSObject valueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_valueForKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSString? get variantCode { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_variantCode1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - @override - void setValue_forKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_118( - _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); + NSString? localizedStringForVariantCode_(NSString variantCode) { + final _ret = _lib._objc_msgSend_276( + _id, _lib._sel_localizedStringForVariantCode_1, variantCode._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void addObserver_toObjectsAtIndexes_forKeyPath_options_context_( - NSObject? observer, - NSIndexSet? indexes, - NSString? keyPath, - int options, - ffi.Pointer context) { - return _lib._objc_msgSend_119( - _id, - _lib._sel_addObserver_toObjectsAtIndexes_forKeyPath_options_context_1, - observer?._id ?? ffi.nullptr, - indexes?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, - options, - context); + NSCharacterSet get exemplarCharacterSet { + final _ret = _lib._objc_msgSend_277(_id, _lib._sel_exemplarCharacterSet1); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - void removeObserver_fromObjectsAtIndexes_forKeyPath_context_( - NSObject? observer, - NSIndexSet? indexes, - NSString? keyPath, - ffi.Pointer context) { - return _lib._objc_msgSend_120( - _id, - _lib._sel_removeObserver_fromObjectsAtIndexes_forKeyPath_context_1, - observer?._id ?? ffi.nullptr, - indexes?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, - context); + NSString get calendarIdentifier { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_calendarIdentifier1); + return NSString._(_ret, _lib, retain: true, release: true); } - void removeObserver_fromObjectsAtIndexes_forKeyPath_( - NSObject? observer, NSIndexSet? indexes, NSString? keyPath) { - return _lib._objc_msgSend_121( + NSString? localizedStringForCalendarIdentifier_(NSString calendarIdentifier) { + final _ret = _lib._objc_msgSend_276( _id, - _lib._sel_removeObserver_fromObjectsAtIndexes_forKeyPath_1, - observer?._id ?? ffi.nullptr, - indexes?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr); + _lib._sel_localizedStringForCalendarIdentifier_1, + calendarIdentifier._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - @override - void addObserver_forKeyPath_options_context_(NSObject? observer, - NSString? keyPath, int options, ffi.Pointer context) { - return _lib._objc_msgSend_122( - _id, - _lib._sel_addObserver_forKeyPath_options_context_1, - observer?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, - options, - context); + NSString? get collationIdentifier { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_collationIdentifier1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - @override - void removeObserver_forKeyPath_context_( - NSObject? observer, NSString? keyPath, ffi.Pointer context) { - return _lib._objc_msgSend_123( + NSString? localizedStringForCollationIdentifier_( + NSString collationIdentifier) { + final _ret = _lib._objc_msgSend_276( _id, - _lib._sel_removeObserver_forKeyPath_context_1, - observer?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, - context); + _lib._sel_localizedStringForCollationIdentifier_1, + collationIdentifier._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - @override - void removeObserver_forKeyPath_(NSObject? observer, NSString? keyPath) { - return _lib._objc_msgSend_124(_id, _lib._sel_removeObserver_forKeyPath_1, - observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); + bool get usesMetricSystem { + return _lib._objc_msgSend_12(_id, _lib._sel_usesMetricSystem1); } - NSArray sortedArrayUsingDescriptors_(NSArray? sortDescriptors) { - final _ret = _lib._objc_msgSend_55( - _id, - _lib._sel_sortedArrayUsingDescriptors_1, - sortDescriptors?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSString get decimalSeparator { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_decimalSeparator1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSArray filteredArrayUsingPredicate_(NSPredicate? predicate) { - final _ret = _lib._objc_msgSend_159(_id, - _lib._sel_filteredArrayUsingPredicate_1, predicate?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSString get groupingSeparator { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_groupingSeparator1); + return NSString._(_ret, _lib, retain: true, release: true); } - static NSArray new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSArray1, _lib._sel_new1); - return NSArray._(_ret, _lib, retain: false, release: true); + NSString get currencySymbol { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_currencySymbol1); + return NSString._(_ret, _lib, retain: true, release: true); } - static NSArray alloc(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSArray1, _lib._sel_alloc1); - return NSArray._(_ret, _lib, retain: false, release: true); + NSString? get currencyCode { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_currencyCode1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - PedometerBindings _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSArray1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + NSString? localizedStringForCurrencyCode_(NSString currencyCode) { + final _ret = _lib._objc_msgSend_276( + _id, _lib._sel_localizedStringForCurrencyCode_1, currencyCode._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_( - PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSArray1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + NSString get collatorIdentifier { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_collatorIdentifier1); + return NSString._(_ret, _lib, retain: true, release: true); } - static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSArray1, _lib._sel_accessInstanceVariablesDirectly1); + NSString? localizedStringForCollatorIdentifier_(NSString collatorIdentifier) { + final _ret = _lib._objc_msgSend_276( + _id, + _lib._sel_localizedStringForCollatorIdentifier_1, + collatorIdentifier._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static bool useStoredAccessor(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSArray1, _lib._sel_useStoredAccessor1); + NSString get quotationBeginDelimiter { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_quotationBeginDelimiter1); + return NSString._(_ret, _lib, retain: true, release: true); } - static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSArray1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + NSString get quotationEndDelimiter { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_quotationEndDelimiter1); + return NSString._(_ret, _lib, retain: true, release: true); } - static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSArray1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + NSString get alternateQuotationBeginDelimiter { + final _ret = + _lib._objc_msgSend_21(_id, _lib._sel_alternateQuotationBeginDelimiter1); + return NSString._(_ret, _lib, retain: true, release: true); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSArray1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + NSString get alternateQuotationEndDelimiter { + final _ret = + _lib._objc_msgSend_21(_id, _lib._sel_alternateQuotationEndDelimiter1); + return NSString._(_ret, _lib, retain: true, release: true); } - static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSArray1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + static NSLocale getAutoupdatingCurrentLocale(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_287( + _lib._class_NSLocale1, _lib._sel_autoupdatingCurrentLocale1); + return NSLocale._(_ret, _lib, retain: true, release: true); } - static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSArray1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSLocale getCurrentLocale(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_287(_lib._class_NSLocale1, _lib._sel_currentLocale1); + return NSLocale._(_ret, _lib, retain: true, release: true); } -} -class NSError extends NSObject { - NSError._(ffi.Pointer id, PedometerBindings lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSError] that points to the same underlying object as [other]. - static NSError castFrom(T other) { - return NSError._(other._id, other._lib, retain: true, release: true); + static NSLocale getSystemLocale(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_287(_lib._class_NSLocale1, _lib._sel_systemLocale1); + return NSLocale._(_ret, _lib, retain: true, release: true); } - /// Returns a [NSError] that wraps the given raw object pointer. - static NSError castFromPointer( - PedometerBindings lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSError._(other, lib, retain: retain, release: release); + static NSLocale localeWithLocaleIdentifier_( + PedometerBindings _lib, NSString ident) { + final _ret = _lib._objc_msgSend_31(_lib._class_NSLocale1, + _lib._sel_localeWithLocaleIdentifier_1, ident._id); + return NSLocale._(_ret, _lib, retain: true, release: true); } - /// Returns whether [obj] is an instance of [NSError]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSError1); + @override + NSLocale init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSLocale._(_ret, _lib, retain: true, release: true); } - NSError initWithDomain_code_userInfo_( - NSString domain, int code, NSObject? dict) { - final _ret = _lib._objc_msgSend_69( - _id, - _lib._sel_initWithDomain_code_userInfo_1, - domain._id, - code, - dict?._id ?? ffi.nullptr); - return NSError._(_ret, _lib, retain: true, release: true); + static NSArray getAvailableLocaleIdentifiers(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77( + _lib._class_NSLocale1, _lib._sel_availableLocaleIdentifiers1); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSError errorWithDomain_code_userInfo_( - PedometerBindings _lib, NSString domain, int code, NSObject? dict) { - final _ret = _lib._objc_msgSend_69( - _lib._class_NSError1, - _lib._sel_errorWithDomain_code_userInfo_1, - domain._id, - code, - dict?._id ?? ffi.nullptr); - return NSError._(_ret, _lib, retain: true, release: true); + static NSArray getISOLanguageCodes(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77( + _lib._class_NSLocale1, _lib._sel_ISOLanguageCodes1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSString get domain { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_domain1); - return NSString._(_ret, _lib, retain: true, release: true); + static NSArray getISOCountryCodes(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77( + _lib._class_NSLocale1, _lib._sel_ISOCountryCodes1); + return NSArray._(_ret, _lib, retain: true, release: true); } - int get code { - return _lib._objc_msgSend_70(_id, _lib._sel_code1); + static NSArray getISOCurrencyCodes(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77( + _lib._class_NSLocale1, _lib._sel_ISOCurrencyCodes1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSObject? get userInfo { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_userInfo1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); + static NSArray getCommonISOCurrencyCodes(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77( + _lib._class_NSLocale1, _lib._sel_commonISOCurrencyCodes1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSString? get localizedDescription { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localizedDescription1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSArray getPreferredLanguages(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77( + _lib._class_NSLocale1, _lib._sel_preferredLanguages1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSString? get localizedFailureReason { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localizedFailureReason1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSDictionary componentsFromLocaleIdentifier_( + PedometerBindings _lib, NSString string) { + final _ret = _lib._objc_msgSend_288(_lib._class_NSLocale1, + _lib._sel_componentsFromLocaleIdentifier_1, string._id); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - NSString? get localizedRecoverySuggestion { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_localizedRecoverySuggestion1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSString localeIdentifierFromComponents_( + PedometerBindings _lib, NSDictionary dict) { + final _ret = _lib._objc_msgSend_289(_lib._class_NSLocale1, + _lib._sel_localeIdentifierFromComponents_1, dict._id); + return NSString._(_ret, _lib, retain: true, release: true); } - NSArray? get localizedRecoveryOptions { - final _ret = - _lib._objc_msgSend_71(_id, _lib._sel_localizedRecoveryOptions1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static NSString canonicalLocaleIdentifierFromString_( + PedometerBindings _lib, NSString string) { + final _ret = _lib._objc_msgSend_61(_lib._class_NSLocale1, + _lib._sel_canonicalLocaleIdentifierFromString_1, string._id); + return NSString._(_ret, _lib, retain: true, release: true); } - NSObject get recoveryAttempter { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_recoveryAttempter1); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSString canonicalLanguageIdentifierFromString_( + PedometerBindings _lib, NSString string) { + final _ret = _lib._objc_msgSend_61(_lib._class_NSLocale1, + _lib._sel_canonicalLanguageIdentifierFromString_1, string._id); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get helpAnchor { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_helpAnchor1); + static NSString? localeIdentifierFromWindowsLocaleCode_( + PedometerBindings _lib, int lcid) { + final _ret = _lib._objc_msgSend_290(_lib._class_NSLocale1, + _lib._sel_localeIdentifierFromWindowsLocaleCode_1, lcid); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSArray? get underlyingErrors { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_underlyingErrors1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static int windowsLocaleCodeFromLocaleIdentifier_( + PedometerBindings _lib, NSString localeIdentifier) { + return _lib._objc_msgSend_291( + _lib._class_NSLocale1, + _lib._sel_windowsLocaleCodeFromLocaleIdentifier_1, + localeIdentifier._id); } - static void setUserInfoValueProviderForDomain_provider_( - PedometerBindings _lib, NSString errorDomain, ObjCBlock provider) { - return _lib._objc_msgSend_72( - _lib._class_NSError1, - _lib._sel_setUserInfoValueProviderForDomain_provider_1, - errorDomain._id, - provider._id); + static int characterDirectionForLanguage_( + PedometerBindings _lib, NSString isoLangCode) { + return _lib._objc_msgSend_292(_lib._class_NSLocale1, + _lib._sel_characterDirectionForLanguage_1, isoLangCode._id); } - static ObjCBlock userInfoValueProviderForDomain_(PedometerBindings _lib, - NSError? err, NSString userInfoKey, NSString errorDomain) { - final _ret = _lib._objc_msgSend_73( - _lib._class_NSError1, - _lib._sel_userInfoValueProviderForDomain_1, - err?._id ?? ffi.nullptr, - userInfoKey._id, - errorDomain._id); - return ObjCBlock._(_ret, _lib); + static int lineDirectionForLanguage_( + PedometerBindings _lib, NSString isoLangCode) { + return _lib._objc_msgSend_292(_lib._class_NSLocale1, + _lib._sel_lineDirectionForLanguage_1, isoLangCode._id); } - static NSError new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSError1, _lib._sel_new1); - return NSError._(_ret, _lib, retain: false, release: true); + static NSLocale new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSLocale1, _lib._sel_new1); + return NSLocale._(_ret, _lib, retain: false, release: true); } - static NSError alloc(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSError1, _lib._sel_alloc1); - return NSError._(_ret, _lib, retain: false, release: true); + static NSLocale allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSLocale1, _lib._sel_allocWithZone_1, zone); + return NSLocale._(_ret, _lib, retain: false, release: true); + } + + static NSLocale alloc(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSLocale1, _lib._sel_alloc1); + return NSLocale._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSError1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSLocale1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSError1, + _lib._objc_msgSend_15(_lib._class_NSLocale1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSError1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSLocale1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSError1, _lib._sel_useStoredAccessor1); + _lib._class_NSLocale1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSError1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSLocale1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSError1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSError1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSLocale1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSError1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_NSLocale1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSError1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSLocale1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class _ObjCBlockBase implements ffi.Finalizable { - final ffi.Pointer<_ObjCBlock> _id; - final PedometerBindings _lib; - bool _pendingRelease; - - _ObjCBlockBase._(this._id, this._lib, - {bool retain = false, bool release = false}) - : _pendingRelease = release { - if (retain) { - _lib._Block_copy(_id.cast()); - } - if (release) { - _lib._objc_releaseFinalizer11.attach(this, _id.cast(), detach: this); - } - } - - /// Releases the reference to the underlying ObjC block held by this wrapper. - /// Throws a StateError if this wrapper doesn't currently hold a reference. - void release() { - if (_pendingRelease) { - _pendingRelease = false; - _lib._Block_release(_id.cast()); - _lib._objc_releaseFinalizer11.detach(this); - } else { - throw StateError( - 'Released an ObjC block that was unowned or already released.'); - } - } - - @override - bool operator ==(Object other) { - return other is _ObjCBlockBase && _id == other._id; - } - - @override - int get hashCode => _id.hashCode; -} - -ffi.Pointer _ObjCBlock_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - ffi.Pointer Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock_closureRegistry = {}; -int _ObjCBlock_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_registerClosure(Function fn) { - final id = ++_ObjCBlock_closureRegistryIndex; - _ObjCBlock_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -ffi.Pointer _ObjCBlock_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { - return _ObjCBlock_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock extends _ObjCBlockBase { - ObjCBlock._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock.fromFunctionPointer( - PedometerBindings lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock.fromFunction( - PedometerBindings lib, - ffi.Pointer Function( - ffi.Pointer arg0, ffi.Pointer arg1) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock_closureTrampoline) - .cast(), - _ObjCBlock_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - ffi.Pointer call( - ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -final class _ObjCBlockDesc extends ffi.Struct { - @ffi.UnsignedLong() - external int reserved; - - @ffi.UnsignedLong() - external int size; - - external ffi.Pointer copy_helper; - - external ffi.Pointer dispose_helper; - - external ffi.Pointer signature; -} - -final class _ObjCBlock extends ffi.Struct { - external ffi.Pointer isa; - - @ffi.Int() - external int flags; - - @ffi.Int() - external int reserved; - - external ffi.Pointer invoke; - - external ffi.Pointer<_ObjCBlockDesc> descriptor; - - external ffi.Pointer target; -} - -class NSIndexSet extends NSObject { - NSIndexSet._(ffi.Pointer id, PedometerBindings lib, +class NSCharacterSet extends NSObject { + NSCharacterSet._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSIndexSet] that points to the same underlying object as [other]. - static NSIndexSet castFrom(T other) { - return NSIndexSet._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSCharacterSet] that points to the same underlying object as [other]. + static NSCharacterSet castFrom(T other) { + return NSCharacterSet._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSIndexSet] that wraps the given raw object pointer. - static NSIndexSet castFromPointer( + /// Returns a [NSCharacterSet] that wraps the given raw object pointer. + static NSCharacterSet castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSIndexSet._(other, lib, retain: retain, release: release); + return NSCharacterSet._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSIndexSet]. + /// Returns whether [obj] is an instance of [NSCharacterSet]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSIndexSet1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSCharacterSet1); } - static NSIndexSet indexSet(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSIndexSet1, _lib._sel_indexSet1); - return NSIndexSet._(_ret, _lib, retain: true, release: true); + static NSCharacterSet getControlCharacterSet(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_277( + _lib._class_NSCharacterSet1, _lib._sel_controlCharacterSet1); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSIndexSet indexSetWithIndex_(PedometerBindings _lib, int value) { - final _ret = _lib._objc_msgSend_52( - _lib._class_NSIndexSet1, _lib._sel_indexSetWithIndex_1, value); - return NSIndexSet._(_ret, _lib, retain: true, release: true); + static NSCharacterSet getWhitespaceCharacterSet(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_277( + _lib._class_NSCharacterSet1, _lib._sel_whitespaceCharacterSet1); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSIndexSet indexSetWithIndexesInRange_( - PedometerBindings _lib, _NSRange range) { - final _ret = _lib._objc_msgSend_77( - _lib._class_NSIndexSet1, _lib._sel_indexSetWithIndexesInRange_1, range); - return NSIndexSet._(_ret, _lib, retain: true, release: true); + static NSCharacterSet getWhitespaceAndNewlineCharacterSet( + PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_277(_lib._class_NSCharacterSet1, + _lib._sel_whitespaceAndNewlineCharacterSet1); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - NSIndexSet initWithIndexesInRange_(_NSRange range) { - final _ret = - _lib._objc_msgSend_77(_id, _lib._sel_initWithIndexesInRange_1, range); - return NSIndexSet._(_ret, _lib, retain: true, release: true); + static NSCharacterSet getDecimalDigitCharacterSet(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_277( + _lib._class_NSCharacterSet1, _lib._sel_decimalDigitCharacterSet1); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - NSIndexSet initWithIndexSet_(NSIndexSet? indexSet) { - final _ret = _lib._objc_msgSend_78( - _id, _lib._sel_initWithIndexSet_1, indexSet?._id ?? ffi.nullptr); - return NSIndexSet._(_ret, _lib, retain: true, release: true); + static NSCharacterSet getLetterCharacterSet(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_277( + _lib._class_NSCharacterSet1, _lib._sel_letterCharacterSet1); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - NSIndexSet initWithIndex_(int value) { - final _ret = _lib._objc_msgSend_52(_id, _lib._sel_initWithIndex_1, value); - return NSIndexSet._(_ret, _lib, retain: true, release: true); + static NSCharacterSet getLowercaseLetterCharacterSet(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_277( + _lib._class_NSCharacterSet1, _lib._sel_lowercaseLetterCharacterSet1); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - bool isEqualToIndexSet_(NSIndexSet? indexSet) { - return _lib._objc_msgSend_79( - _id, _lib._sel_isEqualToIndexSet_1, indexSet?._id ?? ffi.nullptr); + static NSCharacterSet getUppercaseLetterCharacterSet(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_277( + _lib._class_NSCharacterSet1, _lib._sel_uppercaseLetterCharacterSet1); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - int get count { - return _lib._objc_msgSend_10(_id, _lib._sel_count1); + static NSCharacterSet getNonBaseCharacterSet(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_277( + _lib._class_NSCharacterSet1, _lib._sel_nonBaseCharacterSet1); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - int get firstIndex { - return _lib._objc_msgSend_10(_id, _lib._sel_firstIndex1); + static NSCharacterSet getAlphanumericCharacterSet(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_277( + _lib._class_NSCharacterSet1, _lib._sel_alphanumericCharacterSet1); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - int get lastIndex { - return _lib._objc_msgSend_10(_id, _lib._sel_lastIndex1); + static NSCharacterSet getDecomposableCharacterSet(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_277( + _lib._class_NSCharacterSet1, _lib._sel_decomposableCharacterSet1); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - int indexGreaterThanIndex_(int value) { - return _lib._objc_msgSend_80(_id, _lib._sel_indexGreaterThanIndex_1, value); + static NSCharacterSet getIllegalCharacterSet(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_277( + _lib._class_NSCharacterSet1, _lib._sel_illegalCharacterSet1); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - int indexLessThanIndex_(int value) { - return _lib._objc_msgSend_80(_id, _lib._sel_indexLessThanIndex_1, value); + static NSCharacterSet getPunctuationCharacterSet(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_277( + _lib._class_NSCharacterSet1, _lib._sel_punctuationCharacterSet1); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - int indexGreaterThanOrEqualToIndex_(int value) { - return _lib._objc_msgSend_80( - _id, _lib._sel_indexGreaterThanOrEqualToIndex_1, value); + static NSCharacterSet getCapitalizedLetterCharacterSet( + PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_277( + _lib._class_NSCharacterSet1, _lib._sel_capitalizedLetterCharacterSet1); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - int indexLessThanOrEqualToIndex_(int value) { - return _lib._objc_msgSend_80( - _id, _lib._sel_indexLessThanOrEqualToIndex_1, value); + static NSCharacterSet getSymbolCharacterSet(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_277( + _lib._class_NSCharacterSet1, _lib._sel_symbolCharacterSet1); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - int getIndexes_maxCount_inIndexRange_( - ffi.Pointer indexBuffer, - int bufferSize, - ffi.Pointer<_NSRange> range) { - return _lib._objc_msgSend_81( - _id, - _lib._sel_getIndexes_maxCount_inIndexRange_1, - indexBuffer, - bufferSize, - range); + static NSCharacterSet getNewlineCharacterSet(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_277( + _lib._class_NSCharacterSet1, _lib._sel_newlineCharacterSet1); + return NSCharacterSet._(_ret, _lib, retain: false, release: true); } - int countOfIndexesInRange_(_NSRange range) { - return _lib._objc_msgSend_82(_id, _lib._sel_countOfIndexesInRange_1, range); + static NSCharacterSet characterSetWithRange_( + PedometerBindings _lib, _NSRange aRange) { + final _ret = _lib._objc_msgSend_278( + _lib._class_NSCharacterSet1, _lib._sel_characterSetWithRange_1, aRange); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - bool containsIndex_(int value) { - return _lib._objc_msgSend_83(_id, _lib._sel_containsIndex_1, value); + static NSCharacterSet characterSetWithCharactersInString_( + PedometerBindings _lib, NSString aString) { + final _ret = _lib._objc_msgSend_279(_lib._class_NSCharacterSet1, + _lib._sel_characterSetWithCharactersInString_1, aString._id); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - bool containsIndexesInRange_(_NSRange range) { - return _lib._objc_msgSend_84( - _id, _lib._sel_containsIndexesInRange_1, range); + static NSCharacterSet characterSetWithBitmapRepresentation_( + PedometerBindings _lib, NSData data) { + final _ret = _lib._objc_msgSend_280(_lib._class_NSCharacterSet1, + _lib._sel_characterSetWithBitmapRepresentation_1, data._id); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - bool containsIndexes_(NSIndexSet? indexSet) { - return _lib._objc_msgSend_79( - _id, _lib._sel_containsIndexes_1, indexSet?._id ?? ffi.nullptr); + static NSCharacterSet? characterSetWithContentsOfFile_( + PedometerBindings _lib, NSString fName) { + final _ret = _lib._objc_msgSend_281(_lib._class_NSCharacterSet1, + _lib._sel_characterSetWithContentsOfFile_1, fName._id); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); } - bool intersectsIndexesInRange_(_NSRange range) { - return _lib._objc_msgSend_84( - _id, _lib._sel_intersectsIndexesInRange_1, range); + NSCharacterSet initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_282(_id, _lib._sel_initWithCoder_1, coder._id); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - void enumerateIndexesUsingBlock_(ObjCBlock1 block) { - return _lib._objc_msgSend_85( - _id, _lib._sel_enumerateIndexesUsingBlock_1, block._id); + bool characterIsMember_(int aCharacter) { + return _lib._objc_msgSend_283( + _id, _lib._sel_characterIsMember_1, aCharacter); } - void enumerateIndexesWithOptions_usingBlock_(int opts, ObjCBlock1 block) { - return _lib._objc_msgSend_86(_id, - _lib._sel_enumerateIndexesWithOptions_usingBlock_1, opts, block._id); + NSData get bitmapRepresentation { + final _ret = _lib._objc_msgSend_43(_id, _lib._sel_bitmapRepresentation1); + return NSData._(_ret, _lib, retain: true, release: true); } - void enumerateIndexesInRange_options_usingBlock_( - _NSRange range, int opts, ObjCBlock1 block) { - return _lib._objc_msgSend_87( - _id, - _lib._sel_enumerateIndexesInRange_options_usingBlock_1, - range, - opts, - block._id); + NSCharacterSet get invertedSet { + final _ret = _lib._objc_msgSend_277(_id, _lib._sel_invertedSet1); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - int indexPassingTest_(ObjCBlock2 predicate) { - return _lib._objc_msgSend_88( - _id, _lib._sel_indexPassingTest_1, predicate._id); + bool longCharacterIsMember_(int theLongChar) { + return _lib._objc_msgSend_284( + _id, _lib._sel_longCharacterIsMember_1, theLongChar); } - int indexWithOptions_passingTest_(int opts, ObjCBlock2 predicate) { - return _lib._objc_msgSend_89( - _id, _lib._sel_indexWithOptions_passingTest_1, opts, predicate._id); + bool isSupersetOfSet_(NSCharacterSet theOtherSet) { + return _lib._objc_msgSend_285( + _id, _lib._sel_isSupersetOfSet_1, theOtherSet._id); } - int indexInRange_options_passingTest_( - _NSRange range, int opts, ObjCBlock2 predicate) { - return _lib._objc_msgSend_90( - _id, - _lib._sel_indexInRange_options_passingTest_1, - range, - opts, - predicate._id); + bool hasMemberInPlane_(int thePlane) { + return _lib._objc_msgSend_286(_id, _lib._sel_hasMemberInPlane_1, thePlane); } - NSIndexSet indexesPassingTest_(ObjCBlock2 predicate) { - final _ret = _lib._objc_msgSend_91( - _id, _lib._sel_indexesPassingTest_1, predicate._id); - return NSIndexSet._(_ret, _lib, retain: true, release: true); + static NSCharacterSet getURLUserAllowedCharacterSet(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_277( + _lib._class_NSCharacterSet1, _lib._sel_URLUserAllowedCharacterSet1); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - NSIndexSet indexesWithOptions_passingTest_(int opts, ObjCBlock2 predicate) { - final _ret = _lib._objc_msgSend_92( - _id, _lib._sel_indexesWithOptions_passingTest_1, opts, predicate._id); - return NSIndexSet._(_ret, _lib, retain: true, release: true); + static NSCharacterSet getURLPasswordAllowedCharacterSet( + PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_277( + _lib._class_NSCharacterSet1, _lib._sel_URLPasswordAllowedCharacterSet1); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - NSIndexSet indexesInRange_options_passingTest_( - _NSRange range, int opts, ObjCBlock2 predicate) { - final _ret = _lib._objc_msgSend_93( - _id, - _lib._sel_indexesInRange_options_passingTest_1, - range, - opts, - predicate._id); - return NSIndexSet._(_ret, _lib, retain: true, release: true); + static NSCharacterSet getURLHostAllowedCharacterSet(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_277( + _lib._class_NSCharacterSet1, _lib._sel_URLHostAllowedCharacterSet1); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - void enumerateRangesUsingBlock_(ObjCBlock3 block) { - return _lib._objc_msgSend_94( - _id, _lib._sel_enumerateRangesUsingBlock_1, block._id); + static NSCharacterSet getURLPathAllowedCharacterSet(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_277( + _lib._class_NSCharacterSet1, _lib._sel_URLPathAllowedCharacterSet1); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - void enumerateRangesWithOptions_usingBlock_(int opts, ObjCBlock3 block) { - return _lib._objc_msgSend_95(_id, - _lib._sel_enumerateRangesWithOptions_usingBlock_1, opts, block._id); + static NSCharacterSet getURLQueryAllowedCharacterSet(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_277( + _lib._class_NSCharacterSet1, _lib._sel_URLQueryAllowedCharacterSet1); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - void enumerateRangesInRange_options_usingBlock_( - _NSRange range, int opts, ObjCBlock3 block) { - return _lib._objc_msgSend_96( - _id, - _lib._sel_enumerateRangesInRange_options_usingBlock_1, - range, - opts, - block._id); + static NSCharacterSet getURLFragmentAllowedCharacterSet( + PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_277( + _lib._class_NSCharacterSet1, _lib._sel_URLFragmentAllowedCharacterSet1); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + @override + NSCharacterSet init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet new1(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSCharacterSet1, _lib._sel_new1); + return NSCharacterSet._(_ret, _lib, retain: false, release: true); } - static NSIndexSet new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSIndexSet1, _lib._sel_new1); - return NSIndexSet._(_ret, _lib, retain: false, release: true); + static NSCharacterSet allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSCharacterSet1, _lib._sel_allocWithZone_1, zone); + return NSCharacterSet._(_ret, _lib, retain: false, release: true); } - static NSIndexSet alloc(PedometerBindings _lib) { + static NSCharacterSet alloc(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSIndexSet1, _lib._sel_alloc1); - return NSIndexSet._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSCharacterSet1, _lib._sel_alloc1); + return NSCharacterSet._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSIndexSet1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSCharacterSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSIndexSet1, + _lib._objc_msgSend_15(_lib._class_NSCharacterSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSIndexSet1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSCharacterSet1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSIndexSet1, _lib._sel_useStoredAccessor1); + _lib._class_NSCharacterSet1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSIndexSet1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSCharacterSet1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSIndexSet1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSIndexSet1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSCharacterSet1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSIndexSet1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_NSCharacterSet1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSIndexSet1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSCharacterSet1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -void _ObjCBlock1_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.UnsignedLong arg0, ffi.Pointer arg1)>>() - .asFunction arg1)>()( - arg0, arg1); -} - -final _ObjCBlock1_closureRegistry = {}; -int _ObjCBlock1_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock1_registerClosure(Function fn) { - final id = ++_ObjCBlock1_closureRegistryIndex; - _ObjCBlock1_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); +abstract class NSLocaleLanguageDirection { + static const int NSLocaleLanguageDirectionUnknown = 0; + static const int NSLocaleLanguageDirectionLeftToRight = 1; + static const int NSLocaleLanguageDirectionRightToLeft = 2; + static const int NSLocaleLanguageDirectionTopToBottom = 3; + static const int NSLocaleLanguageDirectionBottomToTop = 4; } -void _ObjCBlock1_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { - return _ObjCBlock1_closureRegistry[block.ref.target.address]!(arg0, arg1); +abstract class NSStringEnumerationOptions { + static const int NSStringEnumerationByLines = 0; + static const int NSStringEnumerationByParagraphs = 1; + static const int NSStringEnumerationByComposedCharacterSequences = 2; + static const int NSStringEnumerationByWords = 3; + static const int NSStringEnumerationBySentences = 4; + static const int NSStringEnumerationByCaretPositions = 5; + static const int NSStringEnumerationByDeletionClusters = 6; + static const int NSStringEnumerationReverse = 256; + static const int NSStringEnumerationSubstringNotRequired = 512; + static const int NSStringEnumerationLocalized = 1024; } -class ObjCBlock1 extends _ObjCBlockBase { - ObjCBlock1._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock1.fromFunctionPointer( - PedometerBindings lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.UnsignedLong arg0, ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.UnsignedLong arg0, - ffi.Pointer arg1)>( - _ObjCBlock1_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock1.fromFunction(PedometerBindings lib, - void Function(int arg0, ffi.Pointer arg1) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.UnsignedLong arg0, - ffi.Pointer arg1)>( - _ObjCBlock1_closureTrampoline) - .cast(), - _ObjCBlock1_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(int arg0, ffi.Pointer arg1) { - return _id.ref.invoke +void _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + _NSRange arg2, + ffi.Pointer arg3) => + block.ref.target .cast< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.UnsignedLong arg0, ffi.Pointer arg1)>>() + ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, + _NSRange arg2, ffi.Pointer arg3)>>() .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, int arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -abstract class NSEnumerationOptions { - static const int NSEnumerationConcurrent = 1; - static const int NSEnumerationReverse = 2; -} - -bool _ObjCBlock2_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.UnsignedLong arg0, ffi.Pointer arg1)>>() - .asFunction arg1)>()( - arg0, arg1); -} - -final _ObjCBlock2_closureRegistry = {}; -int _ObjCBlock2_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock2_registerClosure(Function fn) { - final id = ++_ObjCBlock2_closureRegistryIndex; - _ObjCBlock2_closureRegistry[id] = fn; + void Function(ffi.Pointer, _NSRange, _NSRange, + ffi.Pointer)>()(arg0, arg1, arg2, arg3); +final _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureRegistry = , _NSRange, _NSRange, ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_registerClosure( + void Function(ffi.Pointer, _NSRange, _NSRange, + ffi.Pointer) + fn) { + final id = + ++_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -bool _ObjCBlock2_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { - return _ObjCBlock2_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock2 extends _ObjCBlockBase { - ObjCBlock2._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + _NSRange arg2, + ffi.Pointer arg3) => + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2, arg3); + +class ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock2.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool.fromFunctionPointer( PedometerBindings lib, ffi.Pointer< ffi.NativeFunction< - ffi.Bool Function( - ffi.UnsignedLong arg0, ffi.Pointer arg1)>> + ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, + _NSRange arg2, ffi.Pointer arg3)>> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.UnsignedLong arg0, - ffi.Pointer arg1)>( - _ObjCBlock2_fnPtrTrampoline, false) + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + _NSRange, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock2.fromFunction(PedometerBindings lib, - bool Function(int arg0, ffi.Pointer arg1) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool.fromFunction( + PedometerBindings lib, + void Function(NSString?, _NSRange, _NSRange, ffi.Pointer) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.UnsignedLong arg0, - ffi.Pointer arg1)>( - _ObjCBlock2_closureTrampoline, false) + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + _NSRange, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureTrampoline) .cast(), - _ObjCBlock2_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_registerClosure( + (ffi.Pointer arg0, _NSRange arg1, _NSRange arg2, + ffi.Pointer arg3) => + fn(arg0.address == 0 ? null : NSString._(arg0, lib, retain: true, release: true), arg1, arg2, arg3))), lib); static ffi.Pointer? _dartFuncTrampoline; - bool call(int arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer<_ObjCBlock> block, - ffi.UnsignedLong arg0, ffi.Pointer arg1)>>() - .asFunction< - bool Function(ffi.Pointer<_ObjCBlock> block, int arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -void _ObjCBlock3_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, _NSRange arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(_NSRange arg0, ffi.Pointer arg1)>>() - .asFunction< - void Function( - _NSRange arg0, ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock3_closureRegistry = {}; -int _ObjCBlock3_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock3_registerClosure(Function fn) { - final id = ++_ObjCBlock3_closureRegistryIndex; - _ObjCBlock3_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock3_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, _NSRange arg0, ffi.Pointer arg1) { - return _ObjCBlock3_closureRegistry[block.ref.target.address]!(arg0, arg1); -} -class ObjCBlock3 extends _ObjCBlockBase { - ObjCBlock3._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock3.fromFunctionPointer( + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool.listener( PedometerBindings lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(_NSRange arg0, ffi.Pointer arg1)>> - ptr) + void Function(NSString?, _NSRange, _NSRange, ffi.Pointer) fn) : this._( lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - _NSRange arg0, ffi.Pointer arg1)>( - _ObjCBlock3_fnPtrTrampoline) + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + _NSRange, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction .cast(), - ptr.cast()), + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_registerClosure( + (ffi.Pointer arg0, _NSRange arg1, _NSRange arg2, + ffi.Pointer arg3) => + fn(arg0.address == 0 ? null : NSString._(arg0, lib, retain: true, release: true), arg1, arg2, arg3))), lib); - static ffi.Pointer? _cFuncTrampoline; + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + _NSRange, + ffi.Pointer)>? _dartFuncListenerTrampoline; - /// Creates a block from a Dart function. - ObjCBlock3.fromFunction(PedometerBindings lib, - void Function(_NSRange arg0, ffi.Pointer arg1) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - _NSRange arg0, ffi.Pointer arg1)>( - _ObjCBlock3_closureTrampoline) - .cast(), - _ObjCBlock3_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(_NSRange arg0, ffi.Pointer arg1) { - return _id.ref.invoke + void call(NSString? arg0, _NSRange arg1, _NSRange arg2, + ffi.Pointer arg3) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + _NSRange arg2, + ffi.Pointer arg3)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + _NSRange, + ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1, arg2, arg3); +} + +void _ObjCBlock_ffiVoid_NSString_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + block.ref.target .cast< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, _NSRange arg0, + ffi.Void Function(ffi.Pointer arg0, ffi.Pointer arg1)>>() .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, _NSRange arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -void _ObjCBlock4_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.UnsignedLong arg1, ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock4_closureRegistry = {}; -int _ObjCBlock4_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock4_registerClosure(Function fn) { - final id = ++_ObjCBlock4_closureRegistryIndex; - _ObjCBlock4_closureRegistry[id] = fn; + void Function( + ffi.Pointer, ffi.Pointer)>()(arg0, arg1); +final _ObjCBlock_ffiVoid_NSString_bool_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSString_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSString_bool_registerClosure( + void Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSString_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSString_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock4_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return _ObjCBlock4_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock4 extends _ObjCBlockBase { - ObjCBlock4._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_NSString_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_NSString_bool_closureRegistry[block.ref.target.address]!( + arg0, arg1); + +class ObjCBlock_ffiVoid_NSString_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSString_bool._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock4.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSString_bool.fromFunctionPointer( PedometerBindings lib, ffi.Pointer< ffi.NativeFunction< ffi.Void Function(ffi.Pointer arg0, - ffi.UnsignedLong arg1, ffi.Pointer arg2)>> + ffi.Pointer arg1)>> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ffi.Pointer arg2)>( - _ObjCBlock4_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSString_bool_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock4.fromFunction( - PedometerBindings lib, - void Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSString_bool.fromFunction( + PedometerBindings lib, void Function(NSString, ffi.Pointer) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ffi.Pointer arg2)>( - _ObjCBlock4_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSString_bool_closureTrampoline) .cast(), - _ObjCBlock4_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSString_bool_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + NSString._(arg0, lib, retain: true, release: true), + arg1))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call( - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} -bool _ObjCBlock5_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.UnsignedLong arg1, ffi.Pointer arg2)>>() - .asFunction< - bool Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock5_closureRegistry = {}; -int _ObjCBlock5_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock5_registerClosure(Function fn) { - final id = ++_ObjCBlock5_closureRegistryIndex; - _ObjCBlock5_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -bool _ObjCBlock5_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return _ObjCBlock5_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock5 extends _ObjCBlockBase { - ObjCBlock5._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock5.fromFunctionPointer( - PedometerBindings lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.UnsignedLong arg1, ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ffi.Pointer arg2)>( - _ObjCBlock5_fnPtrTrampoline, false) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock5.fromFunction( - PedometerBindings lib, - bool Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2) - fn) + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSString_bool.listener( + PedometerBindings lib, void Function(NSString, ffi.Pointer) fn) : this._( lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ffi.Pointer arg2)>( - _ObjCBlock5_closureTrampoline, false) + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSString_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction .cast(), - _ObjCBlock5_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSString_bool_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(NSString._(arg0, lib, retain: true, release: true), + arg1))), lib); - static ffi.Pointer? _dartFuncTrampoline; - bool call( - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ffi.Pointer arg2)>>() - .asFunction< - bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -int _ObjCBlock6_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target + void call(NSString arg0, ffi.Pointer arg1) => _id.ref.invoke .cast< ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1)>>() .asFunction< - int Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()(_id, arg0._id, arg1); } -final _ObjCBlock6_closureRegistry = {}; -int _ObjCBlock6_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock6_registerClosure(Function fn) { - final id = ++_ObjCBlock6_closureRegistryIndex; - _ObjCBlock6_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); +abstract class NSStringEncodingConversionOptions { + static const int NSStringEncodingConversionAllowLossy = 1; + static const int NSStringEncodingConversionExternalRepresentation = 2; } -int _ObjCBlock6_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock6_closureRegistry[block.ref.target.address]!(arg0, arg1); +void _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.UnsignedLong arg1)>>() + .asFunction, int)>()( + arg0, arg1); +final _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureRegistry = + , int)>{}; +int _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureRegistryIndex = + 0; +ffi.Pointer + _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_registerClosure( + void Function(ffi.Pointer, int) fn) { + final id = + ++_ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureRegistryIndex; + _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); } -class ObjCBlock6 extends _ObjCBlockBase { - ObjCBlock6._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1) => + _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong + extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock6.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong.fromFunctionPointer( PedometerBindings lib, ffi.Pointer< ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> + ffi.Void Function(ffi.Pointer arg0, + ffi.UnsignedLong arg1)>> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Int32 Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock6_fnPtrTrampoline, 0) + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.UnsignedLong)>( + _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock6.fromFunction( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong.fromFunction( PedometerBindings lib, - int Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) + void Function(ffi.Pointer, int) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Int32 Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock6_closureTrampoline, 0) + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.UnsignedLong)>( + _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureTrampoline) .cast(), - _ObjCBlock6_registerClosure(fn)), + _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_registerClosure( + (ffi.Pointer arg0, int arg1) => + fn(arg0, arg1))), lib); static ffi.Pointer? _dartFuncTrampoline; - int call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - int Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -abstract class NSComparisonResult { - static const int NSOrderedAscending = -1; - static const int NSOrderedSame = 0; - static const int NSOrderedDescending = 1; -} - -abstract class NSSortOptions { - static const int NSSortConcurrent = 1; - static const int NSSortStable = 16; -} - -abstract class NSBinarySearchingOptions { - static const int NSBinarySearchingFirstEqual = 256; - static const int NSBinarySearchingLastEqual = 512; - static const int NSBinarySearchingInsertionIndex = 1024; -} - -/// Options supported by methods that produce difference objects. -abstract class NSOrderedCollectionDifferenceCalculationOptions { - /// Insertion changes do not store a reference to the inserted object. - static const int NSOrderedCollectionDifferenceCalculationOmitInsertedObjects = - 1; - - /// Insertion changes do not store a reference to the removed object. - static const int NSOrderedCollectionDifferenceCalculationOmitRemovedObjects = - 2; - - /// Assume objects that were uniquely removed and inserted were moved. - /// This is useful when diffing based on identity instead of equality. - static const int NSOrderedCollectionDifferenceCalculationInferMoves = 4; -} - -bool _ObjCBlock7_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock7_closureRegistry = {}; -int _ObjCBlock7_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock7_registerClosure(Function fn) { - final id = ++_ObjCBlock7_closureRegistryIndex; - _ObjCBlock7_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -bool _ObjCBlock7_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock7_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock7 extends _ObjCBlockBase { - ObjCBlock7._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock7.fromFunctionPointer( - PedometerBindings lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock7_fnPtrTrampoline, false) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - /// Creates a block from a Dart function. - ObjCBlock7.fromFunction( + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong.listener( PedometerBindings lib, - bool Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) + void Function(ffi.Pointer, int) fn) : this._( lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock7_closureTrampoline, false) + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.UnsignedLong)>.listener( + _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction .cast(), - _ObjCBlock7_registerClosure(fn)), + _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_registerClosure( + (ffi.Pointer arg0, int arg1) => + fn(arg0, arg1))), lib); - static ffi.Pointer? _dartFuncTrampoline; - bool call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.UnsignedLong)>? _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(ffi.Pointer arg0, int arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + int)>()(_id, arg0, arg1); } -abstract class NSKeyValueObservingOptions { - static const int NSKeyValueObservingOptionNew = 1; - static const int NSKeyValueObservingOptionOld = 2; - static const int NSKeyValueObservingOptionInitial = 4; - static const int NSKeyValueObservingOptionPrior = 8; +abstract class NSLinguisticTaggerOptions { + static const int NSLinguisticTaggerOmitWords = 1; + static const int NSLinguisticTaggerOmitPunctuation = 2; + static const int NSLinguisticTaggerOmitWhitespace = 4; + static const int NSLinguisticTaggerOmitOther = 8; + static const int NSLinguisticTaggerJoinNames = 16; } -class NSPredicate extends NSObject { - NSPredicate._(ffi.Pointer id, PedometerBindings lib, +class NSOrthography extends NSObject { + NSOrthography._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSPredicate] that points to the same underlying object as [other]. - static NSPredicate castFrom(T other) { - return NSPredicate._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSOrthography] that points to the same underlying object as [other]. + static NSOrthography castFrom(T other) { + return NSOrthography._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSPredicate] that wraps the given raw object pointer. - static NSPredicate castFromPointer( + /// Returns a [NSOrthography] that wraps the given raw object pointer. + static NSOrthography castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSPredicate._(other, lib, retain: retain, release: release); + return NSOrthography._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSPredicate]. + /// Returns whether [obj] is an instance of [NSOrthography]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSPredicate1); - } - - static NSPredicate predicateWithFormat_argumentArray_( - PedometerBindings _lib, NSString? predicateFormat, NSArray? arguments) { - final _ret = _lib._objc_msgSend_125( - _lib._class_NSPredicate1, - _lib._sel_predicateWithFormat_argumentArray_1, - predicateFormat?._id ?? ffi.nullptr, - arguments?._id ?? ffi.nullptr); - return NSPredicate._(_ret, _lib, retain: true, release: true); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSOrthography1); } - static NSPredicate predicateWithFormat_( - PedometerBindings _lib, NSString? predicateFormat) { - final _ret = _lib._objc_msgSend_126(_lib._class_NSPredicate1, - _lib._sel_predicateWithFormat_1, predicateFormat?._id ?? ffi.nullptr); - return NSPredicate._(_ret, _lib, retain: true, release: true); + NSString get dominantScript { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_dominantScript1); + return NSString._(_ret, _lib, retain: true, release: true); } - static NSPredicate predicateWithFormat_arguments_(PedometerBindings _lib, - NSString? predicateFormat, ffi.Pointer argList) { - final _ret = _lib._objc_msgSend_127( - _lib._class_NSPredicate1, - _lib._sel_predicateWithFormat_arguments_1, - predicateFormat?._id ?? ffi.nullptr, - argList); - return NSPredicate._(_ret, _lib, retain: true, release: true); + NSDictionary get languageMap { + final _ret = _lib._objc_msgSend_350(_id, _lib._sel_languageMap1); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSPredicate predicateFromMetadataQueryString_( - PedometerBindings _lib, NSString? queryString) { - final _ret = _lib._objc_msgSend_126( - _lib._class_NSPredicate1, - _lib._sel_predicateFromMetadataQueryString_1, - queryString?._id ?? ffi.nullptr); - return NSPredicate._(_ret, _lib, retain: true, release: true); + NSOrthography initWithDominantScript_languageMap_( + NSString script, NSDictionary map) { + final _ret = _lib._objc_msgSend_351(_id, + _lib._sel_initWithDominantScript_languageMap_1, script._id, map._id); + return NSOrthography._(_ret, _lib, retain: true, release: true); } - static NSPredicate predicateWithValue_(PedometerBindings _lib, bool value) { - final _ret = _lib._objc_msgSend_128( - _lib._class_NSPredicate1, _lib._sel_predicateWithValue_1, value); - return NSPredicate._(_ret, _lib, retain: true, release: true); + NSOrthography? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSOrthography._(_ret, _lib, retain: true, release: true); } - static NSPredicate predicateWithBlock_( - PedometerBindings _lib, ObjCBlock8 block) { - final _ret = _lib._objc_msgSend_157( - _lib._class_NSPredicate1, _lib._sel_predicateWithBlock_1, block._id); - return NSPredicate._(_ret, _lib, retain: true, release: true); + NSArray? languagesForScript_(NSString script) { + final _ret = + _lib._objc_msgSend_123(_id, _lib._sel_languagesForScript_1, script._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSString? get predicateFormat { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_predicateFormat1); + NSString? dominantLanguageForScript_(NSString script) { + final _ret = _lib._objc_msgSend_276( + _id, _lib._sel_dominantLanguageForScript_1, script._id); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSPredicate predicateWithSubstitutionVariables_(NSDictionary? variables) { - final _ret = _lib._objc_msgSend_141( - _id, - _lib._sel_predicateWithSubstitutionVariables_1, - variables?._id ?? ffi.nullptr); - return NSPredicate._(_ret, _lib, retain: true, release: true); + NSString get dominantLanguage { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_dominantLanguage1); + return NSString._(_ret, _lib, retain: true, release: true); } - bool evaluateWithObject_(NSObject object) { - return _lib._objc_msgSend_0( - _id, _lib._sel_evaluateWithObject_1, object._id); + NSArray get allScripts { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_allScripts1); + return NSArray._(_ret, _lib, retain: true, release: true); } - bool evaluateWithObject_substitutionVariables_( - NSObject object, NSDictionary? bindings) { - return _lib._objc_msgSend_158( - _id, - _lib._sel_evaluateWithObject_substitutionVariables_1, - object._id, - bindings?._id ?? ffi.nullptr); + NSArray get allLanguages { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_allLanguages1); + return NSArray._(_ret, _lib, retain: true, release: true); } - void allowEvaluation() { - return _lib._objc_msgSend_1(_id, _lib._sel_allowEvaluation1); + static NSOrthography defaultOrthographyForLanguage_( + PedometerBindings _lib, NSString language) { + final _ret = _lib._objc_msgSend_31(_lib._class_NSOrthography1, + _lib._sel_defaultOrthographyForLanguage_1, language._id); + return NSOrthography._(_ret, _lib, retain: true, release: true); } - static NSPredicate new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSPredicate1, _lib._sel_new1); - return NSPredicate._(_ret, _lib, retain: false, release: true); + static NSOrthography orthographyWithDominantScript_languageMap_( + PedometerBindings _lib, NSString script, NSDictionary map) { + final _ret = _lib._objc_msgSend_351( + _lib._class_NSOrthography1, + _lib._sel_orthographyWithDominantScript_languageMap_1, + script._id, + map._id); + return NSOrthography._(_ret, _lib, retain: true, release: true); } - static NSPredicate alloc(PedometerBindings _lib) { + @override + NSOrthography init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSOrthography._(_ret, _lib, retain: true, release: true); + } + + static NSOrthography new1(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSPredicate1, _lib._sel_alloc1); - return NSPredicate._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSOrthography1, _lib._sel_new1); + return NSOrthography._(_ret, _lib, retain: false, release: true); + } + + static NSOrthography allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSOrthography1, _lib._sel_allocWithZone_1, zone); + return NSOrthography._(_ret, _lib, retain: false, release: true); + } + + static NSOrthography alloc(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSOrthography1, _lib._sel_alloc1); + return NSOrthography._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSPredicate1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSOrthography1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSPredicate1, + _lib._objc_msgSend_15(_lib._class_NSOrthography1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSPredicate1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSOrthography1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSPredicate1, _lib._sel_useStoredAccessor1); + _lib._class_NSOrthography1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSPredicate1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSOrthography1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSPredicate1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSPredicate1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSOrthography1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSPredicate1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_NSOrthography1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } - static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSPredicate1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} + static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSOrthography1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +void _ObjCBlock_ffiVoid_ObjCObject_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function( + ffi.Pointer, ffi.Pointer)>()(arg0, arg1); +final _ObjCBlock_ffiVoid_ObjCObject_bool_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_ObjCObject_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_ObjCObject_bool_registerClosure( + void Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_ObjCObject_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_ObjCObject_bool_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_ObjCObject_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_ObjCObject_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_ffiVoid_ObjCObject_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ObjCObject_bool._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_bool.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_bool_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_bool.fromFunction( + PedometerBindings lib, void Function(NSObject, ffi.Pointer) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_bool_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_ObjCObject_bool_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + NSObject._(arg0, lib, retain: true, release: true), + arg1))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_ObjCObject_bool.listener( + PedometerBindings lib, void Function(NSObject, ffi.Pointer) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_ObjCObject_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_ObjCObject_bool_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(NSObject._(arg0, lib, retain: true, release: true), + arg1))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; -bool _ObjCBlock8_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target + void call(NSObject arg0, ffi.Pointer arg1) => _id.ref.invoke .cast< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1)>>() .asFunction< - bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()(_id, arg0._id, arg1); } -final _ObjCBlock8_closureRegistry = {}; -int _ObjCBlock8_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock8_registerClosure(Function fn) { - final id = ++_ObjCBlock8_closureRegistryIndex; - _ObjCBlock8_closureRegistry[id] = fn; +bool _ObjCBlock_bool_ObjCObject_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + bool Function( + ffi.Pointer, ffi.Pointer)>()(arg0, arg1); +final _ObjCBlock_bool_ObjCObject_bool_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_bool_ObjCObject_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_bool_ObjCObject_bool_registerClosure( + bool Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_bool_ObjCObject_bool_closureRegistryIndex; + _ObjCBlock_bool_ObjCObject_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -bool _ObjCBlock8_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock8_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock8 extends _ObjCBlockBase { - ObjCBlock8._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); +bool _ObjCBlock_bool_ObjCObject_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_bool_ObjCObject_bool_closureRegistry[block.ref.target.address]!( + arg0, arg1); + +class ObjCBlock_bool_ObjCObject_bool extends _ObjCBlockBase { + ObjCBlock_bool_ObjCObject_bool._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock8.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ObjCObject_bool.fromFunctionPointer( PedometerBindings lib, ffi.Pointer< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> + ffi.Pointer arg1)>> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock8_fnPtrTrampoline, false) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_bool_ObjCObject_bool_fnPtrTrampoline, false) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock8.fromFunction( - PedometerBindings lib, - bool Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ObjCObject_bool.fromFunction( + PedometerBindings lib, bool Function(NSObject, ffi.Pointer) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock8_closureTrampoline, false) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_bool_ObjCObject_bool_closureTrampoline, false) .cast(), - _ObjCBlock8_registerClosure(fn)), + _ObjCBlock_bool_ObjCObject_bool_registerClosure( + (ffi.Pointer arg0, + ffi.Pointer arg1) => + fn(NSObject._(arg0, lib, retain: true, release: true), arg1))), lib); static ffi.Pointer? _dartFuncTrampoline; - bool call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } - ffi.Pointer<_ObjCBlock> get pointer => _id; + bool call(NSObject arg0, ffi.Pointer arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1)>>() + .asFunction< + bool Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()(_id, arg0._id, arg1); } -/// Immutable Dictionary -class NSDictionary extends NSObject { - NSDictionary._(ffi.Pointer id, PedometerBindings lib, +class NSFileManager extends NSObject { + NSFileManager._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSDictionary] that points to the same underlying object as [other]. - static NSDictionary castFrom(T other) { - return NSDictionary._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSFileManager] that points to the same underlying object as [other]. + static NSFileManager castFrom(T other) { + return NSFileManager._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSDictionary] that wraps the given raw object pointer. - static NSDictionary castFromPointer( + /// Returns a [NSFileManager] that wraps the given raw object pointer. + static NSFileManager castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSDictionary._(other, lib, retain: retain, release: release); + return NSFileManager._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSDictionary]. + /// Returns whether [obj] is an instance of [NSFileManager]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSDictionary1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSFileManager1); } - int get count { - return _lib._objc_msgSend_10(_id, _lib._sel_count1); + static NSFileManager getDefaultManager(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_379( + _lib._class_NSFileManager1, _lib._sel_defaultManager1); + return NSFileManager._(_ret, _lib, retain: true, release: true); } - NSObject objectForKey_(NSObject aKey) { - final _ret = _lib._objc_msgSend_16(_id, _lib._sel_objectForKey_1, aKey._id); - return NSObject._(_ret, _lib, retain: true, release: true); + NSArray? mountedVolumeURLsIncludingResourceValuesForKeys_options_( + NSArray? propertyKeys, int options) { + final _ret = _lib._objc_msgSend_380( + _id, + _lib._sel_mountedVolumeURLsIncludingResourceValuesForKeys_options_1, + propertyKeys?._id ?? ffi.nullptr, + options); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSEnumerator keyEnumerator() { - final _ret = _lib._objc_msgSend_64(_id, _lib._sel_keyEnumerator1); - return NSEnumerator._(_ret, _lib, retain: true, release: true); + void unmountVolumeAtURL_options_completionHandler_( + NSURL url, int mask, ObjCBlock_ffiVoid_NSError completionHandler) { + _lib._objc_msgSend_381( + _id, + _lib._sel_unmountVolumeAtURL_options_completionHandler_1, + url._id, + mask, + completionHandler._id); } - @override - NSDictionary init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSDictionary._(_ret, _lib, retain: true, release: true); + NSArray? contentsOfDirectoryAtURL_includingPropertiesForKeys_options_error_( + NSURL url, + NSArray? keys, + int mask, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_382( + _id, + _lib._sel_contentsOfDirectoryAtURL_includingPropertiesForKeys_options_error_1, + url._id, + keys?._id ?? ffi.nullptr, + mask, + error); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSDictionary initWithObjects_forKeys_count_( - ffi.Pointer> objects, - ffi.Pointer> keys, - int cnt) { - final _ret = _lib._objc_msgSend_129( - _id, _lib._sel_initWithObjects_forKeys_count_1, objects, keys, cnt); - return NSDictionary._(_ret, _lib, retain: true, release: true); + NSArray URLsForDirectory_inDomains_(int directory, int domainMask) { + final _ret = _lib._objc_msgSend_383( + _id, _lib._sel_URLsForDirectory_inDomains_1, directory, domainMask); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSDictionary initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + NSURL? URLForDirectory_inDomain_appropriateForURL_create_error_( + int directory, + int domain, + NSURL? url, + bool shouldCreate, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_384( + _id, + _lib._sel_URLForDirectory_inDomain_appropriateForURL_create_error_1, + directory, + domain, + url?._id ?? ffi.nullptr, + shouldCreate, + error); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + bool getRelationship_ofDirectoryAtURL_toItemAtURL_error_( + ffi.Pointer outRelationship, + NSURL directoryURL, + NSURL otherURL, + ffi.Pointer> error) { + return _lib._objc_msgSend_385( + _id, + _lib._sel_getRelationship_ofDirectoryAtURL_toItemAtURL_error_1, + outRelationship, + directoryURL._id, + otherURL._id, + error); + } + + bool getRelationship_ofDirectory_inDomain_toItemAtURL_error_( + ffi.Pointer outRelationship, + int directory, + int domainMask, + NSURL url, + ffi.Pointer> error) { + return _lib._objc_msgSend_386( + _id, + _lib._sel_getRelationship_ofDirectory_inDomain_toItemAtURL_error_1, + outRelationship, + directory, + domainMask, + url._id, + error); + } + + bool createDirectoryAtURL_withIntermediateDirectories_attributes_error_( + NSURL url, + bool createIntermediates, + NSDictionary? attributes, + ffi.Pointer> error) { + return _lib._objc_msgSend_387( + _id, + _lib._sel_createDirectoryAtURL_withIntermediateDirectories_attributes_error_1, + url._id, + createIntermediates, + attributes?._id ?? ffi.nullptr, + error); + } + + bool createSymbolicLinkAtURL_withDestinationURL_error_( + NSURL url, NSURL destURL, ffi.Pointer> error) { + return _lib._objc_msgSend_388( + _id, + _lib._sel_createSymbolicLinkAtURL_withDestinationURL_error_1, + url._id, + destURL._id, + error); } - NSArray? get allKeys { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_allKeys1); + NSObject? get delegate { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_delegate1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSObject._(_ret, _lib, retain: true, release: true); } - NSArray allKeysForObject_(NSObject anObject) { - final _ret = - _lib._objc_msgSend_54(_id, _lib._sel_allKeysForObject_1, anObject._id); - return NSArray._(_ret, _lib, retain: true, release: true); + set delegate(NSObject? value) { + return _lib._objc_msgSend_367( + _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); + } + + bool setAttributes_ofItemAtPath_error_(NSDictionary attributes, NSString path, + ffi.Pointer> error) { + return _lib._objc_msgSend_389( + _id, + _lib._sel_setAttributes_ofItemAtPath_error_1, + attributes._id, + path._id, + error); + } + + bool createDirectoryAtPath_withIntermediateDirectories_attributes_error_( + NSString path, + bool createIntermediates, + NSDictionary? attributes, + ffi.Pointer> error) { + return _lib._objc_msgSend_390( + _id, + _lib._sel_createDirectoryAtPath_withIntermediateDirectories_attributes_error_1, + path._id, + createIntermediates, + attributes?._id ?? ffi.nullptr, + error); } - NSArray? get allValues { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_allValues1); + NSArray? contentsOfDirectoryAtPath_error_( + NSString path, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_391( + _id, _lib._sel_contentsOfDirectoryAtPath_error_1, path._id, error); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); + NSArray? subpathsOfDirectoryAtPath_error_( + NSString path, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_391( + _id, _lib._sel_subpathsOfDirectoryAtPath_error_1, path._id, error); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSArray._(_ret, _lib, retain: true, release: true); } - NSString? get descriptionInStringsFileFormat { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_descriptionInStringsFileFormat1); + NSDictionary? attributesOfItemAtPath_error_( + NSString path, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_392( + _id, _lib._sel_attributesOfItemAtPath_error_1, path._id, error); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_57( - _id, _lib._sel_descriptionWithLocale_1, locale._id); - return NSString._(_ret, _lib, retain: true, release: true); + : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSString descriptionWithLocale_indent_(NSObject locale, int level) { - final _ret = _lib._objc_msgSend_58( - _id, _lib._sel_descriptionWithLocale_indent_1, locale._id, level); - return NSString._(_ret, _lib, retain: true, release: true); + NSDictionary? attributesOfFileSystemForPath_error_( + NSString path, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_392( + _id, _lib._sel_attributesOfFileSystemForPath_error_1, path._id, error); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - bool isEqualToDictionary_(NSDictionary? otherDictionary) { - return _lib._objc_msgSend_130(_id, _lib._sel_isEqualToDictionary_1, - otherDictionary?._id ?? ffi.nullptr); + bool createSymbolicLinkAtPath_withDestinationPath_error_(NSString path, + NSString destPath, ffi.Pointer> error) { + return _lib._objc_msgSend_393( + _id, + _lib._sel_createSymbolicLinkAtPath_withDestinationPath_error_1, + path._id, + destPath._id, + error); } - NSEnumerator objectEnumerator() { - final _ret = _lib._objc_msgSend_64(_id, _lib._sel_objectEnumerator1); - return NSEnumerator._(_ret, _lib, retain: true, release: true); + NSString? destinationOfSymbolicLinkAtPath_error_( + NSString path, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_394(_id, + _lib._sel_destinationOfSymbolicLinkAtPath_error_1, path._id, error); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSArray objectsForKeys_notFoundMarker_(NSArray? keys, NSObject marker) { - final _ret = _lib._objc_msgSend_131( - _id, - _lib._sel_objectsForKeys_notFoundMarker_1, - keys?._id ?? ffi.nullptr, - marker._id); - return NSArray._(_ret, _lib, retain: true, release: true); + bool copyItemAtPath_toPath_error_(NSString srcPath, NSString dstPath, + ffi.Pointer> error) { + return _lib._objc_msgSend_393(_id, _lib._sel_copyItemAtPath_toPath_error_1, + srcPath._id, dstPath._id, error); } - bool writeToURL_error_( - NSURL? url, ffi.Pointer> error) { - return _lib._objc_msgSend_75( - _id, _lib._sel_writeToURL_error_1, url?._id ?? ffi.nullptr, error); + bool moveItemAtPath_toPath_error_(NSString srcPath, NSString dstPath, + ffi.Pointer> error) { + return _lib._objc_msgSend_393(_id, _lib._sel_moveItemAtPath_toPath_error_1, + srcPath._id, dstPath._id, error); } - NSArray keysSortedByValueUsingSelector_(ffi.Pointer comparator) { - final _ret = _lib._objc_msgSend_67( - _id, _lib._sel_keysSortedByValueUsingSelector_1, comparator); - return NSArray._(_ret, _lib, retain: true, release: true); + bool linkItemAtPath_toPath_error_(NSString srcPath, NSString dstPath, + ffi.Pointer> error) { + return _lib._objc_msgSend_393(_id, _lib._sel_linkItemAtPath_toPath_error_1, + srcPath._id, dstPath._id, error); } - void getObjects_andKeys_count_(ffi.Pointer> objects, - ffi.Pointer> keys, int count) { - return _lib._objc_msgSend_132( - _id, _lib._sel_getObjects_andKeys_count_1, objects, keys, count); + bool removeItemAtPath_error_( + NSString path, ffi.Pointer> error) { + return _lib._objc_msgSend_395( + _id, _lib._sel_removeItemAtPath_error_1, path._id, error); } - NSObject objectForKeyedSubscript_(NSObject key) { - final _ret = _lib._objc_msgSend_16( - _id, _lib._sel_objectForKeyedSubscript_1, key._id); - return NSObject._(_ret, _lib, retain: true, release: true); + bool copyItemAtURL_toURL_error_( + NSURL srcURL, NSURL dstURL, ffi.Pointer> error) { + return _lib._objc_msgSend_388(_id, _lib._sel_copyItemAtURL_toURL_error_1, + srcURL._id, dstURL._id, error); } - void enumerateKeysAndObjectsUsingBlock_(ObjCBlock9 block) { - return _lib._objc_msgSend_133( - _id, _lib._sel_enumerateKeysAndObjectsUsingBlock_1, block._id); + bool moveItemAtURL_toURL_error_( + NSURL srcURL, NSURL dstURL, ffi.Pointer> error) { + return _lib._objc_msgSend_388(_id, _lib._sel_moveItemAtURL_toURL_error_1, + srcURL._id, dstURL._id, error); } - void enumerateKeysAndObjectsWithOptions_usingBlock_( - int opts, ObjCBlock9 block) { - return _lib._objc_msgSend_134( - _id, - _lib._sel_enumerateKeysAndObjectsWithOptions_usingBlock_1, - opts, - block._id); + bool linkItemAtURL_toURL_error_( + NSURL srcURL, NSURL dstURL, ffi.Pointer> error) { + return _lib._objc_msgSend_388(_id, _lib._sel_linkItemAtURL_toURL_error_1, + srcURL._id, dstURL._id, error); } - NSArray keysSortedByValueUsingComparator_(ObjCBlock6 cmptr) { - final _ret = _lib._objc_msgSend_107( - _id, _lib._sel_keysSortedByValueUsingComparator_1, cmptr._id); - return NSArray._(_ret, _lib, retain: true, release: true); + bool removeItemAtURL_error_( + NSURL URL, ffi.Pointer> error) { + return _lib._objc_msgSend_80( + _id, _lib._sel_removeItemAtURL_error_1, URL._id, error); } - NSArray keysSortedByValueWithOptions_usingComparator_( - int opts, ObjCBlock6 cmptr) { - final _ret = _lib._objc_msgSend_108( + bool trashItemAtURL_resultingItemURL_error_( + NSURL url, + ffi.Pointer> outResultingURL, + ffi.Pointer> error) { + return _lib._objc_msgSend_396( _id, - _lib._sel_keysSortedByValueWithOptions_usingComparator_1, - opts, - cmptr._id); - return NSArray._(_ret, _lib, retain: true, release: true); + _lib._sel_trashItemAtURL_resultingItemURL_error_1, + url._id, + outResultingURL, + error); } - NSObject keysOfEntriesPassingTest_(ObjCBlock10 predicate) { - final _ret = _lib._objc_msgSend_135( - _id, _lib._sel_keysOfEntriesPassingTest_1, predicate._id); - return NSObject._(_ret, _lib, retain: true, release: true); + NSDictionary? fileAttributesAtPath_traverseLink_(NSString path, bool yorn) { + final _ret = _lib._objc_msgSend_397( + _id, _lib._sel_fileAttributesAtPath_traverseLink_1, path._id, yorn); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSObject keysOfEntriesWithOptions_passingTest_( - int opts, ObjCBlock10 predicate) { - final _ret = _lib._objc_msgSend_136(_id, - _lib._sel_keysOfEntriesWithOptions_passingTest_1, opts, predicate._id); - return NSObject._(_ret, _lib, retain: true, release: true); + bool changeFileAttributes_atPath_(NSDictionary attributes, NSString path) { + return _lib._objc_msgSend_398( + _id, _lib._sel_changeFileAttributes_atPath_1, attributes._id, path._id); } - /// This method is unsafe because it could potentially cause buffer overruns. You should use -getObjects:andKeys:count: - void getObjects_andKeys_(ffi.Pointer> objects, - ffi.Pointer> keys) { - return _lib._objc_msgSend_137( - _id, _lib._sel_getObjects_andKeys_1, objects, keys); + NSArray? directoryContentsAtPath_(NSString path) { + final _ret = _lib._objc_msgSend_123( + _id, _lib._sel_directoryContentsAtPath_1, path._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - static NSDictionary dictionaryWithContentsOfFile_( - PedometerBindings _lib, NSString? path) { - final _ret = _lib._objc_msgSend_138(_lib._class_NSDictionary1, - _lib._sel_dictionaryWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + NSDictionary? fileSystemAttributesAtPath_(NSString path) { + final _ret = _lib._objc_msgSend_147( + _id, _lib._sel_fileSystemAttributesAtPath_1, path._id); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSDictionary dictionaryWithContentsOfURL_( - PedometerBindings _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_139(_lib._class_NSDictionary1, - _lib._sel_dictionaryWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + NSString? pathContentOfSymbolicLinkAtPath_(NSString path) { + final _ret = _lib._objc_msgSend_276( + _id, _lib._sel_pathContentOfSymbolicLinkAtPath_1, path._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSDictionary initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_138( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + bool createSymbolicLinkAtPath_pathContent_( + NSString path, NSString otherpath) { + return _lib._objc_msgSend_399( + _id, + _lib._sel_createSymbolicLinkAtPath_pathContent_1, + path._id, + otherpath._id); } - NSDictionary initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_139( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + bool createDirectoryAtPath_attributes_( + NSString path, NSDictionary attributes) { + return _lib._objc_msgSend_400(_id, + _lib._sel_createDirectoryAtPath_attributes_1, path._id, attributes._id); } - bool writeToFile_atomically_(NSString? path, bool useAuxiliaryFile) { - return _lib._objc_msgSend_25(_id, _lib._sel_writeToFile_atomically_1, - path?._id ?? ffi.nullptr, useAuxiliaryFile); + NSString get currentDirectoryPath { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_currentDirectoryPath1); + return NSString._(_ret, _lib, retain: true, release: true); } - bool writeToURL_atomically_(NSURL? url, bool atomically) { - return _lib._objc_msgSend_117(_id, _lib._sel_writeToURL_atomically_1, - url?._id ?? ffi.nullptr, atomically); + bool changeCurrentDirectoryPath_(NSString path) { + return _lib._objc_msgSend_56( + _id, _lib._sel_changeCurrentDirectoryPath_1, path._id); } - static NSDictionary dictionary(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSDictionary1, _lib._sel_dictionary1); - return NSDictionary._(_ret, _lib, retain: true, release: true); + bool fileExistsAtPath_(NSString path) { + return _lib._objc_msgSend_56(_id, _lib._sel_fileExistsAtPath_1, path._id); } - static NSDictionary dictionaryWithObject_forKey_( - PedometerBindings _lib, NSObject object, NSObject? key) { - final _ret = _lib._objc_msgSend_140( - _lib._class_NSDictionary1, - _lib._sel_dictionaryWithObject_forKey_1, - object._id, - key?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + bool fileExistsAtPath_isDirectory_( + NSString path, ffi.Pointer isDirectory) { + return _lib._objc_msgSend_401( + _id, _lib._sel_fileExistsAtPath_isDirectory_1, path._id, isDirectory); } - static NSDictionary dictionaryWithObjects_forKeys_count_( - PedometerBindings _lib, - ffi.Pointer> objects, - ffi.Pointer> keys, - int cnt) { - final _ret = _lib._objc_msgSend_129(_lib._class_NSDictionary1, - _lib._sel_dictionaryWithObjects_forKeys_count_1, objects, keys, cnt); - return NSDictionary._(_ret, _lib, retain: true, release: true); + bool isReadableFileAtPath_(NSString path) { + return _lib._objc_msgSend_56( + _id, _lib._sel_isReadableFileAtPath_1, path._id); } - static NSDictionary dictionaryWithObjectsAndKeys_( - PedometerBindings _lib, NSObject firstObject) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSDictionary1, - _lib._sel_dictionaryWithObjectsAndKeys_1, firstObject._id); - return NSDictionary._(_ret, _lib, retain: true, release: true); + bool isWritableFileAtPath_(NSString path) { + return _lib._objc_msgSend_56( + _id, _lib._sel_isWritableFileAtPath_1, path._id); } - static NSDictionary dictionaryWithDictionary_( - PedometerBindings _lib, NSDictionary? dict) { - final _ret = _lib._objc_msgSend_141(_lib._class_NSDictionary1, - _lib._sel_dictionaryWithDictionary_1, dict?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + bool isExecutableFileAtPath_(NSString path) { + return _lib._objc_msgSend_56( + _id, _lib._sel_isExecutableFileAtPath_1, path._id); } - static NSDictionary dictionaryWithObjects_forKeys_( - PedometerBindings _lib, NSArray? objects, NSArray? keys) { - final _ret = _lib._objc_msgSend_142( - _lib._class_NSDictionary1, - _lib._sel_dictionaryWithObjects_forKeys_1, - objects?._id ?? ffi.nullptr, - keys?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + bool isDeletableFileAtPath_(NSString path) { + return _lib._objc_msgSend_56( + _id, _lib._sel_isDeletableFileAtPath_1, path._id); } - NSDictionary initWithObjectsAndKeys_(NSObject firstObject) { - final _ret = _lib._objc_msgSend_16( - _id, _lib._sel_initWithObjectsAndKeys_1, firstObject._id); - return NSDictionary._(_ret, _lib, retain: true, release: true); + bool contentsEqualAtPath_andPath_(NSString path1, NSString path2) { + return _lib._objc_msgSend_399( + _id, _lib._sel_contentsEqualAtPath_andPath_1, path1._id, path2._id); } - NSDictionary initWithDictionary_(NSDictionary? otherDictionary) { - final _ret = _lib._objc_msgSend_141(_id, _lib._sel_initWithDictionary_1, - otherDictionary?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + NSString displayNameAtPath_(NSString path) { + final _ret = + _lib._objc_msgSend_61(_id, _lib._sel_displayNameAtPath_1, path._id); + return NSString._(_ret, _lib, retain: true, release: true); } - NSDictionary initWithDictionary_copyItems_( - NSDictionary? otherDictionary, bool flag) { - final _ret = _lib._objc_msgSend_143( - _id, - _lib._sel_initWithDictionary_copyItems_1, - otherDictionary?._id ?? ffi.nullptr, - flag); - return NSDictionary._(_ret, _lib, retain: false, release: true); + NSArray? componentsToDisplayForPath_(NSString path) { + final _ret = _lib._objc_msgSend_123( + _id, _lib._sel_componentsToDisplayForPath_1, path._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSDictionary initWithObjects_forKeys_(NSArray? objects, NSArray? keys) { - final _ret = _lib._objc_msgSend_142( - _id, - _lib._sel_initWithObjects_forKeys_1, - objects?._id ?? ffi.nullptr, - keys?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + NSObject? enumeratorAtPath_(NSString path) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_enumeratorAtPath_1, path._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSDictionary initWithContentsOfURL_error_( - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_144( + NSObject? enumeratorAtURL_includingPropertiesForKeys_options_errorHandler_( + NSURL url, + NSArray? keys, + int mask, + ObjCBlock_bool_NSURL_NSError? handler) { + final _ret = _lib._objc_msgSend_402( _id, - _lib._sel_initWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); + _lib._sel_enumeratorAtURL_includingPropertiesForKeys_options_errorHandler_1, + url._id, + keys?._id ?? ffi.nullptr, + mask, + handler?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSDictionary dictionaryWithContentsOfURL_error_(PedometerBindings _lib, - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_144( - _lib._class_NSDictionary1, - _lib._sel_dictionaryWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); + NSArray? subpathsAtPath_(NSString path) { + final _ret = + _lib._objc_msgSend_123(_id, _lib._sel_subpathsAtPath_1, path._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - static NSObject sharedKeySetForKeys_(PedometerBindings _lib, NSArray? keys) { - final _ret = _lib._objc_msgSend_59(_lib._class_NSDictionary1, - _lib._sel_sharedKeySetForKeys_1, keys?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSData? contentsAtPath_(NSString path) { + final _ret = + _lib._objc_msgSend_403(_id, _lib._sel_contentsAtPath_1, path._id); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - int countByEnumeratingWithState_objects_count_( - ffi.Pointer state, - ffi.Pointer> buffer, - int len) { - return _lib._objc_msgSend_145( + bool createFileAtPath_contents_attributes_( + NSString path, NSData? data, NSDictionary? attr) { + return _lib._objc_msgSend_404( _id, - _lib._sel_countByEnumeratingWithState_objects_count_1, - state, - buffer, - len); - } - - int fileSize() { - return _lib._objc_msgSend_146(_id, _lib._sel_fileSize1); + _lib._sel_createFileAtPath_contents_attributes_1, + path._id, + data?._id ?? ffi.nullptr, + attr?._id ?? ffi.nullptr); } - NSDate fileModificationDate() { - final _ret = _lib._objc_msgSend_154(_id, _lib._sel_fileModificationDate1); - return NSDate._(_ret, _lib, retain: true, release: true); + ffi.Pointer fileSystemRepresentationWithPath_(NSString path) { + return _lib._objc_msgSend_405( + _id, _lib._sel_fileSystemRepresentationWithPath_1, path._id); } - NSString fileType() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fileType1); + NSString stringWithFileSystemRepresentation_length_( + ffi.Pointer str, int len) { + final _ret = _lib._objc_msgSend_406( + _id, _lib._sel_stringWithFileSystemRepresentation_length_1, str, len); return NSString._(_ret, _lib, retain: true, release: true); } - int filePosixPermissions() { - return _lib._objc_msgSend_10(_id, _lib._sel_filePosixPermissions1); + bool + replaceItemAtURL_withItemAtURL_backupItemName_options_resultingItemURL_error_( + NSURL originalItemURL, + NSURL newItemURL, + NSString? backupItemName, + int options, + ffi.Pointer> resultingURL, + ffi.Pointer> error) { + return _lib._objc_msgSend_407( + _id, + _lib._sel_replaceItemAtURL_withItemAtURL_backupItemName_options_resultingItemURL_error_1, + originalItemURL._id, + newItemURL._id, + backupItemName?._id ?? ffi.nullptr, + options, + resultingURL, + error); } - NSString fileOwnerAccountName() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fileOwnerAccountName1); - return NSString._(_ret, _lib, retain: true, release: true); + bool setUbiquitous_itemAtURL_destinationURL_error_(bool flag, NSURL url, + NSURL destinationURL, ffi.Pointer> error) { + return _lib._objc_msgSend_408( + _id, + _lib._sel_setUbiquitous_itemAtURL_destinationURL_error_1, + flag, + url._id, + destinationURL._id, + error); } - NSString fileGroupOwnerAccountName() { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_fileGroupOwnerAccountName1); - return NSString._(_ret, _lib, retain: true, release: true); + bool isUbiquitousItemAtURL_(NSURL url) { + return _lib._objc_msgSend_409( + _id, _lib._sel_isUbiquitousItemAtURL_1, url._id); } - int fileSystemNumber() { - return _lib._objc_msgSend_70(_id, _lib._sel_fileSystemNumber1); + bool startDownloadingUbiquitousItemAtURL_error_( + NSURL url, ffi.Pointer> error) { + return _lib._objc_msgSend_80(_id, + _lib._sel_startDownloadingUbiquitousItemAtURL_error_1, url._id, error); } - int fileSystemFileNumber() { - return _lib._objc_msgSend_10(_id, _lib._sel_fileSystemFileNumber1); + bool evictUbiquitousItemAtURL_error_( + NSURL url, ffi.Pointer> error) { + return _lib._objc_msgSend_80( + _id, _lib._sel_evictUbiquitousItemAtURL_error_1, url._id, error); } - bool fileExtensionHidden() { - return _lib._objc_msgSend_12(_id, _lib._sel_fileExtensionHidden1); + NSURL? URLForUbiquityContainerIdentifier_(NSString? containerIdentifier) { + final _ret = _lib._objc_msgSend_410( + _id, + _lib._sel_URLForUbiquityContainerIdentifier_1, + containerIdentifier?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - int fileHFSCreatorCode() { - return _lib._objc_msgSend_155(_id, _lib._sel_fileHFSCreatorCode1); + NSURL? URLForPublishingUbiquitousItemAtURL_expirationDate_error_( + NSURL url, + ffi.Pointer> outDate, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_411( + _id, + _lib._sel_URLForPublishingUbiquitousItemAtURL_expirationDate_error_1, + url._id, + outDate, + error); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - int fileHFSTypeCode() { - return _lib._objc_msgSend_155(_id, _lib._sel_fileHFSTypeCode1); + NSObject? get ubiquityIdentityToken { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_ubiquityIdentityToken1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - bool fileIsImmutable() { - return _lib._objc_msgSend_12(_id, _lib._sel_fileIsImmutable1); + void getFileProviderServicesForItemAtURL_completionHandler_( + NSURL url, ObjCBlock_ffiVoid_NSDictionary_NSError completionHandler) { + _lib._objc_msgSend_412( + _id, + _lib._sel_getFileProviderServicesForItemAtURL_completionHandler_1, + url._id, + completionHandler._id); } - bool fileIsAppendOnly() { - return _lib._objc_msgSend_12(_id, _lib._sel_fileIsAppendOnly1); + NSURL? containerURLForSecurityApplicationGroupIdentifier_( + NSString groupIdentifier) { + final _ret = _lib._objc_msgSend_208( + _id, + _lib._sel_containerURLForSecurityApplicationGroupIdentifier_1, + groupIdentifier._id); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - NSDate fileCreationDate() { - final _ret = _lib._objc_msgSend_154(_id, _lib._sel_fileCreationDate1); - return NSDate._(_ret, _lib, retain: true, release: true); + NSURL get homeDirectoryForCurrentUser { + final _ret = + _lib._objc_msgSend_413(_id, _lib._sel_homeDirectoryForCurrentUser1); + return NSURL._(_ret, _lib, retain: true, release: true); } - NSNumber fileOwnerAccountID() { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_fileOwnerAccountID1); - return NSNumber._(_ret, _lib, retain: true, release: true); + NSURL get temporaryDirectory { + final _ret = _lib._objc_msgSend_413(_id, _lib._sel_temporaryDirectory1); + return NSURL._(_ret, _lib, retain: true, release: true); } - NSNumber fileGroupOwnerAccountID() { - final _ret = - _lib._objc_msgSend_156(_id, _lib._sel_fileGroupOwnerAccountID1); - return NSNumber._(_ret, _lib, retain: true, release: true); + NSURL? homeDirectoryForUser_(NSString userName) { + final _ret = _lib._objc_msgSend_208( + _id, _lib._sel_homeDirectoryForUser_1, userName._id); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } @override - NSObject valueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_valueForKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSFileManager init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSFileManager._(_ret, _lib, retain: true, release: true); } - static NSDictionary new1(PedometerBindings _lib) { + static NSFileManager new1(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSDictionary1, _lib._sel_new1); - return NSDictionary._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSFileManager1, _lib._sel_new1); + return NSFileManager._(_ret, _lib, retain: false, release: true); } - static NSDictionary alloc(PedometerBindings _lib) { + static NSFileManager allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSFileManager1, _lib._sel_allocWithZone_1, zone); + return NSFileManager._(_ret, _lib, retain: false, release: true); + } + + static NSFileManager alloc(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSDictionary1, _lib._sel_alloc1); - return NSDictionary._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSFileManager1, _lib._sel_alloc1); + return NSFileManager._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSDictionary1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSFileManager1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSDictionary1, + _lib._objc_msgSend_15(_lib._class_NSFileManager1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSDictionary1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSFileManager1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSDictionary1, _lib._sel_useStoredAccessor1); + _lib._class_NSFileManager1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSDictionary1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSFileManager1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSDictionary1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSDictionary1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSFileManager1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSDictionary1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_NSFileManager1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSDictionary1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSFileManager1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -void _ObjCBlock9_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1, ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); +abstract class NSVolumeEnumerationOptions { + static const int NSVolumeEnumerationSkipHiddenVolumes = 2; + static const int NSVolumeEnumerationProduceFileReferenceURLs = 4; +} + +abstract class NSFileManagerUnmountOptions { + static const int NSFileManagerUnmountAllPartitionsAndEjectDisk = 1; + static const int NSFileManagerUnmountWithoutUI = 2; } -final _ObjCBlock9_closureRegistry = {}; -int _ObjCBlock9_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock9_registerClosure(Function fn) { - final id = ++_ObjCBlock9_closureRegistryIndex; - _ObjCBlock9_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi + .NativeFunction arg0)>>() + .asFunction)>()(arg0); +final _ObjCBlock_ffiVoid_NSError_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSError_registerClosure( + void Function(ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock9_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return _ObjCBlock9_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} +void _ObjCBlock_ffiVoid_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + _ObjCBlock_ffiVoid_NSError_closureRegistry[block.ref.target.address]!(arg0); -class ObjCBlock9 extends _ObjCBlockBase { - ObjCBlock9._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSError._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock9.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSError.fromFunctionPointer( PedometerBindings lib, ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>> + ffi + .NativeFunction arg0)>> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock9_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock9.fromFunction( - PedometerBindings lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSError.fromFunction( + PedometerBindings lib, void Function(NSError?) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock9_closureTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSError_closureTrampoline) .cast(), - _ObjCBlock9_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSError_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSError._(arg0, lib, retain: true, release: true)))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSError.listener( + PedometerBindings lib, void Function(NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSError_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSError._(arg0, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>? + _dartFuncListenerTrampoline; -bool _ObjCBlock10_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return block.ref.target + void call(NSError? arg0) => _id.ref.invoke .cast< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1, ffi.Pointer arg2)>>() + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() .asFunction< - bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); + void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>()(_id, arg0?._id ?? ffi.nullptr); } -final _ObjCBlock10_closureRegistry = {}; -int _ObjCBlock10_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock10_registerClosure(Function fn) { - final id = ++_ObjCBlock10_closureRegistryIndex; - _ObjCBlock10_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); +abstract class NSDirectoryEnumerationOptions { + static const int NSDirectoryEnumerationSkipsSubdirectoryDescendants = 1; + static const int NSDirectoryEnumerationSkipsPackageDescendants = 2; + static const int NSDirectoryEnumerationSkipsHiddenFiles = 4; + static const int NSDirectoryEnumerationIncludesDirectoriesPostOrder = 8; + static const int NSDirectoryEnumerationProducesRelativePathURLs = 16; } -bool _ObjCBlock10_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return _ObjCBlock10_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); +abstract class NSSearchPathDirectory { + static const int NSApplicationDirectory = 1; + static const int NSDemoApplicationDirectory = 2; + static const int NSDeveloperApplicationDirectory = 3; + static const int NSAdminApplicationDirectory = 4; + static const int NSLibraryDirectory = 5; + static const int NSDeveloperDirectory = 6; + static const int NSUserDirectory = 7; + static const int NSDocumentationDirectory = 8; + static const int NSDocumentDirectory = 9; + static const int NSCoreServiceDirectory = 10; + static const int NSAutosavedInformationDirectory = 11; + static const int NSDesktopDirectory = 12; + static const int NSCachesDirectory = 13; + static const int NSApplicationSupportDirectory = 14; + static const int NSDownloadsDirectory = 15; + static const int NSInputMethodsDirectory = 16; + static const int NSMoviesDirectory = 17; + static const int NSMusicDirectory = 18; + static const int NSPicturesDirectory = 19; + static const int NSPrinterDescriptionDirectory = 20; + static const int NSSharedPublicDirectory = 21; + static const int NSPreferencePanesDirectory = 22; + static const int NSApplicationScriptsDirectory = 23; + static const int NSItemReplacementDirectory = 99; + static const int NSAllApplicationsDirectory = 100; + static const int NSAllLibrariesDirectory = 101; + static const int NSTrashDirectory = 102; +} + +abstract class NSSearchPathDomainMask { + static const int NSUserDomainMask = 1; + static const int NSLocalDomainMask = 2; + static const int NSNetworkDomainMask = 4; + static const int NSSystemDomainMask = 8; + static const int NSAllDomainsMask = 65535; +} + +abstract class NSURLRelationship { + static const int NSURLRelationshipContains = 0; + static const int NSURLRelationshipSame = 1; + static const int NSURLRelationshipOther = 2; } -class ObjCBlock10 extends _ObjCBlockBase { - ObjCBlock10._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); +bool _ObjCBlock_bool_NSURL_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + bool Function(ffi.Pointer, + ffi.Pointer)>()(arg0, arg1); +final _ObjCBlock_bool_NSURL_NSError_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_bool_NSURL_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_bool_NSURL_NSError_registerClosure( + bool Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_bool_NSURL_NSError_closureRegistryIndex; + _ObjCBlock_bool_NSURL_NSError_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +bool _ObjCBlock_bool_NSURL_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_bool_NSURL_NSError_closureRegistry[block.ref.target.address]!( + arg0, arg1); + +class ObjCBlock_bool_NSURL_NSError extends _ObjCBlockBase { + ObjCBlock_bool_NSURL_NSError._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock10.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_NSURL_NSError.fromFunctionPointer( PedometerBindings lib, - ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2)>> + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> ptr) : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock10_fnPtrTrampoline, false) - .cast(), - ptr.cast()), + lib + ._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_bool_NSURL_NSError_fnPtrTrampoline, + false) + .cast(), + ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock10.fromFunction( - PedometerBindings lib, - bool Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_NSURL_NSError.fromFunction( + PedometerBindings lib, bool Function(NSURL, NSError) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock10_closureTrampoline, false) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_bool_NSURL_NSError_closureTrampoline, false) .cast(), - _ObjCBlock10_registerClosure(fn)), + _ObjCBlock_bool_NSURL_NSError_registerClosure( + (ffi.Pointer arg0, + ffi.Pointer arg1) => + fn(NSURL._(arg0, lib, retain: true, release: true), NSError._(arg1, lib, retain: true, release: true)))), lib); static ffi.Pointer? _dartFuncTrampoline; - bool call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { - return _id.ref.invoke + + bool call(NSURL arg0, NSError arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + bool Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()(_id, arg0._id, arg1._id); +} + +abstract class NSFileManagerItemReplacementOptions { + static const int NSFileManagerItemReplacementUsingNewMetadataOnly = 1; + static const int NSFileManagerItemReplacementWithoutDeletingBackupItem = 2; +} + +void _ObjCBlock_ffiVoid_NSDictionary_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + block.ref.target .cast< ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() .asFunction< - bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; + void Function(ffi.Pointer, + ffi.Pointer)>()(arg0, arg1); +final _ObjCBlock_ffiVoid_NSDictionary_NSError_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSDictionary_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSDictionary_NSError_registerClosure( + void Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSDictionary_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSDictionary_NSError_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); } -final class NSFastEnumerationState extends ffi.Struct { - @ffi.UnsignedLong() - external int state; +void _ObjCBlock_ffiVoid_NSDictionary_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_NSDictionary_NSError_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_ffiVoid_NSDictionary_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSDictionary_NSError._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); - external ffi.Pointer> itemsPtr; + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSDictionary_NSError.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSDictionary_NSError_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - external ffi.Pointer mutationsPtr; + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSDictionary_NSError.fromFunction( + PedometerBindings lib, void Function(NSDictionary?, NSError?) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSDictionary_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSDictionary_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 ? null : NSDictionary._(arg0, lib, retain: true, release: true), + arg1.address == 0 ? null : NSError._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; - @ffi.Array.multi([5]) - external ffi.Array extra; + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSDictionary_NSError.listener( + PedometerBindings lib, void Function(NSDictionary?, NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi + .NativeCallable, ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSDictionary_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSDictionary_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 + ? null + : NSDictionary._(arg0, lib, retain: true, release: true), + arg1.address == 0 ? null : NSError._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; + + void call(NSDictionary? arg0, NSError? arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1?._id ?? ffi.nullptr); } -class NSDate extends NSObject { - NSDate._(ffi.Pointer id, PedometerBindings lib, +/// Mutable Array +class NSMutableArray extends NSArray { + NSMutableArray._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSDate] that points to the same underlying object as [other]. - static NSDate castFrom(T other) { - return NSDate._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSMutableArray] that points to the same underlying object as [other]. + static NSMutableArray castFrom(T other) { + return NSMutableArray._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSDate] that wraps the given raw object pointer. - static NSDate castFromPointer( + /// Returns a [NSMutableArray] that wraps the given raw object pointer. + static NSMutableArray castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSDate._(other, lib, retain: retain, release: release); + return NSMutableArray._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSDate]. + /// Returns whether [obj] is an instance of [NSMutableArray]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSDate1); - } - - double get timeIntervalSinceReferenceDate { - return _lib._objc_msgSend_147( - _id, _lib._sel_timeIntervalSinceReferenceDate1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMutableArray1); } - @override - NSDate init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSDate._(_ret, _lib, retain: true, release: true); + void addObject_(NSObject anObject) { + _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, anObject._id); } - NSDate initWithTimeIntervalSinceReferenceDate_(double ti) { - final _ret = _lib._objc_msgSend_148( - _id, _lib._sel_initWithTimeIntervalSinceReferenceDate_1, ti); - return NSDate._(_ret, _lib, retain: true, release: true); + void insertObject_atIndex_(NSObject anObject, int index) { + _lib._objc_msgSend_416( + _id, _lib._sel_insertObject_atIndex_1, anObject._id, index); } - NSDate initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); + void removeLastObject() { + _lib._objc_msgSend_1(_id, _lib._sel_removeLastObject1); } - double timeIntervalSinceDate_(NSDate? anotherDate) { - return _lib._objc_msgSend_149(_id, _lib._sel_timeIntervalSinceDate_1, - anotherDate?._id ?? ffi.nullptr); + void removeObjectAtIndex_(int index) { + _lib._objc_msgSend_417(_id, _lib._sel_removeObjectAtIndex_1, index); } - double get timeIntervalSinceNow { - return _lib._objc_msgSend_147(_id, _lib._sel_timeIntervalSinceNow1); + void replaceObjectAtIndex_withObject_(int index, NSObject anObject) { + _lib._objc_msgSend_418( + _id, _lib._sel_replaceObjectAtIndex_withObject_1, index, anObject._id); } - double get timeIntervalSince1970 { - return _lib._objc_msgSend_147(_id, _lib._sel_timeIntervalSince19701); + @override + NSMutableArray init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } - NSObject addTimeInterval_(double seconds) { + NSMutableArray initWithCapacity_(int numItems) { final _ret = - _lib._objc_msgSend_148(_id, _lib._sel_addTimeInterval_1, seconds); - return NSObject._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_57(_id, _lib._sel_initWithCapacity_1, numItems); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } - NSDate dateByAddingTimeInterval_(double ti) { + @override + NSMutableArray? initWithCoder_(NSCoder coder) { final _ret = - _lib._objc_msgSend_148(_id, _lib._sel_dateByAddingTimeInterval_1, ti); - return NSDate._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSMutableArray._(_ret, _lib, retain: true, release: true); } - NSDate earlierDate_(NSDate? anotherDate) { - final _ret = _lib._objc_msgSend_150( - _id, _lib._sel_earlierDate_1, anotherDate?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); + void addObjectsFromArray_(NSArray otherArray) { + _lib._objc_msgSend_419( + _id, _lib._sel_addObjectsFromArray_1, otherArray._id); } - NSDate laterDate_(NSDate? anotherDate) { - final _ret = _lib._objc_msgSend_150( - _id, _lib._sel_laterDate_1, anotherDate?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); + void exchangeObjectAtIndex_withObjectAtIndex_(int idx1, int idx2) { + _lib._objc_msgSend_420( + _id, _lib._sel_exchangeObjectAtIndex_withObjectAtIndex_1, idx1, idx2); } - int compare_(NSDate? other) { - return _lib._objc_msgSend_151( - _id, _lib._sel_compare_1, other?._id ?? ffi.nullptr); + void removeAllObjects() { + _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); } - bool isEqualToDate_(NSDate? otherDate) { - return _lib._objc_msgSend_152( - _id, _lib._sel_isEqualToDate_1, otherDate?._id ?? ffi.nullptr); + void removeObject_inRange_(NSObject anObject, _NSRange range) { + _lib._objc_msgSend_421( + _id, _lib._sel_removeObject_inRange_1, anObject._id, range); } - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + void removeObject_(NSObject anObject) { + _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, anObject._id); } - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_57( - _id, _lib._sel_descriptionWithLocale_1, locale._id); - return NSString._(_ret, _lib, retain: true, release: true); + void removeObjectIdenticalTo_inRange_(NSObject anObject, _NSRange range) { + _lib._objc_msgSend_421( + _id, _lib._sel_removeObjectIdenticalTo_inRange_1, anObject._id, range); } - static NSDate date(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSDate1, _lib._sel_date1); - return NSDate._(_ret, _lib, retain: true, release: true); + void removeObjectIdenticalTo_(NSObject anObject) { + _lib._objc_msgSend_15( + _id, _lib._sel_removeObjectIdenticalTo_1, anObject._id); } - static NSDate dateWithTimeIntervalSinceNow_( - PedometerBindings _lib, double secs) { - final _ret = _lib._objc_msgSend_148( - _lib._class_NSDate1, _lib._sel_dateWithTimeIntervalSinceNow_1, secs); - return NSDate._(_ret, _lib, retain: true, release: true); + void removeObjectsFromIndices_numIndices_( + ffi.Pointer indices, int cnt) { + _lib._objc_msgSend_422( + _id, _lib._sel_removeObjectsFromIndices_numIndices_1, indices, cnt); } - static NSDate dateWithTimeIntervalSinceReferenceDate_( - PedometerBindings _lib, double ti) { - final _ret = _lib._objc_msgSend_148(_lib._class_NSDate1, - _lib._sel_dateWithTimeIntervalSinceReferenceDate_1, ti); - return NSDate._(_ret, _lib, retain: true, release: true); + void removeObjectsInArray_(NSArray otherArray) { + _lib._objc_msgSend_419( + _id, _lib._sel_removeObjectsInArray_1, otherArray._id); } - static NSDate dateWithTimeIntervalSince1970_( - PedometerBindings _lib, double secs) { - final _ret = _lib._objc_msgSend_148( - _lib._class_NSDate1, _lib._sel_dateWithTimeIntervalSince1970_1, secs); - return NSDate._(_ret, _lib, retain: true, release: true); + void removeObjectsInRange_(_NSRange range) { + _lib._objc_msgSend_423(_id, _lib._sel_removeObjectsInRange_1, range); } - static NSDate dateWithTimeInterval_sinceDate_( - PedometerBindings _lib, double secsToBeAdded, NSDate? date) { - final _ret = _lib._objc_msgSend_153( - _lib._class_NSDate1, - _lib._sel_dateWithTimeInterval_sinceDate_1, - secsToBeAdded, - date?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); + void replaceObjectsInRange_withObjectsFromArray_range_( + _NSRange range, NSArray otherArray, _NSRange otherRange) { + _lib._objc_msgSend_424( + _id, + _lib._sel_replaceObjectsInRange_withObjectsFromArray_range_1, + range, + otherArray._id, + otherRange); } - static NSDate? getDistantFuture(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_154(_lib._class_NSDate1, _lib._sel_distantFuture1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + void replaceObjectsInRange_withObjectsFromArray_( + _NSRange range, NSArray otherArray) { + _lib._objc_msgSend_425( + _id, + _lib._sel_replaceObjectsInRange_withObjectsFromArray_1, + range, + otherArray._id); } - static NSDate? getDistantPast(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_154(_lib._class_NSDate1, _lib._sel_distantPast1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + void setArray_(NSArray otherArray) { + _lib._objc_msgSend_419(_id, _lib._sel_setArray_1, otherArray._id); } - static NSDate? getNow(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_154(_lib._class_NSDate1, _lib._sel_now1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + void sortUsingFunction_context_( + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>> + compare, + ffi.Pointer context) { + _lib._objc_msgSend_426( + _id, _lib._sel_sortUsingFunction_context_1, compare, context); } - NSDate initWithTimeIntervalSinceNow_(double secs) { - final _ret = _lib._objc_msgSend_148( - _id, _lib._sel_initWithTimeIntervalSinceNow_1, secs); - return NSDate._(_ret, _lib, retain: true, release: true); + void sortUsingSelector_(ffi.Pointer comparator) { + _lib._objc_msgSend_7(_id, _lib._sel_sortUsingSelector_1, comparator); } - NSDate initWithTimeIntervalSince1970_(double secs) { - final _ret = _lib._objc_msgSend_148( - _id, _lib._sel_initWithTimeIntervalSince1970_1, secs); - return NSDate._(_ret, _lib, retain: true, release: true); + void insertObjects_atIndexes_(NSArray objects, NSIndexSet indexes) { + _lib._objc_msgSend_427( + _id, _lib._sel_insertObjects_atIndexes_1, objects._id, indexes._id); } - NSDate initWithTimeInterval_sinceDate_(double secsToBeAdded, NSDate? date) { - final _ret = _lib._objc_msgSend_153( - _id, - _lib._sel_initWithTimeInterval_sinceDate_1, - secsToBeAdded, - date?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); + void removeObjectsAtIndexes_(NSIndexSet indexes) { + _lib._objc_msgSend_428( + _id, _lib._sel_removeObjectsAtIndexes_1, indexes._id); } - static NSDate new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSDate1, _lib._sel_new1); - return NSDate._(_ret, _lib, retain: false, release: true); + void replaceObjectsAtIndexes_withObjects_( + NSIndexSet indexes, NSArray objects) { + _lib._objc_msgSend_429(_id, _lib._sel_replaceObjectsAtIndexes_withObjects_1, + indexes._id, objects._id); } - static NSDate alloc(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSDate1, _lib._sel_alloc1); - return NSDate._(_ret, _lib, retain: false, release: true); + void setObject_atIndexedSubscript_(NSObject obj, int idx) { + _lib._objc_msgSend_416( + _id, _lib._sel_setObject_atIndexedSubscript_1, obj._id, idx); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - PedometerBindings _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSDate1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + void sortUsingComparator_( + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + _lib._objc_msgSend_430(_id, _lib._sel_sortUsingComparator_1, cmptr._id); } - static void cancelPreviousPerformRequestsWithTarget_( - PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSDate1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + void sortWithOptions_usingComparator_( + int opts, ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + _lib._objc_msgSend_431( + _id, _lib._sel_sortWithOptions_usingComparator_1, opts, cmptr._id); } - static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSDate1, _lib._sel_accessInstanceVariablesDirectly1); + static NSMutableArray arrayWithCapacity_( + PedometerBindings _lib, int numItems) { + final _ret = _lib._objc_msgSend_57( + _lib._class_NSMutableArray1, _lib._sel_arrayWithCapacity_1, numItems); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } - static bool useStoredAccessor(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSDate1, _lib._sel_useStoredAccessor1); + static NSMutableArray? arrayWithContentsOfFile_( + PedometerBindings _lib, NSString path) { + final _ret = _lib._objc_msgSend_432(_lib._class_NSMutableArray1, + _lib._sel_arrayWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSMutableArray._(_ret, _lib, retain: true, release: true); } - static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSDate1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + static NSMutableArray? arrayWithContentsOfURL_( + PedometerBindings _lib, NSURL url) { + final _ret = _lib._objc_msgSend_433(_lib._class_NSMutableArray1, + _lib._sel_arrayWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSMutableArray._(_ret, _lib, retain: true, release: true); } - static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSDate1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + NSMutableArray? initWithContentsOfFile_(NSString path) { + final _ret = _lib._objc_msgSend_432( + _id, _lib._sel_initWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSMutableArray._(_ret, _lib, retain: true, release: true); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSDate1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + NSMutableArray? initWithContentsOfURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_433(_id, _lib._sel_initWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSMutableArray._(_ret, _lib, retain: true, release: true); } - static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSDate1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + void applyDifference_(NSObject difference) { + _lib._objc_msgSend_15(_id, _lib._sel_applyDifference_1, difference._id); } - static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSDate1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + void sortUsingDescriptors_(NSArray sortDescriptors) { + _lib._objc_msgSend_419( + _id, _lib._sel_sortUsingDescriptors_1, sortDescriptors._id); } -} - -abstract class NSURLBookmarkCreationOptions { - static const int NSURLBookmarkCreationPreferFileIDResolution = 256; - static const int NSURLBookmarkCreationMinimalBookmark = 512; - static const int NSURLBookmarkCreationSuitableForBookmarkFile = 1024; - static const int NSURLBookmarkCreationWithSecurityScope = 2048; - static const int NSURLBookmarkCreationSecurityScopeAllowOnlyReadAccess = 4096; - static const int NSURLBookmarkCreationWithoutImplicitSecurityScope = - 536870912; -} - -abstract class NSURLBookmarkResolutionOptions { - static const int NSURLBookmarkResolutionWithoutUI = 256; - static const int NSURLBookmarkResolutionWithoutMounting = 512; - static const int NSURLBookmarkResolutionWithSecurityScope = 1024; - static const int NSURLBookmarkResolutionWithoutImplicitStartAccessing = 32768; -} -abstract class NSDataWritingOptions { - static const int NSDataWritingAtomic = 1; - static const int NSDataWritingWithoutOverwriting = 2; - static const int NSDataWritingFileProtectionNone = 268435456; - static const int NSDataWritingFileProtectionComplete = 536870912; - static const int NSDataWritingFileProtectionCompleteUnlessOpen = 805306368; - static const int - NSDataWritingFileProtectionCompleteUntilFirstUserAuthentication = - 1073741824; - static const int NSDataWritingFileProtectionMask = 4026531840; - static const int NSAtomicWrite = 1; -} + void filterUsingPredicate_(NSPredicate predicate) { + _lib._objc_msgSend_434( + _id, _lib._sel_filterUsingPredicate_1, predicate._id); + } -/// Data Search Options -abstract class NSDataSearchOptions { - static const int NSDataSearchBackwards = 1; - static const int NSDataSearchAnchored = 2; -} + @override + NSMutableArray initWithObjects_count_( + ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_58( + _id, _lib._sel_initWithObjects_count_1, objects, cnt); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } -void _ObjCBlock11_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, _NSRange arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} + static NSMutableArray array(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_array1); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } -final _ObjCBlock11_closureRegistry = {}; -int _ObjCBlock11_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock11_registerClosure(Function fn) { - final id = ++_ObjCBlock11_closureRegistryIndex; - _ObjCBlock11_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + static NSMutableArray arrayWithObject_( + PedometerBindings _lib, NSObject anObject) { + final _ret = _lib._objc_msgSend_115( + _lib._class_NSMutableArray1, _lib._sel_arrayWithObject_1, anObject._id); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } -void _ObjCBlock11_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { - return _ObjCBlock11_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} + static NSMutableArray arrayWithObjects_count_(PedometerBindings _lib, + ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_58(_lib._class_NSMutableArray1, + _lib._sel_arrayWithObjects_count_1, objects, cnt); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } -class ObjCBlock11 extends _ObjCBlockBase { - ObjCBlock11._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); + static NSMutableArray arrayWithObjects_( + PedometerBindings _lib, NSObject firstObj) { + final _ret = _lib._objc_msgSend_115(_lib._class_NSMutableArray1, + _lib._sel_arrayWithObjects_1, firstObj._id); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a C function pointer. - ObjCBlock11.fromFunctionPointer( - PedometerBindings lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, - ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2)>( - _ObjCBlock11_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + static NSMutableArray arrayWithArray_(PedometerBindings _lib, NSArray array) { + final _ret = _lib._objc_msgSend_116( + _lib._class_NSMutableArray1, _lib._sel_arrayWithArray_1, array._id); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a Dart function. - ObjCBlock11.fromFunction( - PedometerBindings lib, - void Function(ffi.Pointer arg0, _NSRange arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2)>( - _ObjCBlock11_closureTrampoline) - .cast(), - _ObjCBlock11_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call( - ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + @override + NSMutableArray initWithObjects_(NSObject firstObj) { + final _ret = + _lib._objc_msgSend_115(_id, _lib._sel_initWithObjects_1, firstObj._id); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + @override + NSMutableArray initWithArray_(NSArray array) { + final _ret = + _lib._objc_msgSend_116(_id, _lib._sel_initWithArray_1, array._id); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } -/// Read/Write Options -abstract class NSDataReadingOptions { - static const int NSDataReadingMappedIfSafe = 1; - static const int NSDataReadingUncached = 2; - static const int NSDataReadingMappedAlways = 8; - static const int NSDataReadingMapped = 1; - static const int NSMappedRead = 1; - static const int NSUncachedRead = 2; -} + @override + NSMutableArray initWithArray_copyItems_(NSArray array, bool flag) { + final _ret = _lib._objc_msgSend_117( + _id, _lib._sel_initWithArray_copyItems_1, array._id, flag); + return NSMutableArray._(_ret, _lib, retain: false, release: true); + } -void _ObjCBlock12_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, ffi.UnsignedLong arg1)>>() - .asFunction arg0, int arg1)>()( - arg0, arg1); -} + static NSArray? arrayWithContentsOfURL_error_(PedometerBindings _lib, + NSURL url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_118(_lib._class_NSMutableArray1, + _lib._sel_arrayWithContentsOfURL_error_1, url._id, error); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } -final _ObjCBlock12_closureRegistry = {}; -int _ObjCBlock12_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock12_registerClosure(Function fn) { - final id = ++_ObjCBlock12_closureRegistryIndex; - _ObjCBlock12_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + static NSMutableArray new1(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_new1); + return NSMutableArray._(_ret, _lib, retain: false, release: true); + } -void _ObjCBlock12_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) { - return _ObjCBlock12_closureRegistry[block.ref.target.address]!(arg0, arg1); -} + static NSMutableArray allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSMutableArray1, _lib._sel_allocWithZone_1, zone); + return NSMutableArray._(_ret, _lib, retain: false, release: true); + } -class ObjCBlock12 extends _ObjCBlockBase { - ObjCBlock12._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); + static NSMutableArray alloc(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_alloc1); + return NSMutableArray._(_ret, _lib, retain: false, release: true); + } - /// Creates a block from a C function pointer. - ObjCBlock12.fromFunctionPointer( - PedometerBindings lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, ffi.UnsignedLong arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1)>( - _ObjCBlock12_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + PedometerBindings _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSMutableArray1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument?._id ?? ffi.nullptr); + } - /// Creates a block from a Dart function. - ObjCBlock12.fromFunction(PedometerBindings lib, - void Function(ffi.Pointer arg0, int arg1) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1)>( - _ObjCBlock12_closureTrampoline) - .cast(), - _ObjCBlock12_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, int arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.UnsignedLong arg1)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1)>()(_id, arg0, arg1); + static void cancelPreviousPerformRequestsWithTarget_( + PedometerBindings _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSMutableArray1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { + return _lib._objc_msgSend_12(_lib._class_NSMutableArray1, + _lib._sel_accessInstanceVariablesDirectly1); + } -abstract class NSDataBase64DecodingOptions { - static const int NSDataBase64DecodingIgnoreUnknownCharacters = 1; -} + static bool useStoredAccessor(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMutableArray1, _lib._sel_useStoredAccessor1); + } -/// Base 64 Options -abstract class NSDataBase64EncodingOptions { - static const int NSDataBase64Encoding64CharacterLineLength = 1; - static const int NSDataBase64Encoding76CharacterLineLength = 2; - static const int NSDataBase64EncodingEndLineWithCarriageReturn = 16; - static const int NSDataBase64EncodingEndLineWithLineFeed = 32; -} + static NSSet keyPathsForValuesAffectingValueForKey_( + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSMutableArray1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); + return NSSet._(_ret, _lib, retain: true, release: true); + } -abstract class NSDataCompressionAlgorithm { - static const int NSDataCompressionAlgorithmLZFSE = 0; - static const int NSDataCompressionAlgorithmLZ4 = 1; - static const int NSDataCompressionAlgorithmLZMA = 2; - static const int NSDataCompressionAlgorithmZlib = 3; -} + static bool automaticallyNotifiesObserversForKey_( + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSMutableArray1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); + } -/// ! -/// Describes the action an NSCoder should take when it encounters decode failures (e.g. corrupt data) for non-TopLevel decodes. -abstract class NSDecodingFailurePolicy { - static const int NSDecodingFailurePolicyRaiseException = 0; - static const int NSDecodingFailurePolicySetErrorAndReturn = 1; -} + static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77( + _lib._class_NSMutableArray1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } -abstract class NSStringCompareOptions { - static const int NSCaseInsensitiveSearch = 1; - static const int NSLiteralSearch = 2; - static const int NSBackwardsSearch = 4; - static const int NSAnchoredSearch = 8; - static const int NSNumericSearch = 64; - static const int NSDiacriticInsensitiveSearch = 128; - static const int NSWidthInsensitiveSearch = 256; - static const int NSForcedOrderingSearch = 512; - static const int NSRegularExpressionSearch = 1024; + static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableArray1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } } -class NSLocale extends NSObject { - NSLocale._(ffi.Pointer id, PedometerBindings lib, +/// Mutable Ordered Set +class NSMutableOrderedSet extends NSOrderedSet { + NSMutableOrderedSet._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSLocale] that points to the same underlying object as [other]. - static NSLocale castFrom(T other) { - return NSLocale._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSMutableOrderedSet] that points to the same underlying object as [other]. + static NSMutableOrderedSet castFrom(T other) { + return NSMutableOrderedSet._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSLocale] that wraps the given raw object pointer. - static NSLocale castFromPointer( + /// Returns a [NSMutableOrderedSet] that wraps the given raw object pointer. + static NSMutableOrderedSet castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSLocale._(other, lib, retain: retain, release: release); + return NSMutableOrderedSet._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSLocale]. + /// Returns whether [obj] is an instance of [NSMutableOrderedSet]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSLocale1); - } - - NSObject objectForKey_(NSString key) { - final _ret = _lib._objc_msgSend_30(_id, _lib._sel_objectForKey_1, key._id); - return NSObject._(_ret, _lib, retain: true, release: true); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMutableOrderedSet1); } - NSString displayNameForKey_value_(NSString key, NSObject value) { - final _ret = _lib._objc_msgSend_264( - _id, _lib._sel_displayNameForKey_value_1, key._id, value._id); - return NSString._(_ret, _lib, retain: true, release: true); + void insertObject_atIndex_(NSObject object, int idx) { + _lib._objc_msgSend_416( + _id, _lib._sel_insertObject_atIndex_1, object._id, idx); } - NSLocale initWithLocaleIdentifier_(NSString? string) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithLocaleIdentifier_1, string?._id ?? ffi.nullptr); - return NSLocale._(_ret, _lib, retain: true, release: true); + void removeObjectAtIndex_(int idx) { + _lib._objc_msgSend_417(_id, _lib._sel_removeObjectAtIndex_1, idx); } - NSLocale initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSLocale._(_ret, _lib, retain: true, release: true); + void replaceObjectAtIndex_withObject_(int idx, NSObject object) { + _lib._objc_msgSend_418( + _id, _lib._sel_replaceObjectAtIndex_withObject_1, idx, object._id); } - NSString? get localeIdentifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localeIdentifier1); + @override + NSMutableOrderedSet? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - NSString localizedStringForLocaleIdentifier_(NSString? localeIdentifier) { - final _ret = _lib._objc_msgSend_56( - _id, - _lib._sel_localizedStringForLocaleIdentifier_1, - localeIdentifier?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + @override + NSMutableOrderedSet init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - NSString? get languageCode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_languageCode1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSMutableOrderedSet initWithCapacity_(int numItems) { + final _ret = + _lib._objc_msgSend_57(_id, _lib._sel_initWithCapacity_1, numItems); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - NSString localizedStringForLanguageCode_(NSString? languageCode) { - final _ret = _lib._objc_msgSend_56( - _id, - _lib._sel_localizedStringForLanguageCode_1, - languageCode?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + void addObject_(NSObject object) { + _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, object._id); } - NSString? get countryCode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_countryCode1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + void addObjects_count_( + ffi.Pointer> objects, int count) { + _lib._objc_msgSend_447(_id, _lib._sel_addObjects_count_1, objects, count); } - NSString localizedStringForCountryCode_(NSString? countryCode) { - final _ret = _lib._objc_msgSend_56( - _id, - _lib._sel_localizedStringForCountryCode_1, - countryCode?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + void addObjectsFromArray_(NSArray array) { + _lib._objc_msgSend_419(_id, _lib._sel_addObjectsFromArray_1, array._id); } - NSString? get scriptCode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_scriptCode1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + void exchangeObjectAtIndex_withObjectAtIndex_(int idx1, int idx2) { + _lib._objc_msgSend_420( + _id, _lib._sel_exchangeObjectAtIndex_withObjectAtIndex_1, idx1, idx2); } - NSString localizedStringForScriptCode_(NSString? scriptCode) { - final _ret = _lib._objc_msgSend_56( - _id, - _lib._sel_localizedStringForScriptCode_1, - scriptCode?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + void moveObjectsAtIndexes_toIndex_(NSIndexSet indexes, int idx) { + _lib._objc_msgSend_448( + _id, _lib._sel_moveObjectsAtIndexes_toIndex_1, indexes._id, idx); } - NSString? get variantCode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_variantCode1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + void insertObjects_atIndexes_(NSArray objects, NSIndexSet indexes) { + _lib._objc_msgSend_427( + _id, _lib._sel_insertObjects_atIndexes_1, objects._id, indexes._id); } - NSString localizedStringForVariantCode_(NSString? variantCode) { - final _ret = _lib._objc_msgSend_56( - _id, - _lib._sel_localizedStringForVariantCode_1, - variantCode?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + void setObject_atIndex_(NSObject obj, int idx) { + _lib._objc_msgSend_416(_id, _lib._sel_setObject_atIndex_1, obj._id, idx); } - NSCharacterSet? get exemplarCharacterSet { - final _ret = _lib._objc_msgSend_265(_id, _lib._sel_exemplarCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + void setObject_atIndexedSubscript_(NSObject obj, int idx) { + _lib._objc_msgSend_416( + _id, _lib._sel_setObject_atIndexedSubscript_1, obj._id, idx); } - NSString? get calendarIdentifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_calendarIdentifier1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + void replaceObjectsInRange_withObjects_count_( + _NSRange range, ffi.Pointer> objects, int count) { + _lib._objc_msgSend_449( + _id, + _lib._sel_replaceObjectsInRange_withObjects_count_1, + range, + objects, + count); } - NSString localizedStringForCalendarIdentifier_(NSString? calendarIdentifier) { - final _ret = _lib._objc_msgSend_56( - _id, - _lib._sel_localizedStringForCalendarIdentifier_1, - calendarIdentifier?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + void replaceObjectsAtIndexes_withObjects_( + NSIndexSet indexes, NSArray objects) { + _lib._objc_msgSend_429(_id, _lib._sel_replaceObjectsAtIndexes_withObjects_1, + indexes._id, objects._id); } - NSString? get collationIdentifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_collationIdentifier1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + void removeObjectsInRange_(_NSRange range) { + _lib._objc_msgSend_423(_id, _lib._sel_removeObjectsInRange_1, range); } - NSString localizedStringForCollationIdentifier_( - NSString? collationIdentifier) { - final _ret = _lib._objc_msgSend_56( - _id, - _lib._sel_localizedStringForCollationIdentifier_1, - collationIdentifier?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + void removeObjectsAtIndexes_(NSIndexSet indexes) { + _lib._objc_msgSend_428( + _id, _lib._sel_removeObjectsAtIndexes_1, indexes._id); } - bool get usesMetricSystem { - return _lib._objc_msgSend_12(_id, _lib._sel_usesMetricSystem1); + void removeAllObjects() { + _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); } - NSString? get decimalSeparator { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_decimalSeparator1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + void removeObject_(NSObject object) { + _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, object._id); } - NSString? get groupingSeparator { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_groupingSeparator1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + void removeObjectsInArray_(NSArray array) { + _lib._objc_msgSend_419(_id, _lib._sel_removeObjectsInArray_1, array._id); } - NSString? get currencySymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currencySymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + void intersectOrderedSet_(NSOrderedSet other) { + _lib._objc_msgSend_450(_id, _lib._sel_intersectOrderedSet_1, other._id); } - NSString? get currencyCode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currencyCode1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + void minusOrderedSet_(NSOrderedSet other) { + _lib._objc_msgSend_450(_id, _lib._sel_minusOrderedSet_1, other._id); } - NSString localizedStringForCurrencyCode_(NSString? currencyCode) { - final _ret = _lib._objc_msgSend_56( - _id, - _lib._sel_localizedStringForCurrencyCode_1, - currencyCode?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + void unionOrderedSet_(NSOrderedSet other) { + _lib._objc_msgSend_450(_id, _lib._sel_unionOrderedSet_1, other._id); } - NSString? get collatorIdentifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_collatorIdentifier1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + void intersectSet_(NSSet other) { + _lib._objc_msgSend_451(_id, _lib._sel_intersectSet_1, other._id); } - NSString localizedStringForCollatorIdentifier_(NSString? collatorIdentifier) { - final _ret = _lib._objc_msgSend_56( - _id, - _lib._sel_localizedStringForCollatorIdentifier_1, - collatorIdentifier?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + void minusSet_(NSSet other) { + _lib._objc_msgSend_451(_id, _lib._sel_minusSet_1, other._id); } - NSString? get quotationBeginDelimiter { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_quotationBeginDelimiter1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + void unionSet_(NSSet other) { + _lib._objc_msgSend_451(_id, _lib._sel_unionSet_1, other._id); } - NSString? get quotationEndDelimiter { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_quotationEndDelimiter1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + void sortUsingComparator_( + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + _lib._objc_msgSend_430(_id, _lib._sel_sortUsingComparator_1, cmptr._id); } - NSString? get alternateQuotationBeginDelimiter { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_alternateQuotationBeginDelimiter1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + void sortWithOptions_usingComparator_( + int opts, ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + _lib._objc_msgSend_431( + _id, _lib._sel_sortWithOptions_usingComparator_1, opts, cmptr._id); } - NSString? get alternateQuotationEndDelimiter { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_alternateQuotationEndDelimiter1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + void sortRange_options_usingComparator_(_NSRange range, int opts, + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + _lib._objc_msgSend_452(_id, _lib._sel_sortRange_options_usingComparator_1, + range, opts, cmptr._id); } - static NSLocale? getAutoupdatingCurrentLocale(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_273( - _lib._class_NSLocale1, _lib._sel_autoupdatingCurrentLocale1); - return _ret.address == 0 - ? null - : NSLocale._(_ret, _lib, retain: true, release: true); + static NSMutableOrderedSet orderedSetWithCapacity_( + PedometerBindings _lib, int numItems) { + final _ret = _lib._objc_msgSend_57(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithCapacity_1, numItems); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - static NSLocale? getCurrentLocale(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_273(_lib._class_NSLocale1, _lib._sel_currentLocale1); - return _ret.address == 0 - ? null - : NSLocale._(_ret, _lib, retain: true, release: true); + void applyDifference_(NSObject difference) { + _lib._objc_msgSend_15(_id, _lib._sel_applyDifference_1, difference._id); } - static NSLocale? getSystemLocale(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_273(_lib._class_NSLocale1, _lib._sel_systemLocale1); - return _ret.address == 0 - ? null - : NSLocale._(_ret, _lib, retain: true, release: true); + void sortUsingDescriptors_(NSArray sortDescriptors) { + _lib._objc_msgSend_419( + _id, _lib._sel_sortUsingDescriptors_1, sortDescriptors._id); } - static NSLocale localeWithLocaleIdentifier_( - PedometerBindings _lib, NSString? ident) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSLocale1, - _lib._sel_localeWithLocaleIdentifier_1, ident?._id ?? ffi.nullptr); - return NSLocale._(_ret, _lib, retain: true, release: true); + void filterUsingPredicate_(NSPredicate p) { + _lib._objc_msgSend_434(_id, _lib._sel_filterUsingPredicate_1, p._id); } @override - NSLocale init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSLocale._(_ret, _lib, retain: true, release: true); + NSMutableOrderedSet initWithObjects_count_( + ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_58( + _id, _lib._sel_initWithObjects_count_1, objects, cnt); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - static NSArray? getAvailableLocaleIdentifiers(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSLocale1, _lib._sel_availableLocaleIdentifiers1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static NSMutableOrderedSet orderedSet(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableOrderedSet1, _lib._sel_orderedSet1); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - static NSArray? getISOLanguageCodes(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSLocale1, _lib._sel_ISOLanguageCodes1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static NSMutableOrderedSet orderedSetWithObject_( + PedometerBindings _lib, NSObject object) { + final _ret = _lib._objc_msgSend_115(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithObject_1, object._id); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - static NSArray? getISOCountryCodes(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSLocale1, _lib._sel_ISOCountryCodes1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static NSMutableOrderedSet orderedSetWithObjects_count_( + PedometerBindings _lib, + ffi.Pointer> objects, + int cnt) { + final _ret = _lib._objc_msgSend_58(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithObjects_count_1, objects, cnt); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - static NSArray? getISOCurrencyCodes(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSLocale1, _lib._sel_ISOCurrencyCodes1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static NSMutableOrderedSet orderedSetWithObjects_( + PedometerBindings _lib, NSObject firstObj) { + final _ret = _lib._objc_msgSend_115(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithObjects_1, firstObj._id); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - static NSArray? getCommonISOCurrencyCodes(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSLocale1, _lib._sel_commonISOCurrencyCodes1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static NSMutableOrderedSet orderedSetWithOrderedSet_( + PedometerBindings _lib, NSOrderedSet set) { + final _ret = _lib._objc_msgSend_439(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithOrderedSet_1, set._id); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - static NSArray? getPreferredLanguages(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSLocale1, _lib._sel_preferredLanguages1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static NSMutableOrderedSet orderedSetWithOrderedSet_range_copyItems_( + PedometerBindings _lib, NSOrderedSet set, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_440( + _lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithOrderedSet_range_copyItems_1, + set._id, + range, + flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); } - static NSDictionary componentsFromLocaleIdentifier_( - PedometerBindings _lib, NSString? string) { - final _ret = _lib._objc_msgSend_138(_lib._class_NSLocale1, - _lib._sel_componentsFromLocaleIdentifier_1, string?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + static NSMutableOrderedSet orderedSetWithArray_( + PedometerBindings _lib, NSArray array) { + final _ret = _lib._objc_msgSend_116(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithArray_1, array._id); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - static NSString localeIdentifierFromComponents_( - PedometerBindings _lib, NSDictionary? dict) { - final _ret = _lib._objc_msgSend_274(_lib._class_NSLocale1, - _lib._sel_localeIdentifierFromComponents_1, dict?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static NSMutableOrderedSet orderedSetWithArray_range_copyItems_( + PedometerBindings _lib, NSArray array, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_441( + _lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithArray_range_copyItems_1, + array._id, + range, + flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); } - static NSString canonicalLocaleIdentifierFromString_( - PedometerBindings _lib, NSString? string) { - final _ret = _lib._objc_msgSend_56( - _lib._class_NSLocale1, - _lib._sel_canonicalLocaleIdentifierFromString_1, - string?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static NSMutableOrderedSet orderedSetWithSet_( + PedometerBindings _lib, NSSet set) { + final _ret = _lib._objc_msgSend_362(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithSet_1, set._id); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - static NSString canonicalLanguageIdentifierFromString_( - PedometerBindings _lib, NSString? string) { - final _ret = _lib._objc_msgSend_56( - _lib._class_NSLocale1, - _lib._sel_canonicalLanguageIdentifierFromString_1, - string?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static NSMutableOrderedSet orderedSetWithSet_copyItems_( + PedometerBindings _lib, NSSet set, bool flag) { + final _ret = _lib._objc_msgSend_363(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithSet_copyItems_1, set._id, flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); } - static NSString localeIdentifierFromWindowsLocaleCode_( - PedometerBindings _lib, int lcid) { - final _ret = _lib._objc_msgSend_275(_lib._class_NSLocale1, - _lib._sel_localeIdentifierFromWindowsLocaleCode_1, lcid); - return NSString._(_ret, _lib, retain: true, release: true); + @override + NSMutableOrderedSet initWithObject_(NSObject object) { + final _ret = + _lib._objc_msgSend_115(_id, _lib._sel_initWithObject_1, object._id); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - static int windowsLocaleCodeFromLocaleIdentifier_( - PedometerBindings _lib, NSString? localeIdentifier) { - return _lib._objc_msgSend_276( - _lib._class_NSLocale1, - _lib._sel_windowsLocaleCodeFromLocaleIdentifier_1, - localeIdentifier?._id ?? ffi.nullptr); + @override + NSMutableOrderedSet initWithObjects_(NSObject firstObj) { + final _ret = + _lib._objc_msgSend_115(_id, _lib._sel_initWithObjects_1, firstObj._id); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - static int characterDirectionForLanguage_( - PedometerBindings _lib, NSString? isoLangCode) { - return _lib._objc_msgSend_277( - _lib._class_NSLocale1, - _lib._sel_characterDirectionForLanguage_1, - isoLangCode?._id ?? ffi.nullptr); + @override + NSMutableOrderedSet initWithOrderedSet_(NSOrderedSet set) { + final _ret = + _lib._objc_msgSend_439(_id, _lib._sel_initWithOrderedSet_1, set._id); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - static int lineDirectionForLanguage_( - PedometerBindings _lib, NSString? isoLangCode) { - return _lib._objc_msgSend_277(_lib._class_NSLocale1, - _lib._sel_lineDirectionForLanguage_1, isoLangCode?._id ?? ffi.nullptr); + @override + NSMutableOrderedSet initWithOrderedSet_copyItems_( + NSOrderedSet set, bool flag) { + final _ret = _lib._objc_msgSend_442( + _id, _lib._sel_initWithOrderedSet_copyItems_1, set._id, flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); } - static NSLocale new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSLocale1, _lib._sel_new1); - return NSLocale._(_ret, _lib, retain: false, release: true); + @override + NSMutableOrderedSet initWithOrderedSet_range_copyItems_( + NSOrderedSet set, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_440(_id, + _lib._sel_initWithOrderedSet_range_copyItems_1, set._id, range, flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); } - static NSLocale alloc(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSLocale1, _lib._sel_alloc1); - return NSLocale._(_ret, _lib, retain: false, release: true); + @override + NSMutableOrderedSet initWithArray_(NSArray array) { + final _ret = + _lib._objc_msgSend_116(_id, _lib._sel_initWithArray_1, array._id); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableOrderedSet initWithArray_copyItems_(NSArray set, bool flag) { + final _ret = _lib._objc_msgSend_117( + _id, _lib._sel_initWithArray_copyItems_1, set._id, flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + } + + @override + NSMutableOrderedSet initWithArray_range_copyItems_( + NSArray set, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_441( + _id, _lib._sel_initWithArray_range_copyItems_1, set._id, range, flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + } + + @override + NSMutableOrderedSet initWithSet_(NSSet set) { + final _ret = _lib._objc_msgSend_362(_id, _lib._sel_initWithSet_1, set._id); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableOrderedSet initWithSet_copyItems_(NSSet set, bool flag) { + final _ret = _lib._objc_msgSend_363( + _id, _lib._sel_initWithSet_copyItems_1, set._id, flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + } + + static NSMutableOrderedSet new1(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableOrderedSet1, _lib._sel_new1); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + } + + static NSMutableOrderedSet allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSMutableOrderedSet1, _lib._sel_allocWithZone_1, zone); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + } + + static NSMutableOrderedSet alloc(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableOrderedSet1, _lib._sel_alloc1); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSLocale1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSMutableOrderedSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSLocale1, + _lib._objc_msgSend_15(_lib._class_NSMutableOrderedSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSLocale1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSMutableOrderedSet1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSLocale1, _lib._sel_useStoredAccessor1); + _lib._class_NSMutableOrderedSet1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSLocale1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSMutableOrderedSet1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSLocale1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSLocale1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSMutableOrderedSet1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSLocale1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77(_lib._class_NSMutableOrderedSet1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSLocale1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSMutableOrderedSet1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSCharacterSet extends NSObject { - NSCharacterSet._(ffi.Pointer id, PedometerBindings lib, +/// Immutable Ordered Set +class NSOrderedSet extends NSObject { + NSOrderedSet._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSCharacterSet] that points to the same underlying object as [other]. - static NSCharacterSet castFrom(T other) { - return NSCharacterSet._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSOrderedSet] that points to the same underlying object as [other]. + static NSOrderedSet castFrom(T other) { + return NSOrderedSet._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSCharacterSet] that wraps the given raw object pointer. - static NSCharacterSet castFromPointer( + /// Returns a [NSOrderedSet] that wraps the given raw object pointer. + static NSOrderedSet castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSCharacterSet._(other, lib, retain: retain, release: release); + return NSOrderedSet._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSCharacterSet]. + /// Returns whether [obj] is an instance of [NSOrderedSet]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSCharacterSet1); - } - - static NSCharacterSet? getControlCharacterSet(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_265( - _lib._class_NSCharacterSet1, _lib._sel_controlCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - - static NSCharacterSet? getWhitespaceCharacterSet(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_265( - _lib._class_NSCharacterSet1, _lib._sel_whitespaceCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - - static NSCharacterSet? getWhitespaceAndNewlineCharacterSet( - PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_265(_lib._class_NSCharacterSet1, - _lib._sel_whitespaceAndNewlineCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - - static NSCharacterSet? getDecimalDigitCharacterSet(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_265( - _lib._class_NSCharacterSet1, _lib._sel_decimalDigitCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - - static NSCharacterSet? getLetterCharacterSet(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_265( - _lib._class_NSCharacterSet1, _lib._sel_letterCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSOrderedSet1); } - static NSCharacterSet? getLowercaseLetterCharacterSet( - PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_265( - _lib._class_NSCharacterSet1, _lib._sel_lowercaseLetterCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + int get count { + return _lib._objc_msgSend_10(_id, _lib._sel_count1); } - static NSCharacterSet? getUppercaseLetterCharacterSet( - PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_265( - _lib._class_NSCharacterSet1, _lib._sel_uppercaseLetterCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + NSObject objectAtIndex_(int idx) { + final _ret = _lib._objc_msgSend_57(_id, _lib._sel_objectAtIndex_1, idx); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getNonBaseCharacterSet(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_265( - _lib._class_NSCharacterSet1, _lib._sel_nonBaseCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + int indexOfObject_(NSObject object) { + return _lib._objc_msgSend_66(_id, _lib._sel_indexOfObject_1, object._id); } - static NSCharacterSet? getAlphanumericCharacterSet(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_265( - _lib._class_NSCharacterSet1, _lib._sel_alphanumericCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + @override + NSOrderedSet init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getDecomposableCharacterSet(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_265( - _lib._class_NSCharacterSet1, _lib._sel_decomposableCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + NSOrderedSet initWithObjects_count_( + ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_58( + _id, _lib._sel_initWithObjects_count_1, objects, cnt); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getIllegalCharacterSet(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_265( - _lib._class_NSCharacterSet1, _lib._sel_illegalCharacterSet1); + NSOrderedSet? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); return _ret.address == 0 ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + : NSOrderedSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getPunctuationCharacterSet(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_265( - _lib._class_NSCharacterSet1, _lib._sel_punctuationCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + void getObjects_range_( + ffi.Pointer> objects, _NSRange range) { + _lib._objc_msgSend_65(_id, _lib._sel_getObjects_range_1, objects, range); } - static NSCharacterSet? getCapitalizedLetterCharacterSet( - PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_265( - _lib._class_NSCharacterSet1, _lib._sel_capitalizedLetterCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + NSArray objectsAtIndexes_(NSIndexSet indexes) { + final _ret = + _lib._objc_msgSend_102(_id, _lib._sel_objectsAtIndexes_1, indexes._id); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getSymbolCharacterSet(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_265( - _lib._class_NSCharacterSet1, _lib._sel_symbolCharacterSet1); + NSObject? get firstObject { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_firstObject1); return _ret.address == 0 ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getNewlineCharacterSet(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_265( - _lib._class_NSCharacterSet1, _lib._sel_newlineCharacterSet1); + NSObject? get lastObject { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_lastObject1); return _ret.address == 0 ? null - : NSCharacterSet._(_ret, _lib, retain: false, release: true); + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet characterSetWithRange_( - PedometerBindings _lib, _NSRange aRange) { - final _ret = _lib._objc_msgSend_266( - _lib._class_NSCharacterSet1, _lib._sel_characterSetWithRange_1, aRange); - return NSCharacterSet._(_ret, _lib, retain: true, release: true); + bool isEqualToOrderedSet_(NSOrderedSet other) { + return _lib._objc_msgSend_436( + _id, _lib._sel_isEqualToOrderedSet_1, other._id); } - static NSCharacterSet characterSetWithCharactersInString_( - PedometerBindings _lib, NSString? aString) { - final _ret = _lib._objc_msgSend_267( - _lib._class_NSCharacterSet1, - _lib._sel_characterSetWithCharactersInString_1, - aString?._id ?? ffi.nullptr); - return NSCharacterSet._(_ret, _lib, retain: true, release: true); + bool containsObject_(NSObject object) { + return _lib._objc_msgSend_0(_id, _lib._sel_containsObject_1, object._id); } - static NSCharacterSet characterSetWithBitmapRepresentation_( - PedometerBindings _lib, NSData? data) { - final _ret = _lib._objc_msgSend_268( - _lib._class_NSCharacterSet1, - _lib._sel_characterSetWithBitmapRepresentation_1, - data?._id ?? ffi.nullptr); - return NSCharacterSet._(_ret, _lib, retain: true, release: true); + bool intersectsOrderedSet_(NSOrderedSet other) { + return _lib._objc_msgSend_436( + _id, _lib._sel_intersectsOrderedSet_1, other._id); } - static NSCharacterSet characterSetWithContentsOfFile_( - PedometerBindings _lib, NSString? fName) { - final _ret = _lib._objc_msgSend_267(_lib._class_NSCharacterSet1, - _lib._sel_characterSetWithContentsOfFile_1, fName?._id ?? ffi.nullptr); - return NSCharacterSet._(_ret, _lib, retain: true, release: true); + bool intersectsSet_(NSSet set) { + return _lib._objc_msgSend_354(_id, _lib._sel_intersectsSet_1, set._id); } - NSCharacterSet initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSCharacterSet._(_ret, _lib, retain: true, release: true); + bool isSubsetOfOrderedSet_(NSOrderedSet other) { + return _lib._objc_msgSend_436( + _id, _lib._sel_isSubsetOfOrderedSet_1, other._id); } - bool characterIsMember_(int aCharacter) { - return _lib._objc_msgSend_269( - _id, _lib._sel_characterIsMember_1, aCharacter); + bool isSubsetOfSet_(NSSet set) { + return _lib._objc_msgSend_354(_id, _lib._sel_isSubsetOfSet_1, set._id); } - NSData? get bitmapRepresentation { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_bitmapRepresentation1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + NSObject objectAtIndexedSubscript_(int idx) { + final _ret = + _lib._objc_msgSend_57(_id, _lib._sel_objectAtIndexedSubscript_1, idx); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSCharacterSet? get invertedSet { - final _ret = _lib._objc_msgSend_265(_id, _lib._sel_invertedSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + NSEnumerator objectEnumerator() { + final _ret = _lib._objc_msgSend_69(_id, _lib._sel_objectEnumerator1); + return NSEnumerator._(_ret, _lib, retain: true, release: true); } - bool longCharacterIsMember_(int theLongChar) { - return _lib._objc_msgSend_270( - _id, _lib._sel_longCharacterIsMember_1, theLongChar); + NSEnumerator reverseObjectEnumerator() { + final _ret = _lib._objc_msgSend_69(_id, _lib._sel_reverseObjectEnumerator1); + return NSEnumerator._(_ret, _lib, retain: true, release: true); } - bool isSupersetOfSet_(NSCharacterSet? theOtherSet) { - return _lib._objc_msgSend_271( - _id, _lib._sel_isSupersetOfSet_1, theOtherSet?._id ?? ffi.nullptr); + NSOrderedSet get reversedOrderedSet { + final _ret = _lib._objc_msgSend_437(_id, _lib._sel_reversedOrderedSet1); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); } - bool hasMemberInPlane_(int thePlane) { - return _lib._objc_msgSend_272(_id, _lib._sel_hasMemberInPlane_1, thePlane); + NSArray get array { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_array1); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getURLUserAllowedCharacterSet(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_265( - _lib._class_NSCharacterSet1, _lib._sel_URLUserAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + NSSet get set1 { + final _ret = _lib._objc_msgSend_438(_id, _lib._sel_set1); + return NSSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getURLPasswordAllowedCharacterSet( - PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_265( - _lib._class_NSCharacterSet1, _lib._sel_URLPasswordAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + void enumerateObjectsUsingBlock_( + ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool block) { + _lib._objc_msgSend_103( + _id, _lib._sel_enumerateObjectsUsingBlock_1, block._id); } - static NSCharacterSet? getURLHostAllowedCharacterSet(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_265( - _lib._class_NSCharacterSet1, _lib._sel_URLHostAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + void enumerateObjectsWithOptions_usingBlock_( + int opts, ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool block) { + _lib._objc_msgSend_104(_id, + _lib._sel_enumerateObjectsWithOptions_usingBlock_1, opts, block._id); } - static NSCharacterSet? getURLPathAllowedCharacterSet(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_265( - _lib._class_NSCharacterSet1, _lib._sel_URLPathAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + void enumerateObjectsAtIndexes_options_usingBlock_(NSIndexSet s, int opts, + ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool block) { + _lib._objc_msgSend_105( + _id, + _lib._sel_enumerateObjectsAtIndexes_options_usingBlock_1, + s._id, + opts, + block._id); } - static NSCharacterSet? getURLQueryAllowedCharacterSet( - PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_265( - _lib._class_NSCharacterSet1, _lib._sel_URLQueryAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + int indexOfObjectPassingTest_( + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_106( + _id, _lib._sel_indexOfObjectPassingTest_1, predicate._id); } - static NSCharacterSet? getURLFragmentAllowedCharacterSet( - PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_265( - _lib._class_NSCharacterSet1, _lib._sel_URLFragmentAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + int indexOfObjectWithOptions_passingTest_( + int opts, ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_107(_id, + _lib._sel_indexOfObjectWithOptions_passingTest_1, opts, predicate._id); } - static NSCharacterSet new1(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSCharacterSet1, _lib._sel_new1); - return NSCharacterSet._(_ret, _lib, retain: false, release: true); + int indexOfObjectAtIndexes_options_passingTest_(NSIndexSet s, int opts, + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_108( + _id, + _lib._sel_indexOfObjectAtIndexes_options_passingTest_1, + s._id, + opts, + predicate._id); } - static NSCharacterSet alloc(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSCharacterSet1, _lib._sel_alloc1); - return NSCharacterSet._(_ret, _lib, retain: false, release: true); + NSIndexSet indexesOfObjectsPassingTest_( + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + final _ret = _lib._objc_msgSend_109( + _id, _lib._sel_indexesOfObjectsPassingTest_1, predicate._id); + return NSIndexSet._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - PedometerBindings _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSCharacterSet1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + NSIndexSet indexesOfObjectsWithOptions_passingTest_( + int opts, ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + final _ret = _lib._objc_msgSend_110( + _id, + _lib._sel_indexesOfObjectsWithOptions_passingTest_1, + opts, + predicate._id); + return NSIndexSet._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_( - PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSCharacterSet1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + NSIndexSet indexesOfObjectsAtIndexes_options_passingTest_(NSIndexSet s, + int opts, ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + final _ret = _lib._objc_msgSend_111( + _id, + _lib._sel_indexesOfObjectsAtIndexes_options_passingTest_1, + s._id, + opts, + predicate._id); + return NSIndexSet._(_ret, _lib, retain: true, release: true); } - static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSCharacterSet1, - _lib._sel_accessInstanceVariablesDirectly1); + int indexOfObject_inSortedRange_options_usingComparator_( + NSObject object, + _NSRange range, + int opts, + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmp) { + return _lib._objc_msgSend_114( + _id, + _lib._sel_indexOfObject_inSortedRange_options_usingComparator_1, + object._id, + range, + opts, + cmp._id); } - static bool useStoredAccessor(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSCharacterSet1, _lib._sel_useStoredAccessor1); + NSArray sortedArrayUsingComparator_( + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + final _ret = _lib._objc_msgSend_112( + _id, _lib._sel_sortedArrayUsingComparator_1, cmptr._id); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSCharacterSet1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + NSArray sortedArrayWithOptions_usingComparator_( + int opts, ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + final _ret = _lib._objc_msgSend_113(_id, + _lib._sel_sortedArrayWithOptions_usingComparator_1, opts, cmptr._id); + return NSArray._(_ret, _lib, retain: true, release: true); } - static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSCharacterSet1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + NSString get description { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_description1); + return NSString._(_ret, _lib, retain: true, release: true); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSCharacterSet1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + NSString descriptionWithLocale_(NSObject? locale) { + final _ret = _lib._objc_msgSend_62( + _id, _lib._sel_descriptionWithLocale_1, locale?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSCharacterSet1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + NSString descriptionWithLocale_indent_(NSObject? locale, int level) { + final _ret = _lib._objc_msgSend_63( + _id, + _lib._sel_descriptionWithLocale_indent_1, + locale?._id ?? ffi.nullptr, + level); + return NSString._(_ret, _lib, retain: true, release: true); } - static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSCharacterSet1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSOrderedSet orderedSet(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSOrderedSet1, _lib._sel_orderedSet1); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); } -} - -abstract class NSLocaleLanguageDirection { - static const int NSLocaleLanguageDirectionUnknown = 0; - static const int NSLocaleLanguageDirectionLeftToRight = 1; - static const int NSLocaleLanguageDirectionRightToLeft = 2; - static const int NSLocaleLanguageDirectionTopToBottom = 3; - static const int NSLocaleLanguageDirectionBottomToTop = 4; -} - -abstract class NSStringEnumerationOptions { - static const int NSStringEnumerationByLines = 0; - static const int NSStringEnumerationByParagraphs = 1; - static const int NSStringEnumerationByComposedCharacterSequences = 2; - static const int NSStringEnumerationByWords = 3; - static const int NSStringEnumerationBySentences = 4; - static const int NSStringEnumerationByCaretPositions = 5; - static const int NSStringEnumerationByDeletionClusters = 6; - static const int NSStringEnumerationReverse = 256; - static const int NSStringEnumerationSubstringNotRequired = 512; - static const int NSStringEnumerationLocalized = 1024; -} - -void _ObjCBlock13_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - _NSRange arg2, - ffi.Pointer arg3) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, - _NSRange arg2, ffi.Pointer arg3)>>() - .asFunction< - void Function( - ffi.Pointer arg0, - _NSRange arg1, - _NSRange arg2, - ffi.Pointer arg3)>()(arg0, arg1, arg2, arg3); -} - -final _ObjCBlock13_closureRegistry = {}; -int _ObjCBlock13_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock13_registerClosure(Function fn) { - final id = ++_ObjCBlock13_closureRegistryIndex; - _ObjCBlock13_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock13_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - _NSRange arg2, - ffi.Pointer arg3) { - return _ObjCBlock13_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2, arg3); -} - -class ObjCBlock13 extends _ObjCBlockBase { - ObjCBlock13._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock13.fromFunctionPointer( - PedometerBindings lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, - _NSRange arg2, ffi.Pointer arg3)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - _NSRange arg2, - ffi.Pointer arg3)>( - _ObjCBlock13_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - /// Creates a block from a Dart function. - ObjCBlock13.fromFunction( - PedometerBindings lib, - void Function(ffi.Pointer arg0, _NSRange arg1, _NSRange arg2, - ffi.Pointer arg3) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - _NSRange arg2, - ffi.Pointer arg3)>( - _ObjCBlock13_closureTrampoline) - .cast(), - _ObjCBlock13_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, _NSRange arg1, _NSRange arg2, - ffi.Pointer arg3) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - _NSRange arg2, - ffi.Pointer arg3)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - _NSRange arg2, - ffi.Pointer arg3)>()(_id, arg0, arg1, arg2, arg3); + static NSOrderedSet orderedSetWithObject_( + PedometerBindings _lib, NSObject object) { + final _ret = _lib._objc_msgSend_115(_lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithObject_1, object._id); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); } - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -void _ObjCBlock14_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock14_closureRegistry = {}; -int _ObjCBlock14_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock14_registerClosure(Function fn) { - final id = ++_ObjCBlock14_closureRegistryIndex; - _ObjCBlock14_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock14_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock14_closureRegistry[block.ref.target.address]!(arg0, arg1); -} + static NSOrderedSet orderedSetWithObjects_count_(PedometerBindings _lib, + ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_58(_lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithObjects_count_1, objects, cnt); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } -class ObjCBlock14 extends _ObjCBlockBase { - ObjCBlock14._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); + static NSOrderedSet orderedSetWithObjects_( + PedometerBindings _lib, NSObject firstObj) { + final _ret = _lib._objc_msgSend_115(_lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithObjects_1, firstObj._id); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a C function pointer. - ObjCBlock14.fromFunctionPointer( - PedometerBindings lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock14_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + static NSOrderedSet orderedSetWithOrderedSet_( + PedometerBindings _lib, NSOrderedSet set) { + final _ret = _lib._objc_msgSend_439(_lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithOrderedSet_1, set._id); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a Dart function. - ObjCBlock14.fromFunction( - PedometerBindings lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock14_closureTrampoline) - .cast(), - _ObjCBlock14_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); + static NSOrderedSet orderedSetWithOrderedSet_range_copyItems_( + PedometerBindings _lib, NSOrderedSet set, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_440( + _lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithOrderedSet_range_copyItems_1, + set._id, + range, + flag); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); } - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + static NSOrderedSet orderedSetWithArray_( + PedometerBindings _lib, NSArray array) { + final _ret = _lib._objc_msgSend_116( + _lib._class_NSOrderedSet1, _lib._sel_orderedSetWithArray_1, array._id); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } -abstract class NSStringEncodingConversionOptions { - static const int NSStringEncodingConversionAllowLossy = 1; - static const int NSStringEncodingConversionExternalRepresentation = 2; -} + static NSOrderedSet orderedSetWithArray_range_copyItems_( + PedometerBindings _lib, NSArray array, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_441( + _lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithArray_range_copyItems_1, + array._id, + range, + flag); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); + } -void _ObjCBlock15_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.UnsignedLong arg1)>>() - .asFunction< - void Function( - ffi.Pointer arg0, int arg1)>()(arg0, arg1); -} + static NSOrderedSet orderedSetWithSet_(PedometerBindings _lib, NSSet set) { + final _ret = _lib._objc_msgSend_362( + _lib._class_NSOrderedSet1, _lib._sel_orderedSetWithSet_1, set._id); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } -final _ObjCBlock15_closureRegistry = {}; -int _ObjCBlock15_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock15_registerClosure(Function fn) { - final id = ++_ObjCBlock15_closureRegistryIndex; - _ObjCBlock15_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + static NSOrderedSet orderedSetWithSet_copyItems_( + PedometerBindings _lib, NSSet set, bool flag) { + final _ret = _lib._objc_msgSend_363(_lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithSet_copyItems_1, set._id, flag); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); + } -void _ObjCBlock15_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1) { - return _ObjCBlock15_closureRegistry[block.ref.target.address]!(arg0, arg1); -} + NSOrderedSet initWithObject_(NSObject object) { + final _ret = + _lib._objc_msgSend_115(_id, _lib._sel_initWithObject_1, object._id); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } -class ObjCBlock15 extends _ObjCBlockBase { - ObjCBlock15._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); + NSOrderedSet initWithObjects_(NSObject firstObj) { + final _ret = + _lib._objc_msgSend_115(_id, _lib._sel_initWithObjects_1, firstObj._id); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a C function pointer. - ObjCBlock15.fromFunctionPointer( - PedometerBindings lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.UnsignedLong arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1)>( - _ObjCBlock15_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + NSOrderedSet initWithOrderedSet_(NSOrderedSet set) { + final _ret = + _lib._objc_msgSend_439(_id, _lib._sel_initWithOrderedSet_1, set._id); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a Dart function. - ObjCBlock15.fromFunction(PedometerBindings lib, - void Function(ffi.Pointer arg0, int arg1) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1)>( - _ObjCBlock15_closureTrampoline) - .cast(), - _ObjCBlock15_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, int arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - int arg1)>()(_id, arg0, arg1); + NSOrderedSet initWithOrderedSet_copyItems_(NSOrderedSet set, bool flag) { + final _ret = _lib._objc_msgSend_442( + _id, _lib._sel_initWithOrderedSet_copyItems_1, set._id, flag); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); } - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + NSOrderedSet initWithOrderedSet_range_copyItems_( + NSOrderedSet set, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_440(_id, + _lib._sel_initWithOrderedSet_range_copyItems_1, set._id, range, flag); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); + } -abstract class NSLinguisticTaggerOptions { - static const int NSLinguisticTaggerOmitWords = 1; - static const int NSLinguisticTaggerOmitPunctuation = 2; - static const int NSLinguisticTaggerOmitWhitespace = 4; - static const int NSLinguisticTaggerOmitOther = 8; - static const int NSLinguisticTaggerJoinNames = 16; -} + NSOrderedSet initWithArray_(NSArray array) { + final _ret = + _lib._objc_msgSend_116(_id, _lib._sel_initWithArray_1, array._id); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } -class NSOrthography extends NSObject { - NSOrthography._(ffi.Pointer id, PedometerBindings lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSOrderedSet initWithArray_copyItems_(NSArray set, bool flag) { + final _ret = _lib._objc_msgSend_117( + _id, _lib._sel_initWithArray_copyItems_1, set._id, flag); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); + } - /// Returns a [NSOrthography] that points to the same underlying object as [other]. - static NSOrthography castFrom(T other) { - return NSOrthography._(other._id, other._lib, retain: true, release: true); + NSOrderedSet initWithArray_range_copyItems_( + NSArray set, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_441( + _id, _lib._sel_initWithArray_range_copyItems_1, set._id, range, flag); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); } - /// Returns a [NSOrthography] that wraps the given raw object pointer. - static NSOrthography castFromPointer( - PedometerBindings lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSOrthography._(other, lib, retain: retain, release: release); + NSOrderedSet initWithSet_(NSSet set) { + final _ret = _lib._objc_msgSend_362(_id, _lib._sel_initWithSet_1, set._id); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); } - /// Returns whether [obj] is an instance of [NSOrthography]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSOrthography1); + NSOrderedSet initWithSet_copyItems_(NSSet set, bool flag) { + final _ret = _lib._objc_msgSend_363( + _id, _lib._sel_initWithSet_copyItems_1, set._id, flag); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); } - NSString? get dominantScript { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_dominantScript1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSObject differenceFromOrderedSet_withOptions_usingEquivalenceTest_( + NSOrderedSet other, + int options, + ObjCBlock_bool_ObjCObject_ObjCObject block) { + final _ret = _lib._objc_msgSend_443( + _id, + _lib._sel_differenceFromOrderedSet_withOptions_usingEquivalenceTest_1, + other._id, + options, + block._id); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSDictionary? get languageMap { - final _ret = _lib._objc_msgSend_324(_id, _lib._sel_languageMap1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + NSObject differenceFromOrderedSet_withOptions_( + NSOrderedSet other, int options) { + final _ret = _lib._objc_msgSend_444(_id, + _lib._sel_differenceFromOrderedSet_withOptions_1, other._id, options); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSOrthography initWithDominantScript_languageMap_( - NSString? script, NSDictionary? map) { - final _ret = _lib._objc_msgSend_332( - _id, - _lib._sel_initWithDominantScript_languageMap_1, - script?._id ?? ffi.nullptr, - map?._id ?? ffi.nullptr); - return NSOrthography._(_ret, _lib, retain: true, release: true); + NSObject differenceFromOrderedSet_(NSOrderedSet other) { + final _ret = _lib._objc_msgSend_439( + _id, _lib._sel_differenceFromOrderedSet_1, other._id); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSOrthography initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSOrthography._(_ret, _lib, retain: true, release: true); + NSOrderedSet? orderedSetByApplyingDifference_(NSObject difference) { + final _ret = _lib._objc_msgSend_445( + _id, _lib._sel_orderedSetByApplyingDifference_1, difference._id); + return _ret.address == 0 + ? null + : NSOrderedSet._(_ret, _lib, retain: true, release: true); } - NSArray languagesForScript_(NSString? script) { - final _ret = _lib._objc_msgSend_115( - _id, _lib._sel_languagesForScript_1, script?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSObject valueForKey_(NSString key) { + final _ret = _lib._objc_msgSend_31(_id, _lib._sel_valueForKey_1, key._id); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSString dominantLanguageForScript_(NSString? script) { - final _ret = _lib._objc_msgSend_56( - _id, _lib._sel_dominantLanguageForScript_1, script?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + @override + void setValue_forKey_(NSObject? value, NSString key) { + _lib._objc_msgSend_126( + _id, _lib._sel_setValue_forKey_1, value?._id ?? ffi.nullptr, key._id); } - NSString? get dominantLanguage { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_dominantLanguage1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + @override + void addObserver_forKeyPath_options_context_(NSObject observer, + NSString keyPath, int options, ffi.Pointer context) { + _lib._objc_msgSend_130( + _id, + _lib._sel_addObserver_forKeyPath_options_context_1, + observer._id, + keyPath._id, + options, + context); } - NSArray? get allScripts { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_allScripts1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + @override + void removeObserver_forKeyPath_context_( + NSObject observer, NSString keyPath, ffi.Pointer context) { + _lib._objc_msgSend_131(_id, _lib._sel_removeObserver_forKeyPath_context_1, + observer._id, keyPath._id, context); } - NSArray? get allLanguages { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_allLanguages1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + @override + void removeObserver_forKeyPath_(NSObject observer, NSString keyPath) { + _lib._objc_msgSend_132( + _id, _lib._sel_removeObserver_forKeyPath_1, observer._id, keyPath._id); } - static NSOrthography defaultOrthographyForLanguage_( - PedometerBindings _lib, NSString? language) { - final _ret = _lib._objc_msgSend_30( - _lib._class_NSOrthography1, - _lib._sel_defaultOrthographyForLanguage_1, - language?._id ?? ffi.nullptr); - return NSOrthography._(_ret, _lib, retain: true, release: true); + NSArray sortedArrayUsingDescriptors_(NSArray sortDescriptors) { + final _ret = _lib._objc_msgSend_60( + _id, _lib._sel_sortedArrayUsingDescriptors_1, sortDescriptors._id); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSOrthography orthographyWithDominantScript_languageMap_( - PedometerBindings _lib, NSString? script, NSDictionary? map) { - final _ret = _lib._objc_msgSend_332( - _lib._class_NSOrthography1, - _lib._sel_orthographyWithDominantScript_languageMap_1, - script?._id ?? ffi.nullptr, - map?._id ?? ffi.nullptr); - return NSOrthography._(_ret, _lib, retain: true, release: true); + NSOrderedSet filteredOrderedSetUsingPredicate_(NSPredicate p) { + final _ret = _lib._objc_msgSend_446( + _id, _lib._sel_filteredOrderedSetUsingPredicate_1, p._id); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); } - static NSOrthography new1(PedometerBindings _lib) { + static NSOrderedSet new1(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSOrthography1, _lib._sel_new1); - return NSOrthography._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSOrderedSet1, _lib._sel_new1); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); } - static NSOrthography alloc(PedometerBindings _lib) { + static NSOrderedSet allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSOrderedSet1, _lib._sel_allocWithZone_1, zone); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); + } + + static NSOrderedSet alloc(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSOrthography1, _lib._sel_alloc1); - return NSOrthography._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSOrderedSet1, _lib._sel_alloc1); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSOrthography1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSOrderedSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSOrthography1, + _lib._objc_msgSend_15(_lib._class_NSOrderedSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSOrthography1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSOrderedSet1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSOrthography1, _lib._sel_useStoredAccessor1); + _lib._class_NSOrderedSet1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSOrthography1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSOrderedSet1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSOrthography1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSOrthography1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSOrderedSet1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSOrthography1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_NSOrderedSet1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSOrthography1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSOrderedSet1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -void _ObjCBlock16_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock16_closureRegistry = {}; -int _ObjCBlock16_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock16_registerClosure(Function fn) { - final id = ++_ObjCBlock16_closureRegistryIndex; - _ObjCBlock16_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock16_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock16_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock16 extends _ObjCBlockBase { - ObjCBlock16._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock16.fromFunctionPointer( - PedometerBindings lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock16_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock16.fromFunction( - PedometerBindings lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock16_closureTrampoline) - .cast(), - _ObjCBlock16_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -bool _ObjCBlock17_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, ffi.Pointer arg1)>>() - .asFunction< - bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock17_closureRegistry = {}; -int _ObjCBlock17_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock17_registerClosure(Function fn) { - final id = ++_ObjCBlock17_closureRegistryIndex; - _ObjCBlock17_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -bool _ObjCBlock17_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock17_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock17 extends _ObjCBlockBase { - ObjCBlock17._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock17.fromFunctionPointer( - PedometerBindings lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock17_fnPtrTrampoline, false) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock17.fromFunction( - PedometerBindings lib, - bool Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock17_closureTrampoline, false) - .cast(), - _ObjCBlock17_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - bool call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -class NSFileManager extends NSObject { - NSFileManager._(ffi.Pointer id, PedometerBindings lib, +/// Mutable Set +class NSMutableSet extends NSSet { + NSMutableSet._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSFileManager] that points to the same underlying object as [other]. - static NSFileManager castFrom(T other) { - return NSFileManager._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSMutableSet] that points to the same underlying object as [other]. + static NSMutableSet castFrom(T other) { + return NSMutableSet._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSFileManager] that wraps the given raw object pointer. - static NSFileManager castFromPointer( + /// Returns a [NSMutableSet] that wraps the given raw object pointer. + static NSMutableSet castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSFileManager._(other, lib, retain: retain, release: release); + return NSMutableSet._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSFileManager]. + /// Returns whether [obj] is an instance of [NSMutableSet]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSFileManager1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSMutableSet1); } - static NSFileManager? getDefaultManager(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_363( - _lib._class_NSFileManager1, _lib._sel_defaultManager1); + void addObject_(NSObject object) { + _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, object._id); + } + + void removeObject_(NSObject object) { + _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, object._id); + } + + @override + NSMutableSet? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); return _ret.address == 0 ? null - : NSFileManager._(_ret, _lib, retain: true, release: true); + : NSMutableSet._(_ret, _lib, retain: true, release: true); } - NSArray mountedVolumeURLsIncludingResourceValuesForKeys_options_( - NSArray? propertyKeys, int options) { - final _ret = _lib._objc_msgSend_364( - _id, - _lib._sel_mountedVolumeURLsIncludingResourceValuesForKeys_options_1, - propertyKeys?._id ?? ffi.nullptr, - options); - return NSArray._(_ret, _lib, retain: true, release: true); + @override + NSMutableSet init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - void unmountVolumeAtURL_options_completionHandler_( - NSURL? url, int mask, ObjCBlock18 completionHandler) { - return _lib._objc_msgSend_365( - _id, - _lib._sel_unmountVolumeAtURL_options_completionHandler_1, - url?._id ?? ffi.nullptr, - mask, - completionHandler._id); + NSMutableSet initWithCapacity_(int numItems) { + final _ret = + _lib._objc_msgSend_57(_id, _lib._sel_initWithCapacity_1, numItems); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - NSArray contentsOfDirectoryAtURL_includingPropertiesForKeys_options_error_( - NSURL? url, - NSArray? keys, - int mask, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_366( - _id, - _lib._sel_contentsOfDirectoryAtURL_includingPropertiesForKeys_options_error_1, - url?._id ?? ffi.nullptr, - keys?._id ?? ffi.nullptr, - mask, - error); - return NSArray._(_ret, _lib, retain: true, release: true); + void addObjectsFromArray_(NSArray array) { + _lib._objc_msgSend_419(_id, _lib._sel_addObjectsFromArray_1, array._id); } - NSArray URLsForDirectory_inDomains_(int directory, int domainMask) { - final _ret = _lib._objc_msgSend_367( - _id, _lib._sel_URLsForDirectory_inDomains_1, directory, domainMask); - return NSArray._(_ret, _lib, retain: true, release: true); + void intersectSet_(NSSet otherSet) { + _lib._objc_msgSend_451(_id, _lib._sel_intersectSet_1, otherSet._id); } - NSURL URLForDirectory_inDomain_appropriateForURL_create_error_( - int directory, - int domain, - NSURL? url, - bool shouldCreate, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_368( - _id, - _lib._sel_URLForDirectory_inDomain_appropriateForURL_create_error_1, - directory, - domain, - url?._id ?? ffi.nullptr, - shouldCreate, - error); - return NSURL._(_ret, _lib, retain: true, release: true); + void minusSet_(NSSet otherSet) { + _lib._objc_msgSend_451(_id, _lib._sel_minusSet_1, otherSet._id); } - bool getRelationship_ofDirectoryAtURL_toItemAtURL_error_( - ffi.Pointer outRelationship, - NSURL? directoryURL, - NSURL? otherURL, - ffi.Pointer> error) { - return _lib._objc_msgSend_369( - _id, - _lib._sel_getRelationship_ofDirectoryAtURL_toItemAtURL_error_1, - outRelationship, - directoryURL?._id ?? ffi.nullptr, - otherURL?._id ?? ffi.nullptr, - error); + void removeAllObjects() { + _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); } - bool getRelationship_ofDirectory_inDomain_toItemAtURL_error_( - ffi.Pointer outRelationship, - int directory, - int domainMask, - NSURL? url, - ffi.Pointer> error) { - return _lib._objc_msgSend_370( - _id, - _lib._sel_getRelationship_ofDirectory_inDomain_toItemAtURL_error_1, - outRelationship, - directory, - domainMask, - url?._id ?? ffi.nullptr, - error); + void unionSet_(NSSet otherSet) { + _lib._objc_msgSend_451(_id, _lib._sel_unionSet_1, otherSet._id); } - bool createDirectoryAtURL_withIntermediateDirectories_attributes_error_( - NSURL? url, - bool createIntermediates, - NSDictionary? attributes, - ffi.Pointer> error) { - return _lib._objc_msgSend_371( - _id, - _lib._sel_createDirectoryAtURL_withIntermediateDirectories_attributes_error_1, - url?._id ?? ffi.nullptr, - createIntermediates, - attributes?._id ?? ffi.nullptr, - error); + void setSet_(NSSet otherSet) { + _lib._objc_msgSend_451(_id, _lib._sel_setSet_1, otherSet._id); } - bool createSymbolicLinkAtURL_withDestinationURL_error_( - NSURL? url, NSURL? destURL, ffi.Pointer> error) { - return _lib._objc_msgSend_372( - _id, - _lib._sel_createSymbolicLinkAtURL_withDestinationURL_error_1, - url?._id ?? ffi.nullptr, - destURL?._id ?? ffi.nullptr, - error); + static NSMutableSet setWithCapacity_(PedometerBindings _lib, int numItems) { + final _ret = _lib._objc_msgSend_57( + _lib._class_NSMutableSet1, _lib._sel_setWithCapacity_1, numItems); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); + void filterUsingPredicate_(NSPredicate predicate) { + _lib._objc_msgSend_434( + _id, _lib._sel_filterUsingPredicate_1, predicate._id); } - set delegate(NSObject? value) { - _lib._objc_msgSend_348( - _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); + @override + NSMutableSet initWithObjects_count_( + ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_58( + _id, _lib._sel_initWithObjects_count_1, objects, cnt); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - bool setAttributes_ofItemAtPath_error_(NSDictionary? attributes, - NSString? path, ffi.Pointer> error) { - return _lib._objc_msgSend_373( - _id, - _lib._sel_setAttributes_ofItemAtPath_error_1, - attributes?._id ?? ffi.nullptr, - path?._id ?? ffi.nullptr, - error); + static NSMutableSet set1(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableSet1, _lib._sel_set1); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - bool createDirectoryAtPath_withIntermediateDirectories_attributes_error_( - NSString? path, - bool createIntermediates, - NSDictionary? attributes, - ffi.Pointer> error) { - return _lib._objc_msgSend_374( - _id, - _lib._sel_createDirectoryAtPath_withIntermediateDirectories_attributes_error_1, - path?._id ?? ffi.nullptr, - createIntermediates, - attributes?._id ?? ffi.nullptr, - error); + static NSMutableSet setWithObject_(PedometerBindings _lib, NSObject object) { + final _ret = _lib._objc_msgSend_115( + _lib._class_NSMutableSet1, _lib._sel_setWithObject_1, object._id); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - NSArray contentsOfDirectoryAtPath_error_( - NSString? path, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_375( - _id, - _lib._sel_contentsOfDirectoryAtPath_error_1, - path?._id ?? ffi.nullptr, - error); - return NSArray._(_ret, _lib, retain: true, release: true); + static NSMutableSet setWithObjects_count_(PedometerBindings _lib, + ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_58(_lib._class_NSMutableSet1, + _lib._sel_setWithObjects_count_1, objects, cnt); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - NSArray subpathsOfDirectoryAtPath_error_( - NSString? path, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_375( - _id, - _lib._sel_subpathsOfDirectoryAtPath_error_1, - path?._id ?? ffi.nullptr, - error); - return NSArray._(_ret, _lib, retain: true, release: true); + static NSMutableSet setWithObjects_( + PedometerBindings _lib, NSObject firstObj) { + final _ret = _lib._objc_msgSend_115( + _lib._class_NSMutableSet1, _lib._sel_setWithObjects_1, firstObj._id); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - NSDictionary attributesOfItemAtPath_error_( - NSString? path, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_376( - _id, - _lib._sel_attributesOfItemAtPath_error_1, - path?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); + static NSMutableSet setWithSet_(PedometerBindings _lib, NSSet set) { + final _ret = _lib._objc_msgSend_362( + _lib._class_NSMutableSet1, _lib._sel_setWithSet_1, set._id); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - NSDictionary attributesOfFileSystemForPath_error_( - NSString? path, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_376( - _id, - _lib._sel_attributesOfFileSystemForPath_error_1, - path?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); + static NSMutableSet setWithArray_(PedometerBindings _lib, NSArray array) { + final _ret = _lib._objc_msgSend_116( + _lib._class_NSMutableSet1, _lib._sel_setWithArray_1, array._id); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - bool createSymbolicLinkAtPath_withDestinationPath_error_(NSString? path, - NSString? destPath, ffi.Pointer> error) { - return _lib._objc_msgSend_377( - _id, - _lib._sel_createSymbolicLinkAtPath_withDestinationPath_error_1, - path?._id ?? ffi.nullptr, - destPath?._id ?? ffi.nullptr, - error); + @override + NSMutableSet initWithObjects_(NSObject firstObj) { + final _ret = + _lib._objc_msgSend_115(_id, _lib._sel_initWithObjects_1, firstObj._id); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - NSString destinationOfSymbolicLinkAtPath_error_( - NSString? path, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_378( - _id, - _lib._sel_destinationOfSymbolicLinkAtPath_error_1, - path?._id ?? ffi.nullptr, - error); - return NSString._(_ret, _lib, retain: true, release: true); + @override + NSMutableSet initWithSet_(NSSet set) { + final _ret = _lib._objc_msgSend_362(_id, _lib._sel_initWithSet_1, set._id); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - bool copyItemAtPath_toPath_error_(NSString? srcPath, NSString? dstPath, - ffi.Pointer> error) { - return _lib._objc_msgSend_377(_id, _lib._sel_copyItemAtPath_toPath_error_1, - srcPath?._id ?? ffi.nullptr, dstPath?._id ?? ffi.nullptr, error); + @override + NSMutableSet initWithSet_copyItems_(NSSet set, bool flag) { + final _ret = _lib._objc_msgSend_363( + _id, _lib._sel_initWithSet_copyItems_1, set._id, flag); + return NSMutableSet._(_ret, _lib, retain: false, release: true); } - bool moveItemAtPath_toPath_error_(NSString? srcPath, NSString? dstPath, - ffi.Pointer> error) { - return _lib._objc_msgSend_377(_id, _lib._sel_moveItemAtPath_toPath_error_1, - srcPath?._id ?? ffi.nullptr, dstPath?._id ?? ffi.nullptr, error); + @override + NSMutableSet initWithArray_(NSArray array) { + final _ret = + _lib._objc_msgSend_116(_id, _lib._sel_initWithArray_1, array._id); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - bool linkItemAtPath_toPath_error_(NSString? srcPath, NSString? dstPath, - ffi.Pointer> error) { - return _lib._objc_msgSend_377(_id, _lib._sel_linkItemAtPath_toPath_error_1, - srcPath?._id ?? ffi.nullptr, dstPath?._id ?? ffi.nullptr, error); + static NSMutableSet new1(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableSet1, _lib._sel_new1); + return NSMutableSet._(_ret, _lib, retain: false, release: true); } - bool removeItemAtPath_error_( - NSString? path, ffi.Pointer> error) { - return _lib._objc_msgSend_379(_id, _lib._sel_removeItemAtPath_error_1, - path?._id ?? ffi.nullptr, error); + static NSMutableSet allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSMutableSet1, _lib._sel_allocWithZone_1, zone); + return NSMutableSet._(_ret, _lib, retain: false, release: true); } - bool copyItemAtURL_toURL_error_(NSURL? srcURL, NSURL? dstURL, - ffi.Pointer> error) { - return _lib._objc_msgSend_372(_id, _lib._sel_copyItemAtURL_toURL_error_1, - srcURL?._id ?? ffi.nullptr, dstURL?._id ?? ffi.nullptr, error); + static NSMutableSet alloc(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableSet1, _lib._sel_alloc1); + return NSMutableSet._(_ret, _lib, retain: false, release: true); } - bool moveItemAtURL_toURL_error_(NSURL? srcURL, NSURL? dstURL, - ffi.Pointer> error) { - return _lib._objc_msgSend_372(_id, _lib._sel_moveItemAtURL_toURL_error_1, - srcURL?._id ?? ffi.nullptr, dstURL?._id ?? ffi.nullptr, error); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + PedometerBindings _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSMutableSet1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument?._id ?? ffi.nullptr); } - bool linkItemAtURL_toURL_error_(NSURL? srcURL, NSURL? dstURL, - ffi.Pointer> error) { - return _lib._objc_msgSend_372(_id, _lib._sel_linkItemAtURL_toURL_error_1, - srcURL?._id ?? ffi.nullptr, dstURL?._id ?? ffi.nullptr, error); + static void cancelPreviousPerformRequestsWithTarget_( + PedometerBindings _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSMutableSet1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - bool removeItemAtURL_error_( - NSURL? URL, ffi.Pointer> error) { - return _lib._objc_msgSend_75( - _id, _lib._sel_removeItemAtURL_error_1, URL?._id ?? ffi.nullptr, error); + static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMutableSet1, _lib._sel_accessInstanceVariablesDirectly1); } - bool trashItemAtURL_resultingItemURL_error_( - NSURL? url, - ffi.Pointer> outResultingURL, - ffi.Pointer> error) { - return _lib._objc_msgSend_380( - _id, - _lib._sel_trashItemAtURL_resultingItemURL_error_1, - url?._id ?? ffi.nullptr, - outResultingURL, - error); + static bool useStoredAccessor(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMutableSet1, _lib._sel_useStoredAccessor1); } - NSDictionary fileAttributesAtPath_traverseLink_(NSString? path, bool yorn) { - final _ret = _lib._objc_msgSend_381( - _id, - _lib._sel_fileAttributesAtPath_traverseLink_1, - path?._id ?? ffi.nullptr, - yorn); - return NSDictionary._(_ret, _lib, retain: true, release: true); + static NSSet keyPathsForValuesAffectingValueForKey_( + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSMutableSet1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); + return NSSet._(_ret, _lib, retain: true, release: true); } - bool changeFileAttributes_atPath_(NSDictionary? attributes, NSString? path) { - return _lib._objc_msgSend_382(_id, _lib._sel_changeFileAttributes_atPath_1, - attributes?._id ?? ffi.nullptr, path?._id ?? ffi.nullptr); + static bool automaticallyNotifiesObserversForKey_( + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSMutableSet1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } - NSArray directoryContentsAtPath_(NSString? path) { - final _ret = _lib._objc_msgSend_115( - _id, _lib._sel_directoryContentsAtPath_1, path?._id ?? ffi.nullptr); + static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77( + _lib._class_NSMutableSet1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } - NSDictionary fileSystemAttributesAtPath_(NSString? path) { - final _ret = _lib._objc_msgSend_138( - _id, _lib._sel_fileSystemAttributesAtPath_1, path?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableSet1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - NSString pathContentOfSymbolicLinkAtPath_(NSString? path) { - final _ret = _lib._objc_msgSend_56(_id, - _lib._sel_pathContentOfSymbolicLinkAtPath_1, path?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } +abstract class NSKeyValueChange { + static const int NSKeyValueChangeSetting = 1; + static const int NSKeyValueChangeInsertion = 2; + static const int NSKeyValueChangeRemoval = 3; + static const int NSKeyValueChangeReplacement = 4; +} - bool createSymbolicLinkAtPath_pathContent_( - NSString? path, NSString? otherpath) { - return _lib._objc_msgSend_383( - _id, - _lib._sel_createSymbolicLinkAtPath_pathContent_1, - path?._id ?? ffi.nullptr, - otherpath?._id ?? ffi.nullptr); - } +abstract class NSKeyValueSetMutationKind { + static const int NSKeyValueUnionSetMutation = 1; + static const int NSKeyValueMinusSetMutation = 2; + static const int NSKeyValueIntersectSetMutation = 3; + static const int NSKeyValueSetSetMutation = 4; +} - bool createDirectoryAtPath_attributes_( - NSString? path, NSDictionary? attributes) { - return _lib._objc_msgSend_384( - _id, - _lib._sel_createDirectoryAtPath_attributes_1, - path?._id ?? ffi.nullptr, - attributes?._id ?? ffi.nullptr); - } +class NSKeyedArchiver extends NSCoder { + NSKeyedArchiver._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - bool linkPath_toPath_handler_( - NSString? src, NSString? dest, NSObject handler) { - return _lib._objc_msgSend_385(_id, _lib._sel_linkPath_toPath_handler_1, - src?._id ?? ffi.nullptr, dest?._id ?? ffi.nullptr, handler._id); + /// Returns a [NSKeyedArchiver] that points to the same underlying object as [other]. + static NSKeyedArchiver castFrom(T other) { + return NSKeyedArchiver._(other._id, other._lib, + retain: true, release: true); } - bool copyPath_toPath_handler_( - NSString? src, NSString? dest, NSObject handler) { - return _lib._objc_msgSend_385(_id, _lib._sel_copyPath_toPath_handler_1, - src?._id ?? ffi.nullptr, dest?._id ?? ffi.nullptr, handler._id); + /// Returns a [NSKeyedArchiver] that wraps the given raw object pointer. + static NSKeyedArchiver castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSKeyedArchiver._(other, lib, retain: retain, release: release); } - bool movePath_toPath_handler_( - NSString? src, NSString? dest, NSObject handler) { - return _lib._objc_msgSend_385(_id, _lib._sel_movePath_toPath_handler_1, - src?._id ?? ffi.nullptr, dest?._id ?? ffi.nullptr, handler._id); + /// Returns whether [obj] is an instance of [NSKeyedArchiver]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSKeyedArchiver1); } - bool removeFileAtPath_handler_(NSString? path, NSObject handler) { - return _lib._objc_msgSend_386(_id, _lib._sel_removeFileAtPath_handler_1, - path?._id ?? ffi.nullptr, handler._id); + /// Initializes the receiver for encoding an archive, optionally disabling secure coding. + /// + /// If \c NSSecureCoding cannot be used, \c requiresSecureCoding may be turned off here; for improved security, however, \c requiresSecureCoding should be left enabled whenever possible. \c requiresSecureCoding ensures that all encoded objects conform to \c NSSecureCoding, preventing the possibility of encoding objects which cannot be decoded later. + /// + /// To produce archives whose structure matches those previously encoded using \c +archivedDataWithRootObject, encode the top-level object in your archive for the \c NSKeyedArchiveRootObjectKey. + NSKeyedArchiver initRequiringSecureCoding_(bool requiresSecureCoding) { + final _ret = _lib._objc_msgSend_461( + _id, _lib._sel_initRequiringSecureCoding_1, requiresSecureCoding); + return NSKeyedArchiver._(_ret, _lib, retain: true, release: true); } - NSString? get currentDirectoryPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currentDirectoryPath1); + /// Returns an \c NSData object containing the encoded form of the object graph whose root object is given, optionally disabling secure coding. + /// + /// If \c NSSecureCoding cannot be used, \c requiresSecureCoding may be turned off here; for improved security, however, \c requiresSecureCoding should be left enabled whenever possible. \c requiresSecureCoding ensures that all encoded objects conform to \c NSSecureCoding, preventing the possibility of encoding objects which cannot be decoded later. + /// + /// If the object graph cannot be encoded, returns \c nil and sets the \c error out parameter. + static NSData? archivedDataWithRootObject_requiringSecureCoding_error_( + PedometerBindings _lib, + NSObject object, + bool requiresSecureCoding, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_462( + _lib._class_NSKeyedArchiver1, + _lib._sel_archivedDataWithRootObject_requiringSecureCoding_error_1, + object._id, + requiresSecureCoding, + error); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - bool changeCurrentDirectoryPath_(NSString? path) { - return _lib._objc_msgSend_51( - _id, _lib._sel_changeCurrentDirectoryPath_1, path?._id ?? ffi.nullptr); - } - - bool fileExistsAtPath_(NSString? path) { - return _lib._objc_msgSend_51( - _id, _lib._sel_fileExistsAtPath_1, path?._id ?? ffi.nullptr); - } - - bool fileExistsAtPath_isDirectory_( - NSString? path, ffi.Pointer isDirectory) { - return _lib._objc_msgSend_387(_id, _lib._sel_fileExistsAtPath_isDirectory_1, - path?._id ?? ffi.nullptr, isDirectory); - } - - bool isReadableFileAtPath_(NSString? path) { - return _lib._objc_msgSend_51( - _id, _lib._sel_isReadableFileAtPath_1, path?._id ?? ffi.nullptr); - } - - bool isWritableFileAtPath_(NSString? path) { - return _lib._objc_msgSend_51( - _id, _lib._sel_isWritableFileAtPath_1, path?._id ?? ffi.nullptr); - } - - bool isExecutableFileAtPath_(NSString? path) { - return _lib._objc_msgSend_51( - _id, _lib._sel_isExecutableFileAtPath_1, path?._id ?? ffi.nullptr); - } - - bool isDeletableFileAtPath_(NSString? path) { - return _lib._objc_msgSend_51( - _id, _lib._sel_isDeletableFileAtPath_1, path?._id ?? ffi.nullptr); + : NSData._(_ret, _lib, retain: true, release: true); } - bool contentsEqualAtPath_andPath_(NSString? path1, NSString? path2) { - return _lib._objc_msgSend_383(_id, _lib._sel_contentsEqualAtPath_andPath_1, - path1?._id ?? ffi.nullptr, path2?._id ?? ffi.nullptr); + /// Initialize the archiver with empty data, ready for writing. + @override + NSKeyedArchiver init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSKeyedArchiver._(_ret, _lib, retain: true, release: true); } - NSString displayNameAtPath_(NSString? path) { - final _ret = _lib._objc_msgSend_56( - _id, _lib._sel_displayNameAtPath_1, path?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSKeyedArchiver initForWritingWithMutableData_(NSMutableData data) { + final _ret = _lib._objc_msgSend_468( + _id, _lib._sel_initForWritingWithMutableData_1, data._id); + return NSKeyedArchiver._(_ret, _lib, retain: true, release: true); } - NSArray componentsToDisplayForPath_(NSString? path) { - final _ret = _lib._objc_msgSend_115( - _id, _lib._sel_componentsToDisplayForPath_1, path?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + static NSData archivedDataWithRootObject_( + PedometerBindings _lib, NSObject rootObject) { + final _ret = _lib._objc_msgSend_469(_lib._class_NSKeyedArchiver1, + _lib._sel_archivedDataWithRootObject_1, rootObject._id); + return NSData._(_ret, _lib, retain: true, release: true); } - NSObject enumeratorAtPath_(NSString? path) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_enumeratorAtPath_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static bool archiveRootObject_toFile_( + PedometerBindings _lib, NSObject rootObject, NSString path) { + return _lib._objc_msgSend_470(_lib._class_NSKeyedArchiver1, + _lib._sel_archiveRootObject_toFile_1, rootObject._id, path._id); } - NSObject enumeratorAtURL_includingPropertiesForKeys_options_errorHandler_( - NSURL? url, NSArray? keys, int mask, ObjCBlock19 handler) { - final _ret = _lib._objc_msgSend_388( - _id, - _lib._sel_enumeratorAtURL_includingPropertiesForKeys_options_errorHandler_1, - url?._id ?? ffi.nullptr, - keys?._id ?? ffi.nullptr, - mask, - handler._id); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get delegate { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_delegate1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSArray subpathsAtPath_(NSString? path) { - final _ret = _lib._objc_msgSend_115( - _id, _lib._sel_subpathsAtPath_1, path?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + set delegate(NSObject? value) { + return _lib._objc_msgSend_367( + _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } - NSData contentsAtPath_(NSString? path) { - final _ret = _lib._objc_msgSend_389( - _id, _lib._sel_contentsAtPath_1, path?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); + int get outputFormat { + return _lib._objc_msgSend_471(_id, _lib._sel_outputFormat1); } - bool createFileAtPath_contents_attributes_( - NSString? path, NSData? data, NSDictionary? attr) { - return _lib._objc_msgSend_390( - _id, - _lib._sel_createFileAtPath_contents_attributes_1, - path?._id ?? ffi.nullptr, - data?._id ?? ffi.nullptr, - attr?._id ?? ffi.nullptr); + set outputFormat(int value) { + return _lib._objc_msgSend_472(_id, _lib._sel_setOutputFormat_1, value); } - ffi.Pointer fileSystemRepresentationWithPath_(NSString? path) { - return _lib._objc_msgSend_391(_id, - _lib._sel_fileSystemRepresentationWithPath_1, path?._id ?? ffi.nullptr); + /// If encoding has not yet finished, then invoking this property will call finishEncoding and return the data. If you initialized the keyed archiver with a specific mutable data instance, then it will be returned from this property after finishEncoding is called. + NSData get encodedData { + final _ret = _lib._objc_msgSend_43(_id, _lib._sel_encodedData1); + return NSData._(_ret, _lib, retain: true, release: true); } - NSString stringWithFileSystemRepresentation_length_( - ffi.Pointer str, int len) { - final _ret = _lib._objc_msgSend_392( - _id, _lib._sel_stringWithFileSystemRepresentation_length_1, str, len); - return NSString._(_ret, _lib, retain: true, release: true); + void finishEncoding() { + _lib._objc_msgSend_1(_id, _lib._sel_finishEncoding1); } - bool - replaceItemAtURL_withItemAtURL_backupItemName_options_resultingItemURL_error_( - NSURL? originalItemURL, - NSURL? newItemURL, - NSString? backupItemName, - int options, - ffi.Pointer> resultingURL, - ffi.Pointer> error) { - return _lib._objc_msgSend_393( - _id, - _lib._sel_replaceItemAtURL_withItemAtURL_backupItemName_options_resultingItemURL_error_1, - originalItemURL?._id ?? ffi.nullptr, - newItemURL?._id ?? ffi.nullptr, - backupItemName?._id ?? ffi.nullptr, - options, - resultingURL, - error); + static void setClassName_forClass_( + PedometerBindings _lib, NSString? codedName, NSObject cls) { + _lib._objc_msgSend_473( + _lib._class_NSKeyedArchiver1, + _lib._sel_setClassName_forClass_1, + codedName?._id ?? ffi.nullptr, + cls._id); } - bool setUbiquitous_itemAtURL_destinationURL_error_(bool flag, NSURL? url, - NSURL? destinationURL, ffi.Pointer> error) { - return _lib._objc_msgSend_394( - _id, - _lib._sel_setUbiquitous_itemAtURL_destinationURL_error_1, - flag, - url?._id ?? ffi.nullptr, - destinationURL?._id ?? ffi.nullptr, - error); + static NSString? classNameForClass_(PedometerBindings _lib, NSObject cls) { + final _ret = _lib._objc_msgSend_474( + _lib._class_NSKeyedArchiver1, _lib._sel_classNameForClass_1, cls._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - bool isUbiquitousItemAtURL_(NSURL? url) { - return _lib._objc_msgSend_395( - _id, _lib._sel_isUbiquitousItemAtURL_1, url?._id ?? ffi.nullptr); + @override + void encodeObject_forKey_(NSObject? object, NSString key) { + _lib._objc_msgSend_126(_id, _lib._sel_encodeObject_forKey_1, + object?._id ?? ffi.nullptr, key._id); } - bool startDownloadingUbiquitousItemAtURL_error_( - NSURL? url, ffi.Pointer> error) { - return _lib._objc_msgSend_75( - _id, - _lib._sel_startDownloadingUbiquitousItemAtURL_error_1, - url?._id ?? ffi.nullptr, - error); + @override + void encodeConditionalObject_forKey_(NSObject? object, NSString key) { + _lib._objc_msgSend_126(_id, _lib._sel_encodeConditionalObject_forKey_1, + object?._id ?? ffi.nullptr, key._id); } - bool evictUbiquitousItemAtURL_error_( - NSURL? url, ffi.Pointer> error) { - return _lib._objc_msgSend_75( - _id, - _lib._sel_evictUbiquitousItemAtURL_error_1, - url?._id ?? ffi.nullptr, - error); + @override + void encodeBool_forKey_(bool value, NSString key) { + _lib._objc_msgSend_237(_id, _lib._sel_encodeBool_forKey_1, value, key._id); } - NSURL URLForUbiquityContainerIdentifier_(NSString? containerIdentifier) { - final _ret = _lib._objc_msgSend_34( - _id, - _lib._sel_URLForUbiquityContainerIdentifier_1, - containerIdentifier?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + @override + void encodeInt_forKey_(int value, NSString key) { + _lib._objc_msgSend_238(_id, _lib._sel_encodeInt_forKey_1, value, key._id); } - NSURL URLForPublishingUbiquitousItemAtURL_expirationDate_error_( - NSURL? url, - ffi.Pointer> outDate, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_396( - _id, - _lib._sel_URLForPublishingUbiquitousItemAtURL_expirationDate_error_1, - url?._id ?? ffi.nullptr, - outDate, - error); - return NSURL._(_ret, _lib, retain: true, release: true); + @override + void encodeInt32_forKey_(int value, NSString key) { + _lib._objc_msgSend_239(_id, _lib._sel_encodeInt32_forKey_1, value, key._id); } - NSObject? get ubiquityIdentityToken { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_ubiquityIdentityToken1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); + @override + void encodeInt64_forKey_(int value, NSString key) { + _lib._objc_msgSend_240(_id, _lib._sel_encodeInt64_forKey_1, value, key._id); } - void getFileProviderServicesForItemAtURL_completionHandler_( - NSURL? url, ObjCBlock20 completionHandler) { - return _lib._objc_msgSend_397( - _id, - _lib._sel_getFileProviderServicesForItemAtURL_completionHandler_1, - url?._id ?? ffi.nullptr, - completionHandler._id); + @override + void encodeFloat_forKey_(double value, NSString key) { + _lib._objc_msgSend_241(_id, _lib._sel_encodeFloat_forKey_1, value, key._id); } - NSURL containerURLForSecurityApplicationGroupIdentifier_( - NSString? groupIdentifier) { - final _ret = _lib._objc_msgSend_34( - _id, - _lib._sel_containerURLForSecurityApplicationGroupIdentifier_1, - groupIdentifier?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + @override + void encodeDouble_forKey_(double value, NSString key) { + _lib._objc_msgSend_242( + _id, _lib._sel_encodeDouble_forKey_1, value, key._id); } - NSURL? get homeDirectoryForCurrentUser { - final _ret = - _lib._objc_msgSend_40(_id, _lib._sel_homeDirectoryForCurrentUser1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + @override + void encodeBytes_length_forKey_( + ffi.Pointer bytes, int length, NSString key) { + _lib._objc_msgSend_243( + _id, _lib._sel_encodeBytes_length_forKey_1, bytes, length, key._id); } - NSURL? get temporaryDirectory { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_temporaryDirectory1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + @override + bool get requiresSecureCoding { + return _lib._objc_msgSend_12(_id, _lib._sel_requiresSecureCoding1); } - NSURL homeDirectoryForUser_(NSString? userName) { - final _ret = _lib._objc_msgSend_34( - _id, _lib._sel_homeDirectoryForUser_1, userName?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + set requiresSecureCoding(bool value) { + return _lib._objc_msgSend_475( + _id, _lib._sel_setRequiresSecureCoding_1, value); } - static NSFileManager new1(PedometerBindings _lib) { + static NSKeyedArchiver new1(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSFileManager1, _lib._sel_new1); - return NSFileManager._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSKeyedArchiver1, _lib._sel_new1); + return NSKeyedArchiver._(_ret, _lib, retain: false, release: true); } - static NSFileManager alloc(PedometerBindings _lib) { + static NSKeyedArchiver allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSKeyedArchiver1, _lib._sel_allocWithZone_1, zone); + return NSKeyedArchiver._(_ret, _lib, retain: false, release: true); + } + + static NSKeyedArchiver alloc(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSFileManager1, _lib._sel_alloc1); - return NSFileManager._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSKeyedArchiver1, _lib._sel_alloc1); + return NSKeyedArchiver._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSFileManager1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSKeyedArchiver1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSFileManager1, + _lib._objc_msgSend_15(_lib._class_NSKeyedArchiver1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSFileManager1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSKeyedArchiver1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSFileManager1, _lib._sel_useStoredAccessor1); + _lib._class_NSKeyedArchiver1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSFileManager1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSKeyedArchiver1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSFileManager1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSFileManager1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSKeyedArchiver1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSFileManager1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77(_lib._class_NSKeyedArchiver1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSFileManager1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSKeyedArchiver1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSVolumeEnumerationOptions { - static const int NSVolumeEnumerationSkipHiddenVolumes = 2; - static const int NSVolumeEnumerationProduceFileReferenceURLs = 4; -} - -abstract class NSFileManagerUnmountOptions { - static const int NSFileManagerUnmountAllPartitionsAndEjectDisk = 1; - static const int NSFileManagerUnmountWithoutUI = 2; -} - -void _ObjCBlock18_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock18_closureRegistry = {}; -int _ObjCBlock18_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock18_registerClosure(Function fn) { - final id = ++_ObjCBlock18_closureRegistryIndex; - _ObjCBlock18_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock18_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock18_closureRegistry[block.ref.target.address]!(arg0); -} - -class ObjCBlock18 extends _ObjCBlockBase { - ObjCBlock18._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock18.fromFunctionPointer( - PedometerBindings lib, - ffi.Pointer< - ffi - .NativeFunction arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock18_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock18.fromFunction( - PedometerBindings lib, void Function(ffi.Pointer arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock18_closureTrampoline) - .cast(), - _ObjCBlock18_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -abstract class NSDirectoryEnumerationOptions { - static const int NSDirectoryEnumerationSkipsSubdirectoryDescendants = 1; - static const int NSDirectoryEnumerationSkipsPackageDescendants = 2; - static const int NSDirectoryEnumerationSkipsHiddenFiles = 4; - static const int NSDirectoryEnumerationIncludesDirectoriesPostOrder = 8; - static const int NSDirectoryEnumerationProducesRelativePathURLs = 16; -} - -abstract class NSSearchPathDirectory { - static const int NSApplicationDirectory = 1; - static const int NSDemoApplicationDirectory = 2; - static const int NSDeveloperApplicationDirectory = 3; - static const int NSAdminApplicationDirectory = 4; - static const int NSLibraryDirectory = 5; - static const int NSDeveloperDirectory = 6; - static const int NSUserDirectory = 7; - static const int NSDocumentationDirectory = 8; - static const int NSDocumentDirectory = 9; - static const int NSCoreServiceDirectory = 10; - static const int NSAutosavedInformationDirectory = 11; - static const int NSDesktopDirectory = 12; - static const int NSCachesDirectory = 13; - static const int NSApplicationSupportDirectory = 14; - static const int NSDownloadsDirectory = 15; - static const int NSInputMethodsDirectory = 16; - static const int NSMoviesDirectory = 17; - static const int NSMusicDirectory = 18; - static const int NSPicturesDirectory = 19; - static const int NSPrinterDescriptionDirectory = 20; - static const int NSSharedPublicDirectory = 21; - static const int NSPreferencePanesDirectory = 22; - static const int NSApplicationScriptsDirectory = 23; - static const int NSItemReplacementDirectory = 99; - static const int NSAllApplicationsDirectory = 100; - static const int NSAllLibrariesDirectory = 101; - static const int NSTrashDirectory = 102; -} - -abstract class NSSearchPathDomainMask { - static const int NSUserDomainMask = 1; - static const int NSLocalDomainMask = 2; - static const int NSNetworkDomainMask = 4; - static const int NSSystemDomainMask = 8; - static const int NSAllDomainsMask = 65535; -} - -abstract class NSURLRelationship { - static const int NSURLRelationshipContains = 0; - static const int NSURLRelationshipSame = 1; - static const int NSURLRelationshipOther = 2; -} - -bool _ObjCBlock19_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock19_closureRegistry = {}; -int _ObjCBlock19_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock19_registerClosure(Function fn) { - final id = ++_ObjCBlock19_closureRegistryIndex; - _ObjCBlock19_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -bool _ObjCBlock19_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock19_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock19 extends _ObjCBlockBase { - ObjCBlock19._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock19.fromFunctionPointer( - PedometerBindings lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) - : this._( - lib - ._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock19_fnPtrTrampoline, false) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock19.fromFunction( - PedometerBindings lib, - bool Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock19_closureTrampoline, false) - .cast(), - _ObjCBlock19_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - bool call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -abstract class NSFileManagerItemReplacementOptions { - static const int NSFileManagerItemReplacementUsingNewMetadataOnly = 1; - static const int NSFileManagerItemReplacementWithoutDeletingBackupItem = 2; -} - -void _ObjCBlock20_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock20_closureRegistry = {}; -int _ObjCBlock20_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock20_registerClosure(Function fn) { - final id = ++_ObjCBlock20_closureRegistryIndex; - _ObjCBlock20_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock20_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock20_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock20 extends _ObjCBlockBase { - ObjCBlock20._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock20.fromFunctionPointer( - PedometerBindings lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock20_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock20.fromFunction( - PedometerBindings lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock20_closureTrampoline) - .cast(), - _ObjCBlock20_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -/// Mutable Array -class NSMutableArray extends NSArray { - NSMutableArray._(ffi.Pointer id, PedometerBindings lib, +/// Mutable Data +class NSMutableData extends NSData { + NSMutableData._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSMutableArray] that points to the same underlying object as [other]. - static NSMutableArray castFrom(T other) { - return NSMutableArray._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSMutableData] that points to the same underlying object as [other]. + static NSMutableData castFrom(T other) { + return NSMutableData._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSMutableArray] that wraps the given raw object pointer. - static NSMutableArray castFromPointer( + /// Returns a [NSMutableData] that wraps the given raw object pointer. + static NSMutableData castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSMutableArray._(other, lib, retain: retain, release: release); + return NSMutableData._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSMutableArray]. + /// Returns whether [obj] is an instance of [NSMutableData]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMutableArray1); - } - - void addObject_(NSObject anObject) { - return _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, anObject._id); - } - - void insertObject_atIndex_(NSObject anObject, int index) { - return _lib._objc_msgSend_400( - _id, _lib._sel_insertObject_atIndex_1, anObject._id, index); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSMutableData1); } - void removeLastObject() { - return _lib._objc_msgSend_1(_id, _lib._sel_removeLastObject1); + ffi.Pointer get mutableBytes { + return _lib._objc_msgSend_20(_id, _lib._sel_mutableBytes1); } - void removeObjectAtIndex_(int index) { - return _lib._objc_msgSend_401(_id, _lib._sel_removeObjectAtIndex_1, index); + @override + int get length { + return _lib._objc_msgSend_10(_id, _lib._sel_length1); } - void replaceObjectAtIndex_withObject_(int index, NSObject anObject) { - return _lib._objc_msgSend_402( - _id, _lib._sel_replaceObjectAtIndex_withObject_1, index, anObject._id); + set length(int value) { + return _lib._objc_msgSend_463(_id, _lib._sel_setLength_1, value); } - @override - NSMutableArray init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + void appendBytes_length_(ffi.Pointer bytes, int length) { + _lib._objc_msgSend_22(_id, _lib._sel_appendBytes_length_1, bytes, length); } - NSMutableArray initWithCapacity_(int numItems) { - final _ret = - _lib._objc_msgSend_52(_id, _lib._sel_initWithCapacity_1, numItems); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + void appendData_(NSData other) { + _lib._objc_msgSend_226(_id, _lib._sel_appendData_1, other._id); } - @override - NSMutableArray initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + void increaseLengthBy_(int extraLength) { + _lib._objc_msgSend_417(_id, _lib._sel_increaseLengthBy_1, extraLength); } - void addObjectsFromArray_(NSArray? otherArray) { - return _lib._objc_msgSend_403( - _id, _lib._sel_addObjectsFromArray_1, otherArray?._id ?? ffi.nullptr); + void replaceBytesInRange_withBytes_( + _NSRange range, ffi.Pointer bytes) { + _lib._objc_msgSend_464( + _id, _lib._sel_replaceBytesInRange_withBytes_1, range, bytes); } - void exchangeObjectAtIndex_withObjectAtIndex_(int idx1, int idx2) { - return _lib._objc_msgSend_404( - _id, _lib._sel_exchangeObjectAtIndex_withObjectAtIndex_1, idx1, idx2); + void resetBytesInRange_(_NSRange range) { + _lib._objc_msgSend_423(_id, _lib._sel_resetBytesInRange_1, range); } - void removeAllObjects() { - return _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); + void setData_(NSData data) { + _lib._objc_msgSend_226(_id, _lib._sel_setData_1, data._id); } - void removeObject_inRange_(NSObject anObject, _NSRange range) { - return _lib._objc_msgSend_405( - _id, _lib._sel_removeObject_inRange_1, anObject._id, range); + void replaceBytesInRange_withBytes_length_(_NSRange range, + ffi.Pointer replacementBytes, int replacementLength) { + _lib._objc_msgSend_465( + _id, + _lib._sel_replaceBytesInRange_withBytes_length_1, + range, + replacementBytes, + replacementLength); } - void removeObject_(NSObject anObject) { - return _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, anObject._id); + static NSMutableData? dataWithCapacity_( + PedometerBindings _lib, int aNumItems) { + final _ret = _lib._objc_msgSend_466( + _lib._class_NSMutableData1, _lib._sel_dataWithCapacity_1, aNumItems); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); } - void removeObjectIdenticalTo_inRange_(NSObject anObject, _NSRange range) { - return _lib._objc_msgSend_405( - _id, _lib._sel_removeObjectIdenticalTo_inRange_1, anObject._id, range); + static NSMutableData? dataWithLength_(PedometerBindings _lib, int length) { + final _ret = _lib._objc_msgSend_466( + _lib._class_NSMutableData1, _lib._sel_dataWithLength_1, length); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); } - void removeObjectIdenticalTo_(NSObject anObject) { - return _lib._objc_msgSend_15( - _id, _lib._sel_removeObjectIdenticalTo_1, anObject._id); + NSMutableData? initWithCapacity_(int capacity) { + final _ret = + _lib._objc_msgSend_466(_id, _lib._sel_initWithCapacity_1, capacity); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); } - void removeObjectsFromIndices_numIndices_( - ffi.Pointer indices, int cnt) { - return _lib._objc_msgSend_406( - _id, _lib._sel_removeObjectsFromIndices_numIndices_1, indices, cnt); + NSMutableData? initWithLength_(int length) { + final _ret = + _lib._objc_msgSend_466(_id, _lib._sel_initWithLength_1, length); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); } - void removeObjectsInArray_(NSArray? otherArray) { - return _lib._objc_msgSend_403( - _id, _lib._sel_removeObjectsInArray_1, otherArray?._id ?? ffi.nullptr); + bool decompressUsingAlgorithm_error_( + int algorithm, ffi.Pointer> error) { + return _lib._objc_msgSend_467( + _id, _lib._sel_decompressUsingAlgorithm_error_1, algorithm, error); } - void removeObjectsInRange_(_NSRange range) { - return _lib._objc_msgSend_407(_id, _lib._sel_removeObjectsInRange_1, range); + bool compressUsingAlgorithm_error_( + int algorithm, ffi.Pointer> error) { + return _lib._objc_msgSend_467( + _id, _lib._sel_compressUsingAlgorithm_error_1, algorithm, error); } - void replaceObjectsInRange_withObjectsFromArray_range_( - _NSRange range, NSArray? otherArray, _NSRange otherRange) { - return _lib._objc_msgSend_408( - _id, - _lib._sel_replaceObjectsInRange_withObjectsFromArray_range_1, - range, - otherArray?._id ?? ffi.nullptr, - otherRange); + static NSMutableData data(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableData1, _lib._sel_data1); + return NSMutableData._(_ret, _lib, retain: true, release: true); } - void replaceObjectsInRange_withObjectsFromArray_( - _NSRange range, NSArray? otherArray) { - return _lib._objc_msgSend_409( - _id, - _lib._sel_replaceObjectsInRange_withObjectsFromArray_1, - range, - otherArray?._id ?? ffi.nullptr); + static NSMutableData dataWithBytes_length_( + PedometerBindings _lib, ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_214(_lib._class_NSMutableData1, + _lib._sel_dataWithBytes_length_1, bytes, length); + return NSMutableData._(_ret, _lib, retain: true, release: true); } - void setArray_(NSArray? otherArray) { - return _lib._objc_msgSend_403( - _id, _lib._sel_setArray_1, otherArray?._id ?? ffi.nullptr); + static NSMutableData dataWithBytesNoCopy_length_( + PedometerBindings _lib, ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_214(_lib._class_NSMutableData1, + _lib._sel_dataWithBytesNoCopy_length_1, bytes, length); + return NSMutableData._(_ret, _lib, retain: false, release: true); } - void sortUsingFunction_context_( - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>> - compare, - ffi.Pointer context) { - return _lib._objc_msgSend_410( - _id, _lib._sel_sortUsingFunction_context_1, compare, context); + static NSMutableData dataWithBytesNoCopy_length_freeWhenDone_( + PedometerBindings _lib, ffi.Pointer bytes, int length, bool b) { + final _ret = _lib._objc_msgSend_215(_lib._class_NSMutableData1, + _lib._sel_dataWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); + return NSMutableData._(_ret, _lib, retain: false, release: true); } - void sortUsingSelector_(ffi.Pointer comparator) { - return _lib._objc_msgSend_7(_id, _lib._sel_sortUsingSelector_1, comparator); + static NSMutableData? dataWithContentsOfFile_options_error_( + PedometerBindings _lib, + NSString path, + int readOptionsMask, + ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_216( + _lib._class_NSMutableData1, + _lib._sel_dataWithContentsOfFile_options_error_1, + path._id, + readOptionsMask, + errorPtr); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); } - void insertObjects_atIndexes_(NSArray? objects, NSIndexSet? indexes) { - return _lib._objc_msgSend_411(_id, _lib._sel_insertObjects_atIndexes_1, - objects?._id ?? ffi.nullptr, indexes?._id ?? ffi.nullptr); + static NSMutableData? dataWithContentsOfURL_options_error_( + PedometerBindings _lib, + NSURL url, + int readOptionsMask, + ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_217( + _lib._class_NSMutableData1, + _lib._sel_dataWithContentsOfURL_options_error_1, + url._id, + readOptionsMask, + errorPtr); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); } - void removeObjectsAtIndexes_(NSIndexSet? indexes) { - return _lib._objc_msgSend_412( - _id, _lib._sel_removeObjectsAtIndexes_1, indexes?._id ?? ffi.nullptr); + static NSMutableData? dataWithContentsOfFile_( + PedometerBindings _lib, NSString path) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSMutableData1, + _lib._sel_dataWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); } - void replaceObjectsAtIndexes_withObjects_( - NSIndexSet? indexes, NSArray? objects) { - return _lib._objc_msgSend_413( - _id, - _lib._sel_replaceObjectsAtIndexes_withObjects_1, - indexes?._id ?? ffi.nullptr, - objects?._id ?? ffi.nullptr); + static NSMutableData? dataWithContentsOfURL_( + PedometerBindings _lib, NSURL url) { + final _ret = _lib._objc_msgSend_218( + _lib._class_NSMutableData1, _lib._sel_dataWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); } - void setObject_atIndexedSubscript_(NSObject obj, int idx) { - return _lib._objc_msgSend_400( - _id, _lib._sel_setObject_atIndexedSubscript_1, obj._id, idx); + @override + NSMutableData initWithBytes_length_(ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_214( + _id, _lib._sel_initWithBytes_length_1, bytes, length); + return NSMutableData._(_ret, _lib, retain: true, release: true); } - void sortUsingComparator_(ObjCBlock6 cmptr) { - return _lib._objc_msgSend_414( - _id, _lib._sel_sortUsingComparator_1, cmptr._id); + @override + NSMutableData initWithBytesNoCopy_length_( + ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_214( + _id, _lib._sel_initWithBytesNoCopy_length_1, bytes, length); + return NSMutableData._(_ret, _lib, retain: false, release: true); } - void sortWithOptions_usingComparator_(int opts, ObjCBlock6 cmptr) { - return _lib._objc_msgSend_415( - _id, _lib._sel_sortWithOptions_usingComparator_1, opts, cmptr._id); + @override + NSMutableData initWithBytesNoCopy_length_freeWhenDone_( + ffi.Pointer bytes, int length, bool b) { + final _ret = _lib._objc_msgSend_215(_id, + _lib._sel_initWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); + return NSMutableData._(_ret, _lib, retain: false, release: true); } - static NSMutableArray arrayWithCapacity_( - PedometerBindings _lib, int numItems) { - final _ret = _lib._objc_msgSend_52( - _lib._class_NSMutableArray1, _lib._sel_arrayWithCapacity_1, numItems); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + @override + NSMutableData initWithBytesNoCopy_length_deallocator_( + ffi.Pointer bytes, + int length, + ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong? deallocator) { + final _ret = _lib._objc_msgSend_219( + _id, + _lib._sel_initWithBytesNoCopy_length_deallocator_1, + bytes, + length, + deallocator?._id ?? ffi.nullptr); + return NSMutableData._(_ret, _lib, retain: false, release: true); } - static NSMutableArray arrayWithContentsOfFile_( - PedometerBindings _lib, NSString? path) { - final _ret = _lib._objc_msgSend_416(_lib._class_NSMutableArray1, - _lib._sel_arrayWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + @override + NSMutableData? initWithContentsOfFile_options_error_(NSString path, + int readOptionsMask, ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_216( + _id, + _lib._sel_initWithContentsOfFile_options_error_1, + path._id, + readOptionsMask, + errorPtr); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSMutableArray arrayWithContentsOfURL_( - PedometerBindings _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_417(_lib._class_NSMutableArray1, - _lib._sel_arrayWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + @override + NSMutableData? initWithContentsOfURL_options_error_(NSURL url, + int readOptionsMask, ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_217( + _id, + _lib._sel_initWithContentsOfURL_options_error_1, + url._id, + readOptionsMask, + errorPtr); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); } - NSMutableArray initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_416( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + @override + NSMutableData? initWithContentsOfFile_(NSString path) { + final _ret = _lib._objc_msgSend_38( + _id, _lib._sel_initWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); } - NSMutableArray initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_417( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + @override + NSMutableData? initWithContentsOfURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_218(_id, _lib._sel_initWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); } - void applyDifference_(NSObject? difference) { - return _lib._objc_msgSend_15( - _id, _lib._sel_applyDifference_1, difference?._id ?? ffi.nullptr); + @override + NSMutableData initWithData_(NSData data) { + final _ret = + _lib._objc_msgSend_220(_id, _lib._sel_initWithData_1, data._id); + return NSMutableData._(_ret, _lib, retain: true, release: true); } - void sortUsingDescriptors_(NSArray? sortDescriptors) { - return _lib._objc_msgSend_403(_id, _lib._sel_sortUsingDescriptors_1, - sortDescriptors?._id ?? ffi.nullptr); + static NSMutableData dataWithData_(PedometerBindings _lib, NSData data) { + final _ret = _lib._objc_msgSend_220( + _lib._class_NSMutableData1, _lib._sel_dataWithData_1, data._id); + return NSMutableData._(_ret, _lib, retain: true, release: true); } - void filterUsingPredicate_(NSPredicate? predicate) { - return _lib._objc_msgSend_418( - _id, _lib._sel_filterUsingPredicate_1, predicate?._id ?? ffi.nullptr); + @override + NSMutableData? initWithBase64EncodedString_options_( + NSString base64String, int options) { + final _ret = _lib._objc_msgSend_221( + _id, + _lib._sel_initWithBase64EncodedString_options_1, + base64String._id, + options); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSMutableArray array(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_array1); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + @override + NSMutableData? initWithBase64EncodedData_options_( + NSData base64Data, int options) { + final _ret = _lib._objc_msgSend_223(_id, + _lib._sel_initWithBase64EncodedData_options_1, base64Data._id, options); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSMutableArray arrayWithObject_( - PedometerBindings _lib, NSObject anObject) { - final _ret = _lib._objc_msgSend_16( - _lib._class_NSMutableArray1, _lib._sel_arrayWithObject_1, anObject._id); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + @override + NSMutableData? decompressedDataUsingAlgorithm_error_( + int algorithm, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_225(_id, + _lib._sel_decompressedDataUsingAlgorithm_error_1, algorithm, error); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSMutableArray arrayWithObjects_count_(PedometerBindings _lib, - ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_53(_lib._class_NSMutableArray1, - _lib._sel_arrayWithObjects_count_1, objects, cnt); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + @override + NSMutableData? compressedDataUsingAlgorithm_error_( + int algorithm, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_225( + _id, _lib._sel_compressedDataUsingAlgorithm_error_1, algorithm, error); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSMutableArray arrayWithObjects_( - PedometerBindings _lib, NSObject firstObj) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSMutableArray1, - _lib._sel_arrayWithObjects_1, firstObj._id); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + static NSObject? dataWithContentsOfMappedFile_( + PedometerBindings _lib, NSString path) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSMutableData1, + _lib._sel_dataWithContentsOfMappedFile_1, path._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSMutableArray arrayWithArray_( - PedometerBindings _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_59(_lib._class_NSMutableArray1, - _lib._sel_arrayWithArray_1, array?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + @override + NSMutableData init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSArray arrayWithContentsOfURL_error_(PedometerBindings _lib, - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_111( - _lib._class_NSMutableArray1, - _lib._sel_arrayWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSArray._(_ret, _lib, retain: true, release: true); + static NSMutableData new1(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableData1, _lib._sel_new1); + return NSMutableData._(_ret, _lib, retain: false, release: true); } - static NSMutableArray new1(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_new1); - return NSMutableArray._(_ret, _lib, retain: false, release: true); + static NSMutableData allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSMutableData1, _lib._sel_allocWithZone_1, zone); + return NSMutableData._(_ret, _lib, retain: false, release: true); } - static NSMutableArray alloc(PedometerBindings _lib) { + static NSMutableData alloc(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_alloc1); - return NSMutableArray._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSMutableData1, _lib._sel_alloc1); + return NSMutableData._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSMutableArray1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSMutableData1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMutableArray1, + _lib._objc_msgSend_15(_lib._class_NSMutableData1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSMutableArray1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSMutableData1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSMutableArray1, _lib._sel_useStoredAccessor1); + _lib._class_NSMutableData1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSMutableArray1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSMutableData1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSMutableArray1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSMutableArray1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSMutableData1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSMutableArray1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_NSMutableData1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableArray1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSMutableData1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -/// Mutable Ordered Set -class NSMutableOrderedSet extends NSOrderedSet { - NSMutableOrderedSet._(ffi.Pointer id, PedometerBindings lib, +abstract class NSPropertyListFormat { + static const int NSPropertyListOpenStepFormat = 1; + static const int NSPropertyListXMLFormat_v1_0 = 100; + static const int NSPropertyListBinaryFormat_v1_0 = 200; +} + +class NSThread extends NSObject { + NSThread._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSMutableOrderedSet] that points to the same underlying object as [other]. - static NSMutableOrderedSet castFrom(T other) { - return NSMutableOrderedSet._(other._id, other._lib, - retain: true, release: true); + /// Returns a [NSThread] that points to the same underlying object as [other]. + static NSThread castFrom(T other) { + return NSThread._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSMutableOrderedSet] that wraps the given raw object pointer. - static NSMutableOrderedSet castFromPointer( + /// Returns a [NSThread] that wraps the given raw object pointer. + static NSThread castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSMutableOrderedSet._(other, lib, retain: retain, release: release); + return NSThread._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSMutableOrderedSet]. + /// Returns whether [obj] is an instance of [NSThread]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMutableOrderedSet1); - } - - void insertObject_atIndex_(NSObject object, int idx) { - return _lib._objc_msgSend_400( - _id, _lib._sel_insertObject_atIndex_1, object._id, idx); - } - - void removeObjectAtIndex_(int idx) { - return _lib._objc_msgSend_401(_id, _lib._sel_removeObjectAtIndex_1, idx); - } - - void replaceObjectAtIndex_withObject_(int idx, NSObject object) { - return _lib._objc_msgSend_402( - _id, _lib._sel_replaceObjectAtIndex_withObject_1, idx, object._id); - } - - @override - NSMutableOrderedSet initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); - } - - @override - NSMutableOrderedSet init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSThread1); } - NSMutableOrderedSet initWithCapacity_(int numItems) { + static NSThread getCurrentThread(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_52(_id, _lib._sel_initWithCapacity_1, numItems); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); - } - - void addObject_(NSObject object) { - return _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, object._id); - } - - void addObjects_count_( - ffi.Pointer> objects, int count) { - return _lib._objc_msgSend_429( - _id, _lib._sel_addObjects_count_1, objects, count); - } - - void addObjectsFromArray_(NSArray? array) { - return _lib._objc_msgSend_403( - _id, _lib._sel_addObjectsFromArray_1, array?._id ?? ffi.nullptr); - } - - void exchangeObjectAtIndex_withObjectAtIndex_(int idx1, int idx2) { - return _lib._objc_msgSend_404( - _id, _lib._sel_exchangeObjectAtIndex_withObjectAtIndex_1, idx1, idx2); - } - - void moveObjectsAtIndexes_toIndex_(NSIndexSet? indexes, int idx) { - return _lib._objc_msgSend_430(_id, _lib._sel_moveObjectsAtIndexes_toIndex_1, - indexes?._id ?? ffi.nullptr, idx); - } - - void insertObjects_atIndexes_(NSArray? objects, NSIndexSet? indexes) { - return _lib._objc_msgSend_411(_id, _lib._sel_insertObjects_atIndexes_1, - objects?._id ?? ffi.nullptr, indexes?._id ?? ffi.nullptr); - } - - void setObject_atIndex_(NSObject obj, int idx) { - return _lib._objc_msgSend_400( - _id, _lib._sel_setObject_atIndex_1, obj._id, idx); - } - - void setObject_atIndexedSubscript_(NSObject obj, int idx) { - return _lib._objc_msgSend_400( - _id, _lib._sel_setObject_atIndexedSubscript_1, obj._id, idx); - } - - void replaceObjectsInRange_withObjects_count_( - _NSRange range, ffi.Pointer> objects, int count) { - return _lib._objc_msgSend_431( - _id, - _lib._sel_replaceObjectsInRange_withObjects_count_1, - range, - objects, - count); + _lib._objc_msgSend_479(_lib._class_NSThread1, _lib._sel_currentThread1); + return NSThread._(_ret, _lib, retain: true, release: true); } - void replaceObjectsAtIndexes_withObjects_( - NSIndexSet? indexes, NSArray? objects) { - return _lib._objc_msgSend_413( - _id, - _lib._sel_replaceObjectsAtIndexes_withObjects_1, - indexes?._id ?? ffi.nullptr, - objects?._id ?? ffi.nullptr); + static void detachNewThreadWithBlock_( + PedometerBindings _lib, ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_480( + _lib._class_NSThread1, _lib._sel_detachNewThreadWithBlock_1, block._id); } - void removeObjectsInRange_(_NSRange range) { - return _lib._objc_msgSend_407(_id, _lib._sel_removeObjectsInRange_1, range); + static void detachNewThreadSelector_toTarget_withObject_( + PedometerBindings _lib, + ffi.Pointer selector, + NSObject target, + NSObject? argument) { + _lib._objc_msgSend_481( + _lib._class_NSThread1, + _lib._sel_detachNewThreadSelector_toTarget_withObject_1, + selector, + target._id, + argument?._id ?? ffi.nullptr); } - void removeObjectsAtIndexes_(NSIndexSet? indexes) { - return _lib._objc_msgSend_412( - _id, _lib._sel_removeObjectsAtIndexes_1, indexes?._id ?? ffi.nullptr); + static bool isMultiThreaded(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSThread1, _lib._sel_isMultiThreaded1); } - void removeAllObjects() { - return _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); + NSMutableDictionary get threadDictionary { + final _ret = _lib._objc_msgSend_487(_id, _lib._sel_threadDictionary1); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - void removeObject_(NSObject object) { - return _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, object._id); + static void sleepUntilDate_(PedometerBindings _lib, NSDate date) { + _lib._objc_msgSend_488( + _lib._class_NSThread1, _lib._sel_sleepUntilDate_1, date._id); } - void removeObjectsInArray_(NSArray? array) { - return _lib._objc_msgSend_403( - _id, _lib._sel_removeObjectsInArray_1, array?._id ?? ffi.nullptr); + static void sleepForTimeInterval_(PedometerBindings _lib, double ti) { + _lib._objc_msgSend_489( + _lib._class_NSThread1, _lib._sel_sleepForTimeInterval_1, ti); } - void intersectOrderedSet_(NSOrderedSet? other) { - return _lib._objc_msgSend_432( - _id, _lib._sel_intersectOrderedSet_1, other?._id ?? ffi.nullptr); + static void exit(PedometerBindings _lib) { + _lib._objc_msgSend_1(_lib._class_NSThread1, _lib._sel_exit1); } - void minusOrderedSet_(NSOrderedSet? other) { - return _lib._objc_msgSend_432( - _id, _lib._sel_minusOrderedSet_1, other?._id ?? ffi.nullptr); + double get threadPriority { + return _lib._objc_msgSend_156(_id, _lib._sel_threadPriority1); } - void unionOrderedSet_(NSOrderedSet? other) { - return _lib._objc_msgSend_432( - _id, _lib._sel_unionOrderedSet_1, other?._id ?? ffi.nullptr); + set threadPriority(double value) { + return _lib._objc_msgSend_490(_id, _lib._sel_setThreadPriority_1, value); } - void intersectSet_(NSSet? other) { - return _lib._objc_msgSend_433( - _id, _lib._sel_intersectSet_1, other?._id ?? ffi.nullptr); + int get qualityOfService { + return _lib._objc_msgSend_491(_id, _lib._sel_qualityOfService1); } - void minusSet_(NSSet? other) { - return _lib._objc_msgSend_433( - _id, _lib._sel_minusSet_1, other?._id ?? ffi.nullptr); + set qualityOfService(int value) { + return _lib._objc_msgSend_492(_id, _lib._sel_setQualityOfService_1, value); } - void unionSet_(NSSet? other) { - return _lib._objc_msgSend_433( - _id, _lib._sel_unionSet_1, other?._id ?? ffi.nullptr); + static NSArray getCallStackReturnAddresses(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77( + _lib._class_NSThread1, _lib._sel_callStackReturnAddresses1); + return NSArray._(_ret, _lib, retain: true, release: true); } - void sortUsingComparator_(ObjCBlock6 cmptr) { - return _lib._objc_msgSend_414( - _id, _lib._sel_sortUsingComparator_1, cmptr._id); + static NSArray getCallStackSymbols(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77( + _lib._class_NSThread1, _lib._sel_callStackSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - void sortWithOptions_usingComparator_(int opts, ObjCBlock6 cmptr) { - return _lib._objc_msgSend_415( - _id, _lib._sel_sortWithOptions_usingComparator_1, opts, cmptr._id); + NSString? get name { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_name1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void sortRange_options_usingComparator_( - _NSRange range, int opts, ObjCBlock6 cmptr) { - return _lib._objc_msgSend_434(_id, - _lib._sel_sortRange_options_usingComparator_1, range, opts, cmptr._id); + set name(NSString? value) { + return _lib._objc_msgSend_493( + _id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); } - static NSMutableOrderedSet orderedSetWithCapacity_( - PedometerBindings _lib, int numItems) { - final _ret = _lib._objc_msgSend_52(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithCapacity_1, numItems); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + int get stackSize { + return _lib._objc_msgSend_10(_id, _lib._sel_stackSize1); } - void applyDifference_(NSObject? difference) { - return _lib._objc_msgSend_15( - _id, _lib._sel_applyDifference_1, difference?._id ?? ffi.nullptr); + set stackSize(int value) { + return _lib._objc_msgSend_463(_id, _lib._sel_setStackSize_1, value); } - void sortUsingDescriptors_(NSArray? sortDescriptors) { - return _lib._objc_msgSend_403(_id, _lib._sel_sortUsingDescriptors_1, - sortDescriptors?._id ?? ffi.nullptr); + bool get isMainThread { + return _lib._objc_msgSend_12(_id, _lib._sel_isMainThread1); } - void filterUsingPredicate_(NSPredicate? p) { - return _lib._objc_msgSend_418( - _id, _lib._sel_filterUsingPredicate_1, p?._id ?? ffi.nullptr); + static NSThread getMainThread(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_479(_lib._class_NSThread1, _lib._sel_mainThread1); + return NSThread._(_ret, _lib, retain: true, release: true); } - static NSMutableOrderedSet orderedSet(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableOrderedSet1, _lib._sel_orderedSet1); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + @override + NSThread init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSThread._(_ret, _lib, retain: true, release: true); } - static NSMutableOrderedSet orderedSetWithObject_( - PedometerBindings _lib, NSObject object) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithObject_1, object._id); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + NSThread initWithTarget_selector_object_( + NSObject target, ffi.Pointer selector, NSObject? argument) { + final _ret = _lib._objc_msgSend_494( + _id, + _lib._sel_initWithTarget_selector_object_1, + target._id, + selector, + argument?._id ?? ffi.nullptr); + return NSThread._(_ret, _lib, retain: true, release: true); } - static NSMutableOrderedSet orderedSetWithObjects_count_( - PedometerBindings _lib, - ffi.Pointer> objects, - int cnt) { - final _ret = _lib._objc_msgSend_53(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithObjects_count_1, objects, cnt); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + NSThread initWithBlock_(ObjCBlock_ffiVoid block) { + final _ret = + _lib._objc_msgSend_495(_id, _lib._sel_initWithBlock_1, block._id); + return NSThread._(_ret, _lib, retain: true, release: true); } - static NSMutableOrderedSet orderedSetWithObjects_( - PedometerBindings _lib, NSObject firstObj) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithObjects_1, firstObj._id); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + bool get executing { + return _lib._objc_msgSend_12(_id, _lib._sel_isExecuting1); } - static NSMutableOrderedSet orderedSetWithOrderedSet_( - PedometerBindings _lib, NSOrderedSet? set) { - final _ret = _lib._objc_msgSend_421(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithOrderedSet_1, set?._id ?? ffi.nullptr); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + bool get finished { + return _lib._objc_msgSend_12(_id, _lib._sel_isFinished1); } - static NSMutableOrderedSet orderedSetWithOrderedSet_range_copyItems_( - PedometerBindings _lib, NSOrderedSet? set, _NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_422( - _lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithOrderedSet_range_copyItems_1, - set?._id ?? ffi.nullptr, - range, - flag); - return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + bool get cancelled { + return _lib._objc_msgSend_12(_id, _lib._sel_isCancelled1); } - static NSMutableOrderedSet orderedSetWithArray_( - PedometerBindings _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_59(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithArray_1, array?._id ?? ffi.nullptr); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + void cancel() { + _lib._objc_msgSend_1(_id, _lib._sel_cancel1); } - static NSMutableOrderedSet orderedSetWithArray_range_copyItems_( - PedometerBindings _lib, NSArray? array, _NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_423( - _lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithArray_range_copyItems_1, - array?._id ?? ffi.nullptr, - range, - flag); - return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + void start() { + _lib._objc_msgSend_1(_id, _lib._sel_start1); } - static NSMutableOrderedSet orderedSetWithSet_( - PedometerBindings _lib, NSSet? set) { - final _ret = _lib._objc_msgSend_343(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithSet_1, set?._id ?? ffi.nullptr); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + void main() { + _lib._objc_msgSend_1(_id, _lib._sel_main1); } - static NSMutableOrderedSet orderedSetWithSet_copyItems_( - PedometerBindings _lib, NSSet? set, bool flag) { - final _ret = _lib._objc_msgSend_344(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); - return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + static NSThread new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSThread1, _lib._sel_new1); + return NSThread._(_ret, _lib, retain: false, release: true); } - static NSMutableOrderedSet new1(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableOrderedSet1, _lib._sel_new1); - return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + static NSThread allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSThread1, _lib._sel_allocWithZone_1, zone); + return NSThread._(_ret, _lib, retain: false, release: true); } - static NSMutableOrderedSet alloc(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableOrderedSet1, _lib._sel_alloc1); - return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + static NSThread alloc(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSThread1, _lib._sel_alloc1); + return NSThread._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSMutableOrderedSet1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSThread1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMutableOrderedSet1, + _lib._objc_msgSend_15(_lib._class_NSThread1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSMutableOrderedSet1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSThread1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSMutableOrderedSet1, _lib._sel_useStoredAccessor1); + _lib._class_NSThread1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSMutableOrderedSet1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSThread1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSMutableOrderedSet1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSMutableOrderedSet1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSThread1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71(_lib._class_NSMutableOrderedSet1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_NSThread1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableOrderedSet1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSThread1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -/// Immutable Ordered Set -class NSOrderedSet extends NSObject { - NSOrderedSet._(ffi.Pointer id, PedometerBindings lib, +void _ObjCBlock_ffiVoid_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, +) => + block.ref.target + .cast>() + .asFunction()(); +final _ObjCBlock_ffiVoid_closureRegistry = {}; +int _ObjCBlock_ffiVoid_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_registerClosure(void Function() fn) { + final id = ++_ObjCBlock_ffiVoid_closureRegistryIndex; + _ObjCBlock_ffiVoid_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, +) => + _ObjCBlock_ffiVoid_closureRegistry[block.ref.target.address]!(); + +class ObjCBlock_ffiVoid extends _ObjCBlockBase { + ObjCBlock_ffiVoid._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid.fromFunctionPointer(PedometerBindings lib, + ffi.Pointer> ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>)>( + _ObjCBlock_ffiVoid_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid.fromFunction(PedometerBindings lib, void Function() fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>)>( + _ObjCBlock_ffiVoid_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_registerClosure(() => fn())), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid.listener(PedometerBindings lib, void Function() fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>)>.listener( + _ObjCBlock_ffiVoid_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_registerClosure(() => fn())), + lib); + static ffi.NativeCallable)>? + _dartFuncListenerTrampoline; + + void call() => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block)>>() + .asFunction)>()( + _id, + ); +} + +/// Mutable Dictionary +class NSMutableDictionary extends NSDictionary { + NSMutableDictionary._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSOrderedSet] that points to the same underlying object as [other]. - static NSOrderedSet castFrom(T other) { - return NSOrderedSet._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSMutableDictionary] that points to the same underlying object as [other]. + static NSMutableDictionary castFrom(T other) { + return NSMutableDictionary._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSOrderedSet] that wraps the given raw object pointer. - static NSOrderedSet castFromPointer( + /// Returns a [NSMutableDictionary] that wraps the given raw object pointer. + static NSMutableDictionary castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSOrderedSet._(other, lib, retain: retain, release: release); + return NSMutableDictionary._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSOrderedSet]. + /// Returns whether [obj] is an instance of [NSMutableDictionary]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSOrderedSet1); - } - - int get count { - return _lib._objc_msgSend_10(_id, _lib._sel_count1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMutableDictionary1); } - NSObject objectAtIndex_(int idx) { - final _ret = _lib._objc_msgSend_52(_id, _lib._sel_objectAtIndex_1, idx); - return NSObject._(_ret, _lib, retain: true, release: true); + void removeObjectForKey_(NSObject aKey) { + _lib._objc_msgSend_15(_id, _lib._sel_removeObjectForKey_1, aKey._id); } - int indexOfObject_(NSObject object) { - return _lib._objc_msgSend_61(_id, _lib._sel_indexOfObject_1, object._id); + void setObject_forKey_(NSObject anObject, NSObject aKey) { + _lib._objc_msgSend_482( + _id, _lib._sel_setObject_forKey_1, anObject._id, aKey._id); } @override - NSOrderedSet init() { + NSMutableDictionary init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - NSOrderedSet initWithObjects_count_( - ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_53( - _id, _lib._sel_initWithObjects_count_1, objects, cnt); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + NSMutableDictionary initWithCapacity_(int numItems) { + final _ret = + _lib._objc_msgSend_57(_id, _lib._sel_initWithCapacity_1, numItems); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - NSOrderedSet initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + @override + NSMutableDictionary? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - void getObjects_range_( - ffi.Pointer> objects, _NSRange range) { - return _lib._objc_msgSend_60( - _id, _lib._sel_getObjects_range_1, objects, range); + void addEntriesFromDictionary_(NSDictionary otherDictionary) { + _lib._objc_msgSend_456( + _id, _lib._sel_addEntriesFromDictionary_1, otherDictionary._id); } - NSArray objectsAtIndexes_(NSIndexSet? indexes) { - final _ret = _lib._objc_msgSend_97( - _id, _lib._sel_objectsAtIndexes_1, indexes?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + void removeAllObjects() { + _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); } - NSObject get firstObject { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_firstObject1); - return NSObject._(_ret, _lib, retain: true, release: true); + void removeObjectsForKeys_(NSArray keyArray) { + _lib._objc_msgSend_419(_id, _lib._sel_removeObjectsForKeys_1, keyArray._id); } - NSObject get lastObject { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_lastObject1); - return NSObject._(_ret, _lib, retain: true, release: true); + void setDictionary_(NSDictionary otherDictionary) { + _lib._objc_msgSend_456(_id, _lib._sel_setDictionary_1, otherDictionary._id); } - bool isEqualToOrderedSet_(NSOrderedSet? other) { - return _lib._objc_msgSend_419( - _id, _lib._sel_isEqualToOrderedSet_1, other?._id ?? ffi.nullptr); + void setObject_forKeyedSubscript_(NSObject? obj, NSObject key) { + _lib._objc_msgSend_483(_id, _lib._sel_setObject_forKeyedSubscript_1, + obj?._id ?? ffi.nullptr, key._id); } - bool containsObject_(NSObject object) { - return _lib._objc_msgSend_0(_id, _lib._sel_containsObject_1, object._id); + static NSMutableDictionary dictionaryWithCapacity_( + PedometerBindings _lib, int numItems) { + final _ret = _lib._objc_msgSend_57(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithCapacity_1, numItems); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - bool intersectsOrderedSet_(NSOrderedSet? other) { - return _lib._objc_msgSend_419( - _id, _lib._sel_intersectsOrderedSet_1, other?._id ?? ffi.nullptr); + static NSMutableDictionary? dictionaryWithContentsOfFile_( + PedometerBindings _lib, NSString path) { + final _ret = _lib._objc_msgSend_484(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - bool intersectsSet_(NSSet? set) { - return _lib._objc_msgSend_335( - _id, _lib._sel_intersectsSet_1, set?._id ?? ffi.nullptr); + static NSMutableDictionary? dictionaryWithContentsOfURL_( + PedometerBindings _lib, NSURL url) { + final _ret = _lib._objc_msgSend_485(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - bool isSubsetOfOrderedSet_(NSOrderedSet? other) { - return _lib._objc_msgSend_419( - _id, _lib._sel_isSubsetOfOrderedSet_1, other?._id ?? ffi.nullptr); + NSMutableDictionary? initWithContentsOfFile_(NSString path) { + final _ret = _lib._objc_msgSend_484( + _id, _lib._sel_initWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - bool isSubsetOfSet_(NSSet? set) { - return _lib._objc_msgSend_335( - _id, _lib._sel_isSubsetOfSet_1, set?._id ?? ffi.nullptr); + NSMutableDictionary? initWithContentsOfURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_485(_id, _lib._sel_initWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - NSObject objectAtIndexedSubscript_(int idx) { - final _ret = - _lib._objc_msgSend_52(_id, _lib._sel_objectAtIndexedSubscript_1, idx); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSMutableDictionary dictionaryWithSharedKeySet_( + PedometerBindings _lib, NSObject keyset) { + final _ret = _lib._objc_msgSend_486(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithSharedKeySet_1, keyset._id); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - NSEnumerator objectEnumerator() { - final _ret = _lib._objc_msgSend_64(_id, _lib._sel_objectEnumerator1); - return NSEnumerator._(_ret, _lib, retain: true, release: true); + void setValue_forKey_(NSObject? value, NSString key) { + _lib._objc_msgSend_126( + _id, _lib._sel_setValue_forKey_1, value?._id ?? ffi.nullptr, key._id); + } + + @override + NSMutableDictionary initWithObjects_forKeys_count_( + ffi.Pointer> objects, + ffi.Pointer> keys, + int cnt) { + final _ret = _lib._objc_msgSend_138( + _id, _lib._sel_initWithObjects_forKeys_count_1, objects, keys, cnt); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - NSEnumerator reverseObjectEnumerator() { - final _ret = _lib._objc_msgSend_64(_id, _lib._sel_reverseObjectEnumerator1); - return NSEnumerator._(_ret, _lib, retain: true, release: true); + static NSMutableDictionary dictionary(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableDictionary1, _lib._sel_dictionary1); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - NSOrderedSet? get reversedOrderedSet { - final _ret = _lib._objc_msgSend_420(_id, _lib._sel_reversedOrderedSet1); - return _ret.address == 0 - ? null - : NSOrderedSet._(_ret, _lib, retain: true, release: true); + static NSMutableDictionary dictionaryWithObject_forKey_( + PedometerBindings _lib, NSObject object, NSObject key) { + final _ret = _lib._objc_msgSend_149(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithObject_forKey_1, object._id, key._id); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - NSArray? get array { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_array1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static NSMutableDictionary dictionaryWithObjects_forKeys_count_( + PedometerBindings _lib, + ffi.Pointer> objects, + ffi.Pointer> keys, + int cnt) { + final _ret = _lib._objc_msgSend_138(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithObjects_forKeys_count_1, objects, keys, cnt); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - NSSet? get set1 { - final _ret = _lib._objc_msgSend_249(_id, _lib._sel_set1); - return _ret.address == 0 - ? null - : NSSet._(_ret, _lib, retain: true, release: true); + static NSMutableDictionary dictionaryWithObjectsAndKeys_( + PedometerBindings _lib, NSObject firstObject) { + final _ret = _lib._objc_msgSend_115(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithObjectsAndKeys_1, firstObject._id); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - void enumerateObjectsUsingBlock_(ObjCBlock4 block) { - return _lib._objc_msgSend_98( - _id, _lib._sel_enumerateObjectsUsingBlock_1, block._id); + static NSMutableDictionary dictionaryWithDictionary_( + PedometerBindings _lib, NSDictionary dict) { + final _ret = _lib._objc_msgSend_150(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithDictionary_1, dict._id); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - void enumerateObjectsWithOptions_usingBlock_(int opts, ObjCBlock4 block) { - return _lib._objc_msgSend_99(_id, - _lib._sel_enumerateObjectsWithOptions_usingBlock_1, opts, block._id); + static NSMutableDictionary dictionaryWithObjects_forKeys_( + PedometerBindings _lib, NSArray objects, NSArray keys) { + final _ret = _lib._objc_msgSend_151(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithObjects_forKeys_1, objects._id, keys._id); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - void enumerateObjectsAtIndexes_options_usingBlock_( - NSIndexSet? s, int opts, ObjCBlock4 block) { - return _lib._objc_msgSend_100( - _id, - _lib._sel_enumerateObjectsAtIndexes_options_usingBlock_1, - s?._id ?? ffi.nullptr, - opts, - block._id); + @override + NSMutableDictionary initWithObjectsAndKeys_(NSObject firstObject) { + final _ret = _lib._objc_msgSend_115( + _id, _lib._sel_initWithObjectsAndKeys_1, firstObject._id); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - int indexOfObjectPassingTest_(ObjCBlock5 predicate) { - return _lib._objc_msgSend_101( - _id, _lib._sel_indexOfObjectPassingTest_1, predicate._id); + @override + NSMutableDictionary initWithDictionary_(NSDictionary otherDictionary) { + final _ret = _lib._objc_msgSend_150( + _id, _lib._sel_initWithDictionary_1, otherDictionary._id); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - int indexOfObjectWithOptions_passingTest_(int opts, ObjCBlock5 predicate) { - return _lib._objc_msgSend_102(_id, - _lib._sel_indexOfObjectWithOptions_passingTest_1, opts, predicate._id); + @override + NSMutableDictionary initWithDictionary_copyItems_( + NSDictionary otherDictionary, bool flag) { + final _ret = _lib._objc_msgSend_152(_id, + _lib._sel_initWithDictionary_copyItems_1, otherDictionary._id, flag); + return NSMutableDictionary._(_ret, _lib, retain: false, release: true); } - int indexOfObjectAtIndexes_options_passingTest_( - NSIndexSet? s, int opts, ObjCBlock5 predicate) { - return _lib._objc_msgSend_103( - _id, - _lib._sel_indexOfObjectAtIndexes_options_passingTest_1, - s?._id ?? ffi.nullptr, - opts, - predicate._id); + @override + NSMutableDictionary initWithObjects_forKeys_(NSArray objects, NSArray keys) { + final _ret = _lib._objc_msgSend_151( + _id, _lib._sel_initWithObjects_forKeys_1, objects._id, keys._id); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - NSIndexSet indexesOfObjectsPassingTest_(ObjCBlock5 predicate) { - final _ret = _lib._objc_msgSend_104( - _id, _lib._sel_indexesOfObjectsPassingTest_1, predicate._id); - return NSIndexSet._(_ret, _lib, retain: true, release: true); + static NSDictionary? dictionaryWithContentsOfURL_error_( + PedometerBindings _lib, + NSURL url, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_153(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithContentsOfURL_error_1, url._id, error); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSIndexSet indexesOfObjectsWithOptions_passingTest_( - int opts, ObjCBlock5 predicate) { - final _ret = _lib._objc_msgSend_105( - _id, - _lib._sel_indexesOfObjectsWithOptions_passingTest_1, - opts, - predicate._id); - return NSIndexSet._(_ret, _lib, retain: true, release: true); + static NSObject sharedKeySetForKeys_(PedometerBindings _lib, NSArray keys) { + final _ret = _lib._objc_msgSend_116(_lib._class_NSMutableDictionary1, + _lib._sel_sharedKeySetForKeys_1, keys._id); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSIndexSet indexesOfObjectsAtIndexes_options_passingTest_( - NSIndexSet? s, int opts, ObjCBlock5 predicate) { - final _ret = _lib._objc_msgSend_106( - _id, - _lib._sel_indexesOfObjectsAtIndexes_options_passingTest_1, - s?._id ?? ffi.nullptr, - opts, - predicate._id); - return NSIndexSet._(_ret, _lib, retain: true, release: true); + static NSMutableDictionary new1(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableDictionary1, _lib._sel_new1); + return NSMutableDictionary._(_ret, _lib, retain: false, release: true); } - int indexOfObject_inSortedRange_options_usingComparator_( - NSObject object, _NSRange range, int opts, ObjCBlock6 cmp) { - return _lib._objc_msgSend_109( - _id, - _lib._sel_indexOfObject_inSortedRange_options_usingComparator_1, - object._id, - range, - opts, - cmp._id); + static NSMutableDictionary allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSMutableDictionary1, _lib._sel_allocWithZone_1, zone); + return NSMutableDictionary._(_ret, _lib, retain: false, release: true); } - NSArray sortedArrayUsingComparator_(ObjCBlock6 cmptr) { - final _ret = _lib._objc_msgSend_107( - _id, _lib._sel_sortedArrayUsingComparator_1, cmptr._id); - return NSArray._(_ret, _lib, retain: true, release: true); + static NSMutableDictionary alloc(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableDictionary1, _lib._sel_alloc1); + return NSMutableDictionary._(_ret, _lib, retain: false, release: true); } - NSArray sortedArrayWithOptions_usingComparator_(int opts, ObjCBlock6 cmptr) { - final _ret = _lib._objc_msgSend_108(_id, - _lib._sel_sortedArrayWithOptions_usingComparator_1, opts, cmptr._id); - return NSArray._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + PedometerBindings _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSMutableDictionary1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument?._id ?? ffi.nullptr); } - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_( + PedometerBindings _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSMutableDictionary1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_57( - _id, _lib._sel_descriptionWithLocale_1, locale._id); - return NSString._(_ret, _lib, retain: true, release: true); + static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { + return _lib._objc_msgSend_12(_lib._class_NSMutableDictionary1, + _lib._sel_accessInstanceVariablesDirectly1); } - NSString descriptionWithLocale_indent_(NSObject locale, int level) { - final _ret = _lib._objc_msgSend_58( - _id, _lib._sel_descriptionWithLocale_indent_1, locale._id, level); - return NSString._(_ret, _lib, retain: true, release: true); + static bool useStoredAccessor(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMutableDictionary1, _lib._sel_useStoredAccessor1); } - static NSOrderedSet orderedSet(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSOrderedSet1, _lib._sel_orderedSet1); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + static NSSet keyPathsForValuesAffectingValueForKey_( + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSMutableDictionary1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); + return NSSet._(_ret, _lib, retain: true, release: true); } - static NSOrderedSet orderedSetWithObject_( - PedometerBindings _lib, NSObject object) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithObject_1, object._id); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + static bool automaticallyNotifiesObserversForKey_( + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSMutableDictionary1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } - static NSOrderedSet orderedSetWithObjects_count_(PedometerBindings _lib, - ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_53(_lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithObjects_count_1, objects, cnt); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77(_lib._class_NSMutableDictionary1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSOrderedSet orderedSetWithObjects_( - PedometerBindings _lib, NSObject firstObj) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithObjects_1, firstObj._id); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableDictionary1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - static NSOrderedSet orderedSetWithOrderedSet_( - PedometerBindings _lib, NSOrderedSet? set) { - final _ret = _lib._objc_msgSend_421(_lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithOrderedSet_1, set?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); +abstract class NSQualityOfService { + static const int NSQualityOfServiceUserInteractive = 33; + static const int NSQualityOfServiceUserInitiated = 25; + static const int NSQualityOfServiceUtility = 17; + static const int NSQualityOfServiceBackground = 9; + static const int NSQualityOfServiceDefault = -1; +} + +class NSItemProvider extends NSObject { + NSItemProvider._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSItemProvider] that points to the same underlying object as [other]. + static NSItemProvider castFrom(T other) { + return NSItemProvider._(other._id, other._lib, retain: true, release: true); } - static NSOrderedSet orderedSetWithOrderedSet_range_copyItems_( - PedometerBindings _lib, NSOrderedSet? set, _NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_422( - _lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithOrderedSet_range_copyItems_1, - set?._id ?? ffi.nullptr, - range, - flag); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); + /// Returns a [NSItemProvider] that wraps the given raw object pointer. + static NSItemProvider castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSItemProvider._(other, lib, retain: retain, release: release); } - static NSOrderedSet orderedSetWithArray_( - PedometerBindings _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_59(_lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithArray_1, array?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [NSItemProvider]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSItemProvider1); } - static NSOrderedSet orderedSetWithArray_range_copyItems_( - PedometerBindings _lib, NSArray? array, _NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_423( - _lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithArray_range_copyItems_1, - array?._id ?? ffi.nullptr, - range, - flag); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); + @override + NSItemProvider init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSItemProvider._(_ret, _lib, retain: true, release: true); } - static NSOrderedSet orderedSetWithSet_(PedometerBindings _lib, NSSet? set) { - final _ret = _lib._objc_msgSend_343(_lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithSet_1, set?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + void registerDataRepresentationForTypeIdentifier_visibility_loadHandler_( + NSString typeIdentifier, + int visibility, + ObjCBlock_NSProgress_ffiVoidNSDataNSError loadHandler) { + _lib._objc_msgSend_513( + _id, + _lib._sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_1, + typeIdentifier._id, + visibility, + loadHandler._id); } - static NSOrderedSet orderedSetWithSet_copyItems_( - PedometerBindings _lib, NSSet? set, bool flag) { - final _ret = _lib._objc_msgSend_344(_lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); + void + registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_( + NSString typeIdentifier, + int fileOptions, + int visibility, + ObjCBlock_NSProgress_ffiVoidNSURLboolNSError loadHandler) { + _lib._objc_msgSend_514( + _id, + _lib._sel_registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_1, + typeIdentifier._id, + fileOptions, + visibility, + loadHandler._id); } - NSOrderedSet initWithObject_(NSObject object) { + NSArray get registeredTypeIdentifiers { final _ret = - _lib._objc_msgSend_16(_id, _lib._sel_initWithObject_1, object._id); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_77(_id, _lib._sel_registeredTypeIdentifiers1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSOrderedSet initWithObjects_(NSObject firstObj) { - final _ret = - _lib._objc_msgSend_16(_id, _lib._sel_initWithObjects_1, firstObj._id); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + NSArray registeredTypeIdentifiersWithFileOptions_(int fileOptions) { + final _ret = _lib._objc_msgSend_515( + _id, _lib._sel_registeredTypeIdentifiersWithFileOptions_1, fileOptions); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSOrderedSet initWithOrderedSet_(NSOrderedSet? set) { - final _ret = _lib._objc_msgSend_421( - _id, _lib._sel_initWithOrderedSet_1, set?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + bool hasItemConformingToTypeIdentifier_(NSString typeIdentifier) { + return _lib._objc_msgSend_56( + _id, _lib._sel_hasItemConformingToTypeIdentifier_1, typeIdentifier._id); } - NSOrderedSet initWithOrderedSet_copyItems_(NSOrderedSet? set, bool flag) { - final _ret = _lib._objc_msgSend_424( + bool hasRepresentationConformingToTypeIdentifier_fileOptions_( + NSString typeIdentifier, int fileOptions) { + return _lib._objc_msgSend_516( _id, - _lib._sel_initWithOrderedSet_copyItems_1, - set?._id ?? ffi.nullptr, - flag); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); + _lib._sel_hasRepresentationConformingToTypeIdentifier_fileOptions_1, + typeIdentifier._id, + fileOptions); } - NSOrderedSet initWithOrderedSet_range_copyItems_( - NSOrderedSet? set, _NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_422( + NSProgress loadDataRepresentationForTypeIdentifier_completionHandler_( + NSString typeIdentifier, + ObjCBlock_ffiVoid_NSData_NSError completionHandler) { + final _ret = _lib._objc_msgSend_517( _id, - _lib._sel_initWithOrderedSet_range_copyItems_1, - set?._id ?? ffi.nullptr, - range, - flag); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); + _lib._sel_loadDataRepresentationForTypeIdentifier_completionHandler_1, + typeIdentifier._id, + completionHandler._id); + return NSProgress._(_ret, _lib, retain: true, release: true); } - NSOrderedSet initWithArray_(NSArray? array) { - final _ret = _lib._objc_msgSend_59( - _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + NSProgress loadFileRepresentationForTypeIdentifier_completionHandler_( + NSString typeIdentifier, + ObjCBlock_ffiVoid_NSURL_NSError completionHandler) { + final _ret = _lib._objc_msgSend_518( + _id, + _lib._sel_loadFileRepresentationForTypeIdentifier_completionHandler_1, + typeIdentifier._id, + completionHandler._id); + return NSProgress._(_ret, _lib, retain: true, release: true); } - NSOrderedSet initWithArray_copyItems_(NSArray? set, bool flag) { - final _ret = _lib._objc_msgSend_110(_id, - _lib._sel_initWithArray_copyItems_1, set?._id ?? ffi.nullptr, flag); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); + NSProgress loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_( + NSString typeIdentifier, + ObjCBlock_ffiVoid_NSURL_bool_NSError completionHandler) { + final _ret = _lib._objc_msgSend_519( + _id, + _lib._sel_loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_1, + typeIdentifier._id, + completionHandler._id); + return NSProgress._(_ret, _lib, retain: true, release: true); } - NSOrderedSet initWithArray_range_copyItems_( - NSArray? set, _NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_423( - _id, - _lib._sel_initWithArray_range_copyItems_1, - set?._id ?? ffi.nullptr, - range, - flag); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); + NSString? get suggestedName { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_suggestedName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSOrderedSet initWithSet_(NSSet? set) { - final _ret = _lib._objc_msgSend_343( - _id, _lib._sel_initWithSet_1, set?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + set suggestedName(NSString? value) { + return _lib._objc_msgSend_493( + _id, _lib._sel_setSuggestedName_1, value?._id ?? ffi.nullptr); } - NSOrderedSet initWithSet_copyItems_(NSSet? set, bool flag) { - final _ret = _lib._objc_msgSend_344( - _id, _lib._sel_initWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); + NSItemProvider initWithObject_(NSObject object) { + final _ret = + _lib._objc_msgSend_115(_id, _lib._sel_initWithObject_1, object._id); + return NSItemProvider._(_ret, _lib, retain: true, release: true); } - NSObject differenceFromOrderedSet_withOptions_usingEquivalenceTest_( - NSOrderedSet? other, int options, ObjCBlock7 block) { - final _ret = _lib._objc_msgSend_425( - _id, - _lib._sel_differenceFromOrderedSet_withOptions_usingEquivalenceTest_1, - other?._id ?? ffi.nullptr, - options, - block._id); - return NSObject._(_ret, _lib, retain: true, release: true); + void registerObject_visibility_(NSObject object, int visibility) { + _lib._objc_msgSend_520( + _id, _lib._sel_registerObject_visibility_1, object._id, visibility); } - NSObject differenceFromOrderedSet_withOptions_( - NSOrderedSet? other, int options) { - final _ret = _lib._objc_msgSend_426( + void registerObjectOfClass_visibility_loadHandler_( + NSObject aClass, + int visibility, + ObjCBlock_NSProgress_ffiVoidObjCObjectNSError loadHandler) { + _lib._objc_msgSend_521( _id, - _lib._sel_differenceFromOrderedSet_withOptions_1, - other?._id ?? ffi.nullptr, - options); - return NSObject._(_ret, _lib, retain: true, release: true); + _lib._sel_registerObjectOfClass_visibility_loadHandler_1, + aClass._id, + visibility, + loadHandler._id); } - NSObject differenceFromOrderedSet_(NSOrderedSet? other) { - final _ret = _lib._objc_msgSend_421( - _id, _lib._sel_differenceFromOrderedSet_1, other?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + bool canLoadObjectOfClass_(NSObject aClass) { + return _lib._objc_msgSend_0( + _id, _lib._sel_canLoadObjectOfClass_1, aClass._id); } - NSOrderedSet orderedSetByApplyingDifference_(NSObject? difference) { - final _ret = _lib._objc_msgSend_427( + NSProgress loadObjectOfClass_completionHandler_( + NSObject aClass, ObjCBlock_ffiVoid_ObjCObject_NSError completionHandler) { + final _ret = _lib._objc_msgSend_522( _id, - _lib._sel_orderedSetByApplyingDifference_1, - difference?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + _lib._sel_loadObjectOfClass_completionHandler_1, + aClass._id, + completionHandler._id); + return NSProgress._(_ret, _lib, retain: true, release: true); } - @override - NSObject valueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_valueForKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSItemProvider initWithItem_typeIdentifier_( + NSObject? item, NSString? typeIdentifier) { + final _ret = _lib._objc_msgSend_523( + _id, + _lib._sel_initWithItem_typeIdentifier_1, + item?._id ?? ffi.nullptr, + typeIdentifier?._id ?? ffi.nullptr); + return NSItemProvider._(_ret, _lib, retain: true, release: true); } - @override - void setValue_forKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_118( - _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); + NSItemProvider? initWithContentsOfURL_(NSURL fileURL) { + final _ret = _lib._objc_msgSend_218( + _id, _lib._sel_initWithContentsOfURL_1, fileURL._id); + return _ret.address == 0 + ? null + : NSItemProvider._(_ret, _lib, retain: true, release: true); } - @override - void addObserver_forKeyPath_options_context_(NSObject? observer, - NSString? keyPath, int options, ffi.Pointer context) { - return _lib._objc_msgSend_122( + void registerItemForTypeIdentifier_loadHandler_( + NSString typeIdentifier, + ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary + loadHandler) { + _lib._objc_msgSend_524( _id, - _lib._sel_addObserver_forKeyPath_options_context_1, - observer?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, - options, - context); + _lib._sel_registerItemForTypeIdentifier_loadHandler_1, + typeIdentifier._id, + loadHandler._id); } - @override - void removeObserver_forKeyPath_context_( - NSObject? observer, NSString? keyPath, ffi.Pointer context) { - return _lib._objc_msgSend_123( + void loadItemForTypeIdentifier_options_completionHandler_( + NSString typeIdentifier, + NSDictionary? options, + ObjCBlock_ffiVoid_ObjCObject_NSError1? completionHandler) { + _lib._objc_msgSend_525( _id, - _lib._sel_removeObserver_forKeyPath_context_1, - observer?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, - context); + _lib._sel_loadItemForTypeIdentifier_options_completionHandler_1, + typeIdentifier._id, + options?._id ?? ffi.nullptr, + completionHandler?._id ?? ffi.nullptr); } - @override - void removeObserver_forKeyPath_(NSObject? observer, NSString? keyPath) { - return _lib._objc_msgSend_124(_id, _lib._sel_removeObserver_forKeyPath_1, - observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); + ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary? + get previewImageHandler { + final _ret = _lib._objc_msgSend_526(_id, _lib._sel_previewImageHandler1); + return _ret.address == 0 + ? null + : ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary._( + _ret, _lib, + retain: true, release: true); } - NSArray sortedArrayUsingDescriptors_(NSArray? sortDescriptors) { - final _ret = _lib._objc_msgSend_55( - _id, - _lib._sel_sortedArrayUsingDescriptors_1, - sortDescriptors?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + set previewImageHandler( + ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary? + value) { + return _lib._objc_msgSend_527( + _id, _lib._sel_setPreviewImageHandler_1, value?._id ?? ffi.nullptr); } - NSOrderedSet filteredOrderedSetUsingPredicate_(NSPredicate? p) { - final _ret = _lib._objc_msgSend_428(_id, - _lib._sel_filteredOrderedSetUsingPredicate_1, p?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + void loadPreviewImageWithOptions_completionHandler_(NSDictionary options, + ObjCBlock_ffiVoid_ObjCObject_NSError1 completionHandler) { + _lib._objc_msgSend_528( + _id, + _lib._sel_loadPreviewImageWithOptions_completionHandler_1, + options._id, + completionHandler._id); } - static NSOrderedSet new1(PedometerBindings _lib) { + static NSItemProvider new1(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSOrderedSet1, _lib._sel_new1); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSItemProvider1, _lib._sel_new1); + return NSItemProvider._(_ret, _lib, retain: false, release: true); } - static NSOrderedSet alloc(PedometerBindings _lib) { + static NSItemProvider allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSItemProvider1, _lib._sel_allocWithZone_1, zone); + return NSItemProvider._(_ret, _lib, retain: false, release: true); + } + + static NSItemProvider alloc(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSOrderedSet1, _lib._sel_alloc1); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSItemProvider1, _lib._sel_alloc1); + return NSItemProvider._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSOrderedSet1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSItemProvider1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSOrderedSet1, + _lib._objc_msgSend_15(_lib._class_NSItemProvider1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSOrderedSet1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSItemProvider1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSOrderedSet1, _lib._sel_useStoredAccessor1); + _lib._class_NSItemProvider1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSOrderedSet1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSItemProvider1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSOrderedSet1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSOrderedSet1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSItemProvider1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSOrderedSet1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_NSItemProvider1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSOrderedSet1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSItemProvider1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -/// Mutable Set -class NSMutableSet extends NSSet { - NSMutableSet._(ffi.Pointer id, PedometerBindings lib, +abstract class NSItemProviderRepresentationVisibility { + static const int NSItemProviderRepresentationVisibilityAll = 0; + static const int NSItemProviderRepresentationVisibilityTeam = 1; + static const int NSItemProviderRepresentationVisibilityGroup = 2; + static const int NSItemProviderRepresentationVisibilityOwnProcess = 3; +} + +ffi.Pointer< + ObjCObject> _ObjCBlock_NSProgress_ffiVoidNSDataNSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> arg0)>>() + .asFunction< + ffi.Pointer Function(ffi.Pointer<_ObjCBlock>)>()(arg0); +final _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureRegistry = + Function(ffi.Pointer<_ObjCBlock>)>{}; +int _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_registerClosure( + ffi.Pointer Function(ffi.Pointer<_ObjCBlock>) fn) { + final id = ++_ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureRegistryIndex; + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +ffi.Pointer + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) => + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureRegistry[ + block.ref.target.address]!(arg0); + +class ObjCBlock_NSProgress_ffiVoidNSDataNSError extends _ObjCBlockBase { + ObjCBlock_NSProgress_ffiVoidNSDataNSError._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_NSProgress_ffiVoidNSDataNSError.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer<_ObjCBlock>)>( + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_NSProgress_ffiVoidNSDataNSError.fromFunction(PedometerBindings lib, + NSProgress? Function(ObjCBlock_ffiVoid_NSData_NSError) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock>, ffi.Pointer<_ObjCBlock>)>( + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureTrampoline) + .cast(), + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_registerClosure((ffi + .Pointer<_ObjCBlock> + arg0) => + fn(ObjCBlock_ffiVoid_NSData_NSError._(arg0, lib, retain: true, release: true)) + ?._retainAndReturnId() ?? + ffi.nullptr)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + NSProgress? call(ObjCBlock_ffiVoid_NSData_NSError arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0)>>() + .asFunction Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer<_ObjCBlock>)>() + (_id, arg0._id) + .address == + 0 + ? null + : NSProgress._( + _id.ref.invoke + .cast Function(ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0)>>() + .asFunction Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer<_ObjCBlock>)>()(_id, arg0._id), + _lib, + retain: false, + release: true); +} + +class NSProgress extends NSObject { + NSProgress._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSMutableSet] that points to the same underlying object as [other]. - static NSMutableSet castFrom(T other) { - return NSMutableSet._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSProgress] that points to the same underlying object as [other]. + static NSProgress castFrom(T other) { + return NSProgress._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSMutableSet] that wraps the given raw object pointer. - static NSMutableSet castFromPointer( + /// Returns a [NSProgress] that wraps the given raw object pointer. + static NSProgress castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSMutableSet._(other, lib, retain: retain, release: release); + return NSProgress._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSMutableSet]. + /// Returns whether [obj] is an instance of [NSProgress]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSMutableSet1); - } - - void addObject_(NSObject object) { - return _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, object._id); - } - - void removeObject_(NSObject object) { - return _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, object._id); - } - - @override - NSMutableSet initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSMutableSet._(_ret, _lib, retain: true, release: true); - } - - @override - NSMutableSet init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSMutableSet._(_ret, _lib, retain: true, release: true); - } - - NSMutableSet initWithCapacity_(int numItems) { - final _ret = - _lib._objc_msgSend_52(_id, _lib._sel_initWithCapacity_1, numItems); - return NSMutableSet._(_ret, _lib, retain: true, release: true); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSProgress1); } - void addObjectsFromArray_(NSArray? array) { - return _lib._objc_msgSend_403( - _id, _lib._sel_addObjectsFromArray_1, array?._id ?? ffi.nullptr); + static NSProgress? currentProgress(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_498( + _lib._class_NSProgress1, _lib._sel_currentProgress1); + return _ret.address == 0 + ? null + : NSProgress._(_ret, _lib, retain: true, release: true); } - void intersectSet_(NSSet? otherSet) { - return _lib._objc_msgSend_433( - _id, _lib._sel_intersectSet_1, otherSet?._id ?? ffi.nullptr); + static NSProgress progressWithTotalUnitCount_( + PedometerBindings _lib, int unitCount) { + final _ret = _lib._objc_msgSend_499(_lib._class_NSProgress1, + _lib._sel_progressWithTotalUnitCount_1, unitCount); + return NSProgress._(_ret, _lib, retain: true, release: true); } - void minusSet_(NSSet? otherSet) { - return _lib._objc_msgSend_433( - _id, _lib._sel_minusSet_1, otherSet?._id ?? ffi.nullptr); + static NSProgress discreteProgressWithTotalUnitCount_( + PedometerBindings _lib, int unitCount) { + final _ret = _lib._objc_msgSend_499(_lib._class_NSProgress1, + _lib._sel_discreteProgressWithTotalUnitCount_1, unitCount); + return NSProgress._(_ret, _lib, retain: true, release: true); } - void removeAllObjects() { - return _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); + static NSProgress progressWithTotalUnitCount_parent_pendingUnitCount_( + PedometerBindings _lib, + int unitCount, + NSProgress parent, + int portionOfParentTotalUnitCount) { + final _ret = _lib._objc_msgSend_500( + _lib._class_NSProgress1, + _lib._sel_progressWithTotalUnitCount_parent_pendingUnitCount_1, + unitCount, + parent._id, + portionOfParentTotalUnitCount); + return NSProgress._(_ret, _lib, retain: true, release: true); } - void unionSet_(NSSet? otherSet) { - return _lib._objc_msgSend_433( - _id, _lib._sel_unionSet_1, otherSet?._id ?? ffi.nullptr); + NSProgress initWithParent_userInfo_( + NSProgress? parentProgressOrNil, NSObject? userInfoOrNil) { + final _ret = _lib._objc_msgSend_501( + _id, + _lib._sel_initWithParent_userInfo_1, + parentProgressOrNil?._id ?? ffi.nullptr, + userInfoOrNil?._id ?? ffi.nullptr); + return NSProgress._(_ret, _lib, retain: true, release: true); } - void setSet_(NSSet? otherSet) { - return _lib._objc_msgSend_433( - _id, _lib._sel_setSet_1, otherSet?._id ?? ffi.nullptr); + void becomeCurrentWithPendingUnitCount_(int unitCount) { + _lib._objc_msgSend_502( + _id, _lib._sel_becomeCurrentWithPendingUnitCount_1, unitCount); } - static NSMutableSet setWithCapacity_(PedometerBindings _lib, int numItems) { - final _ret = _lib._objc_msgSend_52( - _lib._class_NSMutableSet1, _lib._sel_setWithCapacity_1, numItems); - return NSMutableSet._(_ret, _lib, retain: true, release: true); + void performAsCurrentWithPendingUnitCount_usingBlock_( + int unitCount, ObjCBlock_ffiVoid work) { + _lib._objc_msgSend_503( + _id, + _lib._sel_performAsCurrentWithPendingUnitCount_usingBlock_1, + unitCount, + work._id); } - void filterUsingPredicate_(NSPredicate? predicate) { - return _lib._objc_msgSend_418( - _id, _lib._sel_filterUsingPredicate_1, predicate?._id ?? ffi.nullptr); + void resignCurrent() { + _lib._objc_msgSend_1(_id, _lib._sel_resignCurrent1); } - static NSMutableSet set1(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableSet1, _lib._sel_set1); - return NSMutableSet._(_ret, _lib, retain: true, release: true); + void addChild_withPendingUnitCount_(NSProgress child, int inUnitCount) { + _lib._objc_msgSend_504( + _id, _lib._sel_addChild_withPendingUnitCount_1, child._id, inUnitCount); } - static NSMutableSet setWithObject_(PedometerBindings _lib, NSObject object) { - final _ret = _lib._objc_msgSend_16( - _lib._class_NSMutableSet1, _lib._sel_setWithObject_1, object._id); - return NSMutableSet._(_ret, _lib, retain: true, release: true); + int get totalUnitCount { + return _lib._objc_msgSend_505(_id, _lib._sel_totalUnitCount1); } - static NSMutableSet setWithObjects_count_(PedometerBindings _lib, - ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_53(_lib._class_NSMutableSet1, - _lib._sel_setWithObjects_count_1, objects, cnt); - return NSMutableSet._(_ret, _lib, retain: true, release: true); + set totalUnitCount(int value) { + return _lib._objc_msgSend_506(_id, _lib._sel_setTotalUnitCount_1, value); } - static NSMutableSet setWithObjects_( - PedometerBindings _lib, NSObject firstObj) { - final _ret = _lib._objc_msgSend_16( - _lib._class_NSMutableSet1, _lib._sel_setWithObjects_1, firstObj._id); - return NSMutableSet._(_ret, _lib, retain: true, release: true); + int get completedUnitCount { + return _lib._objc_msgSend_505(_id, _lib._sel_completedUnitCount1); } - static NSMutableSet setWithSet_(PedometerBindings _lib, NSSet? set) { - final _ret = _lib._objc_msgSend_343(_lib._class_NSMutableSet1, - _lib._sel_setWithSet_1, set?._id ?? ffi.nullptr); - return NSMutableSet._(_ret, _lib, retain: true, release: true); + set completedUnitCount(int value) { + return _lib._objc_msgSend_506( + _id, _lib._sel_setCompletedUnitCount_1, value); } - static NSMutableSet setWithArray_(PedometerBindings _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_59(_lib._class_NSMutableSet1, - _lib._sel_setWithArray_1, array?._id ?? ffi.nullptr); - return NSMutableSet._(_ret, _lib, retain: true, release: true); + NSString get localizedDescription { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_localizedDescription1); + return NSString._(_ret, _lib, retain: true, release: true); } - static NSMutableSet new1(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableSet1, _lib._sel_new1); - return NSMutableSet._(_ret, _lib, retain: false, release: true); + set localizedDescription(NSString value) { + return _lib._objc_msgSend_507( + _id, _lib._sel_setLocalizedDescription_1, value._id); } - static NSMutableSet alloc(PedometerBindings _lib) { + NSString get localizedAdditionalDescription { final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableSet1, _lib._sel_alloc1); - return NSMutableSet._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_21(_id, _lib._sel_localizedAdditionalDescription1); + return NSString._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - PedometerBindings _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSMutableSet1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + set localizedAdditionalDescription(NSString value) { + return _lib._objc_msgSend_507( + _id, _lib._sel_setLocalizedAdditionalDescription_1, value._id); } - static void cancelPreviousPerformRequestsWithTarget_( - PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMutableSet1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + bool get cancellable { + return _lib._objc_msgSend_12(_id, _lib._sel_isCancellable1); } - static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMutableSet1, _lib._sel_accessInstanceVariablesDirectly1); + set cancellable(bool value) { + return _lib._objc_msgSend_475(_id, _lib._sel_setCancellable_1, value); } - static bool useStoredAccessor(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMutableSet1, _lib._sel_useStoredAccessor1); + bool get pausable { + return _lib._objc_msgSend_12(_id, _lib._sel_isPausable1); } - static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSMutableSet1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + set pausable(bool value) { + return _lib._objc_msgSend_475(_id, _lib._sel_setPausable_1, value); } - static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSMutableSet1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + bool get cancelled { + return _lib._objc_msgSend_12(_id, _lib._sel_isCancelled1); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSMutableSet1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + bool get paused { + return _lib._objc_msgSend_12(_id, _lib._sel_isPaused1); } - static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSMutableSet1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + ObjCBlock_ffiVoid? get cancellationHandler { + final _ret = _lib._objc_msgSend_508(_id, _lib._sel_cancellationHandler1); + return _ret.address == 0 + ? null + : ObjCBlock_ffiVoid._(_ret, _lib, retain: true, release: true); } - static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableSet1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + set cancellationHandler(ObjCBlock_ffiVoid? value) { + return _lib._objc_msgSend_509( + _id, _lib._sel_setCancellationHandler_1, value?._id ?? ffi.nullptr); } -} -abstract class NSKeyValueChange { - static const int NSKeyValueChangeSetting = 1; - static const int NSKeyValueChangeInsertion = 2; - static const int NSKeyValueChangeRemoval = 3; - static const int NSKeyValueChangeReplacement = 4; -} + ObjCBlock_ffiVoid? get pausingHandler { + final _ret = _lib._objc_msgSend_508(_id, _lib._sel_pausingHandler1); + return _ret.address == 0 + ? null + : ObjCBlock_ffiVoid._(_ret, _lib, retain: true, release: true); + } -abstract class NSKeyValueSetMutationKind { - static const int NSKeyValueUnionSetMutation = 1; - static const int NSKeyValueMinusSetMutation = 2; - static const int NSKeyValueIntersectSetMutation = 3; - static const int NSKeyValueSetSetMutation = 4; -} + set pausingHandler(ObjCBlock_ffiVoid? value) { + return _lib._objc_msgSend_509( + _id, _lib._sel_setPausingHandler_1, value?._id ?? ffi.nullptr); + } -class NSKeyedArchiver extends NSCoder { - NSKeyedArchiver._(ffi.Pointer id, PedometerBindings lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + ObjCBlock_ffiVoid? get resumingHandler { + final _ret = _lib._objc_msgSend_508(_id, _lib._sel_resumingHandler1); + return _ret.address == 0 + ? null + : ObjCBlock_ffiVoid._(_ret, _lib, retain: true, release: true); + } - /// Returns a [NSKeyedArchiver] that points to the same underlying object as [other]. - static NSKeyedArchiver castFrom(T other) { - return NSKeyedArchiver._(other._id, other._lib, - retain: true, release: true); + set resumingHandler(ObjCBlock_ffiVoid? value) { + return _lib._objc_msgSend_509( + _id, _lib._sel_setResumingHandler_1, value?._id ?? ffi.nullptr); } - /// Returns a [NSKeyedArchiver] that wraps the given raw object pointer. - static NSKeyedArchiver castFromPointer( - PedometerBindings lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSKeyedArchiver._(other, lib, retain: retain, release: release); + void setUserInfoObject_forKey_(NSObject? objectOrNil, NSString key) { + _lib._objc_msgSend_126(_id, _lib._sel_setUserInfoObject_forKey_1, + objectOrNil?._id ?? ffi.nullptr, key._id); } - /// Returns whether [obj] is an instance of [NSKeyedArchiver]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSKeyedArchiver1); + bool get indeterminate { + return _lib._objc_msgSend_12(_id, _lib._sel_isIndeterminate1); } - /// Initializes the receiver for encoding an archive, optionally disabling secure coding. - /// - /// If \c NSSecureCoding cannot be used, \c requiresSecureCoding may be turned off here; for improved security, however, \c requiresSecureCoding should be left enabled whenever possible. \c requiresSecureCoding ensures that all encoded objects conform to \c NSSecureCoding, preventing the possibility of encoding objects which cannot be decoded later. - /// - /// To produce archives whose structure matches those previously encoded using \c +archivedDataWithRootObject, encode the top-level object in your archive for the \c NSKeyedArchiveRootObjectKey. - NSKeyedArchiver initRequiringSecureCoding_(bool requiresSecureCoding) { - final _ret = _lib._objc_msgSend_200( - _id, _lib._sel_initRequiringSecureCoding_1, requiresSecureCoding); - return NSKeyedArchiver._(_ret, _lib, retain: true, release: true); + double get fractionCompleted { + return _lib._objc_msgSend_156(_id, _lib._sel_fractionCompleted1); } - /// Returns an \c NSData object containing the encoded form of the object graph whose root object is given, optionally disabling secure coding. - /// - /// If \c NSSecureCoding cannot be used, \c requiresSecureCoding may be turned off here; for improved security, however, \c requiresSecureCoding should be left enabled whenever possible. \c requiresSecureCoding ensures that all encoded objects conform to \c NSSecureCoding, preventing the possibility of encoding objects which cannot be decoded later. - /// - /// If the object graph cannot be encoded, returns \c nil and sets the \c error out parameter. - static NSData archivedDataWithRootObject_requiringSecureCoding_error_( - PedometerBindings _lib, - NSObject object, - bool requiresSecureCoding, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_443( - _lib._class_NSKeyedArchiver1, - _lib._sel_archivedDataWithRootObject_requiringSecureCoding_error_1, - object._id, - requiresSecureCoding, - error); - return NSData._(_ret, _lib, retain: true, release: true); + bool get finished { + return _lib._objc_msgSend_12(_id, _lib._sel_isFinished1); } - /// Initialize the archiver with empty data, ready for writing. - NSKeyedArchiver init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSKeyedArchiver._(_ret, _lib, retain: true, release: true); + void cancel() { + _lib._objc_msgSend_1(_id, _lib._sel_cancel1); } - NSKeyedArchiver initForWritingWithMutableData_(NSMutableData? data) { - final _ret = _lib._objc_msgSend_448(_id, - _lib._sel_initForWritingWithMutableData_1, data?._id ?? ffi.nullptr); - return NSKeyedArchiver._(_ret, _lib, retain: true, release: true); + void pause() { + _lib._objc_msgSend_1(_id, _lib._sel_pause1); } - static NSData archivedDataWithRootObject_( - PedometerBindings _lib, NSObject rootObject) { - final _ret = _lib._objc_msgSend_449(_lib._class_NSKeyedArchiver1, - _lib._sel_archivedDataWithRootObject_1, rootObject._id); - return NSData._(_ret, _lib, retain: true, release: true); + void resume() { + _lib._objc_msgSend_1(_id, _lib._sel_resume1); } - static bool archiveRootObject_toFile_( - PedometerBindings _lib, NSObject rootObject, NSString? path) { - return _lib._objc_msgSend_199( - _lib._class_NSKeyedArchiver1, - _lib._sel_archiveRootObject_toFile_1, - rootObject._id, - path?._id ?? ffi.nullptr); + NSObject get userInfo { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_userInfo1); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + NSString? get kind { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_kind1); return _ret.address == 0 ? null - : NSObject._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - set delegate(NSObject? value) { - _lib._objc_msgSend_348( - _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); + set kind(NSString? value) { + return _lib._objc_msgSend_493( + _id, _lib._sel_setKind_1, value?._id ?? ffi.nullptr); } - int get outputFormat { - return _lib._objc_msgSend_450(_id, _lib._sel_outputFormat1); + NSNumber? get estimatedTimeRemaining { + final _ret = _lib._objc_msgSend_166(_id, _lib._sel_estimatedTimeRemaining1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } - set outputFormat(int value) { - _lib._objc_msgSend_451(_id, _lib._sel_setOutputFormat_1, value); + set estimatedTimeRemaining(NSNumber? value) { + return _lib._objc_msgSend_510( + _id, _lib._sel_setEstimatedTimeRemaining_1, value?._id ?? ffi.nullptr); } - /// If encoding has not yet finished, then invoking this property will call finishEncoding and return the data. If you initialized the keyed archiver with a specific mutable data instance, then it will be returned from this property after finishEncoding is called. - NSData? get encodedData { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_encodedData1); + NSNumber? get throughput { + final _ret = _lib._objc_msgSend_166(_id, _lib._sel_throughput1); return _ret.address == 0 ? null - : NSData._(_ret, _lib, retain: true, release: true); + : NSNumber._(_ret, _lib, retain: true, release: true); } - void finishEncoding() { - return _lib._objc_msgSend_1(_id, _lib._sel_finishEncoding1); + set throughput(NSNumber? value) { + return _lib._objc_msgSend_510( + _id, _lib._sel_setThroughput_1, value?._id ?? ffi.nullptr); } - static void setClassName_forClass_( - PedometerBindings _lib, NSString? codedName, NSObject cls) { - return _lib._objc_msgSend_452( - _lib._class_NSKeyedArchiver1, - _lib._sel_setClassName_forClass_1, - codedName?._id ?? ffi.nullptr, - cls._id); + NSString? get fileOperationKind { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_fileOperationKind1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSString classNameForClass_(PedometerBindings _lib, NSObject cls) { - final _ret = _lib._objc_msgSend_57( - _lib._class_NSKeyedArchiver1, _lib._sel_classNameForClass_1, cls._id); - return NSString._(_ret, _lib, retain: true, release: true); + set fileOperationKind(NSString? value) { + return _lib._objc_msgSend_493( + _id, _lib._sel_setFileOperationKind_1, value?._id ?? ffi.nullptr); } - @override - void encodeObject_forKey_(NSObject object, NSString? key) { - return _lib._objc_msgSend_118(_id, _lib._sel_encodeObject_forKey_1, - object._id, key?._id ?? ffi.nullptr); + NSURL? get fileURL { + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_fileURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - @override - void encodeConditionalObject_forKey_(NSObject object, NSString? key) { - return _lib._objc_msgSend_118( - _id, - _lib._sel_encodeConditionalObject_forKey_1, - object._id, - key?._id ?? ffi.nullptr); + set fileURL(NSURL? value) { + return _lib._objc_msgSend_511( + _id, _lib._sel_setFileURL_1, value?._id ?? ffi.nullptr); } - @override - void encodeBool_forKey_(bool value, NSString? key) { - return _lib._objc_msgSend_226( - _id, _lib._sel_encodeBool_forKey_1, value, key?._id ?? ffi.nullptr); + NSNumber? get fileTotalCount { + final _ret = _lib._objc_msgSend_166(_id, _lib._sel_fileTotalCount1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } - @override - void encodeInt_forKey_(int value, NSString? key) { - return _lib._objc_msgSend_227( - _id, _lib._sel_encodeInt_forKey_1, value, key?._id ?? ffi.nullptr); + set fileTotalCount(NSNumber? value) { + return _lib._objc_msgSend_510( + _id, _lib._sel_setFileTotalCount_1, value?._id ?? ffi.nullptr); } - @override - void encodeInt32_forKey_(int value, NSString? key) { - return _lib._objc_msgSend_228( - _id, _lib._sel_encodeInt32_forKey_1, value, key?._id ?? ffi.nullptr); + NSNumber? get fileCompletedCount { + final _ret = _lib._objc_msgSend_166(_id, _lib._sel_fileCompletedCount1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } - @override - void encodeInt64_forKey_(int value, NSString? key) { - return _lib._objc_msgSend_229( - _id, _lib._sel_encodeInt64_forKey_1, value, key?._id ?? ffi.nullptr); + set fileCompletedCount(NSNumber? value) { + return _lib._objc_msgSend_510( + _id, _lib._sel_setFileCompletedCount_1, value?._id ?? ffi.nullptr); } - @override - void encodeFloat_forKey_(double value, NSString? key) { - return _lib._objc_msgSend_230( - _id, _lib._sel_encodeFloat_forKey_1, value, key?._id ?? ffi.nullptr); + void publish() { + _lib._objc_msgSend_1(_id, _lib._sel_publish1); } - @override - void encodeDouble_forKey_(double value, NSString? key) { - return _lib._objc_msgSend_231( - _id, _lib._sel_encodeDouble_forKey_1, value, key?._id ?? ffi.nullptr); + void unpublish() { + _lib._objc_msgSend_1(_id, _lib._sel_unpublish1); } - @override - void encodeBytes_length_forKey_( - ffi.Pointer bytes, int length, NSString? key) { - return _lib._objc_msgSend_232(_id, _lib._sel_encodeBytes_length_forKey_1, - bytes, length, key?._id ?? ffi.nullptr); + static NSObject addSubscriberForFileURL_withPublishingHandler_( + PedometerBindings _lib, + NSURL url, + ObjCBlock_ffiVoid_NSProgress publishingHandler) { + final _ret = _lib._objc_msgSend_512( + _lib._class_NSProgress1, + _lib._sel_addSubscriberForFileURL_withPublishingHandler_1, + url._id, + publishingHandler._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static void removeSubscriber_(PedometerBindings _lib, NSObject subscriber) { + _lib._objc_msgSend_15( + _lib._class_NSProgress1, _lib._sel_removeSubscriber_1, subscriber._id); + } + + bool get old { + return _lib._objc_msgSend_12(_id, _lib._sel_isOld1); } @override - bool get requiresSecureCoding { - return _lib._objc_msgSend_12(_id, _lib._sel_requiresSecureCoding1); + NSProgress init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSProgress._(_ret, _lib, retain: true, release: true); } - set requiresSecureCoding(bool value) { - _lib._objc_msgSend_453(_id, _lib._sel_setRequiresSecureCoding_1, value); + static NSProgress new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSProgress1, _lib._sel_new1); + return NSProgress._(_ret, _lib, retain: false, release: true); } - static NSKeyedArchiver new1(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSKeyedArchiver1, _lib._sel_new1); - return NSKeyedArchiver._(_ret, _lib, retain: false, release: true); + static NSProgress allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSProgress1, _lib._sel_allocWithZone_1, zone); + return NSProgress._(_ret, _lib, retain: false, release: true); } - static NSKeyedArchiver alloc(PedometerBindings _lib) { + static NSProgress alloc(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSKeyedArchiver1, _lib._sel_alloc1); - return NSKeyedArchiver._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSProgress1, _lib._sel_alloc1); + return NSProgress._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSKeyedArchiver1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSProgress1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSKeyedArchiver1, + _lib._objc_msgSend_15(_lib._class_NSProgress1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSKeyedArchiver1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSProgress1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSKeyedArchiver1, _lib._sel_useStoredAccessor1); + _lib._class_NSProgress1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSKeyedArchiver1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSProgress1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSKeyedArchiver1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSKeyedArchiver1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSProgress1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71(_lib._class_NSKeyedArchiver1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_NSProgress1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSKeyedArchiver1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSProgress1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -/// Mutable Data -class NSMutableData extends NSData { - NSMutableData._(ffi.Pointer id, PedometerBindings lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSMutableData] that points to the same underlying object as [other]. - static NSMutableData castFrom(T other) { - return NSMutableData._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSMutableData] that wraps the given raw object pointer. - static NSMutableData castFromPointer( - PedometerBindings lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSMutableData._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSMutableData]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSMutableData1); - } - - ffi.Pointer get mutableBytes { - return _lib._objc_msgSend_19(_id, _lib._sel_mutableBytes1); - } - - @override - int get length { - return _lib._objc_msgSend_10(_id, _lib._sel_length1); - } +ffi.Pointer<_ObjCBlock> _ObjCBlock_ffiVoid_NSProgress_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer arg0)>>() + .asFunction< + ffi.Pointer<_ObjCBlock> Function(ffi.Pointer)>()(arg0); +final _ObjCBlock_ffiVoid_NSProgress_closureRegistry = + Function(ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSProgress_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSProgress_registerClosure( + ffi.Pointer<_ObjCBlock> Function(ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSProgress_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSProgress_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - set length(int value) { - _lib._objc_msgSend_444(_id, _lib._sel_setLength_1, value); - } +ffi.Pointer<_ObjCBlock> _ObjCBlock_ffiVoid_NSProgress_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + _ObjCBlock_ffiVoid_NSProgress_closureRegistry[block.ref.target.address]!( + arg0); - void appendBytes_length_(ffi.Pointer bytes, int length) { - return _lib._objc_msgSend_21( - _id, _lib._sel_appendBytes_length_1, bytes, length); - } +class ObjCBlock_ffiVoid_NSProgress extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSProgress._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); - void appendData_(NSData? other) { - return _lib._objc_msgSend_217( - _id, _lib._sel_appendData_1, other?._id ?? ffi.nullptr); - } + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSProgress.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSProgress_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - void increaseLengthBy_(int extraLength) { - return _lib._objc_msgSend_401( - _id, _lib._sel_increaseLengthBy_1, extraLength); - } + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSProgress.fromFunction( + PedometerBindings lib, ObjCBlock_ffiVoid? Function(NSProgress) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSProgress_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSProgress_registerClosure( + (ffi.Pointer arg0) => + fn(NSProgress._(arg0, lib, retain: true, release: true)) + ?._retainAndReturnId() ?? + ffi.nullptr)), + lib); + static ffi.Pointer? _dartFuncTrampoline; - void replaceBytesInRange_withBytes_( - _NSRange range, ffi.Pointer bytes) { - return _lib._objc_msgSend_445( - _id, _lib._sel_replaceBytesInRange_withBytes_1, range, bytes); - } + ObjCBlock_ffiVoid? call(NSProgress arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>() + (_id, arg0._id) + .address == + 0 + ? null + : ObjCBlock_ffiVoid._( + _id.ref.invoke + .cast Function(ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0)>>() + .asFunction Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>()(_id, arg0._id), + _lib, + retain: false, + release: true); +} - void resetBytesInRange_(_NSRange range) { - return _lib._objc_msgSend_407(_id, _lib._sel_resetBytesInRange_1, range); - } +void _ObjCBlock_ffiVoid_NSData_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer, + ffi.Pointer)>()(arg0, arg1); +final _ObjCBlock_ffiVoid_NSData_NSError_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSData_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSData_NSError_registerClosure( + void Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSData_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSData_NSError_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - void setData_(NSData? data) { - return _lib._objc_msgSend_217( - _id, _lib._sel_setData_1, data?._id ?? ffi.nullptr); - } +void _ObjCBlock_ffiVoid_NSData_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_NSData_NSError_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_ffiVoid_NSData_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSData_NSError._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); - void replaceBytesInRange_withBytes_length_(_NSRange range, - ffi.Pointer replacementBytes, int replacementLength) { - return _lib._objc_msgSend_446( - _id, - _lib._sel_replaceBytesInRange_withBytes_length_1, - range, - replacementBytes, - replacementLength); - } + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSData_NSError.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSData_NSError_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - static NSMutableData dataWithCapacity_( - PedometerBindings _lib, int aNumItems) { - final _ret = _lib._objc_msgSend_52( - _lib._class_NSMutableData1, _lib._sel_dataWithCapacity_1, aNumItems); - return NSMutableData._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSData_NSError.fromFunction( + PedometerBindings lib, void Function(NSData?, NSError?) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSData_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSData_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 + ? null + : NSData._(arg0, lib, retain: true, release: true), + arg1.address == 0 + ? null + : NSError._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; - static NSMutableData dataWithLength_(PedometerBindings _lib, int length) { - final _ret = _lib._objc_msgSend_52( - _lib._class_NSMutableData1, _lib._sel_dataWithLength_1, length); - return NSMutableData._(_ret, _lib, retain: true, release: true); - } + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSData_NSError.listener( + PedometerBindings lib, void Function(NSData?, NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= + ffi.NativeCallable, ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSData_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSData_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 + ? null + : NSData._(arg0, lib, retain: true, release: true), + arg1.address == 0 + ? null + : NSError._(arg1, lib, + retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; - NSMutableData initWithCapacity_(int capacity) { - final _ret = - _lib._objc_msgSend_52(_id, _lib._sel_initWithCapacity_1, capacity); - return NSMutableData._(_ret, _lib, retain: true, release: true); - } + void call(NSData? arg0, NSError? arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1?._id ?? ffi.nullptr); +} - NSMutableData initWithLength_(int length) { - final _ret = _lib._objc_msgSend_52(_id, _lib._sel_initWithLength_1, length); - return NSMutableData._(_ret, _lib, retain: true, release: true); - } +abstract class NSItemProviderFileOptions { + static const int NSItemProviderFileOptionOpenInPlace = 1; +} - bool decompressUsingAlgorithm_error_( - int algorithm, ffi.Pointer> error) { - return _lib._objc_msgSend_447( - _id, _lib._sel_decompressUsingAlgorithm_error_1, algorithm, error); - } +ffi.Pointer + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> arg0)>>() + .asFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock>)>()(arg0); +final _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureRegistry = + Function(ffi.Pointer<_ObjCBlock>)>{}; +int _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_registerClosure( + ffi.Pointer Function(ffi.Pointer<_ObjCBlock>) fn) { + final id = + ++_ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureRegistryIndex; + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - bool compressUsingAlgorithm_error_( - int algorithm, ffi.Pointer> error) { - return _lib._objc_msgSend_447( - _id, _lib._sel_compressUsingAlgorithm_error_1, algorithm, error); - } +ffi.Pointer + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) => + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureRegistry[ + block.ref.target.address]!(arg0); - static NSMutableData data(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableData1, _lib._sel_data1); - return NSMutableData._(_ret, _lib, retain: true, release: true); - } +class ObjCBlock_NSProgress_ffiVoidNSURLboolNSError extends _ObjCBlockBase { + ObjCBlock_NSProgress_ffiVoidNSURLboolNSError._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); - static NSMutableData dataWithBytes_length_( - PedometerBindings _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_205(_lib._class_NSMutableData1, - _lib._sel_dataWithBytes_length_1, bytes, length); - return NSMutableData._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_NSProgress_ffiVoidNSURLboolNSError.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi + .NativeFunction< + ffi.Pointer< + ObjCObject> + Function(ffi.Pointer<_ObjCBlock> arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer<_ObjCBlock>)>( + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - static NSMutableData dataWithBytesNoCopy_length_( - PedometerBindings _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_205(_lib._class_NSMutableData1, - _lib._sel_dataWithBytesNoCopy_length_1, bytes, length); - return NSMutableData._(_ret, _lib, retain: false, release: true); - } + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_NSProgress_ffiVoidNSURLboolNSError.fromFunction( + PedometerBindings lib, + NSProgress? Function(ObjCBlock_ffiVoid_NSURL_bool_NSError) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer<_ObjCBlock>)>( + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureTrampoline) + .cast(), + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_registerClosure( + (ffi.Pointer<_ObjCBlock> arg0) => + fn(ObjCBlock_ffiVoid_NSURL_bool_NSError._(arg0, lib, retain: true, release: true)) + ?._retainAndReturnId() ?? + ffi.nullptr)), + lib); + static ffi.Pointer? _dartFuncTrampoline; - static NSMutableData dataWithBytesNoCopy_length_freeWhenDone_( - PedometerBindings _lib, ffi.Pointer bytes, int length, bool b) { - final _ret = _lib._objc_msgSend_206(_lib._class_NSMutableData1, - _lib._sel_dataWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); - return NSMutableData._(_ret, _lib, retain: false, release: true); - } + NSProgress? call(ObjCBlock_ffiVoid_NSURL_bool_NSError arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0)>>() + .asFunction Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer<_ObjCBlock>)>() + (_id, arg0._id) + .address == + 0 + ? null + : NSProgress._( + _id.ref.invoke + .cast Function(ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0)>>() + .asFunction Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer<_ObjCBlock>)>()(_id, arg0._id), + _lib, + retain: false, + release: true); +} - static NSMutableData dataWithContentsOfFile_options_error_( - PedometerBindings _lib, - NSString? path, - int readOptionsMask, - ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_207( - _lib._class_NSMutableData1, - _lib._sel_dataWithContentsOfFile_options_error_1, - path?._id ?? ffi.nullptr, - readOptionsMask, - errorPtr); - return NSMutableData._(_ret, _lib, retain: true, release: true); - } +void _ObjCBlock_ffiVoid_NSURL_bool_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer, bool, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureRegistry = , bool, ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSURL_bool_NSError_registerClosure( + void Function(ffi.Pointer, bool, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSURL_bool_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - static NSMutableData dataWithContentsOfURL_options_error_( - PedometerBindings _lib, - NSURL? url, - int readOptionsMask, - ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_208( - _lib._class_NSMutableData1, - _lib._sel_dataWithContentsOfURL_options_error_1, - url?._id ?? ffi.nullptr, - readOptionsMask, - errorPtr); - return NSMutableData._(_ret, _lib, retain: true, release: true); - } +void _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_NSURL_bool_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSURL_bool_NSError._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); - static NSMutableData dataWithContentsOfFile_( - PedometerBindings _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableData1, - _lib._sel_dataWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableData._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURL_bool_NSError.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Bool, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURL_bool_NSError_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - static NSMutableData dataWithContentsOfURL_( - PedometerBindings _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_209(_lib._class_NSMutableData1, - _lib._sel_dataWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableData._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURL_bool_NSError.fromFunction( + PedometerBindings lib, void Function(NSURL?, bool, NSError?) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction, ffi.Pointer, ffi.Bool, ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSURL_bool_NSError_registerClosure( + (ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) => fn( + arg0.address == 0 + ? null + : NSURL._(arg0, lib, retain: true, release: true), + arg1, + arg2.address == 0 + ? null + : NSError._(arg2, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; - static NSMutableData dataWithData_(PedometerBindings _lib, NSData? data) { - final _ret = _lib._objc_msgSend_211(_lib._class_NSMutableData1, - _lib._sel_dataWithData_1, data?._id ?? ffi.nullptr); - return NSMutableData._(_ret, _lib, retain: true, release: true); - } + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSURL_bool_NSError.listener( + PedometerBindings lib, void Function(NSURL?, bool, NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= + ffi.NativeCallable, ffi.Pointer, ffi.Bool, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSURL_bool_NSError_registerClosure( + (ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) => fn( + arg0.address == 0 + ? null + : NSURL._(arg0, lib, retain: true, release: true), + arg1, + arg2.address == 0 + ? null + : NSError._(arg2, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Bool, ffi.Pointer)>? _dartFuncListenerTrampoline; - static NSObject dataWithContentsOfMappedFile_( - PedometerBindings _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableData1, - _lib._sel_dataWithContentsOfMappedFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } + void call(NSURL? arg0, bool arg1, NSError? arg2) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Bool arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + bool, ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1, arg2?._id ?? ffi.nullptr); +} - static NSMutableData new1(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableData1, _lib._sel_new1); - return NSMutableData._(_ret, _lib, retain: false, release: true); - } +void _ObjCBlock_ffiVoid_NSURL_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer, + ffi.Pointer)>()(arg0, arg1); +final _ObjCBlock_ffiVoid_NSURL_NSError_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSURL_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSURL_NSError_registerClosure( + void Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSURL_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSURL_NSError_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - static NSMutableData alloc(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableData1, _lib._sel_alloc1); - return NSMutableData._(_ret, _lib, retain: false, release: true); - } +void _ObjCBlock_ffiVoid_NSURL_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_NSURL_NSError_closureRegistry[block.ref.target.address]!( + arg0, arg1); + +class ObjCBlock_ffiVoid_NSURL_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSURL_NSError._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - PedometerBindings _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSMutableData1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURL_NSError.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURL_NSError_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - static void cancelPreviousPerformRequestsWithTarget_( - PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMutableData1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURL_NSError.fromFunction( + PedometerBindings lib, void Function(NSURL?, NSError?) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURL_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSURL_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 + ? null + : NSURL._(arg0, lib, retain: true, release: true), + arg1.address == 0 + ? null + : NSError._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; - static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMutableData1, _lib._sel_accessInstanceVariablesDirectly1); - } + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSURL_NSError.listener( + PedometerBindings lib, void Function(NSURL?, NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= + ffi.NativeCallable, ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSURL_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSURL_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 + ? null + : NSURL._(arg0, lib, retain: true, release: true), + arg1.address == 0 + ? null + : NSError._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; - static bool useStoredAccessor(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMutableData1, _lib._sel_useStoredAccessor1); - } + void call(NSURL? arg0, NSError? arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1?._id ?? ffi.nullptr); +} - static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSMutableData1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } +ffi.Pointer + _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> arg0)>>() + .asFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock>)>()(arg0); +final _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureRegistry = + Function(ffi.Pointer<_ObjCBlock>)>{}; +int _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_registerClosure( + ffi.Pointer Function(ffi.Pointer<_ObjCBlock>) fn) { + final id = + ++_ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureRegistryIndex; + _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSMutableData1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } +ffi.Pointer + _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) => + _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureRegistry[ + block.ref.target.address]!(arg0); - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSMutableData1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } +class ObjCBlock_NSProgress_ffiVoidObjCObjectNSError extends _ObjCBlockBase { + ObjCBlock_NSProgress_ffiVoidObjCObjectNSError._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); - static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSMutableData1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_NSProgress_ffiVoidObjCObjectNSError.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer<_ObjCBlock>)>( + _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableData1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_NSProgress_ffiVoidObjCObjectNSError.fromFunction( + PedometerBindings lib, + NSProgress? Function(ObjCBlock_ffiVoid_ObjCObject_NSError) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer<_ObjCBlock>)>( + _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureTrampoline) + .cast(), + _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_registerClosure( + (ffi.Pointer<_ObjCBlock> arg0) => + fn(ObjCBlock_ffiVoid_ObjCObject_NSError._(arg0, lib, retain: true, release: true)) + ?._retainAndReturnId() ?? + ffi.nullptr)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + NSProgress? call(ObjCBlock_ffiVoid_ObjCObject_NSError arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0)>>() + .asFunction Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer<_ObjCBlock>)>() + (_id, arg0._id) + .address == + 0 + ? null + : NSProgress._( + _id.ref.invoke + .cast Function(ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0)>>() + .asFunction Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer<_ObjCBlock>)>()(_id, arg0._id), + _lib, + retain: false, + release: true); } -abstract class NSPropertyListFormat { - static const int NSPropertyListOpenStepFormat = 1; - static const int NSPropertyListXMLFormat_v1_0 = 100; - static const int NSPropertyListBinaryFormat_v1_0 = 200; +void _ObjCBlock_ffiVoid_ObjCObject_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer, + ffi.Pointer)>()(arg0, arg1); +final _ObjCBlock_ffiVoid_ObjCObject_NSError_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_ObjCObject_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_ObjCObject_NSError_registerClosure( + void Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_ObjCObject_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_ObjCObject_NSError_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); } -class NSThread extends NSObject { - NSThread._(ffi.Pointer id, PedometerBindings lib, - {bool retain = false, bool release = false}) +void _ObjCBlock_ffiVoid_ObjCObject_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_ObjCObject_NSError_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_ffiVoid_ObjCObject_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ObjCObject_NSError._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSThread] that points to the same underlying object as [other]. - static NSThread castFrom(T other) { - return NSThread._(other._id, other._lib, retain: true, release: true); - } + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_NSError.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_NSError_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - /// Returns a [NSThread] that wraps the given raw object pointer. - static NSThread castFromPointer( - PedometerBindings lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSThread._(other, lib, retain: retain, release: release); - } + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_NSError.fromFunction( + PedometerBindings lib, void Function(NSObject?, NSError?) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_ObjCObject_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 ? null : NSObject._(arg0, lib, retain: true, release: true), + arg1.address == 0 ? null : NSError._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; - /// Returns whether [obj] is an instance of [NSThread]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSThread1); - } + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_ObjCObject_NSError.listener( + PedometerBindings lib, void Function(NSObject?, NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi + .NativeCallable, ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_ObjCObject_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_ObjCObject_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 + ? null + : NSObject._(arg0, lib, retain: true, release: true), + arg1.address == 0 ? null : NSError._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; - static NSThread? getCurrentThread(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_457(_lib._class_NSThread1, _lib._sel_currentThread1); - return _ret.address == 0 - ? null - : NSThread._(_ret, _lib, retain: true, release: true); - } + void call(NSObject? arg0, NSError? arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1?._id ?? ffi.nullptr); +} - static void detachNewThreadWithBlock_( - PedometerBindings _lib, ObjCBlock21 block) { - return _lib._objc_msgSend_458( - _lib._class_NSThread1, _lib._sel_detachNewThreadWithBlock_1, block._id); - } +void + _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureRegistry = + , ffi.Pointer, + ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureRegistryIndex = + 0; +ffi.Pointer + _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_registerClosure( + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer) + fn) { + final id = + ++_ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureRegistryIndex; + _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureRegistry[ + id] = fn; + return ffi.Pointer.fromAddress(id); +} - static void detachNewThreadSelector_toTarget_withObject_( - PedometerBindings _lib, - ffi.Pointer selector, - NSObject target, - NSObject argument) { - return _lib._objc_msgSend_459( - _lib._class_NSThread1, - _lib._sel_detachNewThreadSelector_toTarget_withObject_1, - selector, - target._id, - argument._id); - } +void _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary + extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); - static bool isMultiThreaded(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSThread1, _lib._sel_isMultiThreaded1); - } + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - NSMutableDictionary? get threadDictionary { - final _ret = _lib._objc_msgSend_464(_id, _lib._sel_threadDictionary1); - return _ret.address == 0 - ? null - : NSMutableDictionary._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary.fromFunction( + PedometerBindings lib, + void Function(ObjCBlock_ffiVoid_ObjCObject_NSError1, NSObject, NSDictionary) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction, ffi.Pointer<_ObjCBlock>, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_registerClosure( + (ffi.Pointer<_ObjCBlock> arg0, ffi.Pointer arg1, ffi.Pointer arg2) => fn( + ObjCBlock_ffiVoid_ObjCObject_NSError1._(arg0, lib, retain: true, release: true), + NSObject._(arg1, lib, retain: true, release: true), + NSDictionary._(arg2, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; - static void sleepUntilDate_(PedometerBindings _lib, NSDate? date) { - return _lib._objc_msgSend_465(_lib._class_NSThread1, - _lib._sel_sleepUntilDate_1, date?._id ?? ffi.nullptr); - } + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary.listener( + PedometerBindings lib, + void Function(ObjCBlock_ffiVoid_ObjCObject_NSError1, NSObject, NSDictionary) + fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable, ffi.Pointer<_ObjCBlock>, ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_registerClosure( + (ffi.Pointer<_ObjCBlock> arg0, ffi.Pointer arg1, + ffi.Pointer arg2) => + fn( + ObjCBlock_ffiVoid_ObjCObject_NSError1._(arg0, lib, retain: true, release: true), + NSObject._(arg1, lib, retain: true, release: true), + NSDictionary._(arg2, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; - static void sleepForTimeInterval_(PedometerBindings _lib, double ti) { - return _lib._objc_msgSend_466( - _lib._class_NSThread1, _lib._sel_sleepForTimeInterval_1, ti); - } + void call(ObjCBlock_ffiVoid_ObjCObject_NSError1 arg0, NSObject arg1, + NSDictionary arg2) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>()( + _id, arg0._id, arg1._id, arg2._id); +} - static void exit(PedometerBindings _lib) { - return _lib._objc_msgSend_1(_lib._class_NSThread1, _lib._sel_exit1); - } +void _ObjCBlock_ffiVoid_ObjCObject_NSError1_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer, + ffi.Pointer)>()(arg0, arg1); +final _ObjCBlock_ffiVoid_ObjCObject_NSError1_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_ObjCObject_NSError1_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_ObjCObject_NSError1_registerClosure( + void Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_ObjCObject_NSError1_closureRegistryIndex; + _ObjCBlock_ffiVoid_ObjCObject_NSError1_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - double get threadPriority { - return _lib._objc_msgSend_147(_id, _lib._sel_threadPriority1); - } +void _ObjCBlock_ffiVoid_ObjCObject_NSError1_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_ObjCObject_NSError1_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_ffiVoid_ObjCObject_NSError1 extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ObjCObject_NSError1._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); - set threadPriority(double value) { - _lib._objc_msgSend_467(_id, _lib._sel_setThreadPriority_1, value); - } + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_NSError1.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_NSError1_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - int get qualityOfService { - return _lib._objc_msgSend_468(_id, _lib._sel_qualityOfService1); - } + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_NSError1.fromFunction( + PedometerBindings lib, void Function(NSObject?, NSError) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_NSError1_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_ObjCObject_NSError1_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 ? null : NSObject._(arg0, lib, retain: true, release: true), + NSError._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; - set qualityOfService(int value) { - _lib._objc_msgSend_469(_id, _lib._sel_setQualityOfService_1, value); - } + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_ObjCObject_NSError1.listener( + PedometerBindings lib, void Function(NSObject?, NSError) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi + .NativeCallable, ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_ObjCObject_NSError1_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_ObjCObject_NSError1_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 + ? null + : NSObject._(arg0, lib, retain: true, release: true), + NSError._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; - static NSArray? getCallStackReturnAddresses(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSThread1, _lib._sel_callStackReturnAddresses1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } + void call(NSObject? arg0, NSError arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1._id); +} - static NSArray? getCallStackSymbols(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSThread1, _lib._sel_callStackSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } +class NSMutableString extends NSString { + NSMutableString._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + /// Returns a [NSMutableString] that points to the same underlying object as [other]. + static NSMutableString castFrom(T other) { + return NSMutableString._(other._id, other._lib, + retain: true, release: true); } - set name(NSString? value) { - _lib._objc_msgSend_470(_id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + /// Returns a [NSMutableString] that wraps the given raw object pointer. + static NSMutableString castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSMutableString._(other, lib, retain: retain, release: release); } - int get stackSize { - return _lib._objc_msgSend_10(_id, _lib._sel_stackSize1); + /// Returns whether [obj] is an instance of [NSMutableString]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMutableString1); } - set stackSize(int value) { - _lib._objc_msgSend_444(_id, _lib._sel_setStackSize_1, value); + void replaceCharactersInRange_withString_(_NSRange range, NSString aString) { + _lib._objc_msgSend_529(_id, _lib._sel_replaceCharactersInRange_withString_1, + range, aString._id); } - bool get isMainThread { - return _lib._objc_msgSend_12(_id, _lib._sel_isMainThread1); + void insertString_atIndex_(NSString aString, int loc) { + _lib._objc_msgSend_530( + _id, _lib._sel_insertString_atIndex_1, aString._id, loc); } - static NSThread? getMainThread(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_457(_lib._class_NSThread1, _lib._sel_mainThread1); - return _ret.address == 0 - ? null - : NSThread._(_ret, _lib, retain: true, release: true); + void deleteCharactersInRange_(_NSRange range) { + _lib._objc_msgSend_423(_id, _lib._sel_deleteCharactersInRange_1, range); } - @override - NSThread init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSThread._(_ret, _lib, retain: true, release: true); + void appendString_(NSString aString) { + _lib._objc_msgSend_199(_id, _lib._sel_appendString_1, aString._id); } - NSThread initWithTarget_selector_object_( - NSObject target, ffi.Pointer selector, NSObject argument) { - final _ret = _lib._objc_msgSend_471( - _id, - _lib._sel_initWithTarget_selector_object_1, - target._id, - selector, - argument._id); - return NSThread._(_ret, _lib, retain: true, release: true); + void appendFormat_(NSString format) { + _lib._objc_msgSend_199(_id, _lib._sel_appendFormat_1, format._id); } - NSThread initWithBlock_(ObjCBlock21 block) { - final _ret = - _lib._objc_msgSend_472(_id, _lib._sel_initWithBlock_1, block._id); - return NSThread._(_ret, _lib, retain: true, release: true); + void setString_(NSString aString) { + _lib._objc_msgSend_199(_id, _lib._sel_setString_1, aString._id); } - bool get executing { - return _lib._objc_msgSend_12(_id, _lib._sel_isExecuting1); + int replaceOccurrencesOfString_withString_options_range_(NSString target, + NSString replacement, int options, _NSRange searchRange) { + return _lib._objc_msgSend_531( + _id, + _lib._sel_replaceOccurrencesOfString_withString_options_range_1, + target._id, + replacement._id, + options, + searchRange); } - bool get finished { - return _lib._objc_msgSend_12(_id, _lib._sel_isFinished1); + bool applyTransform_reverse_range_updatedRange_(NSString transform, + bool reverse, _NSRange range, ffi.Pointer<_NSRange> resultingRange) { + return _lib._objc_msgSend_532( + _id, + _lib._sel_applyTransform_reverse_range_updatedRange_1, + transform._id, + reverse, + range, + resultingRange); } - bool get cancelled { - return _lib._objc_msgSend_12(_id, _lib._sel_isCancelled1); + NSMutableString initWithCapacity_(int capacity) { + final _ret = + _lib._objc_msgSend_533(_id, _lib._sel_initWithCapacity_1, capacity); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - void cancel() { - return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + static NSMutableString stringWithCapacity_( + PedometerBindings _lib, int capacity) { + final _ret = _lib._objc_msgSend_533( + _lib._class_NSMutableString1, _lib._sel_stringWithCapacity_1, capacity); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - void start() { - return _lib._objc_msgSend_1(_id, _lib._sel_start1); + @override + NSMutableString init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - void main() { - return _lib._objc_msgSend_1(_id, _lib._sel_main1); + @override + NSMutableString? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSThread new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSThread1, _lib._sel_new1); - return NSThread._(_ret, _lib, retain: false, release: true); + static ffi.Pointer getAvailableStringEncodings( + PedometerBindings _lib) { + return _lib._objc_msgSend_307( + _lib._class_NSMutableString1, _lib._sel_availableStringEncodings1); } - static NSThread alloc(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSThread1, _lib._sel_alloc1); - return NSThread._(_ret, _lib, retain: false, release: true); + static NSString localizedNameOfStringEncoding_( + PedometerBindings _lib, int encoding) { + final _ret = _lib._objc_msgSend_264(_lib._class_NSMutableString1, + _lib._sel_localizedNameOfStringEncoding_1, encoding); + return NSString._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - PedometerBindings _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSThread1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + static int getDefaultCStringEncoding(PedometerBindings _lib) { + return _lib._objc_msgSend_10( + _lib._class_NSMutableString1, _lib._sel_defaultCStringEncoding1); } - static void cancelPreviousPerformRequestsWithTarget_( - PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSThread1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + @override + NSMutableString initWithCharactersNoCopy_length_freeWhenDone_( + ffi.Pointer characters, int length, bool freeBuffer) { + final _ret = _lib._objc_msgSend_319( + _id, + _lib._sel_initWithCharactersNoCopy_length_freeWhenDone_1, + characters, + length, + freeBuffer); + return NSMutableString._(_ret, _lib, retain: false, release: true); } - static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSThread1, _lib._sel_accessInstanceVariablesDirectly1); + @override + NSMutableString initWithCharactersNoCopy_length_deallocator_( + ffi.Pointer chars, + int len, + ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong? deallocator) { + final _ret = _lib._objc_msgSend_320( + _id, + _lib._sel_initWithCharactersNoCopy_length_deallocator_1, + chars, + len, + deallocator?._id ?? ffi.nullptr); + return NSMutableString._(_ret, _lib, retain: false, release: true); } - static bool useStoredAccessor(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSThread1, _lib._sel_useStoredAccessor1); + @override + NSMutableString initWithCharacters_length_( + ffi.Pointer characters, int length) { + final _ret = _lib._objc_msgSend_321( + _id, _lib._sel_initWithCharacters_length_1, characters, length); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSThread1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + @override + NSMutableString? initWithUTF8String_( + ffi.Pointer nullTerminatedCString) { + final _ret = _lib._objc_msgSend_322( + _id, _lib._sel_initWithUTF8String_1, nullTerminatedCString); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); } - static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSThread1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + @override + NSMutableString initWithString_(NSString aString) { + final _ret = + _lib._objc_msgSend_31(_id, _lib._sel_initWithString_1, aString._id); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSThread1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + @override + NSMutableString initWithFormat_(NSString format) { + final _ret = + _lib._objc_msgSend_31(_id, _lib._sel_initWithFormat_1, format._id); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSThread1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + @override + NSMutableString initWithFormat_arguments_( + NSString format, ffi.Pointer<__va_list_tag> argList) { + final _ret = _lib._objc_msgSend_323( + _id, _lib._sel_initWithFormat_arguments_1, format._id, argList); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSThread1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + @override + NSMutableString initWithFormat_locale_(NSString format, NSObject? locale) { + final _ret = _lib._objc_msgSend_324(_id, _lib._sel_initWithFormat_locale_1, + format._id, locale?._id ?? ffi.nullptr); + return NSMutableString._(_ret, _lib, retain: true, release: true); } -} - -void _ObjCBlock21_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block) { - return block.ref.target - .cast>() - .asFunction()(); -} - -final _ObjCBlock21_closureRegistry = {}; -int _ObjCBlock21_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock21_registerClosure(Function fn) { - final id = ++_ObjCBlock21_closureRegistryIndex; - _ObjCBlock21_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock21_closureTrampoline(ffi.Pointer<_ObjCBlock> block) { - return _ObjCBlock21_closureRegistry[block.ref.target.address]!(); -} -class ObjCBlock21 extends _ObjCBlockBase { - ObjCBlock21._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock21.fromFunctionPointer(PedometerBindings lib, - ffi.Pointer> ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block)>( - _ObjCBlock21_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock21.fromFunction(PedometerBindings lib, void Function() fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block)>( - _ObjCBlock21_closureTrampoline) - .cast(), - _ObjCBlock21_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call() { - return _id.ref.invoke - .cast< - ffi - .NativeFunction block)>>() - .asFunction block)>()(_id); + @override + NSMutableString initWithFormat_locale_arguments_( + NSString format, NSObject? locale, ffi.Pointer<__va_list_tag> argList) { + final _ret = _lib._objc_msgSend_325( + _id, + _lib._sel_initWithFormat_locale_arguments_1, + format._id, + locale?._id ?? ffi.nullptr, + argList); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + @override + NSMutableString? initWithValidatedFormat_validFormatSpecifiers_error_( + NSString format, + NSString validFormatSpecifiers, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_326( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_error_1, + format._id, + validFormatSpecifiers._id, + error); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } -/// Mutable Dictionary -class NSMutableDictionary extends NSDictionary { - NSMutableDictionary._(ffi.Pointer id, PedometerBindings lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + @override + NSMutableString? initWithValidatedFormat_validFormatSpecifiers_locale_error_( + NSString format, + NSString validFormatSpecifiers, + NSObject? locale, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_327( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_1, + format._id, + validFormatSpecifiers._id, + locale?._id ?? ffi.nullptr, + error); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } - /// Returns a [NSMutableDictionary] that points to the same underlying object as [other]. - static NSMutableDictionary castFrom(T other) { - return NSMutableDictionary._(other._id, other._lib, - retain: true, release: true); + @override + NSMutableString? + initWithValidatedFormat_validFormatSpecifiers_arguments_error_( + NSString format, + NSString validFormatSpecifiers, + ffi.Pointer<__va_list_tag> argList, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_328( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_arguments_error_1, + format._id, + validFormatSpecifiers._id, + argList, + error); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); } - /// Returns a [NSMutableDictionary] that wraps the given raw object pointer. - static NSMutableDictionary castFromPointer( - PedometerBindings lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSMutableDictionary._(other, lib, retain: retain, release: release); + @override + NSMutableString? + initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_( + NSString format, + NSString validFormatSpecifiers, + NSObject? locale, + ffi.Pointer<__va_list_tag> argList, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_329( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_1, + format._id, + validFormatSpecifiers._id, + locale?._id ?? ffi.nullptr, + argList, + error); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); } - /// Returns whether [obj] is an instance of [NSMutableDictionary]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMutableDictionary1); + @override + NSMutableString? initWithData_encoding_(NSData data, int encoding) { + final _ret = _lib._objc_msgSend_330( + _id, _lib._sel_initWithData_encoding_1, data._id, encoding); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); } - void removeObjectForKey_(NSObject aKey) { - return _lib._objc_msgSend_15(_id, _lib._sel_removeObjectForKey_1, aKey._id); + @override + NSMutableString? initWithBytes_length_encoding_( + ffi.Pointer bytes, int len, int encoding) { + final _ret = _lib._objc_msgSend_331( + _id, _lib._sel_initWithBytes_length_encoding_1, bytes, len, encoding); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); } - void setObject_forKey_(NSObject anObject, NSObject? aKey) { - return _lib._objc_msgSend_460(_id, _lib._sel_setObject_forKey_1, - anObject._id, aKey?._id ?? ffi.nullptr); + @override + NSMutableString? initWithBytesNoCopy_length_encoding_freeWhenDone_( + ffi.Pointer bytes, int len, int encoding, bool freeBuffer) { + final _ret = _lib._objc_msgSend_332( + _id, + _lib._sel_initWithBytesNoCopy_length_encoding_freeWhenDone_1, + bytes, + len, + encoding, + freeBuffer); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: false, release: true); } @override - NSMutableDictionary init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + NSMutableString? initWithBytesNoCopy_length_encoding_deallocator_( + ffi.Pointer bytes, + int len, + int encoding, + ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong? deallocator) { + final _ret = _lib._objc_msgSend_333( + _id, + _lib._sel_initWithBytesNoCopy_length_encoding_deallocator_1, + bytes, + len, + encoding, + deallocator?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: false, release: true); } - NSMutableDictionary initWithCapacity_(int numItems) { + static NSMutableString string(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_52(_id, _lib._sel_initWithCapacity_1, numItems); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_string1); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - @override - NSMutableDictionary initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + static NSMutableString stringWithString_( + PedometerBindings _lib, NSString string) { + final _ret = _lib._objc_msgSend_31( + _lib._class_NSMutableString1, _lib._sel_stringWithString_1, string._id); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - void addEntriesFromDictionary_(NSDictionary? otherDictionary) { - return _lib._objc_msgSend_438(_id, _lib._sel_addEntriesFromDictionary_1, - otherDictionary?._id ?? ffi.nullptr); + static NSMutableString stringWithCharacters_length_(PedometerBindings _lib, + ffi.Pointer characters, int length) { + final _ret = _lib._objc_msgSend_321(_lib._class_NSMutableString1, + _lib._sel_stringWithCharacters_length_1, characters, length); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - void removeAllObjects() { - return _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); + static NSMutableString? stringWithUTF8String_( + PedometerBindings _lib, ffi.Pointer nullTerminatedCString) { + final _ret = _lib._objc_msgSend_322(_lib._class_NSMutableString1, + _lib._sel_stringWithUTF8String_1, nullTerminatedCString); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); } - void removeObjectsForKeys_(NSArray? keyArray) { - return _lib._objc_msgSend_403( - _id, _lib._sel_removeObjectsForKeys_1, keyArray?._id ?? ffi.nullptr); + static NSMutableString stringWithFormat_( + PedometerBindings _lib, NSString format) { + final _ret = _lib._objc_msgSend_31( + _lib._class_NSMutableString1, _lib._sel_stringWithFormat_1, format._id); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - void setDictionary_(NSDictionary? otherDictionary) { - return _lib._objc_msgSend_438( - _id, _lib._sel_setDictionary_1, otherDictionary?._id ?? ffi.nullptr); + static NSMutableString localizedStringWithFormat_( + PedometerBindings _lib, NSString format) { + final _ret = _lib._objc_msgSend_31(_lib._class_NSMutableString1, + _lib._sel_localizedStringWithFormat_1, format._id); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - void setObject_forKeyedSubscript_(NSObject obj, NSObject? key) { - return _lib._objc_msgSend_460(_id, _lib._sel_setObject_forKeyedSubscript_1, - obj._id, key?._id ?? ffi.nullptr); + static NSMutableString? + stringWithValidatedFormat_validFormatSpecifiers_error_( + PedometerBindings _lib, + NSString format, + NSString validFormatSpecifiers, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_326( + _lib._class_NSMutableString1, + _lib._sel_stringWithValidatedFormat_validFormatSpecifiers_error_1, + format._id, + validFormatSpecifiers._id, + error); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSMutableDictionary dictionaryWithCapacity_( - PedometerBindings _lib, int numItems) { - final _ret = _lib._objc_msgSend_52(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithCapacity_1, numItems); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + static NSMutableString? + localizedStringWithValidatedFormat_validFormatSpecifiers_error_( + PedometerBindings _lib, + NSString format, + NSString validFormatSpecifiers, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_326( + _lib._class_NSMutableString1, + _lib._sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_1, + format._id, + validFormatSpecifiers._id, + error); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSMutableDictionary dictionaryWithContentsOfFile_( - PedometerBindings _lib, NSString? path) { - final _ret = _lib._objc_msgSend_461(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + @override + NSMutableString? initWithCString_encoding_( + ffi.Pointer nullTerminatedCString, int encoding) { + final _ret = _lib._objc_msgSend_334(_id, + _lib._sel_initWithCString_encoding_1, nullTerminatedCString, encoding); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSMutableDictionary dictionaryWithContentsOfURL_( - PedometerBindings _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_462(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + static NSMutableString? stringWithCString_encoding_( + PedometerBindings _lib, ffi.Pointer cString, int enc) { + final _ret = _lib._objc_msgSend_334(_lib._class_NSMutableString1, + _lib._sel_stringWithCString_encoding_1, cString, enc); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); } - NSMutableDictionary initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_461( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + @override + NSMutableString? initWithContentsOfURL_encoding_error_( + NSURL url, int enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_335(_id, + _lib._sel_initWithContentsOfURL_encoding_error_1, url._id, enc, error); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); } - NSMutableDictionary initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_462( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + @override + NSMutableString? initWithContentsOfFile_encoding_error_( + NSString path, int enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_336( + _id, + _lib._sel_initWithContentsOfFile_encoding_error_1, + path._id, + enc, + error); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSMutableDictionary dictionaryWithSharedKeySet_( - PedometerBindings _lib, NSObject keyset) { - final _ret = _lib._objc_msgSend_463(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithSharedKeySet_1, keyset._id); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + static NSMutableString? stringWithContentsOfURL_encoding_error_( + PedometerBindings _lib, + NSURL url, + int enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_335( + _lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfURL_encoding_error_1, + url._id, + enc, + error); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString? stringWithContentsOfFile_encoding_error_( + PedometerBindings _lib, + NSString path, + int enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_336( + _lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfFile_encoding_error_1, + path._id, + enc, + error); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); } - void setValue_forKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_118( - _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); + @override + NSMutableString? initWithContentsOfURL_usedEncoding_error_( + NSURL url, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_337( + _id, + _lib._sel_initWithContentsOfURL_usedEncoding_error_1, + url._id, + enc, + error); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSMutableDictionary dictionary(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableDictionary1, _lib._sel_dictionary1); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + @override + NSMutableString? initWithContentsOfFile_usedEncoding_error_( + NSString path, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_338( + _id, + _lib._sel_initWithContentsOfFile_usedEncoding_error_1, + path._id, + enc, + error); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSMutableDictionary dictionaryWithObject_forKey_( - PedometerBindings _lib, NSObject object, NSObject? key) { - final _ret = _lib._objc_msgSend_140( - _lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithObject_forKey_1, - object._id, - key?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + static NSMutableString? stringWithContentsOfURL_usedEncoding_error_( + PedometerBindings _lib, + NSURL url, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_337( + _lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfURL_usedEncoding_error_1, + url._id, + enc, + error); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSMutableDictionary dictionaryWithObjects_forKeys_count_( + static NSMutableString? stringWithContentsOfFile_usedEncoding_error_( PedometerBindings _lib, - ffi.Pointer> objects, - ffi.Pointer> keys, - int cnt) { - final _ret = _lib._objc_msgSend_129(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithObjects_forKeys_count_1, objects, keys, cnt); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + NSString path, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_338( + _lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfFile_usedEncoding_error_1, + path._id, + enc, + error); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSMutableDictionary dictionaryWithObjectsAndKeys_( - PedometerBindings _lib, NSObject firstObject) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithObjectsAndKeys_1, firstObject._id); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + static int + stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_( + PedometerBindings _lib, + NSData data, + NSDictionary? opts, + ffi.Pointer> string, + ffi.Pointer usedLossyConversion) { + return _lib._objc_msgSend_339( + _lib._class_NSMutableString1, + _lib._sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1, + data._id, + opts?._id ?? ffi.nullptr, + string, + usedLossyConversion); } - static NSMutableDictionary dictionaryWithDictionary_( - PedometerBindings _lib, NSDictionary? dict) { - final _ret = _lib._objc_msgSend_141(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithDictionary_1, dict?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + static NSObject? stringWithContentsOfFile_( + PedometerBindings _lib, NSString path) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSMutableDictionary dictionaryWithObjects_forKeys_( - PedometerBindings _lib, NSArray? objects, NSArray? keys) { - final _ret = _lib._objc_msgSend_142( - _lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithObjects_forKeys_1, - objects?._id ?? ffi.nullptr, - keys?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + static NSObject? stringWithContentsOfURL_(PedometerBindings _lib, NSURL url) { + final _ret = _lib._objc_msgSend_218(_lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSDictionary dictionaryWithContentsOfURL_error_(PedometerBindings _lib, - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_144( - _lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); + static NSObject? stringWithCString_length_( + PedometerBindings _lib, ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_334(_lib._class_NSMutableString1, + _lib._sel_stringWithCString_length_1, bytes, length); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject sharedKeySetForKeys_(PedometerBindings _lib, NSArray? keys) { - final _ret = _lib._objc_msgSend_59(_lib._class_NSMutableDictionary1, - _lib._sel_sharedKeySetForKeys_1, keys?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? stringWithCString_( + PedometerBindings _lib, ffi.Pointer bytes) { + final _ret = _lib._objc_msgSend_322( + _lib._class_NSMutableString1, _lib._sel_stringWithCString_1, bytes); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSMutableDictionary new1(PedometerBindings _lib) { + static NSString pathWithComponents_( + PedometerBindings _lib, NSArray components) { + final _ret = _lib._objc_msgSend_346(_lib._class_NSMutableString1, + _lib._sel_pathWithComponents_1, components._id); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString new1(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableDictionary1, _lib._sel_new1); - return NSMutableDictionary._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_new1); + return NSMutableString._(_ret, _lib, retain: false, release: true); } - static NSMutableDictionary alloc(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableDictionary1, _lib._sel_alloc1); - return NSMutableDictionary._(_ret, _lib, retain: false, release: true); + static NSMutableString allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSMutableString1, _lib._sel_allocWithZone_1, zone); + return NSMutableString._(_ret, _lib, retain: false, release: true); + } + + static NSMutableString alloc(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_alloc1); + return NSMutableString._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSMutableDictionary1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSMutableString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMutableDictionary1, + _lib._objc_msgSend_15(_lib._class_NSMutableString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSMutableDictionary1, + return _lib._objc_msgSend_12(_lib._class_NSMutableString1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSMutableDictionary1, _lib._sel_useStoredAccessor1); + _lib._class_NSMutableString1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSMutableDictionary1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSMutableString1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSMutableDictionary1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSMutableDictionary1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSMutableString1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71(_lib._class_NSMutableDictionary1, + final _ret = _lib._objc_msgSend_77(_lib._class_NSMutableString1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableDictionary1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSMutableString1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSQualityOfService { - static const int NSQualityOfServiceUserInteractive = 33; - static const int NSQualityOfServiceUserInitiated = 25; - static const int NSQualityOfServiceUtility = 17; - static const int NSQualityOfServiceBackground = 9; - static const int NSQualityOfServiceDefault = -1; -} - -class NSItemProvider extends NSObject { - NSItemProvider._(ffi.Pointer id, PedometerBindings lib, +/// Notifications +class NSNotification extends NSObject { + NSNotification._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSItemProvider] that points to the same underlying object as [other]. - static NSItemProvider castFrom(T other) { - return NSItemProvider._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSItemProvider] that wraps the given raw object pointer. - static NSItemProvider castFromPointer( - PedometerBindings lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSItemProvider._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSItemProvider]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSItemProvider1); - } - - @override - NSItemProvider init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSItemProvider._(_ret, _lib, retain: true, release: true); - } - - void registerDataRepresentationForTypeIdentifier_visibility_loadHandler_( - NSString? typeIdentifier, int visibility, ObjCBlock22 loadHandler) { - return _lib._objc_msgSend_489( - _id, - _lib._sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - visibility, - loadHandler._id); - } - - void - registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_( - NSString? typeIdentifier, - int fileOptions, - int visibility, - ObjCBlock25 loadHandler) { - return _lib._objc_msgSend_490( - _id, - _lib._sel_registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - fileOptions, - visibility, - loadHandler._id); - } - - NSArray? get registeredTypeIdentifiers { - final _ret = - _lib._objc_msgSend_71(_id, _lib._sel_registeredTypeIdentifiers1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray registeredTypeIdentifiersWithFileOptions_(int fileOptions) { - final _ret = _lib._objc_msgSend_491( - _id, _lib._sel_registeredTypeIdentifiersWithFileOptions_1, fileOptions); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - bool hasItemConformingToTypeIdentifier_(NSString? typeIdentifier) { - return _lib._objc_msgSend_51( - _id, - _lib._sel_hasItemConformingToTypeIdentifier_1, - typeIdentifier?._id ?? ffi.nullptr); - } - - bool hasRepresentationConformingToTypeIdentifier_fileOptions_( - NSString? typeIdentifier, int fileOptions) { - return _lib._objc_msgSend_492( - _id, - _lib._sel_hasRepresentationConformingToTypeIdentifier_fileOptions_1, - typeIdentifier?._id ?? ffi.nullptr, - fileOptions); - } - - NSProgress loadDataRepresentationForTypeIdentifier_completionHandler_( - NSString? typeIdentifier, ObjCBlock24 completionHandler) { - final _ret = _lib._objc_msgSend_493( - _id, - _lib._sel_loadDataRepresentationForTypeIdentifier_completionHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - completionHandler._id); - return NSProgress._(_ret, _lib, retain: true, release: true); - } - - NSProgress loadFileRepresentationForTypeIdentifier_completionHandler_( - NSString? typeIdentifier, ObjCBlock27 completionHandler) { - final _ret = _lib._objc_msgSend_494( - _id, - _lib._sel_loadFileRepresentationForTypeIdentifier_completionHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - completionHandler._id); - return NSProgress._(_ret, _lib, retain: true, release: true); - } - - NSProgress loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_( - NSString? typeIdentifier, ObjCBlock26 completionHandler) { - final _ret = _lib._objc_msgSend_495( - _id, - _lib._sel_loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - completionHandler._id); - return NSProgress._(_ret, _lib, retain: true, release: true); - } - - NSString? get suggestedName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_suggestedName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set suggestedName(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setSuggestedName_1, value?._id ?? ffi.nullptr); - } - - NSItemProvider initWithObject_(NSObject? object) { - final _ret = _lib._objc_msgSend_16( - _id, _lib._sel_initWithObject_1, object?._id ?? ffi.nullptr); - return NSItemProvider._(_ret, _lib, retain: true, release: true); - } - - void registerObject_visibility_(NSObject? object, int visibility) { - return _lib._objc_msgSend_496(_id, _lib._sel_registerObject_visibility_1, - object?._id ?? ffi.nullptr, visibility); + /// Returns a [NSNotification] that points to the same underlying object as [other]. + static NSNotification castFrom(T other) { + return NSNotification._(other._id, other._lib, retain: true, release: true); } - void registerObjectOfClass_visibility_loadHandler_( - NSObject? aClass, int visibility, ObjCBlock28 loadHandler) { - return _lib._objc_msgSend_497( - _id, - _lib._sel_registerObjectOfClass_visibility_loadHandler_1, - aClass?._id ?? ffi.nullptr, - visibility, - loadHandler._id); + /// Returns a [NSNotification] that wraps the given raw object pointer. + static NSNotification castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSNotification._(other, lib, retain: retain, release: release); } - bool canLoadObjectOfClass_(NSObject? aClass) { - return _lib._objc_msgSend_0( - _id, _lib._sel_canLoadObjectOfClass_1, aClass?._id ?? ffi.nullptr); + /// Returns whether [obj] is an instance of [NSNotification]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSNotification1); } - NSProgress loadObjectOfClass_completionHandler_( - NSObject? aClass, ObjCBlock29 completionHandler) { - final _ret = _lib._objc_msgSend_498( - _id, - _lib._sel_loadObjectOfClass_completionHandler_1, - aClass?._id ?? ffi.nullptr, - completionHandler._id); - return NSProgress._(_ret, _lib, retain: true, release: true); + NSString get name { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_name1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSItemProvider initWithItem_typeIdentifier_( - NSObject? item, NSString? typeIdentifier) { - final _ret = _lib._objc_msgSend_241( - _id, - _lib._sel_initWithItem_typeIdentifier_1, - item?._id ?? ffi.nullptr, - typeIdentifier?._id ?? ffi.nullptr); - return NSItemProvider._(_ret, _lib, retain: true, release: true); + NSObject? get object { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_object1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSItemProvider initWithContentsOfURL_(NSURL? fileURL) { - final _ret = _lib._objc_msgSend_209( - _id, _lib._sel_initWithContentsOfURL_1, fileURL?._id ?? ffi.nullptr); - return NSItemProvider._(_ret, _lib, retain: true, release: true); + NSDictionary? get userInfo { + final _ret = _lib._objc_msgSend_340(_id, _lib._sel_userInfo1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - void registerItemForTypeIdentifier_loadHandler_( - NSString? typeIdentifier, ObjCBlock30 loadHandler) { - return _lib._objc_msgSend_499( + NSNotification initWithName_object_userInfo_( + NSString name, NSObject? object, NSDictionary? userInfo) { + final _ret = _lib._objc_msgSend_534( _id, - _lib._sel_registerItemForTypeIdentifier_loadHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - loadHandler._id); + _lib._sel_initWithName_object_userInfo_1, + name._id, + object?._id ?? ffi.nullptr, + userInfo?._id ?? ffi.nullptr); + return NSNotification._(_ret, _lib, retain: true, release: true); } - void loadItemForTypeIdentifier_options_completionHandler_( - NSString? typeIdentifier, - NSDictionary? options, - ObjCBlock29 completionHandler) { - return _lib._objc_msgSend_500( - _id, - _lib._sel_loadItemForTypeIdentifier_options_completionHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - options?._id ?? ffi.nullptr, - completionHandler._id); + NSNotification? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSNotification._(_ret, _lib, retain: true, release: true); } - ObjCBlock30 get previewImageHandler { - final _ret = _lib._objc_msgSend_501(_id, _lib._sel_previewImageHandler1); - return ObjCBlock30._(_ret, _lib); + static NSNotification notificationWithName_object_( + PedometerBindings _lib, NSString aName, NSObject? anObject) { + final _ret = _lib._objc_msgSend_324( + _lib._class_NSNotification1, + _lib._sel_notificationWithName_object_1, + aName._id, + anObject?._id ?? ffi.nullptr); + return NSNotification._(_ret, _lib, retain: true, release: true); } - set previewImageHandler(ObjCBlock30 value) { - _lib._objc_msgSend_502(_id, _lib._sel_setPreviewImageHandler_1, value._id); + static NSNotification notificationWithName_object_userInfo_( + PedometerBindings _lib, + NSString aName, + NSObject? anObject, + NSDictionary? aUserInfo) { + final _ret = _lib._objc_msgSend_534( + _lib._class_NSNotification1, + _lib._sel_notificationWithName_object_userInfo_1, + aName._id, + anObject?._id ?? ffi.nullptr, + aUserInfo?._id ?? ffi.nullptr); + return NSNotification._(_ret, _lib, retain: true, release: true); } - void loadPreviewImageWithOptions_completionHandler_( - NSDictionary? options, ObjCBlock29 completionHandler) { - return _lib._objc_msgSend_503( - _id, - _lib._sel_loadPreviewImageWithOptions_completionHandler_1, - options?._id ?? ffi.nullptr, - completionHandler._id); + @override + NSNotification init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSNotification._(_ret, _lib, retain: true, release: true); } - static NSItemProvider new1(PedometerBindings _lib) { + static NSNotification new1(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSItemProvider1, _lib._sel_new1); - return NSItemProvider._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSNotification1, _lib._sel_new1); + return NSNotification._(_ret, _lib, retain: false, release: true); } - static NSItemProvider alloc(PedometerBindings _lib) { + static NSNotification allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSNotification1, _lib._sel_allocWithZone_1, zone); + return NSNotification._(_ret, _lib, retain: false, release: true); + } + + static NSNotification alloc(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSItemProvider1, _lib._sel_alloc1); - return NSItemProvider._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSNotification1, _lib._sel_alloc1); + return NSNotification._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSItemProvider1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSNotification1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSItemProvider1, + _lib._objc_msgSend_15(_lib._class_NSNotification1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSItemProvider1, + return _lib._objc_msgSend_12(_lib._class_NSNotification1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSItemProvider1, _lib._sel_useStoredAccessor1); + _lib._class_NSNotification1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSItemProvider1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSNotification1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSItemProvider1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSItemProvider1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSNotification1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSItemProvider1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_NSNotification1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSItemProvider1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSNotification1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSItemProviderRepresentationVisibility { - static const int NSItemProviderRepresentationVisibilityAll = 0; - static const int NSItemProviderRepresentationVisibilityTeam = 1; - static const int NSItemProviderRepresentationVisibilityGroup = 2; - static const int NSItemProviderRepresentationVisibilityOwnProcess = 3; -} - -ffi.Pointer _ObjCBlock22_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> arg0)>()(arg0); -} - -final _ObjCBlock22_closureRegistry = {}; -int _ObjCBlock22_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock22_registerClosure(Function fn) { - final id = ++_ObjCBlock22_closureRegistryIndex; - _ObjCBlock22_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -ffi.Pointer _ObjCBlock22_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { - return _ObjCBlock22_closureRegistry[block.ref.target.address]!(arg0); -} - -class ObjCBlock22 extends _ObjCBlockBase { - ObjCBlock22._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock22.fromFunctionPointer( - PedometerBindings lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock22_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock22.fromFunction(PedometerBindings lib, - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock22_closureTrampoline) - .cast(), - _ObjCBlock22_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - ffi.Pointer call(ffi.Pointer<_ObjCBlock> arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>>() - .asFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>()(_id, arg0); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -class NSProgress extends NSObject { - NSProgress._(ffi.Pointer id, PedometerBindings lib, +class NSBundle extends NSObject { + NSBundle._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSProgress] that points to the same underlying object as [other]. - static NSProgress castFrom(T other) { - return NSProgress._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSBundle] that points to the same underlying object as [other]. + static NSBundle castFrom(T other) { + return NSBundle._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSProgress] that wraps the given raw object pointer. - static NSProgress castFromPointer( + /// Returns a [NSBundle] that wraps the given raw object pointer. + static NSBundle castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSProgress._(other, lib, retain: retain, release: release); + return NSBundle._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSProgress]. + /// Returns whether [obj] is an instance of [NSBundle]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSProgress1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSBundle1); } - static NSProgress currentProgress(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_475( - _lib._class_NSProgress1, _lib._sel_currentProgress1); - return NSProgress._(_ret, _lib, retain: true, release: true); + static NSBundle getMainBundle(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_535(_lib._class_NSBundle1, _lib._sel_mainBundle1); + return NSBundle._(_ret, _lib, retain: true, release: true); } - static NSProgress progressWithTotalUnitCount_( - PedometerBindings _lib, int unitCount) { - final _ret = _lib._objc_msgSend_476(_lib._class_NSProgress1, - _lib._sel_progressWithTotalUnitCount_1, unitCount); - return NSProgress._(_ret, _lib, retain: true, release: true); + static NSBundle? bundleWithPath_(PedometerBindings _lib, NSString path) { + final _ret = _lib._objc_msgSend_38( + _lib._class_NSBundle1, _lib._sel_bundleWithPath_1, path._id); + return _ret.address == 0 + ? null + : NSBundle._(_ret, _lib, retain: true, release: true); } - static NSProgress discreteProgressWithTotalUnitCount_( - PedometerBindings _lib, int unitCount) { - final _ret = _lib._objc_msgSend_476(_lib._class_NSProgress1, - _lib._sel_discreteProgressWithTotalUnitCount_1, unitCount); - return NSProgress._(_ret, _lib, retain: true, release: true); + NSBundle? initWithPath_(NSString path) { + final _ret = _lib._objc_msgSend_38(_id, _lib._sel_initWithPath_1, path._id); + return _ret.address == 0 + ? null + : NSBundle._(_ret, _lib, retain: true, release: true); } - static NSProgress progressWithTotalUnitCount_parent_pendingUnitCount_( - PedometerBindings _lib, - int unitCount, - NSProgress? parent, - int portionOfParentTotalUnitCount) { - final _ret = _lib._objc_msgSend_477( - _lib._class_NSProgress1, - _lib._sel_progressWithTotalUnitCount_parent_pendingUnitCount_1, - unitCount, - parent?._id ?? ffi.nullptr, - portionOfParentTotalUnitCount); - return NSProgress._(_ret, _lib, retain: true, release: true); + static NSBundle? bundleWithURL_(PedometerBindings _lib, NSURL url) { + final _ret = _lib._objc_msgSend_218( + _lib._class_NSBundle1, _lib._sel_bundleWithURL_1, url._id); + return _ret.address == 0 + ? null + : NSBundle._(_ret, _lib, retain: true, release: true); } - NSProgress initWithParent_userInfo_( - NSProgress? parentProgressOrNil, NSObject? userInfoOrNil) { - final _ret = _lib._objc_msgSend_478( - _id, - _lib._sel_initWithParent_userInfo_1, - parentProgressOrNil?._id ?? ffi.nullptr, - userInfoOrNil?._id ?? ffi.nullptr); - return NSProgress._(_ret, _lib, retain: true, release: true); + NSBundle? initWithURL_(NSURL url) { + final _ret = _lib._objc_msgSend_218(_id, _lib._sel_initWithURL_1, url._id); + return _ret.address == 0 + ? null + : NSBundle._(_ret, _lib, retain: true, release: true); } - void becomeCurrentWithPendingUnitCount_(int unitCount) { - return _lib._objc_msgSend_479( - _id, _lib._sel_becomeCurrentWithPendingUnitCount_1, unitCount); + static NSBundle bundleForClass_(PedometerBindings _lib, NSObject aClass) { + final _ret = _lib._objc_msgSend_536( + _lib._class_NSBundle1, _lib._sel_bundleForClass_1, aClass._id); + return NSBundle._(_ret, _lib, retain: true, release: true); } - void performAsCurrentWithPendingUnitCount_usingBlock_( - int unitCount, ObjCBlock21 work) { - return _lib._objc_msgSend_480( - _id, - _lib._sel_performAsCurrentWithPendingUnitCount_usingBlock_1, - unitCount, - work._id); + static NSBundle? bundleWithIdentifier_( + PedometerBindings _lib, NSString identifier) { + final _ret = _lib._objc_msgSend_537(_lib._class_NSBundle1, + _lib._sel_bundleWithIdentifier_1, identifier._id); + return _ret.address == 0 + ? null + : NSBundle._(_ret, _lib, retain: true, release: true); } - void resignCurrent() { - return _lib._objc_msgSend_1(_id, _lib._sel_resignCurrent1); + static NSArray getAllBundles(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_77(_lib._class_NSBundle1, _lib._sel_allBundles1); + return NSArray._(_ret, _lib, retain: true, release: true); } - void addChild_withPendingUnitCount_(NSProgress? child, int inUnitCount) { - return _lib._objc_msgSend_481( - _id, - _lib._sel_addChild_withPendingUnitCount_1, - child?._id ?? ffi.nullptr, - inUnitCount); + static NSArray getAllFrameworks(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_77(_lib._class_NSBundle1, _lib._sel_allFrameworks1); + return NSArray._(_ret, _lib, retain: true, release: true); } - int get totalUnitCount { - return _lib._objc_msgSend_482(_id, _lib._sel_totalUnitCount1); + bool load() { + return _lib._objc_msgSend_12(_id, _lib._sel_load1); } - set totalUnitCount(int value) { - _lib._objc_msgSend_483(_id, _lib._sel_setTotalUnitCount_1, value); + bool get loaded { + return _lib._objc_msgSend_12(_id, _lib._sel_isLoaded1); } - int get completedUnitCount { - return _lib._objc_msgSend_482(_id, _lib._sel_completedUnitCount1); + bool unload() { + return _lib._objc_msgSend_12(_id, _lib._sel_unload1); } - set completedUnitCount(int value) { - _lib._objc_msgSend_483(_id, _lib._sel_setCompletedUnitCount_1, value); + bool preflightAndReturnError_(ffi.Pointer> error) { + return _lib._objc_msgSend_194( + _id, _lib._sel_preflightAndReturnError_1, error); } - NSString? get localizedDescription { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localizedDescription1); + bool loadAndReturnError_(ffi.Pointer> error) { + return _lib._objc_msgSend_194(_id, _lib._sel_loadAndReturnError_1, error); + } + + NSURL get bundleURL { + final _ret = _lib._objc_msgSend_413(_id, _lib._sel_bundleURL1); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL? get resourceURL { + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_resourceURL1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSURL._(_ret, _lib, retain: true, release: true); } - set localizedDescription(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setLocalizedDescription_1, value?._id ?? ffi.nullptr); + NSURL? get executableURL { + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_executableURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - NSString? get localizedAdditionalDescription { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_localizedAdditionalDescription1); + NSURL? URLForAuxiliaryExecutable_(NSString executableName) { + final _ret = _lib._objc_msgSend_208( + _id, _lib._sel_URLForAuxiliaryExecutable_1, executableName._id); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSURL._(_ret, _lib, retain: true, release: true); } - set localizedAdditionalDescription(NSString? value) { - _lib._objc_msgSend_470(_id, _lib._sel_setLocalizedAdditionalDescription_1, - value?._id ?? ffi.nullptr); + NSURL? get privateFrameworksURL { + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_privateFrameworksURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - bool get cancellable { - return _lib._objc_msgSend_12(_id, _lib._sel_isCancellable1); + NSURL? get sharedFrameworksURL { + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_sharedFrameworksURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - set cancellable(bool value) { - _lib._objc_msgSend_453(_id, _lib._sel_setCancellable_1, value); + NSURL? get sharedSupportURL { + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_sharedSupportURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - bool get pausable { - return _lib._objc_msgSend_12(_id, _lib._sel_isPausable1); + NSURL? get builtInPlugInsURL { + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_builtInPlugInsURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - set pausable(bool value) { - _lib._objc_msgSend_453(_id, _lib._sel_setPausable_1, value); + NSURL? get appStoreReceiptURL { + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_appStoreReceiptURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - bool get cancelled { - return _lib._objc_msgSend_12(_id, _lib._sel_isCancelled1); + NSString get bundlePath { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_bundlePath1); + return NSString._(_ret, _lib, retain: true, release: true); } - bool get paused { - return _lib._objc_msgSend_12(_id, _lib._sel_isPaused1); + NSString? get resourcePath { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_resourcePath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - ObjCBlock21 get cancellationHandler { - final _ret = _lib._objc_msgSend_484(_id, _lib._sel_cancellationHandler1); - return ObjCBlock21._(_ret, _lib); + NSString? get executablePath { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_executablePath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - set cancellationHandler(ObjCBlock21 value) { - _lib._objc_msgSend_485(_id, _lib._sel_setCancellationHandler_1, value._id); + NSString? pathForAuxiliaryExecutable_(NSString executableName) { + final _ret = _lib._objc_msgSend_276( + _id, _lib._sel_pathForAuxiliaryExecutable_1, executableName._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - ObjCBlock21 get pausingHandler { - final _ret = _lib._objc_msgSend_484(_id, _lib._sel_pausingHandler1); - return ObjCBlock21._(_ret, _lib); + NSString? get privateFrameworksPath { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_privateFrameworksPath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - set pausingHandler(ObjCBlock21 value) { - _lib._objc_msgSend_485(_id, _lib._sel_setPausingHandler_1, value._id); + NSString? get sharedFrameworksPath { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_sharedFrameworksPath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - ObjCBlock21 get resumingHandler { - final _ret = _lib._objc_msgSend_484(_id, _lib._sel_resumingHandler1); - return ObjCBlock21._(_ret, _lib); + NSString? get sharedSupportPath { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_sharedSupportPath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - set resumingHandler(ObjCBlock21 value) { - _lib._objc_msgSend_485(_id, _lib._sel_setResumingHandler_1, value._id); + NSString? get builtInPlugInsPath { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_builtInPlugInsPath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void setUserInfoObject_forKey_(NSObject objectOrNil, NSString key) { - return _lib._objc_msgSend_118( - _id, _lib._sel_setUserInfoObject_forKey_1, objectOrNil._id, key._id); + static NSURL? URLForResource_withExtension_subdirectory_inBundleWithURL_( + PedometerBindings _lib, + NSString? name, + NSString? ext, + NSString? subpath, + NSURL bundleURL) { + final _ret = _lib._objc_msgSend_538( + _lib._class_NSBundle1, + _lib._sel_URLForResource_withExtension_subdirectory_inBundleWithURL_1, + name?._id ?? ffi.nullptr, + ext?._id ?? ffi.nullptr, + subpath?._id ?? ffi.nullptr, + bundleURL._id); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - bool get indeterminate { - return _lib._objc_msgSend_12(_id, _lib._sel_isIndeterminate1); + static NSArray? URLsForResourcesWithExtension_subdirectory_inBundleWithURL_( + PedometerBindings _lib, + NSString? ext, + NSString? subpath, + NSURL bundleURL) { + final _ret = _lib._objc_msgSend_539( + _lib._class_NSBundle1, + _lib._sel_URLsForResourcesWithExtension_subdirectory_inBundleWithURL_1, + ext?._id ?? ffi.nullptr, + subpath?._id ?? ffi.nullptr, + bundleURL._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - double get fractionCompleted { - return _lib._objc_msgSend_147(_id, _lib._sel_fractionCompleted1); + NSURL? URLForResource_withExtension_(NSString? name, NSString? ext) { + final _ret = _lib._objc_msgSend_540( + _id, + _lib._sel_URLForResource_withExtension_1, + name?._id ?? ffi.nullptr, + ext?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - bool get finished { - return _lib._objc_msgSend_12(_id, _lib._sel_isFinished1); + NSURL? URLForResource_withExtension_subdirectory_( + NSString? name, NSString? ext, NSString? subpath) { + final _ret = _lib._objc_msgSend_541( + _id, + _lib._sel_URLForResource_withExtension_subdirectory_1, + name?._id ?? ffi.nullptr, + ext?._id ?? ffi.nullptr, + subpath?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - void cancel() { - return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + NSURL? URLForResource_withExtension_subdirectory_localization_(NSString? name, + NSString? ext, NSString? subpath, NSString? localizationName) { + final _ret = _lib._objc_msgSend_542( + _id, + _lib._sel_URLForResource_withExtension_subdirectory_localization_1, + name?._id ?? ffi.nullptr, + ext?._id ?? ffi.nullptr, + subpath?._id ?? ffi.nullptr, + localizationName?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - void pause() { - return _lib._objc_msgSend_1(_id, _lib._sel_pause1); + NSArray? URLsForResourcesWithExtension_subdirectory_( + NSString? ext, NSString? subpath) { + final _ret = _lib._objc_msgSend_543( + _id, + _lib._sel_URLsForResourcesWithExtension_subdirectory_1, + ext?._id ?? ffi.nullptr, + subpath?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - void resume() { - return _lib._objc_msgSend_1(_id, _lib._sel_resume1); + NSArray? URLsForResourcesWithExtension_subdirectory_localization_( + NSString? ext, NSString? subpath, NSString? localizationName) { + final _ret = _lib._objc_msgSend_544( + _id, + _lib._sel_URLsForResourcesWithExtension_subdirectory_localization_1, + ext?._id ?? ffi.nullptr, + subpath?._id ?? ffi.nullptr, + localizationName?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSObject? get userInfo { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_userInfo1); + static NSString? pathForResource_ofType_inDirectory_(PedometerBindings _lib, + NSString? name, NSString? ext, NSString bundlePath) { + final _ret = _lib._objc_msgSend_545( + _lib._class_NSBundle1, + _lib._sel_pathForResource_ofType_inDirectory_1, + name?._id ?? ffi.nullptr, + ext?._id ?? ffi.nullptr, + bundlePath._id); return _ret.address == 0 ? null - : NSObject._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - NSString get kind { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_kind1); - return NSString._(_ret, _lib, retain: true, release: true); + static NSArray pathsForResourcesOfType_inDirectory_( + PedometerBindings _lib, NSString? ext, NSString bundlePath) { + final _ret = _lib._objc_msgSend_546( + _lib._class_NSBundle1, + _lib._sel_pathsForResourcesOfType_inDirectory_1, + ext?._id ?? ffi.nullptr, + bundlePath._id); + return NSArray._(_ret, _lib, retain: true, release: true); } - set kind(NSString value) { - _lib._objc_msgSend_470(_id, _lib._sel_setKind_1, value._id); + NSString? pathForResource_ofType_(NSString? name, NSString? ext) { + final _ret = _lib._objc_msgSend_547(_id, _lib._sel_pathForResource_ofType_1, + name?._id ?? ffi.nullptr, ext?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSNumber? get estimatedTimeRemaining { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_estimatedTimeRemaining1); + NSString? pathForResource_ofType_inDirectory_forLocalization_(NSString? name, + NSString? ext, NSString? subpath, NSString? localizationName) { + final _ret = _lib._objc_msgSend_548( + _id, + _lib._sel_pathForResource_ofType_inDirectory_forLocalization_1, + name?._id ?? ffi.nullptr, + ext?._id ?? ffi.nullptr, + subpath?._id ?? ffi.nullptr, + localizationName?._id ?? ffi.nullptr); return _ret.address == 0 ? null - : NSNumber._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - set estimatedTimeRemaining(NSNumber? value) { - _lib._objc_msgSend_486( - _id, _lib._sel_setEstimatedTimeRemaining_1, value?._id ?? ffi.nullptr); + NSArray pathsForResourcesOfType_inDirectory_forLocalization_( + NSString? ext, NSString? subpath, NSString? localizationName) { + final _ret = _lib._objc_msgSend_549( + _id, + _lib._sel_pathsForResourcesOfType_inDirectory_forLocalization_1, + ext?._id ?? ffi.nullptr, + subpath?._id ?? ffi.nullptr, + localizationName?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSNumber? get throughput { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_throughput1); - return _ret.address == 0 - ? null - : NSNumber._(_ret, _lib, retain: true, release: true); + NSString localizedStringForKey_value_table_( + NSString key, NSString? value, NSString? tableName) { + final _ret = _lib._objc_msgSend_550( + _id, + _lib._sel_localizedStringForKey_value_table_1, + key._id, + value?._id ?? ffi.nullptr, + tableName?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - set throughput(NSNumber? value) { - _lib._objc_msgSend_486( - _id, _lib._sel_setThroughput_1, value?._id ?? ffi.nullptr); + NSAttributedString localizedAttributedStringForKey_value_table_( + NSString key, NSString? value, NSString? tableName) { + final _ret = _lib._objc_msgSend_576( + _id, + _lib._sel_localizedAttributedStringForKey_value_table_1, + key._id, + value?._id ?? ffi.nullptr, + tableName?._id ?? ffi.nullptr); + return NSAttributedString._(_ret, _lib, retain: true, release: true); } - NSString get fileOperationKind { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fileOperationKind1); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? get bundleIdentifier { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_bundleIdentifier1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - set fileOperationKind(NSString value) { - _lib._objc_msgSend_470(_id, _lib._sel_setFileOperationKind_1, value._id); + NSDictionary? get infoDictionary { + final _ret = _lib._objc_msgSend_340(_id, _lib._sel_infoDictionary1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSURL? get fileURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_fileURL1); + NSDictionary? get localizedInfoDictionary { + final _ret = + _lib._objc_msgSend_340(_id, _lib._sel_localizedInfoDictionary1); return _ret.address == 0 ? null - : NSURL._(_ret, _lib, retain: true, release: true); + : NSDictionary._(_ret, _lib, retain: true, release: true); } - set fileURL(NSURL? value) { - _lib._objc_msgSend_487( - _id, _lib._sel_setFileURL_1, value?._id ?? ffi.nullptr); + NSObject? objectForInfoDictionaryKey_(NSString key) { + final _ret = _lib._objc_msgSend_38( + _id, _lib._sel_objectForInfoDictionaryKey_1, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSNumber? get fileTotalCount { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_fileTotalCount1); + NSObject? classNamed_(NSString className) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_classNamed_1, className._id); return _ret.address == 0 ? null - : NSNumber._(_ret, _lib, retain: true, release: true); + : NSObject._(_ret, _lib, retain: true, release: true); } - set fileTotalCount(NSNumber? value) { - _lib._objc_msgSend_486( - _id, _lib._sel_setFileTotalCount_1, value?._id ?? ffi.nullptr); + NSObject? get principalClass { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_principalClass1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + NSArray get preferredLocalizations { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_preferredLocalizations1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray get localizations { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_localizations1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSNumber? get fileCompletedCount { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_fileCompletedCount1); + NSString? get developmentLocalization { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_developmentLocalization1); return _ret.address == 0 ? null - : NSNumber._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - set fileCompletedCount(NSNumber? value) { - _lib._objc_msgSend_486( - _id, _lib._sel_setFileCompletedCount_1, value?._id ?? ffi.nullptr); + static NSArray preferredLocalizationsFromArray_( + PedometerBindings _lib, NSArray localizationsArray) { + final _ret = _lib._objc_msgSend_60(_lib._class_NSBundle1, + _lib._sel_preferredLocalizationsFromArray_1, localizationsArray._id); + return NSArray._(_ret, _lib, retain: true, release: true); } - void publish() { - return _lib._objc_msgSend_1(_id, _lib._sel_publish1); + static NSArray preferredLocalizationsFromArray_forPreferences_( + PedometerBindings _lib, + NSArray localizationsArray, + NSArray? preferencesArray) { + final _ret = _lib._objc_msgSend_577( + _lib._class_NSBundle1, + _lib._sel_preferredLocalizationsFromArray_forPreferences_1, + localizationsArray._id, + preferencesArray?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - void unpublish() { - return _lib._objc_msgSend_1(_id, _lib._sel_unpublish1); + NSArray? get executableArchitectures { + final _ret = _lib._objc_msgSend_76(_id, _lib._sel_executableArchitectures1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - static NSObject addSubscriberForFileURL_withPublishingHandler_( - PedometerBindings _lib, NSURL? url, ObjCBlock23 publishingHandler) { - final _ret = _lib._objc_msgSend_488( - _lib._class_NSProgress1, - _lib._sel_addSubscriberForFileURL_withPublishingHandler_1, - url?._id ?? ffi.nullptr, - publishingHandler._id); - return NSObject._(_ret, _lib, retain: true, release: true); + void setPreservationPriority_forTags_(double priority, NSSet tags) { + _lib._objc_msgSend_578( + _id, _lib._sel_setPreservationPriority_forTags_1, priority, tags._id); } - static void removeSubscriber_(PedometerBindings _lib, NSObject subscriber) { - return _lib._objc_msgSend_15( - _lib._class_NSProgress1, _lib._sel_removeSubscriber_1, subscriber._id); + double preservationPriorityForTag_(NSString tag) { + return _lib._objc_msgSend_249( + _id, _lib._sel_preservationPriorityForTag_1, tag._id); } - bool get old { - return _lib._objc_msgSend_12(_id, _lib._sel_isOld1); + @override + NSBundle init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSBundle._(_ret, _lib, retain: true, release: true); } - static NSProgress new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSProgress1, _lib._sel_new1); - return NSProgress._(_ret, _lib, retain: false, release: true); + static NSBundle new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSBundle1, _lib._sel_new1); + return NSBundle._(_ret, _lib, retain: false, release: true); } - static NSProgress alloc(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSProgress1, _lib._sel_alloc1); - return NSProgress._(_ret, _lib, retain: false, release: true); + static NSBundle allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSBundle1, _lib._sel_allocWithZone_1, zone); + return NSBundle._(_ret, _lib, retain: false, release: true); + } + + static NSBundle alloc(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSBundle1, _lib._sel_alloc1); + return NSBundle._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSProgress1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSBundle1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSProgress1, + _lib._objc_msgSend_15(_lib._class_NSBundle1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSProgress1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSBundle1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSProgress1, _lib._sel_useStoredAccessor1); + _lib._class_NSBundle1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSProgress1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSBundle1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSProgress1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSProgress1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSBundle1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSProgress1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_NSBundle1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSProgress1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSBundle1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -ffi.Pointer<_ObjCBlock> _ObjCBlock23_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer<_ObjCBlock> Function(ffi.Pointer arg0)>>() - .asFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer arg0)>()(arg0); -} - -final _ObjCBlock23_closureRegistry = {}; -int _ObjCBlock23_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock23_registerClosure(Function fn) { - final id = ++_ObjCBlock23_closureRegistryIndex; - _ObjCBlock23_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -ffi.Pointer<_ObjCBlock> _ObjCBlock23_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock23_closureRegistry[block.ref.target.address]!(arg0); -} +class NSAttributedString extends NSObject { + NSAttributedString._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); -class ObjCBlock23 extends _ObjCBlockBase { - ObjCBlock23._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); + /// Returns a [NSAttributedString] that points to the same underlying object as [other]. + static NSAttributedString castFrom(T other) { + return NSAttributedString._(other._id, other._lib, + retain: true, release: true); + } - /// Creates a block from a C function pointer. - ObjCBlock23.fromFunctionPointer( - PedometerBindings lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock23_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + /// Returns a [NSAttributedString] that wraps the given raw object pointer. + static NSAttributedString castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSAttributedString._(other, lib, retain: retain, release: release); + } - /// Creates a block from a Dart function. - ObjCBlock23.fromFunction(PedometerBindings lib, - ffi.Pointer<_ObjCBlock> Function(ffi.Pointer arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock23_closureTrampoline) - .cast(), - _ObjCBlock23_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - ffi.Pointer<_ObjCBlock> call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer<_ObjCBlock> Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - ffi.Pointer<_ObjCBlock> Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); + /// Returns whether [obj] is an instance of [NSAttributedString]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSAttributedString1); } - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + NSString get string { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_string1); + return NSString._(_ret, _lib, retain: true, release: true); + } -void _ObjCBlock24_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} + NSDictionary attributesAtIndex_effectiveRange_( + int location, ffi.Pointer<_NSRange> range) { + final _ret = _lib._objc_msgSend_551( + _id, _lib._sel_attributesAtIndex_effectiveRange_1, location, range); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } -final _ObjCBlock24_closureRegistry = {}; -int _ObjCBlock24_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock24_registerClosure(Function fn) { - final id = ++_ObjCBlock24_closureRegistryIndex; - _ObjCBlock24_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + int get length { + return _lib._objc_msgSend_10(_id, _lib._sel_length1); + } -void _ObjCBlock24_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock24_closureRegistry[block.ref.target.address]!(arg0, arg1); -} + NSObject? attribute_atIndex_effectiveRange_( + NSString attrName, int location, ffi.Pointer<_NSRange> range) { + final _ret = _lib._objc_msgSend_552( + _id, + _lib._sel_attribute_atIndex_effectiveRange_1, + attrName._id, + location, + range); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } -class ObjCBlock24 extends _ObjCBlockBase { - ObjCBlock24._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); + NSAttributedString attributedSubstringFromRange_(_NSRange range) { + final _ret = _lib._objc_msgSend_553( + _id, _lib._sel_attributedSubstringFromRange_1, range); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a C function pointer. - ObjCBlock24.fromFunctionPointer( - PedometerBindings lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock24_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + NSDictionary attributesAtIndex_longestEffectiveRange_inRange_( + int location, ffi.Pointer<_NSRange> range, _NSRange rangeLimit) { + final _ret = _lib._objc_msgSend_554( + _id, + _lib._sel_attributesAtIndex_longestEffectiveRange_inRange_1, + location, + range, + rangeLimit); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a Dart function. - ObjCBlock24.fromFunction( - PedometerBindings lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock24_closureTrampoline) - .cast(), - _ObjCBlock24_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); + NSObject? attribute_atIndex_longestEffectiveRange_inRange_(NSString attrName, + int location, ffi.Pointer<_NSRange> range, _NSRange rangeLimit) { + final _ret = _lib._objc_msgSend_555( + _id, + _lib._sel_attribute_atIndex_longestEffectiveRange_inRange_1, + attrName._id, + location, + range, + rangeLimit); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + bool isEqualToAttributedString_(NSAttributedString other) { + return _lib._objc_msgSend_556( + _id, _lib._sel_isEqualToAttributedString_1, other._id); + } -abstract class NSItemProviderFileOptions { - static const int NSItemProviderFileOptionOpenInPlace = 1; -} + NSAttributedString initWithString_(NSString str) { + final _ret = + _lib._objc_msgSend_31(_id, _lib._sel_initWithString_1, str._id); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } -ffi.Pointer _ObjCBlock25_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> arg0)>()(arg0); -} + NSAttributedString initWithString_attributes_( + NSString str, NSDictionary? attrs) { + final _ret = _lib._objc_msgSend_557( + _id, + _lib._sel_initWithString_attributes_1, + str._id, + attrs?._id ?? ffi.nullptr); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } -final _ObjCBlock25_closureRegistry = {}; -int _ObjCBlock25_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock25_registerClosure(Function fn) { - final id = ++_ObjCBlock25_closureRegistryIndex; - _ObjCBlock25_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + NSAttributedString initWithAttributedString_(NSAttributedString attrStr) { + final _ret = _lib._objc_msgSend_558( + _id, _lib._sel_initWithAttributedString_1, attrStr._id); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } -ffi.Pointer _ObjCBlock25_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { - return _ObjCBlock25_closureRegistry[block.ref.target.address]!(arg0); -} + void enumerateAttributesInRange_options_usingBlock_(_NSRange enumerationRange, + int opts, ObjCBlock_ffiVoid_NSDictionary_NSRange_bool block) { + _lib._objc_msgSend_559( + _id, + _lib._sel_enumerateAttributesInRange_options_usingBlock_1, + enumerationRange, + opts, + block._id); + } -class ObjCBlock25 extends _ObjCBlockBase { - ObjCBlock25._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); + void enumerateAttribute_inRange_options_usingBlock_( + NSString attrName, + _NSRange enumerationRange, + int opts, + ObjCBlock_ffiVoid_ObjCObject_NSRange_bool block) { + _lib._objc_msgSend_560( + _id, + _lib._sel_enumerateAttribute_inRange_options_usingBlock_1, + attrName._id, + enumerationRange, + opts, + block._id); + } - /// Creates a block from a C function pointer. - ObjCBlock25.fromFunctionPointer( - PedometerBindings lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock25_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + NSAttributedString? + initWithContentsOfMarkdownFileAtURL_options_baseURL_error_( + NSURL markdownFile, + NSAttributedStringMarkdownParsingOptions? options, + NSURL? baseURL, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_565( + _id, + _lib._sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_1, + markdownFile._id, + options?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr, + error); + return _ret.address == 0 + ? null + : NSAttributedString._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a Dart function. - ObjCBlock25.fromFunction(PedometerBindings lib, - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock25_closureTrampoline) - .cast(), - _ObjCBlock25_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - ffi.Pointer call(ffi.Pointer<_ObjCBlock> arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>>() - .asFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>()(_id, arg0); + NSAttributedString? initWithMarkdown_options_baseURL_error_( + NSData markdown, + NSAttributedStringMarkdownParsingOptions? options, + NSURL? baseURL, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_566( + _id, + _lib._sel_initWithMarkdown_options_baseURL_error_1, + markdown._id, + options?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr, + error); + return _ret.address == 0 + ? null + : NSAttributedString._(_ret, _lib, retain: true, release: true); } - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + NSAttributedString? initWithMarkdownString_options_baseURL_error_( + NSString markdownString, + NSAttributedStringMarkdownParsingOptions? options, + NSURL? baseURL, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_567( + _id, + _lib._sel_initWithMarkdownString_options_baseURL_error_1, + markdownString._id, + options?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr, + error); + return _ret.address == 0 + ? null + : NSAttributedString._(_ret, _lib, retain: true, release: true); + } -void _ObjCBlock26_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, bool arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} + /// Formats the string using the specified locale (or the canonical one, if nil). + NSAttributedString initWithFormat_options_locale_( + NSAttributedString format, int options, NSLocale? locale) { + final _ret = _lib._objc_msgSend_568( + _id, + _lib._sel_initWithFormat_options_locale_1, + format._id, + options, + locale?._id ?? ffi.nullptr); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } -final _ObjCBlock26_closureRegistry = {}; -int _ObjCBlock26_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock26_registerClosure(Function fn) { - final id = ++_ObjCBlock26_closureRegistryIndex; - _ObjCBlock26_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + /// Formats the string using the arguments list and the specified locale (or the canonical one, if nil). + NSAttributedString initWithFormat_options_locale_arguments_( + NSAttributedString format, + int options, + NSLocale? locale, + ffi.Pointer<__va_list_tag> arguments) { + final _ret = _lib._objc_msgSend_569( + _id, + _lib._sel_initWithFormat_options_locale_arguments_1, + format._id, + options, + locale?._id ?? ffi.nullptr, + arguments); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } -void _ObjCBlock26_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return _ObjCBlock26_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} + /// Formats the string using the current locale and default options. + static NSAttributedString localizedAttributedStringWithFormat_( + PedometerBindings _lib, NSAttributedString format) { + final _ret = _lib._objc_msgSend_558(_lib._class_NSAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_1, format._id); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } -class ObjCBlock26 extends _ObjCBlockBase { - ObjCBlock26._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); + /// Formats the string using the current locale and the specified options. + static NSAttributedString localizedAttributedStringWithFormat_options_( + PedometerBindings _lib, NSAttributedString format, int options) { + final _ret = _lib._objc_msgSend_570( + _lib._class_NSAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_options_1, + format._id, + options); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a C function pointer. - ObjCBlock26.fromFunctionPointer( - PedometerBindings lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, - ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>( - _ObjCBlock26_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + /// Formats the string using the specified locale (or the canonical one, if nil). + NSAttributedString initWithFormat_options_locale_context_( + NSAttributedString format, + int options, + NSLocale? locale, + NSDictionary context) { + final _ret = _lib._objc_msgSend_571( + _id, + _lib._sel_initWithFormat_options_locale_context_1, + format._id, + options, + locale?._id ?? ffi.nullptr, + context._id); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a Dart function. - ObjCBlock26.fromFunction( - PedometerBindings lib, - void Function(ffi.Pointer arg0, bool arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>( - _ObjCBlock26_closureTrampoline) - .cast(), - _ObjCBlock26_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call( - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + /// Formats the string using the arguments list and the specified locale (or the canonical one, if nil). + NSAttributedString initWithFormat_options_locale_context_arguments_( + NSAttributedString format, + int options, + NSLocale? locale, + NSDictionary context, + ffi.Pointer<__va_list_tag> arguments) { + final _ret = _lib._objc_msgSend_572( + _id, + _lib._sel_initWithFormat_options_locale_context_arguments_1, + format._id, + options, + locale?._id ?? ffi.nullptr, + context._id, + arguments); + return NSAttributedString._(_ret, _lib, retain: true, release: true); } - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + /// Formats the string using the current locale and default options. + static NSAttributedString localizedAttributedStringWithFormat_context_( + PedometerBindings _lib, NSAttributedString format, NSDictionary context) { + final _ret = _lib._objc_msgSend_573( + _lib._class_NSAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_context_1, + format._id, + context._id); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } -void _ObjCBlock27_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} + /// Formats the string using the current locale and the specified options. + static NSAttributedString + localizedAttributedStringWithFormat_options_context_( + PedometerBindings _lib, + NSAttributedString format, + int options, + NSDictionary context) { + final _ret = _lib._objc_msgSend_574( + _lib._class_NSAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_options_context_1, + format._id, + options, + context._id); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } -final _ObjCBlock27_closureRegistry = {}; -int _ObjCBlock27_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock27_registerClosure(Function fn) { - final id = ++_ObjCBlock27_closureRegistryIndex; - _ObjCBlock27_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + /// If the string has portions tagged with NSInflectionRuleAttributeName + /// that have no format specifiers, create a new string with those portions inflected + /// by following the rule in the attribute. + NSAttributedString attributedStringByInflectingString() { + final _ret = _lib._objc_msgSend_575( + _id, _lib._sel_attributedStringByInflectingString1); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } -void _ObjCBlock27_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock27_closureRegistry[block.ref.target.address]!(arg0, arg1); -} + @override + NSAttributedString init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } -class ObjCBlock27 extends _ObjCBlockBase { - ObjCBlock27._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); + static NSAttributedString new1(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSAttributedString1, _lib._sel_new1); + return NSAttributedString._(_ret, _lib, retain: false, release: true); + } - /// Creates a block from a C function pointer. - ObjCBlock27.fromFunctionPointer( - PedometerBindings lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock27_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + static NSAttributedString allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSAttributedString1, _lib._sel_allocWithZone_1, zone); + return NSAttributedString._(_ret, _lib, retain: false, release: true); + } - /// Creates a block from a Dart function. - ObjCBlock27.fromFunction( - PedometerBindings lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock27_closureTrampoline) - .cast(), - _ObjCBlock27_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); + static NSAttributedString alloc(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSAttributedString1, _lib._sel_alloc1); + return NSAttributedString._(_ret, _lib, retain: false, release: true); } - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + PedometerBindings _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSAttributedString1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument?._id ?? ffi.nullptr); + } -ffi.Pointer _ObjCBlock28_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> arg0)>()(arg0); -} + static void cancelPreviousPerformRequestsWithTarget_( + PedometerBindings _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSAttributedString1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } -final _ObjCBlock28_closureRegistry = {}; -int _ObjCBlock28_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock28_registerClosure(Function fn) { - final id = ++_ObjCBlock28_closureRegistryIndex; - _ObjCBlock28_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { + return _lib._objc_msgSend_12(_lib._class_NSAttributedString1, + _lib._sel_accessInstanceVariablesDirectly1); + } -ffi.Pointer _ObjCBlock28_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { - return _ObjCBlock28_closureRegistry[block.ref.target.address]!(arg0); -} + static bool useStoredAccessor(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSAttributedString1, _lib._sel_useStoredAccessor1); + } -class ObjCBlock28 extends _ObjCBlockBase { - ObjCBlock28._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); + static NSSet keyPathsForValuesAffectingValueForKey_( + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSAttributedString1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); + return NSSet._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a C function pointer. - ObjCBlock28.fromFunctionPointer( - PedometerBindings lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock28_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + static bool automaticallyNotifiesObserversForKey_( + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSAttributedString1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); + } - /// Creates a block from a Dart function. - ObjCBlock28.fromFunction(PedometerBindings lib, - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock28_closureTrampoline) - .cast(), - _ObjCBlock28_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - ffi.Pointer call(ffi.Pointer<_ObjCBlock> arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>>() - .asFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>()(_id, arg0); + static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77(_lib._class_NSAttributedString1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - ffi.Pointer<_ObjCBlock> get pointer => _id; + static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSAttributedString1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } } -void _ObjCBlock29_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); +abstract class NSAttributedStringEnumerationOptions { + static const int NSAttributedStringEnumerationReverse = 2; + static const int + NSAttributedStringEnumerationLongestEffectiveRangeNotRequired = 1048576; } -final _ObjCBlock29_closureRegistry = {}; -int _ObjCBlock29_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock29_registerClosure(Function fn) { - final id = ++_ObjCBlock29_closureRegistryIndex; - _ObjCBlock29_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer, _NSRange, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureRegistry = , _NSRange, ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_registerClosure( + void Function(ffi.Pointer, _NSRange, ffi.Pointer) + fn) { + final id = + ++_ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock29_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock29_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock29 extends _ObjCBlockBase { - ObjCBlock29._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_NSDictionary_NSRange_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSDictionary_NSRange_bool._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock29.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSDictionary_NSRange_bool.fromFunctionPointer( PedometerBindings lib, ffi.Pointer< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> + ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2)>> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock29_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock29.fromFunction( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSDictionary_NSRange_bool.fromFunction( PedometerBindings lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) + void Function(NSDictionary, _NSRange, ffi.Pointer) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock29_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureTrampoline) .cast(), - _ObjCBlock29_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_registerClosure( + (ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2) => + fn(NSDictionary._(arg0, lib, retain: true, release: true), arg1, arg2))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSDictionary_NSRange_bool.listener(PedometerBindings lib, + void Function(NSDictionary, _NSRange, ffi.Pointer) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_registerClosure( + (ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2) => + fn(NSDictionary._(arg0, lib, retain: true, release: true), arg1, arg2))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + _NSRange, ffi.Pointer)>? _dartFuncListenerTrampoline; -void _ObjCBlock30_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); + void call(NSDictionary arg0, _NSRange arg1, ffi.Pointer arg2) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + ffi.Pointer)>()(_id, arg0._id, arg1, arg2); } -final _ObjCBlock30_closureRegistry = {}; -int _ObjCBlock30_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock30_registerClosure(Function fn) { - final id = ++_ObjCBlock30_closureRegistryIndex; - _ObjCBlock30_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer, _NSRange, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureRegistry = , _NSRange, ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_registerClosure( + void Function(ffi.Pointer, _NSRange, ffi.Pointer) + fn) { + final id = ++_ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock30_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return _ObjCBlock30_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock30 extends _ObjCBlockBase { - ObjCBlock30._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_ObjCObject_NSRange_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ObjCObject_NSRange_bool._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock30.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_NSRange_bool.fromFunctionPointer( PedometerBindings lib, ffi.Pointer< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>> + ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2)>> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock30_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock30.fromFunction( - PedometerBindings lib, - void Function(ffi.Pointer<_ObjCBlock> arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_NSRange_bool.fromFunction(PedometerBindings lib, + void Function(NSObject?, _NSRange, ffi.Pointer) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock30_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureTrampoline) .cast(), - _ObjCBlock30_registerClosure(fn)), + _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_registerClosure( + (ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2) => + fn(arg0.address == 0 ? null : NSObject._(arg0, lib, retain: true, release: true), arg1, arg2))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer<_ObjCBlock> arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } - ffi.Pointer<_ObjCBlock> get pointer => _id; + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_ObjCObject_NSRange_bool.listener(PedometerBindings lib, + void Function(NSObject?, _NSRange, ffi.Pointer) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_registerClosure( + (ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2) => + fn(arg0.address == 0 ? null : NSObject._(arg0, lib, retain: true, release: true), arg1, arg2))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + _NSRange, ffi.Pointer)>? _dartFuncListenerTrampoline; + + void call(NSObject? arg0, _NSRange arg1, ffi.Pointer arg2) => _id + .ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + _NSRange, ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1, arg2); } -class NSMutableString extends NSString { - NSMutableString._(ffi.Pointer id, PedometerBindings lib, +class NSAttributedStringMarkdownParsingOptions extends NSObject { + NSAttributedStringMarkdownParsingOptions._( + ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSMutableString] that points to the same underlying object as [other]. - static NSMutableString castFrom(T other) { - return NSMutableString._(other._id, other._lib, + /// Returns a [NSAttributedStringMarkdownParsingOptions] that points to the same underlying object as [other]. + static NSAttributedStringMarkdownParsingOptions + castFrom(T other) { + return NSAttributedStringMarkdownParsingOptions._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSMutableString] that wraps the given raw object pointer. - static NSMutableString castFromPointer( + /// Returns a [NSAttributedStringMarkdownParsingOptions] that wraps the given raw object pointer. + static NSAttributedStringMarkdownParsingOptions castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSMutableString._(other, lib, retain: retain, release: release); + return NSAttributedStringMarkdownParsingOptions._(other, lib, + retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSMutableString]. + /// Returns whether [obj] is an instance of [NSAttributedStringMarkdownParsingOptions]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMutableString1); + obj._lib._class_NSAttributedStringMarkdownParsingOptions1); } - void replaceCharactersInRange_withString_(_NSRange range, NSString? aString) { - return _lib._objc_msgSend_504( - _id, - _lib._sel_replaceCharactersInRange_withString_1, - range, - aString?._id ?? ffi.nullptr); + @override + NSAttributedStringMarkdownParsingOptions init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSAttributedStringMarkdownParsingOptions._(_ret, _lib, + retain: true, release: true); } - void insertString_atIndex_(NSString? aString, int loc) { - return _lib._objc_msgSend_505(_id, _lib._sel_insertString_atIndex_1, - aString?._id ?? ffi.nullptr, loc); + bool get allowsExtendedAttributes { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsExtendedAttributes1); } - void deleteCharactersInRange_(_NSRange range) { - return _lib._objc_msgSend_407( - _id, _lib._sel_deleteCharactersInRange_1, range); + set allowsExtendedAttributes(bool value) { + return _lib._objc_msgSend_475( + _id, _lib._sel_setAllowsExtendedAttributes_1, value); } - void appendString_(NSString? aString) { - return _lib._objc_msgSend_188( - _id, _lib._sel_appendString_1, aString?._id ?? ffi.nullptr); + int get interpretedSyntax { + return _lib._objc_msgSend_561(_id, _lib._sel_interpretedSyntax1); } - void appendFormat_(NSString? format) { - return _lib._objc_msgSend_188( - _id, _lib._sel_appendFormat_1, format?._id ?? ffi.nullptr); + set interpretedSyntax(int value) { + return _lib._objc_msgSend_562(_id, _lib._sel_setInterpretedSyntax_1, value); } - void setString_(NSString? aString) { - return _lib._objc_msgSend_188( - _id, _lib._sel_setString_1, aString?._id ?? ffi.nullptr); + int get failurePolicy { + return _lib._objc_msgSend_563(_id, _lib._sel_failurePolicy1); } - int replaceOccurrencesOfString_withString_options_range_(NSString? target, - NSString? replacement, int options, _NSRange searchRange) { - return _lib._objc_msgSend_506( - _id, - _lib._sel_replaceOccurrencesOfString_withString_options_range_1, - target?._id ?? ffi.nullptr, - replacement?._id ?? ffi.nullptr, - options, - searchRange); + set failurePolicy(int value) { + return _lib._objc_msgSend_564(_id, _lib._sel_setFailurePolicy_1, value); } - bool applyTransform_reverse_range_updatedRange_(NSString transform, - bool reverse, _NSRange range, ffi.Pointer<_NSRange> resultingRange) { - return _lib._objc_msgSend_507( - _id, - _lib._sel_applyTransform_reverse_range_updatedRange_1, - transform._id, - reverse, - range, - resultingRange); + NSString? get languageCode { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_languageCode1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSMutableString initWithCapacity_(int capacity) { - final _ret = - _lib._objc_msgSend_508(_id, _lib._sel_initWithCapacity_1, capacity); - return NSMutableString._(_ret, _lib, retain: true, release: true); + set languageCode(NSString? value) { + return _lib._objc_msgSend_493( + _id, _lib._sel_setLanguageCode_1, value?._id ?? ffi.nullptr); } - static NSMutableString stringWithCapacity_( - PedometerBindings _lib, int capacity) { - final _ret = _lib._objc_msgSend_508( - _lib._class_NSMutableString1, _lib._sel_stringWithCapacity_1, capacity); - return NSMutableString._(_ret, _lib, retain: true, release: true); + bool get appliesSourcePositionAttributes { + return _lib._objc_msgSend_12( + _id, _lib._sel_appliesSourcePositionAttributes1); } - static ffi.Pointer getAvailableStringEncodings( + set appliesSourcePositionAttributes(bool value) { + return _lib._objc_msgSend_475( + _id, _lib._sel_setAppliesSourcePositionAttributes_1, value); + } + + static NSAttributedStringMarkdownParsingOptions new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSAttributedStringMarkdownParsingOptions1, _lib._sel_new1); + return NSAttributedStringMarkdownParsingOptions._(_ret, _lib, + retain: false, release: true); + } + + static NSAttributedStringMarkdownParsingOptions allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_allocWithZone_1, + zone); + return NSAttributedStringMarkdownParsingOptions._(_ret, _lib, + retain: false, release: true); + } + + static NSAttributedStringMarkdownParsingOptions alloc( PedometerBindings _lib) { - return _lib._objc_msgSend_292( - _lib._class_NSMutableString1, _lib._sel_availableStringEncodings1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_alloc1); + return NSAttributedStringMarkdownParsingOptions._(_ret, _lib, + retain: false, release: true); } - static NSString localizedNameOfStringEncoding_( - PedometerBindings _lib, int encoding) { - final _ret = _lib._objc_msgSend_253(_lib._class_NSMutableString1, - _lib._sel_localizedNameOfStringEncoding_1, encoding); - return NSString._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + PedometerBindings _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument?._id ?? ffi.nullptr); } - static int getDefaultCStringEncoding(PedometerBindings _lib) { - return _lib._objc_msgSend_10( - _lib._class_NSMutableString1, _lib._sel_defaultCStringEncoding1); + static void cancelPreviousPerformRequestsWithTarget_( + PedometerBindings _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - static NSMutableString string(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_string1); - return NSMutableString._(_ret, _lib, retain: true, release: true); + static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_accessInstanceVariablesDirectly1); } - static NSMutableString stringWithString_( - PedometerBindings _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableString1, - _lib._sel_stringWithString_1, string?._id ?? ffi.nullptr); - return NSMutableString._(_ret, _lib, retain: true, release: true); + static bool useStoredAccessor(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_useStoredAccessor1); } - static NSMutableString stringWithCharacters_length_(PedometerBindings _lib, - ffi.Pointer characters, int length) { - final _ret = _lib._objc_msgSend_305(_lib._class_NSMutableString1, - _lib._sel_stringWithCharacters_length_1, characters, length); - return NSMutableString._(_ret, _lib, retain: true, release: true); + static NSSet keyPathsForValuesAffectingValueForKey_( + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55( + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key._id); + return NSSet._(_ret, _lib, retain: true, release: true); } - static NSMutableString stringWithUTF8String_( - PedometerBindings _lib, ffi.Pointer nullTerminatedCString) { - final _ret = _lib._objc_msgSend_306(_lib._class_NSMutableString1, - _lib._sel_stringWithUTF8String_1, nullTerminatedCString); - return NSMutableString._(_ret, _lib, retain: true, release: true); + static bool automaticallyNotifiesObserversForKey_( + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56( + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key._id); } - static NSMutableString stringWithFormat_( - PedometerBindings _lib, NSString? format) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableString1, - _lib._sel_stringWithFormat_1, format?._id ?? ffi.nullptr); - return NSMutableString._(_ret, _lib, retain: true, release: true); + static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77( + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSMutableString localizedStringWithFormat_( - PedometerBindings _lib, NSString? format) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableString1, - _lib._sel_localizedStringWithFormat_1, format?._id ?? ffi.nullptr); - return NSMutableString._(_ret, _lib, retain: true, release: true); + static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - static NSMutableString stringWithValidatedFormat_validFormatSpecifiers_error_( - PedometerBindings _lib, - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_310( - _lib._class_NSMutableString1, - _lib._sel_stringWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); +abstract class NSAttributedStringMarkdownInterpretedSyntax { + static const int NSAttributedStringMarkdownInterpretedSyntaxFull = 0; + static const int NSAttributedStringMarkdownInterpretedSyntaxInlineOnly = 1; + static const int + NSAttributedStringMarkdownInterpretedSyntaxInlineOnlyPreservingWhitespace = + 2; +} + +abstract class NSAttributedStringMarkdownParsingFailurePolicy { + static const int NSAttributedStringMarkdownParsingFailureReturnError = 0; + static const int + NSAttributedStringMarkdownParsingFailureReturnPartiallyParsedIfPossible = + 1; +} + +abstract class NSAttributedStringFormattingOptions { + static const int + NSAttributedStringFormattingInsertArgumentAttributesWithoutMerging = 1; + static const int NSAttributedStringFormattingApplyReplacementIndexAttribute = + 2; +} + +class NSMutableAttributedString extends NSAttributedString { + NSMutableAttributedString._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSMutableAttributedString] that points to the same underlying object as [other]. + static NSMutableAttributedString castFrom(T other) { + return NSMutableAttributedString._(other._id, other._lib, + retain: true, release: true); } - static NSMutableString - localizedStringWithValidatedFormat_validFormatSpecifiers_error_( - PedometerBindings _lib, - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_310( - _lib._class_NSMutableString1, - _lib._sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + /// Returns a [NSMutableAttributedString] that wraps the given raw object pointer. + static NSMutableAttributedString castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSMutableAttributedString._(other, lib, + retain: retain, release: release); } - static NSMutableString stringWithCString_encoding_( - PedometerBindings _lib, ffi.Pointer cString, int enc) { - final _ret = _lib._objc_msgSend_318(_lib._class_NSMutableString1, - _lib._sel_stringWithCString_encoding_1, cString, enc); - return NSMutableString._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [NSMutableAttributedString]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMutableAttributedString1); } - static NSMutableString stringWithContentsOfURL_encoding_error_( - PedometerBindings _lib, - NSURL? url, - int enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_319( - _lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfURL_encoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); + void replaceCharactersInRange_withString_(_NSRange range, NSString str) { + _lib._objc_msgSend_529( + _id, _lib._sel_replaceCharactersInRange_withString_1, range, str._id); + } + + void setAttributes_range_(NSDictionary? attrs, _NSRange range) { + _lib._objc_msgSend_579( + _id, _lib._sel_setAttributes_range_1, attrs?._id ?? ffi.nullptr, range); + } + + NSMutableString get mutableString { + final _ret = _lib._objc_msgSend_580(_id, _lib._sel_mutableString1); return NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSMutableString stringWithContentsOfFile_encoding_error_( - PedometerBindings _lib, - NSString? path, - int enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_320( - _lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfFile_encoding_error_1, - path?._id ?? ffi.nullptr, - enc, + void addAttribute_value_range_( + NSString name, NSObject value, _NSRange range) { + _lib._objc_msgSend_581( + _id, _lib._sel_addAttribute_value_range_1, name._id, value._id, range); + } + + void addAttributes_range_(NSDictionary attrs, _NSRange range) { + _lib._objc_msgSend_582( + _id, _lib._sel_addAttributes_range_1, attrs._id, range); + } + + void removeAttribute_range_(NSString name, _NSRange range) { + _lib._objc_msgSend_583( + _id, _lib._sel_removeAttribute_range_1, name._id, range); + } + + void replaceCharactersInRange_withAttributedString_( + _NSRange range, NSAttributedString attrString) { + _lib._objc_msgSend_584( + _id, + _lib._sel_replaceCharactersInRange_withAttributedString_1, + range, + attrString._id); + } + + void insertAttributedString_atIndex_(NSAttributedString attrString, int loc) { + _lib._objc_msgSend_585( + _id, _lib._sel_insertAttributedString_atIndex_1, attrString._id, loc); + } + + void appendAttributedString_(NSAttributedString attrString) { + _lib._objc_msgSend_586( + _id, _lib._sel_appendAttributedString_1, attrString._id); + } + + void deleteCharactersInRange_(_NSRange range) { + _lib._objc_msgSend_423(_id, _lib._sel_deleteCharactersInRange_1, range); + } + + void setAttributedString_(NSAttributedString attrString) { + _lib._objc_msgSend_586( + _id, _lib._sel_setAttributedString_1, attrString._id); + } + + void beginEditing() { + _lib._objc_msgSend_1(_id, _lib._sel_beginEditing1); + } + + void endEditing() { + _lib._objc_msgSend_1(_id, _lib._sel_endEditing1); + } + + /// Formats the specified string and arguments with the current locale, + /// then appends the result to the receiver. + void appendLocalizedFormat_(NSAttributedString format) { + _lib._objc_msgSend_586(_id, _lib._sel_appendLocalizedFormat_1, format._id); + } + + @override + NSMutableAttributedString initWithString_(NSString str) { + final _ret = + _lib._objc_msgSend_31(_id, _lib._sel_initWithString_1, str._id); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableAttributedString initWithString_attributes_( + NSString str, NSDictionary? attrs) { + final _ret = _lib._objc_msgSend_557( + _id, + _lib._sel_initWithString_attributes_1, + str._id, + attrs?._id ?? ffi.nullptr); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableAttributedString initWithAttributedString_( + NSAttributedString attrStr) { + final _ret = _lib._objc_msgSend_558( + _id, _lib._sel_initWithAttributedString_1, attrStr._id); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableAttributedString? + initWithContentsOfMarkdownFileAtURL_options_baseURL_error_( + NSURL markdownFile, + NSAttributedStringMarkdownParsingOptions? options, + NSURL? baseURL, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_565( + _id, + _lib._sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_1, + markdownFile._id, + options?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr, error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSMutableAttributedString._(_ret, _lib, retain: true, release: true); } - static NSMutableString stringWithContentsOfURL_usedEncoding_error_( - PedometerBindings _lib, - NSURL? url, - ffi.Pointer enc, + @override + NSMutableAttributedString? initWithMarkdown_options_baseURL_error_( + NSData markdown, + NSAttributedStringMarkdownParsingOptions? options, + NSURL? baseURL, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_321( - _lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfURL_usedEncoding_error_1, - url?._id ?? ffi.nullptr, - enc, + final _ret = _lib._objc_msgSend_566( + _id, + _lib._sel_initWithMarkdown_options_baseURL_error_1, + markdown._id, + options?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr, error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSMutableAttributedString._(_ret, _lib, retain: true, release: true); } - static NSMutableString stringWithContentsOfFile_usedEncoding_error_( - PedometerBindings _lib, - NSString? path, - ffi.Pointer enc, + @override + NSMutableAttributedString? initWithMarkdownString_options_baseURL_error_( + NSString markdownString, + NSAttributedStringMarkdownParsingOptions? options, + NSURL? baseURL, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_322( - _lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfFile_usedEncoding_error_1, - path?._id ?? ffi.nullptr, - enc, + final _ret = _lib._objc_msgSend_567( + _id, + _lib._sel_initWithMarkdownString_options_baseURL_error_1, + markdownString._id, + options?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr, error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSMutableAttributedString._(_ret, _lib, retain: true, release: true); } - static int - stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_( - PedometerBindings _lib, - NSData? data, - NSDictionary? opts, - ffi.Pointer> string, - ffi.Pointer usedLossyConversion) { - return _lib._objc_msgSend_323( - _lib._class_NSMutableString1, - _lib._sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1, - data?._id ?? ffi.nullptr, - opts?._id ?? ffi.nullptr, - string, - usedLossyConversion); + /// Formats the string using the specified locale (or the canonical one, if nil). + @override + NSMutableAttributedString initWithFormat_options_locale_( + NSAttributedString format, int options, NSLocale? locale) { + final _ret = _lib._objc_msgSend_568( + _id, + _lib._sel_initWithFormat_options_locale_1, + format._id, + options, + locale?._id ?? ffi.nullptr); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + /// Formats the string using the arguments list and the specified locale (or the canonical one, if nil). + @override + NSMutableAttributedString initWithFormat_options_locale_arguments_( + NSAttributedString format, + int options, + NSLocale? locale, + ffi.Pointer<__va_list_tag> arguments) { + final _ret = _lib._objc_msgSend_569( + _id, + _lib._sel_initWithFormat_options_locale_arguments_1, + format._id, + options, + locale?._id ?? ffi.nullptr, + arguments); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + /// Formats the string using the current locale and default options. + static NSMutableAttributedString localizedAttributedStringWithFormat_( + PedometerBindings _lib, NSAttributedString format) { + final _ret = _lib._objc_msgSend_558(_lib._class_NSMutableAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_1, format._id); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + /// Formats the string using the current locale and the specified options. + static NSMutableAttributedString localizedAttributedStringWithFormat_options_( + PedometerBindings _lib, NSAttributedString format, int options) { + final _ret = _lib._objc_msgSend_570( + _lib._class_NSMutableAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_options_1, + format._id, + options); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithContentsOfFile_( - PedometerBindings _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Formats the string using the specified locale (or the canonical one, if nil). + @override + NSMutableAttributedString initWithFormat_options_locale_context_( + NSAttributedString format, + int options, + NSLocale? locale, + NSDictionary context) { + final _ret = _lib._objc_msgSend_571( + _id, + _lib._sel_initWithFormat_options_locale_context_1, + format._id, + options, + locale?._id ?? ffi.nullptr, + context._id); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithContentsOfURL_(PedometerBindings _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_209(_lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Formats the string using the arguments list and the specified locale (or the canonical one, if nil). + @override + NSMutableAttributedString initWithFormat_options_locale_context_arguments_( + NSAttributedString format, + int options, + NSLocale? locale, + NSDictionary context, + ffi.Pointer<__va_list_tag> arguments) { + final _ret = _lib._objc_msgSend_572( + _id, + _lib._sel_initWithFormat_options_locale_context_arguments_1, + format._id, + options, + locale?._id ?? ffi.nullptr, + context._id, + arguments); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithCString_length_( - PedometerBindings _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_318(_lib._class_NSMutableString1, - _lib._sel_stringWithCString_length_1, bytes, length); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Formats the string using the current locale and default options. + static NSMutableAttributedString localizedAttributedStringWithFormat_context_( + PedometerBindings _lib, NSAttributedString format, NSDictionary context) { + final _ret = _lib._objc_msgSend_573( + _lib._class_NSMutableAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_context_1, + format._id, + context._id); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithCString_( - PedometerBindings _lib, ffi.Pointer bytes) { - final _ret = _lib._objc_msgSend_306( - _lib._class_NSMutableString1, _lib._sel_stringWithCString_1, bytes); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Formats the string using the current locale and the specified options. + static NSMutableAttributedString + localizedAttributedStringWithFormat_options_context_( + PedometerBindings _lib, + NSAttributedString format, + int options, + NSDictionary context) { + final _ret = _lib._objc_msgSend_574( + _lib._class_NSMutableAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_options_context_1, + format._id, + options, + context._id); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); } - static NSString pathWithComponents_( - PedometerBindings _lib, NSArray? components) { - final _ret = _lib._objc_msgSend_330(_lib._class_NSMutableString1, - _lib._sel_pathWithComponents_1, components?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + @override + NSMutableAttributedString init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); } - static NSMutableString new1(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_new1); - return NSMutableString._(_ret, _lib, retain: false, release: true); + static NSMutableAttributedString new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableAttributedString1, _lib._sel_new1); + return NSMutableAttributedString._(_ret, _lib, + retain: false, release: true); } - static NSMutableString alloc(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_alloc1); - return NSMutableString._(_ret, _lib, retain: false, release: true); + static NSMutableAttributedString allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3(_lib._class_NSMutableAttributedString1, + _lib._sel_allocWithZone_1, zone); + return NSMutableAttributedString._(_ret, _lib, + retain: false, release: true); + } + + static NSMutableAttributedString alloc(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableAttributedString1, _lib._sel_alloc1); + return NSMutableAttributedString._(_ret, _lib, + retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSMutableString1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSMutableAttributedString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMutableString1, + _lib._objc_msgSend_15(_lib._class_NSMutableAttributedString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSMutableString1, + return _lib._objc_msgSend_12(_lib._class_NSMutableAttributedString1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSMutableString1, _lib._sel_useStoredAccessor1); + _lib._class_NSMutableAttributedString1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSMutableString1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSMutableAttributedString1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSMutableString1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSMutableString1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSMutableAttributedString1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71(_lib._class_NSMutableString1, + final _ret = _lib._objc_msgSend_77(_lib._class_NSMutableAttributedString1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableString1, _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2(_lib._class_NSMutableAttributedString1, + _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -/// Notifications -class NSNotification extends NSObject { - NSNotification._(ffi.Pointer id, PedometerBindings lib, +class NSDateFormatter extends NSFormatter { + NSDateFormatter._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSNotification] that points to the same underlying object as [other]. - static NSNotification castFrom(T other) { - return NSNotification._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSDateFormatter] that points to the same underlying object as [other]. + static NSDateFormatter castFrom(T other) { + return NSDateFormatter._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSNotification] that wraps the given raw object pointer. - static NSNotification castFromPointer( + /// Returns a [NSDateFormatter] that wraps the given raw object pointer. + static NSDateFormatter castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSNotification._(other, lib, retain: retain, release: release); + return NSDateFormatter._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSNotification]. + /// Returns whether [obj] is an instance of [NSDateFormatter]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSNotification1); + obj._lib._class_NSDateFormatter1); } - NSString get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + int get formattingContext { + return _lib._objc_msgSend_592(_id, _lib._sel_formattingContext1); + } + + set formattingContext(int value) { + return _lib._objc_msgSend_593(_id, _lib._sel_setFormattingContext_1, value); + } + + bool getObjectValue_forString_range_error_( + ffi.Pointer> obj, + NSString string, + ffi.Pointer<_NSRange> rangep, + ffi.Pointer> error) { + return _lib._objc_msgSend_594( + _id, + _lib._sel_getObjectValue_forString_range_error_1, + obj, + string._id, + rangep, + error); + } + + NSString stringFromDate_(NSDate date) { + final _ret = + _lib._objc_msgSend_595(_id, _lib._sel_stringFromDate_1, date._id); return NSString._(_ret, _lib, retain: true, release: true); } - NSObject get object { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_object1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSDate? dateFromString_(NSString string) { + final _ret = + _lib._objc_msgSend_596(_id, _lib._sel_dateFromString_1, string._id); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - NSDictionary? get userInfo { - final _ret = _lib._objc_msgSend_324(_id, _lib._sel_userInfo1); + static NSString localizedStringFromDate_dateStyle_timeStyle_( + PedometerBindings _lib, NSDate date, int dstyle, int tstyle) { + final _ret = _lib._objc_msgSend_597( + _lib._class_NSDateFormatter1, + _lib._sel_localizedStringFromDate_dateStyle_timeStyle_1, + date._id, + dstyle, + tstyle); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSString? dateFormatFromTemplate_options_locale_( + PedometerBindings _lib, NSString tmplate, int opts, NSLocale? locale) { + final _ret = _lib._objc_msgSend_598( + _lib._class_NSDateFormatter1, + _lib._sel_dateFormatFromTemplate_options_locale_1, + tmplate._id, + opts, + locale?._id ?? ffi.nullptr); return _ret.address == 0 ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - NSNotification initWithName_object_userInfo_( - NSString name, NSObject object, NSDictionary? userInfo) { - final _ret = _lib._objc_msgSend_509( - _id, - _lib._sel_initWithName_object_userInfo_1, - name._id, - object._id, - userInfo?._id ?? ffi.nullptr); - return NSNotification._(_ret, _lib, retain: true, release: true); + static int getDefaultFormatterBehavior(PedometerBindings _lib) { + return _lib._objc_msgSend_599( + _lib._class_NSDateFormatter1, _lib._sel_defaultFormatterBehavior1); } - NSNotification initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSNotification._(_ret, _lib, retain: true, release: true); + static void setDefaultFormatterBehavior(PedometerBindings _lib, int value) { + return _lib._objc_msgSend_600(_lib._class_NSDateFormatter1, + _lib._sel_setDefaultFormatterBehavior_1, value); } - static NSNotification notificationWithName_object_( - PedometerBindings _lib, NSString aName, NSObject anObject) { - final _ret = _lib._objc_msgSend_308(_lib._class_NSNotification1, - _lib._sel_notificationWithName_object_1, aName._id, anObject._id); - return NSNotification._(_ret, _lib, retain: true, release: true); + void setLocalizedDateFormatFromTemplate_(NSString dateFormatTemplate) { + _lib._objc_msgSend_199(_id, _lib._sel_setLocalizedDateFormatFromTemplate_1, + dateFormatTemplate._id); } - static NSNotification notificationWithName_object_userInfo_( - PedometerBindings _lib, - NSString aName, - NSObject anObject, - NSDictionary? aUserInfo) { - final _ret = _lib._objc_msgSend_509( - _lib._class_NSNotification1, - _lib._sel_notificationWithName_object_userInfo_1, - aName._id, - anObject._id, - aUserInfo?._id ?? ffi.nullptr); - return NSNotification._(_ret, _lib, retain: true, release: true); + NSString get dateFormat { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_dateFormat1); + return NSString._(_ret, _lib, retain: true, release: true); } - @override - NSNotification init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSNotification._(_ret, _lib, retain: true, release: true); + set dateFormat(NSString value) { + return _lib._objc_msgSend_507(_id, _lib._sel_setDateFormat_1, value._id); } - static NSNotification new1(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSNotification1, _lib._sel_new1); - return NSNotification._(_ret, _lib, retain: false, release: true); + int get dateStyle { + return _lib._objc_msgSend_601(_id, _lib._sel_dateStyle1); } - static NSNotification alloc(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSNotification1, _lib._sel_alloc1); - return NSNotification._(_ret, _lib, retain: false, release: true); + set dateStyle(int value) { + return _lib._objc_msgSend_602(_id, _lib._sel_setDateStyle_1, value); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - PedometerBindings _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSNotification1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + int get timeStyle { + return _lib._objc_msgSend_601(_id, _lib._sel_timeStyle1); } - static void cancelPreviousPerformRequestsWithTarget_( - PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSNotification1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + set timeStyle(int value) { + return _lib._objc_msgSend_602(_id, _lib._sel_setTimeStyle_1, value); } - static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSNotification1, - _lib._sel_accessInstanceVariablesDirectly1); + NSLocale get locale { + final _ret = _lib._objc_msgSend_287(_id, _lib._sel_locale1); + return NSLocale._(_ret, _lib, retain: true, release: true); } - static bool useStoredAccessor(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSNotification1, _lib._sel_useStoredAccessor1); + set locale(NSLocale value) { + return _lib._objc_msgSend_603(_id, _lib._sel_setLocale_1, value._id); } - static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSNotification1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + bool get generatesCalendarDates { + return _lib._objc_msgSend_12(_id, _lib._sel_generatesCalendarDates1); } - static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSNotification1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + set generatesCalendarDates(bool value) { + return _lib._objc_msgSend_475( + _id, _lib._sel_setGeneratesCalendarDates_1, value); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSNotification1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + int get formatterBehavior { + return _lib._objc_msgSend_599(_id, _lib._sel_formatterBehavior1); } - static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSNotification1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + set formatterBehavior(int value) { + return _lib._objc_msgSend_600(_id, _lib._sel_setFormatterBehavior_1, value); } - static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSNotification1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSTimeZone get timeZone { + final _ret = _lib._objc_msgSend_607(_id, _lib._sel_timeZone1); + return NSTimeZone._(_ret, _lib, retain: true, release: true); } -} -class NSBundle extends NSObject { - NSBundle._(ffi.Pointer id, PedometerBindings lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + set timeZone(NSTimeZone value) { + return _lib._objc_msgSend_608(_id, _lib._sel_setTimeZone_1, value._id); + } - /// Returns a [NSBundle] that points to the same underlying object as [other]. - static NSBundle castFrom(T other) { - return NSBundle._(other._id, other._lib, retain: true, release: true); + NSCalendar get calendar { + final _ret = _lib._objc_msgSend_614(_id, _lib._sel_calendar1); + return NSCalendar._(_ret, _lib, retain: true, release: true); } - /// Returns a [NSBundle] that wraps the given raw object pointer. - static NSBundle castFromPointer( - PedometerBindings lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSBundle._(other, lib, retain: retain, release: release); + set calendar(NSCalendar value) { + return _lib._objc_msgSend_651(_id, _lib._sel_setCalendar_1, value._id); } - /// Returns whether [obj] is an instance of [NSBundle]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSBundle1); + bool get lenient { + return _lib._objc_msgSend_12(_id, _lib._sel_isLenient1); } - static NSBundle? getMainBundle(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_510(_lib._class_NSBundle1, _lib._sel_mainBundle1); + set lenient(bool value) { + return _lib._objc_msgSend_475(_id, _lib._sel_setLenient_1, value); + } + + NSDate? get twoDigitStartDate { + final _ret = _lib._objc_msgSend_164(_id, _lib._sel_twoDigitStartDate1); return _ret.address == 0 ? null - : NSBundle._(_ret, _lib, retain: true, release: true); + : NSDate._(_ret, _lib, retain: true, release: true); } - static NSBundle bundleWithPath_(PedometerBindings _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSBundle1, - _lib._sel_bundleWithPath_1, path?._id ?? ffi.nullptr); - return NSBundle._(_ret, _lib, retain: true, release: true); + set twoDigitStartDate(NSDate? value) { + return _lib._objc_msgSend_652( + _id, _lib._sel_setTwoDigitStartDate_1, value?._id ?? ffi.nullptr); } - NSBundle initWithPath_(NSString? path) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithPath_1, path?._id ?? ffi.nullptr); - return NSBundle._(_ret, _lib, retain: true, release: true); + NSDate? get defaultDate { + final _ret = _lib._objc_msgSend_164(_id, _lib._sel_defaultDate1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - static NSBundle bundleWithURL_(PedometerBindings _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_209(_lib._class_NSBundle1, - _lib._sel_bundleWithURL_1, url?._id ?? ffi.nullptr); - return NSBundle._(_ret, _lib, retain: true, release: true); + set defaultDate(NSDate? value) { + return _lib._objc_msgSend_652( + _id, _lib._sel_setDefaultDate_1, value?._id ?? ffi.nullptr); } - NSBundle initWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_209( - _id, _lib._sel_initWithURL_1, url?._id ?? ffi.nullptr); - return NSBundle._(_ret, _lib, retain: true, release: true); + NSArray get eraSymbols { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_eraSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSBundle bundleForClass_(PedometerBindings _lib, NSObject aClass) { - final _ret = _lib._objc_msgSend_511( - _lib._class_NSBundle1, _lib._sel_bundleForClass_1, aClass._id); - return NSBundle._(_ret, _lib, retain: true, release: true); + set eraSymbols(NSArray value) { + return _lib._objc_msgSend_653(_id, _lib._sel_setEraSymbols_1, value._id); } - static NSBundle bundleWithIdentifier_( - PedometerBindings _lib, NSString? identifier) { - final _ret = _lib._objc_msgSend_512(_lib._class_NSBundle1, - _lib._sel_bundleWithIdentifier_1, identifier?._id ?? ffi.nullptr); - return NSBundle._(_ret, _lib, retain: true, release: true); + NSArray get monthSymbols { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_monthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSArray? getAllBundles(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_71(_lib._class_NSBundle1, _lib._sel_allBundles1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + set monthSymbols(NSArray value) { + return _lib._objc_msgSend_653(_id, _lib._sel_setMonthSymbols_1, value._id); } - static NSArray? getAllFrameworks(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_71(_lib._class_NSBundle1, _lib._sel_allFrameworks1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get shortMonthSymbols { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_shortMonthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - bool load() { - return _lib._objc_msgSend_12(_id, _lib._sel_load1); + set shortMonthSymbols(NSArray value) { + return _lib._objc_msgSend_653( + _id, _lib._sel_setShortMonthSymbols_1, value._id); } - bool get loaded { - return _lib._objc_msgSend_12(_id, _lib._sel_isLoaded1); + NSArray get weekdaySymbols { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_weekdaySymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - bool unload() { - return _lib._objc_msgSend_12(_id, _lib._sel_unload1); + set weekdaySymbols(NSArray value) { + return _lib._objc_msgSend_653( + _id, _lib._sel_setWeekdaySymbols_1, value._id); } - bool preflightAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_183( - _id, _lib._sel_preflightAndReturnError_1, error); + NSArray get shortWeekdaySymbols { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_shortWeekdaySymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - bool loadAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_183(_id, _lib._sel_loadAndReturnError_1, error); + set shortWeekdaySymbols(NSArray value) { + return _lib._objc_msgSend_653( + _id, _lib._sel_setShortWeekdaySymbols_1, value._id); } - NSURL? get bundleURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_bundleURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + NSString get AMSymbol { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_AMSymbol1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSURL? get resourceURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_resourceURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + set AMSymbol(NSString value) { + return _lib._objc_msgSend_507(_id, _lib._sel_setAMSymbol_1, value._id); } - NSURL? get executableURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_executableURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + NSString get PMSymbol { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_PMSymbol1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSURL URLForAuxiliaryExecutable_(NSString? executableName) { - final _ret = _lib._objc_msgSend_34( - _id, - _lib._sel_URLForAuxiliaryExecutable_1, - executableName?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + set PMSymbol(NSString value) { + return _lib._objc_msgSend_507(_id, _lib._sel_setPMSymbol_1, value._id); } - NSURL? get privateFrameworksURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_privateFrameworksURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + NSArray get longEraSymbols { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_longEraSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSURL? get sharedFrameworksURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_sharedFrameworksURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + set longEraSymbols(NSArray value) { + return _lib._objc_msgSend_653( + _id, _lib._sel_setLongEraSymbols_1, value._id); } - NSURL? get sharedSupportURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_sharedSupportURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + NSArray get veryShortMonthSymbols { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_veryShortMonthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSURL? get builtInPlugInsURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_builtInPlugInsURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + set veryShortMonthSymbols(NSArray value) { + return _lib._objc_msgSend_653( + _id, _lib._sel_setVeryShortMonthSymbols_1, value._id); } - NSURL? get appStoreReceiptURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_appStoreReceiptURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + NSArray get standaloneMonthSymbols { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_standaloneMonthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSString? get bundlePath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_bundlePath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + set standaloneMonthSymbols(NSArray value) { + return _lib._objc_msgSend_653( + _id, _lib._sel_setStandaloneMonthSymbols_1, value._id); } - NSString? get resourcePath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_resourcePath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSArray get shortStandaloneMonthSymbols { + final _ret = + _lib._objc_msgSend_77(_id, _lib._sel_shortStandaloneMonthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSString? get executablePath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_executablePath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + set shortStandaloneMonthSymbols(NSArray value) { + return _lib._objc_msgSend_653( + _id, _lib._sel_setShortStandaloneMonthSymbols_1, value._id); } - NSString pathForAuxiliaryExecutable_(NSString? executableName) { - final _ret = _lib._objc_msgSend_56( - _id, - _lib._sel_pathForAuxiliaryExecutable_1, - executableName?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSArray get veryShortStandaloneMonthSymbols { + final _ret = + _lib._objc_msgSend_77(_id, _lib._sel_veryShortStandaloneMonthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSString? get privateFrameworksPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_privateFrameworksPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + set veryShortStandaloneMonthSymbols(NSArray value) { + return _lib._objc_msgSend_653( + _id, _lib._sel_setVeryShortStandaloneMonthSymbols_1, value._id); } - NSString? get sharedFrameworksPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sharedFrameworksPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSArray get veryShortWeekdaySymbols { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_veryShortWeekdaySymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSString? get sharedSupportPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sharedSupportPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + set veryShortWeekdaySymbols(NSArray value) { + return _lib._objc_msgSend_653( + _id, _lib._sel_setVeryShortWeekdaySymbols_1, value._id); } - NSString? get builtInPlugInsPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_builtInPlugInsPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSArray get standaloneWeekdaySymbols { + final _ret = + _lib._objc_msgSend_77(_id, _lib._sel_standaloneWeekdaySymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSURL URLForResource_withExtension_subdirectory_inBundleWithURL_( - PedometerBindings _lib, - NSString? name, - NSString? ext, - NSString? subpath, - NSURL? bundleURL) { - final _ret = _lib._objc_msgSend_513( - _lib._class_NSBundle1, - _lib._sel_URLForResource_withExtension_subdirectory_inBundleWithURL_1, - name?._id ?? ffi.nullptr, - ext?._id ?? ffi.nullptr, - subpath?._id ?? ffi.nullptr, - bundleURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + set standaloneWeekdaySymbols(NSArray value) { + return _lib._objc_msgSend_653( + _id, _lib._sel_setStandaloneWeekdaySymbols_1, value._id); } - static NSArray URLsForResourcesWithExtension_subdirectory_inBundleWithURL_( - PedometerBindings _lib, - NSString? ext, - NSString? subpath, - NSURL? bundleURL) { - final _ret = _lib._objc_msgSend_514( - _lib._class_NSBundle1, - _lib._sel_URLsForResourcesWithExtension_subdirectory_inBundleWithURL_1, - ext?._id ?? ffi.nullptr, - subpath?._id ?? ffi.nullptr, - bundleURL?._id ?? ffi.nullptr); + NSArray get shortStandaloneWeekdaySymbols { + final _ret = + _lib._objc_msgSend_77(_id, _lib._sel_shortStandaloneWeekdaySymbols1); return NSArray._(_ret, _lib, retain: true, release: true); } - NSURL URLForResource_withExtension_(NSString? name, NSString? ext) { - final _ret = _lib._objc_msgSend_515( - _id, - _lib._sel_URLForResource_withExtension_1, - name?._id ?? ffi.nullptr, - ext?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + set shortStandaloneWeekdaySymbols(NSArray value) { + return _lib._objc_msgSend_653( + _id, _lib._sel_setShortStandaloneWeekdaySymbols_1, value._id); } - NSURL URLForResource_withExtension_subdirectory_( - NSString? name, NSString? ext, NSString? subpath) { - final _ret = _lib._objc_msgSend_516( - _id, - _lib._sel_URLForResource_withExtension_subdirectory_1, - name?._id ?? ffi.nullptr, - ext?._id ?? ffi.nullptr, - subpath?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + NSArray get veryShortStandaloneWeekdaySymbols { + final _ret = _lib._objc_msgSend_77( + _id, _lib._sel_veryShortStandaloneWeekdaySymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSURL URLForResource_withExtension_subdirectory_localization_(NSString? name, - NSString? ext, NSString? subpath, NSString? localizationName) { - final _ret = _lib._objc_msgSend_517( - _id, - _lib._sel_URLForResource_withExtension_subdirectory_localization_1, - name?._id ?? ffi.nullptr, - ext?._id ?? ffi.nullptr, - subpath?._id ?? ffi.nullptr, - localizationName?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + set veryShortStandaloneWeekdaySymbols(NSArray value) { + return _lib._objc_msgSend_653( + _id, _lib._sel_setVeryShortStandaloneWeekdaySymbols_1, value._id); } - NSArray URLsForResourcesWithExtension_subdirectory_( - NSString? ext, NSString? subpath) { - final _ret = _lib._objc_msgSend_518( - _id, - _lib._sel_URLsForResourcesWithExtension_subdirectory_1, - ext?._id ?? ffi.nullptr, - subpath?._id ?? ffi.nullptr); + NSArray get quarterSymbols { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_quarterSymbols1); return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray URLsForResourcesWithExtension_subdirectory_localization_( - NSString? ext, NSString? subpath, NSString? localizationName) { - final _ret = _lib._objc_msgSend_519( - _id, - _lib._sel_URLsForResourcesWithExtension_subdirectory_localization_1, - ext?._id ?? ffi.nullptr, - subpath?._id ?? ffi.nullptr, - localizationName?._id ?? ffi.nullptr); + set quarterSymbols(NSArray value) { + return _lib._objc_msgSend_653( + _id, _lib._sel_setQuarterSymbols_1, value._id); + } + + NSArray get shortQuarterSymbols { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_shortQuarterSymbols1); return NSArray._(_ret, _lib, retain: true, release: true); } - static NSString pathForResource_ofType_inDirectory_(PedometerBindings _lib, - NSString? name, NSString? ext, NSString? bundlePath) { - final _ret = _lib._objc_msgSend_520( - _lib._class_NSBundle1, - _lib._sel_pathForResource_ofType_inDirectory_1, - name?._id ?? ffi.nullptr, - ext?._id ?? ffi.nullptr, - bundlePath?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + set shortQuarterSymbols(NSArray value) { + return _lib._objc_msgSend_653( + _id, _lib._sel_setShortQuarterSymbols_1, value._id); } - static NSArray pathsForResourcesOfType_inDirectory_( - PedometerBindings _lib, NSString? ext, NSString? bundlePath) { - final _ret = _lib._objc_msgSend_518( - _lib._class_NSBundle1, - _lib._sel_pathsForResourcesOfType_inDirectory_1, - ext?._id ?? ffi.nullptr, - bundlePath?._id ?? ffi.nullptr); + NSArray get standaloneQuarterSymbols { + final _ret = + _lib._objc_msgSend_77(_id, _lib._sel_standaloneQuarterSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + set standaloneQuarterSymbols(NSArray value) { + return _lib._objc_msgSend_653( + _id, _lib._sel_setStandaloneQuarterSymbols_1, value._id); + } + + NSArray get shortStandaloneQuarterSymbols { + final _ret = + _lib._objc_msgSend_77(_id, _lib._sel_shortStandaloneQuarterSymbols1); return NSArray._(_ret, _lib, retain: true, release: true); } - NSString pathForResource_ofType_(NSString? name, NSString? ext) { - final _ret = _lib._objc_msgSend_298(_id, _lib._sel_pathForResource_ofType_1, - name?._id ?? ffi.nullptr, ext?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + set shortStandaloneQuarterSymbols(NSArray value) { + return _lib._objc_msgSend_653( + _id, _lib._sel_setShortStandaloneQuarterSymbols_1, value._id); + } + + NSDate? get gregorianStartDate { + final _ret = _lib._objc_msgSend_164(_id, _lib._sel_gregorianStartDate1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); + } + + set gregorianStartDate(NSDate? value) { + return _lib._objc_msgSend_652( + _id, _lib._sel_setGregorianStartDate_1, value?._id ?? ffi.nullptr); + } + + bool get doesRelativeDateFormatting { + return _lib._objc_msgSend_12(_id, _lib._sel_doesRelativeDateFormatting1); + } + + set doesRelativeDateFormatting(bool value) { + return _lib._objc_msgSend_475( + _id, _lib._sel_setDoesRelativeDateFormatting_1, value); + } + + @override + NSDateFormatter init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSDateFormatter._(_ret, _lib, retain: true, release: true); + } + + static NSDateFormatter new1(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSDateFormatter1, _lib._sel_new1); + return NSDateFormatter._(_ret, _lib, retain: false, release: true); + } + + static NSDateFormatter allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSDateFormatter1, _lib._sel_allocWithZone_1, zone); + return NSDateFormatter._(_ret, _lib, retain: false, release: true); + } + + static NSDateFormatter alloc(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSDateFormatter1, _lib._sel_alloc1); + return NSDateFormatter._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + PedometerBindings _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSDateFormatter1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument?._id ?? ffi.nullptr); + } + + static void cancelPreviousPerformRequestsWithTarget_( + PedometerBindings _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSDateFormatter1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - NSString pathForResource_ofType_inDirectory_forLocalization_(NSString? name, - NSString? ext, NSString? subpath, NSString? localizationName) { - final _ret = _lib._objc_msgSend_521( - _id, - _lib._sel_pathForResource_ofType_inDirectory_forLocalization_1, - name?._id ?? ffi.nullptr, - ext?._id ?? ffi.nullptr, - subpath?._id ?? ffi.nullptr, - localizationName?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { + return _lib._objc_msgSend_12(_lib._class_NSDateFormatter1, + _lib._sel_accessInstanceVariablesDirectly1); } - NSArray pathsForResourcesOfType_inDirectory_forLocalization_( - NSString? ext, NSString? subpath, NSString? localizationName) { - final _ret = _lib._objc_msgSend_519( - _id, - _lib._sel_pathsForResourcesOfType_inDirectory_forLocalization_1, - ext?._id ?? ffi.nullptr, - subpath?._id ?? ffi.nullptr, - localizationName?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + static bool useStoredAccessor(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSDateFormatter1, _lib._sel_useStoredAccessor1); } - NSString localizedStringForKey_value_table_( - NSString? key, NSString? value, NSString? tableName) { - final _ret = _lib._objc_msgSend_520( - _id, - _lib._sel_localizedStringForKey_value_table_1, - key?._id ?? ffi.nullptr, - value?._id ?? ffi.nullptr, - tableName?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static NSSet keyPathsForValuesAffectingValueForKey_( + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSDateFormatter1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); + return NSSet._(_ret, _lib, retain: true, release: true); } - NSAttributedString localizedAttributedStringForKey_value_table_( - NSString? key, NSString? value, NSString? tableName) { - final _ret = _lib._objc_msgSend_542( - _id, - _lib._sel_localizedAttributedStringForKey_value_table_1, - key?._id ?? ffi.nullptr, - value?._id ?? ffi.nullptr, - tableName?._id ?? ffi.nullptr); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + static bool automaticallyNotifiesObserversForKey_( + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSDateFormatter1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } - NSString? get bundleIdentifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_bundleIdentifier1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77(_lib._class_NSDateFormatter1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSDictionary? get infoDictionary { - final _ret = _lib._objc_msgSend_324(_id, _lib._sel_infoDictionary1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSDateFormatter1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - NSDictionary? get localizedInfoDictionary { - final _ret = - _lib._objc_msgSend_324(_id, _lib._sel_localizedInfoDictionary1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } +class NSFormatter extends NSObject { + NSFormatter._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - NSObject objectForInfoDictionaryKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_objectForInfoDictionaryKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Returns a [NSFormatter] that points to the same underlying object as [other]. + static NSFormatter castFrom(T other) { + return NSFormatter._(other._id, other._lib, retain: true, release: true); } - NSObject classNamed_(NSString? className) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_classNamed_1, className?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Returns a [NSFormatter] that wraps the given raw object pointer. + static NSFormatter castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSFormatter._(other, lib, retain: retain, release: release); } - NSObject get principalClass { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_principalClass1); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [NSFormatter]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSFormatter1); } - NSArray? get preferredLocalizations { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_preferredLocalizations1); + NSString? stringForObjectValue_(NSObject? obj) { + final _ret = _lib._objc_msgSend_587( + _id, _lib._sel_stringForObjectValue_1, obj?._id ?? ffi.nullptr); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - NSArray? get localizations { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_localizations1); + NSAttributedString? attributedStringForObjectValue_withDefaultAttributes_( + NSObject obj, NSDictionary? attrs) { + final _ret = _lib._objc_msgSend_588( + _id, + _lib._sel_attributedStringForObjectValue_withDefaultAttributes_1, + obj._id, + attrs?._id ?? ffi.nullptr); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSAttributedString._(_ret, _lib, retain: true, release: true); } - NSString? get developmentLocalization { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_developmentLocalization1); + NSString? editingStringForObjectValue_(NSObject obj) { + final _ret = _lib._objc_msgSend_474( + _id, _lib._sel_editingStringForObjectValue_1, obj._id); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - static NSArray preferredLocalizationsFromArray_( - PedometerBindings _lib, NSArray? localizationsArray) { - final _ret = _lib._objc_msgSend_55( - _lib._class_NSBundle1, - _lib._sel_preferredLocalizationsFromArray_1, - localizationsArray?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + bool getObjectValue_forString_errorDescription_( + ffi.Pointer> obj, + NSString string, + ffi.Pointer> error) { + return _lib._objc_msgSend_589( + _id, + _lib._sel_getObjectValue_forString_errorDescription_1, + obj, + string._id, + error); } - static NSArray preferredLocalizationsFromArray_forPreferences_( - PedometerBindings _lib, - NSArray? localizationsArray, - NSArray? preferencesArray) { - final _ret = _lib._objc_msgSend_543( - _lib._class_NSBundle1, - _lib._sel_preferredLocalizationsFromArray_forPreferences_1, - localizationsArray?._id ?? ffi.nullptr, - preferencesArray?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + bool isPartialStringValid_newEditingString_errorDescription_( + NSString partialString, + ffi.Pointer> newString, + ffi.Pointer> error) { + return _lib._objc_msgSend_590( + _id, + _lib._sel_isPartialStringValid_newEditingString_errorDescription_1, + partialString._id, + newString, + error); } - NSArray? get executableArchitectures { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_executableArchitectures1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + bool + isPartialStringValid_proposedSelectedRange_originalString_originalSelectedRange_errorDescription_( + ffi.Pointer> partialStringPtr, + ffi.Pointer<_NSRange> proposedSelRangePtr, + NSString origString, + _NSRange origSelRange, + ffi.Pointer> error) { + return _lib._objc_msgSend_591( + _id, + _lib._sel_isPartialStringValid_proposedSelectedRange_originalString_originalSelectedRange_errorDescription_1, + partialStringPtr, + proposedSelRangePtr, + origString._id, + origSelRange, + error); } - void setPreservationPriority_forTags_(double priority, NSSet? tags) { - return _lib._objc_msgSend_544( - _id, - _lib._sel_setPreservationPriority_forTags_1, - priority, - tags?._id ?? ffi.nullptr); + @override + NSFormatter init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSFormatter._(_ret, _lib, retain: true, release: true); } - double preservationPriorityForTag_(NSString? tag) { - return _lib._objc_msgSend_238( - _id, _lib._sel_preservationPriorityForTag_1, tag?._id ?? ffi.nullptr); + static NSFormatter new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSFormatter1, _lib._sel_new1); + return NSFormatter._(_ret, _lib, retain: false, release: true); } - static NSBundle new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSBundle1, _lib._sel_new1); - return NSBundle._(_ret, _lib, retain: false, release: true); + static NSFormatter allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSFormatter1, _lib._sel_allocWithZone_1, zone); + return NSFormatter._(_ret, _lib, retain: false, release: true); } - static NSBundle alloc(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSBundle1, _lib._sel_alloc1); - return NSBundle._(_ret, _lib, retain: false, release: true); + static NSFormatter alloc(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSFormatter1, _lib._sel_alloc1); + return NSFormatter._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSBundle1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSFormatter1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSBundle1, + _lib._objc_msgSend_15(_lib._class_NSFormatter1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSBundle1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSFormatter1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSBundle1, _lib._sel_useStoredAccessor1); + _lib._class_NSFormatter1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSBundle1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSFormatter1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSBundle1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSBundle1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSFormatter1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSBundle1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_NSFormatter1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSBundle1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSFormatter1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSAttributedString extends NSObject { - NSAttributedString._(ffi.Pointer id, PedometerBindings lib, +abstract class NSFormattingContext { + static const int NSFormattingContextUnknown = 0; + static const int NSFormattingContextDynamic = 1; + static const int NSFormattingContextStandalone = 2; + static const int NSFormattingContextListItem = 3; + static const int NSFormattingContextBeginningOfSentence = 4; + static const int NSFormattingContextMiddleOfSentence = 5; +} + +abstract class NSDateFormatterStyle { + static const int NSDateFormatterNoStyle = 0; + static const int NSDateFormatterShortStyle = 1; + static const int NSDateFormatterMediumStyle = 2; + static const int NSDateFormatterLongStyle = 3; + static const int NSDateFormatterFullStyle = 4; +} + +abstract class NSDateFormatterBehavior { + static const int NSDateFormatterBehaviorDefault = 0; + static const int NSDateFormatterBehavior10_4 = 1040; +} + +class NSTimeZone extends NSObject { + NSTimeZone._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSAttributedString] that points to the same underlying object as [other]. - static NSAttributedString castFrom(T other) { - return NSAttributedString._(other._id, other._lib, - retain: true, release: true); + /// Returns a [NSTimeZone] that points to the same underlying object as [other]. + static NSTimeZone castFrom(T other) { + return NSTimeZone._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSAttributedString] that wraps the given raw object pointer. - static NSAttributedString castFromPointer( + /// Returns a [NSTimeZone] that wraps the given raw object pointer. + static NSTimeZone castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSAttributedString._(other, lib, retain: retain, release: release); + return NSTimeZone._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSAttributedString]. + /// Returns whether [obj] is an instance of [NSTimeZone]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSAttributedString1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSTimeZone1); } - NSString? get string { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_string1); + NSString get name { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_name1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSData get data { + final _ret = _lib._objc_msgSend_43(_id, _lib._sel_data1); + return NSData._(_ret, _lib, retain: true, release: true); + } + + int secondsFromGMTForDate_(NSDate aDate) { + return _lib._objc_msgSend_604( + _id, _lib._sel_secondsFromGMTForDate_1, aDate._id); + } + + NSString? abbreviationForDate_(NSDate aDate) { + final _ret = + _lib._objc_msgSend_605(_id, _lib._sel_abbreviationForDate_1, aDate._id); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSDictionary attributesAtIndex_effectiveRange_( - int location, ffi.Pointer<_NSRange> range) { - final _ret = _lib._objc_msgSend_522( - _id, _lib._sel_attributesAtIndex_effectiveRange_1, location, range); - return NSDictionary._(_ret, _lib, retain: true, release: true); + bool isDaylightSavingTimeForDate_(NSDate aDate) { + return _lib._objc_msgSend_161( + _id, _lib._sel_isDaylightSavingTimeForDate_1, aDate._id); } - int get length { - return _lib._objc_msgSend_10(_id, _lib._sel_length1); + double daylightSavingTimeOffsetForDate_(NSDate aDate) { + return _lib._objc_msgSend_158( + _id, _lib._sel_daylightSavingTimeOffsetForDate_1, aDate._id); } - NSObject attribute_atIndex_effectiveRange_( - NSString attrName, int location, ffi.Pointer<_NSRange> range) { - final _ret = _lib._objc_msgSend_523( - _id, - _lib._sel_attribute_atIndex_effectiveRange_1, - attrName._id, - location, - range); - return NSObject._(_ret, _lib, retain: true, release: true); + NSDate? nextDaylightSavingTimeTransitionAfterDate_(NSDate aDate) { + final _ret = _lib._objc_msgSend_606( + _id, _lib._sel_nextDaylightSavingTimeTransitionAfterDate_1, aDate._id); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - NSAttributedString attributedSubstringFromRange_(_NSRange range) { - final _ret = _lib._objc_msgSend_524( - _id, _lib._sel_attributedSubstringFromRange_1, range); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + static NSTimeZone getSystemTimeZone(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_607( + _lib._class_NSTimeZone1, _lib._sel_systemTimeZone1); + return NSTimeZone._(_ret, _lib, retain: true, release: true); } - NSDictionary attributesAtIndex_longestEffectiveRange_inRange_( - int location, ffi.Pointer<_NSRange> range, _NSRange rangeLimit) { - final _ret = _lib._objc_msgSend_525( - _id, - _lib._sel_attributesAtIndex_longestEffectiveRange_inRange_1, - location, - range, - rangeLimit); - return NSDictionary._(_ret, _lib, retain: true, release: true); + static void resetSystemTimeZone(PedometerBindings _lib) { + _lib._objc_msgSend_1( + _lib._class_NSTimeZone1, _lib._sel_resetSystemTimeZone1); } - NSObject attribute_atIndex_longestEffectiveRange_inRange_(NSString attrName, - int location, ffi.Pointer<_NSRange> range, _NSRange rangeLimit) { - final _ret = _lib._objc_msgSend_526( - _id, - _lib._sel_attribute_atIndex_longestEffectiveRange_inRange_1, - attrName._id, - location, - range, - rangeLimit); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSTimeZone getDefaultTimeZone(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_607( + _lib._class_NSTimeZone1, _lib._sel_defaultTimeZone1); + return NSTimeZone._(_ret, _lib, retain: true, release: true); } - bool isEqualToAttributedString_(NSAttributedString? other) { - return _lib._objc_msgSend_527( - _id, _lib._sel_isEqualToAttributedString_1, other?._id ?? ffi.nullptr); + static void setDefaultTimeZone(PedometerBindings _lib, NSTimeZone value) { + return _lib._objc_msgSend_608( + _lib._class_NSTimeZone1, _lib._sel_setDefaultTimeZone_1, value._id); } - NSAttributedString initWithString_(NSString? str) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, str?._id ?? ffi.nullptr); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + static NSTimeZone getLocalTimeZone(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_607( + _lib._class_NSTimeZone1, _lib._sel_localTimeZone1); + return NSTimeZone._(_ret, _lib, retain: true, release: true); } - NSAttributedString initWithString_attributes_( - NSString? str, NSDictionary? attrs) { - final _ret = _lib._objc_msgSend_332( - _id, - _lib._sel_initWithString_attributes_1, - str?._id ?? ffi.nullptr, - attrs?._id ?? ffi.nullptr); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + static NSArray getKnownTimeZoneNames(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77( + _lib._class_NSTimeZone1, _lib._sel_knownTimeZoneNames1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSAttributedString initWithAttributedString_(NSAttributedString? attrStr) { - final _ret = _lib._objc_msgSend_528( - _id, _lib._sel_initWithAttributedString_1, attrStr?._id ?? ffi.nullptr); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + static NSDictionary getAbbreviationDictionary(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_350( + _lib._class_NSTimeZone1, _lib._sel_abbreviationDictionary1); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - void enumerateAttributesInRange_options_usingBlock_( - _NSRange enumerationRange, int opts, ObjCBlock31 block) { - return _lib._objc_msgSend_529( - _id, - _lib._sel_enumerateAttributesInRange_options_usingBlock_1, - enumerationRange, - opts, - block._id); + static void setAbbreviationDictionary( + PedometerBindings _lib, NSDictionary value) { + return _lib._objc_msgSend_609(_lib._class_NSTimeZone1, + _lib._sel_setAbbreviationDictionary_1, value._id); } - void enumerateAttribute_inRange_options_usingBlock_(NSString attrName, - _NSRange enumerationRange, int opts, ObjCBlock32 block) { - return _lib._objc_msgSend_530( - _id, - _lib._sel_enumerateAttribute_inRange_options_usingBlock_1, - attrName._id, - enumerationRange, - opts, - block._id); + static NSString getTimeZoneDataVersion(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_21( + _lib._class_NSTimeZone1, _lib._sel_timeZoneDataVersion1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSAttributedString initWithContentsOfMarkdownFileAtURL_options_baseURL_error_( - NSURL? markdownFile, - NSAttributedStringMarkdownParsingOptions? options, - NSURL? baseURL, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_535( - _id, - _lib._sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_1, - markdownFile?._id ?? ffi.nullptr, - options?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr, - error); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + int get secondsFromGMT { + return _lib._objc_msgSend_75(_id, _lib._sel_secondsFromGMT1); } - NSAttributedString initWithMarkdown_options_baseURL_error_( - NSData? markdown, - NSAttributedStringMarkdownParsingOptions? options, - NSURL? baseURL, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_536( - _id, - _lib._sel_initWithMarkdown_options_baseURL_error_1, - markdown?._id ?? ffi.nullptr, - options?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr, - error); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + NSString? get abbreviation { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_abbreviation1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSAttributedString initWithMarkdownString_options_baseURL_error_( - NSString? markdownString, - NSAttributedStringMarkdownParsingOptions? options, - NSURL? baseURL, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_537( - _id, - _lib._sel_initWithMarkdownString_options_baseURL_error_1, - markdownString?._id ?? ffi.nullptr, - options?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr, - error); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + bool get daylightSavingTime { + return _lib._objc_msgSend_12(_id, _lib._sel_isDaylightSavingTime1); } - /// Formats the string using the specified locale (or the canonical one, if nil). - NSAttributedString initWithFormat_options_locale_( - NSAttributedString? format, int options, NSLocale? locale) { - final _ret = _lib._objc_msgSend_538( - _id, - _lib._sel_initWithFormat_options_locale_1, - format?._id ?? ffi.nullptr, - options, - locale?._id ?? ffi.nullptr); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + double get daylightSavingTimeOffset { + return _lib._objc_msgSend_156(_id, _lib._sel_daylightSavingTimeOffset1); } - /// Formats the string using the arguments list and the specified locale (or the canonical one, if nil). - NSAttributedString initWithFormat_options_locale_arguments_( - NSAttributedString? format, - int options, - NSLocale? locale, - ffi.Pointer arguments) { - final _ret = _lib._objc_msgSend_539( - _id, - _lib._sel_initWithFormat_options_locale_arguments_1, - format?._id ?? ffi.nullptr, - options, - locale?._id ?? ffi.nullptr, - arguments); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + NSDate? get nextDaylightSavingTimeTransition { + final _ret = _lib._objc_msgSend_164( + _id, _lib._sel_nextDaylightSavingTimeTransition1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - /// Formats the string using the current locale and default options. - static NSAttributedString localizedAttributedStringWithFormat_( - PedometerBindings _lib, NSAttributedString? format) { - final _ret = _lib._objc_msgSend_528( - _lib._class_NSAttributedString1, - _lib._sel_localizedAttributedStringWithFormat_1, - format?._id ?? ffi.nullptr); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + NSString get description { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_description1); + return NSString._(_ret, _lib, retain: true, release: true); } - /// Formats the string using the current locale and the specified options. - static NSAttributedString localizedAttributedStringWithFormat_options_( - PedometerBindings _lib, NSAttributedString? format, int options) { - final _ret = _lib._objc_msgSend_540( - _lib._class_NSAttributedString1, - _lib._sel_localizedAttributedStringWithFormat_options_1, - format?._id ?? ffi.nullptr, - options); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + bool isEqualToTimeZone_(NSTimeZone aTimeZone) { + return _lib._objc_msgSend_610( + _id, _lib._sel_isEqualToTimeZone_1, aTimeZone._id); } - /// If the string has portions tagged with NSInflectionRuleAttributeName - /// that have no format specifiers, create a new string with those portions inflected - /// by following the rule in the attribute. - NSAttributedString attributedStringByInflectingString() { - final _ret = _lib._objc_msgSend_541( - _id, _lib._sel_attributedStringByInflectingString1); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + NSString? localizedName_locale_(int style, NSLocale? locale) { + final _ret = _lib._objc_msgSend_611(_id, _lib._sel_localizedName_locale_1, + style, locale?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSAttributedString new1(PedometerBindings _lib) { + static NSTimeZone? timeZoneWithName_( + PedometerBindings _lib, NSString tzName) { + final _ret = _lib._objc_msgSend_38( + _lib._class_NSTimeZone1, _lib._sel_timeZoneWithName_1, tzName._id); + return _ret.address == 0 + ? null + : NSTimeZone._(_ret, _lib, retain: true, release: true); + } + + static NSTimeZone? timeZoneWithName_data_( + PedometerBindings _lib, NSString tzName, NSData? aData) { + final _ret = _lib._objc_msgSend_612( + _lib._class_NSTimeZone1, + _lib._sel_timeZoneWithName_data_1, + tzName._id, + aData?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSTimeZone._(_ret, _lib, retain: true, release: true); + } + + NSTimeZone? initWithName_(NSString tzName) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSAttributedString1, _lib._sel_new1); - return NSAttributedString._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_38(_id, _lib._sel_initWithName_1, tzName._id); + return _ret.address == 0 + ? null + : NSTimeZone._(_ret, _lib, retain: true, release: true); } - static NSAttributedString alloc(PedometerBindings _lib) { + NSTimeZone? initWithName_data_(NSString tzName, NSData? aData) { + final _ret = _lib._objc_msgSend_612(_id, _lib._sel_initWithName_data_1, + tzName._id, aData?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSTimeZone._(_ret, _lib, retain: true, release: true); + } + + static NSTimeZone timeZoneForSecondsFromGMT_( + PedometerBindings _lib, int seconds) { + final _ret = _lib._objc_msgSend_613(_lib._class_NSTimeZone1, + _lib._sel_timeZoneForSecondsFromGMT_1, seconds); + return NSTimeZone._(_ret, _lib, retain: true, release: true); + } + + static NSTimeZone? timeZoneWithAbbreviation_( + PedometerBindings _lib, NSString abbreviation) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSTimeZone1, + _lib._sel_timeZoneWithAbbreviation_1, abbreviation._id); + return _ret.address == 0 + ? null + : NSTimeZone._(_ret, _lib, retain: true, release: true); + } + + @override + NSTimeZone init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSTimeZone._(_ret, _lib, retain: true, release: true); + } + + static NSTimeZone new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSTimeZone1, _lib._sel_new1); + return NSTimeZone._(_ret, _lib, retain: false, release: true); + } + + static NSTimeZone allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSTimeZone1, _lib._sel_allocWithZone_1, zone); + return NSTimeZone._(_ret, _lib, retain: false, release: true); + } + + static NSTimeZone alloc(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSAttributedString1, _lib._sel_alloc1); - return NSAttributedString._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSTimeZone1, _lib._sel_alloc1); + return NSTimeZone._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSAttributedString1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSTimeZone1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); + } + + static void cancelPreviousPerformRequestsWithTarget_( + PedometerBindings _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSTimeZone1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSTimeZone1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSTimeZone1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSTimeZone1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSTimeZone1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); + } + + static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77( + _lib._class_NSTimeZone1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSTimeZone1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSTimeZoneNameStyle { + static const int NSTimeZoneNameStyleStandard = 0; + static const int NSTimeZoneNameStyleShortStandard = 1; + static const int NSTimeZoneNameStyleDaylightSaving = 2; + static const int NSTimeZoneNameStyleShortDaylightSaving = 3; + static const int NSTimeZoneNameStyleGeneric = 4; + static const int NSTimeZoneNameStyleShortGeneric = 5; +} + +class NSCalendar extends NSObject { + NSCalendar._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSCalendar] that points to the same underlying object as [other]. + static NSCalendar castFrom(T other) { + return NSCalendar._(other._id, other._lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_( - PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSAttributedString1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + /// Returns a [NSCalendar] that wraps the given raw object pointer. + static NSCalendar castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSCalendar._(other, lib, retain: retain, release: release); } - static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSAttributedString1, - _lib._sel_accessInstanceVariablesDirectly1); + /// Returns whether [obj] is an instance of [NSCalendar]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSCalendar1); } - static bool useStoredAccessor(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSAttributedString1, _lib._sel_useStoredAccessor1); + static NSCalendar getCurrentCalendar(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_614( + _lib._class_NSCalendar1, _lib._sel_currentCalendar1); + return NSCalendar._(_ret, _lib, retain: true, release: true); } - static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSAttributedString1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + static NSCalendar getAutoupdatingCurrentCalendar(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_614( + _lib._class_NSCalendar1, _lib._sel_autoupdatingCurrentCalendar1); + return NSCalendar._(_ret, _lib, retain: true, release: true); } - static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSAttributedString1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + static NSCalendar? calendarWithIdentifier_( + PedometerBindings _lib, NSString calendarIdentifierConstant) { + final _ret = _lib._objc_msgSend_615(_lib._class_NSCalendar1, + _lib._sel_calendarWithIdentifier_1, calendarIdentifierConstant._id); + return _ret.address == 0 + ? null + : NSCalendar._(_ret, _lib, retain: true, release: true); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSAttributedString1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + @override + NSCalendar init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSCalendar._(_ret, _lib, retain: true, release: true); } - static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71(_lib._class_NSAttributedString1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + NSObject? initWithCalendarIdentifier_(NSString ident) { + final _ret = _lib._objc_msgSend_38( + _id, _lib._sel_initWithCalendarIdentifier_1, ident._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSAttributedString1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSString get calendarIdentifier { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_calendarIdentifier1); + return NSString._(_ret, _lib, retain: true, release: true); } -} -abstract class NSAttributedStringEnumerationOptions { - static const int NSAttributedStringEnumerationReverse = 2; - static const int - NSAttributedStringEnumerationLongestEffectiveRangeNotRequired = 1048576; -} + NSLocale? get locale { + final _ret = _lib._objc_msgSend_616(_id, _lib._sel_locale1); + return _ret.address == 0 + ? null + : NSLocale._(_ret, _lib, retain: true, release: true); + } -void _ObjCBlock31_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, _NSRange arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} + set locale(NSLocale? value) { + return _lib._objc_msgSend_617( + _id, _lib._sel_setLocale_1, value?._id ?? ffi.nullptr); + } -final _ObjCBlock31_closureRegistry = {}; -int _ObjCBlock31_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock31_registerClosure(Function fn) { - final id = ++_ObjCBlock31_closureRegistryIndex; - _ObjCBlock31_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + NSTimeZone get timeZone { + final _ret = _lib._objc_msgSend_607(_id, _lib._sel_timeZone1); + return NSTimeZone._(_ret, _lib, retain: true, release: true); + } -void _ObjCBlock31_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { - return _ObjCBlock31_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} + set timeZone(NSTimeZone value) { + return _lib._objc_msgSend_608(_id, _lib._sel_setTimeZone_1, value._id); + } -class ObjCBlock31 extends _ObjCBlockBase { - ObjCBlock31._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); + int get firstWeekday { + return _lib._objc_msgSend_10(_id, _lib._sel_firstWeekday1); + } - /// Creates a block from a C function pointer. - ObjCBlock31.fromFunctionPointer( - PedometerBindings lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, - ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2)>( - _ObjCBlock31_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + set firstWeekday(int value) { + return _lib._objc_msgSend_463(_id, _lib._sel_setFirstWeekday_1, value); + } - /// Creates a block from a Dart function. - ObjCBlock31.fromFunction( - PedometerBindings lib, - void Function(ffi.Pointer arg0, _NSRange arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2)>( - _ObjCBlock31_closureTrampoline) - .cast(), - _ObjCBlock31_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call( - ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + int get minimumDaysInFirstWeek { + return _lib._objc_msgSend_10(_id, _lib._sel_minimumDaysInFirstWeek1); } - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + set minimumDaysInFirstWeek(int value) { + return _lib._objc_msgSend_463( + _id, _lib._sel_setMinimumDaysInFirstWeek_1, value); + } -void _ObjCBlock32_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, _NSRange arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} + NSArray get eraSymbols { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_eraSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); + } -final _ObjCBlock32_closureRegistry = {}; -int _ObjCBlock32_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock32_registerClosure(Function fn) { - final id = ++_ObjCBlock32_closureRegistryIndex; - _ObjCBlock32_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + NSArray get longEraSymbols { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_longEraSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); + } -void _ObjCBlock32_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { - return _ObjCBlock32_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} + NSArray get monthSymbols { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_monthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); + } -class ObjCBlock32 extends _ObjCBlockBase { - ObjCBlock32._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); + NSArray get shortMonthSymbols { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_shortMonthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a C function pointer. - ObjCBlock32.fromFunctionPointer( - PedometerBindings lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, - ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2)>( - _ObjCBlock32_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + NSArray get veryShortMonthSymbols { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_veryShortMonthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a Dart function. - ObjCBlock32.fromFunction( - PedometerBindings lib, - void Function(ffi.Pointer arg0, _NSRange arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2)>( - _ObjCBlock32_closureTrampoline) - .cast(), - _ObjCBlock32_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call( - ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + NSArray get standaloneMonthSymbols { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_standaloneMonthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + NSArray get shortStandaloneMonthSymbols { + final _ret = + _lib._objc_msgSend_77(_id, _lib._sel_shortStandaloneMonthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); + } -class NSAttributedStringMarkdownParsingOptions extends NSObject { - NSAttributedStringMarkdownParsingOptions._( - ffi.Pointer id, PedometerBindings lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSArray get veryShortStandaloneMonthSymbols { + final _ret = + _lib._objc_msgSend_77(_id, _lib._sel_veryShortStandaloneMonthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); + } - /// Returns a [NSAttributedStringMarkdownParsingOptions] that points to the same underlying object as [other]. - static NSAttributedStringMarkdownParsingOptions - castFrom(T other) { - return NSAttributedStringMarkdownParsingOptions._(other._id, other._lib, - retain: true, release: true); + NSArray get weekdaySymbols { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_weekdaySymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - /// Returns a [NSAttributedStringMarkdownParsingOptions] that wraps the given raw object pointer. - static NSAttributedStringMarkdownParsingOptions castFromPointer( - PedometerBindings lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSAttributedStringMarkdownParsingOptions._(other, lib, - retain: retain, release: release); + NSArray get shortWeekdaySymbols { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_shortWeekdaySymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - /// Returns whether [obj] is an instance of [NSAttributedStringMarkdownParsingOptions]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSAttributedStringMarkdownParsingOptions1); + NSArray get veryShortWeekdaySymbols { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_veryShortWeekdaySymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - @override - NSAttributedStringMarkdownParsingOptions init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSAttributedStringMarkdownParsingOptions._(_ret, _lib, - retain: true, release: true); + NSArray get standaloneWeekdaySymbols { + final _ret = + _lib._objc_msgSend_77(_id, _lib._sel_standaloneWeekdaySymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - bool get allowsExtendedAttributes { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsExtendedAttributes1); + NSArray get shortStandaloneWeekdaySymbols { + final _ret = + _lib._objc_msgSend_77(_id, _lib._sel_shortStandaloneWeekdaySymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set allowsExtendedAttributes(bool value) { - _lib._objc_msgSend_453(_id, _lib._sel_setAllowsExtendedAttributes_1, value); + NSArray get veryShortStandaloneWeekdaySymbols { + final _ret = _lib._objc_msgSend_77( + _id, _lib._sel_veryShortStandaloneWeekdaySymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - int get interpretedSyntax { - return _lib._objc_msgSend_531(_id, _lib._sel_interpretedSyntax1); + NSArray get quarterSymbols { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_quarterSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set interpretedSyntax(int value) { - _lib._objc_msgSend_532(_id, _lib._sel_setInterpretedSyntax_1, value); + NSArray get shortQuarterSymbols { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_shortQuarterSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - int get failurePolicy { - return _lib._objc_msgSend_533(_id, _lib._sel_failurePolicy1); + NSArray get standaloneQuarterSymbols { + final _ret = + _lib._objc_msgSend_77(_id, _lib._sel_standaloneQuarterSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set failurePolicy(int value) { - _lib._objc_msgSend_534(_id, _lib._sel_setFailurePolicy_1, value); + NSArray get shortStandaloneQuarterSymbols { + final _ret = + _lib._objc_msgSend_77(_id, _lib._sel_shortStandaloneQuarterSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSString? get languageCode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_languageCode1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get AMSymbol { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_AMSymbol1); + return NSString._(_ret, _lib, retain: true, release: true); } - set languageCode(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setLanguageCode_1, value?._id ?? ffi.nullptr); + NSString get PMSymbol { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_PMSymbol1); + return NSString._(_ret, _lib, retain: true, release: true); } - bool get appliesSourcePositionAttributes { - return _lib._objc_msgSend_12( - _id, _lib._sel_appliesSourcePositionAttributes1); + void minimumRangeOfUnit_(ffi.Pointer<_NSRange> stret, int unit) { + _lib._objc_msgSend_618(stret, _id, _lib._sel_minimumRangeOfUnit_1, unit); } - set appliesSourcePositionAttributes(bool value) { - _lib._objc_msgSend_453( - _id, _lib._sel_setAppliesSourcePositionAttributes_1, value); + void maximumRangeOfUnit_(ffi.Pointer<_NSRange> stret, int unit) { + _lib._objc_msgSend_618(stret, _id, _lib._sel_maximumRangeOfUnit_1, unit); } - static NSAttributedStringMarkdownParsingOptions new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSAttributedStringMarkdownParsingOptions1, _lib._sel_new1); - return NSAttributedStringMarkdownParsingOptions._(_ret, _lib, - retain: false, release: true); + void rangeOfUnit_inUnit_forDate_( + ffi.Pointer<_NSRange> stret, int smaller, int larger, NSDate date) { + _lib._objc_msgSend_619(stret, _id, _lib._sel_rangeOfUnit_inUnit_forDate_1, + smaller, larger, date._id); } - static NSAttributedStringMarkdownParsingOptions alloc( - PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSAttributedStringMarkdownParsingOptions1, - _lib._sel_alloc1); - return NSAttributedStringMarkdownParsingOptions._(_ret, _lib, - retain: false, release: true); + int ordinalityOfUnit_inUnit_forDate_(int smaller, int larger, NSDate date) { + return _lib._objc_msgSend_620(_id, + _lib._sel_ordinalityOfUnit_inUnit_forDate_1, smaller, larger, date._id); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - PedometerBindings _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSAttributedStringMarkdownParsingOptions1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + bool rangeOfUnit_startDate_interval_forDate_( + int unit, + ffi.Pointer> datep, + ffi.Pointer tip, + NSDate date) { + return _lib._objc_msgSend_621( + _id, + _lib._sel_rangeOfUnit_startDate_interval_forDate_1, + unit, + datep, + tip, + date._id); } - static void cancelPreviousPerformRequestsWithTarget_( - PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15( - _lib._class_NSAttributedStringMarkdownParsingOptions1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, - aTarget._id); + NSDate? dateFromComponents_(NSDateComponents comps) { + final _ret = + _lib._objc_msgSend_630(_id, _lib._sel_dateFromComponents_1, comps._id); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSAttributedStringMarkdownParsingOptions1, - _lib._sel_accessInstanceVariablesDirectly1); + NSDateComponents components_fromDate_(int unitFlags, NSDate date) { + final _ret = _lib._objc_msgSend_631( + _id, _lib._sel_components_fromDate_1, unitFlags, date._id); + return NSDateComponents._(_ret, _lib, retain: true, release: true); } - static bool useStoredAccessor(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSAttributedStringMarkdownParsingOptions1, - _lib._sel_useStoredAccessor1); + NSDate? dateByAddingComponents_toDate_options_( + NSDateComponents comps, NSDate date, int opts) { + final _ret = _lib._objc_msgSend_632( + _id, + _lib._sel_dateByAddingComponents_toDate_options_1, + comps._id, + date._id, + opts); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSAttributedStringMarkdownParsingOptions1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + NSDateComponents components_fromDate_toDate_options_( + int unitFlags, NSDate startingDate, NSDate resultDate, int opts) { + final _ret = _lib._objc_msgSend_633( + _id, + _lib._sel_components_fromDate_toDate_options_1, + unitFlags, + startingDate._id, + resultDate._id, + opts); + return NSDateComponents._(_ret, _lib, retain: true, release: true); } - static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSAttributedStringMarkdownParsingOptions1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + void getEra_year_month_day_fromDate_( + ffi.Pointer eraValuePointer, + ffi.Pointer yearValuePointer, + ffi.Pointer monthValuePointer, + ffi.Pointer dayValuePointer, + NSDate date) { + _lib._objc_msgSend_634( + _id, + _lib._sel_getEra_year_month_day_fromDate_1, + eraValuePointer, + yearValuePointer, + monthValuePointer, + dayValuePointer, + date._id); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSAttributedStringMarkdownParsingOptions1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + void getEra_yearForWeekOfYear_weekOfYear_weekday_fromDate_( + ffi.Pointer eraValuePointer, + ffi.Pointer yearValuePointer, + ffi.Pointer weekValuePointer, + ffi.Pointer weekdayValuePointer, + NSDate date) { + _lib._objc_msgSend_634( + _id, + _lib._sel_getEra_yearForWeekOfYear_weekOfYear_weekday_fromDate_1, + eraValuePointer, + yearValuePointer, + weekValuePointer, + weekdayValuePointer, + date._id); } - static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSAttributedStringMarkdownParsingOptions1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + void getHour_minute_second_nanosecond_fromDate_( + ffi.Pointer hourValuePointer, + ffi.Pointer minuteValuePointer, + ffi.Pointer secondValuePointer, + ffi.Pointer nanosecondValuePointer, + NSDate date) { + _lib._objc_msgSend_634( + _id, + _lib._sel_getHour_minute_second_nanosecond_fromDate_1, + hourValuePointer, + minuteValuePointer, + secondValuePointer, + nanosecondValuePointer, + date._id); } - static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSAttributedStringMarkdownParsingOptions1, - _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + int component_fromDate_(int unit, NSDate date) { + return _lib._objc_msgSend_635( + _id, _lib._sel_component_fromDate_1, unit, date._id); } -} -abstract class NSAttributedStringMarkdownInterpretedSyntax { - static const int NSAttributedStringMarkdownInterpretedSyntaxFull = 0; - static const int NSAttributedStringMarkdownInterpretedSyntaxInlineOnly = 1; - static const int - NSAttributedStringMarkdownInterpretedSyntaxInlineOnlyPreservingWhitespace = - 2; -} + NSDate? dateWithEra_year_month_day_hour_minute_second_nanosecond_( + int eraValue, + int yearValue, + int monthValue, + int dayValue, + int hourValue, + int minuteValue, + int secondValue, + int nanosecondValue) { + final _ret = _lib._objc_msgSend_636( + _id, + _lib._sel_dateWithEra_year_month_day_hour_minute_second_nanosecond_1, + eraValue, + yearValue, + monthValue, + dayValue, + hourValue, + minuteValue, + secondValue, + nanosecondValue); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); + } -abstract class NSAttributedStringMarkdownParsingFailurePolicy { - static const int NSAttributedStringMarkdownParsingFailureReturnError = 0; - static const int - NSAttributedStringMarkdownParsingFailureReturnPartiallyParsedIfPossible = - 1; -} + NSDate? + dateWithEra_yearForWeekOfYear_weekOfYear_weekday_hour_minute_second_nanosecond_( + int eraValue, + int yearValue, + int weekValue, + int weekdayValue, + int hourValue, + int minuteValue, + int secondValue, + int nanosecondValue) { + final _ret = _lib._objc_msgSend_636( + _id, + _lib._sel_dateWithEra_yearForWeekOfYear_weekOfYear_weekday_hour_minute_second_nanosecond_1, + eraValue, + yearValue, + weekValue, + weekdayValue, + hourValue, + minuteValue, + secondValue, + nanosecondValue); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); + } -abstract class NSAttributedStringFormattingOptions { - static const int - NSAttributedStringFormattingInsertArgumentAttributesWithoutMerging = 1; - static const int NSAttributedStringFormattingApplyReplacementIndexAttribute = - 2; -} + NSDate startOfDayForDate_(NSDate date) { + final _ret = + _lib._objc_msgSend_159(_id, _lib._sel_startOfDayForDate_1, date._id); + return NSDate._(_ret, _lib, retain: true, release: true); + } -class NSMutableAttributedString extends NSAttributedString { - NSMutableAttributedString._(ffi.Pointer id, PedometerBindings lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSDateComponents componentsInTimeZone_fromDate_( + NSTimeZone timezone, NSDate date) { + final _ret = _lib._objc_msgSend_637( + _id, _lib._sel_componentsInTimeZone_fromDate_1, timezone._id, date._id); + return NSDateComponents._(_ret, _lib, retain: true, release: true); + } - /// Returns a [NSMutableAttributedString] that points to the same underlying object as [other]. - static NSMutableAttributedString castFrom(T other) { - return NSMutableAttributedString._(other._id, other._lib, - retain: true, release: true); + int compareDate_toDate_toUnitGranularity_( + NSDate date1, NSDate date2, int unit) { + return _lib._objc_msgSend_638( + _id, + _lib._sel_compareDate_toDate_toUnitGranularity_1, + date1._id, + date2._id, + unit); } - /// Returns a [NSMutableAttributedString] that wraps the given raw object pointer. - static NSMutableAttributedString castFromPointer( - PedometerBindings lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSMutableAttributedString._(other, lib, - retain: retain, release: release); + bool isDate_equalToDate_toUnitGranularity_( + NSDate date1, NSDate date2, int unit) { + return _lib._objc_msgSend_639( + _id, + _lib._sel_isDate_equalToDate_toUnitGranularity_1, + date1._id, + date2._id, + unit); } - /// Returns whether [obj] is an instance of [NSMutableAttributedString]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMutableAttributedString1); + bool isDate_inSameDayAsDate_(NSDate date1, NSDate date2) { + return _lib._objc_msgSend_640( + _id, _lib._sel_isDate_inSameDayAsDate_1, date1._id, date2._id); } - void replaceCharactersInRange_withString_(_NSRange range, NSString? str) { - return _lib._objc_msgSend_504( - _id, - _lib._sel_replaceCharactersInRange_withString_1, - range, - str?._id ?? ffi.nullptr); + bool isDateInToday_(NSDate date) { + return _lib._objc_msgSend_161(_id, _lib._sel_isDateInToday_1, date._id); } - void setAttributes_range_(NSDictionary? attrs, _NSRange range) { - return _lib._objc_msgSend_545( - _id, _lib._sel_setAttributes_range_1, attrs?._id ?? ffi.nullptr, range); + bool isDateInYesterday_(NSDate date) { + return _lib._objc_msgSend_161(_id, _lib._sel_isDateInYesterday_1, date._id); } - NSMutableString? get mutableString { - final _ret = _lib._objc_msgSend_546(_id, _lib._sel_mutableString1); - return _ret.address == 0 - ? null - : NSMutableString._(_ret, _lib, retain: true, release: true); + bool isDateInTomorrow_(NSDate date) { + return _lib._objc_msgSend_161(_id, _lib._sel_isDateInTomorrow_1, date._id); } - void addAttribute_value_range_( - NSString name, NSObject value, _NSRange range) { - return _lib._objc_msgSend_547( - _id, _lib._sel_addAttribute_value_range_1, name._id, value._id, range); + bool isDateInWeekend_(NSDate date) { + return _lib._objc_msgSend_161(_id, _lib._sel_isDateInWeekend_1, date._id); } - void addAttributes_range_(NSDictionary? attrs, _NSRange range) { - return _lib._objc_msgSend_545( - _id, _lib._sel_addAttributes_range_1, attrs?._id ?? ffi.nullptr, range); + bool rangeOfWeekendStartDate_interval_containingDate_( + ffi.Pointer> datep, + ffi.Pointer tip, + NSDate date) { + return _lib._objc_msgSend_641( + _id, + _lib._sel_rangeOfWeekendStartDate_interval_containingDate_1, + datep, + tip, + date._id); } - void removeAttribute_range_(NSString name, _NSRange range) { - return _lib._objc_msgSend_548( - _id, _lib._sel_removeAttribute_range_1, name._id, range); + bool nextWeekendStartDate_interval_options_afterDate_( + ffi.Pointer> datep, + ffi.Pointer tip, + int options, + NSDate date) { + return _lib._objc_msgSend_642( + _id, + _lib._sel_nextWeekendStartDate_interval_options_afterDate_1, + datep, + tip, + options, + date._id); } - void replaceCharactersInRange_withAttributedString_( - _NSRange range, NSAttributedString? attrString) { - return _lib._objc_msgSend_549( + NSDateComponents components_fromDateComponents_toDateComponents_options_( + int unitFlags, + NSDateComponents startingDateComp, + NSDateComponents resultDateComp, + int options) { + final _ret = _lib._objc_msgSend_643( _id, - _lib._sel_replaceCharactersInRange_withAttributedString_1, - range, - attrString?._id ?? ffi.nullptr); + _lib._sel_components_fromDateComponents_toDateComponents_options_1, + unitFlags, + startingDateComp._id, + resultDateComp._id, + options); + return NSDateComponents._(_ret, _lib, retain: true, release: true); } - void insertAttributedString_atIndex_( - NSAttributedString? attrString, int loc) { - return _lib._objc_msgSend_550( + NSDate? dateByAddingUnit_value_toDate_options_( + int unit, int value, NSDate date, int options) { + final _ret = _lib._objc_msgSend_644( _id, - _lib._sel_insertAttributedString_atIndex_1, - attrString?._id ?? ffi.nullptr, - loc); + _lib._sel_dateByAddingUnit_value_toDate_options_1, + unit, + value, + date._id, + options); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - void appendAttributedString_(NSAttributedString? attrString) { - return _lib._objc_msgSend_551(_id, _lib._sel_appendAttributedString_1, - attrString?._id ?? ffi.nullptr); + void enumerateDatesStartingAfterDate_matchingComponents_options_usingBlock_( + NSDate start, + NSDateComponents comps, + int opts, + ObjCBlock_ffiVoid_NSDate_bool_bool block) { + _lib._objc_msgSend_645( + _id, + _lib._sel_enumerateDatesStartingAfterDate_matchingComponents_options_usingBlock_1, + start._id, + comps._id, + opts, + block._id); } - void deleteCharactersInRange_(_NSRange range) { - return _lib._objc_msgSend_407( - _id, _lib._sel_deleteCharactersInRange_1, range); + NSDate? nextDateAfterDate_matchingComponents_options_( + NSDate date, NSDateComponents comps, int options) { + final _ret = _lib._objc_msgSend_646( + _id, + _lib._sel_nextDateAfterDate_matchingComponents_options_1, + date._id, + comps._id, + options); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - void setAttributedString_(NSAttributedString? attrString) { - return _lib._objc_msgSend_551( - _id, _lib._sel_setAttributedString_1, attrString?._id ?? ffi.nullptr); + NSDate? nextDateAfterDate_matchingUnit_value_options_( + NSDate date, int unit, int value, int options) { + final _ret = _lib._objc_msgSend_647( + _id, + _lib._sel_nextDateAfterDate_matchingUnit_value_options_1, + date._id, + unit, + value, + options); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - void beginEditing() { - return _lib._objc_msgSend_1(_id, _lib._sel_beginEditing1); + NSDate? nextDateAfterDate_matchingHour_minute_second_options_(NSDate date, + int hourValue, int minuteValue, int secondValue, int options) { + final _ret = _lib._objc_msgSend_648( + _id, + _lib._sel_nextDateAfterDate_matchingHour_minute_second_options_1, + date._id, + hourValue, + minuteValue, + secondValue, + options); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - void endEditing() { - return _lib._objc_msgSend_1(_id, _lib._sel_endEditing1); + NSDate? dateBySettingUnit_value_ofDate_options_( + int unit, int v, NSDate date, int opts) { + final _ret = _lib._objc_msgSend_644( + _id, + _lib._sel_dateBySettingUnit_value_ofDate_options_1, + unit, + v, + date._id, + opts); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - /// Formats the specified string and arguments with the current locale, - /// then appends the result to the receiver. - void appendLocalizedFormat_(NSAttributedString? format) { - return _lib._objc_msgSend_551( - _id, _lib._sel_appendLocalizedFormat_1, format?._id ?? ffi.nullptr); + NSDate? dateBySettingHour_minute_second_ofDate_options_( + int h, int m, int s, NSDate date, int opts) { + final _ret = _lib._objc_msgSend_649( + _id, + _lib._sel_dateBySettingHour_minute_second_ofDate_options_1, + h, + m, + s, + date._id, + opts); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - /// Formats the string using the current locale and default options. - static NSMutableAttributedString localizedAttributedStringWithFormat_( - PedometerBindings _lib, NSAttributedString? format) { - final _ret = _lib._objc_msgSend_528( - _lib._class_NSMutableAttributedString1, - _lib._sel_localizedAttributedStringWithFormat_1, - format?._id ?? ffi.nullptr); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + bool date_matchesComponents_(NSDate date, NSDateComponents components) { + return _lib._objc_msgSend_650( + _id, _lib._sel_date_matchesComponents_1, date._id, components._id); } - /// Formats the string using the current locale and the specified options. - static NSMutableAttributedString localizedAttributedStringWithFormat_options_( - PedometerBindings _lib, NSAttributedString? format, int options) { - final _ret = _lib._objc_msgSend_540( - _lib._class_NSMutableAttributedString1, - _lib._sel_localizedAttributedStringWithFormat_options_1, - format?._id ?? ffi.nullptr, - options); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + static NSCalendar new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSCalendar1, _lib._sel_new1); + return NSCalendar._(_ret, _lib, retain: false, release: true); } - static NSMutableAttributedString new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableAttributedString1, _lib._sel_new1); - return NSMutableAttributedString._(_ret, _lib, - retain: false, release: true); + static NSCalendar allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSCalendar1, _lib._sel_allocWithZone_1, zone); + return NSCalendar._(_ret, _lib, retain: false, release: true); } - static NSMutableAttributedString alloc(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableAttributedString1, _lib._sel_alloc1); - return NSMutableAttributedString._(_ret, _lib, - retain: false, release: true); + static NSCalendar alloc(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSCalendar1, _lib._sel_alloc1); + return NSCalendar._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSMutableAttributedString1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSCalendar1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMutableAttributedString1, + _lib._objc_msgSend_15(_lib._class_NSCalendar1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSMutableAttributedString1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSCalendar1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSMutableAttributedString1, _lib._sel_useStoredAccessor1); + _lib._class_NSCalendar1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSMutableAttributedString1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSCalendar1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSMutableAttributedString1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSMutableAttributedString1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSCalendar1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71(_lib._class_NSMutableAttributedString1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_NSCalendar1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSMutableAttributedString1, - _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSCalendar1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSDateFormatter extends NSFormatter { - NSDateFormatter._(ffi.Pointer id, PedometerBindings lib, +abstract class NSCalendarUnit { + static const int NSCalendarUnitEra = 2; + static const int NSCalendarUnitYear = 4; + static const int NSCalendarUnitMonth = 8; + static const int NSCalendarUnitDay = 16; + static const int NSCalendarUnitHour = 32; + static const int NSCalendarUnitMinute = 64; + static const int NSCalendarUnitSecond = 128; + static const int NSCalendarUnitWeekday = 512; + static const int NSCalendarUnitWeekdayOrdinal = 1024; + static const int NSCalendarUnitQuarter = 2048; + static const int NSCalendarUnitWeekOfMonth = 4096; + static const int NSCalendarUnitWeekOfYear = 8192; + static const int NSCalendarUnitYearForWeekOfYear = 16384; + static const int NSCalendarUnitNanosecond = 32768; + static const int NSCalendarUnitCalendar = 1048576; + static const int NSCalendarUnitTimeZone = 2097152; + static const int NSEraCalendarUnit = 2; + static const int NSYearCalendarUnit = 4; + static const int NSMonthCalendarUnit = 8; + static const int NSDayCalendarUnit = 16; + static const int NSHourCalendarUnit = 32; + static const int NSMinuteCalendarUnit = 64; + static const int NSSecondCalendarUnit = 128; + static const int NSWeekCalendarUnit = 256; + static const int NSWeekdayCalendarUnit = 512; + static const int NSWeekdayOrdinalCalendarUnit = 1024; + static const int NSQuarterCalendarUnit = 2048; + static const int NSWeekOfMonthCalendarUnit = 4096; + static const int NSWeekOfYearCalendarUnit = 8192; + static const int NSYearForWeekOfYearCalendarUnit = 16384; + static const int NSCalendarCalendarUnit = 1048576; + static const int NSTimeZoneCalendarUnit = 2097152; +} + +class NSDateComponents extends NSObject { + NSDateComponents._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSDateFormatter] that points to the same underlying object as [other]. - static NSDateFormatter castFrom(T other) { - return NSDateFormatter._(other._id, other._lib, + /// Returns a [NSDateComponents] that points to the same underlying object as [other]. + static NSDateComponents castFrom(T other) { + return NSDateComponents._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSDateFormatter] that wraps the given raw object pointer. - static NSDateFormatter castFromPointer( + /// Returns a [NSDateComponents] that wraps the given raw object pointer. + static NSDateComponents castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSDateFormatter._(other, lib, retain: retain, release: release); + return NSDateComponents._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSDateFormatter]. + /// Returns whether [obj] is an instance of [NSDateComponents]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSDateFormatter1); + obj._lib._class_NSDateComponents1); } - int get formattingContext { - return _lib._objc_msgSend_556(_id, _lib._sel_formattingContext1); + NSCalendar? get calendar { + final _ret = _lib._objc_msgSend_622(_id, _lib._sel_calendar1); + return _ret.address == 0 + ? null + : NSCalendar._(_ret, _lib, retain: true, release: true); } - set formattingContext(int value) { - _lib._objc_msgSend_557(_id, _lib._sel_setFormattingContext_1, value); + set calendar(NSCalendar? value) { + return _lib._objc_msgSend_623( + _id, _lib._sel_setCalendar_1, value?._id ?? ffi.nullptr); } - bool getObjectValue_forString_range_error_( - ffi.Pointer> obj, - NSString? string, - ffi.Pointer<_NSRange> rangep, - ffi.Pointer> error) { - return _lib._objc_msgSend_558( - _id, - _lib._sel_getObjectValue_forString_range_error_1, - obj, - string?._id ?? ffi.nullptr, - rangep, - error); + NSTimeZone? get timeZone { + final _ret = _lib._objc_msgSend_624(_id, _lib._sel_timeZone1); + return _ret.address == 0 + ? null + : NSTimeZone._(_ret, _lib, retain: true, release: true); } - NSString stringFromDate_(NSDate? date) { - final _ret = _lib._objc_msgSend_559( - _id, _lib._sel_stringFromDate_1, date?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + set timeZone(NSTimeZone? value) { + return _lib._objc_msgSend_625( + _id, _lib._sel_setTimeZone_1, value?._id ?? ffi.nullptr); } - NSDate dateFromString_(NSString? string) { - final _ret = _lib._objc_msgSend_560( - _id, _lib._sel_dateFromString_1, string?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); + int get era { + return _lib._objc_msgSend_75(_id, _lib._sel_era1); } - static NSString localizedStringFromDate_dateStyle_timeStyle_( - PedometerBindings _lib, NSDate? date, int dstyle, int tstyle) { - final _ret = _lib._objc_msgSend_561( - _lib._class_NSDateFormatter1, - _lib._sel_localizedStringFromDate_dateStyle_timeStyle_1, - date?._id ?? ffi.nullptr, - dstyle, - tstyle); - return NSString._(_ret, _lib, retain: true, release: true); + set era(int value) { + return _lib._objc_msgSend_626(_id, _lib._sel_setEra_1, value); } - static NSString dateFormatFromTemplate_options_locale_( - PedometerBindings _lib, NSString? tmplate, int opts, NSLocale? locale) { - final _ret = _lib._objc_msgSend_562( - _lib._class_NSDateFormatter1, - _lib._sel_dateFormatFromTemplate_options_locale_1, - tmplate?._id ?? ffi.nullptr, - opts, - locale?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + int get year { + return _lib._objc_msgSend_75(_id, _lib._sel_year1); } - static int getDefaultFormatterBehavior(PedometerBindings _lib) { - return _lib._objc_msgSend_563( - _lib._class_NSDateFormatter1, _lib._sel_defaultFormatterBehavior1); + set year(int value) { + return _lib._objc_msgSend_626(_id, _lib._sel_setYear_1, value); } - static void setDefaultFormatterBehavior(PedometerBindings _lib, int value) { - _lib._objc_msgSend_564(_lib._class_NSDateFormatter1, - _lib._sel_setDefaultFormatterBehavior_1, value); + int get month { + return _lib._objc_msgSend_75(_id, _lib._sel_month1); } - void setLocalizedDateFormatFromTemplate_(NSString? dateFormatTemplate) { - return _lib._objc_msgSend_188( - _id, - _lib._sel_setLocalizedDateFormatFromTemplate_1, - dateFormatTemplate?._id ?? ffi.nullptr); + set month(int value) { + return _lib._objc_msgSend_626(_id, _lib._sel_setMonth_1, value); } - NSString? get dateFormat { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_dateFormat1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + int get day { + return _lib._objc_msgSend_75(_id, _lib._sel_day1); } - set dateFormat(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setDateFormat_1, value?._id ?? ffi.nullptr); + set day(int value) { + return _lib._objc_msgSend_626(_id, _lib._sel_setDay_1, value); } - int get dateStyle { - return _lib._objc_msgSend_565(_id, _lib._sel_dateStyle1); + int get hour { + return _lib._objc_msgSend_75(_id, _lib._sel_hour1); } - set dateStyle(int value) { - _lib._objc_msgSend_566(_id, _lib._sel_setDateStyle_1, value); + set hour(int value) { + return _lib._objc_msgSend_626(_id, _lib._sel_setHour_1, value); } - int get timeStyle { - return _lib._objc_msgSend_565(_id, _lib._sel_timeStyle1); + int get minute { + return _lib._objc_msgSend_75(_id, _lib._sel_minute1); } - set timeStyle(int value) { - _lib._objc_msgSend_566(_id, _lib._sel_setTimeStyle_1, value); + set minute(int value) { + return _lib._objc_msgSend_626(_id, _lib._sel_setMinute_1, value); } - NSLocale? get locale { - final _ret = _lib._objc_msgSend_273(_id, _lib._sel_locale1); - return _ret.address == 0 - ? null - : NSLocale._(_ret, _lib, retain: true, release: true); + int get second { + return _lib._objc_msgSend_75(_id, _lib._sel_second1); } - set locale(NSLocale? value) { - _lib._objc_msgSend_567( - _id, _lib._sel_setLocale_1, value?._id ?? ffi.nullptr); + set second(int value) { + return _lib._objc_msgSend_626(_id, _lib._sel_setSecond_1, value); } - bool get generatesCalendarDates { - return _lib._objc_msgSend_12(_id, _lib._sel_generatesCalendarDates1); + int get nanosecond { + return _lib._objc_msgSend_75(_id, _lib._sel_nanosecond1); } - set generatesCalendarDates(bool value) { - _lib._objc_msgSend_453(_id, _lib._sel_setGeneratesCalendarDates_1, value); + set nanosecond(int value) { + return _lib._objc_msgSend_626(_id, _lib._sel_setNanosecond_1, value); } - int get formatterBehavior { - return _lib._objc_msgSend_563(_id, _lib._sel_formatterBehavior1); + int get weekday { + return _lib._objc_msgSend_75(_id, _lib._sel_weekday1); } - set formatterBehavior(int value) { - _lib._objc_msgSend_564(_id, _lib._sel_setFormatterBehavior_1, value); + set weekday(int value) { + return _lib._objc_msgSend_626(_id, _lib._sel_setWeekday_1, value); } - NSTimeZone? get timeZone { - final _ret = _lib._objc_msgSend_569(_id, _lib._sel_timeZone1); - return _ret.address == 0 - ? null - : NSTimeZone._(_ret, _lib, retain: true, release: true); + int get weekdayOrdinal { + return _lib._objc_msgSend_75(_id, _lib._sel_weekdayOrdinal1); } - set timeZone(NSTimeZone? value) { - _lib._objc_msgSend_570( - _id, _lib._sel_setTimeZone_1, value?._id ?? ffi.nullptr); + set weekdayOrdinal(int value) { + return _lib._objc_msgSend_626(_id, _lib._sel_setWeekdayOrdinal_1, value); } - NSCalendar? get calendar { - final _ret = _lib._objc_msgSend_576(_id, _lib._sel_calendar1); - return _ret.address == 0 - ? null - : NSCalendar._(_ret, _lib, retain: true, release: true); + int get quarter { + return _lib._objc_msgSend_75(_id, _lib._sel_quarter1); } - set calendar(NSCalendar? value) { - _lib._objc_msgSend_582( - _id, _lib._sel_setCalendar_1, value?._id ?? ffi.nullptr); + set quarter(int value) { + return _lib._objc_msgSend_626(_id, _lib._sel_setQuarter_1, value); } - bool get lenient { - return _lib._objc_msgSend_12(_id, _lib._sel_isLenient1); + int get weekOfMonth { + return _lib._objc_msgSend_75(_id, _lib._sel_weekOfMonth1); } - set lenient(bool value) { - _lib._objc_msgSend_453(_id, _lib._sel_setLenient_1, value); + set weekOfMonth(int value) { + return _lib._objc_msgSend_626(_id, _lib._sel_setWeekOfMonth_1, value); } - NSDate? get twoDigitStartDate { - final _ret = _lib._objc_msgSend_154(_id, _lib._sel_twoDigitStartDate1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + int get weekOfYear { + return _lib._objc_msgSend_75(_id, _lib._sel_weekOfYear1); } - set twoDigitStartDate(NSDate? value) { - _lib._objc_msgSend_608( - _id, _lib._sel_setTwoDigitStartDate_1, value?._id ?? ffi.nullptr); + set weekOfYear(int value) { + return _lib._objc_msgSend_626(_id, _lib._sel_setWeekOfYear_1, value); } - NSDate? get defaultDate { - final _ret = _lib._objc_msgSend_154(_id, _lib._sel_defaultDate1); + int get yearForWeekOfYear { + return _lib._objc_msgSend_75(_id, _lib._sel_yearForWeekOfYear1); + } + + set yearForWeekOfYear(int value) { + return _lib._objc_msgSend_626(_id, _lib._sel_setYearForWeekOfYear_1, value); + } + + bool get leapMonth { + return _lib._objc_msgSend_12(_id, _lib._sel_isLeapMonth1); + } + + set leapMonth(bool value) { + return _lib._objc_msgSend_475(_id, _lib._sel_setLeapMonth_1, value); + } + + NSDate? get date { + final _ret = _lib._objc_msgSend_164(_id, _lib._sel_date1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); } - set defaultDate(NSDate? value) { - _lib._objc_msgSend_608( - _id, _lib._sel_setDefaultDate_1, value?._id ?? ffi.nullptr); + int week() { + return _lib._objc_msgSend_75(_id, _lib._sel_week1); } - NSArray? get eraSymbols { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_eraSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + void setWeek_(int v) { + _lib._objc_msgSend_374(_id, _lib._sel_setWeek_1, v); } - set eraSymbols(NSArray? value) { - _lib._objc_msgSend_609( - _id, _lib._sel_setEraSymbols_1, value?._id ?? ffi.nullptr); + void setValue_forComponent_(int value, int unit) { + _lib._objc_msgSend_627(_id, _lib._sel_setValue_forComponent_1, value, unit); } - NSArray? get monthSymbols { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_monthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + int valueForComponent_(int unit) { + return _lib._objc_msgSend_628(_id, _lib._sel_valueForComponent_1, unit); } - set monthSymbols(NSArray? value) { - _lib._objc_msgSend_609( - _id, _lib._sel_setMonthSymbols_1, value?._id ?? ffi.nullptr); + bool get validDate { + return _lib._objc_msgSend_12(_id, _lib._sel_isValidDate1); } - NSArray? get shortMonthSymbols { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_shortMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + bool isValidDateInCalendar_(NSCalendar calendar) { + return _lib._objc_msgSend_629( + _id, _lib._sel_isValidDateInCalendar_1, calendar._id); } - set shortMonthSymbols(NSArray? value) { - _lib._objc_msgSend_609( - _id, _lib._sel_setShortMonthSymbols_1, value?._id ?? ffi.nullptr); + @override + NSDateComponents init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSDateComponents._(_ret, _lib, retain: true, release: true); } - NSArray? get weekdaySymbols { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_weekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static NSDateComponents new1(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSDateComponents1, _lib._sel_new1); + return NSDateComponents._(_ret, _lib, retain: false, release: true); } - set weekdaySymbols(NSArray? value) { - _lib._objc_msgSend_609( - _id, _lib._sel_setWeekdaySymbols_1, value?._id ?? ffi.nullptr); + static NSDateComponents allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSDateComponents1, _lib._sel_allocWithZone_1, zone); + return NSDateComponents._(_ret, _lib, retain: false, release: true); } - NSArray? get shortWeekdaySymbols { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_shortWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static NSDateComponents alloc(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSDateComponents1, _lib._sel_alloc1); + return NSDateComponents._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + PedometerBindings _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSDateComponents1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument?._id ?? ffi.nullptr); } - set shortWeekdaySymbols(NSArray? value) { - _lib._objc_msgSend_609( - _id, _lib._sel_setShortWeekdaySymbols_1, value?._id ?? ffi.nullptr); + static void cancelPreviousPerformRequestsWithTarget_( + PedometerBindings _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSDateComponents1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - NSString? get AMSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_AMSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { + return _lib._objc_msgSend_12(_lib._class_NSDateComponents1, + _lib._sel_accessInstanceVariablesDirectly1); } - set AMSymbol(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setAMSymbol_1, value?._id ?? ffi.nullptr); + static bool useStoredAccessor(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSDateComponents1, _lib._sel_useStoredAccessor1); } - NSString? get PMSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_PMSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSSet keyPathsForValuesAffectingValueForKey_( + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSDateComponents1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); + return NSSet._(_ret, _lib, retain: true, release: true); } - set PMSymbol(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setPMSymbol_1, value?._id ?? ffi.nullptr); + static bool automaticallyNotifiesObserversForKey_( + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSDateComponents1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } - NSArray? get longEraSymbols { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_longEraSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77(_lib._class_NSDateComponents1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set longEraSymbols(NSArray? value) { - _lib._objc_msgSend_609( - _id, _lib._sel_setLongEraSymbols_1, value?._id ?? ffi.nullptr); + static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSDateComponents1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - NSArray? get veryShortMonthSymbols { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_veryShortMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); +abstract class NSCalendarOptions { + static const int NSCalendarWrapComponents = 1; + static const int NSCalendarMatchStrictly = 2; + static const int NSCalendarSearchBackwards = 4; + static const int NSCalendarMatchPreviousTimePreservingSmallerUnits = 256; + static const int NSCalendarMatchNextTimePreservingSmallerUnits = 512; + static const int NSCalendarMatchNextTime = 1024; + static const int NSCalendarMatchFirst = 4096; + static const int NSCalendarMatchLast = 8192; +} + +void _ObjCBlock_ffiVoid_NSDate_bool_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer, bool, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_NSDate_bool_bool_closureRegistry = , bool, ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSDate_bool_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSDate_bool_bool_registerClosure( + void Function(ffi.Pointer, bool, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSDate_bool_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSDate_bool_bool_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSDate_bool_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_NSDate_bool_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_NSDate_bool_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSDate_bool_bool._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSDate_bool_bool.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Bool, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSDate_bool_bool_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSDate_bool_bool.fromFunction(PedometerBindings lib, + void Function(NSDate?, bool, ffi.Pointer) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Bool, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSDate_bool_bool_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSDate_bool_bool_registerClosure( + (ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) => fn( + arg0.address == 0 ? null : NSDate._(arg0, lib, retain: true, release: true), + arg1, + arg2))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSDate_bool_bool.listener(PedometerBindings lib, + void Function(NSDate?, bool, ffi.Pointer) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Bool, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSDate_bool_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSDate_bool_bool_registerClosure( + (ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) => fn( + arg0.address == 0 ? null : NSDate._(arg0, lib, retain: true, release: true), + arg1, + arg2))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Bool, ffi.Pointer)>? _dartFuncListenerTrampoline; + + void call(NSDate? arg0, bool arg1, ffi.Pointer arg2) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Bool arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer, bool, ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1, arg2); +} + +class NSScanner extends NSObject { + NSScanner._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSScanner] that points to the same underlying object as [other]. + static NSScanner castFrom(T other) { + return NSScanner._(other._id, other._lib, retain: true, release: true); } - set veryShortMonthSymbols(NSArray? value) { - _lib._objc_msgSend_609( - _id, _lib._sel_setVeryShortMonthSymbols_1, value?._id ?? ffi.nullptr); + /// Returns a [NSScanner] that wraps the given raw object pointer. + static NSScanner castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSScanner._(other, lib, retain: retain, release: release); } - NSArray? get standaloneMonthSymbols { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_standaloneMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [NSScanner]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSScanner1); } - set standaloneMonthSymbols(NSArray? value) { - _lib._objc_msgSend_609( - _id, _lib._sel_setStandaloneMonthSymbols_1, value?._id ?? ffi.nullptr); + NSString get string { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_string1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSArray? get shortStandaloneMonthSymbols { - final _ret = - _lib._objc_msgSend_71(_id, _lib._sel_shortStandaloneMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + int get scanLocation { + return _lib._objc_msgSend_10(_id, _lib._sel_scanLocation1); } - set shortStandaloneMonthSymbols(NSArray? value) { - _lib._objc_msgSend_609(_id, _lib._sel_setShortStandaloneMonthSymbols_1, - value?._id ?? ffi.nullptr); + set scanLocation(int value) { + return _lib._objc_msgSend_463(_id, _lib._sel_setScanLocation_1, value); } - NSArray? get veryShortStandaloneMonthSymbols { - final _ret = - _lib._objc_msgSend_71(_id, _lib._sel_veryShortStandaloneMonthSymbols1); + NSCharacterSet? get charactersToBeSkipped { + final _ret = _lib._objc_msgSend_654(_id, _lib._sel_charactersToBeSkipped1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSCharacterSet._(_ret, _lib, retain: true, release: true); } - set veryShortStandaloneMonthSymbols(NSArray? value) { - _lib._objc_msgSend_609(_id, _lib._sel_setVeryShortStandaloneMonthSymbols_1, - value?._id ?? ffi.nullptr); + set charactersToBeSkipped(NSCharacterSet? value) { + return _lib._objc_msgSend_655( + _id, _lib._sel_setCharactersToBeSkipped_1, value?._id ?? ffi.nullptr); } - NSArray? get veryShortWeekdaySymbols { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_veryShortWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + bool get caseSensitive { + return _lib._objc_msgSend_12(_id, _lib._sel_caseSensitive1); } - set veryShortWeekdaySymbols(NSArray? value) { - _lib._objc_msgSend_609( - _id, _lib._sel_setVeryShortWeekdaySymbols_1, value?._id ?? ffi.nullptr); + set caseSensitive(bool value) { + return _lib._objc_msgSend_475(_id, _lib._sel_setCaseSensitive_1, value); } - NSArray? get standaloneWeekdaySymbols { - final _ret = - _lib._objc_msgSend_71(_id, _lib._sel_standaloneWeekdaySymbols1); + NSObject? get locale { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_locale1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSObject._(_ret, _lib, retain: true, release: true); } - set standaloneWeekdaySymbols(NSArray? value) { - _lib._objc_msgSend_609(_id, _lib._sel_setStandaloneWeekdaySymbols_1, - value?._id ?? ffi.nullptr); + set locale(NSObject? value) { + return _lib._objc_msgSend_367( + _id, _lib._sel_setLocale_1, value?._id ?? ffi.nullptr); } - NSArray? get shortStandaloneWeekdaySymbols { + NSScanner initWithString_(NSString string) { final _ret = - _lib._objc_msgSend_71(_id, _lib._sel_shortStandaloneWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_31(_id, _lib._sel_initWithString_1, string._id); + return NSScanner._(_ret, _lib, retain: true, release: true); } - set shortStandaloneWeekdaySymbols(NSArray? value) { - _lib._objc_msgSend_609(_id, _lib._sel_setShortStandaloneWeekdaySymbols_1, - value?._id ?? ffi.nullptr); + bool scanInt_(ffi.Pointer result) { + return _lib._objc_msgSend_656(_id, _lib._sel_scanInt_1, result); } - NSArray? get veryShortStandaloneWeekdaySymbols { - final _ret = _lib._objc_msgSend_71( - _id, _lib._sel_veryShortStandaloneWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + bool scanInteger_(ffi.Pointer result) { + return _lib._objc_msgSend_657(_id, _lib._sel_scanInteger_1, result); } - set veryShortStandaloneWeekdaySymbols(NSArray? value) { - _lib._objc_msgSend_609( - _id, - _lib._sel_setVeryShortStandaloneWeekdaySymbols_1, - value?._id ?? ffi.nullptr); + bool scanLongLong_(ffi.Pointer result) { + return _lib._objc_msgSend_658(_id, _lib._sel_scanLongLong_1, result); } - NSArray? get quarterSymbols { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_quarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + bool scanUnsignedLongLong_(ffi.Pointer result) { + return _lib._objc_msgSend_659( + _id, _lib._sel_scanUnsignedLongLong_1, result); } - set quarterSymbols(NSArray? value) { - _lib._objc_msgSend_609( - _id, _lib._sel_setQuarterSymbols_1, value?._id ?? ffi.nullptr); + bool scanFloat_(ffi.Pointer result) { + return _lib._objc_msgSend_660(_id, _lib._sel_scanFloat_1, result); } - NSArray? get shortQuarterSymbols { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_shortQuarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + bool scanDouble_(ffi.Pointer result) { + return _lib._objc_msgSend_661(_id, _lib._sel_scanDouble_1, result); } - set shortQuarterSymbols(NSArray? value) { - _lib._objc_msgSend_609( - _id, _lib._sel_setShortQuarterSymbols_1, value?._id ?? ffi.nullptr); + bool scanHexInt_(ffi.Pointer result) { + return _lib._objc_msgSend_662(_id, _lib._sel_scanHexInt_1, result); } - NSArray? get standaloneQuarterSymbols { - final _ret = - _lib._objc_msgSend_71(_id, _lib._sel_standaloneQuarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + bool scanHexLongLong_(ffi.Pointer result) { + return _lib._objc_msgSend_659(_id, _lib._sel_scanHexLongLong_1, result); } - set standaloneQuarterSymbols(NSArray? value) { - _lib._objc_msgSend_609(_id, _lib._sel_setStandaloneQuarterSymbols_1, - value?._id ?? ffi.nullptr); + bool scanHexFloat_(ffi.Pointer result) { + return _lib._objc_msgSend_660(_id, _lib._sel_scanHexFloat_1, result); } - NSArray? get shortStandaloneQuarterSymbols { - final _ret = - _lib._objc_msgSend_71(_id, _lib._sel_shortStandaloneQuarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + bool scanHexDouble_(ffi.Pointer result) { + return _lib._objc_msgSend_661(_id, _lib._sel_scanHexDouble_1, result); + } + + bool scanString_intoString_( + NSString string, ffi.Pointer> result) { + return _lib._objc_msgSend_663( + _id, _lib._sel_scanString_intoString_1, string._id, result); + } + + bool scanCharactersFromSet_intoString_( + NSCharacterSet set, ffi.Pointer> result) { + return _lib._objc_msgSend_664( + _id, _lib._sel_scanCharactersFromSet_intoString_1, set._id, result); + } + + bool scanUpToString_intoString_( + NSString string, ffi.Pointer> result) { + return _lib._objc_msgSend_663( + _id, _lib._sel_scanUpToString_intoString_1, string._id, result); } - set shortStandaloneQuarterSymbols(NSArray? value) { - _lib._objc_msgSend_609(_id, _lib._sel_setShortStandaloneQuarterSymbols_1, - value?._id ?? ffi.nullptr); + bool scanUpToCharactersFromSet_intoString_( + NSCharacterSet set, ffi.Pointer> result) { + return _lib._objc_msgSend_664( + _id, _lib._sel_scanUpToCharactersFromSet_intoString_1, set._id, result); } - NSDate? get gregorianStartDate { - final _ret = _lib._objc_msgSend_154(_id, _lib._sel_gregorianStartDate1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + bool get atEnd { + return _lib._objc_msgSend_12(_id, _lib._sel_isAtEnd1); } - set gregorianStartDate(NSDate? value) { - _lib._objc_msgSend_608( - _id, _lib._sel_setGregorianStartDate_1, value?._id ?? ffi.nullptr); + static NSScanner scannerWithString_(PedometerBindings _lib, NSString string) { + final _ret = _lib._objc_msgSend_31( + _lib._class_NSScanner1, _lib._sel_scannerWithString_1, string._id); + return NSScanner._(_ret, _lib, retain: true, release: true); } - bool get doesRelativeDateFormatting { - return _lib._objc_msgSend_12(_id, _lib._sel_doesRelativeDateFormatting1); + static NSObject localizedScannerWithString_( + PedometerBindings _lib, NSString string) { + final _ret = _lib._objc_msgSend_31(_lib._class_NSScanner1, + _lib._sel_localizedScannerWithString_1, string._id); + return NSObject._(_ret, _lib, retain: true, release: true); } - set doesRelativeDateFormatting(bool value) { - _lib._objc_msgSend_453( - _id, _lib._sel_setDoesRelativeDateFormatting_1, value); + bool scanDecimal_(ffi.Pointer dcm) { + return _lib._objc_msgSend_665(_id, _lib._sel_scanDecimal_1, dcm); } - NSObject initWithDateFormat_allowNaturalLanguage_( - NSString? format, bool flag) { - final _ret = _lib._objc_msgSend_29( - _id, - _lib._sel_initWithDateFormat_allowNaturalLanguage_1, - format?._id ?? ffi.nullptr, - flag); - return NSObject._(_ret, _lib, retain: true, release: true); + @override + NSScanner init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSScanner._(_ret, _lib, retain: true, release: true); } - bool allowsNaturalLanguage() { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsNaturalLanguage1); + static NSScanner new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSScanner1, _lib._sel_new1); + return NSScanner._(_ret, _lib, retain: false, release: true); } - static NSDateFormatter new1(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSDateFormatter1, _lib._sel_new1); - return NSDateFormatter._(_ret, _lib, retain: false, release: true); + static NSScanner allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSScanner1, _lib._sel_allocWithZone_1, zone); + return NSScanner._(_ret, _lib, retain: false, release: true); } - static NSDateFormatter alloc(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSDateFormatter1, _lib._sel_alloc1); - return NSDateFormatter._(_ret, _lib, retain: false, release: true); + static NSScanner alloc(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSScanner1, _lib._sel_alloc1); + return NSScanner._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSDateFormatter1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSScanner1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSDateFormatter1, + _lib._objc_msgSend_15(_lib._class_NSScanner1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSDateFormatter1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSScanner1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSDateFormatter1, _lib._sel_useStoredAccessor1); + _lib._class_NSScanner1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSDateFormatter1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSScanner1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSDateFormatter1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSDateFormatter1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSScanner1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71(_lib._class_NSDateFormatter1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_NSScanner1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSDateFormatter1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSScanner1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSFormatter extends NSObject { - NSFormatter._(ffi.Pointer id, PedometerBindings lib, +final class NSDecimal extends ffi.Opaque {} + +class NSException extends NSObject { + NSException._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSFormatter] that points to the same underlying object as [other]. - static NSFormatter castFrom(T other) { - return NSFormatter._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSException] that points to the same underlying object as [other]. + static NSException castFrom(T other) { + return NSException._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSFormatter] that wraps the given raw object pointer. - static NSFormatter castFromPointer( + /// Returns a [NSException] that wraps the given raw object pointer. + static NSException castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSFormatter._(other, lib, retain: retain, release: release); + return NSException._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSFormatter]. + /// Returns whether [obj] is an instance of [NSException]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSFormatter1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSException1); } - NSString stringForObjectValue_(NSObject obj) { - final _ret = - _lib._objc_msgSend_57(_id, _lib._sel_stringForObjectValue_1, obj._id); - return NSString._(_ret, _lib, retain: true, release: true); + static NSException exceptionWithName_reason_userInfo_(PedometerBindings _lib, + NSString name, NSString? reason, NSDictionary? userInfo) { + final _ret = _lib._objc_msgSend_666( + _lib._class_NSException1, + _lib._sel_exceptionWithName_reason_userInfo_1, + name._id, + reason?._id ?? ffi.nullptr, + userInfo?._id ?? ffi.nullptr); + return NSException._(_ret, _lib, retain: true, release: true); } - NSAttributedString attributedStringForObjectValue_withDefaultAttributes_( - NSObject obj, NSDictionary? attrs) { - final _ret = _lib._objc_msgSend_552( + NSException initWithName_reason_userInfo_( + NSString aName, NSString? aReason, NSDictionary? aUserInfo) { + final _ret = _lib._objc_msgSend_667( _id, - _lib._sel_attributedStringForObjectValue_withDefaultAttributes_1, - obj._id, - attrs?._id ?? ffi.nullptr); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + _lib._sel_initWithName_reason_userInfo_1, + aName._id, + aReason?._id ?? ffi.nullptr, + aUserInfo?._id ?? ffi.nullptr); + return NSException._(_ret, _lib, retain: true, release: true); } - NSString editingStringForObjectValue_(NSObject obj) { - final _ret = _lib._objc_msgSend_57( - _id, _lib._sel_editingStringForObjectValue_1, obj._id); + NSString get name { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_name1); return NSString._(_ret, _lib, retain: true, release: true); } - bool getObjectValue_forString_errorDescription_( - ffi.Pointer> obj, - NSString? string, - ffi.Pointer> error) { - return _lib._objc_msgSend_553( - _id, - _lib._sel_getObjectValue_forString_errorDescription_1, - obj, - string?._id ?? ffi.nullptr, - error); + NSString? get reason { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_reason1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - bool isPartialStringValid_newEditingString_errorDescription_( - NSString? partialString, - ffi.Pointer> newString, - ffi.Pointer> error) { - return _lib._objc_msgSend_554( - _id, - _lib._sel_isPartialStringValid_newEditingString_errorDescription_1, - partialString?._id ?? ffi.nullptr, - newString, - error); + NSDictionary? get userInfo { + final _ret = _lib._objc_msgSend_340(_id, _lib._sel_userInfo1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - bool - isPartialStringValid_proposedSelectedRange_originalString_originalSelectedRange_errorDescription_( - ffi.Pointer> partialStringPtr, - ffi.Pointer<_NSRange> proposedSelRangePtr, - NSString? origString, - _NSRange origSelRange, - ffi.Pointer> error) { - return _lib._objc_msgSend_555( - _id, - _lib._sel_isPartialStringValid_proposedSelectedRange_originalString_originalSelectedRange_errorDescription_1, - partialStringPtr, - proposedSelRangePtr, - origString?._id ?? ffi.nullptr, - origSelRange, - error); + NSArray get callStackReturnAddresses { + final _ret = + _lib._objc_msgSend_77(_id, _lib._sel_callStackReturnAddresses1); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSFormatter new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSFormatter1, _lib._sel_new1); - return NSFormatter._(_ret, _lib, retain: false, release: true); + NSArray get callStackSymbols { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_callStackSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSFormatter alloc(PedometerBindings _lib) { + void raise() { + _lib._objc_msgSend_1(_id, _lib._sel_raise1); + } + + static void raise_format_( + PedometerBindings _lib, NSString name, NSString format) { + _lib._objc_msgSend_668(_lib._class_NSException1, _lib._sel_raise_format_1, + name._id, format._id); + } + + static void raise_format_arguments_(PedometerBindings _lib, NSString name, + NSString format, ffi.Pointer<__va_list_tag> argList) { + _lib._objc_msgSend_669(_lib._class_NSException1, + _lib._sel_raise_format_arguments_1, name._id, format._id, argList); + } + + @override + NSException init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSException._(_ret, _lib, retain: true, release: true); + } + + static NSException new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSException1, _lib._sel_new1); + return NSException._(_ret, _lib, retain: false, release: true); + } + + static NSException allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSException1, _lib._sel_allocWithZone_1, zone); + return NSException._(_ret, _lib, retain: false, release: true); + } + + static NSException alloc(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSFormatter1, _lib._sel_alloc1); - return NSFormatter._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSException1, _lib._sel_alloc1); + return NSException._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSFormatter1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSException1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSFormatter1, + _lib._objc_msgSend_15(_lib._class_NSException1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSFormatter1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSException1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSFormatter1, _lib._sel_useStoredAccessor1); + _lib._class_NSException1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSFormatter1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSException1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSFormatter1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSFormatter1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSException1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSFormatter1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_NSException1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSFormatter1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSException1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSFormattingContext { - static const int NSFormattingContextUnknown = 0; - static const int NSFormattingContextDynamic = 1; - static const int NSFormattingContextStandalone = 2; - static const int NSFormattingContextListItem = 3; - static const int NSFormattingContextBeginningOfSentence = 4; - static const int NSFormattingContextMiddleOfSentence = 5; -} - -abstract class NSDateFormatterStyle { - static const int NSDateFormatterNoStyle = 0; - static const int NSDateFormatterShortStyle = 1; - static const int NSDateFormatterMediumStyle = 2; - static const int NSDateFormatterLongStyle = 3; - static const int NSDateFormatterFullStyle = 4; -} - -abstract class NSDateFormatterBehavior { - static const int NSDateFormatterBehaviorDefault = 0; - static const int NSDateFormatterBehavior10_0 = 1000; - static const int NSDateFormatterBehavior10_4 = 1040; -} - -class NSTimeZone extends NSObject { - NSTimeZone._(ffi.Pointer id, PedometerBindings lib, +class NSRunLoop extends NSObject { + NSRunLoop._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSTimeZone] that points to the same underlying object as [other]. - static NSTimeZone castFrom(T other) { - return NSTimeZone._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSRunLoop] that points to the same underlying object as [other]. + static NSRunLoop castFrom(T other) { + return NSRunLoop._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSTimeZone] that wraps the given raw object pointer. - static NSTimeZone castFromPointer( + /// Returns a [NSRunLoop] that wraps the given raw object pointer. + static NSRunLoop castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSTimeZone._(other, lib, retain: retain, release: release); + return NSRunLoop._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSTimeZone]. + /// Returns whether [obj] is an instance of [NSRunLoop]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSTimeZone1); - } - - NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSData? get data { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_data1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); - } - - int secondsFromGMTForDate_(NSDate? aDate) { - return _lib._objc_msgSend_568( - _id, _lib._sel_secondsFromGMTForDate_1, aDate?._id ?? ffi.nullptr); - } - - NSString abbreviationForDate_(NSDate? aDate) { - final _ret = _lib._objc_msgSend_559( - _id, _lib._sel_abbreviationForDate_1, aDate?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - bool isDaylightSavingTimeForDate_(NSDate? aDate) { - return _lib._objc_msgSend_152(_id, _lib._sel_isDaylightSavingTimeForDate_1, - aDate?._id ?? ffi.nullptr); - } - - double daylightSavingTimeOffsetForDate_(NSDate? aDate) { - return _lib._objc_msgSend_149(_id, - _lib._sel_daylightSavingTimeOffsetForDate_1, aDate?._id ?? ffi.nullptr); - } - - NSDate nextDaylightSavingTimeTransitionAfterDate_(NSDate? aDate) { - final _ret = _lib._objc_msgSend_150( - _id, - _lib._sel_nextDaylightSavingTimeTransitionAfterDate_1, - aDate?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); - } - - static NSTimeZone? getSystemTimeZone(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_569( - _lib._class_NSTimeZone1, _lib._sel_systemTimeZone1); - return _ret.address == 0 - ? null - : NSTimeZone._(_ret, _lib, retain: true, release: true); - } - - static void resetSystemTimeZone(PedometerBindings _lib) { - return _lib._objc_msgSend_1( - _lib._class_NSTimeZone1, _lib._sel_resetSystemTimeZone1); - } - - static NSTimeZone? getDefaultTimeZone(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_569( - _lib._class_NSTimeZone1, _lib._sel_defaultTimeZone1); - return _ret.address == 0 - ? null - : NSTimeZone._(_ret, _lib, retain: true, release: true); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSRunLoop1); } - static void setDefaultTimeZone(PedometerBindings _lib, NSTimeZone? value) { - _lib._objc_msgSend_570(_lib._class_NSTimeZone1, - _lib._sel_setDefaultTimeZone_1, value?._id ?? ffi.nullptr); + static NSRunLoop getCurrentRunLoop(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_670( + _lib._class_NSRunLoop1, _lib._sel_currentRunLoop1); + return NSRunLoop._(_ret, _lib, retain: true, release: true); } - static NSTimeZone? getLocalTimeZone(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_569( - _lib._class_NSTimeZone1, _lib._sel_localTimeZone1); - return _ret.address == 0 - ? null - : NSTimeZone._(_ret, _lib, retain: true, release: true); + static NSRunLoop getMainRunLoop(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_670(_lib._class_NSRunLoop1, _lib._sel_mainRunLoop1); + return NSRunLoop._(_ret, _lib, retain: true, release: true); } - static NSArray? getKnownTimeZoneNames(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSTimeZone1, _lib._sel_knownTimeZoneNames1); + NSString? get currentMode { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_currentMode1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - static NSDictionary? getAbbreviationDictionary(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_324( - _lib._class_NSTimeZone1, _lib._sel_abbreviationDictionary1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + ffi.Pointer<__CFRunLoop> getCFRunLoop() { + return _lib._objc_msgSend_671(_id, _lib._sel_getCFRunLoop1); } - static void setAbbreviationDictionary( - PedometerBindings _lib, NSDictionary? value) { - _lib._objc_msgSend_571(_lib._class_NSTimeZone1, - _lib._sel_setAbbreviationDictionary_1, value?._id ?? ffi.nullptr); + void addTimer_forMode_(NSTimer timer, NSString mode) { + _lib._objc_msgSend_678( + _id, _lib._sel_addTimer_forMode_1, timer._id, mode._id); } - static NSString? getTimeZoneDataVersion(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_20( - _lib._class_NSTimeZone1, _lib._sel_timeZoneDataVersion1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + void addPort_forMode_(NSPort aPort, NSString mode) { + _lib._objc_msgSend_683( + _id, _lib._sel_addPort_forMode_1, aPort._id, mode._id); } - int get secondsFromGMT { - return _lib._objc_msgSend_70(_id, _lib._sel_secondsFromGMT1); + void removePort_forMode_(NSPort aPort, NSString mode) { + _lib._objc_msgSend_683( + _id, _lib._sel_removePort_forMode_1, aPort._id, mode._id); } - NSString? get abbreviation { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_abbreviation1); + NSDate? limitDateForMode_(NSString mode) { + final _ret = + _lib._objc_msgSend_596(_id, _lib._sel_limitDateForMode_1, mode._id); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - bool get daylightSavingTime { - return _lib._objc_msgSend_12(_id, _lib._sel_isDaylightSavingTime1); + : NSDate._(_ret, _lib, retain: true, release: true); } - double get daylightSavingTimeOffset { - return _lib._objc_msgSend_147(_id, _lib._sel_daylightSavingTimeOffset1); + void acceptInputForMode_beforeDate_(NSString mode, NSDate limitDate) { + _lib._objc_msgSend_684(_id, _lib._sel_acceptInputForMode_beforeDate_1, + mode._id, limitDate._id); } - NSDate? get nextDaylightSavingTimeTransition { - final _ret = _lib._objc_msgSend_154( - _id, _lib._sel_nextDaylightSavingTimeTransition1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + void run() { + _lib._objc_msgSend_1(_id, _lib._sel_run1); } - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + void runUntilDate_(NSDate limitDate) { + _lib._objc_msgSend_488(_id, _lib._sel_runUntilDate_1, limitDate._id); } - bool isEqualToTimeZone_(NSTimeZone? aTimeZone) { - return _lib._objc_msgSend_572( - _id, _lib._sel_isEqualToTimeZone_1, aTimeZone?._id ?? ffi.nullptr); + bool runMode_beforeDate_(NSString mode, NSDate limitDate) { + return _lib._objc_msgSend_685( + _id, _lib._sel_runMode_beforeDate_1, mode._id, limitDate._id); } - NSString localizedName_locale_(int style, NSLocale? locale) { - final _ret = _lib._objc_msgSend_573(_id, _lib._sel_localizedName_locale_1, - style, locale?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + /// Schedules the execution of a block on the target run loop in given modes. + /// - parameter: modes An array of input modes for which the block may be executed. + /// - parameter: block The block to execute + void performInModes_block_(NSArray modes, ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_686( + _id, _lib._sel_performInModes_block_1, modes._id, block._id); } - static NSTimeZone timeZoneWithName_( - PedometerBindings _lib, NSString? tzName) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSTimeZone1, - _lib._sel_timeZoneWithName_1, tzName?._id ?? ffi.nullptr); - return NSTimeZone._(_ret, _lib, retain: true, release: true); + /// Schedules the execution of a block on the target run loop. + /// - parameter: block The block to execute + void performBlock_(ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_480(_id, _lib._sel_performBlock_1, block._id); } - static NSTimeZone timeZoneWithName_data_( - PedometerBindings _lib, NSString? tzName, NSData? aData) { - final _ret = _lib._objc_msgSend_574( - _lib._class_NSTimeZone1, - _lib._sel_timeZoneWithName_data_1, - tzName?._id ?? ffi.nullptr, - aData?._id ?? ffi.nullptr); - return NSTimeZone._(_ret, _lib, retain: true, release: true); + void performSelector_target_argument_order_modes_( + ffi.Pointer aSelector, + NSObject target, + NSObject? arg, + int order, + NSArray modes) { + _lib._objc_msgSend_687( + _id, + _lib._sel_performSelector_target_argument_order_modes_1, + aSelector, + target._id, + arg?._id ?? ffi.nullptr, + order, + modes._id); } - NSTimeZone initWithName_(NSString? tzName) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithName_1, tzName?._id ?? ffi.nullptr); - return NSTimeZone._(_ret, _lib, retain: true, release: true); + void cancelPerformSelector_target_argument_( + ffi.Pointer aSelector, NSObject target, NSObject? arg) { + _lib._objc_msgSend_481( + _id, + _lib._sel_cancelPerformSelector_target_argument_1, + aSelector, + target._id, + arg?._id ?? ffi.nullptr); } - NSTimeZone initWithName_data_(NSString? tzName, NSData? aData) { - final _ret = _lib._objc_msgSend_574(_id, _lib._sel_initWithName_data_1, - tzName?._id ?? ffi.nullptr, aData?._id ?? ffi.nullptr); - return NSTimeZone._(_ret, _lib, retain: true, release: true); + void cancelPerformSelectorsWithTarget_(NSObject target) { + _lib._objc_msgSend_15( + _id, _lib._sel_cancelPerformSelectorsWithTarget_1, target._id); } - static NSTimeZone timeZoneForSecondsFromGMT_( - PedometerBindings _lib, int seconds) { - final _ret = _lib._objc_msgSend_575(_lib._class_NSTimeZone1, - _lib._sel_timeZoneForSecondsFromGMT_1, seconds); - return NSTimeZone._(_ret, _lib, retain: true, release: true); + @override + NSRunLoop init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSRunLoop._(_ret, _lib, retain: true, release: true); } - static NSTimeZone timeZoneWithAbbreviation_( - PedometerBindings _lib, NSString? abbreviation) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSTimeZone1, - _lib._sel_timeZoneWithAbbreviation_1, abbreviation?._id ?? ffi.nullptr); - return NSTimeZone._(_ret, _lib, retain: true, release: true); + static NSRunLoop new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSRunLoop1, _lib._sel_new1); + return NSRunLoop._(_ret, _lib, retain: false, release: true); } - static NSTimeZone new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSTimeZone1, _lib._sel_new1); - return NSTimeZone._(_ret, _lib, retain: false, release: true); + static NSRunLoop allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSRunLoop1, _lib._sel_allocWithZone_1, zone); + return NSRunLoop._(_ret, _lib, retain: false, release: true); } - static NSTimeZone alloc(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSTimeZone1, _lib._sel_alloc1); - return NSTimeZone._(_ret, _lib, retain: false, release: true); + static NSRunLoop alloc(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSRunLoop1, _lib._sel_alloc1); + return NSRunLoop._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSTimeZone1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSRunLoop1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSTimeZone1, + _lib._objc_msgSend_15(_lib._class_NSRunLoop1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSTimeZone1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSRunLoop1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSTimeZone1, _lib._sel_useStoredAccessor1); + _lib._class_NSRunLoop1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSTimeZone1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSRunLoop1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSTimeZone1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSTimeZone1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSRunLoop1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSTimeZone1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_NSRunLoop1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSTimeZone1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSRunLoop1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSTimeZoneNameStyle { - static const int NSTimeZoneNameStyleStandard = 0; - static const int NSTimeZoneNameStyleShortStandard = 1; - static const int NSTimeZoneNameStyleDaylightSaving = 2; - static const int NSTimeZoneNameStyleShortDaylightSaving = 3; - static const int NSTimeZoneNameStyleGeneric = 4; - static const int NSTimeZoneNameStyleShortGeneric = 5; -} +final class __CFRunLoop extends ffi.Opaque {} -class NSCalendar extends NSObject { - NSCalendar._(ffi.Pointer id, PedometerBindings lib, +class NSTimer extends NSObject { + NSTimer._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSCalendar] that points to the same underlying object as [other]. - static NSCalendar castFrom(T other) { - return NSCalendar._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSCalendar] that wraps the given raw object pointer. - static NSCalendar castFromPointer( - PedometerBindings lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSCalendar._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSCalendar]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSCalendar1); - } - - static NSCalendar? getCurrentCalendar(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_576( - _lib._class_NSCalendar1, _lib._sel_currentCalendar1); - return _ret.address == 0 - ? null - : NSCalendar._(_ret, _lib, retain: true, release: true); - } - - static NSCalendar? getAutoupdatingCurrentCalendar(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_576( - _lib._class_NSCalendar1, _lib._sel_autoupdatingCurrentCalendar1); - return _ret.address == 0 - ? null - : NSCalendar._(_ret, _lib, retain: true, release: true); - } - - static NSCalendar calendarWithIdentifier_( - PedometerBindings _lib, NSString calendarIdentifierConstant) { - final _ret = _lib._objc_msgSend_577(_lib._class_NSCalendar1, - _lib._sel_calendarWithIdentifier_1, calendarIdentifierConstant._id); - return NSCalendar._(_ret, _lib, retain: true, release: true); - } - - @override - NSCalendar init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSCalendar._(_ret, _lib, retain: true, release: true); - } - - NSObject initWithCalendarIdentifier_(NSString ident) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithCalendarIdentifier_1, ident._id); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSString get calendarIdentifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_calendarIdentifier1); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSLocale? get locale { - final _ret = _lib._objc_msgSend_273(_id, _lib._sel_locale1); - return _ret.address == 0 - ? null - : NSLocale._(_ret, _lib, retain: true, release: true); - } - - set locale(NSLocale? value) { - _lib._objc_msgSend_567( - _id, _lib._sel_setLocale_1, value?._id ?? ffi.nullptr); - } - - NSTimeZone? get timeZone { - final _ret = _lib._objc_msgSend_569(_id, _lib._sel_timeZone1); - return _ret.address == 0 - ? null - : NSTimeZone._(_ret, _lib, retain: true, release: true); - } - - set timeZone(NSTimeZone? value) { - _lib._objc_msgSend_570( - _id, _lib._sel_setTimeZone_1, value?._id ?? ffi.nullptr); - } - - int get firstWeekday { - return _lib._objc_msgSend_10(_id, _lib._sel_firstWeekday1); - } - - set firstWeekday(int value) { - _lib._objc_msgSend_444(_id, _lib._sel_setFirstWeekday_1, value); - } - - int get minimumDaysInFirstWeek { - return _lib._objc_msgSend_10(_id, _lib._sel_minimumDaysInFirstWeek1); - } - - set minimumDaysInFirstWeek(int value) { - _lib._objc_msgSend_444(_id, _lib._sel_setMinimumDaysInFirstWeek_1, value); - } - - NSArray? get eraSymbols { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_eraSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + + /// Returns a [NSTimer] that points to the same underlying object as [other]. + static NSTimer castFrom(T other) { + return NSTimer._(other._id, other._lib, retain: true, release: true); } - NSArray? get longEraSymbols { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_longEraSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + /// Returns a [NSTimer] that wraps the given raw object pointer. + static NSTimer castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSTimer._(other, lib, retain: retain, release: release); } - NSArray? get monthSymbols { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_monthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [NSTimer]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSTimer1); } - NSArray? get shortMonthSymbols { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_shortMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static NSTimer timerWithTimeInterval_invocation_repeats_( + PedometerBindings _lib, + double ti, + NSInvocation invocation, + bool yesOrNo) { + final _ret = _lib._objc_msgSend_672( + _lib._class_NSTimer1, + _lib._sel_timerWithTimeInterval_invocation_repeats_1, + ti, + invocation._id, + yesOrNo); + return NSTimer._(_ret, _lib, retain: true, release: true); } - NSArray? get veryShortMonthSymbols { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_veryShortMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static NSTimer scheduledTimerWithTimeInterval_invocation_repeats_( + PedometerBindings _lib, + double ti, + NSInvocation invocation, + bool yesOrNo) { + final _ret = _lib._objc_msgSend_672( + _lib._class_NSTimer1, + _lib._sel_scheduledTimerWithTimeInterval_invocation_repeats_1, + ti, + invocation._id, + yesOrNo); + return NSTimer._(_ret, _lib, retain: true, release: true); } - NSArray? get standaloneMonthSymbols { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_standaloneMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static NSTimer timerWithTimeInterval_target_selector_userInfo_repeats_( + PedometerBindings _lib, + double ti, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject? userInfo, + bool yesOrNo) { + final _ret = _lib._objc_msgSend_673( + _lib._class_NSTimer1, + _lib._sel_timerWithTimeInterval_target_selector_userInfo_repeats_1, + ti, + aTarget._id, + aSelector, + userInfo?._id ?? ffi.nullptr, + yesOrNo); + return NSTimer._(_ret, _lib, retain: true, release: true); } - NSArray? get shortStandaloneMonthSymbols { - final _ret = - _lib._objc_msgSend_71(_id, _lib._sel_shortStandaloneMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static NSTimer + scheduledTimerWithTimeInterval_target_selector_userInfo_repeats_( + PedometerBindings _lib, + double ti, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject? userInfo, + bool yesOrNo) { + final _ret = _lib._objc_msgSend_673( + _lib._class_NSTimer1, + _lib._sel_scheduledTimerWithTimeInterval_target_selector_userInfo_repeats_1, + ti, + aTarget._id, + aSelector, + userInfo?._id ?? ffi.nullptr, + yesOrNo); + return NSTimer._(_ret, _lib, retain: true, release: true); } - NSArray? get veryShortStandaloneMonthSymbols { - final _ret = - _lib._objc_msgSend_71(_id, _lib._sel_veryShortStandaloneMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + /// Creates and returns a new NSTimer object initialized with the specified block object. This timer needs to be scheduled on a run loop (via -[NSRunLoop addTimer:]) before it will fire. + /// - parameter: timeInterval The number of seconds between firings of the timer. If seconds is less than or equal to 0.0, this method chooses the nonnegative value of 0.1 milliseconds instead + /// - parameter: repeats If YES, the timer will repeatedly reschedule itself until invalidated. If NO, the timer will be invalidated after it fires. + /// - parameter: block The execution body of the timer; the timer itself is passed as the parameter to this block when executed to aid in avoiding cyclical references + static NSTimer timerWithTimeInterval_repeats_block_(PedometerBindings _lib, + double interval, bool repeats, ObjCBlock_ffiVoid_NSTimer block) { + final _ret = _lib._objc_msgSend_674( + _lib._class_NSTimer1, + _lib._sel_timerWithTimeInterval_repeats_block_1, + interval, + repeats, + block._id); + return NSTimer._(_ret, _lib, retain: true, release: true); } - NSArray? get weekdaySymbols { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_weekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + /// Creates and returns a new NSTimer object initialized with the specified block object and schedules it on the current run loop in the default mode. + /// - parameter: ti The number of seconds between firings of the timer. If seconds is less than or equal to 0.0, this method chooses the nonnegative value of 0.1 milliseconds instead + /// - parameter: repeats If YES, the timer will repeatedly reschedule itself until invalidated. If NO, the timer will be invalidated after it fires. + /// - parameter: block The execution body of the timer; the timer itself is passed as the parameter to this block when executed to aid in avoiding cyclical references + static NSTimer scheduledTimerWithTimeInterval_repeats_block_( + PedometerBindings _lib, + double interval, + bool repeats, + ObjCBlock_ffiVoid_NSTimer block) { + final _ret = _lib._objc_msgSend_674( + _lib._class_NSTimer1, + _lib._sel_scheduledTimerWithTimeInterval_repeats_block_1, + interval, + repeats, + block._id); + return NSTimer._(_ret, _lib, retain: true, release: true); } - NSArray? get shortWeekdaySymbols { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_shortWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + /// Initializes a new NSTimer object using the block as the main body of execution for the timer. This timer needs to be scheduled on a run loop (via -[NSRunLoop addTimer:]) before it will fire. + /// - parameter: fireDate The time at which the timer should first fire. + /// - parameter: interval The number of seconds between firings of the timer. If seconds is less than or equal to 0.0, this method chooses the nonnegative value of 0.1 milliseconds instead + /// - parameter: repeats If YES, the timer will repeatedly reschedule itself until invalidated. If NO, the timer will be invalidated after it fires. + /// - parameter: block The execution body of the timer; the timer itself is passed as the parameter to this block when executed to aid in avoiding cyclical references + NSTimer initWithFireDate_interval_repeats_block_(NSDate date, double interval, + bool repeats, ObjCBlock_ffiVoid_NSTimer block) { + final _ret = _lib._objc_msgSend_675( + _id, + _lib._sel_initWithFireDate_interval_repeats_block_1, + date._id, + interval, + repeats, + block._id); + return NSTimer._(_ret, _lib, retain: true, release: true); } - NSArray? get veryShortWeekdaySymbols { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_veryShortWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSTimer initWithFireDate_interval_target_selector_userInfo_repeats_( + NSDate date, + double ti, + NSObject t, + ffi.Pointer s, + NSObject? ui, + bool rep) { + final _ret = _lib._objc_msgSend_676( + _id, + _lib._sel_initWithFireDate_interval_target_selector_userInfo_repeats_1, + date._id, + ti, + t._id, + s, + ui?._id ?? ffi.nullptr, + rep); + return NSTimer._(_ret, _lib, retain: true, release: true); } - NSArray? get standaloneWeekdaySymbols { - final _ret = - _lib._objc_msgSend_71(_id, _lib._sel_standaloneWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + void fire() { + _lib._objc_msgSend_1(_id, _lib._sel_fire1); } - NSArray? get shortStandaloneWeekdaySymbols { - final _ret = - _lib._objc_msgSend_71(_id, _lib._sel_shortStandaloneWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSDate get fireDate { + final _ret = _lib._objc_msgSend_163(_id, _lib._sel_fireDate1); + return NSDate._(_ret, _lib, retain: true, release: true); } - NSArray? get veryShortStandaloneWeekdaySymbols { - final _ret = _lib._objc_msgSend_71( - _id, _lib._sel_veryShortStandaloneWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + set fireDate(NSDate value) { + return _lib._objc_msgSend_677(_id, _lib._sel_setFireDate_1, value._id); } - NSArray? get quarterSymbols { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_quarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + double get timeInterval { + return _lib._objc_msgSend_156(_id, _lib._sel_timeInterval1); } - NSArray? get shortQuarterSymbols { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_shortQuarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + double get tolerance { + return _lib._objc_msgSend_156(_id, _lib._sel_tolerance1); } - NSArray? get standaloneQuarterSymbols { - final _ret = - _lib._objc_msgSend_71(_id, _lib._sel_standaloneQuarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + set tolerance(double value) { + return _lib._objc_msgSend_490(_id, _lib._sel_setTolerance_1, value); } - NSArray? get shortStandaloneQuarterSymbols { - final _ret = - _lib._objc_msgSend_71(_id, _lib._sel_shortStandaloneQuarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + void invalidate() { + _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); } - NSString? get AMSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_AMSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + bool get valid { + return _lib._objc_msgSend_12(_id, _lib._sel_isValid1); } - NSString? get PMSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_PMSymbol1); + NSObject? get userInfo { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_userInfo1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - _NSRange minimumRangeOfUnit_(int unit) { - return _lib._objc_msgSend_578(_id, _lib._sel_minimumRangeOfUnit_1, unit); + : NSObject._(_ret, _lib, retain: true, release: true); } - _NSRange maximumRangeOfUnit_(int unit) { - return _lib._objc_msgSend_578(_id, _lib._sel_maximumRangeOfUnit_1, unit); + @override + NSTimer init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSTimer._(_ret, _lib, retain: true, release: true); } - _NSRange rangeOfUnit_inUnit_forDate_(int smaller, int larger, NSDate? date) { - return _lib._objc_msgSend_579(_id, _lib._sel_rangeOfUnit_inUnit_forDate_1, - smaller, larger, date?._id ?? ffi.nullptr); + static NSTimer new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSTimer1, _lib._sel_new1); + return NSTimer._(_ret, _lib, retain: false, release: true); } - int ordinalityOfUnit_inUnit_forDate_(int smaller, int larger, NSDate? date) { - return _lib._objc_msgSend_580( - _id, - _lib._sel_ordinalityOfUnit_inUnit_forDate_1, - smaller, - larger, - date?._id ?? ffi.nullptr); + static NSTimer allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSTimer1, _lib._sel_allocWithZone_1, zone); + return NSTimer._(_ret, _lib, retain: false, release: true); } - bool rangeOfUnit_startDate_interval_forDate_( - int unit, - ffi.Pointer> datep, - ffi.Pointer tip, - NSDate? date) { - return _lib._objc_msgSend_581( - _id, - _lib._sel_rangeOfUnit_startDate_interval_forDate_1, - unit, - datep, - tip, - date?._id ?? ffi.nullptr); + static NSTimer alloc(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSTimer1, _lib._sel_alloc1); + return NSTimer._(_ret, _lib, retain: false, release: true); } - NSDate dateFromComponents_(NSDateComponents? comps) { - final _ret = _lib._objc_msgSend_587( - _id, _lib._sel_dateFromComponents_1, comps?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + PedometerBindings _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSTimer1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument?._id ?? ffi.nullptr); } - NSDateComponents components_fromDate_(int unitFlags, NSDate? date) { - final _ret = _lib._objc_msgSend_588(_id, _lib._sel_components_fromDate_1, - unitFlags, date?._id ?? ffi.nullptr); - return NSDateComponents._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_( + PedometerBindings _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSTimer1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - NSDate dateByAddingComponents_toDate_options_( - NSDateComponents? comps, NSDate? date, int opts) { - final _ret = _lib._objc_msgSend_589( - _id, - _lib._sel_dateByAddingComponents_toDate_options_1, - comps?._id ?? ffi.nullptr, - date?._id ?? ffi.nullptr, - opts); - return NSDate._(_ret, _lib, retain: true, release: true); + static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSTimer1, _lib._sel_accessInstanceVariablesDirectly1); } - NSDateComponents components_fromDate_toDate_options_( - int unitFlags, NSDate? startingDate, NSDate? resultDate, int opts) { - final _ret = _lib._objc_msgSend_590( - _id, - _lib._sel_components_fromDate_toDate_options_1, - unitFlags, - startingDate?._id ?? ffi.nullptr, - resultDate?._id ?? ffi.nullptr, - opts); - return NSDateComponents._(_ret, _lib, retain: true, release: true); + static bool useStoredAccessor(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSTimer1, _lib._sel_useStoredAccessor1); } - void getEra_year_month_day_fromDate_( - ffi.Pointer eraValuePointer, - ffi.Pointer yearValuePointer, - ffi.Pointer monthValuePointer, - ffi.Pointer dayValuePointer, - NSDate? date) { - return _lib._objc_msgSend_591( - _id, - _lib._sel_getEra_year_month_day_fromDate_1, - eraValuePointer, - yearValuePointer, - monthValuePointer, - dayValuePointer, - date?._id ?? ffi.nullptr); + static NSSet keyPathsForValuesAffectingValueForKey_( + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSTimer1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); + return NSSet._(_ret, _lib, retain: true, release: true); } - void getEra_yearForWeekOfYear_weekOfYear_weekday_fromDate_( - ffi.Pointer eraValuePointer, - ffi.Pointer yearValuePointer, - ffi.Pointer weekValuePointer, - ffi.Pointer weekdayValuePointer, - NSDate? date) { - return _lib._objc_msgSend_591( - _id, - _lib._sel_getEra_yearForWeekOfYear_weekOfYear_weekday_fromDate_1, - eraValuePointer, - yearValuePointer, - weekValuePointer, - weekdayValuePointer, - date?._id ?? ffi.nullptr); + static bool automaticallyNotifiesObserversForKey_( + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSTimer1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } - void getHour_minute_second_nanosecond_fromDate_( - ffi.Pointer hourValuePointer, - ffi.Pointer minuteValuePointer, - ffi.Pointer secondValuePointer, - ffi.Pointer nanosecondValuePointer, - NSDate? date) { - return _lib._objc_msgSend_591( - _id, - _lib._sel_getHour_minute_second_nanosecond_fromDate_1, - hourValuePointer, - minuteValuePointer, - secondValuePointer, - nanosecondValuePointer, - date?._id ?? ffi.nullptr); + static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77( + _lib._class_NSTimer1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - int component_fromDate_(int unit, NSDate? date) { - return _lib._objc_msgSend_592( - _id, _lib._sel_component_fromDate_1, unit, date?._id ?? ffi.nullptr); + static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSTimer1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - NSDate dateWithEra_year_month_day_hour_minute_second_nanosecond_( - int eraValue, - int yearValue, - int monthValue, - int dayValue, - int hourValue, - int minuteValue, - int secondValue, - int nanosecondValue) { - final _ret = _lib._objc_msgSend_593( - _id, - _lib._sel_dateWithEra_year_month_day_hour_minute_second_nanosecond_1, - eraValue, - yearValue, - monthValue, - dayValue, - hourValue, - minuteValue, - secondValue, - nanosecondValue); - return NSDate._(_ret, _lib, retain: true, release: true); - } +void _ObjCBlock_ffiVoid_NSTimer_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi + .NativeFunction arg0)>>() + .asFunction)>()(arg0); +final _ObjCBlock_ffiVoid_NSTimer_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_NSTimer_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSTimer_registerClosure( + void Function(ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSTimer_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSTimer_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - NSDate - dateWithEra_yearForWeekOfYear_weekOfYear_weekday_hour_minute_second_nanosecond_( - int eraValue, - int yearValue, - int weekValue, - int weekdayValue, - int hourValue, - int minuteValue, - int secondValue, - int nanosecondValue) { - final _ret = _lib._objc_msgSend_593( - _id, - _lib._sel_dateWithEra_yearForWeekOfYear_weekOfYear_weekday_hour_minute_second_nanosecond_1, - eraValue, - yearValue, - weekValue, - weekdayValue, - hourValue, - minuteValue, - secondValue, - nanosecondValue); - return NSDate._(_ret, _lib, retain: true, release: true); - } +void _ObjCBlock_ffiVoid_NSTimer_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + _ObjCBlock_ffiVoid_NSTimer_closureRegistry[block.ref.target.address]!(arg0); - NSDate startOfDayForDate_(NSDate? date) { - final _ret = _lib._objc_msgSend_150( - _id, _lib._sel_startOfDayForDate_1, date?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); - } +class ObjCBlock_ffiVoid_NSTimer extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSTimer._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); - NSDateComponents componentsInTimeZone_fromDate_( - NSTimeZone? timezone, NSDate? date) { - final _ret = _lib._objc_msgSend_594( - _id, - _lib._sel_componentsInTimeZone_fromDate_1, - timezone?._id ?? ffi.nullptr, - date?._id ?? ffi.nullptr); - return NSDateComponents._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSTimer.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi + .NativeFunction arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSTimer_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - int compareDate_toDate_toUnitGranularity_( - NSDate? date1, NSDate? date2, int unit) { - return _lib._objc_msgSend_595( - _id, - _lib._sel_compareDate_toDate_toUnitGranularity_1, - date1?._id ?? ffi.nullptr, - date2?._id ?? ffi.nullptr, - unit); - } + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSTimer.fromFunction( + PedometerBindings lib, void Function(NSTimer) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSTimer_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSTimer_registerClosure( + (ffi.Pointer arg0) => + fn(NSTimer._(arg0, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; - bool isDate_equalToDate_toUnitGranularity_( - NSDate? date1, NSDate? date2, int unit) { - return _lib._objc_msgSend_596( - _id, - _lib._sel_isDate_equalToDate_toUnitGranularity_1, - date1?._id ?? ffi.nullptr, - date2?._id ?? ffi.nullptr, - unit); - } + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSTimer.listener( + PedometerBindings lib, void Function(NSTimer) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSTimer_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSTimer_registerClosure( + (ffi.Pointer arg0) => + fn(NSTimer._(arg0, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>? + _dartFuncListenerTrampoline; - bool isDate_inSameDayAsDate_(NSDate? date1, NSDate? date2) { - return _lib._objc_msgSend_597(_id, _lib._sel_isDate_inSameDayAsDate_1, - date1?._id ?? ffi.nullptr, date2?._id ?? ffi.nullptr); - } + void call(NSTimer arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>()(_id, arg0._id); +} - bool isDateInToday_(NSDate? date) { - return _lib._objc_msgSend_152( - _id, _lib._sel_isDateInToday_1, date?._id ?? ffi.nullptr); - } +class NSPort extends NSObject { + NSPort._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - bool isDateInYesterday_(NSDate? date) { - return _lib._objc_msgSend_152( - _id, _lib._sel_isDateInYesterday_1, date?._id ?? ffi.nullptr); + /// Returns a [NSPort] that points to the same underlying object as [other]. + static NSPort castFrom(T other) { + return NSPort._(other._id, other._lib, retain: true, release: true); } - bool isDateInTomorrow_(NSDate? date) { - return _lib._objc_msgSend_152( - _id, _lib._sel_isDateInTomorrow_1, date?._id ?? ffi.nullptr); + /// Returns a [NSPort] that wraps the given raw object pointer. + static NSPort castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSPort._(other, lib, retain: retain, release: release); } - bool isDateInWeekend_(NSDate? date) { - return _lib._objc_msgSend_152( - _id, _lib._sel_isDateInWeekend_1, date?._id ?? ffi.nullptr); + /// Returns whether [obj] is an instance of [NSPort]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSPort1); } - bool rangeOfWeekendStartDate_interval_containingDate_( - ffi.Pointer> datep, - ffi.Pointer tip, - NSDate? date) { - return _lib._objc_msgSend_598( - _id, - _lib._sel_rangeOfWeekendStartDate_interval_containingDate_1, - datep, - tip, - date?._id ?? ffi.nullptr); + static NSPort port(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_679(_lib._class_NSPort1, _lib._sel_port1); + return NSPort._(_ret, _lib, retain: true, release: true); } - bool nextWeekendStartDate_interval_options_afterDate_( - ffi.Pointer> datep, - ffi.Pointer tip, - int options, - NSDate? date) { - return _lib._objc_msgSend_599( - _id, - _lib._sel_nextWeekendStartDate_interval_options_afterDate_1, - datep, - tip, - options, - date?._id ?? ffi.nullptr); + void invalidate() { + _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); } - NSDateComponents components_fromDateComponents_toDateComponents_options_( - int unitFlags, - NSDateComponents? startingDateComp, - NSDateComponents? resultDateComp, - int options) { - final _ret = _lib._objc_msgSend_600( - _id, - _lib._sel_components_fromDateComponents_toDateComponents_options_1, - unitFlags, - startingDateComp?._id ?? ffi.nullptr, - resultDateComp?._id ?? ffi.nullptr, - options); - return NSDateComponents._(_ret, _lib, retain: true, release: true); + bool get valid { + return _lib._objc_msgSend_12(_id, _lib._sel_isValid1); } - NSDate dateByAddingUnit_value_toDate_options_( - int unit, int value, NSDate? date, int options) { - final _ret = _lib._objc_msgSend_601( - _id, - _lib._sel_dateByAddingUnit_value_toDate_options_1, - unit, - value, - date?._id ?? ffi.nullptr, - options); - return NSDate._(_ret, _lib, retain: true, release: true); + void setDelegate_(NSObject? anObject) { + _lib._objc_msgSend_230( + _id, _lib._sel_setDelegate_1, anObject?._id ?? ffi.nullptr); } - void enumerateDatesStartingAfterDate_matchingComponents_options_usingBlock_( - NSDate? start, NSDateComponents? comps, int opts, ObjCBlock33 block) { - return _lib._objc_msgSend_602( - _id, - _lib._sel_enumerateDatesStartingAfterDate_matchingComponents_options_usingBlock_1, - start?._id ?? ffi.nullptr, - comps?._id ?? ffi.nullptr, - opts, - block._id); + NSObject? delegate() { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_delegate1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSDate nextDateAfterDate_matchingComponents_options_( - NSDate? date, NSDateComponents? comps, int options) { - final _ret = _lib._objc_msgSend_603( - _id, - _lib._sel_nextDateAfterDate_matchingComponents_options_1, - date?._id ?? ffi.nullptr, - comps?._id ?? ffi.nullptr, - options); - return NSDate._(_ret, _lib, retain: true, release: true); + void scheduleInRunLoop_forMode_(NSRunLoop runLoop, NSString mode) { + _lib._objc_msgSend_680( + _id, _lib._sel_scheduleInRunLoop_forMode_1, runLoop._id, mode._id); } - NSDate nextDateAfterDate_matchingUnit_value_options_( - NSDate? date, int unit, int value, int options) { - final _ret = _lib._objc_msgSend_604( - _id, - _lib._sel_nextDateAfterDate_matchingUnit_value_options_1, - date?._id ?? ffi.nullptr, - unit, - value, - options); - return NSDate._(_ret, _lib, retain: true, release: true); + void removeFromRunLoop_forMode_(NSRunLoop runLoop, NSString mode) { + _lib._objc_msgSend_680( + _id, _lib._sel_removeFromRunLoop_forMode_1, runLoop._id, mode._id); } - NSDate nextDateAfterDate_matchingHour_minute_second_options_(NSDate? date, - int hourValue, int minuteValue, int secondValue, int options) { - final _ret = _lib._objc_msgSend_605( - _id, - _lib._sel_nextDateAfterDate_matchingHour_minute_second_options_1, - date?._id ?? ffi.nullptr, - hourValue, - minuteValue, - secondValue, - options); - return NSDate._(_ret, _lib, retain: true, release: true); + int get reservedSpaceLength { + return _lib._objc_msgSend_10(_id, _lib._sel_reservedSpaceLength1); } - NSDate dateBySettingUnit_value_ofDate_options_( - int unit, int v, NSDate? date, int opts) { - final _ret = _lib._objc_msgSend_601( + bool sendBeforeDate_components_from_reserved_( + NSDate limitDate, + NSMutableArray? components, + NSPort? receivePort, + int headerSpaceReserved) { + return _lib._objc_msgSend_681( _id, - _lib._sel_dateBySettingUnit_value_ofDate_options_1, - unit, - v, - date?._id ?? ffi.nullptr, - opts); - return NSDate._(_ret, _lib, retain: true, release: true); + _lib._sel_sendBeforeDate_components_from_reserved_1, + limitDate._id, + components?._id ?? ffi.nullptr, + receivePort?._id ?? ffi.nullptr, + headerSpaceReserved); } - NSDate dateBySettingHour_minute_second_ofDate_options_( - int h, int m, int s, NSDate? date, int opts) { - final _ret = _lib._objc_msgSend_606( + bool sendBeforeDate_msgid_components_from_reserved_( + NSDate limitDate, + int msgID, + NSMutableArray? components, + NSPort? receivePort, + int headerSpaceReserved) { + return _lib._objc_msgSend_682( _id, - _lib._sel_dateBySettingHour_minute_second_ofDate_options_1, - h, - m, - s, - date?._id ?? ffi.nullptr, - opts); - return NSDate._(_ret, _lib, retain: true, release: true); + _lib._sel_sendBeforeDate_msgid_components_from_reserved_1, + limitDate._id, + msgID, + components?._id ?? ffi.nullptr, + receivePort?._id ?? ffi.nullptr, + headerSpaceReserved); } - bool date_matchesComponents_(NSDate? date, NSDateComponents? components) { - return _lib._objc_msgSend_607(_id, _lib._sel_date_matchesComponents_1, - date?._id ?? ffi.nullptr, components?._id ?? ffi.nullptr); + @override + NSPort init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSPort._(_ret, _lib, retain: true, release: true); } - static NSCalendar new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSCalendar1, _lib._sel_new1); - return NSCalendar._(_ret, _lib, retain: false, release: true); + static NSPort new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSPort1, _lib._sel_new1); + return NSPort._(_ret, _lib, retain: false, release: true); } - static NSCalendar alloc(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSCalendar1, _lib._sel_alloc1); - return NSCalendar._(_ret, _lib, retain: false, release: true); + static NSPort allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSPort1, _lib._sel_allocWithZone_1, zone); + return NSPort._(_ret, _lib, retain: false, release: true); + } + + static NSPort alloc(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSPort1, _lib._sel_alloc1); + return NSPort._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSCalendar1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSPort1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSCalendar1, + _lib._objc_msgSend_15(_lib._class_NSPort1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSCalendar1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSPort1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSCalendar1, _lib._sel_useStoredAccessor1); + _lib._class_NSPort1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSCalendar1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSPort1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSCalendar1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSCalendar1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSPort1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSCalendar1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_NSPort1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSCalendar1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSPort1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSCalendarUnit { - static const int NSCalendarUnitEra = 2; - static const int NSCalendarUnitYear = 4; - static const int NSCalendarUnitMonth = 8; - static const int NSCalendarUnitDay = 16; - static const int NSCalendarUnitHour = 32; - static const int NSCalendarUnitMinute = 64; - static const int NSCalendarUnitSecond = 128; - static const int NSCalendarUnitWeekday = 512; - static const int NSCalendarUnitWeekdayOrdinal = 1024; - static const int NSCalendarUnitQuarter = 2048; - static const int NSCalendarUnitWeekOfMonth = 4096; - static const int NSCalendarUnitWeekOfYear = 8192; - static const int NSCalendarUnitYearForWeekOfYear = 16384; - static const int NSCalendarUnitNanosecond = 32768; - static const int NSCalendarUnitCalendar = 1048576; - static const int NSCalendarUnitTimeZone = 2097152; - static const int NSEraCalendarUnit = 2; - static const int NSYearCalendarUnit = 4; - static const int NSMonthCalendarUnit = 8; - static const int NSDayCalendarUnit = 16; - static const int NSHourCalendarUnit = 32; - static const int NSMinuteCalendarUnit = 64; - static const int NSSecondCalendarUnit = 128; - static const int NSWeekCalendarUnit = 256; - static const int NSWeekdayCalendarUnit = 512; - static const int NSWeekdayOrdinalCalendarUnit = 1024; - static const int NSQuarterCalendarUnit = 2048; - static const int NSWeekOfMonthCalendarUnit = 4096; - static const int NSWeekOfYearCalendarUnit = 8192; - static const int NSYearForWeekOfYearCalendarUnit = 16384; - static const int NSCalendarCalendarUnit = 1048576; - static const int NSTimeZoneCalendarUnit = 2097152; -} - -class NSDateComponents extends NSObject { - NSDateComponents._(ffi.Pointer id, PedometerBindings lib, +class NSFileHandle extends NSObject { + NSFileHandle._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSDateComponents] that points to the same underlying object as [other]. - static NSDateComponents castFrom(T other) { - return NSDateComponents._(other._id, other._lib, - retain: true, release: true); + /// Returns a [NSFileHandle] that points to the same underlying object as [other]. + static NSFileHandle castFrom(T other) { + return NSFileHandle._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSDateComponents] that wraps the given raw object pointer. - static NSDateComponents castFromPointer( + /// Returns a [NSFileHandle] that wraps the given raw object pointer. + static NSFileHandle castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSDateComponents._(other, lib, retain: retain, release: release); + return NSFileHandle._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSDateComponents]. + /// Returns whether [obj] is an instance of [NSFileHandle]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSDateComponents1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSFileHandle1); } - NSCalendar? get calendar { - final _ret = _lib._objc_msgSend_576(_id, _lib._sel_calendar1); + NSData get availableData { + final _ret = _lib._objc_msgSend_43(_id, _lib._sel_availableData1); + return NSData._(_ret, _lib, retain: true, release: true); + } + + NSFileHandle initWithFileDescriptor_closeOnDealloc_(int fd, bool closeopt) { + final _ret = _lib._objc_msgSend_688( + _id, _lib._sel_initWithFileDescriptor_closeOnDealloc_1, fd, closeopt); + return NSFileHandle._(_ret, _lib, retain: true, release: true); + } + + NSFileHandle? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); return _ret.address == 0 ? null - : NSCalendar._(_ret, _lib, retain: true, release: true); + : NSFileHandle._(_ret, _lib, retain: true, release: true); } - set calendar(NSCalendar? value) { - _lib._objc_msgSend_582( - _id, _lib._sel_setCalendar_1, value?._id ?? ffi.nullptr); + NSData? readDataToEndOfFileAndReturnError_( + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_689( + _id, _lib._sel_readDataToEndOfFileAndReturnError_1, error); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - NSTimeZone? get timeZone { - final _ret = _lib._objc_msgSend_569(_id, _lib._sel_timeZone1); + NSData? readDataUpToLength_error_( + int length, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_690( + _id, _lib._sel_readDataUpToLength_error_1, length, error); return _ret.address == 0 ? null - : NSTimeZone._(_ret, _lib, retain: true, release: true); + : NSData._(_ret, _lib, retain: true, release: true); } - set timeZone(NSTimeZone? value) { - _lib._objc_msgSend_570( - _id, _lib._sel_setTimeZone_1, value?._id ?? ffi.nullptr); + bool writeData_error_( + NSData data, ffi.Pointer> error) { + return _lib._objc_msgSend_691( + _id, _lib._sel_writeData_error_1, data._id, error); } - int get era { - return _lib._objc_msgSend_70(_id, _lib._sel_era1); + bool getOffset_error_(ffi.Pointer offsetInFile, + ffi.Pointer> error) { + return _lib._objc_msgSend_692( + _id, _lib._sel_getOffset_error_1, offsetInFile, error); } - set era(int value) { - _lib._objc_msgSend_583(_id, _lib._sel_setEra_1, value); + bool seekToEndReturningOffset_error_( + ffi.Pointer offsetInFile, + ffi.Pointer> error) { + return _lib._objc_msgSend_692( + _id, _lib._sel_seekToEndReturningOffset_error_1, offsetInFile, error); } - int get year { - return _lib._objc_msgSend_70(_id, _lib._sel_year1); + bool seekToOffset_error_( + int offset, ffi.Pointer> error) { + return _lib._objc_msgSend_693( + _id, _lib._sel_seekToOffset_error_1, offset, error); } - set year(int value) { - _lib._objc_msgSend_583(_id, _lib._sel_setYear_1, value); + bool truncateAtOffset_error_( + int offset, ffi.Pointer> error) { + return _lib._objc_msgSend_693( + _id, _lib._sel_truncateAtOffset_error_1, offset, error); } - int get month { - return _lib._objc_msgSend_70(_id, _lib._sel_month1); + bool synchronizeAndReturnError_(ffi.Pointer> error) { + return _lib._objc_msgSend_194( + _id, _lib._sel_synchronizeAndReturnError_1, error); } - set month(int value) { - _lib._objc_msgSend_583(_id, _lib._sel_setMonth_1, value); + bool closeAndReturnError_(ffi.Pointer> error) { + return _lib._objc_msgSend_194(_id, _lib._sel_closeAndReturnError_1, error); } - int get day { - return _lib._objc_msgSend_70(_id, _lib._sel_day1); + static NSFileHandle getFileHandleWithStandardInput(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_694( + _lib._class_NSFileHandle1, _lib._sel_fileHandleWithStandardInput1); + return NSFileHandle._(_ret, _lib, retain: true, release: true); } - set day(int value) { - _lib._objc_msgSend_583(_id, _lib._sel_setDay_1, value); + static NSFileHandle getFileHandleWithStandardOutput(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_694( + _lib._class_NSFileHandle1, _lib._sel_fileHandleWithStandardOutput1); + return NSFileHandle._(_ret, _lib, retain: true, release: true); } - int get hour { - return _lib._objc_msgSend_70(_id, _lib._sel_hour1); + static NSFileHandle getFileHandleWithStandardError(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_694( + _lib._class_NSFileHandle1, _lib._sel_fileHandleWithStandardError1); + return NSFileHandle._(_ret, _lib, retain: true, release: true); } - set hour(int value) { - _lib._objc_msgSend_583(_id, _lib._sel_setHour_1, value); + static NSFileHandle getFileHandleWithNullDevice(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_694( + _lib._class_NSFileHandle1, _lib._sel_fileHandleWithNullDevice1); + return NSFileHandle._(_ret, _lib, retain: true, release: true); } - int get minute { - return _lib._objc_msgSend_70(_id, _lib._sel_minute1); + static NSFileHandle? fileHandleForReadingAtPath_( + PedometerBindings _lib, NSString path) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSFileHandle1, + _lib._sel_fileHandleForReadingAtPath_1, path._id); + return _ret.address == 0 + ? null + : NSFileHandle._(_ret, _lib, retain: true, release: true); } - set minute(int value) { - _lib._objc_msgSend_583(_id, _lib._sel_setMinute_1, value); + static NSFileHandle? fileHandleForWritingAtPath_( + PedometerBindings _lib, NSString path) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSFileHandle1, + _lib._sel_fileHandleForWritingAtPath_1, path._id); + return _ret.address == 0 + ? null + : NSFileHandle._(_ret, _lib, retain: true, release: true); } - int get second { - return _lib._objc_msgSend_70(_id, _lib._sel_second1); + static NSFileHandle? fileHandleForUpdatingAtPath_( + PedometerBindings _lib, NSString path) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSFileHandle1, + _lib._sel_fileHandleForUpdatingAtPath_1, path._id); + return _ret.address == 0 + ? null + : NSFileHandle._(_ret, _lib, retain: true, release: true); } - set second(int value) { - _lib._objc_msgSend_583(_id, _lib._sel_setSecond_1, value); + static NSFileHandle? fileHandleForReadingFromURL_error_( + PedometerBindings _lib, + NSURL url, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_695(_lib._class_NSFileHandle1, + _lib._sel_fileHandleForReadingFromURL_error_1, url._id, error); + return _ret.address == 0 + ? null + : NSFileHandle._(_ret, _lib, retain: true, release: true); } - int get nanosecond { - return _lib._objc_msgSend_70(_id, _lib._sel_nanosecond1); + static NSFileHandle? fileHandleForWritingToURL_error_(PedometerBindings _lib, + NSURL url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_695(_lib._class_NSFileHandle1, + _lib._sel_fileHandleForWritingToURL_error_1, url._id, error); + return _ret.address == 0 + ? null + : NSFileHandle._(_ret, _lib, retain: true, release: true); } - set nanosecond(int value) { - _lib._objc_msgSend_583(_id, _lib._sel_setNanosecond_1, value); + static NSFileHandle? fileHandleForUpdatingURL_error_(PedometerBindings _lib, + NSURL url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_695(_lib._class_NSFileHandle1, + _lib._sel_fileHandleForUpdatingURL_error_1, url._id, error); + return _ret.address == 0 + ? null + : NSFileHandle._(_ret, _lib, retain: true, release: true); } - int get weekday { - return _lib._objc_msgSend_70(_id, _lib._sel_weekday1); + void readInBackgroundAndNotifyForModes_(NSArray? modes) { + _lib._objc_msgSend_696(_id, _lib._sel_readInBackgroundAndNotifyForModes_1, + modes?._id ?? ffi.nullptr); } - set weekday(int value) { - _lib._objc_msgSend_583(_id, _lib._sel_setWeekday_1, value); + void readInBackgroundAndNotify() { + _lib._objc_msgSend_1(_id, _lib._sel_readInBackgroundAndNotify1); } - int get weekdayOrdinal { - return _lib._objc_msgSend_70(_id, _lib._sel_weekdayOrdinal1); + void readToEndOfFileInBackgroundAndNotifyForModes_(NSArray? modes) { + _lib._objc_msgSend_696( + _id, + _lib._sel_readToEndOfFileInBackgroundAndNotifyForModes_1, + modes?._id ?? ffi.nullptr); } - set weekdayOrdinal(int value) { - _lib._objc_msgSend_583(_id, _lib._sel_setWeekdayOrdinal_1, value); + void readToEndOfFileInBackgroundAndNotify() { + _lib._objc_msgSend_1(_id, _lib._sel_readToEndOfFileInBackgroundAndNotify1); } - int get quarter { - return _lib._objc_msgSend_70(_id, _lib._sel_quarter1); + void acceptConnectionInBackgroundAndNotifyForModes_(NSArray? modes) { + _lib._objc_msgSend_696( + _id, + _lib._sel_acceptConnectionInBackgroundAndNotifyForModes_1, + modes?._id ?? ffi.nullptr); } - set quarter(int value) { - _lib._objc_msgSend_583(_id, _lib._sel_setQuarter_1, value); + void acceptConnectionInBackgroundAndNotify() { + _lib._objc_msgSend_1(_id, _lib._sel_acceptConnectionInBackgroundAndNotify1); } - int get weekOfMonth { - return _lib._objc_msgSend_70(_id, _lib._sel_weekOfMonth1); + void waitForDataInBackgroundAndNotifyForModes_(NSArray? modes) { + _lib._objc_msgSend_696( + _id, + _lib._sel_waitForDataInBackgroundAndNotifyForModes_1, + modes?._id ?? ffi.nullptr); } - set weekOfMonth(int value) { - _lib._objc_msgSend_583(_id, _lib._sel_setWeekOfMonth_1, value); + void waitForDataInBackgroundAndNotify() { + _lib._objc_msgSend_1(_id, _lib._sel_waitForDataInBackgroundAndNotify1); } - int get weekOfYear { - return _lib._objc_msgSend_70(_id, _lib._sel_weekOfYear1); + ObjCBlock_ffiVoid_NSFileHandle? get readabilityHandler { + final _ret = _lib._objc_msgSend_697(_id, _lib._sel_readabilityHandler1); + return _ret.address == 0 + ? null + : ObjCBlock_ffiVoid_NSFileHandle._(_ret, _lib, + retain: true, release: true); } - set weekOfYear(int value) { - _lib._objc_msgSend_583(_id, _lib._sel_setWeekOfYear_1, value); + set readabilityHandler(ObjCBlock_ffiVoid_NSFileHandle? value) { + return _lib._objc_msgSend_698( + _id, _lib._sel_setReadabilityHandler_1, value?._id ?? ffi.nullptr); } - int get yearForWeekOfYear { - return _lib._objc_msgSend_70(_id, _lib._sel_yearForWeekOfYear1); + ObjCBlock_ffiVoid_NSFileHandle? get writeabilityHandler { + final _ret = _lib._objc_msgSend_697(_id, _lib._sel_writeabilityHandler1); + return _ret.address == 0 + ? null + : ObjCBlock_ffiVoid_NSFileHandle._(_ret, _lib, + retain: true, release: true); } - set yearForWeekOfYear(int value) { - _lib._objc_msgSend_583(_id, _lib._sel_setYearForWeekOfYear_1, value); + set writeabilityHandler(ObjCBlock_ffiVoid_NSFileHandle? value) { + return _lib._objc_msgSend_698( + _id, _lib._sel_setWriteabilityHandler_1, value?._id ?? ffi.nullptr); } - bool get leapMonth { - return _lib._objc_msgSend_12(_id, _lib._sel_isLeapMonth1); + NSFileHandle initWithFileDescriptor_(int fd) { + final _ret = + _lib._objc_msgSend_699(_id, _lib._sel_initWithFileDescriptor_1, fd); + return NSFileHandle._(_ret, _lib, retain: true, release: true); } - set leapMonth(bool value) { - _lib._objc_msgSend_453(_id, _lib._sel_setLeapMonth_1, value); + int get fileDescriptor { + return _lib._objc_msgSend_188(_id, _lib._sel_fileDescriptor1); } - NSDate? get date { - final _ret = _lib._objc_msgSend_154(_id, _lib._sel_date1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + NSData readDataToEndOfFile() { + final _ret = _lib._objc_msgSend_43(_id, _lib._sel_readDataToEndOfFile1); + return NSData._(_ret, _lib, retain: true, release: true); } - int week() { - return _lib._objc_msgSend_70(_id, _lib._sel_week1); + NSData readDataOfLength_(int length) { + final _ret = + _lib._objc_msgSend_700(_id, _lib._sel_readDataOfLength_1, length); + return NSData._(_ret, _lib, retain: true, release: true); } - void setWeek_(int v) { - return _lib._objc_msgSend_355(_id, _lib._sel_setWeek_1, v); + void writeData_(NSData data) { + _lib._objc_msgSend_226(_id, _lib._sel_writeData_1, data._id); } - void setValue_forComponent_(int value, int unit) { - return _lib._objc_msgSend_584( - _id, _lib._sel_setValue_forComponent_1, value, unit); + int get offsetInFile { + return _lib._objc_msgSend_155(_id, _lib._sel_offsetInFile1); } - int valueForComponent_(int unit) { - return _lib._objc_msgSend_585(_id, _lib._sel_valueForComponent_1, unit); + int seekToEndOfFile() { + return _lib._objc_msgSend_155(_id, _lib._sel_seekToEndOfFile1); } - bool get validDate { - return _lib._objc_msgSend_12(_id, _lib._sel_isValidDate1); + void seekToFileOffset_(int offset) { + _lib._objc_msgSend_701(_id, _lib._sel_seekToFileOffset_1, offset); } - bool isValidDateInCalendar_(NSCalendar? calendar) { - return _lib._objc_msgSend_586( - _id, _lib._sel_isValidDateInCalendar_1, calendar?._id ?? ffi.nullptr); + void truncateFileAtOffset_(int offset) { + _lib._objc_msgSend_701(_id, _lib._sel_truncateFileAtOffset_1, offset); } - static NSDateComponents new1(PedometerBindings _lib) { + void synchronizeFile() { + _lib._objc_msgSend_1(_id, _lib._sel_synchronizeFile1); + } + + void closeFile() { + _lib._objc_msgSend_1(_id, _lib._sel_closeFile1); + } + + @override + NSFileHandle init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSFileHandle._(_ret, _lib, retain: true, release: true); + } + + static NSFileHandle new1(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSDateComponents1, _lib._sel_new1); - return NSDateComponents._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSFileHandle1, _lib._sel_new1); + return NSFileHandle._(_ret, _lib, retain: false, release: true); } - static NSDateComponents alloc(PedometerBindings _lib) { + static NSFileHandle allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSFileHandle1, _lib._sel_allocWithZone_1, zone); + return NSFileHandle._(_ret, _lib, retain: false, release: true); + } + + static NSFileHandle alloc(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSDateComponents1, _lib._sel_alloc1); - return NSDateComponents._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSFileHandle1, _lib._sel_alloc1); + return NSFileHandle._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSDateComponents1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSFileHandle1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSDateComponents1, + _lib._objc_msgSend_15(_lib._class_NSFileHandle1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSDateComponents1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSFileHandle1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSDateComponents1, _lib._sel_useStoredAccessor1); + _lib._class_NSFileHandle1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSDateComponents1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSFileHandle1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSDateComponents1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSDateComponents1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSFileHandle1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71(_lib._class_NSDateComponents1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_NSFileHandle1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSDateComponents1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSFileHandle1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSCalendarOptions { - static const int NSCalendarWrapComponents = 1; - static const int NSCalendarMatchStrictly = 2; - static const int NSCalendarSearchBackwards = 4; - static const int NSCalendarMatchPreviousTimePreservingSmallerUnits = 256; - static const int NSCalendarMatchNextTimePreservingSmallerUnits = 512; - static const int NSCalendarMatchNextTime = 1024; - static const int NSCalendarMatchFirst = 4096; - static const int NSCalendarMatchLast = 8192; -} - -void _ObjCBlock33_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, bool arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock33_closureRegistry = {}; -int _ObjCBlock33_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock33_registerClosure(Function fn) { - final id = ++_ObjCBlock33_closureRegistryIndex; - _ObjCBlock33_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSFileHandle_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi + .NativeFunction arg0)>>() + .asFunction)>()(arg0); +final _ObjCBlock_ffiVoid_NSFileHandle_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_NSFileHandle_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSFileHandle_registerClosure( + void Function(ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSFileHandle_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSFileHandle_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock33_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return _ObjCBlock33_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} +void _ObjCBlock_ffiVoid_NSFileHandle_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + _ObjCBlock_ffiVoid_NSFileHandle_closureRegistry[block.ref.target.address]!( + arg0); -class ObjCBlock33 extends _ObjCBlockBase { - ObjCBlock33._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSFileHandle extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSFileHandle._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock33.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSFileHandle.fromFunctionPointer( PedometerBindings lib, ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, - ffi.Pointer arg2)>> + ffi + .NativeFunction arg0)>> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>( - _ObjCBlock33_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSFileHandle_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock33.fromFunction( - PedometerBindings lib, - void Function(ffi.Pointer arg0, bool arg1, - ffi.Pointer arg2) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSFileHandle.fromFunction( + PedometerBindings lib, void Function(NSFileHandle) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>( - _ObjCBlock33_closureTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSFileHandle_closureTrampoline) .cast(), - _ObjCBlock33_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSFileHandle_registerClosure( + (ffi.Pointer arg0) => fn(NSFileHandle._( + arg0, lib, + retain: true, release: true)))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call( - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } - ffi.Pointer<_ObjCBlock> get pointer => _id; + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSFileHandle.listener( + PedometerBindings lib, void Function(NSFileHandle) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSFileHandle_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSFileHandle_registerClosure( + (ffi.Pointer arg0) => fn(NSFileHandle._( + arg0, lib, + retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>? + _dartFuncListenerTrampoline; + + void call(NSFileHandle arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>()(_id, arg0._id); } -class NSNumberFormatter extends NSFormatter { - NSNumberFormatter._(ffi.Pointer id, PedometerBindings lib, +/// ! +/// @class NSHTTPCookieStorage +/// @discussion NSHTTPCookieStorage implements a singleton object (shared +/// instance) which manages the shared cookie store. It has methods +/// to allow clients to set and remove cookies, and get the current +/// set of cookies. It also has convenience methods to parse and +/// generate cookie-related HTTP header fields. +class NSHTTPCookieStorage extends NSObject { + NSHTTPCookieStorage._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSNumberFormatter] that points to the same underlying object as [other]. - static NSNumberFormatter castFrom(T other) { - return NSNumberFormatter._(other._id, other._lib, + /// Returns a [NSHTTPCookieStorage] that points to the same underlying object as [other]. + static NSHTTPCookieStorage castFrom(T other) { + return NSHTTPCookieStorage._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSNumberFormatter] that wraps the given raw object pointer. - static NSNumberFormatter castFromPointer( + /// Returns a [NSHTTPCookieStorage] that wraps the given raw object pointer. + static NSHTTPCookieStorage castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSNumberFormatter._(other, lib, retain: retain, release: release); + return NSHTTPCookieStorage._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSNumberFormatter]. + /// Returns whether [obj] is an instance of [NSHTTPCookieStorage]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSNumberFormatter1); - } - - int get formattingContext { - return _lib._objc_msgSend_556(_id, _lib._sel_formattingContext1); - } - - set formattingContext(int value) { - _lib._objc_msgSend_557(_id, _lib._sel_setFormattingContext_1, value); - } - - bool getObjectValue_forString_range_error_( - ffi.Pointer> obj, - NSString? string, - ffi.Pointer<_NSRange> rangep, - ffi.Pointer> error) { - return _lib._objc_msgSend_558( - _id, - _lib._sel_getObjectValue_forString_range_error_1, - obj, - string?._id ?? ffi.nullptr, - rangep, - error); - } - - NSString stringFromNumber_(NSNumber? number) { - final _ret = _lib._objc_msgSend_610( - _id, _lib._sel_stringFromNumber_1, number?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSNumber numberFromString_(NSString? string) { - final _ret = _lib._objc_msgSend_611( - _id, _lib._sel_numberFromString_1, string?._id ?? ffi.nullptr); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSString localizedStringFromNumber_numberStyle_( - PedometerBindings _lib, NSNumber? num, int nstyle) { - final _ret = _lib._objc_msgSend_612( - _lib._class_NSNumberFormatter1, - _lib._sel_localizedStringFromNumber_numberStyle_1, - num?._id ?? ffi.nullptr, - nstyle); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static int defaultFormatterBehavior(PedometerBindings _lib) { - return _lib._objc_msgSend_613( - _lib._class_NSNumberFormatter1, _lib._sel_defaultFormatterBehavior1); - } - - static void setDefaultFormatterBehavior_( - PedometerBindings _lib, int behavior) { - return _lib._objc_msgSend_614(_lib._class_NSNumberFormatter1, - _lib._sel_setDefaultFormatterBehavior_1, behavior); - } - - int get numberStyle { - return _lib._objc_msgSend_615(_id, _lib._sel_numberStyle1); - } - - set numberStyle(int value) { - _lib._objc_msgSend_616(_id, _lib._sel_setNumberStyle_1, value); - } - - NSLocale? get locale { - final _ret = _lib._objc_msgSend_273(_id, _lib._sel_locale1); - return _ret.address == 0 - ? null - : NSLocale._(_ret, _lib, retain: true, release: true); - } - - set locale(NSLocale? value) { - _lib._objc_msgSend_567( - _id, _lib._sel_setLocale_1, value?._id ?? ffi.nullptr); - } - - bool get generatesDecimalNumbers { - return _lib._objc_msgSend_12(_id, _lib._sel_generatesDecimalNumbers1); - } - - set generatesDecimalNumbers(bool value) { - _lib._objc_msgSend_453(_id, _lib._sel_setGeneratesDecimalNumbers_1, value); - } - - int get formatterBehavior { - return _lib._objc_msgSend_613(_id, _lib._sel_formatterBehavior1); - } - - set formatterBehavior(int value) { - _lib._objc_msgSend_617(_id, _lib._sel_setFormatterBehavior_1, value); - } - - NSString? get negativeFormat { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_negativeFormat1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set negativeFormat(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setNegativeFormat_1, value?._id ?? ffi.nullptr); - } - - NSDictionary? get textAttributesForNegativeValues { - final _ret = - _lib._objc_msgSend_324(_id, _lib._sel_textAttributesForNegativeValues1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - set textAttributesForNegativeValues(NSDictionary? value) { - _lib._objc_msgSend_571(_id, _lib._sel_setTextAttributesForNegativeValues_1, - value?._id ?? ffi.nullptr); - } - - NSString? get positiveFormat { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_positiveFormat1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set positiveFormat(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setPositiveFormat_1, value?._id ?? ffi.nullptr); - } - - NSDictionary? get textAttributesForPositiveValues { - final _ret = - _lib._objc_msgSend_324(_id, _lib._sel_textAttributesForPositiveValues1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - set textAttributesForPositiveValues(NSDictionary? value) { - _lib._objc_msgSend_571(_id, _lib._sel_setTextAttributesForPositiveValues_1, - value?._id ?? ffi.nullptr); - } - - bool get allowsFloats { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsFloats1); - } - - set allowsFloats(bool value) { - _lib._objc_msgSend_453(_id, _lib._sel_setAllowsFloats_1, value); - } - - NSString? get decimalSeparator { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_decimalSeparator1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set decimalSeparator(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setDecimalSeparator_1, value?._id ?? ffi.nullptr); - } - - bool get alwaysShowsDecimalSeparator { - return _lib._objc_msgSend_12(_id, _lib._sel_alwaysShowsDecimalSeparator1); - } - - set alwaysShowsDecimalSeparator(bool value) { - _lib._objc_msgSend_453( - _id, _lib._sel_setAlwaysShowsDecimalSeparator_1, value); - } - - NSString? get currencyDecimalSeparator { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_currencyDecimalSeparator1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set currencyDecimalSeparator(NSString? value) { - _lib._objc_msgSend_470(_id, _lib._sel_setCurrencyDecimalSeparator_1, - value?._id ?? ffi.nullptr); - } - - bool get usesGroupingSeparator { - return _lib._objc_msgSend_12(_id, _lib._sel_usesGroupingSeparator1); - } - - set usesGroupingSeparator(bool value) { - _lib._objc_msgSend_453(_id, _lib._sel_setUsesGroupingSeparator_1, value); - } - - NSString? get groupingSeparator { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_groupingSeparator1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set groupingSeparator(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setGroupingSeparator_1, value?._id ?? ffi.nullptr); - } - - NSString? get zeroSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_zeroSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set zeroSymbol(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setZeroSymbol_1, value?._id ?? ffi.nullptr); - } - - NSDictionary? get textAttributesForZero { - final _ret = _lib._objc_msgSend_324(_id, _lib._sel_textAttributesForZero1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - set textAttributesForZero(NSDictionary? value) { - _lib._objc_msgSend_571( - _id, _lib._sel_setTextAttributesForZero_1, value?._id ?? ffi.nullptr); + obj._lib._class_NSHTTPCookieStorage1); } - NSString? get nilSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_nilSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + /// ! + /// @property sharedHTTPCookieStorage + /// @abstract Get the shared cookie storage in the default location. + /// @result The shared cookie storage + /// @discussion Starting in OS X 10.11, each app has its own sharedHTTPCookieStorage singleton, + /// which will not be shared with other applications. + static NSHTTPCookieStorage getSharedHTTPCookieStorage( + PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_702( + _lib._class_NSHTTPCookieStorage1, _lib._sel_sharedHTTPCookieStorage1); + return NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); } - set nilSymbol(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setNilSymbol_1, value?._id ?? ffi.nullptr); + /// ! + /// @method sharedCookieStorageForGroupContainerIdentifier: + /// @abstract Get the cookie storage for the container associated with the specified application group identifier + /// @param identifier The application group identifier + /// @result A cookie storage with a persistent store in the application group container + /// @discussion By default, applications and associated app extensions have different data containers, which means + /// that the sharedHTTPCookieStorage singleton will refer to different persistent cookie stores in an application and + /// any app extensions that it contains. This method allows clients to create a persistent cookie storage that can be + /// shared among all applications and extensions with access to the same application group. Subsequent calls to this + /// method with the same identifier will return the same cookie storage instance. + static NSHTTPCookieStorage sharedCookieStorageForGroupContainerIdentifier_( + PedometerBindings _lib, NSString identifier) { + final _ret = _lib._objc_msgSend_703( + _lib._class_NSHTTPCookieStorage1, + _lib._sel_sharedCookieStorageForGroupContainerIdentifier_1, + identifier._id); + return NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); } - NSDictionary? get textAttributesForNil { - final _ret = _lib._objc_msgSend_324(_id, _lib._sel_textAttributesForNil1); + /// ! + /// @abstract Get all the cookies + /// @result An NSArray of NSHTTPCookies + NSArray? get cookies { + final _ret = _lib._objc_msgSend_76(_id, _lib._sel_cookies1); return _ret.address == 0 ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + : NSArray._(_ret, _lib, retain: true, release: true); } - set textAttributesForNil(NSDictionary? value) { - _lib._objc_msgSend_571( - _id, _lib._sel_setTextAttributesForNil_1, value?._id ?? ffi.nullptr); + /// ! + /// @method setCookie: + /// @abstract Set a cookie + /// @discussion The cookie will override an existing cookie with the + /// same name, domain and path, if any. + void setCookie_(NSHTTPCookie cookie) { + _lib._objc_msgSend_707(_id, _lib._sel_setCookie_1, cookie._id); } - NSString? get notANumberSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_notANumberSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + /// ! + /// @method deleteCookie: + /// @abstract Delete the specified cookie + void deleteCookie_(NSHTTPCookie cookie) { + _lib._objc_msgSend_707(_id, _lib._sel_deleteCookie_1, cookie._id); } - set notANumberSymbol(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setNotANumberSymbol_1, value?._id ?? ffi.nullptr); + /// ! + /// @method removeCookiesSince: + /// @abstract Delete all cookies from the cookie storage since the provided date. + void removeCookiesSinceDate_(NSDate date) { + _lib._objc_msgSend_488(_id, _lib._sel_removeCookiesSinceDate_1, date._id); } - NSDictionary? get textAttributesForNotANumber { + /// ! + /// @method cookiesForURL: + /// @abstract Returns an array of cookies to send to the given URL. + /// @param URL The URL for which to get cookies. + /// @result an NSArray of NSHTTPCookie objects. + /// @discussion The cookie manager examines the cookies it stores and + /// includes those which should be sent to the given URL. You can use + /// +[NSCookie requestHeaderFieldsWithCookies:] to turn this array + /// into a set of header fields to add to a request. + NSArray? cookiesForURL_(NSURL URL) { final _ret = - _lib._objc_msgSend_324(_id, _lib._sel_textAttributesForNotANumber1); + _lib._objc_msgSend_124(_id, _lib._sel_cookiesForURL_1, URL._id); return _ret.address == 0 ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + : NSArray._(_ret, _lib, retain: true, release: true); } - set textAttributesForNotANumber(NSDictionary? value) { - _lib._objc_msgSend_571(_id, _lib._sel_setTextAttributesForNotANumber_1, - value?._id ?? ffi.nullptr); + /// ! + /// @method setCookies:forURL:mainDocumentURL: + /// @abstract Adds an array cookies to the cookie store, following the + /// cookie accept policy. + /// @param cookies The cookies to set. + /// @param URL The URL from which the cookies were sent. + /// @param mainDocumentURL The main document URL to be used as a base for the "same + /// domain as main document" policy. + /// @discussion For mainDocumentURL, the caller should pass the URL for + /// an appropriate main document, if known. For example, when loading + /// a web page, the URL of the main html document for the top-level + /// frame should be passed. To save cookies based on a set of response + /// headers, you can use +[NSCookie + /// cookiesWithResponseHeaderFields:forURL:] on a header field + /// dictionary and then use this method to store the resulting cookies + /// in accordance with policy settings. + void setCookies_forURL_mainDocumentURL_( + NSArray cookies, NSURL? URL, NSURL? mainDocumentURL) { + _lib._objc_msgSend_708( + _id, + _lib._sel_setCookies_forURL_mainDocumentURL_1, + cookies._id, + URL?._id ?? ffi.nullptr, + mainDocumentURL?._id ?? ffi.nullptr); } - NSString? get positiveInfinitySymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_positiveInfinitySymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract The cookie accept policy preference of the + /// receiver. + int get cookieAcceptPolicy { + return _lib._objc_msgSend_709(_id, _lib._sel_cookieAcceptPolicy1); } - set positiveInfinitySymbol(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setPositiveInfinitySymbol_1, value?._id ?? ffi.nullptr); + /// ! + /// @abstract The cookie accept policy preference of the + /// receiver. + set cookieAcceptPolicy(int value) { + return _lib._objc_msgSend_710( + _id, _lib._sel_setCookieAcceptPolicy_1, value); } - NSDictionary? get textAttributesForPositiveInfinity { - final _ret = _lib._objc_msgSend_324( - _id, _lib._sel_textAttributesForPositiveInfinity1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + /// ! + /// @method sortedCookiesUsingDescriptors: + /// @abstract Returns an array of all cookies in the store, sorted according to the key value and sorting direction of the NSSortDescriptors specified in the parameter. + /// @param sortOrder an array of NSSortDescriptors which represent the preferred sort order of the resulting array. + /// @discussion proper sorting of cookies may require extensive string conversion, which can be avoided by allowing the system to perform the sorting. This API is to be preferred over the more generic -[NSHTTPCookieStorage cookies] API, if sorting is going to be performed. + NSArray sortedCookiesUsingDescriptors_(NSArray sortOrder) { + final _ret = _lib._objc_msgSend_60( + _id, _lib._sel_sortedCookiesUsingDescriptors_1, sortOrder._id); + return NSArray._(_ret, _lib, retain: true, release: true); } - set textAttributesForPositiveInfinity(NSDictionary? value) { - _lib._objc_msgSend_571( - _id, - _lib._sel_setTextAttributesForPositiveInfinity_1, - value?._id ?? ffi.nullptr); + void storeCookies_forTask_(NSArray cookies, NSURLSessionTask task) { + _lib._objc_msgSend_732( + _id, _lib._sel_storeCookies_forTask_1, cookies._id, task._id); } - NSString? get negativeInfinitySymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_negativeInfinitySymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + void getCookiesForTask_completionHandler_( + NSURLSessionTask task, ObjCBlock_ffiVoid_NSArray completionHandler) { + _lib._objc_msgSend_733(_id, _lib._sel_getCookiesForTask_completionHandler_1, + task._id, completionHandler._id); } - set negativeInfinitySymbol(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setNegativeInfinitySymbol_1, value?._id ?? ffi.nullptr); + @override + NSHTTPCookieStorage init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); } - NSDictionary? get textAttributesForNegativeInfinity { - final _ret = _lib._objc_msgSend_324( - _id, _lib._sel_textAttributesForNegativeInfinity1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + static NSHTTPCookieStorage new1(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSHTTPCookieStorage1, _lib._sel_new1); + return NSHTTPCookieStorage._(_ret, _lib, retain: false, release: true); } - set textAttributesForNegativeInfinity(NSDictionary? value) { - _lib._objc_msgSend_571( - _id, - _lib._sel_setTextAttributesForNegativeInfinity_1, - value?._id ?? ffi.nullptr); + static NSHTTPCookieStorage allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSHTTPCookieStorage1, _lib._sel_allocWithZone_1, zone); + return NSHTTPCookieStorage._(_ret, _lib, retain: false, release: true); } - NSString? get positivePrefix { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_positivePrefix1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSHTTPCookieStorage alloc(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSHTTPCookieStorage1, _lib._sel_alloc1); + return NSHTTPCookieStorage._(_ret, _lib, retain: false, release: true); } - set positivePrefix(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setPositivePrefix_1, value?._id ?? ffi.nullptr); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + PedometerBindings _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSHTTPCookieStorage1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument?._id ?? ffi.nullptr); } - NSString? get positiveSuffix { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_positiveSuffix1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_( + PedometerBindings _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSHTTPCookieStorage1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - set positiveSuffix(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setPositiveSuffix_1, value?._id ?? ffi.nullptr); + static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { + return _lib._objc_msgSend_12(_lib._class_NSHTTPCookieStorage1, + _lib._sel_accessInstanceVariablesDirectly1); } - NSString? get negativePrefix { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_negativePrefix1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static bool useStoredAccessor(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSHTTPCookieStorage1, _lib._sel_useStoredAccessor1); } - set negativePrefix(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setNegativePrefix_1, value?._id ?? ffi.nullptr); + static NSSet keyPathsForValuesAffectingValueForKey_( + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSHTTPCookieStorage1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); + return NSSet._(_ret, _lib, retain: true, release: true); } - NSString? get negativeSuffix { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_negativeSuffix1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static bool automaticallyNotifiesObserversForKey_( + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSHTTPCookieStorage1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } - set negativeSuffix(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setNegativeSuffix_1, value?._id ?? ffi.nullptr); + static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77(_lib._class_NSHTTPCookieStorage1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSString? get currencyCode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currencyCode1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSHTTPCookieStorage1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} + +/// ! +/// @class NSHTTPCookie +/// @abstract NSHTTPCookie represents an http cookie. +/// @discussion A NSHTTPCookie instance represents a single http cookie. It is +/// an immutable object initialized from a dictionary that contains +/// the various cookie attributes. It has accessors to get the various +/// attributes of a cookie. +class NSHTTPCookie extends NSObject { + NSHTTPCookie._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - set currencyCode(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setCurrencyCode_1, value?._id ?? ffi.nullptr); + /// Returns a [NSHTTPCookie] that points to the same underlying object as [other]. + static NSHTTPCookie castFrom(T other) { + return NSHTTPCookie._(other._id, other._lib, retain: true, release: true); } - NSString? get currencySymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currencySymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + /// Returns a [NSHTTPCookie] that wraps the given raw object pointer. + static NSHTTPCookie castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSHTTPCookie._(other, lib, retain: retain, release: release); } - set currencySymbol(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setCurrencySymbol_1, value?._id ?? ffi.nullptr); + /// Returns whether [obj] is an instance of [NSHTTPCookie]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSHTTPCookie1); } - NSString? get internationalCurrencySymbol { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_internationalCurrencySymbol1); + /// ! + /// @method initWithProperties: + /// @abstract Initialize a NSHTTPCookie object with a dictionary of + /// parameters + /// @param properties The dictionary of properties to be used to + /// initialize this cookie. + /// @discussion Supported dictionary keys and value types for the + /// given dictionary are as follows. + /// + /// All properties can handle an NSString value, but some can also + /// handle other types. + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + ///
Property key constantType of valueRequiredDescription
NSHTTPCookieCommentNSStringNOComment for the cookie. Only valid for version 1 cookies and + /// later. Default is nil.
NSHTTPCookieCommentURLNSURL or NSStringNOComment URL for the cookie. Only valid for version 1 cookies + /// and later. Default is nil.
NSHTTPCookieDomainNSStringSpecial, a value for either NSHTTPCookieOriginURL or + /// NSHTTPCookieDomain must be specified.Domain for the cookie. Inferred from the value for + /// NSHTTPCookieOriginURL if not provided.
NSHTTPCookieDiscardNSStringNOA string stating whether the cookie should be discarded at + /// the end of the session. String value must be either "TRUE" or + /// "FALSE". Default is "FALSE", unless this is cookie is version + /// 1 or greater and a value for NSHTTPCookieMaximumAge is not + /// specified, in which case it is assumed "TRUE".
NSHTTPCookieExpiresNSDate or NSStringNOExpiration date for the cookie. Used only for version 0 + /// cookies. Ignored for version 1 or greater.
NSHTTPCookieMaximumAgeNSStringNOA string containing an integer value stating how long in + /// seconds the cookie should be kept, at most. Only valid for + /// version 1 cookies and later. Default is "0".
NSHTTPCookieNameNSStringYESName of the cookie
NSHTTPCookieOriginURLNSURL or NSStringSpecial, a value for either NSHTTPCookieOriginURL or + /// NSHTTPCookieDomain must be specified.URL that set this cookie. Used as default for other fields + /// as noted.
NSHTTPCookiePathNSStringNOPath for the cookie. Inferred from the value for + /// NSHTTPCookieOriginURL if not provided. Default is "/".
NSHTTPCookiePortNSStringNOcomma-separated integer values specifying the ports for the + /// cookie. Only valid for version 1 cookies and later. Default is + /// empty string ("").
NSHTTPCookieSecureNSStringNOA string stating whether the cookie should be transmitted + /// only over secure channels. String value must be either "TRUE" + /// or "FALSE". Default is "FALSE".
NSHTTPCookieValueNSStringYESValue of the cookie
NSHTTPCookieVersionNSStringNOSpecifies the version of the cookie. Must be either "0" or + /// "1". Default is "0".
+ ///

+ /// All other keys are ignored. + /// @result An initialized NSHTTPCookie, or nil if the set of + /// dictionary keys is invalid, for example because a required key is + /// missing, or a recognized key maps to an illegal value. + NSHTTPCookie? initWithProperties_(NSDictionary properties) { + final _ret = _lib._objc_msgSend_704( + _id, _lib._sel_initWithProperties_1, properties._id); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSHTTPCookie._(_ret, _lib, retain: true, release: true); } - set internationalCurrencySymbol(NSString? value) { - _lib._objc_msgSend_470(_id, _lib._sel_setInternationalCurrencySymbol_1, - value?._id ?? ffi.nullptr); - } - - NSString? get percentSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_percentSymbol1); + /// ! + /// @method cookieWithProperties: + /// @abstract Allocates and initializes an NSHTTPCookie with the given + /// dictionary. + /// @discussion See the NSHTTPCookie -initWithProperties: + /// method for more information on the constraints imposed on the + /// dictionary, and for descriptions of the supported keys and values. + /// @param properties The dictionary to use to initialize this cookie. + /// @result A newly-created and autoreleased NSHTTPCookie instance, or + /// nil if the set of dictionary keys is invalid, for example because + /// a required key is missing, or a recognized key maps to an illegal + /// value. + static NSHTTPCookie? cookieWithProperties_( + PedometerBindings _lib, NSDictionary properties) { + final _ret = _lib._objc_msgSend_705(_lib._class_NSHTTPCookie1, + _lib._sel_cookieWithProperties_1, properties._id); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSHTTPCookie._(_ret, _lib, retain: true, release: true); + } + + /// ! + /// @method requestHeaderFieldsWithCookies: + /// @abstract Return a dictionary of header fields that can be used to add the + /// specified cookies to the request. + /// @param cookies The cookies to turn into request headers. + /// @result An NSDictionary where the keys are header field names, and the values + /// are the corresponding header field values. + static NSDictionary requestHeaderFieldsWithCookies_( + PedometerBindings _lib, NSArray cookies) { + final _ret = _lib._objc_msgSend_455(_lib._class_NSHTTPCookie1, + _lib._sel_requestHeaderFieldsWithCookies_1, cookies._id); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - set percentSymbol(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setPercentSymbol_1, value?._id ?? ffi.nullptr); + /// ! + /// @method cookiesWithResponseHeaderFields:forURL: + /// @abstract Return an array of cookies parsed from the specified response header fields and URL. + /// @param headerFields The response header fields to check for cookies. + /// @param URL The URL that the cookies came from - relevant to how the cookies are interpreted. + /// @result An NSArray of NSHTTPCookie objects + /// @discussion This method will ignore irrelevant header fields so + /// you can pass a dictionary containing data other than cookie data. + static NSArray cookiesWithResponseHeaderFields_forURL_( + PedometerBindings _lib, NSDictionary headerFields, NSURL URL) { + final _ret = _lib._objc_msgSend_706( + _lib._class_NSHTTPCookie1, + _lib._sel_cookiesWithResponseHeaderFields_forURL_1, + headerFields._id, + URL._id); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSString? get perMillSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_perMillSymbol1); + /// ! + /// @abstract Returns a dictionary representation of the receiver. + /// @discussion This method returns a dictionary representation of the + /// NSHTTPCookie which can be saved and passed to + /// -initWithProperties: or +cookieWithProperties: + /// later to reconstitute an equivalent cookie. + ///

See the NSHTTPCookie -initWithProperties: method for + /// more information on the constraints imposed on the dictionary, and + /// for descriptions of the supported keys and values. + /// @result The dictionary representation of the receiver. + NSDictionary? get properties { + final _ret = _lib._objc_msgSend_340(_id, _lib._sel_properties1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSDictionary._(_ret, _lib, retain: true, release: true); } - set perMillSymbol(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setPerMillSymbol_1, value?._id ?? ffi.nullptr); + /// ! + /// @abstract Returns the version of the receiver. + /// @discussion Version 0 maps to "old-style" Netscape cookies. + /// Version 1 maps to RFC2965 cookies. There may be future versions. + /// @result the version of the receiver. + int get version { + return _lib._objc_msgSend_10(_id, _lib._sel_version1); } - NSString? get minusSign { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_minusSign1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Returns the name of the receiver. + /// @result the name of the receiver. + NSString get name { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_name1); + return NSString._(_ret, _lib, retain: true, release: true); } - set minusSign(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setMinusSign_1, value?._id ?? ffi.nullptr); + /// ! + /// @abstract Returns the value of the receiver. + /// @result the value of the receiver. + NSString get value { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_value1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get plusSign { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_plusSign1); + /// ! + /// @abstract Returns the expires date of the receiver. + /// @result the expires date of the receiver. + /// @discussion The expires date is the date when the cookie should be + /// deleted. The result will be nil if there is no specific expires + /// date. This will be the case only for "session-only" cookies. + /// @result The expires date of the receiver. + NSDate? get expiresDate { + final _ret = _lib._objc_msgSend_164(_id, _lib._sel_expiresDate1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSDate._(_ret, _lib, retain: true, release: true); } - set plusSign(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setPlusSign_1, value?._id ?? ffi.nullptr); + /// ! + /// @abstract Returns whether the receiver is session-only. + /// @result YES if this receiver should be discarded at the end of the + /// session (regardless of expiration date), NO if receiver need not + /// be discarded at the end of the session. + bool get sessionOnly { + return _lib._objc_msgSend_12(_id, _lib._sel_isSessionOnly1); } - NSString? get exponentSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_exponentSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Returns the domain of the receiver. + /// @discussion This value specifies URL domain to which the cookie + /// should be sent. A domain with a leading dot means the cookie + /// should be sent to subdomains as well, assuming certain other + /// restrictions are valid. See RFC 2965 for more detail. + /// @result The domain of the receiver. + NSString get domain { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_domain1); + return NSString._(_ret, _lib, retain: true, release: true); } - set exponentSymbol(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setExponentSymbol_1, value?._id ?? ffi.nullptr); + /// ! + /// @abstract Returns the path of the receiver. + /// @discussion This value specifies the URL path under the cookie's + /// domain for which this cookie should be sent. The cookie will also + /// be sent for children of that path, so "/" is the most general. + /// @result The path of the receiver. + NSString get path { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_path1); + return NSString._(_ret, _lib, retain: true, release: true); } - int get groupingSize { - return _lib._objc_msgSend_10(_id, _lib._sel_groupingSize1); + /// ! + /// @abstract Returns whether the receiver should be sent only over + /// secure channels + /// @discussion Cookies may be marked secure by a server (or by a javascript). + /// Cookies marked as such must only be sent via an encrypted connection to + /// trusted servers (i.e. via SSL or TLS), and should not be delivered to any + /// javascript applications to prevent cross-site scripting vulnerabilities. + /// @result YES if this cookie should be sent only over secure channels, + /// NO otherwise. + bool get secure { + return _lib._objc_msgSend_12(_id, _lib._sel_isSecure1); } - set groupingSize(int value) { - _lib._objc_msgSend_444(_id, _lib._sel_setGroupingSize_1, value); + /// ! + /// @abstract Returns whether the receiver should only be sent to HTTP servers + /// per RFC 2965 + /// @discussion Cookies may be marked as HTTPOnly by a server (or by a javascript). + /// Cookies marked as such must only be sent via HTTP Headers in HTTP Requests + /// for URL's that match both the path and domain of the respective Cookies. + /// Specifically these cookies should not be delivered to any javascript + /// applications to prevent cross-site scripting vulnerabilities. + /// @result YES if this cookie should only be sent via HTTP headers, + /// NO otherwise. + bool get HTTPOnly { + return _lib._objc_msgSend_12(_id, _lib._sel_isHTTPOnly1); } - int get secondaryGroupingSize { - return _lib._objc_msgSend_10(_id, _lib._sel_secondaryGroupingSize1); + /// ! + /// @abstract Returns the comment of the receiver. + /// @discussion This value specifies a string which is suitable for + /// presentation to the user explaining the contents and purpose of this + /// cookie. It may be nil. + /// @result The comment of the receiver, or nil if the receiver has no + /// comment. + NSString? get comment { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_comment1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - set secondaryGroupingSize(int value) { - _lib._objc_msgSend_444(_id, _lib._sel_setSecondaryGroupingSize_1, value); + /// ! + /// @abstract Returns the comment URL of the receiver. + /// @discussion This value specifies a URL which is suitable for + /// presentation to the user as a link for further information about + /// this cookie. It may be nil. + /// @result The comment URL of the receiver, or nil if the receiver + /// has no comment URL. + NSURL? get commentURL { + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_commentURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - NSNumber? get multiplier { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_multiplier1); + /// ! + /// @abstract Returns the list ports to which the receiver should be + /// sent. + /// @discussion This value specifies an NSArray of NSNumbers + /// (containing integers) which specify the only ports to which this + /// cookie should be sent. + /// @result The list ports to which the receiver should be sent. The + /// array may be nil, in which case this cookie can be sent to any + /// port. + NSArray? get portList { + final _ret = _lib._objc_msgSend_76(_id, _lib._sel_portList1); return _ret.address == 0 ? null - : NSNumber._(_ret, _lib, retain: true, release: true); + : NSArray._(_ret, _lib, retain: true, release: true); } - set multiplier(NSNumber? value) { - _lib._objc_msgSend_486( - _id, _lib._sel_setMultiplier_1, value?._id ?? ffi.nullptr); + /// ! + /// @abstract Returns the value of the same site attribute on the cookie. + /// @discussion Cookies can be marked with an attribute Strict or Lax. + /// Cookies marked with "strict" (NSHTTPCookieSameSiteStrict) are not sent along with cross-site requests. + /// Cookies marked with "lax" (NSHTTPCookieSameSiteLax) sent along cross-site requests provided the + /// cross-site requests are top-level-requests (one that changes the url in the address bar). + /// The attribute value is canonicalized and stored. Any value other than the default (strict and lax) will be ignored. + /// @result strict or lax. The result could also be nil, in which case the + /// cookie will be sent along with all cross-site requests. + NSString? get sameSitePolicy { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_sameSitePolicy1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - int get formatWidth { - return _lib._objc_msgSend_10(_id, _lib._sel_formatWidth1); + @override + NSHTTPCookie init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSHTTPCookie._(_ret, _lib, retain: true, release: true); } - set formatWidth(int value) { - _lib._objc_msgSend_444(_id, _lib._sel_setFormatWidth_1, value); + static NSHTTPCookie new1(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSHTTPCookie1, _lib._sel_new1); + return NSHTTPCookie._(_ret, _lib, retain: false, release: true); } - NSString? get paddingCharacter { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_paddingCharacter1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSHTTPCookie allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSHTTPCookie1, _lib._sel_allocWithZone_1, zone); + return NSHTTPCookie._(_ret, _lib, retain: false, release: true); } - set paddingCharacter(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setPaddingCharacter_1, value?._id ?? ffi.nullptr); + static NSHTTPCookie alloc(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSHTTPCookie1, _lib._sel_alloc1); + return NSHTTPCookie._(_ret, _lib, retain: false, release: true); } - int get paddingPosition { - return _lib._objc_msgSend_618(_id, _lib._sel_paddingPosition1); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + PedometerBindings _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSHTTPCookie1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument?._id ?? ffi.nullptr); } - set paddingPosition(int value) { - _lib._objc_msgSend_619(_id, _lib._sel_setPaddingPosition_1, value); + static void cancelPreviousPerformRequestsWithTarget_( + PedometerBindings _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSHTTPCookie1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - int get roundingMode { - return _lib._objc_msgSend_620(_id, _lib._sel_roundingMode1); + static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSHTTPCookie1, _lib._sel_accessInstanceVariablesDirectly1); } - set roundingMode(int value) { - _lib._objc_msgSend_621(_id, _lib._sel_setRoundingMode_1, value); + static bool useStoredAccessor(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSHTTPCookie1, _lib._sel_useStoredAccessor1); } - NSNumber? get roundingIncrement { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_roundingIncrement1); - return _ret.address == 0 - ? null - : NSNumber._(_ret, _lib, retain: true, release: true); + static NSSet keyPathsForValuesAffectingValueForKey_( + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSHTTPCookie1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); + return NSSet._(_ret, _lib, retain: true, release: true); } - set roundingIncrement(NSNumber? value) { - _lib._objc_msgSend_486( - _id, _lib._sel_setRoundingIncrement_1, value?._id ?? ffi.nullptr); + static bool automaticallyNotifiesObserversForKey_( + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSHTTPCookie1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } - int get minimumIntegerDigits { - return _lib._objc_msgSend_10(_id, _lib._sel_minimumIntegerDigits1); + static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77( + _lib._class_NSHTTPCookie1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set minimumIntegerDigits(int value) { - _lib._objc_msgSend_444(_id, _lib._sel_setMinimumIntegerDigits_1, value); + static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSHTTPCookie1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - int get maximumIntegerDigits { - return _lib._objc_msgSend_10(_id, _lib._sel_maximumIntegerDigits1); - } +/// ! +/// @enum NSHTTPCookieAcceptPolicy +/// @abstract Values for the different cookie accept policies +/// @constant NSHTTPCookieAcceptPolicyAlways Accept all cookies +/// @constant NSHTTPCookieAcceptPolicyNever Reject all cookies +/// @constant NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain Accept cookies +/// only from the main document domain +abstract class NSHTTPCookieAcceptPolicy { + static const int NSHTTPCookieAcceptPolicyAlways = 0; + static const int NSHTTPCookieAcceptPolicyNever = 1; + static const int NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain = 2; +} - set maximumIntegerDigits(int value) { - _lib._objc_msgSend_444(_id, _lib._sel_setMaximumIntegerDigits_1, value); - } +class NSURLSessionTask extends NSObject { + NSURLSessionTask._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - int get minimumFractionDigits { - return _lib._objc_msgSend_10(_id, _lib._sel_minimumFractionDigits1); + /// Returns a [NSURLSessionTask] that points to the same underlying object as [other]. + static NSURLSessionTask castFrom(T other) { + return NSURLSessionTask._(other._id, other._lib, + retain: true, release: true); } - set minimumFractionDigits(int value) { - _lib._objc_msgSend_444(_id, _lib._sel_setMinimumFractionDigits_1, value); + /// Returns a [NSURLSessionTask] that wraps the given raw object pointer. + static NSURLSessionTask castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLSessionTask._(other, lib, retain: retain, release: release); } - int get maximumFractionDigits { - return _lib._objc_msgSend_10(_id, _lib._sel_maximumFractionDigits1); + /// Returns whether [obj] is an instance of [NSURLSessionTask]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSURLSessionTask1); } - set maximumFractionDigits(int value) { - _lib._objc_msgSend_444(_id, _lib._sel_setMaximumFractionDigits_1, value); + int get taskIdentifier { + return _lib._objc_msgSend_10(_id, _lib._sel_taskIdentifier1); } - NSNumber? get minimum { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_minimum1); + NSURLRequest? get originalRequest { + final _ret = _lib._objc_msgSend_726(_id, _lib._sel_originalRequest1); return _ret.address == 0 ? null - : NSNumber._(_ret, _lib, retain: true, release: true); - } - - set minimum(NSNumber? value) { - _lib._objc_msgSend_486( - _id, _lib._sel_setMinimum_1, value?._id ?? ffi.nullptr); + : NSURLRequest._(_ret, _lib, retain: true, release: true); } - NSNumber? get maximum { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_maximum1); + NSURLRequest? get currentRequest { + final _ret = _lib._objc_msgSend_726(_id, _lib._sel_currentRequest1); return _ret.address == 0 ? null - : NSNumber._(_ret, _lib, retain: true, release: true); - } - - set maximum(NSNumber? value) { - _lib._objc_msgSend_486( - _id, _lib._sel_setMaximum_1, value?._id ?? ffi.nullptr); + : NSURLRequest._(_ret, _lib, retain: true, release: true); } - NSString? get currencyGroupingSeparator { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_currencyGroupingSeparator1); + NSURLResponse? get response { + final _ret = _lib._objc_msgSend_728(_id, _lib._sel_response1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSURLResponse._(_ret, _lib, retain: true, release: true); } - set currencyGroupingSeparator(NSString? value) { - _lib._objc_msgSend_470(_id, _lib._sel_setCurrencyGroupingSeparator_1, - value?._id ?? ffi.nullptr); + NSObject? get delegate { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_delegate1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - bool get lenient { - return _lib._objc_msgSend_12(_id, _lib._sel_isLenient1); + set delegate(NSObject? value) { + return _lib._objc_msgSend_367( + _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } - set lenient(bool value) { - _lib._objc_msgSend_453(_id, _lib._sel_setLenient_1, value); + NSProgress get progress { + final _ret = _lib._objc_msgSend_729(_id, _lib._sel_progress1); + return NSProgress._(_ret, _lib, retain: true, release: true); } - bool get usesSignificantDigits { - return _lib._objc_msgSend_12(_id, _lib._sel_usesSignificantDigits1); + NSDate? get earliestBeginDate { + final _ret = _lib._objc_msgSend_164(_id, _lib._sel_earliestBeginDate1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - set usesSignificantDigits(bool value) { - _lib._objc_msgSend_453(_id, _lib._sel_setUsesSignificantDigits_1, value); + set earliestBeginDate(NSDate? value) { + return _lib._objc_msgSend_652( + _id, _lib._sel_setEarliestBeginDate_1, value?._id ?? ffi.nullptr); } - int get minimumSignificantDigits { - return _lib._objc_msgSend_10(_id, _lib._sel_minimumSignificantDigits1); + int get countOfBytesClientExpectsToSend { + return _lib._objc_msgSend_505( + _id, _lib._sel_countOfBytesClientExpectsToSend1); } - set minimumSignificantDigits(int value) { - _lib._objc_msgSend_444(_id, _lib._sel_setMinimumSignificantDigits_1, value); + set countOfBytesClientExpectsToSend(int value) { + return _lib._objc_msgSend_506( + _id, _lib._sel_setCountOfBytesClientExpectsToSend_1, value); } - int get maximumSignificantDigits { - return _lib._objc_msgSend_10(_id, _lib._sel_maximumSignificantDigits1); + int get countOfBytesClientExpectsToReceive { + return _lib._objc_msgSend_505( + _id, _lib._sel_countOfBytesClientExpectsToReceive1); } - set maximumSignificantDigits(int value) { - _lib._objc_msgSend_444(_id, _lib._sel_setMaximumSignificantDigits_1, value); + set countOfBytesClientExpectsToReceive(int value) { + return _lib._objc_msgSend_506( + _id, _lib._sel_setCountOfBytesClientExpectsToReceive_1, value); } - bool get partialStringValidationEnabled { - return _lib._objc_msgSend_12( - _id, _lib._sel_isPartialStringValidationEnabled1); + int get countOfBytesSent { + return _lib._objc_msgSend_505(_id, _lib._sel_countOfBytesSent1); } - set partialStringValidationEnabled(bool value) { - _lib._objc_msgSend_453( - _id, _lib._sel_setPartialStringValidationEnabled_1, value); + int get countOfBytesReceived { + return _lib._objc_msgSend_505(_id, _lib._sel_countOfBytesReceived1); } - bool get hasThousandSeparators { - return _lib._objc_msgSend_12(_id, _lib._sel_hasThousandSeparators1); + int get countOfBytesExpectedToSend { + return _lib._objc_msgSend_505(_id, _lib._sel_countOfBytesExpectedToSend1); } - set hasThousandSeparators(bool value) { - _lib._objc_msgSend_453(_id, _lib._sel_setHasThousandSeparators_1, value); + int get countOfBytesExpectedToReceive { + return _lib._objc_msgSend_505( + _id, _lib._sel_countOfBytesExpectedToReceive1); } - NSString? get thousandSeparator { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_thousandSeparator1); + NSString? get taskDescription { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_taskDescription1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - set thousandSeparator(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setThousandSeparator_1, value?._id ?? ffi.nullptr); + set taskDescription(NSString? value) { + return _lib._objc_msgSend_493( + _id, _lib._sel_setTaskDescription_1, value?._id ?? ffi.nullptr); } - bool get localizesFormat { - return _lib._objc_msgSend_12(_id, _lib._sel_localizesFormat1); + void cancel() { + _lib._objc_msgSend_1(_id, _lib._sel_cancel1); } - set localizesFormat(bool value) { - _lib._objc_msgSend_453(_id, _lib._sel_setLocalizesFormat_1, value); + int get state { + return _lib._objc_msgSend_730(_id, _lib._sel_state1); } - NSString? get format { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_format1); + NSError? get error { + final _ret = _lib._objc_msgSend_263(_id, _lib._sel_error1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set format(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setFormat_1, value?._id ?? ffi.nullptr); + : NSError._(_ret, _lib, retain: true, release: true); } - NSAttributedString? get attributedStringForZero { - final _ret = - _lib._objc_msgSend_541(_id, _lib._sel_attributedStringForZero1); - return _ret.address == 0 - ? null - : NSAttributedString._(_ret, _lib, retain: true, release: true); + void suspend() { + _lib._objc_msgSend_1(_id, _lib._sel_suspend1); } - set attributedStringForZero(NSAttributedString? value) { - _lib._objc_msgSend_622( - _id, _lib._sel_setAttributedStringForZero_1, value?._id ?? ffi.nullptr); + void resume() { + _lib._objc_msgSend_1(_id, _lib._sel_resume1); } - NSAttributedString? get attributedStringForNil { - final _ret = _lib._objc_msgSend_541(_id, _lib._sel_attributedStringForNil1); - return _ret.address == 0 - ? null - : NSAttributedString._(_ret, _lib, retain: true, release: true); + double get priority { + return _lib._objc_msgSend_190(_id, _lib._sel_priority1); } - set attributedStringForNil(NSAttributedString? value) { - _lib._objc_msgSend_622( - _id, _lib._sel_setAttributedStringForNil_1, value?._id ?? ffi.nullptr); + set priority(double value) { + return _lib._objc_msgSend_731(_id, _lib._sel_setPriority_1, value); } - NSAttributedString? get attributedStringForNotANumber { - final _ret = - _lib._objc_msgSend_541(_id, _lib._sel_attributedStringForNotANumber1); - return _ret.address == 0 - ? null - : NSAttributedString._(_ret, _lib, retain: true, release: true); + bool get prefersIncrementalDelivery { + return _lib._objc_msgSend_12(_id, _lib._sel_prefersIncrementalDelivery1); } - set attributedStringForNotANumber(NSAttributedString? value) { - _lib._objc_msgSend_622(_id, _lib._sel_setAttributedStringForNotANumber_1, - value?._id ?? ffi.nullptr); + set prefersIncrementalDelivery(bool value) { + return _lib._objc_msgSend_475( + _id, _lib._sel_setPrefersIncrementalDelivery_1, value); } - NSDecimalNumberHandler? get roundingBehavior { - final _ret = _lib._objc_msgSend_623(_id, _lib._sel_roundingBehavior1); - return _ret.address == 0 - ? null - : NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); + @override + NSURLSessionTask init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLSessionTask._(_ret, _lib, retain: true, release: true); } - set roundingBehavior(NSDecimalNumberHandler? value) { - _lib._objc_msgSend_625( - _id, _lib._sel_setRoundingBehavior_1, value?._id ?? ffi.nullptr); + static NSURLSessionTask new1(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLSessionTask1, _lib._sel_new1); + return NSURLSessionTask._(_ret, _lib, retain: false, release: true); } - static NSNumberFormatter new1(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSNumberFormatter1, _lib._sel_new1); - return NSNumberFormatter._(_ret, _lib, retain: false, release: true); + static NSURLSessionTask allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLSessionTask1, _lib._sel_allocWithZone_1, zone); + return NSURLSessionTask._(_ret, _lib, retain: false, release: true); } - static NSNumberFormatter alloc(PedometerBindings _lib) { + static NSURLSessionTask alloc(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSNumberFormatter1, _lib._sel_alloc1); - return NSNumberFormatter._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSURLSessionTask1, _lib._sel_alloc1); + return NSURLSessionTask._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSNumberFormatter1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSURLSessionTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSNumberFormatter1, + _lib._objc_msgSend_15(_lib._class_NSURLSessionTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSNumberFormatter1, + return _lib._objc_msgSend_12(_lib._class_NSURLSessionTask1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSNumberFormatter1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLSessionTask1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSNumberFormatter1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSURLSessionTask1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSNumberFormatter1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSNumberFormatter1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSURLSessionTask1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71(_lib._class_NSNumberFormatter1, + final _ret = _lib._objc_msgSend_77(_lib._class_NSURLSessionTask1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSNumberFormatter1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSURLSessionTask1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSNumberFormatterStyle { - static const int NSNumberFormatterNoStyle = 0; - static const int NSNumberFormatterDecimalStyle = 1; - static const int NSNumberFormatterCurrencyStyle = 2; - static const int NSNumberFormatterPercentStyle = 3; - static const int NSNumberFormatterScientificStyle = 4; - static const int NSNumberFormatterSpellOutStyle = 5; - static const int NSNumberFormatterOrdinalStyle = 6; - static const int NSNumberFormatterCurrencyISOCodeStyle = 8; - static const int NSNumberFormatterCurrencyPluralStyle = 9; - static const int NSNumberFormatterCurrencyAccountingStyle = 10; -} - -abstract class NSNumberFormatterBehavior { - static const int NSNumberFormatterBehaviorDefault = 0; - static const int NSNumberFormatterBehavior10_0 = 1000; - static const int NSNumberFormatterBehavior10_4 = 1040; -} - -abstract class NSNumberFormatterPadPosition { - static const int NSNumberFormatterPadBeforePrefix = 0; - static const int NSNumberFormatterPadAfterPrefix = 1; - static const int NSNumberFormatterPadBeforeSuffix = 2; - static const int NSNumberFormatterPadAfterSuffix = 3; -} - -abstract class NSNumberFormatterRoundingMode { - static const int NSNumberFormatterRoundCeiling = 0; - static const int NSNumberFormatterRoundFloor = 1; - static const int NSNumberFormatterRoundDown = 2; - static const int NSNumberFormatterRoundUp = 3; - static const int NSNumberFormatterRoundHalfEven = 4; - static const int NSNumberFormatterRoundHalfDown = 5; - static const int NSNumberFormatterRoundHalfUp = 6; -} - -/// A class for defining common behaviors -class NSDecimalNumberHandler extends NSObject { - NSDecimalNumberHandler._(ffi.Pointer id, PedometerBindings lib, +/// ! +/// @class NSURLRequest +/// +/// @abstract An NSURLRequest object represents a URL load request in a +/// manner independent of protocol and URL scheme. +/// +/// @discussion NSURLRequest encapsulates two basic data elements about +/// a URL load request: +///

    +///
  • The URL to load. +///
  • The policy to use when consulting the URL content cache made +/// available by the implementation. +///
+/// In addition, NSURLRequest is designed to be extended to support +/// protocol-specific data by adding categories to access a property +/// object provided in an interface targeted at protocol implementors. +///
    +///
  • Protocol implementors should direct their attention to the +/// NSURLRequestExtensibility category on NSURLRequest for more +/// information on how to provide extensions on NSURLRequest to +/// support protocol-specific request information. +///
  • Clients of this API who wish to create NSURLRequest objects to +/// load URL content should consult the protocol-specific NSURLRequest +/// categories that are available. The NSHTTPURLRequest category on +/// NSURLRequest is an example. +///
+///

+/// Objects of this class are used to create NSURLConnection instances, +/// which can are used to perform the load of a URL, or as input to the +/// NSURLConnection class method which performs synchronous loads. +class NSURLRequest extends NSObject { + NSURLRequest._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSDecimalNumberHandler] that points to the same underlying object as [other]. - static NSDecimalNumberHandler castFrom(T other) { - return NSDecimalNumberHandler._(other._id, other._lib, - retain: true, release: true); + /// Returns a [NSURLRequest] that points to the same underlying object as [other]. + static NSURLRequest castFrom(T other) { + return NSURLRequest._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSDecimalNumberHandler] that wraps the given raw object pointer. - static NSDecimalNumberHandler castFromPointer( + /// Returns a [NSURLRequest] that wraps the given raw object pointer. + static NSURLRequest castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSDecimalNumberHandler._(other, lib, - retain: retain, release: release); + return NSURLRequest._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSDecimalNumberHandler]. + /// Returns whether [obj] is an instance of [NSURLRequest]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSDecimalNumberHandler1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLRequest1); } - static NSDecimalNumberHandler? getDefaultDecimalNumberHandler( - PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_623(_lib._class_NSDecimalNumberHandler1, - _lib._sel_defaultDecimalNumberHandler1); - return _ret.address == 0 - ? null - : NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); + /// ! + /// @method requestWithURL: + /// @abstract Allocates and initializes an NSURLRequest with the given + /// URL. + /// @discussion Default values are used for cache policy + /// (NSURLRequestUseProtocolCachePolicy) and timeout interval (60 + /// seconds). + /// @param URL The URL for the request. + /// @result A newly-created and autoreleased NSURLRequest instance. + static NSURLRequest requestWithURL_(PedometerBindings _lib, NSURL URL) { + final _ret = _lib._objc_msgSend_711( + _lib._class_NSURLRequest1, _lib._sel_requestWithURL_1, URL._id); + return NSURLRequest._(_ret, _lib, retain: true, release: true); } - NSDecimalNumberHandler - initWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_( - int roundingMode, - int scale, - bool exact, - bool overflow, - bool underflow, - bool divideByZero) { - final _ret = _lib._objc_msgSend_624( - _id, - _lib._sel_initWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_1, - roundingMode, - scale, - exact, - overflow, - underflow, - divideByZero); - return NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); + /// ! + /// @property supportsSecureCoding + /// @abstract Indicates that NSURLRequest implements the NSSecureCoding protocol. + /// @result A BOOL value set to YES. + static bool getSupportsSecureCoding(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLRequest1, _lib._sel_supportsSecureCoding1); } - static NSDecimalNumberHandler - decimalNumberHandlerWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_( - PedometerBindings _lib, - int roundingMode, - int scale, - bool exact, - bool overflow, - bool underflow, - bool divideByZero) { - final _ret = _lib._objc_msgSend_624( - _lib._class_NSDecimalNumberHandler1, - _lib._sel_decimalNumberHandlerWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_1, - roundingMode, - scale, - exact, - overflow, - underflow, - divideByZero); - return NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); - } - - static NSDecimalNumberHandler new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSDecimalNumberHandler1, _lib._sel_new1); - return NSDecimalNumberHandler._(_ret, _lib, retain: false, release: true); + /// ! + /// @method requestWithURL:cachePolicy:timeoutInterval: + /// @abstract Allocates and initializes a NSURLRequest with the given + /// URL and cache policy. + /// @param URL The URL for the request. + /// @param cachePolicy The cache policy for the request. + /// @param timeoutInterval The timeout interval for the request. See the + /// commentary for the timeoutInterval for more information on + /// timeout intervals. + /// @result A newly-created and autoreleased NSURLRequest instance. + static NSURLRequest requestWithURL_cachePolicy_timeoutInterval_( + PedometerBindings _lib, + NSURL URL, + int cachePolicy, + double timeoutInterval) { + final _ret = _lib._objc_msgSend_712( + _lib._class_NSURLRequest1, + _lib._sel_requestWithURL_cachePolicy_timeoutInterval_1, + URL._id, + cachePolicy, + timeoutInterval); + return NSURLRequest._(_ret, _lib, retain: true, release: true); } - static NSDecimalNumberHandler alloc(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSDecimalNumberHandler1, _lib._sel_alloc1); - return NSDecimalNumberHandler._(_ret, _lib, retain: false, release: true); + /// ! + /// @method initWithURL: + /// @abstract Initializes an NSURLRequest with the given URL. + /// @discussion Default values are used for cache policy + /// (NSURLRequestUseProtocolCachePolicy) and timeout interval (60 + /// seconds). + /// @param URL The URL for the request. + /// @result An initialized NSURLRequest. + NSURLRequest initWithURL_(NSURL URL) { + final _ret = _lib._objc_msgSend_711(_id, _lib._sel_initWithURL_1, URL._id); + return NSURLRequest._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - PedometerBindings _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSDecimalNumberHandler1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + /// ! + /// @method initWithURL: + /// @abstract Initializes an NSURLRequest with the given URL and + /// cache policy. + /// @discussion This is the designated initializer for the + /// NSURLRequest class. + /// @param URL The URL for the request. + /// @param cachePolicy The cache policy for the request. + /// @param timeoutInterval The timeout interval for the request. See the + /// commentary for the timeoutInterval for more information on + /// timeout intervals. + /// @result An initialized NSURLRequest. + NSURLRequest initWithURL_cachePolicy_timeoutInterval_( + NSURL URL, int cachePolicy, double timeoutInterval) { + final _ret = _lib._objc_msgSend_712( + _id, + _lib._sel_initWithURL_cachePolicy_timeoutInterval_1, + URL._id, + cachePolicy, + timeoutInterval); + return NSURLRequest._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_( - PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSDecimalNumberHandler1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + /// ! + /// @abstract Returns the URL of the receiver. + /// @result The URL of the receiver. + NSURL? get URL { + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_URL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSDecimalNumberHandler1, - _lib._sel_accessInstanceVariablesDirectly1); + /// ! + /// @abstract Returns the cache policy of the receiver. + /// @result The cache policy of the receiver. + int get cachePolicy { + return _lib._objc_msgSend_713(_id, _lib._sel_cachePolicy1); } - static bool useStoredAccessor(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSDecimalNumberHandler1, _lib._sel_useStoredAccessor1); + /// ! + /// @abstract Returns the timeout interval of the receiver. + /// @discussion The timeout interval specifies the limit on the idle + /// interval allotted to a request in the process of loading. The "idle + /// interval" is defined as the period of time that has passed since the + /// last instance of load activity occurred for a request that is in the + /// process of loading. Hence, when an instance of load activity occurs + /// (e.g. bytes are received from the network for a request), the idle + /// interval for a request is reset to 0. If the idle interval ever + /// becomes greater than or equal to the timeout interval, the request + /// is considered to have timed out. This timeout interval is measured + /// in seconds. + /// @result The timeout interval of the receiver. + double get timeoutInterval { + return _lib._objc_msgSend_156(_id, _lib._sel_timeoutInterval1); } - static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSDecimalNumberHandler1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract The main document URL associated with this load. + /// @discussion This URL is used for the cookie "same domain as main + /// document" policy, and attributing the request as a sub-resource + /// of a user-specified URL. There may also be other future uses. + /// See setMainDocumentURL: + /// @result The main document URL. + NSURL? get mainDocumentURL { + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_mainDocumentURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSDecimalNumberHandler1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + /// ! + /// @abstract Returns the NSURLRequestNetworkServiceType associated with this request. + /// @discussion This will return NSURLNetworkServiceTypeDefault for requests that have + /// not explicitly set a networkServiceType (using the setNetworkServiceType method). + /// @result The NSURLRequestNetworkServiceType associated with this request. + int get networkServiceType { + return _lib._objc_msgSend_714(_id, _lib._sel_networkServiceType1); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSDecimalNumberHandler1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + /// ! + /// @abstract returns whether a connection created with this request is allowed to use + /// the built in cellular radios (if present). + /// @result YES if the receiver is allowed to use the built in cellular radios to + /// satisfy the request, NO otherwise. + bool get allowsCellularAccess { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsCellularAccess1); } - static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71(_lib._class_NSDecimalNumberHandler1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract returns whether a connection created with this request is allowed to use + /// network interfaces which have been marked as expensive. + /// @result YES if the receiver is allowed to use an interface marked as expensive to + /// satisfy the request, NO otherwise. + bool get allowsExpensiveNetworkAccess { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsExpensiveNetworkAccess1); } - static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSDecimalNumberHandler1, - _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract returns whether a connection created with this request is allowed to use + /// network interfaces which have been marked as constrained. + /// @result YES if the receiver is allowed to use an interface marked as constrained to + /// satisfy the request, NO otherwise. + bool get allowsConstrainedNetworkAccess { + return _lib._objc_msgSend_12( + _id, _lib._sel_allowsConstrainedNetworkAccess1); } -} -/// Type definitions -abstract class NSRoundingMode { - static const int NSRoundPlain = 0; - static const int NSRoundDown = 1; - static const int NSRoundUp = 2; - static const int NSRoundBankers = 3; -} + /// ! + /// @abstract returns whether we assume that server supports HTTP/3. Enables QUIC + /// racing without HTTP/3 service discovery. + /// @result YES if server endpoint is known to support HTTP/3. Defaults to NO. + /// The default may be YES in a future OS update. + bool get assumesHTTP3Capable { + return _lib._objc_msgSend_12(_id, _lib._sel_assumesHTTP3Capable1); + } -class NSScanner extends NSObject { - NSScanner._(ffi.Pointer id, PedometerBindings lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + /// ! + /// @abstract Returns the NSURLRequestAttribution associated with this request. + /// @discussion This will return NSURLRequestAttributionDeveloper for requests that + /// have not explicitly set an attribution. + /// @result The NSURLRequestAttribution associated with this request. + int get attribution { + return _lib._objc_msgSend_715(_id, _lib._sel_attribution1); + } - /// Returns a [NSScanner] that points to the same underlying object as [other]. - static NSScanner castFrom(T other) { - return NSScanner._(other._id, other._lib, retain: true, release: true); + /// ! + /// @abstract sets whether a request is required to do DNSSEC validation during DNS lookup. + /// @discussion YES, if the DNS lookup for this request should require DNSSEC validation, + /// No otherwise. Defaults to NO. + bool get requiresDNSSECValidation { + return _lib._objc_msgSend_12(_id, _lib._sel_requiresDNSSECValidation1); } - /// Returns a [NSScanner] that wraps the given raw object pointer. - static NSScanner castFromPointer( - PedometerBindings lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSScanner._(other, lib, retain: retain, release: release); + /// ! + /// @abstract Returns the HTTP request method of the receiver. + /// @result the HTTP request method of the receiver. + NSString? get HTTPMethod { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_HTTPMethod1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - /// Returns whether [obj] is an instance of [NSScanner]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSScanner1); + /// ! + /// @abstract Returns a dictionary containing all the HTTP header fields + /// of the receiver. + /// @result a dictionary containing all the HTTP header fields of the + /// receiver. + NSDictionary? get allHTTPHeaderFields { + final _ret = _lib._objc_msgSend_340(_id, _lib._sel_allHTTPHeaderFields1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSString? get string { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_string1); + /// ! + /// @method valueForHTTPHeaderField: + /// @abstract Returns the value which corresponds to the given header + /// field. Note that, in keeping with the HTTP RFC, HTTP header field + /// names are case-insensitive. + /// @param field the header field name to use for the lookup + /// (case-insensitive). + /// @result the value associated with the given header field, or nil if + /// there is no value associated with the given header field. + NSString? valueForHTTPHeaderField_(NSString field) { + final _ret = _lib._objc_msgSend_276( + _id, _lib._sel_valueForHTTPHeaderField_1, field._id); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - int get scanLocation { - return _lib._objc_msgSend_10(_id, _lib._sel_scanLocation1); + /// ! + /// @abstract Returns the request body data of the receiver. + /// @discussion This data is sent as the message body of the request, as + /// in done in an HTTP POST request. + /// @result The request body data of the receiver. + NSData? get HTTPBody { + final _ret = _lib._objc_msgSend_227(_id, _lib._sel_HTTPBody1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - set scanLocation(int value) { - _lib._objc_msgSend_444(_id, _lib._sel_setScanLocation_1, value); + /// ! + /// @abstract Returns the request body stream of the receiver + /// if any has been set + /// @discussion The stream is returned for examination only; it is + /// not safe for the caller to manipulate the stream in any way. Also + /// note that the HTTPBodyStream and HTTPBody are mutually exclusive - only + /// one can be set on a given request. Also note that the body stream is + /// preserved across copies, but is LOST when the request is coded via the + /// NSCoding protocol + /// @result The request body stream of the receiver. + NSInputStream? get HTTPBodyStream { + final _ret = _lib._objc_msgSend_725(_id, _lib._sel_HTTPBodyStream1); + return _ret.address == 0 + ? null + : NSInputStream._(_ret, _lib, retain: true, release: true); + } + + /// ! + /// @abstract Determine whether default cookie handling will happen for + /// this request. + /// @discussion NOTE: This value is not used prior to 10.3 + /// @result YES if cookies will be sent with and set for this request; + /// otherwise NO. + bool get HTTPShouldHandleCookies { + return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldHandleCookies1); + } + + /// ! + /// @abstract Reports whether the receiver is not expected to wait for the + /// previous response before transmitting. + /// @result YES if the receiver should transmit before the previous response + /// is received. NO if the receiver should wait for the previous response + /// before transmitting. + bool get HTTPShouldUsePipelining { + return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldUsePipelining1); + } + + @override + NSURLRequest init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLRequest._(_ret, _lib, retain: true, release: true); + } + + static NSURLRequest new1(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLRequest1, _lib._sel_new1); + return NSURLRequest._(_ret, _lib, retain: false, release: true); + } + + static NSURLRequest allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLRequest1, _lib._sel_allocWithZone_1, zone); + return NSURLRequest._(_ret, _lib, retain: false, release: true); + } + + static NSURLRequest alloc(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLRequest1, _lib._sel_alloc1); + return NSURLRequest._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + PedometerBindings _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSURLRequest1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument?._id ?? ffi.nullptr); + } + + static void cancelPreviousPerformRequestsWithTarget_( + PedometerBindings _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSURLRequest1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLRequest1, _lib._sel_accessInstanceVariablesDirectly1); } - NSCharacterSet? get charactersToBeSkipped { - final _ret = _lib._objc_msgSend_265(_id, _lib._sel_charactersToBeSkipped1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + static bool useStoredAccessor(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLRequest1, _lib._sel_useStoredAccessor1); } - set charactersToBeSkipped(NSCharacterSet? value) { - _lib._objc_msgSend_626( - _id, _lib._sel_setCharactersToBeSkipped_1, value?._id ?? ffi.nullptr); + static NSSet keyPathsForValuesAffectingValueForKey_( + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSURLRequest1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); + return NSSet._(_ret, _lib, retain: true, release: true); } - bool get caseSensitive { - return _lib._objc_msgSend_12(_id, _lib._sel_caseSensitive1); + static bool automaticallyNotifiesObserversForKey_( + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSURLRequest1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } - set caseSensitive(bool value) { - _lib._objc_msgSend_453(_id, _lib._sel_setCaseSensitive_1, value); + static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77( + _lib._class_NSURLRequest1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSObject get locale { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_locale1); + static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLRequest1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } +} - set locale(NSObject value) { - _lib._objc_msgSend_348(_id, _lib._sel_setLocale_1, value._id); - } +/// ! +/// @enum NSURLRequestCachePolicy +/// +/// @discussion The NSURLRequestCachePolicy enum defines constants that +/// can be used to specify the type of interactions that take place with +/// the caching system when the URL loading system processes a request. +/// Specifically, these constants cover interactions that have to do +/// with whether already-existing cache data is returned to satisfy a +/// URL load request. +/// +/// @constant NSURLRequestUseProtocolCachePolicy Specifies that the +/// caching logic defined in the protocol implementation, if any, is +/// used for a particular URL load request. This is the default policy +/// for URL load requests. +/// +/// @constant NSURLRequestReloadIgnoringLocalCacheData Specifies that the +/// data for the URL load should be loaded from the origin source. No +/// existing local cache data, regardless of its freshness or validity, +/// should be used to satisfy a URL load request. +/// +/// @constant NSURLRequestReloadIgnoringLocalAndRemoteCacheData Specifies that +/// not only should the local cache data be ignored, but that proxies and +/// other intermediates should be instructed to disregard their caches +/// so far as the protocol allows. +/// +/// @constant NSURLRequestReloadIgnoringCacheData Older name for +/// NSURLRequestReloadIgnoringLocalCacheData. +/// +/// @constant NSURLRequestReturnCacheDataElseLoad Specifies that the +/// existing cache data should be used to satisfy a URL load request, +/// regardless of its age or expiration date. However, if there is no +/// existing data in the cache corresponding to a URL load request, +/// the URL is loaded from the origin source. +/// +/// @constant NSURLRequestReturnCacheDataDontLoad Specifies that the +/// existing cache data should be used to satisfy a URL load request, +/// regardless of its age or expiration date. However, if there is no +/// existing data in the cache corresponding to a URL load request, no +/// attempt is made to load the URL from the origin source, and the +/// load is considered to have failed. This constant specifies a +/// behavior that is similar to an "offline" mode. +/// +/// @constant NSURLRequestReloadRevalidatingCacheData Specifies that +/// the existing cache data may be used provided the origin source +/// confirms its validity, otherwise the URL is loaded from the +/// origin source. +abstract class NSURLRequestCachePolicy { + static const int NSURLRequestUseProtocolCachePolicy = 0; + static const int NSURLRequestReloadIgnoringLocalCacheData = 1; + static const int NSURLRequestReloadIgnoringLocalAndRemoteCacheData = 4; + static const int NSURLRequestReloadIgnoringCacheData = 1; + static const int NSURLRequestReturnCacheDataElseLoad = 2; + static const int NSURLRequestReturnCacheDataDontLoad = 3; + static const int NSURLRequestReloadRevalidatingCacheData = 5; +} - NSScanner initWithString_(NSString? string) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, string?._id ?? ffi.nullptr); - return NSScanner._(_ret, _lib, retain: true, release: true); - } +/// ! +/// @enum NSURLRequestNetworkServiceType +/// +/// @discussion The NSURLRequestNetworkServiceType enum defines constants that +/// can be used to specify the service type to associate with this request. The +/// service type is used to provide the networking layers a hint of the purpose +/// of the request. +/// +/// @constant NSURLNetworkServiceTypeDefault Is the default value for an NSURLRequest +/// when created. This value should be left unchanged for the vast majority of requests. +/// +/// @constant NSURLNetworkServiceTypeVoIP Specifies that the request is for voice over IP +/// control traffic. +/// +/// @constant NSURLNetworkServiceTypeVideo Specifies that the request is for video +/// traffic. +/// +/// @constant NSURLNetworkServiceTypeBackground Specifies that the request is for background +/// traffic (such as a file download). +/// +/// @constant NSURLNetworkServiceTypeVoice Specifies that the request is for voice data. +/// +/// @constant NSURLNetworkServiceTypeResponsiveData Specifies that the request is for responsive (time sensitive) data. +/// +/// @constant NSURLNetworkServiceTypeAVStreaming Specifies that the request is streaming audio/video data. +/// +/// @constant NSURLNetworkServiceTypeResponsiveAV Specifies that the request is for responsive (time sensitive) audio/video data. +/// +/// @constant NSURLNetworkServiceTypeCallSignaling Specifies that the request is for call signaling. +abstract class NSURLRequestNetworkServiceType { + static const int NSURLNetworkServiceTypeDefault = 0; + static const int NSURLNetworkServiceTypeVoIP = 1; + static const int NSURLNetworkServiceTypeVideo = 2; + static const int NSURLNetworkServiceTypeBackground = 3; + static const int NSURLNetworkServiceTypeVoice = 4; + static const int NSURLNetworkServiceTypeResponsiveData = 6; + static const int NSURLNetworkServiceTypeAVStreaming = 8; + static const int NSURLNetworkServiceTypeResponsiveAV = 9; + static const int NSURLNetworkServiceTypeCallSignaling = 11; +} - bool scanInt_(ffi.Pointer result) { - return _lib._objc_msgSend_627(_id, _lib._sel_scanInt_1, result); - } +/// ! +/// @enum NSURLRequestAttribution +/// +/// @discussion The NSURLRequestAttribution enum is used to indicate whether the +/// user or developer specified the URL. +/// +/// @constant NSURLRequestAttributionDeveloper Indicates that the URL was specified +/// by the developer. This is the default value for an NSURLRequest when created. +/// +/// @constant NSURLRequestAttributionUser Indicates that the URL was specified by +/// the user. +abstract class NSURLRequestAttribution { + static const int NSURLRequestAttributionDeveloper = 0; + static const int NSURLRequestAttributionUser = 1; +} - bool scanInteger_(ffi.Pointer result) { - return _lib._objc_msgSend_628(_id, _lib._sel_scanInteger_1, result); - } +class NSInputStream extends NSStream { + NSInputStream._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - bool scanLongLong_(ffi.Pointer result) { - return _lib._objc_msgSend_629(_id, _lib._sel_scanLongLong_1, result); + /// Returns a [NSInputStream] that points to the same underlying object as [other]. + static NSInputStream castFrom(T other) { + return NSInputStream._(other._id, other._lib, retain: true, release: true); } - bool scanUnsignedLongLong_(ffi.Pointer result) { - return _lib._objc_msgSend_630( - _id, _lib._sel_scanUnsignedLongLong_1, result); + /// Returns a [NSInputStream] that wraps the given raw object pointer. + static NSInputStream castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSInputStream._(other, lib, retain: retain, release: release); } - bool scanFloat_(ffi.Pointer result) { - return _lib._objc_msgSend_631(_id, _lib._sel_scanFloat_1, result); + /// Returns whether [obj] is an instance of [NSInputStream]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSInputStream1); } - bool scanDouble_(ffi.Pointer result) { - return _lib._objc_msgSend_632(_id, _lib._sel_scanDouble_1, result); + int read_maxLength_(ffi.Pointer buffer, int len) { + return _lib._objc_msgSend_718(_id, _lib._sel_read_maxLength_1, buffer, len); } - bool scanHexInt_(ffi.Pointer result) { - return _lib._objc_msgSend_633(_id, _lib._sel_scanHexInt_1, result); + bool getBuffer_length_(ffi.Pointer> buffer, + ffi.Pointer len) { + return _lib._objc_msgSend_723( + _id, _lib._sel_getBuffer_length_1, buffer, len); } - bool scanHexLongLong_(ffi.Pointer result) { - return _lib._objc_msgSend_630(_id, _lib._sel_scanHexLongLong_1, result); + bool get hasBytesAvailable { + return _lib._objc_msgSend_12(_id, _lib._sel_hasBytesAvailable1); } - bool scanHexFloat_(ffi.Pointer result) { - return _lib._objc_msgSend_631(_id, _lib._sel_scanHexFloat_1, result); + NSInputStream initWithData_(NSData data) { + final _ret = + _lib._objc_msgSend_220(_id, _lib._sel_initWithData_1, data._id); + return NSInputStream._(_ret, _lib, retain: true, release: true); } - bool scanHexDouble_(ffi.Pointer result) { - return _lib._objc_msgSend_632(_id, _lib._sel_scanHexDouble_1, result); + NSInputStream? initWithURL_(NSURL url) { + final _ret = _lib._objc_msgSend_218(_id, _lib._sel_initWithURL_1, url._id); + return _ret.address == 0 + ? null + : NSInputStream._(_ret, _lib, retain: true, release: true); } - bool scanString_intoString_( - NSString? string, ffi.Pointer> result) { - return _lib._objc_msgSend_634(_id, _lib._sel_scanString_intoString_1, - string?._id ?? ffi.nullptr, result); + NSInputStream? initWithFileAtPath_(NSString path) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_initWithFileAtPath_1, path._id); + return _ret.address == 0 + ? null + : NSInputStream._(_ret, _lib, retain: true, release: true); } - bool scanCharactersFromSet_intoString_( - NSCharacterSet? set, ffi.Pointer> result) { - return _lib._objc_msgSend_635( - _id, - _lib._sel_scanCharactersFromSet_intoString_1, - set?._id ?? ffi.nullptr, - result); + static NSInputStream? inputStreamWithData_( + PedometerBindings _lib, NSData data) { + final _ret = _lib._objc_msgSend_724( + _lib._class_NSInputStream1, _lib._sel_inputStreamWithData_1, data._id); + return _ret.address == 0 + ? null + : NSInputStream._(_ret, _lib, retain: true, release: true); } - bool scanUpToString_intoString_( - NSString? string, ffi.Pointer> result) { - return _lib._objc_msgSend_634(_id, _lib._sel_scanUpToString_intoString_1, - string?._id ?? ffi.nullptr, result); + static NSInputStream? inputStreamWithFileAtPath_( + PedometerBindings _lib, NSString path) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSInputStream1, + _lib._sel_inputStreamWithFileAtPath_1, path._id); + return _ret.address == 0 + ? null + : NSInputStream._(_ret, _lib, retain: true, release: true); } - bool scanUpToCharactersFromSet_intoString_( - NSCharacterSet? set, ffi.Pointer> result) { - return _lib._objc_msgSend_635( - _id, - _lib._sel_scanUpToCharactersFromSet_intoString_1, - set?._id ?? ffi.nullptr, - result); + static NSInputStream? inputStreamWithURL_(PedometerBindings _lib, NSURL url) { + final _ret = _lib._objc_msgSend_218( + _lib._class_NSInputStream1, _lib._sel_inputStreamWithURL_1, url._id); + return _ret.address == 0 + ? null + : NSInputStream._(_ret, _lib, retain: true, release: true); } - bool get atEnd { - return _lib._objc_msgSend_12(_id, _lib._sel_isAtEnd1); + static void getStreamsToHostWithName_port_inputStream_outputStream_( + PedometerBindings _lib, + NSString hostname, + int port, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + _lib._objc_msgSend_721( + _lib._class_NSInputStream1, + _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, + hostname._id, + port, + inputStream, + outputStream); } - static NSScanner scannerWithString_( - PedometerBindings _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSScanner1, - _lib._sel_scannerWithString_1, string?._id ?? ffi.nullptr); - return NSScanner._(_ret, _lib, retain: true, release: true); + static void getBoundStreamsWithBufferSize_inputStream_outputStream_( + PedometerBindings _lib, + int bufferSize, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + _lib._objc_msgSend_722( + _lib._class_NSInputStream1, + _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, + bufferSize, + inputStream, + outputStream); } - static NSObject localizedScannerWithString_( - PedometerBindings _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSScanner1, - _lib._sel_localizedScannerWithString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + @override + NSInputStream init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSInputStream._(_ret, _lib, retain: true, release: true); } - bool scanDecimal_(ffi.Pointer dcm) { - return _lib._objc_msgSend_636(_id, _lib._sel_scanDecimal_1, dcm); + static NSInputStream new1(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSInputStream1, _lib._sel_new1); + return NSInputStream._(_ret, _lib, retain: false, release: true); } - static NSScanner new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSScanner1, _lib._sel_new1); - return NSScanner._(_ret, _lib, retain: false, release: true); + static NSInputStream allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSInputStream1, _lib._sel_allocWithZone_1, zone); + return NSInputStream._(_ret, _lib, retain: false, release: true); } - static NSScanner alloc(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSScanner1, _lib._sel_alloc1); - return NSScanner._(_ret, _lib, retain: false, release: true); + static NSInputStream alloc(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSInputStream1, _lib._sel_alloc1); + return NSInputStream._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSScanner1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSInputStream1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSScanner1, + _lib._objc_msgSend_15(_lib._class_NSInputStream1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSScanner1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSInputStream1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSScanner1, _lib._sel_useStoredAccessor1); + _lib._class_NSInputStream1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSScanner1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSInputStream1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSScanner1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSScanner1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSInputStream1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSScanner1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_NSInputStream1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSScanner1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSInputStream1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -final class NSDecimal extends ffi.Opaque {} - -class NSException extends NSObject { - NSException._(ffi.Pointer id, PedometerBindings lib, +class NSStream extends NSObject { + NSStream._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSException] that points to the same underlying object as [other]. - static NSException castFrom(T other) { - return NSException._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSStream] that points to the same underlying object as [other]. + static NSStream castFrom(T other) { + return NSStream._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSException] that wraps the given raw object pointer. - static NSException castFromPointer( + /// Returns a [NSStream] that wraps the given raw object pointer. + static NSStream castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSException._(other, lib, retain: retain, release: release); + return NSStream._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSException]. + /// Returns whether [obj] is an instance of [NSStream]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSException1); - } - - static NSException exceptionWithName_reason_userInfo_(PedometerBindings _lib, - NSString name, NSString? reason, NSDictionary? userInfo) { - final _ret = _lib._objc_msgSend_637( - _lib._class_NSException1, - _lib._sel_exceptionWithName_reason_userInfo_1, - name._id, - reason?._id ?? ffi.nullptr, - userInfo?._id ?? ffi.nullptr); - return NSException._(_ret, _lib, retain: true, release: true); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSStream1); } - NSException initWithName_reason_userInfo_( - NSString aName, NSString? aReason, NSDictionary? aUserInfo) { - final _ret = _lib._objc_msgSend_638( - _id, - _lib._sel_initWithName_reason_userInfo_1, - aName._id, - aReason?._id ?? ffi.nullptr, - aUserInfo?._id ?? ffi.nullptr); - return NSException._(_ret, _lib, retain: true, release: true); + void open() { + _lib._objc_msgSend_1(_id, _lib._sel_open1); } - NSString get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); - return NSString._(_ret, _lib, retain: true, release: true); + void close() { + _lib._objc_msgSend_1(_id, _lib._sel_close1); } - NSString? get reason { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_reason1); + NSObject? get delegate { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_delegate1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSObject._(_ret, _lib, retain: true, release: true); } - NSDictionary? get userInfo { - final _ret = _lib._objc_msgSend_324(_id, _lib._sel_userInfo1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + set delegate(NSObject? value) { + return _lib._objc_msgSend_367( + _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } - NSArray? get callStackReturnAddresses { + NSObject? propertyForKey_(NSString key) { final _ret = - _lib._objc_msgSend_71(_id, _lib._sel_callStackReturnAddresses1); + _lib._objc_msgSend_38(_id, _lib._sel_propertyForKey_1, key._id); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSObject._(_ret, _lib, retain: true, release: true); + } + + bool setProperty_forKey_(NSObject? property, NSString key) { + return _lib._objc_msgSend_716(_id, _lib._sel_setProperty_forKey_1, + property?._id ?? ffi.nullptr, key._id); + } + + void scheduleInRunLoop_forMode_(NSRunLoop aRunLoop, NSString mode) { + _lib._objc_msgSend_680( + _id, _lib._sel_scheduleInRunLoop_forMode_1, aRunLoop._id, mode._id); + } + + void removeFromRunLoop_forMode_(NSRunLoop aRunLoop, NSString mode) { + _lib._objc_msgSend_680( + _id, _lib._sel_removeFromRunLoop_forMode_1, aRunLoop._id, mode._id); + } + + int get streamStatus { + return _lib._objc_msgSend_717(_id, _lib._sel_streamStatus1); } - NSArray? get callStackSymbols { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_callStackSymbols1); + NSError? get streamError { + final _ret = _lib._objc_msgSend_263(_id, _lib._sel_streamError1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSError._(_ret, _lib, retain: true, release: true); } - void raise() { - return _lib._objc_msgSend_1(_id, _lib._sel_raise1); + static void getStreamsToHostWithName_port_inputStream_outputStream_( + PedometerBindings _lib, + NSString hostname, + int port, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + _lib._objc_msgSend_721( + _lib._class_NSStream1, + _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, + hostname._id, + port, + inputStream, + outputStream); } - static void raise_format_( - PedometerBindings _lib, NSString name, NSString? format) { - return _lib._objc_msgSend_639(_lib._class_NSException1, - _lib._sel_raise_format_1, name._id, format?._id ?? ffi.nullptr); + static void getBoundStreamsWithBufferSize_inputStream_outputStream_( + PedometerBindings _lib, + int bufferSize, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + _lib._objc_msgSend_722( + _lib._class_NSStream1, + _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, + bufferSize, + inputStream, + outputStream); } - static void raise_format_arguments_(PedometerBindings _lib, NSString name, - NSString? format, ffi.Pointer argList) { - return _lib._objc_msgSend_640( - _lib._class_NSException1, - _lib._sel_raise_format_arguments_1, - name._id, - format?._id ?? ffi.nullptr, - argList); + @override + NSStream init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSStream._(_ret, _lib, retain: true, release: true); } - static NSException new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSException1, _lib._sel_new1); - return NSException._(_ret, _lib, retain: false, release: true); + static NSStream new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSStream1, _lib._sel_new1); + return NSStream._(_ret, _lib, retain: false, release: true); } - static NSException alloc(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSException1, _lib._sel_alloc1); - return NSException._(_ret, _lib, retain: false, release: true); + static NSStream allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSStream1, _lib._sel_allocWithZone_1, zone); + return NSStream._(_ret, _lib, retain: false, release: true); + } + + static NSStream alloc(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSStream1, _lib._sel_alloc1); + return NSStream._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSException1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSStream1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSException1, + _lib._objc_msgSend_15(_lib._class_NSStream1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSException1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSStream1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSException1, _lib._sel_useStoredAccessor1); + _lib._class_NSStream1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSException1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSStream1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSException1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSException1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSStream1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSException1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_NSStream1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSException1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSStream1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSRunLoop extends NSObject { - NSRunLoop._(ffi.Pointer id, PedometerBindings lib, +abstract class NSStreamStatus { + static const int NSStreamStatusNotOpen = 0; + static const int NSStreamStatusOpening = 1; + static const int NSStreamStatusOpen = 2; + static const int NSStreamStatusReading = 3; + static const int NSStreamStatusWriting = 4; + static const int NSStreamStatusAtEnd = 5; + static const int NSStreamStatusClosed = 6; + static const int NSStreamStatusError = 7; +} + +class NSOutputStream extends NSStream { + NSOutputStream._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSRunLoop] that points to the same underlying object as [other]. - static NSRunLoop castFrom(T other) { - return NSRunLoop._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSOutputStream] that points to the same underlying object as [other]. + static NSOutputStream castFrom(T other) { + return NSOutputStream._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSRunLoop] that wraps the given raw object pointer. - static NSRunLoop castFromPointer( + /// Returns a [NSOutputStream] that wraps the given raw object pointer. + static NSOutputStream castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSRunLoop._(other, lib, retain: retain, release: release); + return NSOutputStream._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSRunLoop]. + /// Returns whether [obj] is an instance of [NSOutputStream]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSRunLoop1); - } - - static NSRunLoop? getCurrentRunLoop(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_641( - _lib._class_NSRunLoop1, _lib._sel_currentRunLoop1); - return _ret.address == 0 - ? null - : NSRunLoop._(_ret, _lib, retain: true, release: true); - } - - static NSRunLoop? getMainRunLoop(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_641(_lib._class_NSRunLoop1, _lib._sel_mainRunLoop1); - return _ret.address == 0 - ? null - : NSRunLoop._(_ret, _lib, retain: true, release: true); - } - - NSString get currentMode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currentMode1); - return NSString._(_ret, _lib, retain: true, release: true); - } - - ffi.Pointer<__CFRunLoop> getCFRunLoop() { - return _lib._objc_msgSend_642(_id, _lib._sel_getCFRunLoop1); - } - - void addTimer_forMode_(NSTimer? timer, NSString mode) { - return _lib._objc_msgSend_648( - _id, _lib._sel_addTimer_forMode_1, timer?._id ?? ffi.nullptr, mode._id); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSOutputStream1); } - void addPort_forMode_(NSPort? aPort, NSString mode) { - return _lib._objc_msgSend_654( - _id, _lib._sel_addPort_forMode_1, aPort?._id ?? ffi.nullptr, mode._id); + int write_maxLength_(ffi.Pointer buffer, int len) { + return _lib._objc_msgSend_718( + _id, _lib._sel_write_maxLength_1, buffer, len); } - void removePort_forMode_(NSPort? aPort, NSString mode) { - return _lib._objc_msgSend_654(_id, _lib._sel_removePort_forMode_1, - aPort?._id ?? ffi.nullptr, mode._id); + bool get hasSpaceAvailable { + return _lib._objc_msgSend_12(_id, _lib._sel_hasSpaceAvailable1); } - NSDate limitDateForMode_(NSString mode) { - final _ret = - _lib._objc_msgSend_560(_id, _lib._sel_limitDateForMode_1, mode._id); - return NSDate._(_ret, _lib, retain: true, release: true); + NSOutputStream initToMemory() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_initToMemory1); + return NSOutputStream._(_ret, _lib, retain: true, release: true); } - void acceptInputForMode_beforeDate_(NSString mode, NSDate? limitDate) { - return _lib._objc_msgSend_655( - _id, - _lib._sel_acceptInputForMode_beforeDate_1, - mode._id, - limitDate?._id ?? ffi.nullptr); + NSOutputStream initToBuffer_capacity_( + ffi.Pointer buffer, int capacity) { + final _ret = _lib._objc_msgSend_719( + _id, _lib._sel_initToBuffer_capacity_1, buffer, capacity); + return NSOutputStream._(_ret, _lib, retain: true, release: true); } - void run() { - return _lib._objc_msgSend_1(_id, _lib._sel_run1); + NSOutputStream? initWithURL_append_(NSURL url, bool shouldAppend) { + final _ret = _lib._objc_msgSend_720( + _id, _lib._sel_initWithURL_append_1, url._id, shouldAppend); + return _ret.address == 0 + ? null + : NSOutputStream._(_ret, _lib, retain: true, release: true); } - void runUntilDate_(NSDate? limitDate) { - return _lib._objc_msgSend_465( - _id, _lib._sel_runUntilDate_1, limitDate?._id ?? ffi.nullptr); + NSOutputStream? initToFileAtPath_append_(NSString path, bool shouldAppend) { + final _ret = _lib._objc_msgSend_40( + _id, _lib._sel_initToFileAtPath_append_1, path._id, shouldAppend); + return _ret.address == 0 + ? null + : NSOutputStream._(_ret, _lib, retain: true, release: true); } - bool runMode_beforeDate_(NSString mode, NSDate? limitDate) { - return _lib._objc_msgSend_656(_id, _lib._sel_runMode_beforeDate_1, mode._id, - limitDate?._id ?? ffi.nullptr); + static NSOutputStream outputStreamToMemory(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSOutputStream1, _lib._sel_outputStreamToMemory1); + return NSOutputStream._(_ret, _lib, retain: true, release: true); } - void configureAsServer() { - return _lib._objc_msgSend_1(_id, _lib._sel_configureAsServer1); + static NSOutputStream outputStreamToBuffer_capacity_( + PedometerBindings _lib, ffi.Pointer buffer, int capacity) { + final _ret = _lib._objc_msgSend_719(_lib._class_NSOutputStream1, + _lib._sel_outputStreamToBuffer_capacity_1, buffer, capacity); + return NSOutputStream._(_ret, _lib, retain: true, release: true); } - /// Schedules the execution of a block on the target run loop in given modes. - /// - parameter: modes An array of input modes for which the block may be executed. - /// - parameter: block The block to execute - void performInModes_block_(NSArray? modes, ObjCBlock21 block) { - return _lib._objc_msgSend_657(_id, _lib._sel_performInModes_block_1, - modes?._id ?? ffi.nullptr, block._id); + static NSOutputStream outputStreamToFileAtPath_append_( + PedometerBindings _lib, NSString path, bool shouldAppend) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSOutputStream1, + _lib._sel_outputStreamToFileAtPath_append_1, path._id, shouldAppend); + return NSOutputStream._(_ret, _lib, retain: true, release: true); } - /// Schedules the execution of a block on the target run loop. - /// - parameter: block The block to execute - void performBlock_(ObjCBlock21 block) { - return _lib._objc_msgSend_458(_id, _lib._sel_performBlock_1, block._id); + static NSOutputStream? outputStreamWithURL_append_( + PedometerBindings _lib, NSURL url, bool shouldAppend) { + final _ret = _lib._objc_msgSend_720(_lib._class_NSOutputStream1, + _lib._sel_outputStreamWithURL_append_1, url._id, shouldAppend); + return _ret.address == 0 + ? null + : NSOutputStream._(_ret, _lib, retain: true, release: true); } - void performSelector_target_argument_order_modes_( - ffi.Pointer aSelector, - NSObject target, - NSObject arg, - int order, - NSArray? modes) { - return _lib._objc_msgSend_658( - _id, - _lib._sel_performSelector_target_argument_order_modes_1, - aSelector, - target._id, - arg._id, - order, - modes?._id ?? ffi.nullptr); + static void getStreamsToHostWithName_port_inputStream_outputStream_( + PedometerBindings _lib, + NSString hostname, + int port, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + _lib._objc_msgSend_721( + _lib._class_NSOutputStream1, + _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, + hostname._id, + port, + inputStream, + outputStream); } - void cancelPerformSelector_target_argument_( - ffi.Pointer aSelector, NSObject target, NSObject arg) { - return _lib._objc_msgSend_459( - _id, - _lib._sel_cancelPerformSelector_target_argument_1, - aSelector, - target._id, - arg._id); + static void getBoundStreamsWithBufferSize_inputStream_outputStream_( + PedometerBindings _lib, + int bufferSize, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + _lib._objc_msgSend_722( + _lib._class_NSOutputStream1, + _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, + bufferSize, + inputStream, + outputStream); } - void cancelPerformSelectorsWithTarget_(NSObject target) { - return _lib._objc_msgSend_15( - _id, _lib._sel_cancelPerformSelectorsWithTarget_1, target._id); + @override + NSOutputStream init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSOutputStream._(_ret, _lib, retain: true, release: true); } - static NSRunLoop new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSRunLoop1, _lib._sel_new1); - return NSRunLoop._(_ret, _lib, retain: false, release: true); + static NSOutputStream new1(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSOutputStream1, _lib._sel_new1); + return NSOutputStream._(_ret, _lib, retain: false, release: true); } - static NSRunLoop alloc(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSRunLoop1, _lib._sel_alloc1); - return NSRunLoop._(_ret, _lib, retain: false, release: true); + static NSOutputStream allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSOutputStream1, _lib._sel_allocWithZone_1, zone); + return NSOutputStream._(_ret, _lib, retain: false, release: true); + } + + static NSOutputStream alloc(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSOutputStream1, _lib._sel_alloc1); + return NSOutputStream._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSRunLoop1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSOutputStream1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSRunLoop1, + _lib._objc_msgSend_15(_lib._class_NSOutputStream1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSRunLoop1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSOutputStream1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSRunLoop1, _lib._sel_useStoredAccessor1); + _lib._class_NSOutputStream1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSRunLoop1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSOutputStream1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSRunLoop1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSRunLoop1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSOutputStream1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSRunLoop1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_NSOutputStream1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSRunLoop1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSOutputStream1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -final class __CFRunLoop extends ffi.Opaque {} - -class NSTimer extends NSObject { - NSTimer._(ffi.Pointer id, PedometerBindings lib, +/// ! +/// @class NSURLResponse +/// +/// @abstract An NSURLResponse object represents a URL load response in a +/// manner independent of protocol and URL scheme. +/// +/// @discussion NSURLResponse encapsulates the metadata associated +/// with a URL load. Note that NSURLResponse objects do not contain +/// the actual bytes representing the content of a URL. See +/// NSURLConnection and NSURLConnectionDelegate for more information +/// about receiving the content data for a URL load. +class NSURLResponse extends NSObject { + NSURLResponse._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSTimer] that points to the same underlying object as [other]. - static NSTimer castFrom(T other) { - return NSTimer._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSURLResponse] that points to the same underlying object as [other]. + static NSURLResponse castFrom(T other) { + return NSURLResponse._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSTimer] that wraps the given raw object pointer. - static NSTimer castFromPointer( + /// Returns a [NSURLResponse] that wraps the given raw object pointer. + static NSURLResponse castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSTimer._(other, lib, retain: retain, release: release); + return NSURLResponse._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSTimer]. + /// Returns whether [obj] is an instance of [NSURLResponse]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSTimer1); - } - - static NSTimer timerWithTimeInterval_invocation_repeats_( - PedometerBindings _lib, - double ti, - NSInvocation? invocation, - bool yesOrNo) { - final _ret = _lib._objc_msgSend_643( - _lib._class_NSTimer1, - _lib._sel_timerWithTimeInterval_invocation_repeats_1, - ti, - invocation?._id ?? ffi.nullptr, - yesOrNo); - return NSTimer._(_ret, _lib, retain: true, release: true); - } - - static NSTimer scheduledTimerWithTimeInterval_invocation_repeats_( - PedometerBindings _lib, - double ti, - NSInvocation? invocation, - bool yesOrNo) { - final _ret = _lib._objc_msgSend_643( - _lib._class_NSTimer1, - _lib._sel_scheduledTimerWithTimeInterval_invocation_repeats_1, - ti, - invocation?._id ?? ffi.nullptr, - yesOrNo); - return NSTimer._(_ret, _lib, retain: true, release: true); - } - - static NSTimer timerWithTimeInterval_target_selector_userInfo_repeats_( - PedometerBindings _lib, - double ti, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject userInfo, - bool yesOrNo) { - final _ret = _lib._objc_msgSend_644( - _lib._class_NSTimer1, - _lib._sel_timerWithTimeInterval_target_selector_userInfo_repeats_1, - ti, - aTarget._id, - aSelector, - userInfo._id, - yesOrNo); - return NSTimer._(_ret, _lib, retain: true, release: true); - } - - static NSTimer - scheduledTimerWithTimeInterval_target_selector_userInfo_repeats_( - PedometerBindings _lib, - double ti, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject userInfo, - bool yesOrNo) { - final _ret = _lib._objc_msgSend_644( - _lib._class_NSTimer1, - _lib._sel_scheduledTimerWithTimeInterval_target_selector_userInfo_repeats_1, - ti, - aTarget._id, - aSelector, - userInfo._id, - yesOrNo); - return NSTimer._(_ret, _lib, retain: true, release: true); - } - - /// Creates and returns a new NSTimer object initialized with the specified block object. This timer needs to be scheduled on a run loop (via -[NSRunLoop addTimer:]) before it will fire. - /// - parameter: timeInterval The number of seconds between firings of the timer. If seconds is less than or equal to 0.0, this method chooses the nonnegative value of 0.1 milliseconds instead - /// - parameter: repeats If YES, the timer will repeatedly reschedule itself until invalidated. If NO, the timer will be invalidated after it fires. - /// - parameter: block The execution body of the timer; the timer itself is passed as the parameter to this block when executed to aid in avoiding cyclical references - static NSTimer timerWithTimeInterval_repeats_block_(PedometerBindings _lib, - double interval, bool repeats, ObjCBlock34 block) { - final _ret = _lib._objc_msgSend_645( - _lib._class_NSTimer1, - _lib._sel_timerWithTimeInterval_repeats_block_1, - interval, - repeats, - block._id); - return NSTimer._(_ret, _lib, retain: true, release: true); - } - - /// Creates and returns a new NSTimer object initialized with the specified block object and schedules it on the current run loop in the default mode. - /// - parameter: ti The number of seconds between firings of the timer. If seconds is less than or equal to 0.0, this method chooses the nonnegative value of 0.1 milliseconds instead - /// - parameter: repeats If YES, the timer will repeatedly reschedule itself until invalidated. If NO, the timer will be invalidated after it fires. - /// - parameter: block The execution body of the timer; the timer itself is passed as the parameter to this block when executed to aid in avoiding cyclical references - static NSTimer scheduledTimerWithTimeInterval_repeats_block_( - PedometerBindings _lib, - double interval, - bool repeats, - ObjCBlock34 block) { - final _ret = _lib._objc_msgSend_645( - _lib._class_NSTimer1, - _lib._sel_scheduledTimerWithTimeInterval_repeats_block_1, - interval, - repeats, - block._id); - return NSTimer._(_ret, _lib, retain: true, release: true); - } - - /// Initializes a new NSTimer object using the block as the main body of execution for the timer. This timer needs to be scheduled on a run loop (via -[NSRunLoop addTimer:]) before it will fire. - /// - parameter: fireDate The time at which the timer should first fire. - /// - parameter: interval The number of seconds between firings of the timer. If seconds is less than or equal to 0.0, this method chooses the nonnegative value of 0.1 milliseconds instead - /// - parameter: repeats If YES, the timer will repeatedly reschedule itself until invalidated. If NO, the timer will be invalidated after it fires. - /// - parameter: block The execution body of the timer; the timer itself is passed as the parameter to this block when executed to aid in avoiding cyclical references - NSTimer initWithFireDate_interval_repeats_block_( - NSDate? date, double interval, bool repeats, ObjCBlock34 block) { - final _ret = _lib._objc_msgSend_646( - _id, - _lib._sel_initWithFireDate_interval_repeats_block_1, - date?._id ?? ffi.nullptr, - interval, - repeats, - block._id); - return NSTimer._(_ret, _lib, retain: true, release: true); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLResponse1); } - NSTimer initWithFireDate_interval_target_selector_userInfo_repeats_( - NSDate? date, - double ti, - NSObject t, - ffi.Pointer s, - NSObject ui, - bool rep) { - final _ret = _lib._objc_msgSend_647( + /// ! + /// @method initWithURL:MIMEType:expectedContentLength:textEncodingName: + /// @abstract Initialize an NSURLResponse with the provided values. + /// @param URL the URL + /// @param MIMEType the MIME content type of the response + /// @param length the expected content length of the associated data + /// @param name the name of the text encoding for the associated data, if applicable, else nil + /// @result The initialized NSURLResponse. + /// @discussion This is the designated initializer for NSURLResponse. + NSURLResponse initWithURL_MIMEType_expectedContentLength_textEncodingName_( + NSURL URL, NSString? MIMEType, int length, NSString? name) { + final _ret = _lib._objc_msgSend_727( _id, - _lib._sel_initWithFireDate_interval_target_selector_userInfo_repeats_1, - date?._id ?? ffi.nullptr, - ti, - t._id, - s, - ui._id, - rep); - return NSTimer._(_ret, _lib, retain: true, release: true); - } - - void fire() { - return _lib._objc_msgSend_1(_id, _lib._sel_fire1); + _lib._sel_initWithURL_MIMEType_expectedContentLength_textEncodingName_1, + URL._id, + MIMEType?._id ?? ffi.nullptr, + length, + name?._id ?? ffi.nullptr); + return NSURLResponse._(_ret, _lib, retain: true, release: true); } - NSDate? get fireDate { - final _ret = _lib._objc_msgSend_154(_id, _lib._sel_fireDate1); + /// ! + /// @abstract Returns the URL of the receiver. + /// @result The URL of the receiver. + NSURL? get URL { + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_URL1); return _ret.address == 0 ? null - : NSDate._(_ret, _lib, retain: true, release: true); - } - - set fireDate(NSDate? value) { - _lib._objc_msgSend_608( - _id, _lib._sel_setFireDate_1, value?._id ?? ffi.nullptr); + : NSURL._(_ret, _lib, retain: true, release: true); } - double get timeInterval { - return _lib._objc_msgSend_147(_id, _lib._sel_timeInterval1); + /// ! + /// @abstract Returns the MIME type of the receiver. + /// @discussion The MIME type is based on the information provided + /// from an origin source. However, that value may be changed or + /// corrected by a protocol implementation if it can be determined + /// that the origin server or source reported the information + /// incorrectly or imprecisely. An attempt to guess the MIME type may + /// be made if the origin source did not report any such information. + /// @result The MIME type of the receiver. + NSString? get MIMEType { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_MIMEType1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - double get tolerance { - return _lib._objc_msgSend_147(_id, _lib._sel_tolerance1); + /// ! + /// @abstract Returns the expected content length of the receiver. + /// @discussion Some protocol implementations report a content length + /// as part of delivering load metadata, but not all protocols + /// guarantee the amount of data that will be delivered in actuality. + /// Hence, this method returns an expected amount. Clients should use + /// this value as an advisory, and should be prepared to deal with + /// either more or less data. + /// @result The expected content length of the receiver, or -1 if + /// there is no expectation that can be arrived at regarding expected + /// content length. + int get expectedContentLength { + return _lib._objc_msgSend_189(_id, _lib._sel_expectedContentLength1); } - set tolerance(double value) { - _lib._objc_msgSend_467(_id, _lib._sel_setTolerance_1, value); + /// ! + /// @abstract Returns the name of the text encoding of the receiver. + /// @discussion This name will be the actual string reported by the + /// origin source during the course of performing a protocol-specific + /// URL load. Clients can inspect this string and convert it to an + /// NSStringEncoding or CFStringEncoding using the methods and + /// functions made available in the appropriate framework. + /// @result The name of the text encoding of the receiver, or nil if no + /// text encoding was specified. + NSString? get textEncodingName { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_textEncodingName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void invalidate() { - return _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); + /// ! + /// @abstract Returns a suggested filename if the resource were saved to disk. + /// @discussion The method first checks if the server has specified a filename using the + /// content disposition header. If no valid filename is specified using that mechanism, + /// this method checks the last path component of the URL. If no valid filename can be + /// obtained using the last path component, this method uses the URL's host as the filename. + /// If the URL's host can't be converted to a valid filename, the filename "unknown" is used. + /// In most cases, this method appends the proper file extension based on the MIME type. + /// This method always returns a valid filename. + /// @result A suggested filename to use if saving the resource to disk. + NSString? get suggestedFilename { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_suggestedFilename1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - bool get valid { - return _lib._objc_msgSend_12(_id, _lib._sel_isValid1); + @override + NSURLResponse init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLResponse._(_ret, _lib, retain: true, release: true); } - NSObject get userInfo { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_userInfo1); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSURLResponse new1(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLResponse1, _lib._sel_new1); + return NSURLResponse._(_ret, _lib, retain: false, release: true); } - static NSTimer new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSTimer1, _lib._sel_new1); - return NSTimer._(_ret, _lib, retain: false, release: true); + static NSURLResponse allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLResponse1, _lib._sel_allocWithZone_1, zone); + return NSURLResponse._(_ret, _lib, retain: false, release: true); } - static NSTimer alloc(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSTimer1, _lib._sel_alloc1); - return NSTimer._(_ret, _lib, retain: false, release: true); + static NSURLResponse alloc(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLResponse1, _lib._sel_alloc1); + return NSURLResponse._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSTimer1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSURLResponse1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSTimer1, + _lib._objc_msgSend_15(_lib._class_NSURLResponse1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSTimer1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSURLResponse1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSTimer1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLResponse1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSTimer1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSURLResponse1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSTimer1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSTimer1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSURLResponse1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSTimer1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_NSURLResponse1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSTimer1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSURLResponse1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -void _ObjCBlock34_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); +abstract class NSURLSessionTaskState { + static const int NSURLSessionTaskStateRunning = 0; + static const int NSURLSessionTaskStateSuspended = 1; + static const int NSURLSessionTaskStateCanceling = 2; + static const int NSURLSessionTaskStateCompleted = 3; } -final _ObjCBlock34_closureRegistry = {}; -int _ObjCBlock34_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock34_registerClosure(Function fn) { - final id = ++_ObjCBlock34_closureRegistryIndex; - _ObjCBlock34_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSArray_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi + .NativeFunction arg0)>>() + .asFunction)>()(arg0); +final _ObjCBlock_ffiVoid_NSArray_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_NSArray_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSArray_registerClosure( + void Function(ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSArray_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSArray_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock34_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock34_closureRegistry[block.ref.target.address]!(arg0); -} +void _ObjCBlock_ffiVoid_NSArray_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + _ObjCBlock_ffiVoid_NSArray_closureRegistry[block.ref.target.address]!(arg0); -class ObjCBlock34 extends _ObjCBlockBase { - ObjCBlock34._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSArray extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSArray._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock34.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSArray.fromFunctionPointer( PedometerBindings lib, ffi.Pointer< ffi @@ -46919,11601 +53128,11604 @@ class ObjCBlock34 extends _ObjCBlockBase { : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock34_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSArray_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock34.fromFunction( - PedometerBindings lib, void Function(ffi.Pointer arg0) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSArray.fromFunction( + PedometerBindings lib, void Function(NSArray?) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock34_closureTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSArray_closureTrampoline) .cast(), - _ObjCBlock34_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSArray_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSArray._(arg0, lib, retain: true, release: true)))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } - ffi.Pointer<_ObjCBlock> get pointer => _id; + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSArray.listener( + PedometerBindings lib, void Function(NSArray?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSArray_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSArray_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSArray._(arg0, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>? + _dartFuncListenerTrampoline; + + void call(NSArray? arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>()(_id, arg0?._id ?? ffi.nullptr); } -class NSPort extends NSObject { - NSPort._(ffi.Pointer id, PedometerBindings lib, +class NSIndexPath extends NSObject { + NSIndexPath._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSPort] that points to the same underlying object as [other]. - static NSPort castFrom(T other) { - return NSPort._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSIndexPath] that points to the same underlying object as [other]. + static NSIndexPath castFrom(T other) { + return NSIndexPath._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSPort] that wraps the given raw object pointer. - static NSPort castFromPointer( + /// Returns a [NSIndexPath] that wraps the given raw object pointer. + static NSIndexPath castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSPort._(other, lib, retain: retain, release: release); + return NSIndexPath._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSPort]. + /// Returns whether [obj] is an instance of [NSIndexPath]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSPort1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSIndexPath1); } - static NSPort port(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_649(_lib._class_NSPort1, _lib._sel_port1); - return NSPort._(_ret, _lib, retain: true, release: true); + static NSIndexPath indexPathWithIndex_(PedometerBindings _lib, int index) { + final _ret = _lib._objc_msgSend_57( + _lib._class_NSIndexPath1, _lib._sel_indexPathWithIndex_1, index); + return NSIndexPath._(_ret, _lib, retain: true, release: true); } - void invalidate() { - return _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); + static NSIndexPath indexPathWithIndexes_length_(PedometerBindings _lib, + ffi.Pointer indexes, int length) { + final _ret = _lib._objc_msgSend_734(_lib._class_NSIndexPath1, + _lib._sel_indexPathWithIndexes_length_1, indexes, length); + return NSIndexPath._(_ret, _lib, retain: true, release: true); } - bool get valid { - return _lib._objc_msgSend_12(_id, _lib._sel_isValid1); + NSIndexPath initWithIndexes_length_( + ffi.Pointer indexes, int length) { + final _ret = _lib._objc_msgSend_734( + _id, _lib._sel_initWithIndexes_length_1, indexes, length); + return NSIndexPath._(_ret, _lib, retain: true, release: true); } - void setDelegate_(NSObject? anObject) { - return _lib._objc_msgSend_15( - _id, _lib._sel_setDelegate_1, anObject?._id ?? ffi.nullptr); + NSIndexPath initWithIndex_(int index) { + final _ret = _lib._objc_msgSend_57(_id, _lib._sel_initWithIndex_1, index); + return NSIndexPath._(_ret, _lib, retain: true, release: true); + } + + NSIndexPath indexPathByAddingIndex_(int index) { + final _ret = + _lib._objc_msgSend_735(_id, _lib._sel_indexPathByAddingIndex_1, index); + return NSIndexPath._(_ret, _lib, retain: true, release: true); + } + + NSIndexPath indexPathByRemovingLastIndex() { + final _ret = + _lib._objc_msgSend_736(_id, _lib._sel_indexPathByRemovingLastIndex1); + return NSIndexPath._(_ret, _lib, retain: true, release: true); + } + + int indexAtPosition_(int position) { + return _lib._objc_msgSend_85(_id, _lib._sel_indexAtPosition_1, position); + } + + int get length { + return _lib._objc_msgSend_10(_id, _lib._sel_length1); + } + + /// ! + /// @abstract Copies the indexes stored in this index path from the positions specified by positionRange into indexes. + /// @param indexes Buffer of at least as many NSUIntegers as specified by the length of positionRange. On return, this memory will hold the index path's indexes. + /// @param positionRange A range of valid positions within this index path. If the location plus the length of positionRange is greater than the length of this index path, this method raises an NSRangeException. + /// @discussion + /// It is the developer’s responsibility to allocate the memory for the C array. + void getIndexes_range_( + ffi.Pointer indexes, _NSRange positionRange) { + _lib._objc_msgSend_737( + _id, _lib._sel_getIndexes_range_1, indexes, positionRange); + } + + int compare_(NSIndexPath otherObject) { + return _lib._objc_msgSend_738(_id, _lib._sel_compare_1, otherObject._id); + } + + /// This method is unsafe because it could potentially cause buffer overruns. You should use -getIndexes:range: instead. + void getIndexes_(ffi.Pointer indexes) { + _lib._objc_msgSend_739(_id, _lib._sel_getIndexes_1, indexes); + } + + @override + NSIndexPath init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSIndexPath._(_ret, _lib, retain: true, release: true); + } + + static NSIndexPath new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSIndexPath1, _lib._sel_new1); + return NSIndexPath._(_ret, _lib, retain: false, release: true); } - NSObject delegate() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + static NSIndexPath allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSIndexPath1, _lib._sel_allocWithZone_1, zone); + return NSIndexPath._(_ret, _lib, retain: false, release: true); + } + + static NSIndexPath alloc(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSIndexPath1, _lib._sel_alloc1); + return NSIndexPath._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + PedometerBindings _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSIndexPath1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument?._id ?? ffi.nullptr); + } + + static void cancelPreviousPerformRequestsWithTarget_( + PedometerBindings _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSIndexPath1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSIndexPath1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSIndexPath1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSIndexPath1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSIndexPath1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); + } + + static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77( + _lib._class_NSIndexPath1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSIndexPath1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } +} + +class NSInflectionRule extends NSObject { + NSInflectionRule._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSInflectionRule] that points to the same underlying object as [other]. + static NSInflectionRule castFrom(T other) { + return NSInflectionRule._(other._id, other._lib, + retain: true, release: true); + } - void scheduleInRunLoop_forMode_(NSRunLoop? runLoop, NSString mode) { - return _lib._objc_msgSend_650(_id, _lib._sel_scheduleInRunLoop_forMode_1, - runLoop?._id ?? ffi.nullptr, mode._id); + /// Returns a [NSInflectionRule] that wraps the given raw object pointer. + static NSInflectionRule castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSInflectionRule._(other, lib, retain: retain, release: release); } - void removeFromRunLoop_forMode_(NSRunLoop? runLoop, NSString mode) { - return _lib._objc_msgSend_650(_id, _lib._sel_removeFromRunLoop_forMode_1, - runLoop?._id ?? ffi.nullptr, mode._id); + /// Returns whether [obj] is an instance of [NSInflectionRule]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSInflectionRule1); } - int get reservedSpaceLength { - return _lib._objc_msgSend_10(_id, _lib._sel_reservedSpaceLength1); + @override + NSObject init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSObject._(_ret, _lib, retain: true, release: true); } - bool sendBeforeDate_components_from_reserved_( - NSDate? limitDate, - NSMutableArray? components, - NSPort? receivePort, - int headerSpaceReserved) { - return _lib._objc_msgSend_651( - _id, - _lib._sel_sendBeforeDate_components_from_reserved_1, - limitDate?._id ?? ffi.nullptr, - components?._id ?? ffi.nullptr, - receivePort?._id ?? ffi.nullptr, - headerSpaceReserved); + static NSInflectionRule getAutomaticRule(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_740( + _lib._class_NSInflectionRule1, _lib._sel_automaticRule1); + return NSInflectionRule._(_ret, _lib, retain: true, release: true); } - bool sendBeforeDate_msgid_components_from_reserved_( - NSDate? limitDate, - int msgID, - NSMutableArray? components, - NSPort? receivePort, - int headerSpaceReserved) { - return _lib._objc_msgSend_652( - _id, - _lib._sel_sendBeforeDate_msgid_components_from_reserved_1, - limitDate?._id ?? ffi.nullptr, - msgID, - components?._id ?? ffi.nullptr, - receivePort?._id ?? ffi.nullptr, - headerSpaceReserved); + static bool canInflectLanguage_(PedometerBindings _lib, NSString language) { + return _lib._objc_msgSend_56(_lib._class_NSInflectionRule1, + _lib._sel_canInflectLanguage_1, language._id); } - void addConnection_toRunLoop_forMode_( - NSConnection? conn, NSRunLoop? runLoop, NSString mode) { - return _lib._objc_msgSend_653( - _id, - _lib._sel_addConnection_toRunLoop_forMode_1, - conn?._id ?? ffi.nullptr, - runLoop?._id ?? ffi.nullptr, - mode._id); + static bool getCanInflectPreferredLocalization(PedometerBindings _lib) { + return _lib._objc_msgSend_12(_lib._class_NSInflectionRule1, + _lib._sel_canInflectPreferredLocalization1); } - void removeConnection_fromRunLoop_forMode_( - NSConnection? conn, NSRunLoop? runLoop, NSString mode) { - return _lib._objc_msgSend_653( - _id, - _lib._sel_removeConnection_fromRunLoop_forMode_1, - conn?._id ?? ffi.nullptr, - runLoop?._id ?? ffi.nullptr, - mode._id); + static NSInflectionRule new1(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSInflectionRule1, _lib._sel_new1); + return NSInflectionRule._(_ret, _lib, retain: false, release: true); } - static NSPort new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSPort1, _lib._sel_new1); - return NSPort._(_ret, _lib, retain: false, release: true); + static NSInflectionRule allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSInflectionRule1, _lib._sel_allocWithZone_1, zone); + return NSInflectionRule._(_ret, _lib, retain: false, release: true); } - static NSPort alloc(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSPort1, _lib._sel_alloc1); - return NSPort._(_ret, _lib, retain: false, release: true); + static NSInflectionRule alloc(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSInflectionRule1, _lib._sel_alloc1); + return NSInflectionRule._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSPort1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSInflectionRule1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSPort1, + _lib._objc_msgSend_15(_lib._class_NSInflectionRule1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSPort1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSInflectionRule1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSPort1, _lib._sel_useStoredAccessor1); + _lib._class_NSInflectionRule1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSPort1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSInflectionRule1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSPort1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSPort1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSInflectionRule1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSPort1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77(_lib._class_NSInflectionRule1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSPort1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSInflectionRule1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSConnection extends _ObjCWrapper { - NSConnection._(ffi.Pointer id, PedometerBindings lib, +class NSMorphology extends NSObject { + NSMorphology._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSConnection] that points to the same underlying object as [other]. - static NSConnection castFrom(T other) { - return NSConnection._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSMorphology] that points to the same underlying object as [other]. + static NSMorphology castFrom(T other) { + return NSMorphology._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSConnection] that wraps the given raw object pointer. - static NSConnection castFromPointer( + /// Returns a [NSMorphology] that wraps the given raw object pointer. + static NSMorphology castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSConnection._(other, lib, retain: retain, release: release); + return NSMorphology._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSConnection]. + /// Returns whether [obj] is an instance of [NSMorphology]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSConnection1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSMorphology1); } -} -class NSFileHandle extends NSObject { - NSFileHandle._(ffi.Pointer id, PedometerBindings lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + int get grammaticalGender { + return _lib._objc_msgSend_741(_id, _lib._sel_grammaticalGender1); + } - /// Returns a [NSFileHandle] that points to the same underlying object as [other]. - static NSFileHandle castFrom(T other) { - return NSFileHandle._(other._id, other._lib, retain: true, release: true); + set grammaticalGender(int value) { + return _lib._objc_msgSend_742(_id, _lib._sel_setGrammaticalGender_1, value); } - /// Returns a [NSFileHandle] that wraps the given raw object pointer. - static NSFileHandle castFromPointer( - PedometerBindings lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSFileHandle._(other, lib, retain: retain, release: release); + int get partOfSpeech { + return _lib._objc_msgSend_743(_id, _lib._sel_partOfSpeech1); } - /// Returns whether [obj] is an instance of [NSFileHandle]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSFileHandle1); + set partOfSpeech(int value) { + return _lib._objc_msgSend_744(_id, _lib._sel_setPartOfSpeech_1, value); } - NSData? get availableData { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_availableData1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + int get number { + return _lib._objc_msgSend_745(_id, _lib._sel_number1); } - NSFileHandle initWithFileDescriptor_closeOnDealloc_(int fd, bool closeopt) { - final _ret = _lib._objc_msgSend_659( - _id, _lib._sel_initWithFileDescriptor_closeOnDealloc_1, fd, closeopt); - return NSFileHandle._(_ret, _lib, retain: true, release: true); + set number(int value) { + return _lib._objc_msgSend_746(_id, _lib._sel_setNumber_1, value); } - NSFileHandle initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSFileHandle._(_ret, _lib, retain: true, release: true); + int get grammaticalCase { + return _lib._objc_msgSend_747(_id, _lib._sel_grammaticalCase1); } - NSData readDataToEndOfFileAndReturnError_( - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_660( - _id, _lib._sel_readDataToEndOfFileAndReturnError_1, error); - return NSData._(_ret, _lib, retain: true, release: true); + set grammaticalCase(int value) { + return _lib._objc_msgSend_748(_id, _lib._sel_setGrammaticalCase_1, value); } - NSData readDataUpToLength_error_( - int length, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_661( - _id, _lib._sel_readDataUpToLength_error_1, length, error); - return NSData._(_ret, _lib, retain: true, release: true); + int get determination { + return _lib._objc_msgSend_749(_id, _lib._sel_determination1); } - bool writeData_error_( - NSData? data, ffi.Pointer> error) { - return _lib._objc_msgSend_662( - _id, _lib._sel_writeData_error_1, data?._id ?? ffi.nullptr, error); + set determination(int value) { + return _lib._objc_msgSend_750(_id, _lib._sel_setDetermination_1, value); } - bool getOffset_error_(ffi.Pointer offsetInFile, - ffi.Pointer> error) { - return _lib._objc_msgSend_663( - _id, _lib._sel_getOffset_error_1, offsetInFile, error); + int get grammaticalPerson { + return _lib._objc_msgSend_751(_id, _lib._sel_grammaticalPerson1); } - bool seekToEndReturningOffset_error_( - ffi.Pointer offsetInFile, - ffi.Pointer> error) { - return _lib._objc_msgSend_663( - _id, _lib._sel_seekToEndReturningOffset_error_1, offsetInFile, error); + set grammaticalPerson(int value) { + return _lib._objc_msgSend_752(_id, _lib._sel_setGrammaticalPerson_1, value); } - bool seekToOffset_error_( - int offset, ffi.Pointer> error) { - return _lib._objc_msgSend_664( - _id, _lib._sel_seekToOffset_error_1, offset, error); + int get pronounType { + return _lib._objc_msgSend_753(_id, _lib._sel_pronounType1); } - bool truncateAtOffset_error_( - int offset, ffi.Pointer> error) { - return _lib._objc_msgSend_664( - _id, _lib._sel_truncateAtOffset_error_1, offset, error); + set pronounType(int value) { + return _lib._objc_msgSend_754(_id, _lib._sel_setPronounType_1, value); } - bool synchronizeAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_183( - _id, _lib._sel_synchronizeAndReturnError_1, error); + int get definiteness { + return _lib._objc_msgSend_755(_id, _lib._sel_definiteness1); } - bool closeAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_183(_id, _lib._sel_closeAndReturnError_1, error); + set definiteness(int value) { + return _lib._objc_msgSend_756(_id, _lib._sel_setDefiniteness_1, value); } - static NSFileHandle? getFileHandleWithStandardInput(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_665( - _lib._class_NSFileHandle1, _lib._sel_fileHandleWithStandardInput1); + NSMorphologyCustomPronoun? customPronounForLanguage_(NSString language) { + final _ret = _lib._objc_msgSend_757( + _id, _lib._sel_customPronounForLanguage_1, language._id); return _ret.address == 0 ? null - : NSFileHandle._(_ret, _lib, retain: true, release: true); + : NSMorphologyCustomPronoun._(_ret, _lib, retain: true, release: true); } - static NSFileHandle? getFileHandleWithStandardOutput(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_665( - _lib._class_NSFileHandle1, _lib._sel_fileHandleWithStandardOutput1); - return _ret.address == 0 - ? null - : NSFileHandle._(_ret, _lib, retain: true, release: true); + bool setCustomPronoun_forLanguage_error_(NSMorphologyCustomPronoun? features, + NSString language, ffi.Pointer> error) { + return _lib._objc_msgSend_758( + _id, + _lib._sel_setCustomPronoun_forLanguage_error_1, + features?._id ?? ffi.nullptr, + language._id, + error); } - static NSFileHandle? getFileHandleWithStandardError(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_665( - _lib._class_NSFileHandle1, _lib._sel_fileHandleWithStandardError1); - return _ret.address == 0 - ? null - : NSFileHandle._(_ret, _lib, retain: true, release: true); + bool get unspecified { + return _lib._objc_msgSend_12(_id, _lib._sel_isUnspecified1); } - static NSFileHandle? getFileHandleWithNullDevice(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_665( - _lib._class_NSFileHandle1, _lib._sel_fileHandleWithNullDevice1); - return _ret.address == 0 - ? null - : NSFileHandle._(_ret, _lib, retain: true, release: true); + static NSMorphology getUserMorphology(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_759( + _lib._class_NSMorphology1, _lib._sel_userMorphology1); + return NSMorphology._(_ret, _lib, retain: true, release: true); } - static NSFileHandle fileHandleForReadingAtPath_( - PedometerBindings _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSFileHandle1, - _lib._sel_fileHandleForReadingAtPath_1, path?._id ?? ffi.nullptr); - return NSFileHandle._(_ret, _lib, retain: true, release: true); + @override + NSMorphology init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMorphology._(_ret, _lib, retain: true, release: true); } - static NSFileHandle fileHandleForWritingAtPath_( - PedometerBindings _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSFileHandle1, - _lib._sel_fileHandleForWritingAtPath_1, path?._id ?? ffi.nullptr); - return NSFileHandle._(_ret, _lib, retain: true, release: true); + static NSMorphology new1(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMorphology1, _lib._sel_new1); + return NSMorphology._(_ret, _lib, retain: false, release: true); } - static NSFileHandle fileHandleForUpdatingAtPath_( - PedometerBindings _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSFileHandle1, - _lib._sel_fileHandleForUpdatingAtPath_1, path?._id ?? ffi.nullptr); - return NSFileHandle._(_ret, _lib, retain: true, release: true); + static NSMorphology allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSMorphology1, _lib._sel_allocWithZone_1, zone); + return NSMorphology._(_ret, _lib, retain: false, release: true); } - static NSFileHandle fileHandleForReadingFromURL_error_(PedometerBindings _lib, - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_666( - _lib._class_NSFileHandle1, - _lib._sel_fileHandleForReadingFromURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSFileHandle._(_ret, _lib, retain: true, release: true); + static NSMorphology alloc(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMorphology1, _lib._sel_alloc1); + return NSMorphology._(_ret, _lib, retain: false, release: true); } - static NSFileHandle fileHandleForWritingToURL_error_(PedometerBindings _lib, - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_666( - _lib._class_NSFileHandle1, - _lib._sel_fileHandleForWritingToURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSFileHandle._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + PedometerBindings _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSMorphology1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument?._id ?? ffi.nullptr); } - static NSFileHandle fileHandleForUpdatingURL_error_(PedometerBindings _lib, - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_666( - _lib._class_NSFileHandle1, - _lib._sel_fileHandleForUpdatingURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSFileHandle._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_( + PedometerBindings _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSMorphology1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - void readInBackgroundAndNotifyForModes_(NSArray? modes) { - return _lib._objc_msgSend_403( - _id, - _lib._sel_readInBackgroundAndNotifyForModes_1, - modes?._id ?? ffi.nullptr); + static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMorphology1, _lib._sel_accessInstanceVariablesDirectly1); } - void readInBackgroundAndNotify() { - return _lib._objc_msgSend_1(_id, _lib._sel_readInBackgroundAndNotify1); + static bool useStoredAccessor(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMorphology1, _lib._sel_useStoredAccessor1); } - void readToEndOfFileInBackgroundAndNotifyForModes_(NSArray? modes) { - return _lib._objc_msgSend_403( - _id, - _lib._sel_readToEndOfFileInBackgroundAndNotifyForModes_1, - modes?._id ?? ffi.nullptr); + static NSSet keyPathsForValuesAffectingValueForKey_( + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSMorphology1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); + return NSSet._(_ret, _lib, retain: true, release: true); } - void readToEndOfFileInBackgroundAndNotify() { - return _lib._objc_msgSend_1( - _id, _lib._sel_readToEndOfFileInBackgroundAndNotify1); + static bool automaticallyNotifiesObserversForKey_( + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSMorphology1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } - void acceptConnectionInBackgroundAndNotifyForModes_(NSArray? modes) { - return _lib._objc_msgSend_403( - _id, - _lib._sel_acceptConnectionInBackgroundAndNotifyForModes_1, - modes?._id ?? ffi.nullptr); + static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77( + _lib._class_NSMorphology1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - void acceptConnectionInBackgroundAndNotify() { - return _lib._objc_msgSend_1( - _id, _lib._sel_acceptConnectionInBackgroundAndNotify1); + static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMorphology1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - void waitForDataInBackgroundAndNotifyForModes_(NSArray? modes) { - return _lib._objc_msgSend_403( - _id, - _lib._sel_waitForDataInBackgroundAndNotifyForModes_1, - modes?._id ?? ffi.nullptr); +abstract class NSGrammaticalGender { + static const int NSGrammaticalGenderNotSet = 0; + static const int NSGrammaticalGenderFeminine = 1; + static const int NSGrammaticalGenderMasculine = 2; + static const int NSGrammaticalGenderNeuter = 3; +} + +abstract class NSGrammaticalPartOfSpeech { + static const int NSGrammaticalPartOfSpeechNotSet = 0; + static const int NSGrammaticalPartOfSpeechDeterminer = 1; + static const int NSGrammaticalPartOfSpeechPronoun = 2; + static const int NSGrammaticalPartOfSpeechLetter = 3; + static const int NSGrammaticalPartOfSpeechAdverb = 4; + static const int NSGrammaticalPartOfSpeechParticle = 5; + static const int NSGrammaticalPartOfSpeechAdjective = 6; + static const int NSGrammaticalPartOfSpeechAdposition = 7; + static const int NSGrammaticalPartOfSpeechVerb = 8; + static const int NSGrammaticalPartOfSpeechNoun = 9; + static const int NSGrammaticalPartOfSpeechConjunction = 10; + static const int NSGrammaticalPartOfSpeechNumeral = 11; + static const int NSGrammaticalPartOfSpeechInterjection = 12; + static const int NSGrammaticalPartOfSpeechPreposition = 13; + static const int NSGrammaticalPartOfSpeechAbbreviation = 14; +} + +abstract class NSGrammaticalNumber { + static const int NSGrammaticalNumberNotSet = 0; + static const int NSGrammaticalNumberSingular = 1; + static const int NSGrammaticalNumberZero = 2; + static const int NSGrammaticalNumberPlural = 3; + static const int NSGrammaticalNumberPluralTwo = 4; + static const int NSGrammaticalNumberPluralFew = 5; + static const int NSGrammaticalNumberPluralMany = 6; +} + +abstract class NSGrammaticalCase { + static const int NSGrammaticalCaseNotSet = 0; + static const int NSGrammaticalCaseNominative = 1; + static const int NSGrammaticalCaseAccusative = 2; + static const int NSGrammaticalCaseDative = 3; + static const int NSGrammaticalCaseGenitive = 4; + static const int NSGrammaticalCasePrepositional = 5; + static const int NSGrammaticalCaseAblative = 6; + static const int NSGrammaticalCaseAdessive = 7; + static const int NSGrammaticalCaseAllative = 8; + static const int NSGrammaticalCaseElative = 9; + static const int NSGrammaticalCaseIllative = 10; + static const int NSGrammaticalCaseEssive = 11; + static const int NSGrammaticalCaseInessive = 12; + static const int NSGrammaticalCaseLocative = 13; + static const int NSGrammaticalCaseTranslative = 14; +} + +abstract class NSGrammaticalDetermination { + static const int NSGrammaticalDeterminationNotSet = 0; + static const int NSGrammaticalDeterminationIndependent = 1; + static const int NSGrammaticalDeterminationDependent = 2; +} + +abstract class NSGrammaticalPerson { + static const int NSGrammaticalPersonNotSet = 0; + static const int NSGrammaticalPersonFirst = 1; + static const int NSGrammaticalPersonSecond = 2; + static const int NSGrammaticalPersonThird = 3; +} + +abstract class NSGrammaticalPronounType { + static const int NSGrammaticalPronounTypeNotSet = 0; + static const int NSGrammaticalPronounTypePersonal = 1; + static const int NSGrammaticalPronounTypeReflexive = 2; + static const int NSGrammaticalPronounTypePossessive = 3; +} + +abstract class NSGrammaticalDefiniteness { + static const int NSGrammaticalDefinitenessNotSet = 0; + static const int NSGrammaticalDefinitenessIndefinite = 1; + static const int NSGrammaticalDefinitenessDefinite = 2; +} + +class NSMorphologyCustomPronoun extends NSObject { + NSMorphologyCustomPronoun._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSMorphologyCustomPronoun] that points to the same underlying object as [other]. + static NSMorphologyCustomPronoun castFrom(T other) { + return NSMorphologyCustomPronoun._(other._id, other._lib, + retain: true, release: true); } - void waitForDataInBackgroundAndNotify() { - return _lib._objc_msgSend_1( - _id, _lib._sel_waitForDataInBackgroundAndNotify1); + /// Returns a [NSMorphologyCustomPronoun] that wraps the given raw object pointer. + static NSMorphologyCustomPronoun castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSMorphologyCustomPronoun._(other, lib, + retain: retain, release: release); } - ObjCBlock35 get readabilityHandler { - final _ret = _lib._objc_msgSend_667(_id, _lib._sel_readabilityHandler1); - return ObjCBlock35._(_ret, _lib); + /// Returns whether [obj] is an instance of [NSMorphologyCustomPronoun]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMorphologyCustomPronoun1); } - set readabilityHandler(ObjCBlock35 value) { - _lib._objc_msgSend_668(_id, _lib._sel_setReadabilityHandler_1, value._id); + static bool isSupportedForLanguage_( + PedometerBindings _lib, NSString language) { + return _lib._objc_msgSend_56(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_isSupportedForLanguage_1, language._id); } - ObjCBlock35 get writeabilityHandler { - final _ret = _lib._objc_msgSend_667(_id, _lib._sel_writeabilityHandler1); - return ObjCBlock35._(_ret, _lib); + static NSArray requiredKeysForLanguage_( + PedometerBindings _lib, NSString language) { + final _ret = _lib._objc_msgSend_308(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_requiredKeysForLanguage_1, language._id); + return NSArray._(_ret, _lib, retain: true, release: true); } - set writeabilityHandler(ObjCBlock35 value) { - _lib._objc_msgSend_668(_id, _lib._sel_setWriteabilityHandler_1, value._id); + NSString? get subjectForm { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_subjectForm1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSFileHandle initWithFileDescriptor_(int fd) { - final _ret = - _lib._objc_msgSend_669(_id, _lib._sel_initWithFileDescriptor_1, fd); - return NSFileHandle._(_ret, _lib, retain: true, release: true); + set subjectForm(NSString? value) { + return _lib._objc_msgSend_493( + _id, _lib._sel_setSubjectForm_1, value?._id ?? ffi.nullptr); } - int get fileDescriptor { - return _lib._objc_msgSend_177(_id, _lib._sel_fileDescriptor1); + NSString? get objectForm { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_objectForm1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSData readDataToEndOfFile() { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_readDataToEndOfFile1); - return NSData._(_ret, _lib, retain: true, release: true); + set objectForm(NSString? value) { + return _lib._objc_msgSend_493( + _id, _lib._sel_setObjectForm_1, value?._id ?? ffi.nullptr); } - NSData readDataOfLength_(int length) { - final _ret = - _lib._objc_msgSend_289(_id, _lib._sel_readDataOfLength_1, length); - return NSData._(_ret, _lib, retain: true, release: true); + NSString? get possessiveForm { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_possessiveForm1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void writeData_(NSData? data) { - return _lib._objc_msgSend_217( - _id, _lib._sel_writeData_1, data?._id ?? ffi.nullptr); + set possessiveForm(NSString? value) { + return _lib._objc_msgSend_493( + _id, _lib._sel_setPossessiveForm_1, value?._id ?? ffi.nullptr); } - int get offsetInFile { - return _lib._objc_msgSend_146(_id, _lib._sel_offsetInFile1); + NSString? get possessiveAdjectiveForm { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_possessiveAdjectiveForm1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - int seekToEndOfFile() { - return _lib._objc_msgSend_146(_id, _lib._sel_seekToEndOfFile1); + set possessiveAdjectiveForm(NSString? value) { + return _lib._objc_msgSend_493( + _id, _lib._sel_setPossessiveAdjectiveForm_1, value?._id ?? ffi.nullptr); } - void seekToFileOffset_(int offset) { - return _lib._objc_msgSend_670(_id, _lib._sel_seekToFileOffset_1, offset); + NSString? get reflexiveForm { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_reflexiveForm1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void truncateFileAtOffset_(int offset) { - return _lib._objc_msgSend_670( - _id, _lib._sel_truncateFileAtOffset_1, offset); + set reflexiveForm(NSString? value) { + return _lib._objc_msgSend_493( + _id, _lib._sel_setReflexiveForm_1, value?._id ?? ffi.nullptr); } - void synchronizeFile() { - return _lib._objc_msgSend_1(_id, _lib._sel_synchronizeFile1); + @override + NSMorphologyCustomPronoun init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMorphologyCustomPronoun._(_ret, _lib, retain: true, release: true); } - void closeFile() { - return _lib._objc_msgSend_1(_id, _lib._sel_closeFile1); + static NSMorphologyCustomPronoun new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMorphologyCustomPronoun1, _lib._sel_new1); + return NSMorphologyCustomPronoun._(_ret, _lib, + retain: false, release: true); } - static NSFileHandle new1(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSFileHandle1, _lib._sel_new1); - return NSFileHandle._(_ret, _lib, retain: false, release: true); + static NSMorphologyCustomPronoun allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_allocWithZone_1, zone); + return NSMorphologyCustomPronoun._(_ret, _lib, + retain: false, release: true); } - static NSFileHandle alloc(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSFileHandle1, _lib._sel_alloc1); - return NSFileHandle._(_ret, _lib, retain: false, release: true); + static NSMorphologyCustomPronoun alloc(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMorphologyCustomPronoun1, _lib._sel_alloc1); + return NSMorphologyCustomPronoun._(_ret, _lib, + retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSFileHandle1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSMorphologyCustomPronoun1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSFileHandle1, + _lib._objc_msgSend_15(_lib._class_NSMorphologyCustomPronoun1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSFileHandle1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSFileHandle1, _lib._sel_useStoredAccessor1); + _lib._class_NSMorphologyCustomPronoun1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSFileHandle1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSFileHandle1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSFileHandle1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSFileHandle1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSFileHandle1, _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -void _ObjCBlock35_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} +class NSOperationQueue extends NSObject { + NSOperationQueue._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); -final _ObjCBlock35_closureRegistry = {}; -int _ObjCBlock35_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock35_registerClosure(Function fn) { - final id = ++_ObjCBlock35_closureRegistryIndex; - _ObjCBlock35_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + /// Returns a [NSOperationQueue] that points to the same underlying object as [other]. + static NSOperationQueue castFrom(T other) { + return NSOperationQueue._(other._id, other._lib, + retain: true, release: true); + } -void _ObjCBlock35_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock35_closureRegistry[block.ref.target.address]!(arg0); -} + /// Returns a [NSOperationQueue] that wraps the given raw object pointer. + static NSOperationQueue castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSOperationQueue._(other, lib, retain: retain, release: release); + } -class ObjCBlock35 extends _ObjCBlockBase { - ObjCBlock35._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); + /// Returns whether [obj] is an instance of [NSOperationQueue]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSOperationQueue1); + } - /// Creates a block from a C function pointer. - ObjCBlock35.fromFunctionPointer( - PedometerBindings lib, - ffi.Pointer< - ffi - .NativeFunction arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock35_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + /// @property progress + /// @discussion The `progress` property represents a total progress of the operations executed in the queue. By default NSOperationQueue + /// does not report progress until the `totalUnitCount` of the progress is set. When the `totalUnitCount` property of the progress is set the + /// queue then opts into participating in progress reporting. When enabled, each operation will contribute 1 unit of completion to the + /// overall progress of the queue for operations that are finished by the end of main (operations that override start and do not invoke super + /// will not contribute to progress). Special attention to race conditions should be made when updating the `totalUnitCount` of the progress + /// as well as care should be taken to avoid 'backwards progress'. For example; when a NSOperationQueue's progress is 5/10, representing 50% + /// completed, and there are 90 more operations about to be added and the `totalUnitCount` that would then make the progress report as 5/100 + /// which represents 5%. In this example it would mean that any progress bar would jump from displaying 50% back to 5%, which might not be + /// desirable. In the cases where the `totalUnitCount` needs to be adjusted it is suggested to do this for thread-safety in a barrier by + /// using the `addBarrierBlock:` API. This ensures that no un-expected execution state occurs adjusting into a potentially backwards moving + /// progress scenario. + /// + /// @example + /// NSOperationQueue *queue = [[NSOperationQueue alloc] init]; + /// queue.progress.totalUnitCount = 10; + NSProgress get progress { + final _ret = _lib._objc_msgSend_729(_id, _lib._sel_progress1); + return NSProgress._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a Dart function. - ObjCBlock35.fromFunction( - PedometerBindings lib, void Function(ffi.Pointer arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock35_closureTrampoline) - .cast(), - _ObjCBlock35_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); + void addOperation_(NSOperation op) { + _lib._objc_msgSend_760(_id, _lib._sel_addOperation_1, op._id); } - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + void addOperations_waitUntilFinished_(NSArray ops, bool wait) { + _lib._objc_msgSend_763( + _id, _lib._sel_addOperations_waitUntilFinished_1, ops._id, wait); + } -/// ! -/// @class NSHTTPCookieStorage -/// @discussion NSHTTPCookieStorage implements a singleton object (shared -/// instance) which manages the shared cookie store. It has methods -/// to allow clients to set and remove cookies, and get the current -/// set of cookies. It also has convenience methods to parse and -/// generate cookie-related HTTP header fields. -class NSHTTPCookieStorage extends NSObject { - NSHTTPCookieStorage._(ffi.Pointer id, PedometerBindings lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + void addOperationWithBlock_(ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_480(_id, _lib._sel_addOperationWithBlock_1, block._id); + } - /// Returns a [NSHTTPCookieStorage] that points to the same underlying object as [other]. - static NSHTTPCookieStorage castFrom(T other) { - return NSHTTPCookieStorage._(other._id, other._lib, - retain: true, release: true); + /// @method addBarrierBlock: + /// @param barrier A block to execute + /// @discussion The `addBarrierBlock:` method executes the block when the NSOperationQueue has finished all enqueued operations and + /// prevents any subsequent operations to be executed until the barrier has been completed. This acts similarly to the + /// `dispatch_barrier_async` function. + void addBarrierBlock_(ObjCBlock_ffiVoid barrier) { + _lib._objc_msgSend_480(_id, _lib._sel_addBarrierBlock_1, barrier._id); } - /// Returns a [NSHTTPCookieStorage] that wraps the given raw object pointer. - static NSHTTPCookieStorage castFromPointer( - PedometerBindings lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSHTTPCookieStorage._(other, lib, retain: retain, release: release); + int get maxConcurrentOperationCount { + return _lib._objc_msgSend_75(_id, _lib._sel_maxConcurrentOperationCount1); + } + + set maxConcurrentOperationCount(int value) { + return _lib._objc_msgSend_626( + _id, _lib._sel_setMaxConcurrentOperationCount_1, value); } - /// Returns whether [obj] is an instance of [NSHTTPCookieStorage]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSHTTPCookieStorage1); + bool get suspended { + return _lib._objc_msgSend_12(_id, _lib._sel_isSuspended1); } - /// ! - /// @property sharedHTTPCookieStorage - /// @abstract Get the shared cookie storage in the default location. - /// @result The shared cookie storage - /// @discussion Starting in OS X 10.11, each app has its own sharedHTTPCookieStorage singleton, - /// which will not be shared with other applications. - static NSHTTPCookieStorage? getSharedHTTPCookieStorage( - PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_671( - _lib._class_NSHTTPCookieStorage1, _lib._sel_sharedHTTPCookieStorage1); + set suspended(bool value) { + return _lib._objc_msgSend_475(_id, _lib._sel_setSuspended_1, value); + } + + NSString? get name { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_name1); return _ret.address == 0 ? null - : NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - /// ! - /// @method sharedCookieStorageForGroupContainerIdentifier: - /// @abstract Get the cookie storage for the container associated with the specified application group identifier - /// @param identifier The application group identifier - /// @result A cookie storage with a persistent store in the application group container - /// @discussion By default, applications and associated app extensions have different data containers, which means - /// that the sharedHTTPCookieStorage singleton will refer to different persistent cookie stores in an application and - /// any app extensions that it contains. This method allows clients to create a persistent cookie storage that can be - /// shared among all applications and extensions with access to the same application group. Subsequent calls to this - /// method with the same identifier will return the same cookie storage instance. - static NSHTTPCookieStorage sharedCookieStorageForGroupContainerIdentifier_( - PedometerBindings _lib, NSString? identifier) { - final _ret = _lib._objc_msgSend_672( - _lib._class_NSHTTPCookieStorage1, - _lib._sel_sharedCookieStorageForGroupContainerIdentifier_1, - identifier?._id ?? ffi.nullptr); - return NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); + set name(NSString? value) { + return _lib._objc_msgSend_493( + _id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); } - /// ! - /// @abstract Get all the cookies - /// @result An NSArray of NSHTTPCookies - NSArray? get cookies { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_cookies1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + int get qualityOfService { + return _lib._objc_msgSend_491(_id, _lib._sel_qualityOfService1); } - /// ! - /// @method setCookie: - /// @abstract Set a cookie - /// @discussion The cookie will override an existing cookie with the - /// same name, domain and path, if any. - void setCookie_(NSHTTPCookie? cookie) { - return _lib._objc_msgSend_675( - _id, _lib._sel_setCookie_1, cookie?._id ?? ffi.nullptr); + set qualityOfService(int value) { + return _lib._objc_msgSend_492(_id, _lib._sel_setQualityOfService_1, value); } - /// ! - /// @method deleteCookie: - /// @abstract Delete the specified cookie - void deleteCookie_(NSHTTPCookie? cookie) { - return _lib._objc_msgSend_675( - _id, _lib._sel_deleteCookie_1, cookie?._id ?? ffi.nullptr); + ffi.Pointer get underlyingQueue { + return _lib._objc_msgSend_764(_id, _lib._sel_underlyingQueue1); } - /// ! - /// @method removeCookiesSince: - /// @abstract Delete all cookies from the cookie storage since the provided date. - void removeCookiesSinceDate_(NSDate? date) { - return _lib._objc_msgSend_465( - _id, _lib._sel_removeCookiesSinceDate_1, date?._id ?? ffi.nullptr); + set underlyingQueue(ffi.Pointer value) { + return _lib._objc_msgSend_765(_id, _lib._sel_setUnderlyingQueue_1, value); } - /// ! - /// @method cookiesForURL: - /// @abstract Returns an array of cookies to send to the given URL. - /// @param URL The URL for which to get cookies. - /// @result an NSArray of NSHTTPCookie objects. - /// @discussion The cookie manager examines the cookies it stores and - /// includes those which should be sent to the given URL. You can use - /// +[NSCookie requestHeaderFieldsWithCookies:] to turn this array - /// into a set of header fields to add to a request. - NSArray cookiesForURL_(NSURL? URL) { - final _ret = _lib._objc_msgSend_116( - _id, _lib._sel_cookiesForURL_1, URL?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + void cancelAllOperations() { + _lib._objc_msgSend_1(_id, _lib._sel_cancelAllOperations1); } - /// ! - /// @method setCookies:forURL:mainDocumentURL: - /// @abstract Adds an array cookies to the cookie store, following the - /// cookie accept policy. - /// @param cookies The cookies to set. - /// @param URL The URL from which the cookies were sent. - /// @param mainDocumentURL The main document URL to be used as a base for the "same - /// domain as main document" policy. - /// @discussion For mainDocumentURL, the caller should pass the URL for - /// an appropriate main document, if known. For example, when loading - /// a web page, the URL of the main html document for the top-level - /// frame should be passed. To save cookies based on a set of response - /// headers, you can use +[NSCookie - /// cookiesWithResponseHeaderFields:forURL:] on a header field - /// dictionary and then use this method to store the resulting cookies - /// in accordance with policy settings. - void setCookies_forURL_mainDocumentURL_( - NSArray? cookies, NSURL? URL, NSURL? mainDocumentURL) { - return _lib._objc_msgSend_676( - _id, - _lib._sel_setCookies_forURL_mainDocumentURL_1, - cookies?._id ?? ffi.nullptr, - URL?._id ?? ffi.nullptr, - mainDocumentURL?._id ?? ffi.nullptr); + void waitUntilAllOperationsAreFinished() { + _lib._objc_msgSend_1(_id, _lib._sel_waitUntilAllOperationsAreFinished1); } - /// ! - /// @abstract The cookie accept policy preference of the - /// receiver. - int get cookieAcceptPolicy { - return _lib._objc_msgSend_677(_id, _lib._sel_cookieAcceptPolicy1); + static NSOperationQueue? getCurrentQueue(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_766( + _lib._class_NSOperationQueue1, _lib._sel_currentQueue1); + return _ret.address == 0 + ? null + : NSOperationQueue._(_ret, _lib, retain: true, release: true); } - /// ! - /// @abstract The cookie accept policy preference of the - /// receiver. - set cookieAcceptPolicy(int value) { - _lib._objc_msgSend_678(_id, _lib._sel_setCookieAcceptPolicy_1, value); + static NSOperationQueue getMainQueue(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_767( + _lib._class_NSOperationQueue1, _lib._sel_mainQueue1); + return NSOperationQueue._(_ret, _lib, retain: true, release: true); } - /// ! - /// @method sortedCookiesUsingDescriptors: - /// @abstract Returns an array of all cookies in the store, sorted according to the key value and sorting direction of the NSSortDescriptors specified in the parameter. - /// @param sortOrder an array of NSSortDescriptors which represent the preferred sort order of the resulting array. - /// @discussion proper sorting of cookies may require extensive string conversion, which can be avoided by allowing the system to perform the sorting. This API is to be preferred over the more generic -[NSHTTPCookieStorage cookies] API, if sorting is going to be performed. - NSArray sortedCookiesUsingDescriptors_(NSArray? sortOrder) { - final _ret = _lib._objc_msgSend_55( - _id, - _lib._sel_sortedCookiesUsingDescriptors_1, - sortOrder?._id ?? ffi.nullptr); + NSArray get operations { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_operations1); return NSArray._(_ret, _lib, retain: true, release: true); } - void storeCookies_forTask_(NSArray? cookies, NSURLSessionTask? task) { - return _lib._objc_msgSend_697(_id, _lib._sel_storeCookies_forTask_1, - cookies?._id ?? ffi.nullptr, task?._id ?? ffi.nullptr); + int get operationCount { + return _lib._objc_msgSend_10(_id, _lib._sel_operationCount1); } - void getCookiesForTask_completionHandler_( - NSURLSessionTask? task, ObjCBlock36 completionHandler) { - return _lib._objc_msgSend_698( - _id, - _lib._sel_getCookiesForTask_completionHandler_1, - task?._id ?? ffi.nullptr, - completionHandler._id); + @override + NSOperationQueue init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSOperationQueue._(_ret, _lib, retain: true, release: true); } - static NSHTTPCookieStorage new1(PedometerBindings _lib) { + static NSOperationQueue new1(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSHTTPCookieStorage1, _lib._sel_new1); - return NSHTTPCookieStorage._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSOperationQueue1, _lib._sel_new1); + return NSOperationQueue._(_ret, _lib, retain: false, release: true); } - static NSHTTPCookieStorage alloc(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSHTTPCookieStorage1, _lib._sel_alloc1); - return NSHTTPCookieStorage._(_ret, _lib, retain: false, release: true); + static NSOperationQueue allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSOperationQueue1, _lib._sel_allocWithZone_1, zone); + return NSOperationQueue._(_ret, _lib, retain: false, release: true); + } + + static NSOperationQueue alloc(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSOperationQueue1, _lib._sel_alloc1); + return NSOperationQueue._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSHTTPCookieStorage1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSOperationQueue1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSHTTPCookieStorage1, + _lib._objc_msgSend_15(_lib._class_NSOperationQueue1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSHTTPCookieStorage1, + return _lib._objc_msgSend_12(_lib._class_NSOperationQueue1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSHTTPCookieStorage1, _lib._sel_useStoredAccessor1); + _lib._class_NSOperationQueue1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSHTTPCookieStorage1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSOperationQueue1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSHTTPCookieStorage1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSHTTPCookieStorage1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSOperationQueue1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71(_lib._class_NSHTTPCookieStorage1, + final _ret = _lib._objc_msgSend_77(_lib._class_NSOperationQueue1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSHTTPCookieStorage1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSOperationQueue1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -/// ! -/// @class NSHTTPCookie -/// @abstract NSHTTPCookie represents an http cookie. -/// @discussion A NSHTTPCookie instance represents a single http cookie. It is -/// an immutable object initialized from a dictionary that contains -/// the various cookie attributes. It has accessors to get the various -/// attributes of a cookie. -class NSHTTPCookie extends NSObject { - NSHTTPCookie._(ffi.Pointer id, PedometerBindings lib, +class NSOperation extends NSObject { + NSOperation._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSHTTPCookie] that points to the same underlying object as [other]. - static NSHTTPCookie castFrom(T other) { - return NSHTTPCookie._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSOperation] that points to the same underlying object as [other]. + static NSOperation castFrom(T other) { + return NSOperation._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSHTTPCookie] that wraps the given raw object pointer. - static NSHTTPCookie castFromPointer( + /// Returns a [NSOperation] that wraps the given raw object pointer. + static NSOperation castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSHTTPCookie._(other, lib, retain: retain, release: release); + return NSOperation._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSHTTPCookie]. + /// Returns whether [obj] is an instance of [NSOperation]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSHTTPCookie1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSOperation1); } - /// ! - /// @method initWithProperties: - /// @abstract Initialize a NSHTTPCookie object with a dictionary of - /// parameters - /// @param properties The dictionary of properties to be used to - /// initialize this cookie. - /// @discussion Supported dictionary keys and value types for the - /// given dictionary are as follows. - /// - /// All properties can handle an NSString value, but some can also - /// handle other types. - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - ///
Property key constantType of valueRequiredDescription
NSHTTPCookieCommentNSStringNOComment for the cookie. Only valid for version 1 cookies and - /// later. Default is nil.
NSHTTPCookieCommentURLNSURL or NSStringNOComment URL for the cookie. Only valid for version 1 cookies - /// and later. Default is nil.
NSHTTPCookieDomainNSStringSpecial, a value for either NSHTTPCookieOriginURL or - /// NSHTTPCookieDomain must be specified.Domain for the cookie. Inferred from the value for - /// NSHTTPCookieOriginURL if not provided.
NSHTTPCookieDiscardNSStringNOA string stating whether the cookie should be discarded at - /// the end of the session. String value must be either "TRUE" or - /// "FALSE". Default is "FALSE", unless this is cookie is version - /// 1 or greater and a value for NSHTTPCookieMaximumAge is not - /// specified, in which case it is assumed "TRUE".
NSHTTPCookieExpiresNSDate or NSStringNOExpiration date for the cookie. Used only for version 0 - /// cookies. Ignored for version 1 or greater.
NSHTTPCookieMaximumAgeNSStringNOA string containing an integer value stating how long in - /// seconds the cookie should be kept, at most. Only valid for - /// version 1 cookies and later. Default is "0".
NSHTTPCookieNameNSStringYESName of the cookie
NSHTTPCookieOriginURLNSURL or NSStringSpecial, a value for either NSHTTPCookieOriginURL or - /// NSHTTPCookieDomain must be specified.URL that set this cookie. Used as default for other fields - /// as noted.
NSHTTPCookiePathNSStringNOPath for the cookie. Inferred from the value for - /// NSHTTPCookieOriginURL if not provided. Default is "/".
NSHTTPCookiePortNSStringNOcomma-separated integer values specifying the ports for the - /// cookie. Only valid for version 1 cookies and later. Default is - /// empty string ("").
NSHTTPCookieSecureNSStringNOA string stating whether the cookie should be transmitted - /// only over secure channels. String value must be either "TRUE" - /// or "FALSE". Default is "FALSE".
NSHTTPCookieValueNSStringYESValue of the cookie
NSHTTPCookieVersionNSStringNOSpecifies the version of the cookie. Must be either "0" or - /// "1". Default is "0".
- ///

- /// All other keys are ignored. - /// @result An initialized NSHTTPCookie, or nil if the set of - /// dictionary keys is invalid, for example because a required key is - /// missing, or a recognized key maps to an illegal value. - NSHTTPCookie initWithProperties_(NSDictionary? properties) { - final _ret = _lib._objc_msgSend_141( - _id, _lib._sel_initWithProperties_1, properties?._id ?? ffi.nullptr); - return NSHTTPCookie._(_ret, _lib, retain: true, release: true); + void start() { + _lib._objc_msgSend_1(_id, _lib._sel_start1); } - /// ! - /// @method cookieWithProperties: - /// @abstract Allocates and initializes an NSHTTPCookie with the given - /// dictionary. - /// @discussion See the NSHTTPCookie -initWithProperties: - /// method for more information on the constraints imposed on the - /// dictionary, and for descriptions of the supported keys and values. - /// @param properties The dictionary to use to initialize this cookie. - /// @result A newly-created and autoreleased NSHTTPCookie instance, or - /// nil if the set of dictionary keys is invalid, for example because - /// a required key is missing, or a recognized key maps to an illegal - /// value. - static NSHTTPCookie cookieWithProperties_( - PedometerBindings _lib, NSDictionary? properties) { - final _ret = _lib._objc_msgSend_673(_lib._class_NSHTTPCookie1, - _lib._sel_cookieWithProperties_1, properties?._id ?? ffi.nullptr); - return NSHTTPCookie._(_ret, _lib, retain: true, release: true); + void main() { + _lib._objc_msgSend_1(_id, _lib._sel_main1); } - /// ! - /// @method requestHeaderFieldsWithCookies: - /// @abstract Return a dictionary of header fields that can be used to add the - /// specified cookies to the request. - /// @param cookies The cookies to turn into request headers. - /// @result An NSDictionary where the keys are header field names, and the values - /// are the corresponding header field values. - static NSDictionary requestHeaderFieldsWithCookies_( - PedometerBindings _lib, NSArray? cookies) { - final _ret = _lib._objc_msgSend_437( - _lib._class_NSHTTPCookie1, - _lib._sel_requestHeaderFieldsWithCookies_1, - cookies?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + bool get cancelled { + return _lib._objc_msgSend_12(_id, _lib._sel_isCancelled1); } - /// ! - /// @method cookiesWithResponseHeaderFields:forURL: - /// @abstract Return an array of cookies parsed from the specified response header fields and URL. - /// @param headerFields The response header fields to check for cookies. - /// @param URL The URL that the cookies came from - relevant to how the cookies are interpreted. - /// @result An NSArray of NSHTTPCookie objects - /// @discussion This method will ignore irrelevant header fields so - /// you can pass a dictionary containing data other than cookie data. - static NSArray cookiesWithResponseHeaderFields_forURL_( - PedometerBindings _lib, NSDictionary? headerFields, NSURL? URL) { - final _ret = _lib._objc_msgSend_674( - _lib._class_NSHTTPCookie1, - _lib._sel_cookiesWithResponseHeaderFields_forURL_1, - headerFields?._id ?? ffi.nullptr, - URL?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + void cancel() { + _lib._objc_msgSend_1(_id, _lib._sel_cancel1); } - /// ! - /// @abstract Returns a dictionary representation of the receiver. - /// @discussion This method returns a dictionary representation of the - /// NSHTTPCookie which can be saved and passed to - /// -initWithProperties: or +cookieWithProperties: - /// later to reconstitute an equivalent cookie. - ///

See the NSHTTPCookie -initWithProperties: method for - /// more information on the constraints imposed on the dictionary, and - /// for descriptions of the supported keys and values. - /// @result The dictionary representation of the receiver. - NSDictionary? get properties { - final _ret = _lib._objc_msgSend_324(_id, _lib._sel_properties1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + bool get executing { + return _lib._objc_msgSend_12(_id, _lib._sel_isExecuting1); } - /// ! - /// @abstract Returns the version of the receiver. - /// @discussion Version 0 maps to "old-style" Netscape cookies. - /// Version 1 maps to RFC2965 cookies. There may be future versions. - /// @result the version of the receiver. - int get version { - return _lib._objc_msgSend_10(_id, _lib._sel_version1); + bool get finished { + return _lib._objc_msgSend_12(_id, _lib._sel_isFinished1); } - /// ! - /// @abstract Returns the name of the receiver. - /// @result the name of the receiver. - NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + bool get concurrent { + return _lib._objc_msgSend_12(_id, _lib._sel_isConcurrent1); } - /// ! - /// @abstract Returns the value of the receiver. - /// @result the value of the receiver. - NSString? get value { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_value1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + bool get asynchronous { + return _lib._objc_msgSend_12(_id, _lib._sel_isAsynchronous1); } - /// ! - /// @abstract Returns the expires date of the receiver. - /// @result the expires date of the receiver. - /// @discussion The expires date is the date when the cookie should be - /// deleted. The result will be nil if there is no specific expires - /// date. This will be the case only for "session-only" cookies. - /// @result The expires date of the receiver. - NSDate? get expiresDate { - final _ret = _lib._objc_msgSend_154(_id, _lib._sel_expiresDate1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + bool get ready { + return _lib._objc_msgSend_12(_id, _lib._sel_isReady1); } - /// ! - /// @abstract Returns whether the receiver is session-only. - /// @result YES if this receiver should be discarded at the end of the - /// session (regardless of expiration date), NO if receiver need not - /// be discarded at the end of the session. - bool get sessionOnly { - return _lib._objc_msgSend_12(_id, _lib._sel_isSessionOnly1); + void addDependency_(NSOperation op) { + _lib._objc_msgSend_760(_id, _lib._sel_addDependency_1, op._id); } - /// ! - /// @abstract Returns the domain of the receiver. - /// @discussion This value specifies URL domain to which the cookie - /// should be sent. A domain with a leading dot means the cookie - /// should be sent to subdomains as well, assuming certain other - /// restrictions are valid. See RFC 2965 for more detail. - /// @result The domain of the receiver. - NSString? get domain { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_domain1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + void removeDependency_(NSOperation op) { + _lib._objc_msgSend_760(_id, _lib._sel_removeDependency_1, op._id); } - /// ! - /// @abstract Returns the path of the receiver. - /// @discussion This value specifies the URL path under the cookie's - /// domain for which this cookie should be sent. The cookie will also - /// be sent for children of that path, so "/" is the most general. - /// @result The path of the receiver. - NSString? get path { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_path1); + NSArray get dependencies { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_dependencies1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + int get queuePriority { + return _lib._objc_msgSend_761(_id, _lib._sel_queuePriority1); + } + + set queuePriority(int value) { + return _lib._objc_msgSend_762(_id, _lib._sel_setQueuePriority_1, value); + } + + ObjCBlock_ffiVoid? get completionBlock { + final _ret = _lib._objc_msgSend_508(_id, _lib._sel_completionBlock1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : ObjCBlock_ffiVoid._(_ret, _lib, retain: true, release: true); } - /// ! - /// @abstract Returns whether the receiver should be sent only over - /// secure channels - /// @discussion Cookies may be marked secure by a server (or by a javascript). - /// Cookies marked as such must only be sent via an encrypted connection to - /// trusted servers (i.e. via SSL or TLS), and should not be delivered to any - /// javascript applications to prevent cross-site scripting vulnerabilities. - /// @result YES if this cookie should be sent only over secure channels, - /// NO otherwise. - bool get secure { - return _lib._objc_msgSend_12(_id, _lib._sel_isSecure1); + set completionBlock(ObjCBlock_ffiVoid? value) { + return _lib._objc_msgSend_509( + _id, _lib._sel_setCompletionBlock_1, value?._id ?? ffi.nullptr); } - /// ! - /// @abstract Returns whether the receiver should only be sent to HTTP servers - /// per RFC 2965 - /// @discussion Cookies may be marked as HTTPOnly by a server (or by a javascript). - /// Cookies marked as such must only be sent via HTTP Headers in HTTP Requests - /// for URL's that match both the path and domain of the respective Cookies. - /// Specifically these cookies should not be delivered to any javascript - /// applications to prevent cross-site scripting vulnerabilities. - /// @result YES if this cookie should only be sent via HTTP headers, - /// NO otherwise. - bool get HTTPOnly { - return _lib._objc_msgSend_12(_id, _lib._sel_isHTTPOnly1); + void waitUntilFinished() { + _lib._objc_msgSend_1(_id, _lib._sel_waitUntilFinished1); } - /// ! - /// @abstract Returns the comment of the receiver. - /// @discussion This value specifies a string which is suitable for - /// presentation to the user explaining the contents and purpose of this - /// cookie. It may be nil. - /// @result The comment of the receiver, or nil if the receiver has no - /// comment. - NSString? get comment { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_comment1); + double get threadPriority { + return _lib._objc_msgSend_156(_id, _lib._sel_threadPriority1); + } + + set threadPriority(double value) { + return _lib._objc_msgSend_490(_id, _lib._sel_setThreadPriority_1, value); + } + + int get qualityOfService { + return _lib._objc_msgSend_491(_id, _lib._sel_qualityOfService1); + } + + set qualityOfService(int value) { + return _lib._objc_msgSend_492(_id, _lib._sel_setQualityOfService_1, value); + } + + NSString? get name { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_name1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - /// ! - /// @abstract Returns the comment URL of the receiver. - /// @discussion This value specifies a URL which is suitable for - /// presentation to the user as a link for further information about - /// this cookie. It may be nil. - /// @result The comment URL of the receiver, or nil if the receiver - /// has no comment URL. - NSURL? get commentURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_commentURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + set name(NSString? value) { + return _lib._objc_msgSend_493( + _id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); } - /// ! - /// @abstract Returns the list ports to which the receiver should be - /// sent. - /// @discussion This value specifies an NSArray of NSNumbers - /// (containing integers) which specify the only ports to which this - /// cookie should be sent. - /// @result The list ports to which the receiver should be sent. The - /// array may be nil, in which case this cookie can be sent to any - /// port. - NSArray? get portList { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_portList1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + @override + NSOperation init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSOperation._(_ret, _lib, retain: true, release: true); } - /// ! - /// @abstract Returns the value of the same site attribute on the cookie. - /// @discussion Cookies can be marked with an attribute Strict or Lax. - /// Cookies marked with "strict" (NSHTTPCookieSameSiteStrict) are not sent along with cross-site requests. - /// Cookies marked with "lax" (NSHTTPCookieSameSiteLax) sent along cross-site requests provided the - /// cross-site requests are top-level-requests (one that changes the url in the address bar). - /// The attribute value is canonicalized and stored. Any value other than the default (strict and lax) will be ignored. - /// @result strict or lax. The result could also be nil, in which case the - /// cookie will be sent along with all cross-site requests. - NSString get sameSitePolicy { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sameSitePolicy1); - return NSString._(_ret, _lib, retain: true, release: true); + static NSOperation new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSOperation1, _lib._sel_new1); + return NSOperation._(_ret, _lib, retain: false, release: true); } - static NSHTTPCookie new1(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSHTTPCookie1, _lib._sel_new1); - return NSHTTPCookie._(_ret, _lib, retain: false, release: true); + static NSOperation allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSOperation1, _lib._sel_allocWithZone_1, zone); + return NSOperation._(_ret, _lib, retain: false, release: true); } - static NSHTTPCookie alloc(PedometerBindings _lib) { + static NSOperation alloc(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSHTTPCookie1, _lib._sel_alloc1); - return NSHTTPCookie._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSOperation1, _lib._sel_alloc1); + return NSOperation._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSHTTPCookie1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSOperation1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSHTTPCookie1, + _lib._objc_msgSend_15(_lib._class_NSOperation1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSHTTPCookie1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSOperation1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSHTTPCookie1, _lib._sel_useStoredAccessor1); + _lib._class_NSOperation1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSHTTPCookie1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSOperation1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSHTTPCookie1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSHTTPCookie1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSOperation1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSHTTPCookie1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_NSOperation1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSHTTPCookie1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSOperation1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -/// ! -/// @enum NSHTTPCookieAcceptPolicy -/// @abstract Values for the different cookie accept policies -/// @constant NSHTTPCookieAcceptPolicyAlways Accept all cookies -/// @constant NSHTTPCookieAcceptPolicyNever Reject all cookies -/// @constant NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain Accept cookies -/// only from the main document domain -abstract class NSHTTPCookieAcceptPolicy { - static const int NSHTTPCookieAcceptPolicyAlways = 0; - static const int NSHTTPCookieAcceptPolicyNever = 1; - static const int NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain = 2; +abstract class NSOperationQueuePriority { + static const int NSOperationQueuePriorityVeryLow = -8; + static const int NSOperationQueuePriorityLow = -4; + static const int NSOperationQueuePriorityNormal = 0; + static const int NSOperationQueuePriorityHigh = 4; + static const int NSOperationQueuePriorityVeryHigh = 8; } -class NSURLSessionTask extends NSObject { - NSURLSessionTask._(ffi.Pointer id, PedometerBindings lib, +final class dispatch_queue_s extends ffi.Opaque {} + +class NSPointerArray extends NSObject { + NSPointerArray._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSURLSessionTask] that points to the same underlying object as [other]. - static NSURLSessionTask castFrom(T other) { - return NSURLSessionTask._(other._id, other._lib, - retain: true, release: true); + /// Returns a [NSPointerArray] that points to the same underlying object as [other]. + static NSPointerArray castFrom(T other) { + return NSPointerArray._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSURLSessionTask] that wraps the given raw object pointer. - static NSURLSessionTask castFromPointer( + /// Returns a [NSPointerArray] that wraps the given raw object pointer. + static NSPointerArray castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLSessionTask._(other, lib, retain: retain, release: release); + return NSPointerArray._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLSessionTask]. + /// Returns whether [obj] is an instance of [NSPointerArray]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLSessionTask1); + obj._lib._class_NSPointerArray1); } - int get taskIdentifier { - return _lib._objc_msgSend_10(_id, _lib._sel_taskIdentifier1); + NSPointerArray initWithOptions_(int options) { + final _ret = + _lib._objc_msgSend_768(_id, _lib._sel_initWithOptions_1, options); + return NSPointerArray._(_ret, _lib, retain: true, release: true); } - NSURLRequest? get originalRequest { - final _ret = _lib._objc_msgSend_692(_id, _lib._sel_originalRequest1); - return _ret.address == 0 - ? null - : NSURLRequest._(_ret, _lib, retain: true, release: true); + NSPointerArray initWithPointerFunctions_(NSPointerFunctions functions) { + final _ret = _lib._objc_msgSend_782( + _id, _lib._sel_initWithPointerFunctions_1, functions._id); + return NSPointerArray._(_ret, _lib, retain: true, release: true); } - NSURLRequest? get currentRequest { - final _ret = _lib._objc_msgSend_692(_id, _lib._sel_currentRequest1); - return _ret.address == 0 - ? null - : NSURLRequest._(_ret, _lib, retain: true, release: true); + static NSPointerArray pointerArrayWithOptions_( + PedometerBindings _lib, int options) { + final _ret = _lib._objc_msgSend_783(_lib._class_NSPointerArray1, + _lib._sel_pointerArrayWithOptions_1, options); + return NSPointerArray._(_ret, _lib, retain: true, release: true); } - NSURLResponse? get response { - final _ret = _lib._objc_msgSend_694(_id, _lib._sel_response1); - return _ret.address == 0 - ? null - : NSURLResponse._(_ret, _lib, retain: true, release: true); + static NSPointerArray pointerArrayWithPointerFunctions_( + PedometerBindings _lib, NSPointerFunctions functions) { + final _ret = _lib._objc_msgSend_784(_lib._class_NSPointerArray1, + _lib._sel_pointerArrayWithPointerFunctions_1, functions._id); + return NSPointerArray._(_ret, _lib, retain: true, release: true); } - NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); + NSPointerFunctions get pointerFunctions { + final _ret = _lib._objc_msgSend_785(_id, _lib._sel_pointerFunctions1); + return NSPointerFunctions._(_ret, _lib, retain: true, release: true); } - set delegate(NSObject? value) { - _lib._objc_msgSend_348( - _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); + ffi.Pointer pointerAtIndex_(int index) { + return _lib._objc_msgSend_786(_id, _lib._sel_pointerAtIndex_1, index); } - NSProgress? get progress { - final _ret = _lib._objc_msgSend_475(_id, _lib._sel_progress1); - return _ret.address == 0 - ? null - : NSProgress._(_ret, _lib, retain: true, release: true); + void addPointer_(ffi.Pointer pointer) { + _lib._objc_msgSend_52(_id, _lib._sel_addPointer_1, pointer); } - NSDate? get earliestBeginDate { - final _ret = _lib._objc_msgSend_154(_id, _lib._sel_earliestBeginDate1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + void removePointerAtIndex_(int index) { + _lib._objc_msgSend_417(_id, _lib._sel_removePointerAtIndex_1, index); } - set earliestBeginDate(NSDate? value) { - _lib._objc_msgSend_608( - _id, _lib._sel_setEarliestBeginDate_1, value?._id ?? ffi.nullptr); + void insertPointer_atIndex_(ffi.Pointer item, int index) { + _lib._objc_msgSend_22(_id, _lib._sel_insertPointer_atIndex_1, item, index); } - int get countOfBytesClientExpectsToSend { - return _lib._objc_msgSend_482( - _id, _lib._sel_countOfBytesClientExpectsToSend1); + void replacePointerAtIndex_withPointer_( + int index, ffi.Pointer item) { + _lib._objc_msgSend_787( + _id, _lib._sel_replacePointerAtIndex_withPointer_1, index, item); } - set countOfBytesClientExpectsToSend(int value) { - _lib._objc_msgSend_483( - _id, _lib._sel_setCountOfBytesClientExpectsToSend_1, value); + void compact() { + _lib._objc_msgSend_1(_id, _lib._sel_compact1); } - int get countOfBytesClientExpectsToReceive { - return _lib._objc_msgSend_482( - _id, _lib._sel_countOfBytesClientExpectsToReceive1); + int get count { + return _lib._objc_msgSend_10(_id, _lib._sel_count1); } - set countOfBytesClientExpectsToReceive(int value) { - _lib._objc_msgSend_483( - _id, _lib._sel_setCountOfBytesClientExpectsToReceive_1, value); + set count(int value) { + return _lib._objc_msgSend_463(_id, _lib._sel_setCount_1, value); } - int get countOfBytesSent { - return _lib._objc_msgSend_482(_id, _lib._sel_countOfBytesSent1); + static NSPointerArray strongObjectsPointerArray(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_788( + _lib._class_NSPointerArray1, _lib._sel_strongObjectsPointerArray1); + return NSPointerArray._(_ret, _lib, retain: true, release: true); } - int get countOfBytesReceived { - return _lib._objc_msgSend_482(_id, _lib._sel_countOfBytesReceived1); + static NSPointerArray weakObjectsPointerArray(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_788( + _lib._class_NSPointerArray1, _lib._sel_weakObjectsPointerArray1); + return NSPointerArray._(_ret, _lib, retain: true, release: true); } - int get countOfBytesExpectedToSend { - return _lib._objc_msgSend_482(_id, _lib._sel_countOfBytesExpectedToSend1); + NSArray get allObjects { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_allObjects1); + return NSArray._(_ret, _lib, retain: true, release: true); } - int get countOfBytesExpectedToReceive { - return _lib._objc_msgSend_482( - _id, _lib._sel_countOfBytesExpectedToReceive1); + @override + NSPointerArray init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSPointerArray._(_ret, _lib, retain: true, release: true); } - NSString? get taskDescription { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_taskDescription1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSPointerArray new1(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSPointerArray1, _lib._sel_new1); + return NSPointerArray._(_ret, _lib, retain: false, release: true); } - set taskDescription(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setTaskDescription_1, value?._id ?? ffi.nullptr); + static NSPointerArray allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSPointerArray1, _lib._sel_allocWithZone_1, zone); + return NSPointerArray._(_ret, _lib, retain: false, release: true); } - void cancel() { - return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + static NSPointerArray alloc(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSPointerArray1, _lib._sel_alloc1); + return NSPointerArray._(_ret, _lib, retain: false, release: true); } - int get state { - return _lib._objc_msgSend_695(_id, _lib._sel_state1); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + PedometerBindings _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSPointerArray1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument?._id ?? ffi.nullptr); } - NSError? get error { - final _ret = _lib._objc_msgSend_252(_id, _lib._sel_error1); - return _ret.address == 0 - ? null - : NSError._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_( + PedometerBindings _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSPointerArray1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - void suspend() { - return _lib._objc_msgSend_1(_id, _lib._sel_suspend1); + static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { + return _lib._objc_msgSend_12(_lib._class_NSPointerArray1, + _lib._sel_accessInstanceVariablesDirectly1); } - void resume() { - return _lib._objc_msgSend_1(_id, _lib._sel_resume1); + static bool useStoredAccessor(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSPointerArray1, _lib._sel_useStoredAccessor1); } - double get priority { - return _lib._objc_msgSend_179(_id, _lib._sel_priority1); + static NSSet keyPathsForValuesAffectingValueForKey_( + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSPointerArray1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); + return NSSet._(_ret, _lib, retain: true, release: true); } - set priority(double value) { - _lib._objc_msgSend_696(_id, _lib._sel_setPriority_1, value); + static bool automaticallyNotifiesObserversForKey_( + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSPointerArray1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } - bool get prefersIncrementalDelivery { - return _lib._objc_msgSend_12(_id, _lib._sel_prefersIncrementalDelivery1); + static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77( + _lib._class_NSPointerArray1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set prefersIncrementalDelivery(bool value) { - _lib._objc_msgSend_453( - _id, _lib._sel_setPrefersIncrementalDelivery_1, value); + static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSPointerArray1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSPointerFunctionsOptions { + static const int NSPointerFunctionsStrongMemory = 0; + static const int NSPointerFunctionsZeroingWeakMemory = 1; + static const int NSPointerFunctionsOpaqueMemory = 2; + static const int NSPointerFunctionsMallocMemory = 3; + static const int NSPointerFunctionsMachVirtualMemory = 4; + static const int NSPointerFunctionsWeakMemory = 5; + static const int NSPointerFunctionsObjectPersonality = 0; + static const int NSPointerFunctionsOpaquePersonality = 256; + static const int NSPointerFunctionsObjectPointerPersonality = 512; + static const int NSPointerFunctionsCStringPersonality = 768; + static const int NSPointerFunctionsStructPersonality = 1024; + static const int NSPointerFunctionsIntegerPersonality = 1280; + static const int NSPointerFunctionsCopyIn = 65536; +} + +class NSPointerFunctions extends NSObject { + NSPointerFunctions._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSPointerFunctions] that points to the same underlying object as [other]. + static NSPointerFunctions castFrom(T other) { + return NSPointerFunctions._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSPointerFunctions] that wraps the given raw object pointer. + static NSPointerFunctions castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSPointerFunctions._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSPointerFunctions]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSPointerFunctions1); + } + + NSPointerFunctions initWithOptions_(int options) { + final _ret = + _lib._objc_msgSend_768(_id, _lib._sel_initWithOptions_1, options); + return NSPointerFunctions._(_ret, _lib, retain: true, release: true); + } + + static NSPointerFunctions pointerFunctionsWithOptions_( + PedometerBindings _lib, int options) { + final _ret = _lib._objc_msgSend_769(_lib._class_NSPointerFunctions1, + _lib._sel_pointerFunctionsWithOptions_1, options); + return NSPointerFunctions._(_ret, _lib, retain: true, release: true); + } + + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>>)>> + get hashFunction { + return _lib._objc_msgSend_770(_id, _lib._sel_hashFunction1); + } + + set hashFunction( + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> + value) { + return _lib._objc_msgSend_771(_id, _lib._sel_setHashFunction_1, value); + } + + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>>)>> + get isEqualFunction { + return _lib._objc_msgSend_772(_id, _lib._sel_isEqualFunction1); + } + + set isEqualFunction( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> + value) { + return _lib._objc_msgSend_773(_id, _lib._sel_setIsEqualFunction_1, value); + } + + ffi.Pointer< + ffi.NativeFunction)>> + get sizeFunction { + return _lib._objc_msgSend_774(_id, _lib._sel_sizeFunction1); + } + + set sizeFunction( + ffi.Pointer< + ffi + .NativeFunction)>> + value) { + return _lib._objc_msgSend_775(_id, _lib._sel_setSizeFunction_1, value); + } + + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>> + get descriptionFunction { + return _lib._objc_msgSend_776(_id, _lib._sel_descriptionFunction1); + } + + set descriptionFunction( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>> + value) { + return _lib._objc_msgSend_777( + _id, _lib._sel_setDescriptionFunction_1, value); + } + + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>>)>> + get relinquishFunction { + return _lib._objc_msgSend_778(_id, _lib._sel_relinquishFunction1); + } + + set relinquishFunction( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> + value) { + return _lib._objc_msgSend_779( + _id, _lib._sel_setRelinquishFunction_1, value); + } + + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>>, + ffi.Bool)>> get acquireFunction { + return _lib._objc_msgSend_780(_id, _lib._sel_acquireFunction1); + } + + set acquireFunction( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>, + ffi.Bool)>> + value) { + return _lib._objc_msgSend_781(_id, _lib._sel_setAcquireFunction_1, value); + } + + bool get usesStrongWriteBarrier { + return _lib._objc_msgSend_12(_id, _lib._sel_usesStrongWriteBarrier1); + } + + set usesStrongWriteBarrier(bool value) { + return _lib._objc_msgSend_475( + _id, _lib._sel_setUsesStrongWriteBarrier_1, value); + } + + bool get usesWeakReadAndWriteBarriers { + return _lib._objc_msgSend_12(_id, _lib._sel_usesWeakReadAndWriteBarriers1); + } + + set usesWeakReadAndWriteBarriers(bool value) { + return _lib._objc_msgSend_475( + _id, _lib._sel_setUsesWeakReadAndWriteBarriers_1, value); } @override - NSURLSessionTask init() { + NSPointerFunctions init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionTask._(_ret, _lib, retain: true, release: true); + return NSPointerFunctions._(_ret, _lib, retain: true, release: true); } - static NSURLSessionTask new1(PedometerBindings _lib) { + static NSPointerFunctions new1(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLSessionTask1, _lib._sel_new1); - return NSURLSessionTask._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSPointerFunctions1, _lib._sel_new1); + return NSPointerFunctions._(_ret, _lib, retain: false, release: true); } - static NSURLSessionTask alloc(PedometerBindings _lib) { + static NSPointerFunctions allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSPointerFunctions1, _lib._sel_allocWithZone_1, zone); + return NSPointerFunctions._(_ret, _lib, retain: false, release: true); + } + + static NSPointerFunctions alloc(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLSessionTask1, _lib._sel_alloc1); - return NSURLSessionTask._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSPointerFunctions1, _lib._sel_alloc1); + return NSPointerFunctions._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURLSessionTask1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSPointerFunctions1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSessionTask1, + _lib._objc_msgSend_15(_lib._class_NSPointerFunctions1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionTask1, + return _lib._objc_msgSend_12(_lib._class_NSPointerFunctions1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLSessionTask1, _lib._sel_useStoredAccessor1); + _lib._class_NSPointerFunctions1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSURLSessionTask1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSPointerFunctions1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSURLSessionTask1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSURLSessionTask1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSPointerFunctions1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71(_lib._class_NSURLSessionTask1, + final _ret = _lib._objc_msgSend_77(_lib._class_NSPointerFunctions1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionTask1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSPointerFunctions1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -/// ! -/// @class NSURLRequest -/// -/// @abstract An NSURLRequest object represents a URL load request in a -/// manner independent of protocol and URL scheme. -/// -/// @discussion NSURLRequest encapsulates two basic data elements about -/// a URL load request: -///

    -///
  • The URL to load. -///
  • The policy to use when consulting the URL content cache made -/// available by the implementation. -///
-/// In addition, NSURLRequest is designed to be extended to support -/// protocol-specific data by adding categories to access a property -/// object provided in an interface targeted at protocol implementors. -///
    -///
  • Protocol implementors should direct their attention to the -/// NSURLRequestExtensibility category on NSURLRequest for more -/// information on how to provide extensions on NSURLRequest to -/// support protocol-specific request information. -///
  • Clients of this API who wish to create NSURLRequest objects to -/// load URL content should consult the protocol-specific NSURLRequest -/// categories that are available. The NSHTTPURLRequest category on -/// NSURLRequest is an example. -///
-///

-/// Objects of this class are used to create NSURLConnection instances, -/// which can are used to perform the load of a URL, or as input to the -/// NSURLConnection class method which performs synchronous loads. -class NSURLRequest extends NSObject { - NSURLRequest._(ffi.Pointer id, PedometerBindings lib, +class NSProcessInfo extends NSObject { + NSProcessInfo._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSURLRequest] that points to the same underlying object as [other]. - static NSURLRequest castFrom(T other) { - return NSURLRequest._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSProcessInfo] that points to the same underlying object as [other]. + static NSProcessInfo castFrom(T other) { + return NSProcessInfo._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSProcessInfo] that wraps the given raw object pointer. + static NSProcessInfo castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSProcessInfo._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSProcessInfo]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSProcessInfo1); + } + + static NSProcessInfo getProcessInfo(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_789( + _lib._class_NSProcessInfo1, _lib._sel_processInfo1); + return NSProcessInfo._(_ret, _lib, retain: true, release: true); + } + + NSDictionary get environment { + final _ret = _lib._objc_msgSend_350(_id, _lib._sel_environment1); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSArray get arguments { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_arguments1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSString get hostName { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_hostName1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString get processName { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_processName1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + set processName(NSString value) { + return _lib._objc_msgSend_507(_id, _lib._sel_setProcessName_1, value._id); + } + + int get processIdentifier { + return _lib._objc_msgSend_188(_id, _lib._sel_processIdentifier1); } - /// Returns a [NSURLRequest] that wraps the given raw object pointer. - static NSURLRequest castFromPointer( - PedometerBindings lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLRequest._(other, lib, retain: retain, release: release); + NSString get globallyUniqueString { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_globallyUniqueString1); + return NSString._(_ret, _lib, retain: true, release: true); } - /// Returns whether [obj] is an instance of [NSURLRequest]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLRequest1); + int operatingSystem() { + return _lib._objc_msgSend_10(_id, _lib._sel_operatingSystem1); } - /// ! - /// @method requestWithURL: - /// @abstract Allocates and initializes an NSURLRequest with the given - /// URL. - /// @discussion Default values are used for cache policy - /// (NSURLRequestUseProtocolCachePolicy) and timeout interval (60 - /// seconds). - /// @param URL The URL for the request. - /// @result A newly-created and autoreleased NSURLRequest instance. - static NSURLRequest requestWithURL_(PedometerBindings _lib, NSURL? URL) { - final _ret = _lib._objc_msgSend_209(_lib._class_NSURLRequest1, - _lib._sel_requestWithURL_1, URL?._id ?? ffi.nullptr); - return NSURLRequest._(_ret, _lib, retain: true, release: true); + NSString operatingSystemName() { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_operatingSystemName1); + return NSString._(_ret, _lib, retain: true, release: true); } - /// ! - /// @property supportsSecureCoding - /// @abstract Indicates that NSURLRequest implements the NSSecureCoding protocol. - /// @result A BOOL value set to YES. - static bool getSupportsSecureCoding(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLRequest1, _lib._sel_supportsSecureCoding1); + NSString get operatingSystemVersionString { + final _ret = + _lib._objc_msgSend_21(_id, _lib._sel_operatingSystemVersionString1); + return NSString._(_ret, _lib, retain: true, release: true); } - /// ! - /// @method requestWithURL:cachePolicy:timeoutInterval: - /// @abstract Allocates and initializes a NSURLRequest with the given - /// URL and cache policy. - /// @param URL The URL for the request. - /// @param cachePolicy The cache policy for the request. - /// @param timeoutInterval The timeout interval for the request. See the - /// commentary for the timeoutInterval for more information on - /// timeout intervals. - /// @result A newly-created and autoreleased NSURLRequest instance. - static NSURLRequest requestWithURL_cachePolicy_timeoutInterval_( - PedometerBindings _lib, - NSURL? URL, - int cachePolicy, - double timeoutInterval) { - final _ret = _lib._objc_msgSend_679( - _lib._class_NSURLRequest1, - _lib._sel_requestWithURL_cachePolicy_timeoutInterval_1, - URL?._id ?? ffi.nullptr, - cachePolicy, - timeoutInterval); - return NSURLRequest._(_ret, _lib, retain: true, release: true); + void getOperatingSystemVersion(ffi.Pointer stret) { + _lib._objc_msgSend_790(stret, _id, _lib._sel_operatingSystemVersion1); } - /// ! - /// @method initWithURL: - /// @abstract Initializes an NSURLRequest with the given URL. - /// @discussion Default values are used for cache policy - /// (NSURLRequestUseProtocolCachePolicy) and timeout interval (60 - /// seconds). - /// @param URL The URL for the request. - /// @result An initialized NSURLRequest. - NSURLRequest initWithURL_(NSURL? URL) { - final _ret = _lib._objc_msgSend_209( - _id, _lib._sel_initWithURL_1, URL?._id ?? ffi.nullptr); - return NSURLRequest._(_ret, _lib, retain: true, release: true); + int get processorCount { + return _lib._objc_msgSend_10(_id, _lib._sel_processorCount1); } - /// ! - /// @method initWithURL: - /// @abstract Initializes an NSURLRequest with the given URL and - /// cache policy. - /// @discussion This is the designated initializer for the - /// NSURLRequest class. - /// @param URL The URL for the request. - /// @param cachePolicy The cache policy for the request. - /// @param timeoutInterval The timeout interval for the request. See the - /// commentary for the timeoutInterval for more information on - /// timeout intervals. - /// @result An initialized NSURLRequest. - NSURLRequest initWithURL_cachePolicy_timeoutInterval_( - NSURL? URL, int cachePolicy, double timeoutInterval) { - final _ret = _lib._objc_msgSend_679( - _id, - _lib._sel_initWithURL_cachePolicy_timeoutInterval_1, - URL?._id ?? ffi.nullptr, - cachePolicy, - timeoutInterval); - return NSURLRequest._(_ret, _lib, retain: true, release: true); + int get activeProcessorCount { + return _lib._objc_msgSend_10(_id, _lib._sel_activeProcessorCount1); } - /// ! - /// @abstract Returns the URL of the receiver. - /// @result The URL of the receiver. - NSURL? get URL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + int get physicalMemory { + return _lib._objc_msgSend_155(_id, _lib._sel_physicalMemory1); } - /// ! - /// @abstract Returns the cache policy of the receiver. - /// @result The cache policy of the receiver. - int get cachePolicy { - return _lib._objc_msgSend_680(_id, _lib._sel_cachePolicy1); + bool isOperatingSystemAtLeastVersion_(NSOperatingSystemVersion version) { + return _lib._objc_msgSend_791( + _id, _lib._sel_isOperatingSystemAtLeastVersion_1, version); } - /// ! - /// @abstract Returns the timeout interval of the receiver. - /// @discussion The timeout interval specifies the limit on the idle - /// interval allotted to a request in the process of loading. The "idle - /// interval" is defined as the period of time that has passed since the - /// last instance of load activity occurred for a request that is in the - /// process of loading. Hence, when an instance of load activity occurs - /// (e.g. bytes are received from the network for a request), the idle - /// interval for a request is reset to 0. If the idle interval ever - /// becomes greater than or equal to the timeout interval, the request - /// is considered to have timed out. This timeout interval is measured - /// in seconds. - /// @result The timeout interval of the receiver. - double get timeoutInterval { - return _lib._objc_msgSend_147(_id, _lib._sel_timeoutInterval1); + double get systemUptime { + return _lib._objc_msgSend_156(_id, _lib._sel_systemUptime1); } - /// ! - /// @abstract The main document URL associated with this load. - /// @discussion This URL is used for the cookie "same domain as main - /// document" policy, and attributing the request as a sub-resource - /// of a user-specified URL. There may also be other future uses. - /// See setMainDocumentURL: - /// @result The main document URL. - NSURL? get mainDocumentURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_mainDocumentURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + void disableSuddenTermination() { + _lib._objc_msgSend_1(_id, _lib._sel_disableSuddenTermination1); } - /// ! - /// @abstract Returns the NSURLRequestNetworkServiceType associated with this request. - /// @discussion This will return NSURLNetworkServiceTypeDefault for requests that have - /// not explicitly set a networkServiceType (using the setNetworkServiceType method). - /// @result The NSURLRequestNetworkServiceType associated with this request. - int get networkServiceType { - return _lib._objc_msgSend_681(_id, _lib._sel_networkServiceType1); + void enableSuddenTermination() { + _lib._objc_msgSend_1(_id, _lib._sel_enableSuddenTermination1); } - /// ! - /// @abstract returns whether a connection created with this request is allowed to use - /// the built in cellular radios (if present). - /// @result YES if the receiver is allowed to use the built in cellular radios to - /// satisfy the request, NO otherwise. - bool get allowsCellularAccess { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsCellularAccess1); + void disableAutomaticTermination_(NSString reason) { + _lib._objc_msgSend_199( + _id, _lib._sel_disableAutomaticTermination_1, reason._id); } - /// ! - /// @abstract returns whether a connection created with this request is allowed to use - /// network interfaces which have been marked as expensive. - /// @result YES if the receiver is allowed to use an interface marked as expensive to - /// satisfy the request, NO otherwise. - bool get allowsExpensiveNetworkAccess { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsExpensiveNetworkAccess1); + void enableAutomaticTermination_(NSString reason) { + _lib._objc_msgSend_199( + _id, _lib._sel_enableAutomaticTermination_1, reason._id); } - /// ! - /// @abstract returns whether a connection created with this request is allowed to use - /// network interfaces which have been marked as constrained. - /// @result YES if the receiver is allowed to use an interface marked as constrained to - /// satisfy the request, NO otherwise. - bool get allowsConstrainedNetworkAccess { + bool get automaticTerminationSupportEnabled { return _lib._objc_msgSend_12( - _id, _lib._sel_allowsConstrainedNetworkAccess1); + _id, _lib._sel_automaticTerminationSupportEnabled1); } - /// ! - /// @abstract returns whether we assume that server supports HTTP/3. Enables QUIC - /// racing without HTTP/3 service discovery. - /// @result YES if server endpoint is known to support HTTP/3. Defaults to NO. - /// The default may be YES in a future OS update. - bool get assumesHTTP3Capable { - return _lib._objc_msgSend_12(_id, _lib._sel_assumesHTTP3Capable1); + set automaticTerminationSupportEnabled(bool value) { + return _lib._objc_msgSend_475( + _id, _lib._sel_setAutomaticTerminationSupportEnabled_1, value); } - /// ! - /// @abstract Returns the NSURLRequestAttribution associated with this request. - /// @discussion This will return NSURLRequestAttributionDeveloper for requests that - /// have not explicitly set an attribution. - /// @result The NSURLRequestAttribution associated with this request. - int get attribution { - return _lib._objc_msgSend_682(_id, _lib._sel_attribution1); + NSObject beginActivityWithOptions_reason_(int options, NSString reason) { + final _ret = _lib._objc_msgSend_792( + _id, _lib._sel_beginActivityWithOptions_reason_1, options, reason._id); + return NSObject._(_ret, _lib, retain: true, release: true); } - /// ! - /// @abstract sets whether a request is required to do DNSSEC validation during DNS lookup. - /// @discussion YES, if the DNS lookup for this request should require DNSSEC validation, - /// No otherwise. Defaults to NO. - bool get requiresDNSSECValidation { - return _lib._objc_msgSend_12(_id, _lib._sel_requiresDNSSECValidation1); + void endActivity_(NSObject activity) { + _lib._objc_msgSend_15(_id, _lib._sel_endActivity_1, activity._id); } - /// ! - /// @abstract Returns the HTTP request method of the receiver. - /// @result the HTTP request method of the receiver. - NSString? get HTTPMethod { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_HTTPMethod1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + void performActivityWithOptions_reason_usingBlock_( + int options, NSString reason, ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_793( + _id, + _lib._sel_performActivityWithOptions_reason_usingBlock_1, + options, + reason._id, + block._id); } - /// ! - /// @abstract Returns a dictionary containing all the HTTP header fields - /// of the receiver. - /// @result a dictionary containing all the HTTP header fields of the - /// receiver. - NSDictionary? get allHTTPHeaderFields { - final _ret = _lib._objc_msgSend_324(_id, _lib._sel_allHTTPHeaderFields1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + void performExpiringActivityWithReason_usingBlock_( + NSString reason, ObjCBlock_ffiVoid_bool block) { + _lib._objc_msgSend_794( + _id, + _lib._sel_performExpiringActivityWithReason_usingBlock_1, + reason._id, + block._id); } - /// ! - /// @method valueForHTTPHeaderField: - /// @abstract Returns the value which corresponds to the given header - /// field. Note that, in keeping with the HTTP RFC, HTTP header field - /// names are case-insensitive. - /// @param field the header field name to use for the lookup - /// (case-insensitive). - /// @result the value associated with the given header field, or nil if - /// there is no value associated with the given header field. - NSString valueForHTTPHeaderField_(NSString? field) { - final _ret = _lib._objc_msgSend_56( - _id, _lib._sel_valueForHTTPHeaderField_1, field?._id ?? ffi.nullptr); + NSString get userName { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_userName1); return NSString._(_ret, _lib, retain: true, release: true); } - /// ! - /// @abstract Returns the request body data of the receiver. - /// @discussion This data is sent as the message body of the request, as - /// in done in an HTTP POST request. - /// @result The request body data of the receiver. - NSData? get HTTPBody { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_HTTPBody1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + NSString get fullUserName { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_fullUserName1); + return NSString._(_ret, _lib, retain: true, release: true); } - /// ! - /// @abstract Returns the request body stream of the receiver - /// if any has been set - /// @discussion The stream is returned for examination only; it is - /// not safe for the caller to manipulate the stream in any way. Also - /// note that the HTTPBodyStream and HTTPBody are mutually exclusive - only - /// one can be set on a given request. Also note that the body stream is - /// preserved across copies, but is LOST when the request is coded via the - /// NSCoding protocol - /// @result The request body stream of the receiver. - NSInputStream? get HTTPBodyStream { - final _ret = _lib._objc_msgSend_691(_id, _lib._sel_HTTPBodyStream1); - return _ret.address == 0 - ? null - : NSInputStream._(_ret, _lib, retain: true, release: true); + int get thermalState { + return _lib._objc_msgSend_795(_id, _lib._sel_thermalState1); } - /// ! - /// @abstract Determine whether default cookie handling will happen for - /// this request. - /// @discussion NOTE: This value is not used prior to 10.3 - /// @result YES if cookies will be sent with and set for this request; - /// otherwise NO. - bool get HTTPShouldHandleCookies { - return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldHandleCookies1); + bool get lowPowerModeEnabled { + return _lib._objc_msgSend_12(_id, _lib._sel_isLowPowerModeEnabled1); } - /// ! - /// @abstract Reports whether the receiver is not expected to wait for the - /// previous response before transmitting. - /// @result YES if the receiver should transmit before the previous response - /// is received. NO if the receiver should wait for the previous response - /// before transmitting. - bool get HTTPShouldUsePipelining { - return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldUsePipelining1); + bool get macCatalystApp { + return _lib._objc_msgSend_12(_id, _lib._sel_isMacCatalystApp1); } - static NSURLRequest new1(PedometerBindings _lib) { + bool get iOSAppOnMac { + return _lib._objc_msgSend_12(_id, _lib._sel_isiOSAppOnMac1); + } + + @override + NSProcessInfo init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSProcessInfo._(_ret, _lib, retain: true, release: true); + } + + static NSProcessInfo new1(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLRequest1, _lib._sel_new1); - return NSURLRequest._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSProcessInfo1, _lib._sel_new1); + return NSProcessInfo._(_ret, _lib, retain: false, release: true); } - static NSURLRequest alloc(PedometerBindings _lib) { + static NSProcessInfo allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSProcessInfo1, _lib._sel_allocWithZone_1, zone); + return NSProcessInfo._(_ret, _lib, retain: false, release: true); + } + + static NSProcessInfo alloc(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLRequest1, _lib._sel_alloc1); - return NSURLRequest._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSProcessInfo1, _lib._sel_alloc1); + return NSProcessInfo._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURLRequest1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSProcessInfo1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLRequest1, + _lib._objc_msgSend_15(_lib._class_NSProcessInfo1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLRequest1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSProcessInfo1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLRequest1, _lib._sel_useStoredAccessor1); + _lib._class_NSProcessInfo1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSURLRequest1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSProcessInfo1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSURLRequest1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSURLRequest1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSProcessInfo1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSURLRequest1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_NSProcessInfo1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLRequest1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSProcessInfo1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -/// ! -/// @enum NSURLRequestCachePolicy -/// -/// @discussion The NSURLRequestCachePolicy enum defines constants that -/// can be used to specify the type of interactions that take place with -/// the caching system when the URL loading system processes a request. -/// Specifically, these constants cover interactions that have to do -/// with whether already-existing cache data is returned to satisfy a -/// URL load request. -/// -/// @constant NSURLRequestUseProtocolCachePolicy Specifies that the -/// caching logic defined in the protocol implementation, if any, is -/// used for a particular URL load request. This is the default policy -/// for URL load requests. -/// -/// @constant NSURLRequestReloadIgnoringLocalCacheData Specifies that the -/// data for the URL load should be loaded from the origin source. No -/// existing local cache data, regardless of its freshness or validity, -/// should be used to satisfy a URL load request. -/// -/// @constant NSURLRequestReloadIgnoringLocalAndRemoteCacheData Specifies that -/// not only should the local cache data be ignored, but that proxies and -/// other intermediates should be instructed to disregard their caches -/// so far as the protocol allows. -/// -/// @constant NSURLRequestReloadIgnoringCacheData Older name for -/// NSURLRequestReloadIgnoringLocalCacheData. -/// -/// @constant NSURLRequestReturnCacheDataElseLoad Specifies that the -/// existing cache data should be used to satisfy a URL load request, -/// regardless of its age or expiration date. However, if there is no -/// existing data in the cache corresponding to a URL load request, -/// the URL is loaded from the origin source. -/// -/// @constant NSURLRequestReturnCacheDataDontLoad Specifies that the -/// existing cache data should be used to satisfy a URL load request, -/// regardless of its age or expiration date. However, if there is no -/// existing data in the cache corresponding to a URL load request, no -/// attempt is made to load the URL from the origin source, and the -/// load is considered to have failed. This constant specifies a -/// behavior that is similar to an "offline" mode. -/// -/// @constant NSURLRequestReloadRevalidatingCacheData Specifies that -/// the existing cache data may be used provided the origin source -/// confirms its validity, otherwise the URL is loaded from the -/// origin source. -abstract class NSURLRequestCachePolicy { - static const int NSURLRequestUseProtocolCachePolicy = 0; - static const int NSURLRequestReloadIgnoringLocalCacheData = 1; - static const int NSURLRequestReloadIgnoringLocalAndRemoteCacheData = 4; - static const int NSURLRequestReloadIgnoringCacheData = 1; - static const int NSURLRequestReturnCacheDataElseLoad = 2; - static const int NSURLRequestReturnCacheDataDontLoad = 3; - static const int NSURLRequestReloadRevalidatingCacheData = 5; +final class NSOperatingSystemVersion extends ffi.Struct { + @ffi.Long() + external int majorVersion; + + @ffi.Long() + external int minorVersion; + + @ffi.Long() + external int patchVersion; } -/// ! -/// @enum NSURLRequestNetworkServiceType -/// -/// @discussion The NSURLRequestNetworkServiceType enum defines constants that -/// can be used to specify the service type to associate with this request. The -/// service type is used to provide the networking layers a hint of the purpose -/// of the request. -/// -/// @constant NSURLNetworkServiceTypeDefault Is the default value for an NSURLRequest -/// when created. This value should be left unchanged for the vast majority of requests. -/// -/// @constant NSURLNetworkServiceTypeVoIP Specifies that the request is for voice over IP -/// control traffic. -/// -/// @constant NSURLNetworkServiceTypeVideo Specifies that the request is for video -/// traffic. -/// -/// @constant NSURLNetworkServiceTypeBackground Specifies that the request is for background -/// traffic (such as a file download). -/// -/// @constant NSURLNetworkServiceTypeVoice Specifies that the request is for voice data. -/// -/// @constant NSURLNetworkServiceTypeResponsiveData Specifies that the request is for responsive (time sensitive) data. -/// -/// @constant NSURLNetworkServiceTypeAVStreaming Specifies that the request is streaming audio/video data. -/// -/// @constant NSURLNetworkServiceTypeResponsiveAV Specifies that the request is for responsive (time sensitive) audio/video data. -/// -/// @constant NSURLNetworkServiceTypeCallSignaling Specifies that the request is for call signaling. -abstract class NSURLRequestNetworkServiceType { - static const int NSURLNetworkServiceTypeDefault = 0; - static const int NSURLNetworkServiceTypeVoIP = 1; - static const int NSURLNetworkServiceTypeVideo = 2; - static const int NSURLNetworkServiceTypeBackground = 3; - static const int NSURLNetworkServiceTypeVoice = 4; - static const int NSURLNetworkServiceTypeResponsiveData = 6; - static const int NSURLNetworkServiceTypeAVStreaming = 8; - static const int NSURLNetworkServiceTypeResponsiveAV = 9; - static const int NSURLNetworkServiceTypeCallSignaling = 11; +abstract class NSActivityOptions { + static const int NSActivityIdleDisplaySleepDisabled = 1099511627776; + static const int NSActivityIdleSystemSleepDisabled = 1048576; + static const int NSActivitySuddenTerminationDisabled = 16384; + static const int NSActivityAutomaticTerminationDisabled = 32768; + static const int NSActivityAnimationTrackingEnabled = 35184372088832; + static const int NSActivityTrackingEnabled = 70368744177664; + static const int NSActivityUserInitiated = 16777215; + static const int NSActivityUserInitiatedAllowingIdleSystemSleep = 15728639; + static const int NSActivityBackground = 255; + static const int NSActivityLatencyCritical = 1095216660480; + static const int NSActivityUserInteractive = 1095233437695; } -/// ! -/// @enum NSURLRequestAttribution -/// -/// @discussion The NSURLRequestAttribution enum is used to indicate whether the -/// user or developer specified the URL. -/// -/// @constant NSURLRequestAttributionDeveloper Indicates that the URL was specified -/// by the developer. This is the default value for an NSURLRequest when created. -/// -/// @constant NSURLRequestAttributionUser Indicates that the URL was specified by -/// the user. -abstract class NSURLRequestAttribution { - static const int NSURLRequestAttributionDeveloper = 0; - static const int NSURLRequestAttributionUser = 1; +void _ObjCBlock_ffiVoid_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, bool arg0) => + block.ref.target + .cast>() + .asFunction()(arg0); +final _ObjCBlock_ffiVoid_bool_closureRegistry = {}; +int _ObjCBlock_ffiVoid_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_bool_registerClosure( + void Function(bool) fn) { + final id = ++_ObjCBlock_ffiVoid_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_bool_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); } -class NSInputStream extends NSStream { - NSInputStream._(ffi.Pointer id, PedometerBindings lib, - {bool retain = false, bool release = false}) +void _ObjCBlock_ffiVoid_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, bool arg0) => + _ObjCBlock_ffiVoid_bool_closureRegistry[block.ref.target.address]!(arg0); + +class ObjCBlock_ffiVoid_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_bool._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSInputStream] that points to the same underlying object as [other]. - static NSInputStream castFrom(T other) { - return NSInputStream._(other._id, other._lib, retain: true, release: true); - } + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_bool.fromFunctionPointer(PedometerBindings lib, + ffi.Pointer> ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Bool)>(_ObjCBlock_ffiVoid_bool_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - /// Returns a [NSInputStream] that wraps the given raw object pointer. - static NSInputStream castFromPointer( - PedometerBindings lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSInputStream._(other, lib, retain: retain, release: release); - } + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_bool.fromFunction( + PedometerBindings lib, void Function(bool) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, ffi.Bool)>( + _ObjCBlock_ffiVoid_bool_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_bool_registerClosure( + (bool arg0) => fn(arg0))), + lib); + static ffi.Pointer? _dartFuncTrampoline; - /// Returns whether [obj] is an instance of [NSInputStream]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSInputStream1); - } + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_bool.listener(PedometerBindings lib, void Function(bool) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, ffi.Bool)>.listener( + _ObjCBlock_ffiVoid_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_bool_registerClosure( + (bool arg0) => fn(arg0))), + lib); + static ffi + .NativeCallable, ffi.Bool)>? + _dartFuncListenerTrampoline; - int read_maxLength_(ffi.Pointer buffer, int len) { - return _lib._objc_msgSend_684(_id, _lib._sel_read_maxLength_1, buffer, len); - } + void call(bool arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, ffi.Bool arg0)>>() + .asFunction, bool)>()(_id, arg0); +} - bool getBuffer_length_(ffi.Pointer> buffer, - ffi.Pointer len) { - return _lib._objc_msgSend_690( - _id, _lib._sel_getBuffer_length_1, buffer, len); +abstract class NSProcessInfoThermalState { + static const int NSProcessInfoThermalStateNominal = 0; + static const int NSProcessInfoThermalStateFair = 1; + static const int NSProcessInfoThermalStateSerious = 2; + static const int NSProcessInfoThermalStateCritical = 3; +} + +class NSTextCheckingResult extends NSObject { + NSTextCheckingResult._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSTextCheckingResult] that points to the same underlying object as [other]. + static NSTextCheckingResult castFrom(T other) { + return NSTextCheckingResult._(other._id, other._lib, + retain: true, release: true); } - bool get hasBytesAvailable { - return _lib._objc_msgSend_12(_id, _lib._sel_hasBytesAvailable1); + /// Returns a [NSTextCheckingResult] that wraps the given raw object pointer. + static NSTextCheckingResult castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSTextCheckingResult._(other, lib, retain: retain, release: release); } - NSInputStream initWithData_(NSData? data) { - final _ret = _lib._objc_msgSend_211( - _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); - return NSInputStream._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [NSTextCheckingResult]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSTextCheckingResult1); } - NSInputStream initWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_209( - _id, _lib._sel_initWithURL_1, url?._id ?? ffi.nullptr); - return NSInputStream._(_ret, _lib, retain: true, release: true); + int get resultType { + return _lib._objc_msgSend_796(_id, _lib._sel_resultType1); } - NSInputStream initWithFileAtPath_(NSString? path) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithFileAtPath_1, path?._id ?? ffi.nullptr); - return NSInputStream._(_ret, _lib, retain: true, release: true); + void getRange(ffi.Pointer<_NSRange> stret) { + _lib._objc_msgSend_54(stret, _id, _lib._sel_range1); } - static NSInputStream inputStreamWithData_( - PedometerBindings _lib, NSData? data) { - final _ret = _lib._objc_msgSend_211(_lib._class_NSInputStream1, - _lib._sel_inputStreamWithData_1, data?._id ?? ffi.nullptr); - return NSInputStream._(_ret, _lib, retain: true, release: true); + NSOrthography? get orthography { + final _ret = _lib._objc_msgSend_797(_id, _lib._sel_orthography1); + return _ret.address == 0 + ? null + : NSOrthography._(_ret, _lib, retain: true, release: true); } - static NSInputStream inputStreamWithFileAtPath_( - PedometerBindings _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSInputStream1, - _lib._sel_inputStreamWithFileAtPath_1, path?._id ?? ffi.nullptr); - return NSInputStream._(_ret, _lib, retain: true, release: true); + NSArray? get grammarDetails { + final _ret = _lib._objc_msgSend_76(_id, _lib._sel_grammarDetails1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - static NSInputStream inputStreamWithURL_(PedometerBindings _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_209(_lib._class_NSInputStream1, - _lib._sel_inputStreamWithURL_1, url?._id ?? ffi.nullptr); - return NSInputStream._(_ret, _lib, retain: true, release: true); + NSDate? get date { + final _ret = _lib._objc_msgSend_164(_id, _lib._sel_date1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - static void getStreamsToHostWithName_port_inputStream_outputStream_( - PedometerBindings _lib, - NSString? hostname, - int port, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - return _lib._objc_msgSend_687( - _lib._class_NSInputStream1, - _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, - hostname?._id ?? ffi.nullptr, - port, - inputStream, - outputStream); + NSTimeZone? get timeZone { + final _ret = _lib._objc_msgSend_624(_id, _lib._sel_timeZone1); + return _ret.address == 0 + ? null + : NSTimeZone._(_ret, _lib, retain: true, release: true); } - static void getStreamsToHost_port_inputStream_outputStream_( - PedometerBindings _lib, - NSHost? host, - int port, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - return _lib._objc_msgSend_688( - _lib._class_NSInputStream1, - _lib._sel_getStreamsToHost_port_inputStream_outputStream_1, - host?._id ?? ffi.nullptr, - port, - inputStream, - outputStream); + double get duration { + return _lib._objc_msgSend_156(_id, _lib._sel_duration1); } - static void getBoundStreamsWithBufferSize_inputStream_outputStream_( - PedometerBindings _lib, - int bufferSize, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - return _lib._objc_msgSend_689( - _lib._class_NSInputStream1, - _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, - bufferSize, - inputStream, - outputStream); + NSDictionary? get components { + final _ret = _lib._objc_msgSend_340(_id, _lib._sel_components1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSInputStream new1(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSInputStream1, _lib._sel_new1); - return NSInputStream._(_ret, _lib, retain: false, release: true); + NSURL? get URL { + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_URL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - static NSInputStream alloc(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSInputStream1, _lib._sel_alloc1); - return NSInputStream._(_ret, _lib, retain: false, release: true); + NSString? get replacementString { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_replacementString1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - PedometerBindings _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSInputStream1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + NSArray? get alternativeStrings { + final _ret = _lib._objc_msgSend_76(_id, _lib._sel_alternativeStrings1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_( - PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSInputStream1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + NSRegularExpression? get regularExpression { + final _ret = _lib._objc_msgSend_809(_id, _lib._sel_regularExpression1); + return _ret.address == 0 + ? null + : NSRegularExpression._(_ret, _lib, retain: true, release: true); } - static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSInputStream1, _lib._sel_accessInstanceVariablesDirectly1); + NSString? get phoneNumber { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_phoneNumber1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static bool useStoredAccessor(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSInputStream1, _lib._sel_useStoredAccessor1); + int get numberOfRanges { + return _lib._objc_msgSend_10(_id, _lib._sel_numberOfRanges1); } - static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSInputStream1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + void rangeAtIndex_(ffi.Pointer<_NSRange> stret, int idx) { + _lib._objc_msgSend_297(stret, _id, _lib._sel_rangeAtIndex_1, idx); } - static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSInputStream1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + void rangeWithName_(ffi.Pointer<_NSRange> stret, NSString name) { + _lib._objc_msgSend_272(stret, _id, _lib._sel_rangeWithName_1, name._id); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSInputStream1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + NSTextCheckingResult resultByAdjustingRangesWithOffset_(int offset) { + final _ret = _lib._objc_msgSend_810( + _id, _lib._sel_resultByAdjustingRangesWithOffset_1, offset); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSInputStream1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + NSDictionary? get addressComponents { + final _ret = _lib._objc_msgSend_340(_id, _lib._sel_addressComponents1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSInputStream1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSTextCheckingResult orthographyCheckingResultWithRange_orthography_( + PedometerBindings _lib, _NSRange range, NSOrthography orthography) { + final _ret = _lib._objc_msgSend_811( + _lib._class_NSTextCheckingResult1, + _lib._sel_orthographyCheckingResultWithRange_orthography_1, + range, + orthography._id); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } -} - -class NSStream extends NSObject { - NSStream._(ffi.Pointer id, PedometerBindings lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - /// Returns a [NSStream] that points to the same underlying object as [other]. - static NSStream castFrom(T other) { - return NSStream._(other._id, other._lib, retain: true, release: true); + static NSTextCheckingResult spellCheckingResultWithRange_( + PedometerBindings _lib, _NSRange range) { + final _ret = _lib._objc_msgSend_812(_lib._class_NSTextCheckingResult1, + _lib._sel_spellCheckingResultWithRange_1, range); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - /// Returns a [NSStream] that wraps the given raw object pointer. - static NSStream castFromPointer( - PedometerBindings lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSStream._(other, lib, retain: retain, release: release); + static NSTextCheckingResult grammarCheckingResultWithRange_details_( + PedometerBindings _lib, _NSRange range, NSArray details) { + final _ret = _lib._objc_msgSend_813(_lib._class_NSTextCheckingResult1, + _lib._sel_grammarCheckingResultWithRange_details_1, range, details._id); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - /// Returns whether [obj] is an instance of [NSStream]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSStream1); + static NSTextCheckingResult dateCheckingResultWithRange_date_( + PedometerBindings _lib, _NSRange range, NSDate date) { + final _ret = _lib._objc_msgSend_814(_lib._class_NSTextCheckingResult1, + _lib._sel_dateCheckingResultWithRange_date_1, range, date._id); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - void open() { - return _lib._objc_msgSend_1(_id, _lib._sel_open1); + static NSTextCheckingResult + dateCheckingResultWithRange_date_timeZone_duration_( + PedometerBindings _lib, + _NSRange range, + NSDate date, + NSTimeZone timeZone, + double duration) { + final _ret = _lib._objc_msgSend_815( + _lib._class_NSTextCheckingResult1, + _lib._sel_dateCheckingResultWithRange_date_timeZone_duration_1, + range, + date._id, + timeZone._id, + duration); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - void close() { - return _lib._objc_msgSend_1(_id, _lib._sel_close1); + static NSTextCheckingResult addressCheckingResultWithRange_components_( + PedometerBindings _lib, _NSRange range, NSDictionary components) { + final _ret = _lib._objc_msgSend_816( + _lib._class_NSTextCheckingResult1, + _lib._sel_addressCheckingResultWithRange_components_1, + range, + components._id); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); + static NSTextCheckingResult linkCheckingResultWithRange_URL_( + PedometerBindings _lib, _NSRange range, NSURL url) { + final _ret = _lib._objc_msgSend_817(_lib._class_NSTextCheckingResult1, + _lib._sel_linkCheckingResultWithRange_URL_1, range, url._id); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - set delegate(NSObject? value) { - _lib._objc_msgSend_348( - _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); + static NSTextCheckingResult quoteCheckingResultWithRange_replacementString_( + PedometerBindings _lib, _NSRange range, NSString replacementString) { + final _ret = _lib._objc_msgSend_818( + _lib._class_NSTextCheckingResult1, + _lib._sel_quoteCheckingResultWithRange_replacementString_1, + range, + replacementString._id); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - NSObject propertyForKey_(NSString key) { - final _ret = - _lib._objc_msgSend_30(_id, _lib._sel_propertyForKey_1, key._id); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSTextCheckingResult dashCheckingResultWithRange_replacementString_( + PedometerBindings _lib, _NSRange range, NSString replacementString) { + final _ret = _lib._objc_msgSend_818( + _lib._class_NSTextCheckingResult1, + _lib._sel_dashCheckingResultWithRange_replacementString_1, + range, + replacementString._id); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - bool setProperty_forKey_(NSObject property, NSString key) { - return _lib._objc_msgSend_199( - _id, _lib._sel_setProperty_forKey_1, property._id, key._id); + static NSTextCheckingResult + replacementCheckingResultWithRange_replacementString_( + PedometerBindings _lib, _NSRange range, NSString replacementString) { + final _ret = _lib._objc_msgSend_818( + _lib._class_NSTextCheckingResult1, + _lib._sel_replacementCheckingResultWithRange_replacementString_1, + range, + replacementString._id); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - void scheduleInRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { - return _lib._objc_msgSend_650(_id, _lib._sel_scheduleInRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode._id); + static NSTextCheckingResult + correctionCheckingResultWithRange_replacementString_( + PedometerBindings _lib, _NSRange range, NSString replacementString) { + final _ret = _lib._objc_msgSend_818( + _lib._class_NSTextCheckingResult1, + _lib._sel_correctionCheckingResultWithRange_replacementString_1, + range, + replacementString._id); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - void removeFromRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { - return _lib._objc_msgSend_650(_id, _lib._sel_removeFromRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode._id); + static NSTextCheckingResult + correctionCheckingResultWithRange_replacementString_alternativeStrings_( + PedometerBindings _lib, + _NSRange range, + NSString replacementString, + NSArray alternativeStrings) { + final _ret = _lib._objc_msgSend_819( + _lib._class_NSTextCheckingResult1, + _lib._sel_correctionCheckingResultWithRange_replacementString_alternativeStrings_1, + range, + replacementString._id, + alternativeStrings._id); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - int get streamStatus { - return _lib._objc_msgSend_683(_id, _lib._sel_streamStatus1); + static NSTextCheckingResult + regularExpressionCheckingResultWithRanges_count_regularExpression_( + PedometerBindings _lib, + ffi.Pointer<_NSRange> ranges, + int count, + NSRegularExpression regularExpression) { + final _ret = _lib._objc_msgSend_820( + _lib._class_NSTextCheckingResult1, + _lib._sel_regularExpressionCheckingResultWithRanges_count_regularExpression_1, + ranges, + count, + regularExpression._id); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - NSError? get streamError { - final _ret = _lib._objc_msgSend_252(_id, _lib._sel_streamError1); - return _ret.address == 0 - ? null - : NSError._(_ret, _lib, retain: true, release: true); + static NSTextCheckingResult phoneNumberCheckingResultWithRange_phoneNumber_( + PedometerBindings _lib, _NSRange range, NSString phoneNumber) { + final _ret = _lib._objc_msgSend_818( + _lib._class_NSTextCheckingResult1, + _lib._sel_phoneNumberCheckingResultWithRange_phoneNumber_1, + range, + phoneNumber._id); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - static void getStreamsToHostWithName_port_inputStream_outputStream_( - PedometerBindings _lib, - NSString? hostname, - int port, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - return _lib._objc_msgSend_687( - _lib._class_NSStream1, - _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, - hostname?._id ?? ffi.nullptr, - port, - inputStream, - outputStream); + static NSTextCheckingResult + transitInformationCheckingResultWithRange_components_( + PedometerBindings _lib, _NSRange range, NSDictionary components) { + final _ret = _lib._objc_msgSend_816( + _lib._class_NSTextCheckingResult1, + _lib._sel_transitInformationCheckingResultWithRange_components_1, + range, + components._id); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - static void getStreamsToHost_port_inputStream_outputStream_( - PedometerBindings _lib, - NSHost? host, - int port, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - return _lib._objc_msgSend_688( - _lib._class_NSStream1, - _lib._sel_getStreamsToHost_port_inputStream_outputStream_1, - host?._id ?? ffi.nullptr, - port, - inputStream, - outputStream); + @override + NSTextCheckingResult init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - static void getBoundStreamsWithBufferSize_inputStream_outputStream_( - PedometerBindings _lib, - int bufferSize, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - return _lib._objc_msgSend_689( - _lib._class_NSStream1, - _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, - bufferSize, - inputStream, - outputStream); + static NSTextCheckingResult new1(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSTextCheckingResult1, _lib._sel_new1); + return NSTextCheckingResult._(_ret, _lib, retain: false, release: true); } - static NSStream new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSStream1, _lib._sel_new1); - return NSStream._(_ret, _lib, retain: false, release: true); + static NSTextCheckingResult allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSTextCheckingResult1, _lib._sel_allocWithZone_1, zone); + return NSTextCheckingResult._(_ret, _lib, retain: false, release: true); } - static NSStream alloc(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSStream1, _lib._sel_alloc1); - return NSStream._(_ret, _lib, retain: false, release: true); + static NSTextCheckingResult alloc(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSTextCheckingResult1, _lib._sel_alloc1); + return NSTextCheckingResult._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSStream1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSTextCheckingResult1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSStream1, + _lib._objc_msgSend_15(_lib._class_NSTextCheckingResult1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSStream1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSTextCheckingResult1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSStream1, _lib._sel_useStoredAccessor1); + _lib._class_NSTextCheckingResult1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSStream1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSTextCheckingResult1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSStream1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSStream1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSTextCheckingResult1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSStream1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77(_lib._class_NSTextCheckingResult1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSStream1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSTextCheckingResult1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSStreamStatus { - static const int NSStreamStatusNotOpen = 0; - static const int NSStreamStatusOpening = 1; - static const int NSStreamStatusOpen = 2; - static const int NSStreamStatusReading = 3; - static const int NSStreamStatusWriting = 4; - static const int NSStreamStatusAtEnd = 5; - static const int NSStreamStatusClosed = 6; - static const int NSStreamStatusError = 7; +abstract class NSTextCheckingType { + static const int NSTextCheckingTypeOrthography = 1; + static const int NSTextCheckingTypeSpelling = 2; + static const int NSTextCheckingTypeGrammar = 4; + static const int NSTextCheckingTypeDate = 8; + static const int NSTextCheckingTypeAddress = 16; + static const int NSTextCheckingTypeLink = 32; + static const int NSTextCheckingTypeQuote = 64; + static const int NSTextCheckingTypeDash = 128; + static const int NSTextCheckingTypeReplacement = 256; + static const int NSTextCheckingTypeCorrection = 512; + static const int NSTextCheckingTypeRegularExpression = 1024; + static const int NSTextCheckingTypePhoneNumber = 2048; + static const int NSTextCheckingTypeTransitInformation = 4096; } -class NSOutputStream extends NSStream { - NSOutputStream._(ffi.Pointer id, PedometerBindings lib, +class NSRegularExpression extends NSObject { + NSRegularExpression._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSOutputStream] that points to the same underlying object as [other]. - static NSOutputStream castFrom(T other) { - return NSOutputStream._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSRegularExpression] that points to the same underlying object as [other]. + static NSRegularExpression castFrom(T other) { + return NSRegularExpression._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSOutputStream] that wraps the given raw object pointer. - static NSOutputStream castFromPointer( + /// Returns a [NSRegularExpression] that wraps the given raw object pointer. + static NSRegularExpression castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSOutputStream._(other, lib, retain: retain, release: release); + return NSRegularExpression._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSOutputStream]. + /// Returns whether [obj] is an instance of [NSRegularExpression]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSOutputStream1); - } - - int write_maxLength_(ffi.Pointer buffer, int len) { - return _lib._objc_msgSend_684( - _id, _lib._sel_write_maxLength_1, buffer, len); - } - - bool get hasSpaceAvailable { - return _lib._objc_msgSend_12(_id, _lib._sel_hasSpaceAvailable1); - } - - NSOutputStream initToMemory() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_initToMemory1); - return NSOutputStream._(_ret, _lib, retain: true, release: true); - } - - NSOutputStream initToBuffer_capacity_( - ffi.Pointer buffer, int capacity) { - final _ret = _lib._objc_msgSend_685( - _id, _lib._sel_initToBuffer_capacity_1, buffer, capacity); - return NSOutputStream._(_ret, _lib, retain: true, release: true); - } - - NSOutputStream initWithURL_append_(NSURL? url, bool shouldAppend) { - final _ret = _lib._objc_msgSend_686(_id, _lib._sel_initWithURL_append_1, - url?._id ?? ffi.nullptr, shouldAppend); - return NSOutputStream._(_ret, _lib, retain: true, release: true); - } - - NSOutputStream initToFileAtPath_append_(NSString? path, bool shouldAppend) { - final _ret = _lib._objc_msgSend_29(_id, _lib._sel_initToFileAtPath_append_1, - path?._id ?? ffi.nullptr, shouldAppend); - return NSOutputStream._(_ret, _lib, retain: true, release: true); - } - - static NSOutputStream outputStreamToMemory(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSOutputStream1, _lib._sel_outputStreamToMemory1); - return NSOutputStream._(_ret, _lib, retain: true, release: true); - } - - static NSOutputStream outputStreamToBuffer_capacity_( - PedometerBindings _lib, ffi.Pointer buffer, int capacity) { - final _ret = _lib._objc_msgSend_685(_lib._class_NSOutputStream1, - _lib._sel_outputStreamToBuffer_capacity_1, buffer, capacity); - return NSOutputStream._(_ret, _lib, retain: true, release: true); - } - - static NSOutputStream outputStreamToFileAtPath_append_( - PedometerBindings _lib, NSString? path, bool shouldAppend) { - final _ret = _lib._objc_msgSend_29( - _lib._class_NSOutputStream1, - _lib._sel_outputStreamToFileAtPath_append_1, - path?._id ?? ffi.nullptr, - shouldAppend); - return NSOutputStream._(_ret, _lib, retain: true, release: true); - } - - static NSOutputStream outputStreamWithURL_append_( - PedometerBindings _lib, NSURL? url, bool shouldAppend) { - final _ret = _lib._objc_msgSend_686( - _lib._class_NSOutputStream1, - _lib._sel_outputStreamWithURL_append_1, - url?._id ?? ffi.nullptr, - shouldAppend); - return NSOutputStream._(_ret, _lib, retain: true, release: true); - } - - static void getStreamsToHostWithName_port_inputStream_outputStream_( - PedometerBindings _lib, - NSString? hostname, - int port, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - return _lib._objc_msgSend_687( - _lib._class_NSOutputStream1, - _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, - hostname?._id ?? ffi.nullptr, - port, - inputStream, - outputStream); - } - - static void getStreamsToHost_port_inputStream_outputStream_( - PedometerBindings _lib, - NSHost? host, - int port, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - return _lib._objc_msgSend_688( - _lib._class_NSOutputStream1, - _lib._sel_getStreamsToHost_port_inputStream_outputStream_1, - host?._id ?? ffi.nullptr, - port, - inputStream, - outputStream); - } - - static void getBoundStreamsWithBufferSize_inputStream_outputStream_( - PedometerBindings _lib, - int bufferSize, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - return _lib._objc_msgSend_689( - _lib._class_NSOutputStream1, - _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, - bufferSize, - inputStream, - outputStream); - } - - static NSOutputStream new1(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSOutputStream1, _lib._sel_new1); - return NSOutputStream._(_ret, _lib, retain: false, release: true); - } - - static NSOutputStream alloc(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSOutputStream1, _lib._sel_alloc1); - return NSOutputStream._(_ret, _lib, retain: false, release: true); + obj._lib._class_NSRegularExpression1); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( + static NSRegularExpression? regularExpressionWithPattern_options_error_( PedometerBindings _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSOutputStream1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSOutputStream1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSOutputStream1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSOutputStream1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSOutputStream1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSOutputStream1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + NSString pattern, + int options, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_798( + _lib._class_NSRegularExpression1, + _lib._sel_regularExpressionWithPattern_options_error_1, + pattern._id, + options, + error); + return _ret.address == 0 + ? null + : NSRegularExpression._(_ret, _lib, retain: true, release: true); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSOutputStream1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + NSRegularExpression? initWithPattern_options_error_(NSString pattern, + int options, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_799(_id, + _lib._sel_initWithPattern_options_error_1, pattern._id, options, error); + return _ret.address == 0 + ? null + : NSRegularExpression._(_ret, _lib, retain: true, release: true); } - static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSOutputStream1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + NSString get pattern { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_pattern1); + return NSString._(_ret, _lib, retain: true, release: true); } - static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSOutputStream1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + int get options { + return _lib._objc_msgSend_800(_id, _lib._sel_options1); } -} - -class NSHost extends _ObjCWrapper { - NSHost._(ffi.Pointer id, PedometerBindings lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - /// Returns a [NSHost] that points to the same underlying object as [other]. - static NSHost castFrom(T other) { - return NSHost._(other._id, other._lib, retain: true, release: true); + int get numberOfCaptureGroups { + return _lib._objc_msgSend_10(_id, _lib._sel_numberOfCaptureGroups1); } - /// Returns a [NSHost] that wraps the given raw object pointer. - static NSHost castFromPointer( - PedometerBindings lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSHost._(other, lib, retain: retain, release: release); + static NSString escapedPatternForString_( + PedometerBindings _lib, NSString string) { + final _ret = _lib._objc_msgSend_61(_lib._class_NSRegularExpression1, + _lib._sel_escapedPatternForString_1, string._id); + return NSString._(_ret, _lib, retain: true, release: true); } - /// Returns whether [obj] is an instance of [NSHost]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSHost1); + void enumerateMatchesInString_options_range_usingBlock_( + NSString string, + int options, + _NSRange range, + ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool block) { + _lib._objc_msgSend_801( + _id, + _lib._sel_enumerateMatchesInString_options_range_usingBlock_1, + string._id, + options, + range, + block._id); } -} - -/// ! -/// @class NSURLResponse -/// -/// @abstract An NSURLResponse object represents a URL load response in a -/// manner independent of protocol and URL scheme. -/// -/// @discussion NSURLResponse encapsulates the metadata associated -/// with a URL load. Note that NSURLResponse objects do not contain -/// the actual bytes representing the content of a URL. See -/// NSURLConnection and NSURLConnectionDelegate for more information -/// about receiving the content data for a URL load. -class NSURLResponse extends NSObject { - NSURLResponse._(ffi.Pointer id, PedometerBindings lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - /// Returns a [NSURLResponse] that points to the same underlying object as [other]. - static NSURLResponse castFrom(T other) { - return NSURLResponse._(other._id, other._lib, retain: true, release: true); + NSArray matchesInString_options_range_( + NSString string, int options, _NSRange range) { + final _ret = _lib._objc_msgSend_802(_id, + _lib._sel_matchesInString_options_range_1, string._id, options, range); + return NSArray._(_ret, _lib, retain: true, release: true); } - /// Returns a [NSURLResponse] that wraps the given raw object pointer. - static NSURLResponse castFromPointer( - PedometerBindings lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLResponse._(other, lib, retain: retain, release: release); + int numberOfMatchesInString_options_range_( + NSString string, int options, _NSRange range) { + return _lib._objc_msgSend_803( + _id, + _lib._sel_numberOfMatchesInString_options_range_1, + string._id, + options, + range); } - /// Returns whether [obj] is an instance of [NSURLResponse]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLResponse1); + NSTextCheckingResult? firstMatchInString_options_range_( + NSString string, int options, _NSRange range) { + final _ret = _lib._objc_msgSend_804( + _id, + _lib._sel_firstMatchInString_options_range_1, + string._id, + options, + range); + return _ret.address == 0 + ? null + : NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - /// ! - /// @method initWithURL:MIMEType:expectedContentLength:textEncodingName: - /// @abstract Initialize an NSURLResponse with the provided values. - /// @param URL the URL - /// @param MIMEType the MIME content type of the response - /// @param length the expected content length of the associated data - /// @param name the name of the text encoding for the associated data, if applicable, else nil - /// @result The initialized NSURLResponse. - /// @discussion This is the designated initializer for NSURLResponse. - NSURLResponse initWithURL_MIMEType_expectedContentLength_textEncodingName_( - NSURL? URL, NSString? MIMEType, int length, NSString? name) { - final _ret = _lib._objc_msgSend_693( + void rangeOfFirstMatchInString_options_range_(ffi.Pointer<_NSRange> stret, + NSString string, int options, _NSRange range) { + _lib._objc_msgSend_805( + stret, _id, - _lib._sel_initWithURL_MIMEType_expectedContentLength_textEncodingName_1, - URL?._id ?? ffi.nullptr, - MIMEType?._id ?? ffi.nullptr, - length, - name?._id ?? ffi.nullptr); - return NSURLResponse._(_ret, _lib, retain: true, release: true); + _lib._sel_rangeOfFirstMatchInString_options_range_1, + string._id, + options, + range); } - /// ! - /// @abstract Returns the URL of the receiver. - /// @result The URL of the receiver. - NSURL? get URL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + NSString stringByReplacingMatchesInString_options_range_withTemplate_( + NSString string, int options, _NSRange range, NSString templ) { + final _ret = _lib._objc_msgSend_806( + _id, + _lib._sel_stringByReplacingMatchesInString_options_range_withTemplate_1, + string._id, + options, + range, + templ._id); + return NSString._(_ret, _lib, retain: true, release: true); } - /// ! - /// @abstract Returns the MIME type of the receiver. - /// @discussion The MIME type is based on the information provided - /// from an origin source. However, that value may be changed or - /// corrected by a protocol implementation if it can be determined - /// that the origin server or source reported the information - /// incorrectly or imprecisely. An attempt to guess the MIME type may - /// be made if the origin source did not report any such information. - /// @result The MIME type of the receiver. - NSString? get MIMEType { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_MIMEType1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + int replaceMatchesInString_options_range_withTemplate_( + NSMutableString string, int options, _NSRange range, NSString templ) { + return _lib._objc_msgSend_807( + _id, + _lib._sel_replaceMatchesInString_options_range_withTemplate_1, + string._id, + options, + range, + templ._id); } - /// ! - /// @abstract Returns the expected content length of the receiver. - /// @discussion Some protocol implementations report a content length - /// as part of delivering load metadata, but not all protocols - /// guarantee the amount of data that will be delivered in actuality. - /// Hence, this method returns an expected amount. Clients should use - /// this value as an advisory, and should be prepared to deal with - /// either more or less data. - /// @result The expected content length of the receiver, or -1 if - /// there is no expectation that can be arrived at regarding expected - /// content length. - int get expectedContentLength { - return _lib._objc_msgSend_178(_id, _lib._sel_expectedContentLength1); + NSString replacementStringForResult_inString_offset_template_( + NSTextCheckingResult result, + NSString string, + int offset, + NSString templ) { + final _ret = _lib._objc_msgSend_808( + _id, + _lib._sel_replacementStringForResult_inString_offset_template_1, + result._id, + string._id, + offset, + templ._id); + return NSString._(_ret, _lib, retain: true, release: true); } - /// ! - /// @abstract Returns the name of the text encoding of the receiver. - /// @discussion This name will be the actual string reported by the - /// origin source during the course of performing a protocol-specific - /// URL load. Clients can inspect this string and convert it to an - /// NSStringEncoding or CFStringEncoding using the methods and - /// functions made available in the appropriate framework. - /// @result The name of the text encoding of the receiver, or nil if no - /// text encoding was specified. - NSString? get textEncodingName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_textEncodingName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSString escapedTemplateForString_( + PedometerBindings _lib, NSString string) { + final _ret = _lib._objc_msgSend_61(_lib._class_NSRegularExpression1, + _lib._sel_escapedTemplateForString_1, string._id); + return NSString._(_ret, _lib, retain: true, release: true); } - /// ! - /// @abstract Returns a suggested filename if the resource were saved to disk. - /// @discussion The method first checks if the server has specified a filename using the - /// content disposition header. If no valid filename is specified using that mechanism, - /// this method checks the last path component of the URL. If no valid filename can be - /// obtained using the last path component, this method uses the URL's host as the filename. - /// If the URL's host can't be converted to a valid filename, the filename "unknown" is used. - /// In most cases, this method appends the proper file extension based on the MIME type. - /// This method always returns a valid filename. - /// @result A suggested filename to use if saving the resource to disk. - NSString? get suggestedFilename { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_suggestedFilename1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + @override + NSRegularExpression init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSRegularExpression._(_ret, _lib, retain: true, release: true); } - static NSURLResponse new1(PedometerBindings _lib) { + static NSRegularExpression new1(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLResponse1, _lib._sel_new1); - return NSURLResponse._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSRegularExpression1, _lib._sel_new1); + return NSRegularExpression._(_ret, _lib, retain: false, release: true); } - static NSURLResponse alloc(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLResponse1, _lib._sel_alloc1); - return NSURLResponse._(_ret, _lib, retain: false, release: true); + static NSRegularExpression allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSRegularExpression1, _lib._sel_allocWithZone_1, zone); + return NSRegularExpression._(_ret, _lib, retain: false, release: true); + } + + static NSRegularExpression alloc(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSRegularExpression1, _lib._sel_alloc1); + return NSRegularExpression._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURLResponse1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSRegularExpression1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLResponse1, + _lib._objc_msgSend_15(_lib._class_NSRegularExpression1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLResponse1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSRegularExpression1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLResponse1, _lib._sel_useStoredAccessor1); + _lib._class_NSRegularExpression1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSURLResponse1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSRegularExpression1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSURLResponse1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSURLResponse1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSRegularExpression1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSURLResponse1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77(_lib._class_NSRegularExpression1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLResponse1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSRegularExpression1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSURLSessionTaskState { - static const int NSURLSessionTaskStateRunning = 0; - static const int NSURLSessionTaskStateSuspended = 1; - static const int NSURLSessionTaskStateCanceling = 2; - static const int NSURLSessionTaskStateCompleted = 3; +abstract class NSRegularExpressionOptions { + static const int NSRegularExpressionCaseInsensitive = 1; + static const int NSRegularExpressionAllowCommentsAndWhitespace = 2; + static const int NSRegularExpressionIgnoreMetacharacters = 4; + static const int NSRegularExpressionDotMatchesLineSeparators = 8; + static const int NSRegularExpressionAnchorsMatchLines = 16; + static const int NSRegularExpressionUseUnixLineSeparators = 32; + static const int NSRegularExpressionUseUnicodeWordBoundaries = 64; } -void _ObjCBlock36_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); +abstract class NSMatchingOptions { + static const int NSMatchingReportProgress = 1; + static const int NSMatchingReportCompletion = 2; + static const int NSMatchingAnchored = 4; + static const int NSMatchingWithTransparentBounds = 8; + static const int NSMatchingWithoutAnchoringBounds = 16; } -final _ObjCBlock36_closureRegistry = {}; -int _ObjCBlock36_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock36_registerClosure(Function fn) { - final id = ++_ObjCBlock36_closureRegistryIndex; - _ObjCBlock36_closureRegistry[id] = fn; +void + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Int32 arg1, ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer, int, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistry = + , int, ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistryIndex = + 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_registerClosure( + void Function(ffi.Pointer, int, ffi.Pointer) fn) { + final id = + ++_ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistry[ + id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock36_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock36_closureRegistry[block.ref.target.address]!(arg0); -} - -class ObjCBlock36 extends _ObjCBlockBase { - ObjCBlock36._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool + extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock36.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool.fromFunctionPointer( PedometerBindings lib, ffi.Pointer< - ffi - .NativeFunction arg0)>> + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Int32 arg1, ffi.Pointer arg2)>> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock36_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Int32, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock36.fromFunction( - PedometerBindings lib, void Function(ffi.Pointer arg0) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool.fromFunction( + PedometerBindings lib, + void Function(NSTextCheckingResult?, int, ffi.Pointer) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock36_closureTrampoline) + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Int32, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureTrampoline) .cast(), - _ObjCBlock36_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_registerClosure( + (ffi.Pointer arg0, int arg1, + ffi.Pointer arg2) => + fn(arg0.address == 0 ? null : NSTextCheckingResult._(arg0, lib, retain: true, release: true), arg1, arg2))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } - ffi.Pointer<_ObjCBlock> get pointer => _id; + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool.listener( + PedometerBindings lib, + void Function(NSTextCheckingResult?, int, ffi.Pointer) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Int32, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_registerClosure( + (ffi.Pointer arg0, int arg1, + ffi.Pointer arg2) => + fn(arg0.address == 0 ? null : NSTextCheckingResult._(arg0, lib, retain: true, release: true), arg1, arg2))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Int32, ffi.Pointer)>? _dartFuncListenerTrampoline; + + void call(NSTextCheckingResult? arg0, int arg1, ffi.Pointer arg2) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Int32 arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer, int, ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1, arg2); } -class NSIndexPath extends NSObject { - NSIndexPath._(ffi.Pointer id, PedometerBindings lib, +abstract class NSMatchingFlags { + static const int NSMatchingProgress = 1; + static const int NSMatchingCompleted = 2; + static const int NSMatchingHitEnd = 4; + static const int NSMatchingRequiredEnd = 8; + static const int NSMatchingInternalError = 16; +} + +class NSURLCache extends NSObject { + NSURLCache._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSIndexPath] that points to the same underlying object as [other]. - static NSIndexPath castFrom(T other) { - return NSIndexPath._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSURLCache] that points to the same underlying object as [other]. + static NSURLCache castFrom(T other) { + return NSURLCache._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSIndexPath] that wraps the given raw object pointer. - static NSIndexPath castFromPointer( + /// Returns a [NSURLCache] that wraps the given raw object pointer. + static NSURLCache castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSIndexPath._(other, lib, retain: retain, release: release); + return NSURLCache._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSIndexPath]. + /// Returns whether [obj] is an instance of [NSURLCache]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSIndexPath1); - } - - static NSIndexPath indexPathWithIndex_(PedometerBindings _lib, int index) { - final _ret = _lib._objc_msgSend_52( - _lib._class_NSIndexPath1, _lib._sel_indexPathWithIndex_1, index); - return NSIndexPath._(_ret, _lib, retain: true, release: true); - } - - static NSIndexPath indexPathWithIndexes_length_(PedometerBindings _lib, - ffi.Pointer indexes, int length) { - final _ret = _lib._objc_msgSend_699(_lib._class_NSIndexPath1, - _lib._sel_indexPathWithIndexes_length_1, indexes, length); - return NSIndexPath._(_ret, _lib, retain: true, release: true); - } - - NSIndexPath initWithIndexes_length_( - ffi.Pointer indexes, int length) { - final _ret = _lib._objc_msgSend_699( - _id, _lib._sel_initWithIndexes_length_1, indexes, length); - return NSIndexPath._(_ret, _lib, retain: true, release: true); - } - - NSIndexPath initWithIndex_(int index) { - final _ret = _lib._objc_msgSend_52(_id, _lib._sel_initWithIndex_1, index); - return NSIndexPath._(_ret, _lib, retain: true, release: true); - } - - NSIndexPath indexPathByAddingIndex_(int index) { - final _ret = - _lib._objc_msgSend_700(_id, _lib._sel_indexPathByAddingIndex_1, index); - return NSIndexPath._(_ret, _lib, retain: true, release: true); - } - - NSIndexPath indexPathByRemovingLastIndex() { - final _ret = - _lib._objc_msgSend_701(_id, _lib._sel_indexPathByRemovingLastIndex1); - return NSIndexPath._(_ret, _lib, retain: true, release: true); - } - - int indexAtPosition_(int position) { - return _lib._objc_msgSend_80(_id, _lib._sel_indexAtPosition_1, position); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLCache1); } - int get length { - return _lib._objc_msgSend_10(_id, _lib._sel_length1); + /// ! + /// @property sharedURLCache + /// @abstract Returns the shared NSURLCache instance or + /// sets the NSURLCache instance shared by all clients of + /// the current process. This will be the new object returned when + /// calls to the sharedURLCache method are made. + /// @discussion Unless set explicitly through a call to + /// +setSharedURLCache:, this method returns an NSURLCache + /// instance created with the following default values: + ///

    + ///
  • Memory capacity: 4 megabytes (4 * 1024 * 1024 bytes) + ///
  • Disk capacity: 20 megabytes (20 * 1024 * 1024 bytes) + ///
  • Disk path: (user home directory)/Library/Caches/(application bundle id) + ///
+ ///

Users who do not have special caching requirements or + /// constraints should find the default shared cache instance + /// acceptable. If this default shared cache instance is not + /// acceptable, +setSharedURLCache: can be called to set a + /// different NSURLCache instance to be returned from this method. + /// Callers should take care to ensure that the setter is called + /// at a time when no other caller has a reference to the previously-set + /// shared URL cache. This is to prevent storing cache data from + /// becoming unexpectedly unretrievable. + /// @result the shared NSURLCache instance. + static NSURLCache getSharedURLCache(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_821( + _lib._class_NSURLCache1, _lib._sel_sharedURLCache1); + return NSURLCache._(_ret, _lib, retain: true, release: true); } /// ! - /// @abstract Copies the indexes stored in this index path from the positions specified by positionRange into indexes. - /// @param indexes Buffer of at least as many NSUIntegers as specified by the length of positionRange. On return, this memory will hold the index path's indexes. - /// @param positionRange A range of valid positions within this index path. If the location plus the length of positionRange is greater than the length of this index path, this method raises an NSRangeException. - /// @discussion - /// It is the developer’s responsibility to allocate the memory for the C array. - void getIndexes_range_( - ffi.Pointer indexes, _NSRange positionRange) { - return _lib._objc_msgSend_702( - _id, _lib._sel_getIndexes_range_1, indexes, positionRange); + /// @property sharedURLCache + /// @abstract Returns the shared NSURLCache instance or + /// sets the NSURLCache instance shared by all clients of + /// the current process. This will be the new object returned when + /// calls to the sharedURLCache method are made. + /// @discussion Unless set explicitly through a call to + /// +setSharedURLCache:, this method returns an NSURLCache + /// instance created with the following default values: + ///

    + ///
  • Memory capacity: 4 megabytes (4 * 1024 * 1024 bytes) + ///
  • Disk capacity: 20 megabytes (20 * 1024 * 1024 bytes) + ///
  • Disk path: (user home directory)/Library/Caches/(application bundle id) + ///
+ ///

Users who do not have special caching requirements or + /// constraints should find the default shared cache instance + /// acceptable. If this default shared cache instance is not + /// acceptable, +setSharedURLCache: can be called to set a + /// different NSURLCache instance to be returned from this method. + /// Callers should take care to ensure that the setter is called + /// at a time when no other caller has a reference to the previously-set + /// shared URL cache. This is to prevent storing cache data from + /// becoming unexpectedly unretrievable. + /// @result the shared NSURLCache instance. + static void setSharedURLCache(PedometerBindings _lib, NSURLCache value) { + return _lib._objc_msgSend_822( + _lib._class_NSURLCache1, _lib._sel_setSharedURLCache_1, value._id); } - int compare_(NSIndexPath? otherObject) { - return _lib._objc_msgSend_703( - _id, _lib._sel_compare_1, otherObject?._id ?? ffi.nullptr); + /// ! + /// @method initWithMemoryCapacity:diskCapacity:diskPath: + /// @abstract Initializes an NSURLCache with the given capacity and + /// path. + /// @discussion The returned NSURLCache is backed by disk, so + /// developers can be more liberal with space when choosing the + /// capacity for this kind of cache. A disk cache measured in the tens + /// of megabytes should be acceptable in most cases. + /// @param memoryCapacity the capacity, measured in bytes, for the cache in memory. + /// @param diskCapacity the capacity, measured in bytes, for the cache on disk. + /// @param path the path on disk where the cache data is stored. + /// @result an initialized NSURLCache, with the given capacity, backed + /// by disk. + NSURLCache initWithMemoryCapacity_diskCapacity_diskPath_( + int memoryCapacity, int diskCapacity, NSString? path) { + final _ret = _lib._objc_msgSend_823( + _id, + _lib._sel_initWithMemoryCapacity_diskCapacity_diskPath_1, + memoryCapacity, + diskCapacity, + path?._id ?? ffi.nullptr); + return NSURLCache._(_ret, _lib, retain: true, release: true); } - /// This method is unsafe because it could potentially cause buffer overruns. You should use -getIndexes:range: instead. - void getIndexes_(ffi.Pointer indexes) { - return _lib._objc_msgSend_704(_id, _lib._sel_getIndexes_1, indexes); + /// ! + /// @method initWithMemoryCapacity:diskCapacity:directoryURL: + /// @abstract Initializes an NSURLCache with the given capacity and directory. + /// @param memoryCapacity the capacity, measured in bytes, for the cache in memory. Or 0 to disable memory cache. + /// @param diskCapacity the capacity, measured in bytes, for the cache on disk. Or 0 to disable disk cache. + /// @param directoryURL the path to a directory on disk where the cache data is stored. Or nil for default directory. + /// @result an initialized NSURLCache, with the given capacity, optionally backed by disk. + NSURLCache initWithMemoryCapacity_diskCapacity_directoryURL_( + int memoryCapacity, int diskCapacity, NSURL? directoryURL) { + final _ret = _lib._objc_msgSend_824( + _id, + _lib._sel_initWithMemoryCapacity_diskCapacity_directoryURL_1, + memoryCapacity, + diskCapacity, + directoryURL?._id ?? ffi.nullptr); + return NSURLCache._(_ret, _lib, retain: true, release: true); } - static NSIndexPath new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSIndexPath1, _lib._sel_new1); - return NSIndexPath._(_ret, _lib, retain: false, release: true); + /// ! + /// @method cachedResponseForRequest: + /// @abstract Returns the NSCachedURLResponse stored in the cache with + /// the given request. + /// @discussion The method returns nil if there is no + /// NSCachedURLResponse stored using the given request. + /// @param request the NSURLRequest to use as a key for the lookup. + /// @result The NSCachedURLResponse stored in the cache with the given + /// request, or nil if there is no NSCachedURLResponse stored with the + /// given request. + NSCachedURLResponse? cachedResponseForRequest_(NSURLRequest request) { + final _ret = _lib._objc_msgSend_829( + _id, _lib._sel_cachedResponseForRequest_1, request._id); + return _ret.address == 0 + ? null + : NSCachedURLResponse._(_ret, _lib, retain: true, release: true); } - static NSIndexPath alloc(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSIndexPath1, _lib._sel_alloc1); - return NSIndexPath._(_ret, _lib, retain: false, release: true); + /// ! + /// @method storeCachedResponse:forRequest: + /// @abstract Stores the given NSCachedURLResponse in the cache using + /// the given request. + /// @param cachedResponse The cached response to store. + /// @param request the NSURLRequest to use as a key for the storage. + void storeCachedResponse_forRequest_( + NSCachedURLResponse cachedResponse, NSURLRequest request) { + _lib._objc_msgSend_830(_id, _lib._sel_storeCachedResponse_forRequest_1, + cachedResponse._id, request._id); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - PedometerBindings _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSIndexPath1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + /// ! + /// @method removeCachedResponseForRequest: + /// @abstract Removes the NSCachedURLResponse from the cache that is + /// stored using the given request. + /// @discussion No action is taken if there is no NSCachedURLResponse + /// stored with the given request. + /// @param request the NSURLRequest to use as a key for the lookup. + void removeCachedResponseForRequest_(NSURLRequest request) { + _lib._objc_msgSend_831( + _id, _lib._sel_removeCachedResponseForRequest_1, request._id); } - static void cancelPreviousPerformRequestsWithTarget_( - PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSIndexPath1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + /// ! + /// @method removeAllCachedResponses + /// @abstract Clears the given cache, removing all NSCachedURLResponse + /// objects that it stores. + void removeAllCachedResponses() { + _lib._objc_msgSend_1(_id, _lib._sel_removeAllCachedResponses1); } - static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSIndexPath1, _lib._sel_accessInstanceVariablesDirectly1); + /// ! + /// @method removeCachedResponsesSince: + /// @abstract Clears the given cache of any cached responses since the provided date. + void removeCachedResponsesSinceDate_(NSDate date) { + _lib._objc_msgSend_488( + _id, _lib._sel_removeCachedResponsesSinceDate_1, date._id); } - static bool useStoredAccessor(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSIndexPath1, _lib._sel_useStoredAccessor1); + /// ! + /// @abstract In-memory capacity of the receiver. + /// @discussion At the time this call is made, the in-memory cache will truncate its contents to the size given, if necessary. + /// @result The in-memory capacity, measured in bytes, for the receiver. + int get memoryCapacity { + return _lib._objc_msgSend_10(_id, _lib._sel_memoryCapacity1); } - static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSIndexPath1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract In-memory capacity of the receiver. + /// @discussion At the time this call is made, the in-memory cache will truncate its contents to the size given, if necessary. + /// @result The in-memory capacity, measured in bytes, for the receiver. + set memoryCapacity(int value) { + return _lib._objc_msgSend_463(_id, _lib._sel_setMemoryCapacity_1, value); } - static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSIndexPath1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + /// ! + /// @abstract The on-disk capacity of the receiver. + /// @discussion The on-disk capacity, measured in bytes, for the receiver. On mutation the on-disk cache will truncate its contents to the size given, if necessary. + int get diskCapacity { + return _lib._objc_msgSend_10(_id, _lib._sel_diskCapacity1); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSIndexPath1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + /// ! + /// @abstract The on-disk capacity of the receiver. + /// @discussion The on-disk capacity, measured in bytes, for the receiver. On mutation the on-disk cache will truncate its contents to the size given, if necessary. + set diskCapacity(int value) { + return _lib._objc_msgSend_463(_id, _lib._sel_setDiskCapacity_1, value); } - static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSIndexPath1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Returns the current amount of space consumed by the + /// in-memory cache of the receiver. + /// @discussion This size, measured in bytes, indicates the current + /// usage of the in-memory cache. + /// @result the current usage of the in-memory cache of the receiver. + int get currentMemoryUsage { + return _lib._objc_msgSend_10(_id, _lib._sel_currentMemoryUsage1); } - static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSIndexPath1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Returns the current amount of space consumed by the + /// on-disk cache of the receiver. + /// @discussion This size, measured in bytes, indicates the current + /// usage of the on-disk cache. + /// @result the current usage of the on-disk cache of the receiver. + int get currentDiskUsage { + return _lib._objc_msgSend_10(_id, _lib._sel_currentDiskUsage1); } -} -class NSInflectionRule extends NSObject { - NSInflectionRule._(ffi.Pointer id, PedometerBindings lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSInflectionRule] that points to the same underlying object as [other]. - static NSInflectionRule castFrom(T other) { - return NSInflectionRule._(other._id, other._lib, - retain: true, release: true); + void storeCachedResponse_forDataTask_( + NSCachedURLResponse cachedResponse, NSURLSessionDataTask dataTask) { + _lib._objc_msgSend_832(_id, _lib._sel_storeCachedResponse_forDataTask_1, + cachedResponse._id, dataTask._id); } - /// Returns a [NSInflectionRule] that wraps the given raw object pointer. - static NSInflectionRule castFromPointer( - PedometerBindings lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSInflectionRule._(other, lib, retain: retain, release: release); + void getCachedResponseForDataTask_completionHandler_( + NSURLSessionDataTask dataTask, + ObjCBlock_ffiVoid_NSCachedURLResponse completionHandler) { + _lib._objc_msgSend_833( + _id, + _lib._sel_getCachedResponseForDataTask_completionHandler_1, + dataTask._id, + completionHandler._id); } - /// Returns whether [obj] is an instance of [NSInflectionRule]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSInflectionRule1); + void removeCachedResponseForDataTask_(NSURLSessionDataTask dataTask) { + _lib._objc_msgSend_834( + _id, _lib._sel_removeCachedResponseForDataTask_1, dataTask._id); } @override - NSObject init() { + NSURLCache init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSInflectionRule? getAutomaticRule(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_705( - _lib._class_NSInflectionRule1, _lib._sel_automaticRule1); - return _ret.address == 0 - ? null - : NSInflectionRule._(_ret, _lib, retain: true, release: true); - } - - static bool canInflectLanguage_(PedometerBindings _lib, NSString? language) { - return _lib._objc_msgSend_51(_lib._class_NSInflectionRule1, - _lib._sel_canInflectLanguage_1, language?._id ?? ffi.nullptr); + return NSURLCache._(_ret, _lib, retain: true, release: true); } - static bool getCanInflectPreferredLocalization(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSInflectionRule1, - _lib._sel_canInflectPreferredLocalization1); + static NSURLCache new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLCache1, _lib._sel_new1); + return NSURLCache._(_ret, _lib, retain: false, release: true); } - static NSInflectionRule new1(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSInflectionRule1, _lib._sel_new1); - return NSInflectionRule._(_ret, _lib, retain: false, release: true); + static NSURLCache allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLCache1, _lib._sel_allocWithZone_1, zone); + return NSURLCache._(_ret, _lib, retain: false, release: true); } - static NSInflectionRule alloc(PedometerBindings _lib) { + static NSURLCache alloc(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSInflectionRule1, _lib._sel_alloc1); - return NSInflectionRule._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSURLCache1, _lib._sel_alloc1); + return NSURLCache._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSInflectionRule1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSURLCache1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSInflectionRule1, + _lib._objc_msgSend_15(_lib._class_NSURLCache1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSInflectionRule1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSURLCache1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSInflectionRule1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLCache1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSInflectionRule1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSURLCache1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSInflectionRule1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSInflectionRule1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSURLCache1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71(_lib._class_NSInflectionRule1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_NSURLCache1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSInflectionRule1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSURLCache1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSMorphology extends NSObject { - NSMorphology._(ffi.Pointer id, PedometerBindings lib, +/// ! +/// @class NSCachedURLResponse +/// NSCachedURLResponse is a class whose objects functions as a wrapper for +/// objects that are stored in the framework's caching system. +/// It is used to maintain characteristics and attributes of a cached +/// object. +class NSCachedURLResponse extends NSObject { + NSCachedURLResponse._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSMorphology] that points to the same underlying object as [other]. - static NSMorphology castFrom(T other) { - return NSMorphology._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSCachedURLResponse] that points to the same underlying object as [other]. + static NSCachedURLResponse castFrom(T other) { + return NSCachedURLResponse._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSMorphology] that wraps the given raw object pointer. - static NSMorphology castFromPointer( + /// Returns a [NSCachedURLResponse] that wraps the given raw object pointer. + static NSCachedURLResponse castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSMorphology._(other, lib, retain: retain, release: release); + return NSCachedURLResponse._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSMorphology]. + /// Returns whether [obj] is an instance of [NSCachedURLResponse]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSMorphology1); - } - - int get grammaticalGender { - return _lib._objc_msgSend_706(_id, _lib._sel_grammaticalGender1); - } - - set grammaticalGender(int value) { - _lib._objc_msgSend_707(_id, _lib._sel_setGrammaticalGender_1, value); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSCachedURLResponse1); } - int get partOfSpeech { - return _lib._objc_msgSend_708(_id, _lib._sel_partOfSpeech1); + /// ! + /// @method initWithResponse:data + /// @abstract Initializes an NSCachedURLResponse with the given + /// response and data. + /// @discussion A default NSURLCacheStoragePolicy is used for + /// NSCachedURLResponse objects initialized with this method: + /// NSURLCacheStorageAllowed. + /// @param response a NSURLResponse object. + /// @param data an NSData object representing the URL content + /// corresponding to the given response. + /// @result an initialized NSCachedURLResponse. + NSCachedURLResponse initWithResponse_data_( + NSURLResponse response, NSData data) { + final _ret = _lib._objc_msgSend_825( + _id, _lib._sel_initWithResponse_data_1, response._id, data._id); + return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); } - set partOfSpeech(int value) { - _lib._objc_msgSend_709(_id, _lib._sel_setPartOfSpeech_1, value); + /// ! + /// @method initWithResponse:data:userInfo:storagePolicy: + /// @abstract Initializes an NSCachedURLResponse with the given + /// response, data, user-info dictionary, and storage policy. + /// @param response a NSURLResponse object. + /// @param data an NSData object representing the URL content + /// corresponding to the given response. + /// @param userInfo a dictionary user-specified information to be + /// stored with the NSCachedURLResponse. + /// @param storagePolicy an NSURLCacheStoragePolicy constant. + /// @result an initialized NSCachedURLResponse. + NSCachedURLResponse initWithResponse_data_userInfo_storagePolicy_( + NSURLResponse response, + NSData data, + NSDictionary? userInfo, + int storagePolicy) { + final _ret = _lib._objc_msgSend_826( + _id, + _lib._sel_initWithResponse_data_userInfo_storagePolicy_1, + response._id, + data._id, + userInfo?._id ?? ffi.nullptr, + storagePolicy); + return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); } - int get number { - return _lib._objc_msgSend_710(_id, _lib._sel_number1); + /// ! + /// @abstract Returns the response wrapped by this instance. + /// @result The response wrapped by this instance. + NSURLResponse get response { + final _ret = _lib._objc_msgSend_827(_id, _lib._sel_response1); + return NSURLResponse._(_ret, _lib, retain: true, release: true); } - set number(int value) { - _lib._objc_msgSend_711(_id, _lib._sel_setNumber_1, value); + /// ! + /// @abstract Returns the data of the receiver. + /// @result The data of the receiver. + NSData get data { + final _ret = _lib._objc_msgSend_43(_id, _lib._sel_data1); + return NSData._(_ret, _lib, retain: true, release: true); } - NSMorphologyCustomPronoun customPronounForLanguage_(NSString? language) { - final _ret = _lib._objc_msgSend_712(_id, - _lib._sel_customPronounForLanguage_1, language?._id ?? ffi.nullptr); - return NSMorphologyCustomPronoun._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Returns the userInfo dictionary of the receiver. + /// @result The userInfo dictionary of the receiver. + NSDictionary? get userInfo { + final _ret = _lib._objc_msgSend_340(_id, _lib._sel_userInfo1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - bool setCustomPronoun_forLanguage_error_(NSMorphologyCustomPronoun? features, - NSString? language, ffi.Pointer> error) { - return _lib._objc_msgSend_713( - _id, - _lib._sel_setCustomPronoun_forLanguage_error_1, - features?._id ?? ffi.nullptr, - language?._id ?? ffi.nullptr, - error); + /// ! + /// @abstract Returns the NSURLCacheStoragePolicy constant of the receiver. + /// @result The NSURLCacheStoragePolicy constant of the receiver. + int get storagePolicy { + return _lib._objc_msgSend_828(_id, _lib._sel_storagePolicy1); } - bool get unspecified { - return _lib._objc_msgSend_12(_id, _lib._sel_isUnspecified1); + @override + NSCachedURLResponse init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); } - static NSMorphology? getUserMorphology(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_714( - _lib._class_NSMorphology1, _lib._sel_userMorphology1); - return _ret.address == 0 - ? null - : NSMorphology._(_ret, _lib, retain: true, release: true); + static NSCachedURLResponse new1(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSCachedURLResponse1, _lib._sel_new1); + return NSCachedURLResponse._(_ret, _lib, retain: false, release: true); } - static NSMorphology new1(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMorphology1, _lib._sel_new1); - return NSMorphology._(_ret, _lib, retain: false, release: true); + static NSCachedURLResponse allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSCachedURLResponse1, _lib._sel_allocWithZone_1, zone); + return NSCachedURLResponse._(_ret, _lib, retain: false, release: true); } - static NSMorphology alloc(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMorphology1, _lib._sel_alloc1); - return NSMorphology._(_ret, _lib, retain: false, release: true); + static NSCachedURLResponse alloc(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSCachedURLResponse1, _lib._sel_alloc1); + return NSCachedURLResponse._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSMorphology1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSCachedURLResponse1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMorphology1, + _lib._objc_msgSend_15(_lib._class_NSCachedURLResponse1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMorphology1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSCachedURLResponse1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSMorphology1, _lib._sel_useStoredAccessor1); + _lib._class_NSCachedURLResponse1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSMorphology1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSCachedURLResponse1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSMorphology1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSMorphology1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSCachedURLResponse1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSMorphology1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77(_lib._class_NSCachedURLResponse1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSMorphology1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSCachedURLResponse1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSGrammaticalGender { - static const int NSGrammaticalGenderNotSet = 0; - static const int NSGrammaticalGenderFeminine = 1; - static const int NSGrammaticalGenderMasculine = 2; - static const int NSGrammaticalGenderNeuter = 3; -} - -abstract class NSGrammaticalPartOfSpeech { - static const int NSGrammaticalPartOfSpeechNotSet = 0; - static const int NSGrammaticalPartOfSpeechDeterminer = 1; - static const int NSGrammaticalPartOfSpeechPronoun = 2; - static const int NSGrammaticalPartOfSpeechLetter = 3; - static const int NSGrammaticalPartOfSpeechAdverb = 4; - static const int NSGrammaticalPartOfSpeechParticle = 5; - static const int NSGrammaticalPartOfSpeechAdjective = 6; - static const int NSGrammaticalPartOfSpeechAdposition = 7; - static const int NSGrammaticalPartOfSpeechVerb = 8; - static const int NSGrammaticalPartOfSpeechNoun = 9; - static const int NSGrammaticalPartOfSpeechConjunction = 10; - static const int NSGrammaticalPartOfSpeechNumeral = 11; - static const int NSGrammaticalPartOfSpeechInterjection = 12; - static const int NSGrammaticalPartOfSpeechPreposition = 13; - static const int NSGrammaticalPartOfSpeechAbbreviation = 14; -} - -abstract class NSGrammaticalNumber { - static const int NSGrammaticalNumberNotSet = 0; - static const int NSGrammaticalNumberSingular = 1; - static const int NSGrammaticalNumberZero = 2; - static const int NSGrammaticalNumberPlural = 3; - static const int NSGrammaticalNumberPluralTwo = 4; - static const int NSGrammaticalNumberPluralFew = 5; - static const int NSGrammaticalNumberPluralMany = 6; +/// ! +/// @enum NSURLCacheStoragePolicy +/// +/// @discussion The NSURLCacheStoragePolicy enum defines constants that +/// can be used to specify the type of storage that is allowable for an +/// NSCachedURLResponse object that is to be stored in an NSURLCache. +/// +/// @constant NSURLCacheStorageAllowed Specifies that storage in an +/// NSURLCache is allowed without restriction. +/// +/// @constant NSURLCacheStorageAllowedInMemoryOnly Specifies that +/// storage in an NSURLCache is allowed; however storage should be +/// done in memory only, no disk storage should be done. +/// +/// @constant NSURLCacheStorageNotAllowed Specifies that storage in an +/// NSURLCache is not allowed in any fashion, either in memory or on +/// disk. +abstract class NSURLCacheStoragePolicy { + static const int NSURLCacheStorageAllowed = 0; + static const int NSURLCacheStorageAllowedInMemoryOnly = 1; + static const int NSURLCacheStorageNotAllowed = 2; } -class NSMorphologyCustomPronoun extends NSObject { - NSMorphologyCustomPronoun._(ffi.Pointer id, PedometerBindings lib, +class NSURLSessionDataTask extends NSURLSessionTask { + NSURLSessionDataTask._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSMorphologyCustomPronoun] that points to the same underlying object as [other]. - static NSMorphologyCustomPronoun castFrom(T other) { - return NSMorphologyCustomPronoun._(other._id, other._lib, + /// Returns a [NSURLSessionDataTask] that points to the same underlying object as [other]. + static NSURLSessionDataTask castFrom(T other) { + return NSURLSessionDataTask._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSMorphologyCustomPronoun] that wraps the given raw object pointer. - static NSMorphologyCustomPronoun castFromPointer( + /// Returns a [NSURLSessionDataTask] that wraps the given raw object pointer. + static NSURLSessionDataTask castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSMorphologyCustomPronoun._(other, lib, - retain: retain, release: release); + return NSURLSessionDataTask._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSMorphologyCustomPronoun]. + /// Returns whether [obj] is an instance of [NSURLSessionDataTask]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMorphologyCustomPronoun1); - } - - static bool isSupportedForLanguage_( - PedometerBindings _lib, NSString? language) { - return _lib._objc_msgSend_51(_lib._class_NSMorphologyCustomPronoun1, - _lib._sel_isSupportedForLanguage_1, language?._id ?? ffi.nullptr); - } - - static NSArray requiredKeysForLanguage_( - PedometerBindings _lib, NSString? language) { - final _ret = _lib._objc_msgSend_115(_lib._class_NSMorphologyCustomPronoun1, - _lib._sel_requiredKeysForLanguage_1, language?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSString? get subjectForm { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_subjectForm1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set subjectForm(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setSubjectForm_1, value?._id ?? ffi.nullptr); - } - - NSString? get objectForm { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_objectForm1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set objectForm(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setObjectForm_1, value?._id ?? ffi.nullptr); - } - - NSString? get possessiveForm { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_possessiveForm1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set possessiveForm(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setPossessiveForm_1, value?._id ?? ffi.nullptr); - } - - NSString? get possessiveAdjectiveForm { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_possessiveAdjectiveForm1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set possessiveAdjectiveForm(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setPossessiveAdjectiveForm_1, value?._id ?? ffi.nullptr); + obj._lib._class_NSURLSessionDataTask1); } - NSString? get reflexiveForm { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_reflexiveForm1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + @override + NSURLSessionDataTask init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); } - set reflexiveForm(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setReflexiveForm_1, value?._id ?? ffi.nullptr); + static NSURLSessionDataTask new1(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLSessionDataTask1, _lib._sel_new1); + return NSURLSessionDataTask._(_ret, _lib, retain: false, release: true); } - static NSMorphologyCustomPronoun new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMorphologyCustomPronoun1, _lib._sel_new1); - return NSMorphologyCustomPronoun._(_ret, _lib, - retain: false, release: true); + static NSURLSessionDataTask allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLSessionDataTask1, _lib._sel_allocWithZone_1, zone); + return NSURLSessionDataTask._(_ret, _lib, retain: false, release: true); } - static NSMorphologyCustomPronoun alloc(PedometerBindings _lib) { + static NSURLSessionDataTask alloc(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSMorphologyCustomPronoun1, _lib._sel_alloc1); - return NSMorphologyCustomPronoun._(_ret, _lib, - retain: false, release: true); + _lib._class_NSURLSessionDataTask1, _lib._sel_alloc1); + return NSURLSessionDataTask._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSMorphologyCustomPronoun1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSURLSessionDataTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMorphologyCustomPronoun1, + _lib._objc_msgSend_15(_lib._class_NSURLSessionDataTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSMorphologyCustomPronoun1, + return _lib._objc_msgSend_12(_lib._class_NSURLSessionDataTask1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSMorphologyCustomPronoun1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLSessionDataTask1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSMorphologyCustomPronoun1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSURLSessionDataTask1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSMorphologyCustomPronoun1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSMorphologyCustomPronoun1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSURLSessionDataTask1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71(_lib._class_NSMorphologyCustomPronoun1, + final _ret = _lib._objc_msgSend_77(_lib._class_NSURLSessionDataTask1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSMorphologyCustomPronoun1, - _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionDataTask1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSOperationQueue extends NSObject { - NSOperationQueue._(ffi.Pointer id, PedometerBindings lib, +void _ObjCBlock_ffiVoid_NSCachedURLResponse_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi + .NativeFunction arg0)>>() + .asFunction)>()(arg0); +final _ObjCBlock_ffiVoid_NSCachedURLResponse_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_NSCachedURLResponse_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSCachedURLResponse_registerClosure( + void Function(ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSCachedURLResponse_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSCachedURLResponse_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSCachedURLResponse_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + _ObjCBlock_ffiVoid_NSCachedURLResponse_closureRegistry[ + block.ref.target.address]!(arg0); + +class ObjCBlock_ffiVoid_NSCachedURLResponse extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSCachedURLResponse._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSCachedURLResponse.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi + .NativeFunction arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSCachedURLResponse_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSCachedURLResponse.fromFunction( + PedometerBindings lib, void Function(NSCachedURLResponse?) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSCachedURLResponse_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSCachedURLResponse_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSCachedURLResponse._(arg0, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSCachedURLResponse.listener( + PedometerBindings lib, void Function(NSCachedURLResponse?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSCachedURLResponse_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSCachedURLResponse_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSCachedURLResponse._(arg0, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>? + _dartFuncListenerTrampoline; + + void call(NSCachedURLResponse? arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>()(_id, arg0?._id ?? ffi.nullptr); +} + +/// ! +/// @class NSURLConnection +/// +/// @abstract An NSURLConnection object provides support to perform +/// asynchronous loads of a URL request, providing data to a +/// client supplied delegate. +/// +/// @discussion The interface for NSURLConnection is very sparse, providing +/// only the controls to start and cancel asynchronous loads of a +/// URL request.

+/// +/// An NSURLConnection may be used for loading of resource data +/// directly to memory, in which case an +/// NSURLConnectionDataDelegate should be supplied, or for +/// downloading of resource data directly to a file, in which case +/// an NSURLConnectionDownloadDelegate is used. The delegate is +/// retained by the NSURLConnection until a terminal condition is +/// encountered. These two delegates are logically subclasses of +/// the base protocol, NSURLConnectionDelegate.

+/// +/// A terminal condition produced by the loader will result in a +/// connection:didFailWithError: in the case of an error, or +/// connectionDidFinishLoading: or connectionDidFinishDownloading: +/// delegate message.

+/// +/// The -cancel message hints to the loader that a resource load +/// should be abandoned but does not guarantee that more delegate +/// messages will not be delivered. If -cancel does cause the +/// load to be abandoned, the delegate will be released without +/// further messages. In general, a caller should be prepared for +/// -cancel to have no effect, and internally ignore any delegate +/// callbacks until the delegate is released. +/// +/// Scheduling of an NSURLConnection specifies the context in +/// which delegate callbacks will be made, but the actual IO may +/// occur on a separate thread and should be considered an +/// implementation detail.

+/// +/// When created, an NSURLConnection performs a deep-copy of the +/// NSURLRequest. This copy is available through the +/// -originalRequest method. As the connection performs the load, +/// this request may change as a result of protocol +/// canonicalization or due to following redirects. +/// -currentRequest can be used to retrieve this value.

+/// +/// An NSURLConnections created with the +/// +connectionWithRequest:delegate: or -initWithRequest:delegate: +/// methods are scheduled on the current runloop immediately, and +/// it is not necessary to send the -start message to begin the +/// resource load.

+/// +/// NSURLConnections created with +/// -initWithRequest:delegate:startImmediately: are not +/// automatically scheduled. Use -scheduleWithRunLoop:forMode: or +/// -setDelegateQueue: to specify the context for delegate +/// callbacks, and -start to begin the load. If you do not +/// explicitly schedule the connection before -start, it will be +/// scheduled on the current runloop and mode automatically.

+/// +/// The NSURLConnectionSynchronousLoading category adds +/// +sendSynchronousRequest:returningResponse:error, which blocks +/// the current thread until the resource data is available or an +/// error occurs. It should be noted that using this method on an +/// applications main run loop may result in an unacceptably long +/// delay in a user interface and its use is strongly +/// discourage.

+/// +/// The NSURLConnectionQueuedLoading category implements +/// +sendAsynchronousRequest:queue:completionHandler, providing +/// similar simplicity but provides a mechanism where the current +/// runloop is not blocked.

+/// +/// Both of the immediate loading categories do not provide for +/// customization of resource load, and do not allow the caller to +/// respond to, e.g., authentication challenges.

+class NSURLConnection extends NSObject { + NSURLConnection._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSOperationQueue] that points to the same underlying object as [other]. - static NSOperationQueue castFrom(T other) { - return NSOperationQueue._(other._id, other._lib, + /// Returns a [NSURLConnection] that points to the same underlying object as [other]. + static NSURLConnection castFrom(T other) { + return NSURLConnection._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSOperationQueue] that wraps the given raw object pointer. - static NSOperationQueue castFromPointer( + /// Returns a [NSURLConnection] that wraps the given raw object pointer. + static NSURLConnection castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSOperationQueue._(other, lib, retain: retain, release: release); + return NSURLConnection._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSOperationQueue]. + /// Returns whether [obj] is an instance of [NSURLConnection]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSOperationQueue1); + obj._lib._class_NSURLConnection1); } - /// @property progress - /// @discussion The `progress` property represents a total progress of the operations executed in the queue. By default NSOperationQueue - /// does not report progress until the `totalUnitCount` of the progress is set. When the `totalUnitCount` property of the progress is set the - /// queue then opts into participating in progress reporting. When enabled, each operation will contribute 1 unit of completion to the - /// overall progress of the queue for operations that are finished by the end of main (operations that override start and do not invoke super - /// will not contribute to progress). Special attention to race conditions should be made when updating the `totalUnitCount` of the progress - /// as well as care should be taken to avoid 'backwards progress'. For example; when a NSOperationQueue's progress is 5/10, representing 50% - /// completed, and there are 90 more operations about to be added and the `totalUnitCount` that would then make the progress report as 5/100 - /// which represents 5%. In this example it would mean that any progress bar would jump from displaying 50% back to 5%, which might not be - /// desirable. In the cases where the `totalUnitCount` needs to be adjusted it is suggested to do this for thread-safety in a barrier by - /// using the `addBarrierBlock:` API. This ensures that no un-expected execution state occurs adjusting into a potentially backwards moving - /// progress scenario. - /// - /// @example - /// NSOperationQueue *queue = [[NSOperationQueue alloc] init]; - /// queue.progress.totalUnitCount = 10; - NSProgress? get progress { - final _ret = _lib._objc_msgSend_475(_id, _lib._sel_progress1); + NSURLConnection? initWithRequest_delegate_startImmediately_( + NSURLRequest request, NSObject? delegate, bool startImmediately) { + final _ret = _lib._objc_msgSend_835( + _id, + _lib._sel_initWithRequest_delegate_startImmediately_1, + request._id, + delegate?._id ?? ffi.nullptr, + startImmediately); return _ret.address == 0 ? null - : NSProgress._(_ret, _lib, retain: true, release: true); - } - - void addOperation_(NSOperation? op) { - return _lib._objc_msgSend_715( - _id, _lib._sel_addOperation_1, op?._id ?? ffi.nullptr); + : NSURLConnection._(_ret, _lib, retain: true, release: true); } - void addOperations_waitUntilFinished_(NSArray? ops, bool wait) { - return _lib._objc_msgSend_718( + NSURLConnection? initWithRequest_delegate_( + NSURLRequest request, NSObject? delegate) { + final _ret = _lib._objc_msgSend_836( _id, - _lib._sel_addOperations_waitUntilFinished_1, - ops?._id ?? ffi.nullptr, - wait); - } - - void addOperationWithBlock_(ObjCBlock21 block) { - return _lib._objc_msgSend_458( - _id, _lib._sel_addOperationWithBlock_1, block._id); - } - - /// @method addBarrierBlock: - /// @param barrier A block to execute - /// @discussion The `addBarrierBlock:` method executes the block when the NSOperationQueue has finished all enqueued operations and - /// prevents any subsequent operations to be executed until the barrier has been completed. This acts similarly to the - /// `dispatch_barrier_async` function. - void addBarrierBlock_(ObjCBlock21 barrier) { - return _lib._objc_msgSend_458( - _id, _lib._sel_addBarrierBlock_1, barrier._id); - } - - int get maxConcurrentOperationCount { - return _lib._objc_msgSend_70(_id, _lib._sel_maxConcurrentOperationCount1); - } - - set maxConcurrentOperationCount(int value) { - _lib._objc_msgSend_583( - _id, _lib._sel_setMaxConcurrentOperationCount_1, value); - } - - bool get suspended { - return _lib._objc_msgSend_12(_id, _lib._sel_isSuspended1); - } - - set suspended(bool value) { - _lib._objc_msgSend_453(_id, _lib._sel_setSuspended_1, value); + _lib._sel_initWithRequest_delegate_1, + request._id, + delegate?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSURLConnection._(_ret, _lib, retain: true, release: true); } - NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + static NSURLConnection? connectionWithRequest_delegate_( + PedometerBindings _lib, NSURLRequest request, NSObject? delegate) { + final _ret = _lib._objc_msgSend_837( + _lib._class_NSURLConnection1, + _lib._sel_connectionWithRequest_delegate_1, + request._id, + delegate?._id ?? ffi.nullptr); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSURLConnection._(_ret, _lib, retain: true, release: true); } - set name(NSString? value) { - _lib._objc_msgSend_470(_id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + NSURLRequest get originalRequest { + final _ret = _lib._objc_msgSend_838(_id, _lib._sel_originalRequest1); + return NSURLRequest._(_ret, _lib, retain: true, release: true); } - int get qualityOfService { - return _lib._objc_msgSend_468(_id, _lib._sel_qualityOfService1); + NSURLRequest get currentRequest { + final _ret = _lib._objc_msgSend_838(_id, _lib._sel_currentRequest1); + return NSURLRequest._(_ret, _lib, retain: true, release: true); } - set qualityOfService(int value) { - _lib._objc_msgSend_469(_id, _lib._sel_setQualityOfService_1, value); + void start() { + _lib._objc_msgSend_1(_id, _lib._sel_start1); } - ffi.Pointer get underlyingQueue { - return _lib._objc_msgSend_719(_id, _lib._sel_underlyingQueue1); + void cancel() { + _lib._objc_msgSend_1(_id, _lib._sel_cancel1); } - set underlyingQueue(ffi.Pointer value) { - _lib._objc_msgSend_720(_id, _lib._sel_setUnderlyingQueue_1, value); + void scheduleInRunLoop_forMode_(NSRunLoop aRunLoop, NSString mode) { + _lib._objc_msgSend_680( + _id, _lib._sel_scheduleInRunLoop_forMode_1, aRunLoop._id, mode._id); } - void cancelAllOperations() { - return _lib._objc_msgSend_1(_id, _lib._sel_cancelAllOperations1); + void unscheduleFromRunLoop_forMode_(NSRunLoop aRunLoop, NSString mode) { + _lib._objc_msgSend_680( + _id, _lib._sel_unscheduleFromRunLoop_forMode_1, aRunLoop._id, mode._id); } - void waitUntilAllOperationsAreFinished() { - return _lib._objc_msgSend_1( - _id, _lib._sel_waitUntilAllOperationsAreFinished1); + void setDelegateQueue_(NSOperationQueue? queue) { + _lib._objc_msgSend_839( + _id, _lib._sel_setDelegateQueue_1, queue?._id ?? ffi.nullptr); } - static NSOperationQueue? getCurrentQueue(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_721( - _lib._class_NSOperationQueue1, _lib._sel_currentQueue1); - return _ret.address == 0 - ? null - : NSOperationQueue._(_ret, _lib, retain: true, release: true); + /// ! + /// @method canHandleRequest: + /// + /// @abstract + /// Performs a "preflight" operation that performs + /// some speculative checks to see if a connection can + /// be initialized, and the associated I/O that is + /// started in the initializer methods can begin. + /// + /// @discussion + /// The result of this method is valid only as long as + /// no protocols are registered or unregistered, and + /// as long as the request is not mutated (if the + /// request is mutable). Hence, clients should be + /// prepared to handle failures even if they have + /// performed request preflighting by calling this + /// method. + /// + /// @param + /// request The request to preflight. + /// + /// @result YES if it is likely that the given request can be used to + /// initialize a connection and the associated I/O can be + /// started, NO otherwise. + static bool canHandleRequest_(PedometerBindings _lib, NSURLRequest request) { + return _lib._objc_msgSend_840(_lib._class_NSURLConnection1, + _lib._sel_canHandleRequest_1, request._id); } - static NSOperationQueue? getMainQueue(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_721( - _lib._class_NSOperationQueue1, _lib._sel_mainQueue1); + /// ! + /// @method sendSynchronousRequest:returningResponse:error: + /// + /// @abstract + /// Performs a synchronous load of the given request, + /// returning an NSURLResponse in the given out + /// parameter. + /// + /// @discussion + /// A synchronous load for the given request is built on + /// top of the asynchronous loading code made available + /// by the class. The calling thread is blocked while + /// the asynchronous loading system performs the URL load + /// on a thread spawned specifically for this load + /// request. No special threading or run loop + /// configuration is necessary in the calling thread in + /// order to perform a synchronous load. For instance, + /// the calling thread need not be running its run loop. + /// + /// @param + /// request The request to load. Note that the request is + /// deep-copied as part of the initialization + /// process. Changes made to the request argument after + /// this method returns do not affect the request that is + /// used for the loading process. + /// + /// @param + /// response An out parameter which is filled in with the + /// response generated by performing the load. + /// + /// @param + /// error Out parameter (may be NULL) used if an error occurs + /// while processing the request. Will not be modified if the + /// load succeeds. + /// + /// @result The content of the URL resulting from performing the load, + /// or nil if the load failed. + static NSData? sendSynchronousRequest_returningResponse_error_( + PedometerBindings _lib, + NSURLRequest request, + ffi.Pointer> response, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_841( + _lib._class_NSURLConnection1, + _lib._sel_sendSynchronousRequest_returningResponse_error_1, + request._id, + response, + error); return _ret.address == 0 ? null - : NSOperationQueue._(_ret, _lib, retain: true, release: true); + : NSData._(_ret, _lib, retain: true, release: true); } - NSArray? get operations { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_operations1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + /// ! + /// @method sendAsynchronousRequest:queue:completionHandler: + /// + /// @abstract + /// Performs an asynchronous load of the given + /// request. When the request has completed or failed, + /// the block will be executed from the context of the + /// specified NSOperationQueue. + /// + /// @discussion + /// This is a convenience routine that allows for + /// asynchronous loading of a url-based resource. If + /// the resource load is successful, the data parameter + /// to the callback will contain the resource data and + /// the error parameter will be nil. If the resource + /// load fails, the data parameter will be nil and the + /// error will contain information about the failure. + /// + /// @param + /// request The request to load. Note that the request is + /// deep-copied as part of the initialization + /// process. Changes made to the request argument after + /// this method returns do not affect the request that + /// is used for the loading process. + /// + /// @param + /// queue An NSOperationQueue upon which the handler block will + /// be dispatched. + /// + /// @param + /// handler A block which receives the results of the resource load. + static void sendAsynchronousRequest_queue_completionHandler_( + PedometerBindings _lib, + NSURLRequest request, + NSOperationQueue queue, + ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError handler) { + _lib._objc_msgSend_842( + _lib._class_NSURLConnection1, + _lib._sel_sendAsynchronousRequest_queue_completionHandler_1, + request._id, + queue._id, + handler._id); } - int get operationCount { - return _lib._objc_msgSend_10(_id, _lib._sel_operationCount1); + @override + NSURLConnection init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLConnection._(_ret, _lib, retain: true, release: true); } - static NSOperationQueue new1(PedometerBindings _lib) { + static NSURLConnection new1(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSOperationQueue1, _lib._sel_new1); - return NSOperationQueue._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSURLConnection1, _lib._sel_new1); + return NSURLConnection._(_ret, _lib, retain: false, release: true); } - static NSOperationQueue alloc(PedometerBindings _lib) { + static NSURLConnection allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLConnection1, _lib._sel_allocWithZone_1, zone); + return NSURLConnection._(_ret, _lib, retain: false, release: true); + } + + static NSURLConnection alloc(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSOperationQueue1, _lib._sel_alloc1); - return NSOperationQueue._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSURLConnection1, _lib._sel_alloc1); + return NSURLConnection._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSOperationQueue1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSURLConnection1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSOperationQueue1, + _lib._objc_msgSend_15(_lib._class_NSURLConnection1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSOperationQueue1, + return _lib._objc_msgSend_12(_lib._class_NSURLConnection1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSOperationQueue1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLConnection1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSOperationQueue1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSURLConnection1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSOperationQueue1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSOperationQueue1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSURLConnection1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71(_lib._class_NSOperationQueue1, + final _ret = _lib._objc_msgSend_77(_lib._class_NSURLConnection1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSOperationQueue1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSURLConnection1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSOperation extends NSObject { - NSOperation._(ffi.Pointer id, PedometerBindings lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSOperation] that points to the same underlying object as [other]. - static NSOperation castFrom(T other) { - return NSOperation._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSOperation] that wraps the given raw object pointer. - static NSOperation castFromPointer( - PedometerBindings lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSOperation._(other, lib, retain: retain, release: release); - } +void _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureRegistry = , ffi.Pointer, + ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_registerClosure( + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer) + fn) { + final id = + ++_ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - /// Returns whether [obj] is an instance of [NSOperation]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSOperation1); - } +void _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); - void start() { - return _lib._objc_msgSend_1(_id, _lib._sel_start1); - } + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - void main() { - return _lib._objc_msgSend_1(_id, _lib._sel_main1); - } + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError.fromFunction( + PedometerBindings lib, + void Function(NSURLResponse?, NSData?, NSError?) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction, ffi.Pointer, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) => + fn( + arg0.address == 0 + ? null + : NSURLResponse._(arg0, lib, retain: true, release: true), + arg1.address == 0 ? null : NSData._(arg1, lib, retain: true, release: true), + arg2.address == 0 ? null : NSError._(arg2, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; - bool get cancelled { - return _lib._objc_msgSend_12(_id, _lib._sel_isCancelled1); - } + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError.listener(PedometerBindings lib, + void Function(NSURLResponse?, NSData?, NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= + ffi.NativeCallable, ffi.Pointer, ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) => + fn( + arg0.address == 0 + ? null + : NSURLResponse._(arg0, lib, retain: true, release: true), + arg1.address == 0 ? null : NSData._(arg1, lib, retain: true, release: true), + arg2.address == 0 ? null : NSError._(arg2, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; - void cancel() { - return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); - } + void call(NSURLResponse? arg0, NSData? arg1, NSError? arg2) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>()( + _id, + arg0?._id ?? ffi.nullptr, + arg1?._id ?? ffi.nullptr, + arg2?._id ?? ffi.nullptr); +} - bool get executing { - return _lib._objc_msgSend_12(_id, _lib._sel_isExecuting1); - } +/// ! +/// @class NSURLCredential +/// @discussion This class is an immutable object representing an authentication credential. The actual type of the credential is determined by the constructor called in the categories declared below. +class NSURLCredential extends NSObject { + NSURLCredential._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - bool get finished { - return _lib._objc_msgSend_12(_id, _lib._sel_isFinished1); + /// Returns a [NSURLCredential] that points to the same underlying object as [other]. + static NSURLCredential castFrom(T other) { + return NSURLCredential._(other._id, other._lib, + retain: true, release: true); } - bool get concurrent { - return _lib._objc_msgSend_12(_id, _lib._sel_isConcurrent1); + /// Returns a [NSURLCredential] that wraps the given raw object pointer. + static NSURLCredential castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLCredential._(other, lib, retain: retain, release: release); } - bool get asynchronous { - return _lib._objc_msgSend_12(_id, _lib._sel_isAsynchronous1); + /// Returns whether [obj] is an instance of [NSURLCredential]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSURLCredential1); } - bool get ready { - return _lib._objc_msgSend_12(_id, _lib._sel_isReady1); + /// ! + /// @abstract Determine whether this credential is or should be stored persistently + /// @result A value indicating whether this credential is stored permanently, per session or not at all. + int get persistence { + return _lib._objc_msgSend_843(_id, _lib._sel_persistence1); } - void addDependency_(NSOperation? op) { - return _lib._objc_msgSend_715( - _id, _lib._sel_addDependency_1, op?._id ?? ffi.nullptr); + /// ! + /// @method initWithUser:password:persistence: + /// @abstract Initialize a NSURLCredential with a user and password + /// @param user the username + /// @param password the password + /// @param persistence enum that says to store per session, permanently or not at all + /// @result The initialized NSURLCredential + NSURLCredential initWithUser_password_persistence_( + NSString user, NSString password, int persistence) { + final _ret = _lib._objc_msgSend_844( + _id, + _lib._sel_initWithUser_password_persistence_1, + user._id, + password._id, + persistence); + return NSURLCredential._(_ret, _lib, retain: true, release: true); } - void removeDependency_(NSOperation? op) { - return _lib._objc_msgSend_715( - _id, _lib._sel_removeDependency_1, op?._id ?? ffi.nullptr); + /// ! + /// @method credentialWithUser:password:persistence: + /// @abstract Create a new NSURLCredential with a user and password + /// @param user the username + /// @param password the password + /// @param persistence enum that says to store per session, permanently or not at all + /// @result The new autoreleased NSURLCredential + static NSURLCredential credentialWithUser_password_persistence_( + PedometerBindings _lib, + NSString user, + NSString password, + int persistence) { + final _ret = _lib._objc_msgSend_845( + _lib._class_NSURLCredential1, + _lib._sel_credentialWithUser_password_persistence_1, + user._id, + password._id, + persistence); + return NSURLCredential._(_ret, _lib, retain: true, release: true); } - NSArray? get dependencies { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_dependencies1); + /// ! + /// @abstract Get the username + /// @result The user string + NSString? get user { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_user1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - int get queuePriority { - return _lib._objc_msgSend_716(_id, _lib._sel_queuePriority1); - } - - set queuePriority(int value) { - _lib._objc_msgSend_717(_id, _lib._sel_setQueuePriority_1, value); + : NSString._(_ret, _lib, retain: true, release: true); } - ObjCBlock21 get completionBlock { - final _ret = _lib._objc_msgSend_484(_id, _lib._sel_completionBlock1); - return ObjCBlock21._(_ret, _lib); + /// ! + /// @abstract Get the password + /// @result The password string + /// @discussion This method might actually attempt to retrieve the + /// password from an external store, possible resulting in prompting, + /// so do not call it unless needed. + NSString? get password { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_password1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - set completionBlock(ObjCBlock21 value) { - _lib._objc_msgSend_485(_id, _lib._sel_setCompletionBlock_1, value._id); + /// ! + /// @abstract Find out if this credential has a password, without trying to get it + /// @result YES if this credential has a password, otherwise NO + /// @discussion If this credential's password is actually kept in an + /// external store, the password method may return nil even if this + /// method returns YES, since getting the password may fail, or the + /// user may refuse access. + bool get hasPassword { + return _lib._objc_msgSend_12(_id, _lib._sel_hasPassword1); } - void waitUntilFinished() { - return _lib._objc_msgSend_1(_id, _lib._sel_waitUntilFinished1); + /// ! + /// @method initWithIdentity:certificates:persistence: + /// @abstract Initialize an NSURLCredential with an identity and array of at least 1 client certificates (SecCertificateRef) + /// @param identity a SecIdentityRef object + /// @param certArray an array containing at least one SecCertificateRef objects + /// @param persistence enum that says to store per session, permanently or not at all + /// @result the Initialized NSURLCredential + NSURLCredential initWithIdentity_certificates_persistence_( + ffi.Pointer<__SecIdentity> identity, + NSArray? certArray, + int persistence) { + final _ret = _lib._objc_msgSend_846( + _id, + _lib._sel_initWithIdentity_certificates_persistence_1, + identity, + certArray?._id ?? ffi.nullptr, + persistence); + return NSURLCredential._(_ret, _lib, retain: true, release: true); } - double get threadPriority { - return _lib._objc_msgSend_147(_id, _lib._sel_threadPriority1); + /// ! + /// @method credentialWithIdentity:certificates:persistence: + /// @abstract Create a new NSURLCredential with an identity and certificate array + /// @param identity a SecIdentityRef object + /// @param certArray an array containing at least one SecCertificateRef objects + /// @param persistence enum that says to store per session, permanently or not at all + /// @result The new autoreleased NSURLCredential + static NSURLCredential credentialWithIdentity_certificates_persistence_( + PedometerBindings _lib, + ffi.Pointer<__SecIdentity> identity, + NSArray? certArray, + int persistence) { + final _ret = _lib._objc_msgSend_847( + _lib._class_NSURLCredential1, + _lib._sel_credentialWithIdentity_certificates_persistence_1, + identity, + certArray?._id ?? ffi.nullptr, + persistence); + return NSURLCredential._(_ret, _lib, retain: true, release: true); } - set threadPriority(double value) { - _lib._objc_msgSend_467(_id, _lib._sel_setThreadPriority_1, value); + /// ! + /// @abstract Returns the SecIdentityRef of this credential, if it was created with a certificate and identity + /// @result A SecIdentityRef or NULL if this is a username/password credential + ffi.Pointer<__SecIdentity> get identity { + return _lib._objc_msgSend_848(_id, _lib._sel_identity1); } - int get qualityOfService { - return _lib._objc_msgSend_468(_id, _lib._sel_qualityOfService1); + /// ! + /// @abstract Returns an NSArray of SecCertificateRef objects representing the client certificate for this credential, if this credential was created with an identity and certificate. + /// @result an NSArray of SecCertificateRef or NULL if this is a username/password credential + NSArray get certificates { + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_certificates1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set qualityOfService(int value) { - _lib._objc_msgSend_469(_id, _lib._sel_setQualityOfService_1, value); + /// ! + /// @method initWithTrust: + /// @abstract Initialize a new NSURLCredential which specifies that the specified trust has been accepted. + /// @result the Initialized NSURLCredential + NSURLCredential initWithTrust_(ffi.Pointer<__SecTrust> trust) { + final _ret = _lib._objc_msgSend_849(_id, _lib._sel_initWithTrust_1, trust); + return NSURLCredential._(_ret, _lib, retain: true, release: true); } - NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + /// ! + /// @method credentialForTrust: + /// @abstract Create a new NSURLCredential which specifies that a handshake has been trusted. + /// @result The new autoreleased NSURLCredential + static NSURLCredential credentialForTrust_( + PedometerBindings _lib, ffi.Pointer<__SecTrust> trust) { + final _ret = _lib._objc_msgSend_850( + _lib._class_NSURLCredential1, _lib._sel_credentialForTrust_1, trust); + return NSURLCredential._(_ret, _lib, retain: true, release: true); } - set name(NSString? value) { - _lib._objc_msgSend_470(_id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + @override + NSURLCredential init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLCredential._(_ret, _lib, retain: true, release: true); } - static NSOperation new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSOperation1, _lib._sel_new1); - return NSOperation._(_ret, _lib, retain: false, release: true); + static NSURLCredential new1(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLCredential1, _lib._sel_new1); + return NSURLCredential._(_ret, _lib, retain: false, release: true); } - static NSOperation alloc(PedometerBindings _lib) { + static NSURLCredential allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLCredential1, _lib._sel_allocWithZone_1, zone); + return NSURLCredential._(_ret, _lib, retain: false, release: true); + } + + static NSURLCredential alloc(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSOperation1, _lib._sel_alloc1); - return NSOperation._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSURLCredential1, _lib._sel_alloc1); + return NSURLCredential._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSOperation1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSURLCredential1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSOperation1, + _lib._objc_msgSend_15(_lib._class_NSURLCredential1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSOperation1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSURLCredential1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSOperation1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLCredential1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSOperation1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSURLCredential1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSOperation1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSOperation1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSURLCredential1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSOperation1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77(_lib._class_NSURLCredential1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSOperation1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSURLCredential1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSOperationQueuePriority { - static const int NSOperationQueuePriorityVeryLow = -8; - static const int NSOperationQueuePriorityLow = -4; - static const int NSOperationQueuePriorityNormal = 0; - static const int NSOperationQueuePriorityHigh = 4; - static const int NSOperationQueuePriorityVeryHigh = 8; +/// ! +/// @enum NSURLCredentialPersistence +/// @abstract Constants defining how long a credential will be kept around +/// @constant NSURLCredentialPersistenceNone This credential won't be saved. +/// @constant NSURLCredentialPersistenceForSession This credential will only be stored for this session. +/// @constant NSURLCredentialPersistencePermanent This credential will be stored permanently. Note: Whereas in Mac OS X any application can access any credential provided the user gives permission, in iPhone OS an application can access only its own credentials. +/// @constant NSURLCredentialPersistenceSynchronizable This credential will be stored permanently. Additionally, this credential will be distributed to other devices based on the owning AppleID. +/// Note: Whereas in Mac OS X any application can access any credential provided the user gives permission, on iOS an application can +/// access only its own credentials. +abstract class NSURLCredentialPersistence { + static const int NSURLCredentialPersistenceNone = 0; + static const int NSURLCredentialPersistenceForSession = 1; + static const int NSURLCredentialPersistencePermanent = 2; + static const int NSURLCredentialPersistenceSynchronizable = 3; } -final class dispatch_queue_s extends ffi.Opaque {} +final class __SecIdentity extends ffi.Opaque {} -class NSPointerArray extends NSObject { - NSPointerArray._(ffi.Pointer id, PedometerBindings lib, +final class __SecTrust extends ffi.Opaque {} + +/// ! +/// @class NSURLProtectionSpace +/// @discussion This class represents a protection space requiring authentication. +class NSURLProtectionSpace extends NSObject { + NSURLProtectionSpace._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSPointerArray] that points to the same underlying object as [other]. - static NSPointerArray castFrom(T other) { - return NSPointerArray._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSURLProtectionSpace] that points to the same underlying object as [other]. + static NSURLProtectionSpace castFrom(T other) { + return NSURLProtectionSpace._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSPointerArray] that wraps the given raw object pointer. - static NSPointerArray castFromPointer( + /// Returns a [NSURLProtectionSpace] that wraps the given raw object pointer. + static NSURLProtectionSpace castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSPointerArray._(other, lib, retain: retain, release: release); + return NSURLProtectionSpace._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSPointerArray]. + /// Returns whether [obj] is an instance of [NSURLProtectionSpace]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSPointerArray1); - } - - NSPointerArray initWithOptions_(int options) { - final _ret = - _lib._objc_msgSend_722(_id, _lib._sel_initWithOptions_1, options); - return NSPointerArray._(_ret, _lib, retain: true, release: true); - } - - NSPointerArray initWithPointerFunctions_(NSPointerFunctions? functions) { - final _ret = _lib._objc_msgSend_736(_id, - _lib._sel_initWithPointerFunctions_1, functions?._id ?? ffi.nullptr); - return NSPointerArray._(_ret, _lib, retain: true, release: true); + obj._lib._class_NSURLProtectionSpace1); } - static NSPointerArray pointerArrayWithOptions_( - PedometerBindings _lib, int options) { - final _ret = _lib._objc_msgSend_737(_lib._class_NSPointerArray1, - _lib._sel_pointerArrayWithOptions_1, options); - return NSPointerArray._(_ret, _lib, retain: true, release: true); + /// ! + /// @method initWithHost:port:protocol:realm:authenticationMethod: + /// @abstract Initialize a protection space representing an origin server, or a realm on one + /// @param host The hostname of the server + /// @param port The port for the server + /// @param protocol The protocol for this server - e.g. "http", "ftp", "https" + /// @param realm A string indicating a protocol-specific subdivision + /// of a single host. For http and https, this maps to the realm + /// string in http authentication challenges. For many other protocols + /// it is unused. + /// @param authenticationMethod The authentication method to use to access this protection space - + /// valid values include nil (default method), @"digest" and @"form". + /// @result The initialized object. + NSURLProtectionSpace initWithHost_port_protocol_realm_authenticationMethod_( + NSString host, + int port, + NSString? protocol, + NSString? realm, + NSString? authenticationMethod) { + final _ret = _lib._objc_msgSend_851( + _id, + _lib._sel_initWithHost_port_protocol_realm_authenticationMethod_1, + host._id, + port, + protocol?._id ?? ffi.nullptr, + realm?._id ?? ffi.nullptr, + authenticationMethod?._id ?? ffi.nullptr); + return NSURLProtectionSpace._(_ret, _lib, retain: true, release: true); } - static NSPointerArray pointerArrayWithPointerFunctions_( - PedometerBindings _lib, NSPointerFunctions? functions) { - final _ret = _lib._objc_msgSend_738( - _lib._class_NSPointerArray1, - _lib._sel_pointerArrayWithPointerFunctions_1, - functions?._id ?? ffi.nullptr); - return NSPointerArray._(_ret, _lib, retain: true, release: true); + /// ! + /// @method initWithProxyHost:port:type:realm:authenticationMethod: + /// @abstract Initialize a protection space representing a proxy server, or a realm on one + /// @param host The hostname of the proxy server + /// @param port The port for the proxy server + /// @param type The type of proxy - e.g. "http", "ftp", "SOCKS" + /// @param realm A string indicating a protocol-specific subdivision + /// of a single host. For http and https, this maps to the realm + /// string in http authentication challenges. For many other protocols + /// it is unused. + /// @param authenticationMethod The authentication method to use to access this protection space - + /// valid values include nil (default method) and @"digest" + /// @result The initialized object. + NSURLProtectionSpace initWithProxyHost_port_type_realm_authenticationMethod_( + NSString host, + int port, + NSString? type, + NSString? realm, + NSString? authenticationMethod) { + final _ret = _lib._objc_msgSend_851( + _id, + _lib._sel_initWithProxyHost_port_type_realm_authenticationMethod_1, + host._id, + port, + type?._id ?? ffi.nullptr, + realm?._id ?? ffi.nullptr, + authenticationMethod?._id ?? ffi.nullptr); + return NSURLProtectionSpace._(_ret, _lib, retain: true, release: true); } - NSPointerFunctions? get pointerFunctions { - final _ret = _lib._objc_msgSend_739(_id, _lib._sel_pointerFunctions1); + /// ! + /// @abstract Get the authentication realm for which the protection space that + /// needs authentication + /// @discussion This is generally only available for http + /// authentication, and may be nil otherwise. + /// @result The realm string + NSString? get realm { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_realm1); return _ret.address == 0 ? null - : NSPointerFunctions._(_ret, _lib, retain: true, release: true); - } - - ffi.Pointer pointerAtIndex_(int index) { - return _lib._objc_msgSend_740(_id, _lib._sel_pointerAtIndex_1, index); - } - - void addPointer_(ffi.Pointer pointer) { - return _lib._objc_msgSend_47(_id, _lib._sel_addPointer_1, pointer); + : NSString._(_ret, _lib, retain: true, release: true); } - void removePointerAtIndex_(int index) { - return _lib._objc_msgSend_401(_id, _lib._sel_removePointerAtIndex_1, index); + /// ! + /// @abstract Determine if the password for this protection space can be sent securely + /// @result YES if a secure authentication method or protocol will be used, NO otherwise + bool get receivesCredentialSecurely { + return _lib._objc_msgSend_12(_id, _lib._sel_receivesCredentialSecurely1); } - void insertPointer_atIndex_(ffi.Pointer item, int index) { - return _lib._objc_msgSend_21( - _id, _lib._sel_insertPointer_atIndex_1, item, index); + /// ! + /// @abstract Determine if this authenticating protection space is a proxy server + /// @result YES if a proxy, NO otherwise + bool get isProxy { + return _lib._objc_msgSend_12(_id, _lib._sel_isProxy1); } - void replacePointerAtIndex_withPointer_( - int index, ffi.Pointer item) { - return _lib._objc_msgSend_741( - _id, _lib._sel_replacePointerAtIndex_withPointer_1, index, item); + /// ! + /// @abstract Get the proxy host if this is a proxy authentication, or the host from the URL. + /// @result The host for this protection space. + NSString get host { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_host1); + return NSString._(_ret, _lib, retain: true, release: true); } - void compact() { - return _lib._objc_msgSend_1(_id, _lib._sel_compact1); + /// ! + /// @abstract Get the proxy port if this is a proxy authentication, or the port from the URL. + /// @result The port for this protection space, or 0 if not set. + int get port { + return _lib._objc_msgSend_75(_id, _lib._sel_port1); } - int get count { - return _lib._objc_msgSend_10(_id, _lib._sel_count1); + /// ! + /// @abstract Get the type of this protection space, if a proxy + /// @result The type string, or nil if not a proxy. + NSString? get proxyType { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_proxyType1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - set count(int value) { - _lib._objc_msgSend_444(_id, _lib._sel_setCount_1, value); + /// ! + /// @abstract Get the protocol of this protection space, if not a proxy + /// @result The type string, or nil if a proxy. + NSString? get protocol { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_protocol1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSObject pointerArrayWithStrongObjects(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSPointerArray1, _lib._sel_pointerArrayWithStrongObjects1); - return NSObject._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Get the authentication method to be used for this protection space + /// @result The authentication method + NSString get authenticationMethod { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_authenticationMethod1); + return NSString._(_ret, _lib, retain: true, release: true); } - static NSObject pointerArrayWithWeakObjects(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSPointerArray1, _lib._sel_pointerArrayWithWeakObjects1); - return NSObject._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Returns an array of acceptable certificate issuing authorities for client certification authentication. Issuers are identified by their distinguished name and returned as a DER encoded data. + /// @result An array of NSData objects. (Nil if the authenticationMethod is not NSURLAuthenticationMethodClientCertificate) + NSArray? get distinguishedNames { + final _ret = _lib._objc_msgSend_76(_id, _lib._sel_distinguishedNames1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - static NSPointerArray strongObjectsPointerArray(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_742( - _lib._class_NSPointerArray1, _lib._sel_strongObjectsPointerArray1); - return NSPointerArray._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Returns a SecTrustRef which represents the state of the servers SSL transaction state + /// @result A SecTrustRef from Security.framework. (Nil if the authenticationMethod is not NSURLAuthenticationMethodServerTrust) + ffi.Pointer<__SecTrust> get serverTrust { + return _lib._objc_msgSend_852(_id, _lib._sel_serverTrust1); } - static NSPointerArray weakObjectsPointerArray(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_742( - _lib._class_NSPointerArray1, _lib._sel_weakObjectsPointerArray1); - return NSPointerArray._(_ret, _lib, retain: true, release: true); + @override + NSURLProtectionSpace init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLProtectionSpace._(_ret, _lib, retain: true, release: true); } - NSArray? get allObjects { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_allObjects1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static NSURLProtectionSpace new1(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLProtectionSpace1, _lib._sel_new1); + return NSURLProtectionSpace._(_ret, _lib, retain: false, release: true); } - static NSPointerArray new1(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSPointerArray1, _lib._sel_new1); - return NSPointerArray._(_ret, _lib, retain: false, release: true); + static NSURLProtectionSpace allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLProtectionSpace1, _lib._sel_allocWithZone_1, zone); + return NSURLProtectionSpace._(_ret, _lib, retain: false, release: true); } - static NSPointerArray alloc(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSPointerArray1, _lib._sel_alloc1); - return NSPointerArray._(_ret, _lib, retain: false, release: true); + static NSURLProtectionSpace alloc(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLProtectionSpace1, _lib._sel_alloc1); + return NSURLProtectionSpace._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSPointerArray1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSURLProtectionSpace1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSPointerArray1, + _lib._objc_msgSend_15(_lib._class_NSURLProtectionSpace1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSPointerArray1, + return _lib._objc_msgSend_12(_lib._class_NSURLProtectionSpace1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSPointerArray1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLProtectionSpace1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSPointerArray1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSURLProtectionSpace1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSPointerArray1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSPointerArray1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSURLProtectionSpace1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSPointerArray1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77(_lib._class_NSURLProtectionSpace1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSPointerArray1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSURLProtectionSpace1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSPointerFunctionsOptions { - static const int NSPointerFunctionsStrongMemory = 0; - static const int NSPointerFunctionsZeroingWeakMemory = 1; - static const int NSPointerFunctionsOpaqueMemory = 2; - static const int NSPointerFunctionsMallocMemory = 3; - static const int NSPointerFunctionsMachVirtualMemory = 4; - static const int NSPointerFunctionsWeakMemory = 5; - static const int NSPointerFunctionsObjectPersonality = 0; - static const int NSPointerFunctionsOpaquePersonality = 256; - static const int NSPointerFunctionsObjectPointerPersonality = 512; - static const int NSPointerFunctionsCStringPersonality = 768; - static const int NSPointerFunctionsStructPersonality = 1024; - static const int NSPointerFunctionsIntegerPersonality = 1280; - static const int NSPointerFunctionsCopyIn = 65536; -} - -class NSPointerFunctions extends NSObject { - NSPointerFunctions._(ffi.Pointer id, PedometerBindings lib, +/// ! +/// @class NSURLCredentialStorage +/// @discussion NSURLCredentialStorage implements a singleton object (shared instance) which manages the shared credentials cache. Note: Whereas in Mac OS X any application can access any credential with a persistence of NSURLCredentialPersistencePermanent provided the user gives permission, in iPhone OS an application can access only its own credentials. +class NSURLCredentialStorage extends NSObject { + NSURLCredentialStorage._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSPointerFunctions] that points to the same underlying object as [other]. - static NSPointerFunctions castFrom(T other) { - return NSPointerFunctions._(other._id, other._lib, + /// Returns a [NSURLCredentialStorage] that points to the same underlying object as [other]. + static NSURLCredentialStorage castFrom(T other) { + return NSURLCredentialStorage._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSPointerFunctions] that wraps the given raw object pointer. - static NSPointerFunctions castFromPointer( + /// Returns a [NSURLCredentialStorage] that wraps the given raw object pointer. + static NSURLCredentialStorage castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSPointerFunctions._(other, lib, retain: retain, release: release); + return NSURLCredentialStorage._(other, lib, + retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSPointerFunctions]. + /// Returns whether [obj] is an instance of [NSURLCredentialStorage]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSPointerFunctions1); - } - - NSPointerFunctions initWithOptions_(int options) { - final _ret = - _lib._objc_msgSend_722(_id, _lib._sel_initWithOptions_1, options); - return NSPointerFunctions._(_ret, _lib, retain: true, release: true); - } - - static NSPointerFunctions pointerFunctionsWithOptions_( - PedometerBindings _lib, int options) { - final _ret = _lib._objc_msgSend_723(_lib._class_NSPointerFunctions1, - _lib._sel_pointerFunctionsWithOptions_1, options); - return NSPointerFunctions._(_ret, _lib, retain: true, release: true); - } - - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer)>>)>> - get hashFunction { - return _lib._objc_msgSend_724(_id, _lib._sel_hashFunction1); + obj._lib._class_NSURLCredentialStorage1); } - set hashFunction( - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>> - value) { - _lib._objc_msgSend_725(_id, _lib._sel_setHashFunction_1, value); + /// ! + /// @property sharedCredentialStorage + /// @abstract Get the shared singleton authentication storage + /// @result the shared authentication storage + static NSURLCredentialStorage getSharedCredentialStorage( + PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_853(_lib._class_NSURLCredentialStorage1, + _lib._sel_sharedCredentialStorage1); + return NSURLCredentialStorage._(_ret, _lib, retain: true, release: true); } - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer)>>)>> - get isEqualFunction { - return _lib._objc_msgSend_726(_id, _lib._sel_isEqualFunction1); + /// ! + /// @method credentialsForProtectionSpace: + /// @abstract Get a dictionary mapping usernames to credentials for the specified protection space. + /// @param space An NSURLProtectionSpace indicating the protection space for which to get credentials + /// @result A dictionary where the keys are usernames and the values are the corresponding NSURLCredentials. + NSDictionary? credentialsForProtectionSpace_(NSURLProtectionSpace space) { + final _ret = _lib._objc_msgSend_854( + _id, _lib._sel_credentialsForProtectionSpace_1, space._id); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - set isEqualFunction( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>> - value) { - _lib._objc_msgSend_727(_id, _lib._sel_setIsEqualFunction_1, value); + /// ! + /// @abstract Get a dictionary mapping NSURLProtectionSpaces to dictionaries which map usernames to NSURLCredentials + /// @result an NSDictionary where the keys are NSURLProtectionSpaces + /// and the values are dictionaries, in which the keys are usernames + /// and the values are NSURLCredentials + NSDictionary get allCredentials { + final _ret = _lib._objc_msgSend_350(_id, _lib._sel_allCredentials1); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - ffi.Pointer< - ffi.NativeFunction)>> - get sizeFunction { - return _lib._objc_msgSend_728(_id, _lib._sel_sizeFunction1); + /// ! + /// @method setCredential:forProtectionSpace: + /// @abstract Add a new credential to the set for the specified protection space or replace an existing one. + /// @param credential The credential to set. + /// @param space The protection space for which to add it. + /// @discussion Multiple credentials may be set for a given protection space, but each must have + /// a distinct user. If a credential with the same user is already set for the protection space, + /// the new one will replace it. + void setCredential_forProtectionSpace_( + NSURLCredential credential, NSURLProtectionSpace space) { + _lib._objc_msgSend_855(_id, _lib._sel_setCredential_forProtectionSpace_1, + credential._id, space._id); } - set sizeFunction( - ffi.Pointer< - ffi - .NativeFunction)>> - value) { - _lib._objc_msgSend_729(_id, _lib._sel_setSizeFunction_1, value); + /// ! + /// @method removeCredential:forProtectionSpace: + /// @abstract Remove the credential from the set for the specified protection space. + /// @param credential The credential to remove. + /// @param space The protection space for which a credential should be removed + /// @discussion The credential is removed from both persistent and temporary storage. A credential that + /// has a persistence policy of NSURLCredentialPersistenceSynchronizable will fail. + /// See removeCredential:forProtectionSpace:options. + void removeCredential_forProtectionSpace_( + NSURLCredential credential, NSURLProtectionSpace space) { + _lib._objc_msgSend_855(_id, _lib._sel_removeCredential_forProtectionSpace_1, + credential._id, space._id); } - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>> - get descriptionFunction { - return _lib._objc_msgSend_730(_id, _lib._sel_descriptionFunction1); + /// ! + /// @method removeCredential:forProtectionSpace:options + /// @abstract Remove the credential from the set for the specified protection space based on options. + /// @param credential The credential to remove. + /// @param space The protection space for which a credential should be removed + /// @param options A dictionary containing options to consider when removing the credential. This should + /// be used when trying to delete a credential that has the NSURLCredentialPersistenceSynchronizable policy. + /// Please note that when NSURLCredential objects that have a NSURLCredentialPersistenceSynchronizable policy + /// are removed, the credential will be removed on all devices that contain this credential. + /// @discussion The credential is removed from both persistent and temporary storage. + void removeCredential_forProtectionSpace_options_(NSURLCredential credential, + NSURLProtectionSpace space, NSDictionary? options) { + _lib._objc_msgSend_856( + _id, + _lib._sel_removeCredential_forProtectionSpace_options_1, + credential._id, + space._id, + options?._id ?? ffi.nullptr); } - set descriptionFunction( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>> - value) { - _lib._objc_msgSend_731(_id, _lib._sel_setDescriptionFunction_1, value); + /// ! + /// @method defaultCredentialForProtectionSpace: + /// @abstract Get the default credential for the specified protection space. + /// @param space The protection space for which to get the default credential. + NSURLCredential? defaultCredentialForProtectionSpace_( + NSURLProtectionSpace space) { + final _ret = _lib._objc_msgSend_857( + _id, _lib._sel_defaultCredentialForProtectionSpace_1, space._id); + return _ret.address == 0 + ? null + : NSURLCredential._(_ret, _lib, retain: true, release: true); } - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer)>>)>> - get relinquishFunction { - return _lib._objc_msgSend_732(_id, _lib._sel_relinquishFunction1); + /// ! + /// @method setDefaultCredential:forProtectionSpace: + /// @abstract Set the default credential for the specified protection space. + /// @param credential The credential to set as default. + /// @param space The protection space for which the credential should be set as default. + /// @discussion If the credential is not yet in the set for the protection space, it will be added to it. + void setDefaultCredential_forProtectionSpace_( + NSURLCredential credential, NSURLProtectionSpace space) { + _lib._objc_msgSend_855( + _id, + _lib._sel_setDefaultCredential_forProtectionSpace_1, + credential._id, + space._id); } - set relinquishFunction( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>> - value) { - _lib._objc_msgSend_733(_id, _lib._sel_setRelinquishFunction_1, value); + void getCredentialsForProtectionSpace_task_completionHandler_( + NSURLProtectionSpace protectionSpace, + NSURLSessionTask task, + ObjCBlock_ffiVoid_NSDictionary completionHandler) { + _lib._objc_msgSend_858( + _id, + _lib._sel_getCredentialsForProtectionSpace_task_completionHandler_1, + protectionSpace._id, + task._id, + completionHandler._id); } - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer)>>, - ffi.Bool)>> get acquireFunction { - return _lib._objc_msgSend_734(_id, _lib._sel_acquireFunction1); + void setCredential_forProtectionSpace_task_(NSURLCredential credential, + NSURLProtectionSpace protectionSpace, NSURLSessionTask task) { + _lib._objc_msgSend_859( + _id, + _lib._sel_setCredential_forProtectionSpace_task_1, + credential._id, + protectionSpace._id, + task._id); } - set acquireFunction( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>, - ffi.Bool)>> - value) { - _lib._objc_msgSend_735(_id, _lib._sel_setAcquireFunction_1, value); + void removeCredential_forProtectionSpace_options_task_( + NSURLCredential credential, + NSURLProtectionSpace protectionSpace, + NSDictionary? options, + NSURLSessionTask task) { + _lib._objc_msgSend_860( + _id, + _lib._sel_removeCredential_forProtectionSpace_options_task_1, + credential._id, + protectionSpace._id, + options?._id ?? ffi.nullptr, + task._id); } - bool get usesStrongWriteBarrier { - return _lib._objc_msgSend_12(_id, _lib._sel_usesStrongWriteBarrier1); + void getDefaultCredentialForProtectionSpace_task_completionHandler_( + NSURLProtectionSpace space, + NSURLSessionTask task, + ObjCBlock_ffiVoid_NSURLCredential completionHandler) { + _lib._objc_msgSend_861( + _id, + _lib._sel_getDefaultCredentialForProtectionSpace_task_completionHandler_1, + space._id, + task._id, + completionHandler._id); } - set usesStrongWriteBarrier(bool value) { - _lib._objc_msgSend_453(_id, _lib._sel_setUsesStrongWriteBarrier_1, value); + void setDefaultCredential_forProtectionSpace_task_(NSURLCredential credential, + NSURLProtectionSpace protectionSpace, NSURLSessionTask task) { + _lib._objc_msgSend_859( + _id, + _lib._sel_setDefaultCredential_forProtectionSpace_task_1, + credential._id, + protectionSpace._id, + task._id); } - bool get usesWeakReadAndWriteBarriers { - return _lib._objc_msgSend_12(_id, _lib._sel_usesWeakReadAndWriteBarriers1); + @override + NSURLCredentialStorage init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLCredentialStorage._(_ret, _lib, retain: true, release: true); } - set usesWeakReadAndWriteBarriers(bool value) { - _lib._objc_msgSend_453( - _id, _lib._sel_setUsesWeakReadAndWriteBarriers_1, value); + static NSURLCredentialStorage new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLCredentialStorage1, _lib._sel_new1); + return NSURLCredentialStorage._(_ret, _lib, retain: false, release: true); } - static NSPointerFunctions new1(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSPointerFunctions1, _lib._sel_new1); - return NSPointerFunctions._(_ret, _lib, retain: false, release: true); + static NSURLCredentialStorage allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLCredentialStorage1, _lib._sel_allocWithZone_1, zone); + return NSURLCredentialStorage._(_ret, _lib, retain: false, release: true); } - static NSPointerFunctions alloc(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSPointerFunctions1, _lib._sel_alloc1); - return NSPointerFunctions._(_ret, _lib, retain: false, release: true); + static NSURLCredentialStorage alloc(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLCredentialStorage1, _lib._sel_alloc1); + return NSURLCredentialStorage._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSPointerFunctions1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSURLCredentialStorage1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSPointerFunctions1, + _lib._objc_msgSend_15(_lib._class_NSURLCredentialStorage1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSPointerFunctions1, + return _lib._objc_msgSend_12(_lib._class_NSURLCredentialStorage1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSPointerFunctions1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLCredentialStorage1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSPointerFunctions1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSURLCredentialStorage1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSPointerFunctions1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSPointerFunctions1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSURLCredentialStorage1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71(_lib._class_NSPointerFunctions1, + final _ret = _lib._objc_msgSend_77(_lib._class_NSURLCredentialStorage1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSPointerFunctions1, _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLCredentialStorage1, + _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSProcessInfo extends NSObject { - NSProcessInfo._(ffi.Pointer id, PedometerBindings lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSProcessInfo] that points to the same underlying object as [other]. - static NSProcessInfo castFrom(T other) { - return NSProcessInfo._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSProcessInfo] that wraps the given raw object pointer. - static NSProcessInfo castFromPointer( - PedometerBindings lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSProcessInfo._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSProcessInfo]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSProcessInfo1); - } - - static NSProcessInfo? getProcessInfo(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_743( - _lib._class_NSProcessInfo1, _lib._sel_processInfo1); - return _ret.address == 0 - ? null - : NSProcessInfo._(_ret, _lib, retain: true, release: true); - } - - NSDictionary? get environment { - final _ret = _lib._objc_msgSend_324(_id, _lib._sel_environment1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - NSArray? get arguments { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_arguments1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSString? get hostName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_hostName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get processName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_processName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set processName(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setProcessName_1, value?._id ?? ffi.nullptr); - } +void _ObjCBlock_ffiVoid_NSDictionary_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi + .NativeFunction arg0)>>() + .asFunction)>()(arg0); +final _ObjCBlock_ffiVoid_NSDictionary_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_NSDictionary_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSDictionary_registerClosure( + void Function(ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSDictionary_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSDictionary_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - int get processIdentifier { - return _lib._objc_msgSend_177(_id, _lib._sel_processIdentifier1); - } +void _ObjCBlock_ffiVoid_NSDictionary_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + _ObjCBlock_ffiVoid_NSDictionary_closureRegistry[block.ref.target.address]!( + arg0); - NSString? get globallyUniqueString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_globallyUniqueString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } +class ObjCBlock_ffiVoid_NSDictionary extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSDictionary._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); - int operatingSystem() { - return _lib._objc_msgSend_10(_id, _lib._sel_operatingSystem1); - } + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSDictionary.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi + .NativeFunction arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSDictionary_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - NSString operatingSystemName() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_operatingSystemName1); - return NSString._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSDictionary.fromFunction( + PedometerBindings lib, void Function(NSDictionary?) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSDictionary_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSDictionary_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSDictionary._(arg0, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; - NSString? get operatingSystemVersionString { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_operatingSystemVersionString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSDictionary.listener( + PedometerBindings lib, void Function(NSDictionary?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSDictionary_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSDictionary_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSDictionary._(arg0, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>? + _dartFuncListenerTrampoline; - NSOperatingSystemVersion get operatingSystemVersion { - return _lib._objc_msgSend_744(_id, _lib._sel_operatingSystemVersion1); - } + void call(NSDictionary? arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>()(_id, arg0?._id ?? ffi.nullptr); +} - int get processorCount { - return _lib._objc_msgSend_10(_id, _lib._sel_processorCount1); - } +void _ObjCBlock_ffiVoid_NSURLCredential_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi + .NativeFunction arg0)>>() + .asFunction)>()(arg0); +final _ObjCBlock_ffiVoid_NSURLCredential_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_NSURLCredential_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSURLCredential_registerClosure( + void Function(ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSURLCredential_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSURLCredential_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - int get activeProcessorCount { - return _lib._objc_msgSend_10(_id, _lib._sel_activeProcessorCount1); - } +void _ObjCBlock_ffiVoid_NSURLCredential_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + _ObjCBlock_ffiVoid_NSURLCredential_closureRegistry[ + block.ref.target.address]!(arg0); - int get physicalMemory { - return _lib._objc_msgSend_146(_id, _lib._sel_physicalMemory1); - } +class ObjCBlock_ffiVoid_NSURLCredential extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSURLCredential._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); - bool isOperatingSystemAtLeastVersion_(NSOperatingSystemVersion version) { - return _lib._objc_msgSend_745( - _id, _lib._sel_isOperatingSystemAtLeastVersion_1, version); - } + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURLCredential.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi + .NativeFunction arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURLCredential_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - double get systemUptime { - return _lib._objc_msgSend_147(_id, _lib._sel_systemUptime1); - } + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURLCredential.fromFunction( + PedometerBindings lib, void Function(NSURLCredential?) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURLCredential_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSURLCredential_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSURLCredential._(arg0, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; - void disableSuddenTermination() { - return _lib._objc_msgSend_1(_id, _lib._sel_disableSuddenTermination1); - } + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSURLCredential.listener( + PedometerBindings lib, void Function(NSURLCredential?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSURLCredential_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSURLCredential_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSURLCredential._(arg0, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>? + _dartFuncListenerTrampoline; - void enableSuddenTermination() { - return _lib._objc_msgSend_1(_id, _lib._sel_enableSuddenTermination1); - } + void call(NSURLCredential? arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>()(_id, arg0?._id ?? ffi.nullptr); +} - void disableAutomaticTermination_(NSString? reason) { - return _lib._objc_msgSend_188(_id, _lib._sel_disableAutomaticTermination_1, - reason?._id ?? ffi.nullptr); - } +/// ! +/// @class NSURLProtocol +/// +/// @abstract NSURLProtocol is an abstract class which provides the +/// basic structure for performing protocol-specific loading of URL +/// data. Concrete subclasses handle the specifics associated with one +/// or more protocols or URL schemes. +class NSURLProtocol extends NSObject { + NSURLProtocol._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - void enableAutomaticTermination_(NSString? reason) { - return _lib._objc_msgSend_188(_id, _lib._sel_enableAutomaticTermination_1, - reason?._id ?? ffi.nullptr); + /// Returns a [NSURLProtocol] that points to the same underlying object as [other]. + static NSURLProtocol castFrom(T other) { + return NSURLProtocol._(other._id, other._lib, retain: true, release: true); } - bool get automaticTerminationSupportEnabled { - return _lib._objc_msgSend_12( - _id, _lib._sel_automaticTerminationSupportEnabled1); + /// Returns a [NSURLProtocol] that wraps the given raw object pointer. + static NSURLProtocol castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLProtocol._(other, lib, retain: retain, release: release); } - set automaticTerminationSupportEnabled(bool value) { - _lib._objc_msgSend_453( - _id, _lib._sel_setAutomaticTerminationSupportEnabled_1, value); + /// Returns whether [obj] is an instance of [NSURLProtocol]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLProtocol1); } - NSObject beginActivityWithOptions_reason_(int options, NSString? reason) { - final _ret = _lib._objc_msgSend_746( + /// ! + /// @method initWithRequest:cachedResponse:client: + /// @abstract Initializes an NSURLProtocol given request, + /// cached response, and client. + /// @param request The request to load. + /// @param cachedResponse A response that has been retrieved from the + /// cache for the given request. The protocol implementation should + /// apply protocol-specific validity checks if such tests are + /// necessary. + /// @param client The NSURLProtocolClient object that serves as the + /// interface the protocol implementation can use to report results back + /// to the URL loading system. + NSURLProtocol initWithRequest_cachedResponse_client_(NSURLRequest request, + NSCachedURLResponse? cachedResponse, NSObject? client) { + final _ret = _lib._objc_msgSend_862( _id, - _lib._sel_beginActivityWithOptions_reason_1, - options, - reason?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - void endActivity_(NSObject? activity) { - return _lib._objc_msgSend_15( - _id, _lib._sel_endActivity_1, activity?._id ?? ffi.nullptr); + _lib._sel_initWithRequest_cachedResponse_client_1, + request._id, + cachedResponse?._id ?? ffi.nullptr, + client?._id ?? ffi.nullptr); + return NSURLProtocol._(_ret, _lib, retain: true, release: true); } - void performActivityWithOptions_reason_usingBlock_( - int options, NSString? reason, ObjCBlock21 block) { - return _lib._objc_msgSend_747( - _id, - _lib._sel_performActivityWithOptions_reason_usingBlock_1, - options, - reason?._id ?? ffi.nullptr, - block._id); + /// ! + /// @abstract Returns the NSURLProtocolClient of the receiver. + /// @result The NSURLProtocolClient of the receiver. + NSObject? get client { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_client1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - void performExpiringActivityWithReason_usingBlock_( - NSString? reason, ObjCBlock37 block) { - return _lib._objc_msgSend_748( - _id, - _lib._sel_performExpiringActivityWithReason_usingBlock_1, - reason?._id ?? ffi.nullptr, - block._id); + /// ! + /// @abstract Returns the NSURLRequest of the receiver. + /// @result The NSURLRequest of the receiver. + NSURLRequest get request { + final _ret = _lib._objc_msgSend_838(_id, _lib._sel_request1); + return NSURLRequest._(_ret, _lib, retain: true, release: true); } - NSString? get userName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_userName1); + /// ! + /// @abstract Returns the NSCachedURLResponse of the receiver. + /// @result The NSCachedURLResponse of the receiver. + NSCachedURLResponse? get cachedResponse { + final _ret = _lib._objc_msgSend_863(_id, _lib._sel_cachedResponse1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSCachedURLResponse._(_ret, _lib, retain: true, release: true); } - NSString? get fullUserName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fullUserName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + /// ! + /// @method canInitWithRequest: + /// @abstract This method determines whether this protocol can handle + /// the given request. + /// @discussion A concrete subclass should inspect the given request and + /// determine whether or not the implementation can perform a load with + /// that request. This is an abstract method. Subclasses must provide an + /// implementation. + /// @param request A request to inspect. + /// @result YES if the protocol can handle the given request, NO if not. + static bool canInitWithRequest_( + PedometerBindings _lib, NSURLRequest request) { + return _lib._objc_msgSend_840(_lib._class_NSURLProtocol1, + _lib._sel_canInitWithRequest_1, request._id); } - int get thermalState { - return _lib._objc_msgSend_749(_id, _lib._sel_thermalState1); + /// ! + /// @method canonicalRequestForRequest: + /// @abstract This method returns a canonical version of the given + /// request. + /// @discussion It is up to each concrete protocol implementation to + /// define what "canonical" means. However, a protocol should + /// guarantee that the same input request always yields the same + /// canonical form. Special consideration should be given when + /// implementing this method since the canonical form of a request is + /// used to look up objects in the URL cache, a process which performs + /// equality checks between NSURLRequest objects. + ///

+ /// This is an abstract method; subclasses must provide an + /// implementation. + /// @param request A request to make canonical. + /// @result The canonical form of the given request. + static NSURLRequest canonicalRequestForRequest_( + PedometerBindings _lib, NSURLRequest request) { + final _ret = _lib._objc_msgSend_864(_lib._class_NSURLProtocol1, + _lib._sel_canonicalRequestForRequest_1, request._id); + return NSURLRequest._(_ret, _lib, retain: true, release: true); } - bool get lowPowerModeEnabled { - return _lib._objc_msgSend_12(_id, _lib._sel_isLowPowerModeEnabled1); + /// ! + /// @method requestIsCacheEquivalent:toRequest: + /// @abstract Compares two requests for equivalence with regard to caching. + /// @discussion Requests are considered equivalent for cache purposes + /// if and only if they would be handled by the same protocol AND that + /// protocol declares them equivalent after performing + /// implementation-specific checks. + /// @result YES if the two requests are cache-equivalent, NO otherwise. + static bool requestIsCacheEquivalent_toRequest_( + PedometerBindings _lib, NSURLRequest a, NSURLRequest b) { + return _lib._objc_msgSend_865(_lib._class_NSURLProtocol1, + _lib._sel_requestIsCacheEquivalent_toRequest_1, a._id, b._id); } - bool get macCatalystApp { - return _lib._objc_msgSend_12(_id, _lib._sel_isMacCatalystApp1); + /// ! + /// @method startLoading + /// @abstract Starts protocol-specific loading of a request. + /// @discussion When this method is called, the protocol implementation + /// should start loading a request. + void startLoading() { + _lib._objc_msgSend_1(_id, _lib._sel_startLoading1); } - bool get iOSAppOnMac { - return _lib._objc_msgSend_12(_id, _lib._sel_isiOSAppOnMac1); + /// ! + /// @method stopLoading + /// @abstract Stops protocol-specific loading of a request. + /// @discussion When this method is called, the protocol implementation + /// should end the work of loading a request. This could be in response + /// to a cancel operation, so protocol implementations must be able to + /// handle this call while a load is in progress. + void stopLoading() { + _lib._objc_msgSend_1(_id, _lib._sel_stopLoading1); } - static NSProcessInfo new1(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSProcessInfo1, _lib._sel_new1); - return NSProcessInfo._(_ret, _lib, retain: false, release: true); + /// ! + /// @method propertyForKey:inRequest: + /// @abstract Returns the property in the given request previously + /// stored with the given key. + /// @discussion The purpose of this method is to provide an interface + /// for protocol implementors to access protocol-specific information + /// associated with NSURLRequest objects. + /// @param key The string to use for the property lookup. + /// @param request The request to use for the property lookup. + /// @result The property stored with the given key, or nil if no property + /// had previously been stored with the given key in the given request. + static NSObject? propertyForKey_inRequest_( + PedometerBindings _lib, NSString key, NSURLRequest request) { + final _ret = _lib._objc_msgSend_866(_lib._class_NSURLProtocol1, + _lib._sel_propertyForKey_inRequest_1, key._id, request._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSProcessInfo alloc(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSProcessInfo1, _lib._sel_alloc1); - return NSProcessInfo._(_ret, _lib, retain: false, release: true); + /// ! + /// @method setProperty:forKey:inRequest: + /// @abstract Stores the given property in the given request using the + /// given key. + /// @discussion The purpose of this method is to provide an interface + /// for protocol implementors to customize protocol-specific + /// information associated with NSMutableURLRequest objects. + /// @param value The property to store. + /// @param key The string to use for the property storage. + /// @param request The request in which to store the property. + static void setProperty_forKey_inRequest_(PedometerBindings _lib, + NSObject value, NSString key, NSMutableURLRequest request) { + _lib._objc_msgSend_874( + _lib._class_NSURLProtocol1, + _lib._sel_setProperty_forKey_inRequest_1, + value._id, + key._id, + request._id); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - PedometerBindings _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSProcessInfo1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + /// ! + /// @method removePropertyForKey:inRequest: + /// @abstract Remove any property stored under the given key + /// @discussion Like setProperty:forKey:inRequest: above, the purpose of this + /// method is to give protocol implementors the ability to store + /// protocol-specific information in an NSURLRequest + /// @param key The key whose value should be removed + /// @param request The request to be modified + static void removePropertyForKey_inRequest_( + PedometerBindings _lib, NSString key, NSMutableURLRequest request) { + _lib._objc_msgSend_875(_lib._class_NSURLProtocol1, + _lib._sel_removePropertyForKey_inRequest_1, key._id, request._id); } - static void cancelPreviousPerformRequestsWithTarget_( - PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSProcessInfo1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + /// ! + /// @method registerClass: + /// @abstract This method registers a protocol class, making it visible + /// to several other NSURLProtocol class methods. + /// @discussion When the URL loading system begins to load a request, + /// each protocol class that has been registered is consulted in turn to + /// see if it can be initialized with a given request. The first + /// protocol handler class to provide a YES answer to + /// +canInitWithRequest: "wins" and that protocol + /// implementation is used to perform the URL load. There is no + /// guarantee that all registered protocol classes will be consulted. + /// Hence, it should be noted that registering a class places it first + /// on the list of classes that will be consulted in calls to + /// +canInitWithRequest:, moving it in front of all classes + /// that had been registered previously. + ///

A similar design governs the process to create the canonical form + /// of a request with the +canonicalRequestForRequest: class + /// method. + /// @param protocolClass the class to register. + /// @result YES if the protocol was registered successfully, NO if not. + /// The only way that failure can occur is if the given class is not a + /// subclass of NSURLProtocol. + static bool registerClass_(PedometerBindings _lib, NSObject protocolClass) { + return _lib._objc_msgSend_0(_lib._class_NSURLProtocol1, + _lib._sel_registerClass_1, protocolClass._id); } - static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSProcessInfo1, _lib._sel_accessInstanceVariablesDirectly1); + /// ! + /// @method unregisterClass: + /// @abstract This method unregisters a protocol. + /// @discussion After unregistration, a protocol class is no longer + /// consulted in calls to NSURLProtocol class methods. + /// @param protocolClass The class to unregister. + static void unregisterClass_(PedometerBindings _lib, NSObject protocolClass) { + _lib._objc_msgSend_15(_lib._class_NSURLProtocol1, + _lib._sel_unregisterClass_1, protocolClass._id); } - static bool useStoredAccessor(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSProcessInfo1, _lib._sel_useStoredAccessor1); + static bool canInitWithTask_(PedometerBindings _lib, NSURLSessionTask task) { + return _lib._objc_msgSend_876( + _lib._class_NSURLProtocol1, _lib._sel_canInitWithTask_1, task._id); } - static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSProcessInfo1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + NSURLProtocol initWithTask_cachedResponse_client_(NSURLSessionTask task, + NSCachedURLResponse? cachedResponse, NSObject? client) { + final _ret = _lib._objc_msgSend_877( + _id, + _lib._sel_initWithTask_cachedResponse_client_1, + task._id, + cachedResponse?._id ?? ffi.nullptr, + client?._id ?? ffi.nullptr); + return NSURLProtocol._(_ret, _lib, retain: true, release: true); } - static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSProcessInfo1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + NSURLSessionTask? get task { + final _ret = _lib._objc_msgSend_878(_id, _lib._sel_task1); + return _ret.address == 0 + ? null + : NSURLSessionTask._(_ret, _lib, retain: true, release: true); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSProcessInfo1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + @override + NSURLProtocol init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLProtocol._(_ret, _lib, retain: true, release: true); } - static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSProcessInfo1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + static NSURLProtocol new1(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLProtocol1, _lib._sel_new1); + return NSURLProtocol._(_ret, _lib, retain: false, release: true); } - static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSProcessInfo1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSURLProtocol allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLProtocol1, _lib._sel_allocWithZone_1, zone); + return NSURLProtocol._(_ret, _lib, retain: false, release: true); } -} - -final class NSOperatingSystemVersion extends ffi.Struct { - @ffi.Long() - external int majorVersion; - - @ffi.Long() - external int minorVersion; - - @ffi.Long() - external int patchVersion; -} -abstract class NSActivityOptions { - static const int NSActivityIdleDisplaySleepDisabled = 1099511627776; - static const int NSActivityIdleSystemSleepDisabled = 1048576; - static const int NSActivitySuddenTerminationDisabled = 16384; - static const int NSActivityAutomaticTerminationDisabled = 32768; - static const int NSActivityAnimationTrackingEnabled = 35184372088832; - static const int NSActivityTrackingEnabled = 70368744177664; - static const int NSActivityUserInitiated = 16777215; - static const int NSActivityUserInitiatedAllowingIdleSystemSleep = 15728639; - static const int NSActivityBackground = 255; - static const int NSActivityLatencyCritical = 1095216660480; - static const int NSActivityUserInteractive = 1095233437695; -} + static NSURLProtocol alloc(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLProtocol1, _lib._sel_alloc1); + return NSURLProtocol._(_ret, _lib, retain: false, release: true); + } -void _ObjCBlock37_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, bool arg0) { - return block.ref.target - .cast>() - .asFunction()(arg0); -} + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + PedometerBindings _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSURLProtocol1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument?._id ?? ffi.nullptr); + } -final _ObjCBlock37_closureRegistry = {}; -int _ObjCBlock37_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock37_registerClosure(Function fn) { - final id = ++_ObjCBlock37_closureRegistryIndex; - _ObjCBlock37_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + static void cancelPreviousPerformRequestsWithTarget_( + PedometerBindings _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSURLProtocol1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } -void _ObjCBlock37_closureTrampoline(ffi.Pointer<_ObjCBlock> block, bool arg0) { - return _ObjCBlock37_closureRegistry[block.ref.target.address]!(arg0); -} + static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLProtocol1, _lib._sel_accessInstanceVariablesDirectly1); + } -class ObjCBlock37 extends _ObjCBlockBase { - ObjCBlock37._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); + static bool useStoredAccessor(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLProtocol1, _lib._sel_useStoredAccessor1); + } - /// Creates a block from a C function pointer. - ObjCBlock37.fromFunctionPointer(PedometerBindings lib, - ffi.Pointer> ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Bool arg0)>(_ObjCBlock37_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + static NSSet keyPathsForValuesAffectingValueForKey_( + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSURLProtocol1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); + return NSSet._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a Dart function. - ObjCBlock37.fromFunction(PedometerBindings lib, void Function(bool arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Bool arg0)>(_ObjCBlock37_closureTrampoline) - .cast(), - _ObjCBlock37_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(bool arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, ffi.Bool arg0)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, bool arg0)>()(_id, arg0); + static bool automaticallyNotifiesObserversForKey_( + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSURLProtocol1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77( + _lib._class_NSURLProtocol1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } -abstract class NSProcessInfoThermalState { - static const int NSProcessInfoThermalStateNominal = 0; - static const int NSProcessInfoThermalStateFair = 1; - static const int NSProcessInfoThermalStateSerious = 2; - static const int NSProcessInfoThermalStateCritical = 3; + static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLProtocol1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } } -class NSTextCheckingResult extends NSObject { - NSTextCheckingResult._(ffi.Pointer id, PedometerBindings lib, +/// ! +/// @class NSMutableURLRequest +/// +/// @abstract An NSMutableURLRequest object represents a mutable URL load +/// request in a manner independent of protocol and URL scheme. +/// +/// @discussion This specialization of NSURLRequest is provided to aid +/// developers who may find it more convenient to mutate a single request +/// object for a series of URL loads instead of creating an immutable +/// NSURLRequest for each load. This programming model is supported by +/// the following contract stipulation between NSMutableURLRequest and +/// NSURLConnection: NSURLConnection makes a deep copy of each +/// NSMutableURLRequest object passed to one of its initializers. +///

NSMutableURLRequest is designed to be extended to support +/// protocol-specific data by adding categories to access a property +/// object provided in an interface targeted at protocol implementors. +///

    +///
  • Protocol implementors should direct their attention to the +/// NSMutableURLRequestExtensibility category on +/// NSMutableURLRequest for more information on how to provide +/// extensions on NSMutableURLRequest to support protocol-specific +/// request information. +///
  • Clients of this API who wish to create NSMutableURLRequest +/// objects to load URL content should consult the protocol-specific +/// NSMutableURLRequest categories that are available. The +/// NSMutableHTTPURLRequest category on NSMutableURLRequest is an +/// example. +///
+class NSMutableURLRequest extends NSURLRequest { + NSMutableURLRequest._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSTextCheckingResult] that points to the same underlying object as [other]. - static NSTextCheckingResult castFrom(T other) { - return NSTextCheckingResult._(other._id, other._lib, + /// Returns a [NSMutableURLRequest] that points to the same underlying object as [other]. + static NSMutableURLRequest castFrom(T other) { + return NSMutableURLRequest._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSTextCheckingResult] that wraps the given raw object pointer. - static NSTextCheckingResult castFromPointer( + /// Returns a [NSMutableURLRequest] that wraps the given raw object pointer. + static NSMutableURLRequest castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSTextCheckingResult._(other, lib, retain: retain, release: release); + return NSMutableURLRequest._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSTextCheckingResult]. + /// Returns whether [obj] is an instance of [NSMutableURLRequest]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSTextCheckingResult1); + obj._lib._class_NSMutableURLRequest1); } - int get resultType { - return _lib._objc_msgSend_750(_id, _lib._sel_resultType1); + /// ! + /// @abstract The URL of the receiver. + @override + NSURL? get URL { + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_URL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - _NSRange get range { - return _lib._objc_msgSend_49(_id, _lib._sel_range1); + /// ! + /// @abstract The URL of the receiver. + set URL(NSURL? value) { + return _lib._objc_msgSend_511( + _id, _lib._sel_setURL_1, value?._id ?? ffi.nullptr); } - NSOrthography? get orthography { - final _ret = _lib._objc_msgSend_751(_id, _lib._sel_orthography1); - return _ret.address == 0 - ? null - : NSOrthography._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract The cache policy of the receiver. + @override + int get cachePolicy { + return _lib._objc_msgSend_713(_id, _lib._sel_cachePolicy1); } - NSArray? get grammarDetails { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_grammarDetails1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract The cache policy of the receiver. + set cachePolicy(int value) { + return _lib._objc_msgSend_867(_id, _lib._sel_setCachePolicy_1, value); } - NSDate? get date { - final _ret = _lib._objc_msgSend_154(_id, _lib._sel_date1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Sets the timeout interval of the receiver. + /// @discussion The timeout interval specifies the limit on the idle + /// interval allotted to a request in the process of loading. The "idle + /// interval" is defined as the period of time that has passed since the + /// last instance of load activity occurred for a request that is in the + /// process of loading. Hence, when an instance of load activity occurs + /// (e.g. bytes are received from the network for a request), the idle + /// interval for a request is reset to 0. If the idle interval ever + /// becomes greater than or equal to the timeout interval, the request + /// is considered to have timed out. This timeout interval is measured + /// in seconds. + @override + double get timeoutInterval { + return _lib._objc_msgSend_156(_id, _lib._sel_timeoutInterval1); } - NSTimeZone? get timeZone { - final _ret = _lib._objc_msgSend_569(_id, _lib._sel_timeZone1); + /// ! + /// @abstract Sets the timeout interval of the receiver. + /// @discussion The timeout interval specifies the limit on the idle + /// interval allotted to a request in the process of loading. The "idle + /// interval" is defined as the period of time that has passed since the + /// last instance of load activity occurred for a request that is in the + /// process of loading. Hence, when an instance of load activity occurs + /// (e.g. bytes are received from the network for a request), the idle + /// interval for a request is reset to 0. If the idle interval ever + /// becomes greater than or equal to the timeout interval, the request + /// is considered to have timed out. This timeout interval is measured + /// in seconds. + set timeoutInterval(double value) { + return _lib._objc_msgSend_490(_id, _lib._sel_setTimeoutInterval_1, value); + } + + /// ! + /// @abstract Sets the main document URL + /// @discussion The caller should pass the URL for an appropriate main + /// document, if known. For example, when loading a web page, the URL + /// of the main html document for the top-level frame should be + /// passed. This main document is used to implement the cookie "only + /// from same domain as main document" policy, attributing this request + /// as a sub-resource of a user-specified URL, and possibly other things + /// in the future. + @override + NSURL? get mainDocumentURL { + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_mainDocumentURL1); return _ret.address == 0 ? null - : NSTimeZone._(_ret, _lib, retain: true, release: true); + : NSURL._(_ret, _lib, retain: true, release: true); } - double get duration { - return _lib._objc_msgSend_147(_id, _lib._sel_duration1); + /// ! + /// @abstract Sets the main document URL + /// @discussion The caller should pass the URL for an appropriate main + /// document, if known. For example, when loading a web page, the URL + /// of the main html document for the top-level frame should be + /// passed. This main document is used to implement the cookie "only + /// from same domain as main document" policy, attributing this request + /// as a sub-resource of a user-specified URL, and possibly other things + /// in the future. + set mainDocumentURL(NSURL? value) { + return _lib._objc_msgSend_511( + _id, _lib._sel_setMainDocumentURL_1, value?._id ?? ffi.nullptr); } - NSDictionary? get components { - final _ret = _lib._objc_msgSend_324(_id, _lib._sel_components1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Sets the NSURLRequestNetworkServiceType to associate with this request + /// @discussion This method is used to provide the network layers with a hint as to the purpose + /// of the request. Most clients should not need to use this method. + @override + int get networkServiceType { + return _lib._objc_msgSend_714(_id, _lib._sel_networkServiceType1); } - NSURL? get URL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Sets the NSURLRequestNetworkServiceType to associate with this request + /// @discussion This method is used to provide the network layers with a hint as to the purpose + /// of the request. Most clients should not need to use this method. + set networkServiceType(int value) { + return _lib._objc_msgSend_868( + _id, _lib._sel_setNetworkServiceType_1, value); } - NSString? get replacementString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_replacementString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract sets whether a connection created with this request is allowed to use + /// the built in cellular radios (if present). + /// @discussion NO if the receiver should not be allowed to use the built in + /// cellular radios to satisfy the request, YES otherwise. The default is YES. + @override + bool get allowsCellularAccess { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsCellularAccess1); } - NSArray? get alternativeStrings { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_alternativeStrings1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract sets whether a connection created with this request is allowed to use + /// the built in cellular radios (if present). + /// @discussion NO if the receiver should not be allowed to use the built in + /// cellular radios to satisfy the request, YES otherwise. The default is YES. + set allowsCellularAccess(bool value) { + return _lib._objc_msgSend_475( + _id, _lib._sel_setAllowsCellularAccess_1, value); } - NSRegularExpression? get regularExpression { - final _ret = _lib._objc_msgSend_763(_id, _lib._sel_regularExpression1); - return _ret.address == 0 - ? null - : NSRegularExpression._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract sets whether a connection created with this request is allowed to use + /// network interfaces which have been marked as expensive. + /// @discussion NO if the receiver should not be allowed to use an interface marked as expensive to + /// satisfy the request, YES otherwise. + @override + bool get allowsExpensiveNetworkAccess { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsExpensiveNetworkAccess1); } - NSString? get phoneNumber { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_phoneNumber1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract sets whether a connection created with this request is allowed to use + /// network interfaces which have been marked as expensive. + /// @discussion NO if the receiver should not be allowed to use an interface marked as expensive to + /// satisfy the request, YES otherwise. + set allowsExpensiveNetworkAccess(bool value) { + return _lib._objc_msgSend_475( + _id, _lib._sel_setAllowsExpensiveNetworkAccess_1, value); } - int get numberOfRanges { - return _lib._objc_msgSend_10(_id, _lib._sel_numberOfRanges1); + /// ! + /// @abstract sets whether a connection created with this request is allowed to use + /// network interfaces which have been marked as constrained. + /// @discussion NO if the receiver should not be allowed to use an interface marked as constrained to + /// satisfy the request, YES otherwise. + @override + bool get allowsConstrainedNetworkAccess { + return _lib._objc_msgSend_12( + _id, _lib._sel_allowsConstrainedNetworkAccess1); + } + + /// ! + /// @abstract sets whether a connection created with this request is allowed to use + /// network interfaces which have been marked as constrained. + /// @discussion NO if the receiver should not be allowed to use an interface marked as constrained to + /// satisfy the request, YES otherwise. + set allowsConstrainedNetworkAccess(bool value) { + return _lib._objc_msgSend_475( + _id, _lib._sel_setAllowsConstrainedNetworkAccess_1, value); + } + + /// ! + /// @abstract returns whether we assume that server supports HTTP/3. Enables QUIC + /// racing without HTTP/3 service discovery. + /// @result YES if server endpoint is known to support HTTP/3. Defaults to NO. + /// The default may be YES in a future OS update. + @override + bool get assumesHTTP3Capable { + return _lib._objc_msgSend_12(_id, _lib._sel_assumesHTTP3Capable1); } - _NSRange rangeAtIndex_(int idx) { - return _lib._objc_msgSend_282(_id, _lib._sel_rangeAtIndex_1, idx); + /// ! + /// @abstract returns whether we assume that server supports HTTP/3. Enables QUIC + /// racing without HTTP/3 service discovery. + /// @result YES if server endpoint is known to support HTTP/3. Defaults to NO. + /// The default may be YES in a future OS update. + set assumesHTTP3Capable(bool value) { + return _lib._objc_msgSend_475( + _id, _lib._sel_setAssumesHTTP3Capable_1, value); } - _NSRange rangeWithName_(NSString? name) { - return _lib._objc_msgSend_261( - _id, _lib._sel_rangeWithName_1, name?._id ?? ffi.nullptr); + /// ! + /// @abstract Sets the NSURLRequestAttribution to associate with this request. + /// @discussion Set to NSURLRequestAttributionUser if the URL was specified by the + /// user. Defaults to NSURLRequestAttributionDeveloper. + @override + int get attribution { + return _lib._objc_msgSend_715(_id, _lib._sel_attribution1); } - NSTextCheckingResult resultByAdjustingRangesWithOffset_(int offset) { - final _ret = _lib._objc_msgSend_764( - _id, _lib._sel_resultByAdjustingRangesWithOffset_1, offset); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Sets the NSURLRequestAttribution to associate with this request. + /// @discussion Set to NSURLRequestAttributionUser if the URL was specified by the + /// user. Defaults to NSURLRequestAttributionDeveloper. + set attribution(int value) { + return _lib._objc_msgSend_869(_id, _lib._sel_setAttribution_1, value); } - NSDictionary? get addressComponents { - final _ret = _lib._objc_msgSend_324(_id, _lib._sel_addressComponents1); + /// ! + /// @abstract sets whether a request is required to do DNSSEC validation during DNS lookup. + /// @discussion YES, if the DNS lookup for this request should require DNSSEC validation, + /// No otherwise. Defaults to NO. + @override + bool get requiresDNSSECValidation { + return _lib._objc_msgSend_12(_id, _lib._sel_requiresDNSSECValidation1); + } + + /// ! + /// @abstract sets whether a request is required to do DNSSEC validation during DNS lookup. + /// @discussion YES, if the DNS lookup for this request should require DNSSEC validation, + /// No otherwise. Defaults to NO. + set requiresDNSSECValidation(bool value) { + return _lib._objc_msgSend_475( + _id, _lib._sel_setRequiresDNSSECValidation_1, value); + } + + /// ! + /// @abstract Sets the HTTP request method of the receiver. + NSString get HTTPMethod { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_HTTPMethod1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + /// ! + /// @abstract Sets the HTTP request method of the receiver. + set HTTPMethod(NSString value) { + return _lib._objc_msgSend_507(_id, _lib._sel_setHTTPMethod_1, value._id); + } + + /// ! + /// @abstract Sets the HTTP header fields of the receiver to the given + /// dictionary. + /// @discussion This method replaces all header fields that may have + /// existed before this method call. + ///

Since HTTP header fields must be string values, each object and + /// key in the dictionary passed to this method must answer YES when + /// sent an -isKindOfClass:[NSString class] message. If either + /// the key or value for a key-value pair answers NO when sent this + /// message, the key-value pair is skipped. + @override + NSDictionary? get allHTTPHeaderFields { + final _ret = _lib._objc_msgSend_340(_id, _lib._sel_allHTTPHeaderFields1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSTextCheckingResult orthographyCheckingResultWithRange_orthography_( - PedometerBindings _lib, _NSRange range, NSOrthography? orthography) { - final _ret = _lib._objc_msgSend_765( - _lib._class_NSTextCheckingResult1, - _lib._sel_orthographyCheckingResultWithRange_orthography_1, - range, - orthography?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Sets the HTTP header fields of the receiver to the given + /// dictionary. + /// @discussion This method replaces all header fields that may have + /// existed before this method call. + ///

Since HTTP header fields must be string values, each object and + /// key in the dictionary passed to this method must answer YES when + /// sent an -isKindOfClass:[NSString class] message. If either + /// the key or value for a key-value pair answers NO when sent this + /// message, the key-value pair is skipped. + set allHTTPHeaderFields(NSDictionary? value) { + return _lib._objc_msgSend_870( + _id, _lib._sel_setAllHTTPHeaderFields_1, value?._id ?? ffi.nullptr); } - static NSTextCheckingResult spellCheckingResultWithRange_( - PedometerBindings _lib, _NSRange range) { - final _ret = _lib._objc_msgSend_766(_lib._class_NSTextCheckingResult1, - _lib._sel_spellCheckingResultWithRange_1, range); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + /// ! + /// @method setValue:forHTTPHeaderField: + /// @abstract Sets the value of the given HTTP header field. + /// @discussion If a value was previously set for the given header + /// field, that value is replaced with the given value. Note that, in + /// keeping with the HTTP RFC, HTTP header field names are + /// case-insensitive. + /// @param value the header field value. + /// @param field the header field name (case-insensitive). + void setValue_forHTTPHeaderField_(NSString? value, NSString field) { + _lib._objc_msgSend_871(_id, _lib._sel_setValue_forHTTPHeaderField_1, + value?._id ?? ffi.nullptr, field._id); } - static NSTextCheckingResult grammarCheckingResultWithRange_details_( - PedometerBindings _lib, _NSRange range, NSArray? details) { - final _ret = _lib._objc_msgSend_767( - _lib._class_NSTextCheckingResult1, - _lib._sel_grammarCheckingResultWithRange_details_1, - range, - details?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + /// ! + /// @method addValue:forHTTPHeaderField: + /// @abstract Adds an HTTP header field in the current header + /// dictionary. + /// @discussion This method provides a way to add values to header + /// fields incrementally. If a value was previously set for the given + /// header field, the given value is appended to the previously-existing + /// value. The appropriate field delimiter, a comma in the case of HTTP, + /// is added by the implementation, and should not be added to the given + /// value by the caller. Note that, in keeping with the HTTP RFC, HTTP + /// header field names are case-insensitive. + /// @param value the header field value. + /// @param field the header field name (case-insensitive). + void addValue_forHTTPHeaderField_(NSString value, NSString field) { + _lib._objc_msgSend_668( + _id, _lib._sel_addValue_forHTTPHeaderField_1, value._id, field._id); } - static NSTextCheckingResult dateCheckingResultWithRange_date_( - PedometerBindings _lib, _NSRange range, NSDate? date) { - final _ret = _lib._objc_msgSend_768( - _lib._class_NSTextCheckingResult1, - _lib._sel_dateCheckingResultWithRange_date_1, - range, - date?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Sets the request body data of the receiver. + /// @discussion This data is sent as the message body of the request, as + /// in done in an HTTP POST request. + @override + NSData? get HTTPBody { + final _ret = _lib._objc_msgSend_227(_id, _lib._sel_HTTPBody1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - static NSTextCheckingResult - dateCheckingResultWithRange_date_timeZone_duration_( - PedometerBindings _lib, - _NSRange range, - NSDate? date, - NSTimeZone? timeZone, - double duration) { - final _ret = _lib._objc_msgSend_769( - _lib._class_NSTextCheckingResult1, - _lib._sel_dateCheckingResultWithRange_date_timeZone_duration_1, - range, - date?._id ?? ffi.nullptr, - timeZone?._id ?? ffi.nullptr, - duration); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Sets the request body data of the receiver. + /// @discussion This data is sent as the message body of the request, as + /// in done in an HTTP POST request. + set HTTPBody(NSData? value) { + return _lib._objc_msgSend_872( + _id, _lib._sel_setHTTPBody_1, value?._id ?? ffi.nullptr); } - static NSTextCheckingResult addressCheckingResultWithRange_components_( - PedometerBindings _lib, _NSRange range, NSDictionary? components) { - final _ret = _lib._objc_msgSend_770( - _lib._class_NSTextCheckingResult1, - _lib._sel_addressCheckingResultWithRange_components_1, - range, - components?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Sets the request body to be the contents of the given stream. + /// @discussion The provided stream should be unopened; the request will take + /// over the stream's delegate. The entire stream's contents will be + /// transmitted as the HTTP body of the request. Note that the body stream + /// and the body data (set by setHTTPBody:, above) are mutually exclusive + /// - setting one will clear the other. + @override + NSInputStream? get HTTPBodyStream { + final _ret = _lib._objc_msgSend_725(_id, _lib._sel_HTTPBodyStream1); + return _ret.address == 0 + ? null + : NSInputStream._(_ret, _lib, retain: true, release: true); } - static NSTextCheckingResult linkCheckingResultWithRange_URL_( - PedometerBindings _lib, _NSRange range, NSURL? url) { - final _ret = _lib._objc_msgSend_771( - _lib._class_NSTextCheckingResult1, - _lib._sel_linkCheckingResultWithRange_URL_1, - range, - url?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Sets the request body to be the contents of the given stream. + /// @discussion The provided stream should be unopened; the request will take + /// over the stream's delegate. The entire stream's contents will be + /// transmitted as the HTTP body of the request. Note that the body stream + /// and the body data (set by setHTTPBody:, above) are mutually exclusive + /// - setting one will clear the other. + set HTTPBodyStream(NSInputStream? value) { + return _lib._objc_msgSend_873( + _id, _lib._sel_setHTTPBodyStream_1, value?._id ?? ffi.nullptr); } - static NSTextCheckingResult quoteCheckingResultWithRange_replacementString_( - PedometerBindings _lib, _NSRange range, NSString? replacementString) { - final _ret = _lib._objc_msgSend_772( - _lib._class_NSTextCheckingResult1, - _lib._sel_quoteCheckingResultWithRange_replacementString_1, - range, - replacementString?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Decide whether default cookie handling will happen for + /// this request (YES if cookies should be sent with and set for this request; + /// otherwise NO). + /// @discussion The default is YES - in other words, cookies are sent from and + /// stored to the cookie manager by default. + /// NOTE: In releases prior to 10.3, this value is ignored + @override + bool get HTTPShouldHandleCookies { + return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldHandleCookies1); + } + + /// ! + /// @abstract Decide whether default cookie handling will happen for + /// this request (YES if cookies should be sent with and set for this request; + /// otherwise NO). + /// @discussion The default is YES - in other words, cookies are sent from and + /// stored to the cookie manager by default. + /// NOTE: In releases prior to 10.3, this value is ignored + set HTTPShouldHandleCookies(bool value) { + return _lib._objc_msgSend_475( + _id, _lib._sel_setHTTPShouldHandleCookies_1, value); + } + + /// ! + /// @abstract Sets whether the request should not wait for the previous response + /// before transmitting (YES if the receiver should transmit before the previous response is + /// received. NO to wait for the previous response before transmitting) + /// @discussion Calling this method with a YES value does not guarantee HTTP + /// pipelining behavior. This method may have no effect if an HTTP proxy is + /// configured, or if the HTTP request uses an unsafe request method (e.g., POST + /// requests will not pipeline). Pipelining behavior also may not begin until + /// the second request on a given TCP connection. There may be other situations + /// where pipelining does not occur even though YES was set. + /// HTTP 1.1 allows the client to send multiple requests to the server without + /// waiting for a response. Though HTTP 1.1 requires support for pipelining, + /// some servers report themselves as being HTTP 1.1 but do not support + /// pipelining (disconnecting, sending resources misordered, omitting part of + /// a resource, etc.). + @override + bool get HTTPShouldUsePipelining { + return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldUsePipelining1); + } + + /// ! + /// @abstract Sets whether the request should not wait for the previous response + /// before transmitting (YES if the receiver should transmit before the previous response is + /// received. NO to wait for the previous response before transmitting) + /// @discussion Calling this method with a YES value does not guarantee HTTP + /// pipelining behavior. This method may have no effect if an HTTP proxy is + /// configured, or if the HTTP request uses an unsafe request method (e.g., POST + /// requests will not pipeline). Pipelining behavior also may not begin until + /// the second request on a given TCP connection. There may be other situations + /// where pipelining does not occur even though YES was set. + /// HTTP 1.1 allows the client to send multiple requests to the server without + /// waiting for a response. Though HTTP 1.1 requires support for pipelining, + /// some servers report themselves as being HTTP 1.1 but do not support + /// pipelining (disconnecting, sending resources misordered, omitting part of + /// a resource, etc.). + set HTTPShouldUsePipelining(bool value) { + return _lib._objc_msgSend_475( + _id, _lib._sel_setHTTPShouldUsePipelining_1, value); } - static NSTextCheckingResult dashCheckingResultWithRange_replacementString_( - PedometerBindings _lib, _NSRange range, NSString? replacementString) { - final _ret = _lib._objc_msgSend_772( - _lib._class_NSTextCheckingResult1, - _lib._sel_dashCheckingResultWithRange_replacementString_1, - range, - replacementString?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + /// ! + /// @method requestWithURL: + /// @abstract Allocates and initializes an NSURLRequest with the given + /// URL. + /// @discussion Default values are used for cache policy + /// (NSURLRequestUseProtocolCachePolicy) and timeout interval (60 + /// seconds). + /// @param URL The URL for the request. + /// @result A newly-created and autoreleased NSURLRequest instance. + static NSMutableURLRequest requestWithURL_( + PedometerBindings _lib, NSURL URL) { + final _ret = _lib._objc_msgSend_711( + _lib._class_NSMutableURLRequest1, _lib._sel_requestWithURL_1, URL._id); + return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); } - static NSTextCheckingResult - replacementCheckingResultWithRange_replacementString_( - PedometerBindings _lib, _NSRange range, NSString? replacementString) { - final _ret = _lib._objc_msgSend_772( - _lib._class_NSTextCheckingResult1, - _lib._sel_replacementCheckingResultWithRange_replacementString_1, - range, - replacementString?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + /// ! + /// @property supportsSecureCoding + /// @abstract Indicates that NSURLRequest implements the NSSecureCoding protocol. + /// @result A BOOL value set to YES. + static bool getSupportsSecureCoding(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMutableURLRequest1, _lib._sel_supportsSecureCoding1); } - static NSTextCheckingResult - correctionCheckingResultWithRange_replacementString_( - PedometerBindings _lib, _NSRange range, NSString? replacementString) { - final _ret = _lib._objc_msgSend_772( - _lib._class_NSTextCheckingResult1, - _lib._sel_correctionCheckingResultWithRange_replacementString_1, - range, - replacementString?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + /// ! + /// @method requestWithURL:cachePolicy:timeoutInterval: + /// @abstract Allocates and initializes a NSURLRequest with the given + /// URL and cache policy. + /// @param URL The URL for the request. + /// @param cachePolicy The cache policy for the request. + /// @param timeoutInterval The timeout interval for the request. See the + /// commentary for the timeoutInterval for more information on + /// timeout intervals. + /// @result A newly-created and autoreleased NSURLRequest instance. + static NSMutableURLRequest requestWithURL_cachePolicy_timeoutInterval_( + PedometerBindings _lib, + NSURL URL, + int cachePolicy, + double timeoutInterval) { + final _ret = _lib._objc_msgSend_712( + _lib._class_NSMutableURLRequest1, + _lib._sel_requestWithURL_cachePolicy_timeoutInterval_1, + URL._id, + cachePolicy, + timeoutInterval); + return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); } - static NSTextCheckingResult - correctionCheckingResultWithRange_replacementString_alternativeStrings_( - PedometerBindings _lib, - _NSRange range, - NSString? replacementString, - NSArray? alternativeStrings) { - final _ret = _lib._objc_msgSend_773( - _lib._class_NSTextCheckingResult1, - _lib._sel_correctionCheckingResultWithRange_replacementString_alternativeStrings_1, - range, - replacementString?._id ?? ffi.nullptr, - alternativeStrings?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + /// ! + /// @method initWithURL: + /// @abstract Initializes an NSURLRequest with the given URL. + /// @discussion Default values are used for cache policy + /// (NSURLRequestUseProtocolCachePolicy) and timeout interval (60 + /// seconds). + /// @param URL The URL for the request. + /// @result An initialized NSURLRequest. + @override + NSMutableURLRequest initWithURL_(NSURL URL) { + final _ret = _lib._objc_msgSend_711(_id, _lib._sel_initWithURL_1, URL._id); + return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); } - static NSTextCheckingResult - regularExpressionCheckingResultWithRanges_count_regularExpression_( - PedometerBindings _lib, - ffi.Pointer<_NSRange> ranges, - int count, - NSRegularExpression? regularExpression) { - final _ret = _lib._objc_msgSend_774( - _lib._class_NSTextCheckingResult1, - _lib._sel_regularExpressionCheckingResultWithRanges_count_regularExpression_1, - ranges, - count, - regularExpression?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + /// ! + /// @method initWithURL: + /// @abstract Initializes an NSURLRequest with the given URL and + /// cache policy. + /// @discussion This is the designated initializer for the + /// NSURLRequest class. + /// @param URL The URL for the request. + /// @param cachePolicy The cache policy for the request. + /// @param timeoutInterval The timeout interval for the request. See the + /// commentary for the timeoutInterval for more information on + /// timeout intervals. + /// @result An initialized NSURLRequest. + @override + NSMutableURLRequest initWithURL_cachePolicy_timeoutInterval_( + NSURL URL, int cachePolicy, double timeoutInterval) { + final _ret = _lib._objc_msgSend_712( + _id, + _lib._sel_initWithURL_cachePolicy_timeoutInterval_1, + URL._id, + cachePolicy, + timeoutInterval); + return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); } - static NSTextCheckingResult phoneNumberCheckingResultWithRange_phoneNumber_( - PedometerBindings _lib, _NSRange range, NSString? phoneNumber) { - final _ret = _lib._objc_msgSend_772( - _lib._class_NSTextCheckingResult1, - _lib._sel_phoneNumberCheckingResultWithRange_phoneNumber_1, - range, - phoneNumber?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + @override + NSMutableURLRequest init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); } - static NSTextCheckingResult - transitInformationCheckingResultWithRange_components_( - PedometerBindings _lib, _NSRange range, NSDictionary? components) { - final _ret = _lib._objc_msgSend_770( - _lib._class_NSTextCheckingResult1, - _lib._sel_transitInformationCheckingResultWithRange_components_1, - range, - components?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + static NSMutableURLRequest new1(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableURLRequest1, _lib._sel_new1); + return NSMutableURLRequest._(_ret, _lib, retain: false, release: true); } - static NSTextCheckingResult new1(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSTextCheckingResult1, _lib._sel_new1); - return NSTextCheckingResult._(_ret, _lib, retain: false, release: true); + static NSMutableURLRequest allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSMutableURLRequest1, _lib._sel_allocWithZone_1, zone); + return NSMutableURLRequest._(_ret, _lib, retain: false, release: true); } - static NSTextCheckingResult alloc(PedometerBindings _lib) { + static NSMutableURLRequest alloc(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSTextCheckingResult1, _lib._sel_alloc1); - return NSTextCheckingResult._(_ret, _lib, retain: false, release: true); + _lib._class_NSMutableURLRequest1, _lib._sel_alloc1); + return NSMutableURLRequest._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSTextCheckingResult1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSMutableURLRequest1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSTextCheckingResult1, + _lib._objc_msgSend_15(_lib._class_NSMutableURLRequest1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSTextCheckingResult1, + return _lib._objc_msgSend_12(_lib._class_NSMutableURLRequest1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSTextCheckingResult1, _lib._sel_useStoredAccessor1); + _lib._class_NSMutableURLRequest1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSTextCheckingResult1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSMutableURLRequest1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSTextCheckingResult1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSTextCheckingResult1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSMutableURLRequest1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71(_lib._class_NSTextCheckingResult1, + final _ret = _lib._objc_msgSend_77(_lib._class_NSMutableURLRequest1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSTextCheckingResult1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSMutableURLRequest1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSTextCheckingType { - static const int NSTextCheckingTypeOrthography = 1; - static const int NSTextCheckingTypeSpelling = 2; - static const int NSTextCheckingTypeGrammar = 4; - static const int NSTextCheckingTypeDate = 8; - static const int NSTextCheckingTypeAddress = 16; - static const int NSTextCheckingTypeLink = 32; - static const int NSTextCheckingTypeQuote = 64; - static const int NSTextCheckingTypeDash = 128; - static const int NSTextCheckingTypeReplacement = 256; - static const int NSTextCheckingTypeCorrection = 512; - static const int NSTextCheckingTypeRegularExpression = 1024; - static const int NSTextCheckingTypePhoneNumber = 2048; - static const int NSTextCheckingTypeTransitInformation = 4096; -} - -class NSRegularExpression extends NSObject { - NSRegularExpression._(ffi.Pointer id, PedometerBindings lib, +class NSXMLParser extends NSObject { + NSXMLParser._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSRegularExpression] that points to the same underlying object as [other]. - static NSRegularExpression castFrom(T other) { - return NSRegularExpression._(other._id, other._lib, - retain: true, release: true); + /// Returns a [NSXMLParser] that points to the same underlying object as [other]. + static NSXMLParser castFrom(T other) { + return NSXMLParser._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSRegularExpression] that wraps the given raw object pointer. - static NSRegularExpression castFromPointer( + /// Returns a [NSXMLParser] that wraps the given raw object pointer. + static NSXMLParser castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSRegularExpression._(other, lib, retain: retain, release: release); + return NSXMLParser._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSRegularExpression]. + /// Returns whether [obj] is an instance of [NSXMLParser]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSRegularExpression1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLParser1); } - static NSRegularExpression regularExpressionWithPattern_options_error_( - PedometerBindings _lib, - NSString? pattern, - int options, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_752( - _lib._class_NSRegularExpression1, - _lib._sel_regularExpressionWithPattern_options_error_1, - pattern?._id ?? ffi.nullptr, - options, - error); - return NSRegularExpression._(_ret, _lib, retain: true, release: true); + NSXMLParser? initWithContentsOfURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_218(_id, _lib._sel_initWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSXMLParser._(_ret, _lib, retain: true, release: true); } - NSRegularExpression initWithPattern_options_error_(NSString? pattern, - int options, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_753( - _id, - _lib._sel_initWithPattern_options_error_1, - pattern?._id ?? ffi.nullptr, - options, - error); - return NSRegularExpression._(_ret, _lib, retain: true, release: true); + NSXMLParser initWithData_(NSData data) { + final _ret = + _lib._objc_msgSend_220(_id, _lib._sel_initWithData_1, data._id); + return NSXMLParser._(_ret, _lib, retain: true, release: true); + } + + NSXMLParser initWithStream_(NSInputStream stream) { + final _ret = + _lib._objc_msgSend_879(_id, _lib._sel_initWithStream_1, stream._id); + return NSXMLParser._(_ret, _lib, retain: true, release: true); } - NSString? get pattern { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_pattern1); + NSObject? get delegate { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_delegate1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSObject._(_ret, _lib, retain: true, release: true); } - int get options { - return _lib._objc_msgSend_754(_id, _lib._sel_options1); + set delegate(NSObject? value) { + return _lib._objc_msgSend_367( + _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } - int get numberOfCaptureGroups { - return _lib._objc_msgSend_10(_id, _lib._sel_numberOfCaptureGroups1); + bool get shouldProcessNamespaces { + return _lib._objc_msgSend_12(_id, _lib._sel_shouldProcessNamespaces1); } - static NSString escapedPatternForString_( - PedometerBindings _lib, NSString? string) { - final _ret = _lib._objc_msgSend_56(_lib._class_NSRegularExpression1, - _lib._sel_escapedPatternForString_1, string?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + set shouldProcessNamespaces(bool value) { + return _lib._objc_msgSend_475( + _id, _lib._sel_setShouldProcessNamespaces_1, value); } - void enumerateMatchesInString_options_range_usingBlock_( - NSString? string, int options, _NSRange range, ObjCBlock38 block) { - return _lib._objc_msgSend_755( - _id, - _lib._sel_enumerateMatchesInString_options_range_usingBlock_1, - string?._id ?? ffi.nullptr, - options, - range, - block._id); + bool get shouldReportNamespacePrefixes { + return _lib._objc_msgSend_12(_id, _lib._sel_shouldReportNamespacePrefixes1); } - NSArray matchesInString_options_range_( - NSString? string, int options, _NSRange range) { - final _ret = _lib._objc_msgSend_756( - _id, - _lib._sel_matchesInString_options_range_1, - string?._id ?? ffi.nullptr, - options, - range); - return NSArray._(_ret, _lib, retain: true, release: true); + set shouldReportNamespacePrefixes(bool value) { + return _lib._objc_msgSend_475( + _id, _lib._sel_setShouldReportNamespacePrefixes_1, value); } - int numberOfMatchesInString_options_range_( - NSString? string, int options, _NSRange range) { - return _lib._objc_msgSend_757( - _id, - _lib._sel_numberOfMatchesInString_options_range_1, - string?._id ?? ffi.nullptr, - options, - range); + int get externalEntityResolvingPolicy { + return _lib._objc_msgSend_880( + _id, _lib._sel_externalEntityResolvingPolicy1); } - NSTextCheckingResult firstMatchInString_options_range_( - NSString? string, int options, _NSRange range) { - final _ret = _lib._objc_msgSend_758( - _id, - _lib._sel_firstMatchInString_options_range_1, - string?._id ?? ffi.nullptr, - options, - range); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + set externalEntityResolvingPolicy(int value) { + return _lib._objc_msgSend_881( + _id, _lib._sel_setExternalEntityResolvingPolicy_1, value); } - _NSRange rangeOfFirstMatchInString_options_range_( - NSString? string, int options, _NSRange range) { - return _lib._objc_msgSend_759( - _id, - _lib._sel_rangeOfFirstMatchInString_options_range_1, - string?._id ?? ffi.nullptr, - options, - range); + NSSet? get allowedExternalEntityURLs { + final _ret = + _lib._objc_msgSend_260(_id, _lib._sel_allowedExternalEntityURLs1); + return _ret.address == 0 + ? null + : NSSet._(_ret, _lib, retain: true, release: true); } - NSString stringByReplacingMatchesInString_options_range_withTemplate_( - NSString? string, int options, _NSRange range, NSString? templ) { - final _ret = _lib._objc_msgSend_760( - _id, - _lib._sel_stringByReplacingMatchesInString_options_range_withTemplate_1, - string?._id ?? ffi.nullptr, - options, - range, - templ?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + set allowedExternalEntityURLs(NSSet? value) { + return _lib._objc_msgSend_882(_id, _lib._sel_setAllowedExternalEntityURLs_1, + value?._id ?? ffi.nullptr); } - int replaceMatchesInString_options_range_withTemplate_( - NSMutableString? string, int options, _NSRange range, NSString? templ) { - return _lib._objc_msgSend_761( - _id, - _lib._sel_replaceMatchesInString_options_range_withTemplate_1, - string?._id ?? ffi.nullptr, - options, - range, - templ?._id ?? ffi.nullptr); + bool parse() { + return _lib._objc_msgSend_12(_id, _lib._sel_parse1); } - NSString replacementStringForResult_inString_offset_template_( - NSTextCheckingResult? result, - NSString? string, - int offset, - NSString? templ) { - final _ret = _lib._objc_msgSend_762( - _id, - _lib._sel_replacementStringForResult_inString_offset_template_1, - result?._id ?? ffi.nullptr, - string?._id ?? ffi.nullptr, - offset, - templ?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + void abortParsing() { + _lib._objc_msgSend_1(_id, _lib._sel_abortParsing1); } - static NSString escapedTemplateForString_( - PedometerBindings _lib, NSString? string) { - final _ret = _lib._objc_msgSend_56(_lib._class_NSRegularExpression1, - _lib._sel_escapedTemplateForString_1, string?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSError? get parserError { + final _ret = _lib._objc_msgSend_263(_id, _lib._sel_parserError1); + return _ret.address == 0 + ? null + : NSError._(_ret, _lib, retain: true, release: true); } - static NSRegularExpression new1(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSRegularExpression1, _lib._sel_new1); - return NSRegularExpression._(_ret, _lib, retain: false, release: true); + bool get shouldResolveExternalEntities { + return _lib._objc_msgSend_12(_id, _lib._sel_shouldResolveExternalEntities1); } - static NSRegularExpression alloc(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSRegularExpression1, _lib._sel_alloc1); - return NSRegularExpression._(_ret, _lib, retain: false, release: true); + set shouldResolveExternalEntities(bool value) { + return _lib._objc_msgSend_475( + _id, _lib._sel_setShouldResolveExternalEntities_1, value); + } + + NSString? get publicID { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_publicID1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get systemID { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_systemID1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + int get lineNumber { + return _lib._objc_msgSend_75(_id, _lib._sel_lineNumber1); + } + + int get columnNumber { + return _lib._objc_msgSend_75(_id, _lib._sel_columnNumber1); + } + + @override + NSXMLParser init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSXMLParser._(_ret, _lib, retain: true, release: true); + } + + static NSXMLParser new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLParser1, _lib._sel_new1); + return NSXMLParser._(_ret, _lib, retain: false, release: true); + } + + static NSXMLParser allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSXMLParser1, _lib._sel_allocWithZone_1, zone); + return NSXMLParser._(_ret, _lib, retain: false, release: true); + } + + static NSXMLParser alloc(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSXMLParser1, _lib._sel_alloc1); + return NSXMLParser._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSRegularExpression1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSXMLParser1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSRegularExpression1, + _lib._objc_msgSend_15(_lib._class_NSXMLParser1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSRegularExpression1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSXMLParser1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSRegularExpression1, _lib._sel_useStoredAccessor1); + _lib._class_NSXMLParser1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSRegularExpression1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSXMLParser1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSRegularExpression1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSRegularExpression1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSXMLParser1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71(_lib._class_NSRegularExpression1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_NSXMLParser1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSRegularExpression1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSXMLParser1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSRegularExpressionOptions { - static const int NSRegularExpressionCaseInsensitive = 1; - static const int NSRegularExpressionAllowCommentsAndWhitespace = 2; - static const int NSRegularExpressionIgnoreMetacharacters = 4; - static const int NSRegularExpressionDotMatchesLineSeparators = 8; - static const int NSRegularExpressionAnchorsMatchLines = 16; - static const int NSRegularExpressionUseUnixLineSeparators = 32; - static const int NSRegularExpressionUseUnicodeWordBoundaries = 64; +abstract class NSXMLParserExternalEntityResolvingPolicy { + static const int NSXMLParserResolveExternalEntitiesNever = 0; + static const int NSXMLParserResolveExternalEntitiesNoNetwork = 1; + static const int NSXMLParserResolveExternalEntitiesSameOriginOnly = 2; + static const int NSXMLParserResolveExternalEntitiesAlways = 3; } -abstract class NSMatchingOptions { - static const int NSMatchingReportProgress = 1; - static const int NSMatchingReportCompletion = 2; - static const int NSMatchingAnchored = 4; - static const int NSMatchingWithTransparentBounds = 8; - static const int NSMatchingWithoutAnchoringBounds = 16; -} +class NSURLSession extends NSObject { + NSURLSession._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); -void _ObjCBlock38_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.Int32 arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} + /// Returns a [NSURLSession] that points to the same underlying object as [other]. + static NSURLSession castFrom(T other) { + return NSURLSession._(other._id, other._lib, retain: true, release: true); + } -final _ObjCBlock38_closureRegistry = {}; -int _ObjCBlock38_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock38_registerClosure(Function fn) { - final id = ++_ObjCBlock38_closureRegistryIndex; - _ObjCBlock38_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + /// Returns a [NSURLSession] that wraps the given raw object pointer. + static NSURLSession castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLSession._(other, lib, retain: retain, release: release); + } -void _ObjCBlock38_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return _ObjCBlock38_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} + /// Returns whether [obj] is an instance of [NSURLSession]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLSession1); + } -class ObjCBlock38 extends _ObjCBlockBase { - ObjCBlock38._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); + static NSURLSession getSharedSession(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_883( + _lib._class_NSURLSession1, _lib._sel_sharedSession1); + return NSURLSession._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a C function pointer. - ObjCBlock38.fromFunctionPointer( - PedometerBindings lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Int32 arg1, ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Int32 arg1, - ffi.Pointer arg2)>( - _ObjCBlock38_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + static NSURLSession sessionWithConfiguration_( + PedometerBindings _lib, NSURLSessionConfiguration configuration) { + final _ret = _lib._objc_msgSend_899(_lib._class_NSURLSession1, + _lib._sel_sessionWithConfiguration_1, configuration._id); + return NSURLSession._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a Dart function. - ObjCBlock38.fromFunction( - PedometerBindings lib, - void Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Int32 arg1, - ffi.Pointer arg2)>( - _ObjCBlock38_closureTrampoline) - .cast(), - _ObjCBlock38_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call( - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Int32 arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + static NSURLSession sessionWithConfiguration_delegate_delegateQueue_( + PedometerBindings _lib, + NSURLSessionConfiguration configuration, + NSObject? delegate, + NSOperationQueue? queue) { + final _ret = _lib._objc_msgSend_900( + _lib._class_NSURLSession1, + _lib._sel_sessionWithConfiguration_delegate_delegateQueue_1, + configuration._id, + delegate?._id ?? ffi.nullptr, + queue?._id ?? ffi.nullptr); + return NSURLSession._(_ret, _lib, retain: true, release: true); } - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + NSOperationQueue get delegateQueue { + final _ret = _lib._objc_msgSend_767(_id, _lib._sel_delegateQueue1); + return NSOperationQueue._(_ret, _lib, retain: true, release: true); + } -abstract class NSMatchingFlags { - static const int NSMatchingProgress = 1; - static const int NSMatchingCompleted = 2; - static const int NSMatchingHitEnd = 4; - static const int NSMatchingRequiredEnd = 8; - static const int NSMatchingInternalError = 16; -} + NSObject? get delegate { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_delegate1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionConfiguration get configuration { + final _ret = _lib._objc_msgSend_884(_id, _lib._sel_configuration1); + return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + } + + NSString? get sessionDescription { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_sessionDescription1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set sessionDescription(NSString? value) { + return _lib._objc_msgSend_493( + _id, _lib._sel_setSessionDescription_1, value?._id ?? ffi.nullptr); + } + + void finishTasksAndInvalidate() { + _lib._objc_msgSend_1(_id, _lib._sel_finishTasksAndInvalidate1); + } + + void invalidateAndCancel() { + _lib._objc_msgSend_1(_id, _lib._sel_invalidateAndCancel1); + } + + void resetWithCompletionHandler_(ObjCBlock_ffiVoid completionHandler) { + _lib._objc_msgSend_480( + _id, _lib._sel_resetWithCompletionHandler_1, completionHandler._id); + } + + void flushWithCompletionHandler_(ObjCBlock_ffiVoid completionHandler) { + _lib._objc_msgSend_480( + _id, _lib._sel_flushWithCompletionHandler_1, completionHandler._id); + } + + void getTasksWithCompletionHandler_( + ObjCBlock_ffiVoid_NSArray_NSArray_NSArray completionHandler) { + _lib._objc_msgSend_901( + _id, _lib._sel_getTasksWithCompletionHandler_1, completionHandler._id); + } + + void getAllTasksWithCompletionHandler_( + ObjCBlock_ffiVoid_NSArray1 completionHandler) { + _lib._objc_msgSend_902(_id, _lib._sel_getAllTasksWithCompletionHandler_1, + completionHandler._id); + } + + NSURLSessionDataTask dataTaskWithRequest_(NSURLRequest request) { + final _ret = _lib._objc_msgSend_903( + _id, _lib._sel_dataTaskWithRequest_1, request._id); + return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); + } -class NSURLCache extends NSObject { - NSURLCache._(ffi.Pointer id, PedometerBindings lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSURLSessionDataTask dataTaskWithURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_904(_id, _lib._sel_dataTaskWithURL_1, url._id); + return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); + } - /// Returns a [NSURLCache] that points to the same underlying object as [other]. - static NSURLCache castFrom(T other) { - return NSURLCache._(other._id, other._lib, retain: true, release: true); + NSURLSessionUploadTask uploadTaskWithRequest_fromFile_( + NSURLRequest request, NSURL fileURL) { + final _ret = _lib._objc_msgSend_906(_id, + _lib._sel_uploadTaskWithRequest_fromFile_1, request._id, fileURL._id); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); } - /// Returns a [NSURLCache] that wraps the given raw object pointer. - static NSURLCache castFromPointer( - PedometerBindings lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLCache._(other, lib, retain: retain, release: release); + NSURLSessionUploadTask uploadTaskWithRequest_fromData_( + NSURLRequest request, NSData bodyData) { + final _ret = _lib._objc_msgSend_907(_id, + _lib._sel_uploadTaskWithRequest_fromData_1, request._id, bodyData._id); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); } - /// Returns whether [obj] is an instance of [NSURLCache]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLCache1); + /// Creates an upload task from a resume data blob. Requires the server to support the latest resumable uploads + /// Internet-Draft from the HTTP Working Group, found at + /// https://datatracker.ietf.org/doc/draft-ietf-httpbis-resumable-upload/ + /// If resuming from an upload file, the file must still exist and be unmodified. If the upload cannot be successfully + /// resumed, URLSession:task:didCompleteWithError: will be called. + /// + /// - Parameter resumeData: Resume data blob from an incomplete upload, such as data returned by the cancelByProducingResumeData: method. + /// - Returns: A new session upload task, or nil if the resumeData is invalid. + NSURLSessionUploadTask uploadTaskWithResumeData_(NSData resumeData) { + final _ret = _lib._objc_msgSend_908( + _id, _lib._sel_uploadTaskWithResumeData_1, resumeData._id); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); } - /// ! - /// @property sharedURLCache - /// @abstract Returns the shared NSURLCache instance or - /// sets the NSURLCache instance shared by all clients of - /// the current process. This will be the new object returned when - /// calls to the sharedURLCache method are made. - /// @discussion Unless set explicitly through a call to - /// +setSharedURLCache:, this method returns an NSURLCache - /// instance created with the following default values: - ///

    - ///
  • Memory capacity: 4 megabytes (4 * 1024 * 1024 bytes) - ///
  • Disk capacity: 20 megabytes (20 * 1024 * 1024 bytes) - ///
  • Disk path: (user home directory)/Library/Caches/(application bundle id) - ///
- ///

Users who do not have special caching requirements or - /// constraints should find the default shared cache instance - /// acceptable. If this default shared cache instance is not - /// acceptable, +setSharedURLCache: can be called to set a - /// different NSURLCache instance to be returned from this method. - /// Callers should take care to ensure that the setter is called - /// at a time when no other caller has a reference to the previously-set - /// shared URL cache. This is to prevent storing cache data from - /// becoming unexpectedly unretrievable. - /// @result the shared NSURLCache instance. - static NSURLCache? getSharedURLCache(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_775( - _lib._class_NSURLCache1, _lib._sel_sharedURLCache1); - return _ret.address == 0 - ? null - : NSURLCache._(_ret, _lib, retain: true, release: true); + NSURLSessionUploadTask uploadTaskWithStreamedRequest_(NSURLRequest request) { + final _ret = _lib._objc_msgSend_909( + _id, _lib._sel_uploadTaskWithStreamedRequest_1, request._id); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); } - /// ! - /// @property sharedURLCache - /// @abstract Returns the shared NSURLCache instance or - /// sets the NSURLCache instance shared by all clients of - /// the current process. This will be the new object returned when - /// calls to the sharedURLCache method are made. - /// @discussion Unless set explicitly through a call to - /// +setSharedURLCache:, this method returns an NSURLCache - /// instance created with the following default values: - ///

    - ///
  • Memory capacity: 4 megabytes (4 * 1024 * 1024 bytes) - ///
  • Disk capacity: 20 megabytes (20 * 1024 * 1024 bytes) - ///
  • Disk path: (user home directory)/Library/Caches/(application bundle id) - ///
- ///

Users who do not have special caching requirements or - /// constraints should find the default shared cache instance - /// acceptable. If this default shared cache instance is not - /// acceptable, +setSharedURLCache: can be called to set a - /// different NSURLCache instance to be returned from this method. - /// Callers should take care to ensure that the setter is called - /// at a time when no other caller has a reference to the previously-set - /// shared URL cache. This is to prevent storing cache data from - /// becoming unexpectedly unretrievable. - /// @result the shared NSURLCache instance. - static void setSharedURLCache(PedometerBindings _lib, NSURLCache? value) { - _lib._objc_msgSend_776(_lib._class_NSURLCache1, - _lib._sel_setSharedURLCache_1, value?._id ?? ffi.nullptr); + NSURLSessionDownloadTask downloadTaskWithRequest_(NSURLRequest request) { + final _ret = _lib._objc_msgSend_910( + _id, _lib._sel_downloadTaskWithRequest_1, request._id); + return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } - /// ! - /// @method initWithMemoryCapacity:diskCapacity:diskPath: - /// @abstract Initializes an NSURLCache with the given capacity and - /// path. - /// @discussion The returned NSURLCache is backed by disk, so - /// developers can be more liberal with space when choosing the - /// capacity for this kind of cache. A disk cache measured in the tens - /// of megabytes should be acceptable in most cases. - /// @param memoryCapacity the capacity, measured in bytes, for the cache in memory. - /// @param diskCapacity the capacity, measured in bytes, for the cache on disk. - /// @param path the path on disk where the cache data is stored. - /// @result an initialized NSURLCache, with the given capacity, backed - /// by disk. - NSURLCache initWithMemoryCapacity_diskCapacity_diskPath_( - int memoryCapacity, int diskCapacity, NSString? path) { - final _ret = _lib._objc_msgSend_777( - _id, - _lib._sel_initWithMemoryCapacity_diskCapacity_diskPath_1, - memoryCapacity, - diskCapacity, - path?._id ?? ffi.nullptr); - return NSURLCache._(_ret, _lib, retain: true, release: true); + NSURLSessionDownloadTask downloadTaskWithURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_911(_id, _lib._sel_downloadTaskWithURL_1, url._id); + return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } - /// ! - /// @method initWithMemoryCapacity:diskCapacity:directoryURL: - /// @abstract Initializes an NSURLCache with the given capacity and directory. - /// @param memoryCapacity the capacity, measured in bytes, for the cache in memory. Or 0 to disable memory cache. - /// @param diskCapacity the capacity, measured in bytes, for the cache on disk. Or 0 to disable disk cache. - /// @param directoryURL the path to a directory on disk where the cache data is stored. Or nil for default directory. - /// @result an initialized NSURLCache, with the given capacity, optionally backed by disk. - NSURLCache initWithMemoryCapacity_diskCapacity_directoryURL_( - int memoryCapacity, int diskCapacity, NSURL? directoryURL) { - final _ret = _lib._objc_msgSend_778( - _id, - _lib._sel_initWithMemoryCapacity_diskCapacity_directoryURL_1, - memoryCapacity, - diskCapacity, - directoryURL?._id ?? ffi.nullptr); - return NSURLCache._(_ret, _lib, retain: true, release: true); + NSURLSessionDownloadTask downloadTaskWithResumeData_(NSData resumeData) { + final _ret = _lib._objc_msgSend_912( + _id, _lib._sel_downloadTaskWithResumeData_1, resumeData._id); + return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } - /// ! - /// @method cachedResponseForRequest: - /// @abstract Returns the NSCachedURLResponse stored in the cache with - /// the given request. - /// @discussion The method returns nil if there is no - /// NSCachedURLResponse stored using the given request. - /// @param request the NSURLRequest to use as a key for the lookup. - /// @result The NSCachedURLResponse stored in the cache with the given - /// request, or nil if there is no NSCachedURLResponse stored with the - /// given request. - NSCachedURLResponse cachedResponseForRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_782( - _id, _lib._sel_cachedResponseForRequest_1, request?._id ?? ffi.nullptr); - return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); + NSURLSessionStreamTask streamTaskWithHostName_port_( + NSString hostname, int port) { + final _ret = _lib._objc_msgSend_915( + _id, _lib._sel_streamTaskWithHostName_port_1, hostname._id, port); + return NSURLSessionStreamTask._(_ret, _lib, retain: true, release: true); } - /// ! - /// @method storeCachedResponse:forRequest: - /// @abstract Stores the given NSCachedURLResponse in the cache using - /// the given request. - /// @param cachedResponse The cached response to store. - /// @param request the NSURLRequest to use as a key for the storage. - void storeCachedResponse_forRequest_( - NSCachedURLResponse? cachedResponse, NSURLRequest? request) { - return _lib._objc_msgSend_783( - _id, - _lib._sel_storeCachedResponse_forRequest_1, - cachedResponse?._id ?? ffi.nullptr, - request?._id ?? ffi.nullptr); + NSURLSessionStreamTask streamTaskWithNetService_(NSNetService service) { + final _ret = _lib._objc_msgSend_923( + _id, _lib._sel_streamTaskWithNetService_1, service._id); + return NSURLSessionStreamTask._(_ret, _lib, retain: true, release: true); } - /// ! - /// @method removeCachedResponseForRequest: - /// @abstract Removes the NSCachedURLResponse from the cache that is - /// stored using the given request. - /// @discussion No action is taken if there is no NSCachedURLResponse - /// stored with the given request. - /// @param request the NSURLRequest to use as a key for the lookup. - void removeCachedResponseForRequest_(NSURLRequest? request) { - return _lib._objc_msgSend_784( - _id, - _lib._sel_removeCachedResponseForRequest_1, - request?._id ?? ffi.nullptr); + NSURLSessionWebSocketTask webSocketTaskWithURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_930(_id, _lib._sel_webSocketTaskWithURL_1, url._id); + return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); } - /// ! - /// @method removeAllCachedResponses - /// @abstract Clears the given cache, removing all NSCachedURLResponse - /// objects that it stores. - void removeAllCachedResponses() { - return _lib._objc_msgSend_1(_id, _lib._sel_removeAllCachedResponses1); + NSURLSessionWebSocketTask webSocketTaskWithURL_protocols_( + NSURL url, NSArray protocols) { + final _ret = _lib._objc_msgSend_931(_id, + _lib._sel_webSocketTaskWithURL_protocols_1, url._id, protocols._id); + return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); } - /// ! - /// @method removeCachedResponsesSince: - /// @abstract Clears the given cache of any cached responses since the provided date. - void removeCachedResponsesSinceDate_(NSDate? date) { - return _lib._objc_msgSend_465(_id, - _lib._sel_removeCachedResponsesSinceDate_1, date?._id ?? ffi.nullptr); + NSURLSessionWebSocketTask webSocketTaskWithRequest_(NSURLRequest request) { + final _ret = _lib._objc_msgSend_932( + _id, _lib._sel_webSocketTaskWithRequest_1, request._id); + return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); } - /// ! - /// @abstract In-memory capacity of the receiver. - /// @discussion At the time this call is made, the in-memory cache will truncate its contents to the size given, if necessary. - /// @result The in-memory capacity, measured in bytes, for the receiver. - int get memoryCapacity { - return _lib._objc_msgSend_10(_id, _lib._sel_memoryCapacity1); + @override + NSURLSession init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLSession._(_ret, _lib, retain: true, release: true); } - /// ! - /// @abstract In-memory capacity of the receiver. - /// @discussion At the time this call is made, the in-memory cache will truncate its contents to the size given, if necessary. - /// @result The in-memory capacity, measured in bytes, for the receiver. - set memoryCapacity(int value) { - _lib._objc_msgSend_444(_id, _lib._sel_setMemoryCapacity_1, value); + static NSURLSession new1(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLSession1, _lib._sel_new1); + return NSURLSession._(_ret, _lib, retain: false, release: true); } - /// ! - /// @abstract The on-disk capacity of the receiver. - /// @discussion The on-disk capacity, measured in bytes, for the receiver. On mutation the on-disk cache will truncate its contents to the size given, if necessary. - int get diskCapacity { - return _lib._objc_msgSend_10(_id, _lib._sel_diskCapacity1); + NSURLSessionDataTask dataTaskWithRequest_completionHandler_( + NSURLRequest request, + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_933( + _id, + _lib._sel_dataTaskWithRequest_completionHandler_1, + request._id, + completionHandler._id); + return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); } - /// ! - /// @abstract The on-disk capacity of the receiver. - /// @discussion The on-disk capacity, measured in bytes, for the receiver. On mutation the on-disk cache will truncate its contents to the size given, if necessary. - set diskCapacity(int value) { - _lib._objc_msgSend_444(_id, _lib._sel_setDiskCapacity_1, value); + NSURLSessionDataTask dataTaskWithURL_completionHandler_(NSURL url, + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_934( + _id, + _lib._sel_dataTaskWithURL_completionHandler_1, + url._id, + completionHandler._id); + return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); } - /// ! - /// @abstract Returns the current amount of space consumed by the - /// in-memory cache of the receiver. - /// @discussion This size, measured in bytes, indicates the current - /// usage of the in-memory cache. - /// @result the current usage of the in-memory cache of the receiver. - int get currentMemoryUsage { - return _lib._objc_msgSend_10(_id, _lib._sel_currentMemoryUsage1); + NSURLSessionUploadTask uploadTaskWithRequest_fromFile_completionHandler_( + NSURLRequest request, + NSURL fileURL, + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_935( + _id, + _lib._sel_uploadTaskWithRequest_fromFile_completionHandler_1, + request._id, + fileURL._id, + completionHandler._id); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); } - /// ! - /// @abstract Returns the current amount of space consumed by the - /// on-disk cache of the receiver. - /// @discussion This size, measured in bytes, indicates the current - /// usage of the on-disk cache. - /// @result the current usage of the on-disk cache of the receiver. - int get currentDiskUsage { - return _lib._objc_msgSend_10(_id, _lib._sel_currentDiskUsage1); + NSURLSessionUploadTask uploadTaskWithRequest_fromData_completionHandler_( + NSURLRequest request, + NSData? bodyData, + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_936( + _id, + _lib._sel_uploadTaskWithRequest_fromData_completionHandler_1, + request._id, + bodyData?._id ?? ffi.nullptr, + completionHandler._id); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); } - void storeCachedResponse_forDataTask_( - NSCachedURLResponse? cachedResponse, NSURLSessionDataTask? dataTask) { - return _lib._objc_msgSend_785( + /// Creates a URLSessionUploadTask from a resume data blob. If resuming from an upload + /// file, the file must still exist and be unmodified. + /// + /// - Parameter resumeData: Resume data blob from an incomplete upload, such as data returned by the cancelByProducingResumeData: method. + /// - Parameter completionHandler: The completion handler to call when the load request is complete. + /// - Returns: A new session upload task, or nil if the resumeData is invalid. + NSURLSessionUploadTask uploadTaskWithResumeData_completionHandler_( + NSData resumeData, + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_937( _id, - _lib._sel_storeCachedResponse_forDataTask_1, - cachedResponse?._id ?? ffi.nullptr, - dataTask?._id ?? ffi.nullptr); + _lib._sel_uploadTaskWithResumeData_completionHandler_1, + resumeData._id, + completionHandler._id); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); } - void getCachedResponseForDataTask_completionHandler_( - NSURLSessionDataTask? dataTask, ObjCBlock39 completionHandler) { - return _lib._objc_msgSend_786( + NSURLSessionDownloadTask downloadTaskWithRequest_completionHandler_( + NSURLRequest request, + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_938( _id, - _lib._sel_getCachedResponseForDataTask_completionHandler_1, - dataTask?._id ?? ffi.nullptr, + _lib._sel_downloadTaskWithRequest_completionHandler_1, + request._id, + completionHandler._id); + return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionDownloadTask downloadTaskWithURL_completionHandler_(NSURL url, + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_939( + _id, + _lib._sel_downloadTaskWithURL_completionHandler_1, + url._id, completionHandler._id); + return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } - void removeCachedResponseForDataTask_(NSURLSessionDataTask? dataTask) { - return _lib._objc_msgSend_787( + NSURLSessionDownloadTask downloadTaskWithResumeData_completionHandler_( + NSData resumeData, + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_940( _id, - _lib._sel_removeCachedResponseForDataTask_1, - dataTask?._id ?? ffi.nullptr); + _lib._sel_downloadTaskWithResumeData_completionHandler_1, + resumeData._id, + completionHandler._id); + return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } - static NSURLCache new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLCache1, _lib._sel_new1); - return NSURLCache._(_ret, _lib, retain: false, release: true); + static NSURLSession allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLSession1, _lib._sel_allocWithZone_1, zone); + return NSURLSession._(_ret, _lib, retain: false, release: true); } - static NSURLCache alloc(PedometerBindings _lib) { + static NSURLSession alloc(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLCache1, _lib._sel_alloc1); - return NSURLCache._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSURLSession1, _lib._sel_alloc1); + return NSURLSession._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURLCache1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSURLSession1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLCache1, + _lib._objc_msgSend_15(_lib._class_NSURLSession1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLCache1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSURLSession1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLCache1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLSession1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSURLCache1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSURLSession1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSURLCache1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSURLCache1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSURLSession1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSURLCache1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_NSURLSession1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLCache1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSURLSession1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -/// ! -/// @class NSCachedURLResponse -/// NSCachedURLResponse is a class whose objects functions as a wrapper for -/// objects that are stored in the framework's caching system. -/// It is used to maintain characteristics and attributes of a cached -/// object. -class NSCachedURLResponse extends NSObject { - NSCachedURLResponse._(ffi.Pointer id, PedometerBindings lib, +class NSURLSessionConfiguration extends NSObject { + NSURLSessionConfiguration._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSCachedURLResponse] that points to the same underlying object as [other]. - static NSCachedURLResponse castFrom(T other) { - return NSCachedURLResponse._(other._id, other._lib, + /// Returns a [NSURLSessionConfiguration] that points to the same underlying object as [other]. + static NSURLSessionConfiguration castFrom(T other) { + return NSURLSessionConfiguration._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSCachedURLResponse] that wraps the given raw object pointer. - static NSCachedURLResponse castFromPointer( + /// Returns a [NSURLSessionConfiguration] that wraps the given raw object pointer. + static NSURLSessionConfiguration castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSCachedURLResponse._(other, lib, retain: retain, release: release); + return NSURLSessionConfiguration._(other, lib, + retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSCachedURLResponse]. + /// Returns whether [obj] is an instance of [NSURLSessionConfiguration]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSCachedURLResponse1); + obj._lib._class_NSURLSessionConfiguration1); } - /// ! - /// @method initWithResponse:data - /// @abstract Initializes an NSCachedURLResponse with the given - /// response and data. - /// @discussion A default NSURLCacheStoragePolicy is used for - /// NSCachedURLResponse objects initialized with this method: - /// NSURLCacheStorageAllowed. - /// @param response a NSURLResponse object. - /// @param data an NSData object representing the URL content - /// corresponding to the given response. - /// @result an initialized NSCachedURLResponse. - NSCachedURLResponse initWithResponse_data_( - NSURLResponse? response, NSData? data) { - final _ret = _lib._objc_msgSend_779(_id, _lib._sel_initWithResponse_data_1, - response?._id ?? ffi.nullptr, data?._id ?? ffi.nullptr); - return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); + static NSURLSessionConfiguration getDefaultSessionConfiguration( + PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_884(_lib._class_NSURLSessionConfiguration1, + _lib._sel_defaultSessionConfiguration1); + return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); } - /// ! - /// @method initWithResponse:data:userInfo:storagePolicy: - /// @abstract Initializes an NSCachedURLResponse with the given - /// response, data, user-info dictionary, and storage policy. - /// @param response a NSURLResponse object. - /// @param data an NSData object representing the URL content - /// corresponding to the given response. - /// @param userInfo a dictionary user-specified information to be - /// stored with the NSCachedURLResponse. - /// @param storagePolicy an NSURLCacheStoragePolicy constant. - /// @result an initialized NSCachedURLResponse. - NSCachedURLResponse initWithResponse_data_userInfo_storagePolicy_( - NSURLResponse? response, - NSData? data, - NSDictionary? userInfo, - int storagePolicy) { - final _ret = _lib._objc_msgSend_780( - _id, - _lib._sel_initWithResponse_data_userInfo_storagePolicy_1, - response?._id ?? ffi.nullptr, - data?._id ?? ffi.nullptr, - userInfo?._id ?? ffi.nullptr, - storagePolicy); - return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); + static NSURLSessionConfiguration getEphemeralSessionConfiguration( + PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_884(_lib._class_NSURLSessionConfiguration1, + _lib._sel_ephemeralSessionConfiguration1); + return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); } - /// ! - /// @abstract Returns the response wrapped by this instance. - /// @result The response wrapped by this instance. - NSURLResponse? get response { - final _ret = _lib._objc_msgSend_694(_id, _lib._sel_response1); - return _ret.address == 0 - ? null - : NSURLResponse._(_ret, _lib, retain: true, release: true); + static NSURLSessionConfiguration + backgroundSessionConfigurationWithIdentifier_( + PedometerBindings _lib, NSString identifier) { + final _ret = _lib._objc_msgSend_885( + _lib._class_NSURLSessionConfiguration1, + _lib._sel_backgroundSessionConfigurationWithIdentifier_1, + identifier._id); + return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); } - /// ! - /// @abstract Returns the data of the receiver. - /// @result The data of the receiver. - NSData? get data { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_data1); + NSString? get identifier { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_identifier1); return _ret.address == 0 ? null - : NSData._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - /// ! - /// @abstract Returns the userInfo dictionary of the receiver. - /// @result The userInfo dictionary of the receiver. - NSDictionary? get userInfo { - final _ret = _lib._objc_msgSend_324(_id, _lib._sel_userInfo1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + int get requestCachePolicy { + return _lib._objc_msgSend_713(_id, _lib._sel_requestCachePolicy1); } - /// ! - /// @abstract Returns the NSURLCacheStoragePolicy constant of the receiver. - /// @result The NSURLCacheStoragePolicy constant of the receiver. - int get storagePolicy { - return _lib._objc_msgSend_781(_id, _lib._sel_storagePolicy1); + set requestCachePolicy(int value) { + return _lib._objc_msgSend_867( + _id, _lib._sel_setRequestCachePolicy_1, value); } - static NSCachedURLResponse new1(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSCachedURLResponse1, _lib._sel_new1); - return NSCachedURLResponse._(_ret, _lib, retain: false, release: true); + double get timeoutIntervalForRequest { + return _lib._objc_msgSend_156(_id, _lib._sel_timeoutIntervalForRequest1); } - static NSCachedURLResponse alloc(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSCachedURLResponse1, _lib._sel_alloc1); - return NSCachedURLResponse._(_ret, _lib, retain: false, release: true); + set timeoutIntervalForRequest(double value) { + return _lib._objc_msgSend_490( + _id, _lib._sel_setTimeoutIntervalForRequest_1, value); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - PedometerBindings _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSCachedURLResponse1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + double get timeoutIntervalForResource { + return _lib._objc_msgSend_156(_id, _lib._sel_timeoutIntervalForResource1); } - static void cancelPreviousPerformRequestsWithTarget_( - PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSCachedURLResponse1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + set timeoutIntervalForResource(double value) { + return _lib._objc_msgSend_490( + _id, _lib._sel_setTimeoutIntervalForResource_1, value); } - static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSCachedURLResponse1, - _lib._sel_accessInstanceVariablesDirectly1); + int get networkServiceType { + return _lib._objc_msgSend_714(_id, _lib._sel_networkServiceType1); } - static bool useStoredAccessor(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSCachedURLResponse1, _lib._sel_useStoredAccessor1); + set networkServiceType(int value) { + return _lib._objc_msgSend_868( + _id, _lib._sel_setNetworkServiceType_1, value); } - static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSCachedURLResponse1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + bool get allowsCellularAccess { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsCellularAccess1); } - static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSCachedURLResponse1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + set allowsCellularAccess(bool value) { + return _lib._objc_msgSend_475( + _id, _lib._sel_setAllowsCellularAccess_1, value); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSCachedURLResponse1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + bool get allowsExpensiveNetworkAccess { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsExpensiveNetworkAccess1); } - static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71(_lib._class_NSCachedURLResponse1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + set allowsExpensiveNetworkAccess(bool value) { + return _lib._objc_msgSend_475( + _id, _lib._sel_setAllowsExpensiveNetworkAccess_1, value); } - static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSCachedURLResponse1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + bool get allowsConstrainedNetworkAccess { + return _lib._objc_msgSend_12( + _id, _lib._sel_allowsConstrainedNetworkAccess1); } -} -/// ! -/// @enum NSURLCacheStoragePolicy -/// -/// @discussion The NSURLCacheStoragePolicy enum defines constants that -/// can be used to specify the type of storage that is allowable for an -/// NSCachedURLResponse object that is to be stored in an NSURLCache. -/// -/// @constant NSURLCacheStorageAllowed Specifies that storage in an -/// NSURLCache is allowed without restriction. -/// -/// @constant NSURLCacheStorageAllowedInMemoryOnly Specifies that -/// storage in an NSURLCache is allowed; however storage should be -/// done in memory only, no disk storage should be done. -/// -/// @constant NSURLCacheStorageNotAllowed Specifies that storage in an -/// NSURLCache is not allowed in any fashion, either in memory or on -/// disk. -abstract class NSURLCacheStoragePolicy { - static const int NSURLCacheStorageAllowed = 0; - static const int NSURLCacheStorageAllowedInMemoryOnly = 1; - static const int NSURLCacheStorageNotAllowed = 2; -} + set allowsConstrainedNetworkAccess(bool value) { + return _lib._objc_msgSend_475( + _id, _lib._sel_setAllowsConstrainedNetworkAccess_1, value); + } -class NSURLSessionDataTask extends NSURLSessionTask { - NSURLSessionDataTask._(ffi.Pointer id, PedometerBindings lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + bool get requiresDNSSECValidation { + return _lib._objc_msgSend_12(_id, _lib._sel_requiresDNSSECValidation1); + } - /// Returns a [NSURLSessionDataTask] that points to the same underlying object as [other]. - static NSURLSessionDataTask castFrom(T other) { - return NSURLSessionDataTask._(other._id, other._lib, - retain: true, release: true); + set requiresDNSSECValidation(bool value) { + return _lib._objc_msgSend_475( + _id, _lib._sel_setRequiresDNSSECValidation_1, value); } - /// Returns a [NSURLSessionDataTask] that wraps the given raw object pointer. - static NSURLSessionDataTask castFromPointer( - PedometerBindings lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLSessionDataTask._(other, lib, retain: retain, release: release); + bool get waitsForConnectivity { + return _lib._objc_msgSend_12(_id, _lib._sel_waitsForConnectivity1); } - /// Returns whether [obj] is an instance of [NSURLSessionDataTask]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLSessionDataTask1); + set waitsForConnectivity(bool value) { + return _lib._objc_msgSend_475( + _id, _lib._sel_setWaitsForConnectivity_1, value); } - @override - NSURLSessionDataTask init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); + bool get discretionary { + return _lib._objc_msgSend_12(_id, _lib._sel_isDiscretionary1); } - static NSURLSessionDataTask new1(PedometerBindings _lib) { + set discretionary(bool value) { + return _lib._objc_msgSend_475(_id, _lib._sel_setDiscretionary_1, value); + } + + NSString? get sharedContainerIdentifier { final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLSessionDataTask1, _lib._sel_new1); - return NSURLSessionDataTask._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_44(_id, _lib._sel_sharedContainerIdentifier1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set sharedContainerIdentifier(NSString? value) { + return _lib._objc_msgSend_493(_id, _lib._sel_setSharedContainerIdentifier_1, + value?._id ?? ffi.nullptr); } - static NSURLSessionDataTask alloc(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionDataTask1, _lib._sel_alloc1); - return NSURLSessionDataTask._(_ret, _lib, retain: false, release: true); + bool get sessionSendsLaunchEvents { + return _lib._objc_msgSend_12(_id, _lib._sel_sessionSendsLaunchEvents1); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - PedometerBindings _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURLSessionDataTask1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + set sessionSendsLaunchEvents(bool value) { + return _lib._objc_msgSend_475( + _id, _lib._sel_setSessionSendsLaunchEvents_1, value); } - static void cancelPreviousPerformRequestsWithTarget_( - PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSessionDataTask1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + NSDictionary? get connectionProxyDictionary { + final _ret = + _lib._objc_msgSend_340(_id, _lib._sel_connectionProxyDictionary1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionDataTask1, - _lib._sel_accessInstanceVariablesDirectly1); + set connectionProxyDictionary(NSDictionary? value) { + return _lib._objc_msgSend_870(_id, _lib._sel_setConnectionProxyDictionary_1, + value?._id ?? ffi.nullptr); } - static bool useStoredAccessor(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLSessionDataTask1, _lib._sel_useStoredAccessor1); + int get TLSMinimumSupportedProtocol { + return _lib._objc_msgSend_886(_id, _lib._sel_TLSMinimumSupportedProtocol1); } - static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSURLSessionDataTask1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + set TLSMinimumSupportedProtocol(int value) { + return _lib._objc_msgSend_887( + _id, _lib._sel_setTLSMinimumSupportedProtocol_1, value); } - static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSURLSessionDataTask1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + int get TLSMaximumSupportedProtocol { + return _lib._objc_msgSend_886(_id, _lib._sel_TLSMaximumSupportedProtocol1); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSURLSessionDataTask1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + set TLSMaximumSupportedProtocol(int value) { + return _lib._objc_msgSend_887( + _id, _lib._sel_setTLSMaximumSupportedProtocol_1, value); } - static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71(_lib._class_NSURLSessionDataTask1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + int get TLSMinimumSupportedProtocolVersion { + return _lib._objc_msgSend_888( + _id, _lib._sel_TLSMinimumSupportedProtocolVersion1); } - static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionDataTask1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + set TLSMinimumSupportedProtocolVersion(int value) { + return _lib._objc_msgSend_889( + _id, _lib._sel_setTLSMinimumSupportedProtocolVersion_1, value); } -} -void _ObjCBlock39_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} + int get TLSMaximumSupportedProtocolVersion { + return _lib._objc_msgSend_888( + _id, _lib._sel_TLSMaximumSupportedProtocolVersion1); + } -final _ObjCBlock39_closureRegistry = {}; -int _ObjCBlock39_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock39_registerClosure(Function fn) { - final id = ++_ObjCBlock39_closureRegistryIndex; - _ObjCBlock39_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + set TLSMaximumSupportedProtocolVersion(int value) { + return _lib._objc_msgSend_889( + _id, _lib._sel_setTLSMaximumSupportedProtocolVersion_1, value); + } -void _ObjCBlock39_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock39_closureRegistry[block.ref.target.address]!(arg0); -} + bool get HTTPShouldUsePipelining { + return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldUsePipelining1); + } -class ObjCBlock39 extends _ObjCBlockBase { - ObjCBlock39._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); + set HTTPShouldUsePipelining(bool value) { + return _lib._objc_msgSend_475( + _id, _lib._sel_setHTTPShouldUsePipelining_1, value); + } - /// Creates a block from a C function pointer. - ObjCBlock39.fromFunctionPointer( - PedometerBindings lib, - ffi.Pointer< - ffi - .NativeFunction arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock39_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + bool get HTTPShouldSetCookies { + return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldSetCookies1); + } - /// Creates a block from a Dart function. - ObjCBlock39.fromFunction( - PedometerBindings lib, void Function(ffi.Pointer arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock39_closureTrampoline) - .cast(), - _ObjCBlock39_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); + set HTTPShouldSetCookies(bool value) { + return _lib._objc_msgSend_475( + _id, _lib._sel_setHTTPShouldSetCookies_1, value); } - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + int get HTTPCookieAcceptPolicy { + return _lib._objc_msgSend_709(_id, _lib._sel_HTTPCookieAcceptPolicy1); + } -/// ! -/// @class NSURLConnection -/// -/// @abstract An NSURLConnection object provides support to perform -/// asynchronous loads of a URL request, providing data to a -/// client supplied delegate. -/// -/// @discussion The interface for NSURLConnection is very sparse, providing -/// only the controls to start and cancel asynchronous loads of a -/// URL request.

-/// -/// An NSURLConnection may be used for loading of resource data -/// directly to memory, in which case an -/// NSURLConnectionDataDelegate should be supplied, or for -/// downloading of resource data directly to a file, in which case -/// an NSURLConnectionDownloadDelegate is used. The delegate is -/// retained by the NSURLConnection until a terminal condition is -/// encountered. These two delegates are logically subclasses of -/// the base protocol, NSURLConnectionDelegate.

-/// -/// A terminal condition produced by the loader will result in a -/// connection:didFailWithError: in the case of an error, or -/// connectionDidFinishLoading: or connectionDidFinishDownloading: -/// delegate message.

-/// -/// The -cancel message hints to the loader that a resource load -/// should be abandoned but does not guarantee that more delegate -/// messages will not be delivered. If -cancel does cause the -/// load to be abandoned, the delegate will be released without -/// further messages. In general, a caller should be prepared for -/// -cancel to have no effect, and internally ignore any delegate -/// callbacks until the delegate is released. -/// -/// Scheduling of an NSURLConnection specifies the context in -/// which delegate callbacks will be made, but the actual IO may -/// occur on a separate thread and should be considered an -/// implementation detail.

-/// -/// When created, an NSURLConnection performs a deep-copy of the -/// NSURLRequest. This copy is available through the -/// -originalRequest method. As the connection performs the load, -/// this request may change as a result of protocol -/// canonicalization or due to following redirects. -/// -currentRequest can be used to retrieve this value.

-/// -/// An NSURLConnections created with the -/// +connectionWithRequest:delegate: or -initWithRequest:delegate: -/// methods are scheduled on the current runloop immediately, and -/// it is not necessary to send the -start message to begin the -/// resource load.

-/// -/// NSURLConnections created with -/// -initWithRequest:delegate:startImmediately: are not -/// automatically scheduled. Use -scheduleWithRunLoop:forMode: or -/// -setDelegateQueue: to specify the context for delegate -/// callbacks, and -start to begin the load. If you do not -/// explicitly schedule the connection before -start, it will be -/// scheduled on the current runloop and mode automatically.

-/// -/// The NSURLConnectionSynchronousLoading category adds -/// +sendSynchronousRequest:returningResponse:error, which blocks -/// the current thread until the resource data is available or an -/// error occurs. It should be noted that using this method on an -/// applications main run loop may result in an unacceptably long -/// delay in a user interface and its use is strongly -/// discourage.

-/// -/// The NSURLConnectionQueuedLoading category implements -/// +sendAsynchronousRequest:queue:completionHandler, providing -/// similar simplicity but provides a mechanism where the current -/// runloop is not blocked.

-/// -/// Both of the immediate loading categories do not provide for -/// customization of resource load, and do not allow the caller to -/// respond to, e.g., authentication challenges.

-class NSURLConnection extends NSObject { - NSURLConnection._(ffi.Pointer id, PedometerBindings lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + set HTTPCookieAcceptPolicy(int value) { + return _lib._objc_msgSend_710( + _id, _lib._sel_setHTTPCookieAcceptPolicy_1, value); + } - /// Returns a [NSURLConnection] that points to the same underlying object as [other]. - static NSURLConnection castFrom(T other) { - return NSURLConnection._(other._id, other._lib, - retain: true, release: true); + NSDictionary? get HTTPAdditionalHeaders { + final _ret = _lib._objc_msgSend_340(_id, _lib._sel_HTTPAdditionalHeaders1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - /// Returns a [NSURLConnection] that wraps the given raw object pointer. - static NSURLConnection castFromPointer( - PedometerBindings lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLConnection._(other, lib, retain: retain, release: release); + set HTTPAdditionalHeaders(NSDictionary? value) { + return _lib._objc_msgSend_870( + _id, _lib._sel_setHTTPAdditionalHeaders_1, value?._id ?? ffi.nullptr); } - /// Returns whether [obj] is an instance of [NSURLConnection]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLConnection1); + int get HTTPMaximumConnectionsPerHost { + return _lib._objc_msgSend_75(_id, _lib._sel_HTTPMaximumConnectionsPerHost1); } - NSURLConnection initWithRequest_delegate_startImmediately_( - NSURLRequest? request, NSObject delegate, bool startImmediately) { - final _ret = _lib._objc_msgSend_788( - _id, - _lib._sel_initWithRequest_delegate_startImmediately_1, - request?._id ?? ffi.nullptr, - delegate._id, - startImmediately); - return NSURLConnection._(_ret, _lib, retain: true, release: true); + set HTTPMaximumConnectionsPerHost(int value) { + return _lib._objc_msgSend_626( + _id, _lib._sel_setHTTPMaximumConnectionsPerHost_1, value); } - NSURLConnection initWithRequest_delegate_( - NSURLRequest? request, NSObject delegate) { - final _ret = _lib._objc_msgSend_789( - _id, - _lib._sel_initWithRequest_delegate_1, - request?._id ?? ffi.nullptr, - delegate._id); - return NSURLConnection._(_ret, _lib, retain: true, release: true); + NSHTTPCookieStorage? get HTTPCookieStorage { + final _ret = _lib._objc_msgSend_890(_id, _lib._sel_HTTPCookieStorage1); + return _ret.address == 0 + ? null + : NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); } - static NSURLConnection connectionWithRequest_delegate_( - PedometerBindings _lib, NSURLRequest? request, NSObject delegate) { - final _ret = _lib._objc_msgSend_790( - _lib._class_NSURLConnection1, - _lib._sel_connectionWithRequest_delegate_1, - request?._id ?? ffi.nullptr, - delegate._id); - return NSURLConnection._(_ret, _lib, retain: true, release: true); + set HTTPCookieStorage(NSHTTPCookieStorage? value) { + return _lib._objc_msgSend_891( + _id, _lib._sel_setHTTPCookieStorage_1, value?._id ?? ffi.nullptr); } - NSURLRequest? get originalRequest { - final _ret = _lib._objc_msgSend_692(_id, _lib._sel_originalRequest1); + NSURLCredentialStorage? get URLCredentialStorage { + final _ret = _lib._objc_msgSend_892(_id, _lib._sel_URLCredentialStorage1); return _ret.address == 0 ? null - : NSURLRequest._(_ret, _lib, retain: true, release: true); + : NSURLCredentialStorage._(_ret, _lib, retain: true, release: true); } - NSURLRequest? get currentRequest { - final _ret = _lib._objc_msgSend_692(_id, _lib._sel_currentRequest1); + set URLCredentialStorage(NSURLCredentialStorage? value) { + return _lib._objc_msgSend_893( + _id, _lib._sel_setURLCredentialStorage_1, value?._id ?? ffi.nullptr); + } + + NSURLCache? get URLCache { + final _ret = _lib._objc_msgSend_894(_id, _lib._sel_URLCache1); return _ret.address == 0 ? null - : NSURLRequest._(_ret, _lib, retain: true, release: true); + : NSURLCache._(_ret, _lib, retain: true, release: true); } - void start() { - return _lib._objc_msgSend_1(_id, _lib._sel_start1); + set URLCache(NSURLCache? value) { + return _lib._objc_msgSend_895( + _id, _lib._sel_setURLCache_1, value?._id ?? ffi.nullptr); } - void cancel() { - return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + bool get shouldUseExtendedBackgroundIdleMode { + return _lib._objc_msgSend_12( + _id, _lib._sel_shouldUseExtendedBackgroundIdleMode1); } - void scheduleInRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { - return _lib._objc_msgSend_650(_id, _lib._sel_scheduleInRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode._id); + set shouldUseExtendedBackgroundIdleMode(bool value) { + return _lib._objc_msgSend_475( + _id, _lib._sel_setShouldUseExtendedBackgroundIdleMode_1, value); } - void unscheduleFromRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { - return _lib._objc_msgSend_650( - _id, - _lib._sel_unscheduleFromRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, - mode._id); + NSArray? get protocolClasses { + final _ret = _lib._objc_msgSend_76(_id, _lib._sel_protocolClasses1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - void setDelegateQueue_(NSOperationQueue? queue) { - return _lib._objc_msgSend_791( - _id, _lib._sel_setDelegateQueue_1, queue?._id ?? ffi.nullptr); + set protocolClasses(NSArray? value) { + return _lib._objc_msgSend_896( + _id, _lib._sel_setProtocolClasses_1, value?._id ?? ffi.nullptr); } - /// ! - /// @method canHandleRequest: - /// - /// @abstract - /// Performs a "preflight" operation that performs - /// some speculative checks to see if a connection can - /// be initialized, and the associated I/O that is - /// started in the initializer methods can begin. - /// - /// @discussion - /// The result of this method is valid only as long as - /// no protocols are registered or unregistered, and - /// as long as the request is not mutated (if the - /// request is mutable). Hence, clients should be - /// prepared to handle failures even if they have - /// performed request preflighting by calling this - /// method. - /// - /// @param - /// request The request to preflight. - /// - /// @result YES if it is likely that the given request can be used to - /// initialize a connection and the associated I/O can be - /// started, NO otherwise. - static bool canHandleRequest_(PedometerBindings _lib, NSURLRequest? request) { - return _lib._objc_msgSend_792(_lib._class_NSURLConnection1, - _lib._sel_canHandleRequest_1, request?._id ?? ffi.nullptr); + int get multipathServiceType { + return _lib._objc_msgSend_897(_id, _lib._sel_multipathServiceType1); } - /// ! - /// @method sendSynchronousRequest:returningResponse:error: - /// - /// @abstract - /// Performs a synchronous load of the given request, - /// returning an NSURLResponse in the given out - /// parameter. - /// - /// @discussion - /// A synchronous load for the given request is built on - /// top of the asynchronous loading code made available - /// by the class. The calling thread is blocked while - /// the asynchronous loading system performs the URL load - /// on a thread spawned specifically for this load - /// request. No special threading or run loop - /// configuration is necessary in the calling thread in - /// order to perform a synchronous load. For instance, - /// the calling thread need not be running its run loop. - /// - /// @param - /// request The request to load. Note that the request is - /// deep-copied as part of the initialization - /// process. Changes made to the request argument after - /// this method returns do not affect the request that is - /// used for the loading process. - /// - /// @param - /// response An out parameter which is filled in with the - /// response generated by performing the load. - /// - /// @param - /// error Out parameter (may be NULL) used if an error occurs - /// while processing the request. Will not be modified if the - /// load succeeds. - /// - /// @result The content of the URL resulting from performing the load, - /// or nil if the load failed. - static NSData sendSynchronousRequest_returningResponse_error_( - PedometerBindings _lib, - NSURLRequest? request, - ffi.Pointer> response, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_793( - _lib._class_NSURLConnection1, - _lib._sel_sendSynchronousRequest_returningResponse_error_1, - request?._id ?? ffi.nullptr, - response, - error); - return NSData._(_ret, _lib, retain: true, release: true); + set multipathServiceType(int value) { + return _lib._objc_msgSend_898( + _id, _lib._sel_setMultipathServiceType_1, value); } - /// ! - /// @method sendAsynchronousRequest:queue:completionHandler: - /// - /// @abstract - /// Performs an asynchronous load of the given - /// request. When the request has completed or failed, - /// the block will be executed from the context of the - /// specified NSOperationQueue. - /// - /// @discussion - /// This is a convenience routine that allows for - /// asynchronous loading of a url-based resource. If - /// the resource load is successful, the data parameter - /// to the callback will contain the resource data and - /// the error parameter will be nil. If the resource - /// load fails, the data parameter will be nil and the - /// error will contain information about the failure. - /// - /// @param - /// request The request to load. Note that the request is - /// deep-copied as part of the initialization - /// process. Changes made to the request argument after - /// this method returns do not affect the request that - /// is used for the loading process. - /// - /// @param - /// queue An NSOperationQueue upon which the handler block will - /// be dispatched. - /// - /// @param - /// handler A block which receives the results of the resource load. - static void sendAsynchronousRequest_queue_completionHandler_( - PedometerBindings _lib, - NSURLRequest? request, - NSOperationQueue? queue, - ObjCBlock40 handler) { - return _lib._objc_msgSend_794( - _lib._class_NSURLConnection1, - _lib._sel_sendAsynchronousRequest_queue_completionHandler_1, - request?._id ?? ffi.nullptr, - queue?._id ?? ffi.nullptr, - handler._id); + @override + NSURLSessionConfiguration init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); } - static NSURLConnection new1(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLConnection1, _lib._sel_new1); - return NSURLConnection._(_ret, _lib, retain: false, release: true); + static NSURLSessionConfiguration new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionConfiguration1, _lib._sel_new1); + return NSURLSessionConfiguration._(_ret, _lib, + retain: false, release: true); } - static NSURLConnection alloc(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLConnection1, _lib._sel_alloc1); - return NSURLConnection._(_ret, _lib, retain: false, release: true); + static NSURLSessionConfiguration backgroundSessionConfiguration_( + PedometerBindings _lib, NSString identifier) { + final _ret = _lib._objc_msgSend_885(_lib._class_NSURLSessionConfiguration1, + _lib._sel_backgroundSessionConfiguration_1, identifier._id); + return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + } + + static NSURLSessionConfiguration allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3(_lib._class_NSURLSessionConfiguration1, + _lib._sel_allocWithZone_1, zone); + return NSURLSessionConfiguration._(_ret, _lib, + retain: false, release: true); + } + + static NSURLSessionConfiguration alloc(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionConfiguration1, _lib._sel_alloc1); + return NSURLSessionConfiguration._(_ret, _lib, + retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURLConnection1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSURLSessionConfiguration1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLConnection1, + _lib._objc_msgSend_15(_lib._class_NSURLSessionConfiguration1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLConnection1, + return _lib._objc_msgSend_12(_lib._class_NSURLSessionConfiguration1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLConnection1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLSessionConfiguration1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSURLConnection1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSURLSessionConfiguration1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSURLConnection1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSURLSessionConfiguration1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSURLConnection1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77(_lib._class_NSURLSessionConfiguration1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionConfiguration1, + _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} + +/// ! +/// @enum SSLProtocol enumeration +/// @abstract Enumerations for the set of supported TLS and DTLS protocol versions. +/// +/// @note This enumeration is deprecated. Use `tls_protocol_version_t` instead. +abstract class SSLProtocol { + static const int kSSLProtocolUnknown = 0; + static const int kTLSProtocol1 = 4; + static const int kTLSProtocol11 = 7; + static const int kTLSProtocol12 = 8; + static const int kDTLSProtocol1 = 9; + static const int kTLSProtocol13 = 10; + static const int kDTLSProtocol12 = 11; + static const int kTLSProtocolMaxSupported = 999; + static const int kSSLProtocol2 = 1; + static const int kSSLProtocol3 = 2; + static const int kSSLProtocol3Only = 3; + static const int kTLSProtocol1Only = 5; + static const int kSSLProtocolAll = 6; +} + +/// ! +/// @enum tls_protocol_version_t enumeration +/// @abstract Enumerations for the set of supported TLS and DTLS protocol versions. +/// +/// @constant tls_protocol_version_TLSv10 TLS 1.0 [https://tools.ietf.org/html/rfc4346] +/// @constant tls_protocol_version_TLSv11 TLS 1.1 [https://tools.ietf.org/html/rfc2246] +/// @constant tls_protocol_version_TLSv12 TLS 1.2 [https://tools.ietf.org/html/rfc5246] +/// @constant tls_protocol_version_TLSv13 TLS 1.3 [https://tools.ietf.org/html/rfc8446] +/// @constant tls_protocol_version_DTLSv10 DTLS 1.0 [https://tools.ietf.org/html/rfc4347] +/// @constant tls_protocol_version_DTLSv12 DTLS 1.2 [https://tools.ietf.org/html/rfc6347] +abstract class tls_protocol_version_t { + static const int tls_protocol_version_TLSv10 = 769; + static const int tls_protocol_version_TLSv11 = 770; + static const int tls_protocol_version_TLSv12 = 771; + static const int tls_protocol_version_TLSv13 = 772; + static const int tls_protocol_version_DTLSv10 = -257; + static const int tls_protocol_version_DTLSv12 = -259; +} + +/// ! +/// @enum NSURLSessionMultipathServiceType +/// +/// @discussion The NSURLSessionMultipathServiceType enum defines constants that +/// can be used to specify the multipath service type to associate an NSURLSession. The +/// multipath service type determines whether multipath TCP should be attempted and the conditions +/// for creating and switching between subflows. Using these service types requires the appropriate entitlement. Any connection attempt will fail if the process does not have the required entitlement. +/// A primary interface is a generally less expensive interface in terms of both cost and power (such as WiFi or ethernet). A secondary interface is more expensive (such as 3G or LTE). +/// +/// @constant NSURLSessionMultipathServiceTypeNone Specifies that multipath tcp should not be used. Connections will use a single flow. +/// This is the default value. No entitlement is required to set this value. +/// +/// @constant NSURLSessionMultipathServiceTypeHandover Specifies that a secondary subflow should only be used +/// when the primary subflow is not performing adequately. Requires the com.apple.developer.networking.multipath entitlement. +/// +/// @constant NSURLSessionMultipathServiceTypeInteractive Specifies that a secondary subflow should be used if the +/// primary subflow is not performing adequately (packet loss, high round trip times, bandwidth issues). The secondary +/// subflow will be created more aggressively than with NSURLSessionMultipathServiceTypeHandover. Requires the com.apple.developer.networking.multipath entitlement. +/// +/// @constant NSURLSessionMultipathServiceTypeAggregate Specifies that multiple subflows across multiple interfaces should be +/// used for better bandwidth. This mode is only available for experimentation on devices configured for development use. +/// It can be enabled in the Developer section of the Settings app. +abstract class NSURLSessionMultipathServiceType { + static const int NSURLSessionMultipathServiceTypeNone = 0; + static const int NSURLSessionMultipathServiceTypeHandover = 1; + static const int NSURLSessionMultipathServiceTypeInteractive = 2; + static const int NSURLSessionMultipathServiceTypeAggregate = 3; +} + +void _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureRegistry = , ffi.Pointer, + ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_registerClosure( + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer) + fn) { + final id = ++_ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_NSArray_NSArray_NSArray extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSArray_NSArray_NSArray._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSArray_NSArray_NSArray.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71(_lib._class_NSURLConnection1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSArray_NSArray_NSArray.fromFunction(PedometerBindings lib, void Function(NSArray, NSArray, NSArray) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2) => fn( + NSArray._(arg0, lib, retain: true, release: true), + NSArray._(arg1, lib, retain: true, release: true), + NSArray._(arg2, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; - static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLConnection1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSArray_NSArray_NSArray.listener(PedometerBindings lib, void Function(NSArray, NSArray, NSArray) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2) => fn( + NSArray._(arg0, lib, retain: true, release: true), + NSArray._(arg1, lib, retain: true, release: true), + NSArray._(arg2, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; -void _ObjCBlock40_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return block.ref.target + void call(NSArray arg0, NSArray arg1, NSArray arg2) => _id.ref.invoke .cast< ffi.NativeFunction< ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2)>>() .asFunction< void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>()(_id, arg0._id, arg1._id, arg2._id); } -final _ObjCBlock40_closureRegistry = {}; -int _ObjCBlock40_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock40_registerClosure(Function fn) { - final id = ++_ObjCBlock40_closureRegistryIndex; - _ObjCBlock40_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSArray1_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi + .NativeFunction arg0)>>() + .asFunction)>()(arg0); +final _ObjCBlock_ffiVoid_NSArray1_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_NSArray1_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSArray1_registerClosure( + void Function(ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSArray1_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSArray1_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock40_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return _ObjCBlock40_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} +void _ObjCBlock_ffiVoid_NSArray1_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + _ObjCBlock_ffiVoid_NSArray1_closureRegistry[block.ref.target.address]!( + arg0); -class ObjCBlock40 extends _ObjCBlockBase { - ObjCBlock40._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSArray1 extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSArray1._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock40.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSArray1.fromFunctionPointer( PedometerBindings lib, ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>> + ffi + .NativeFunction arg0)>> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock40_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSArray1_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock40.fromFunction( - PedometerBindings lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSArray1.fromFunction( + PedometerBindings lib, void Function(NSArray) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock40_closureTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSArray1_closureTrampoline) .cast(), - _ObjCBlock40_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSArray1_registerClosure( + (ffi.Pointer arg0) => + fn(NSArray._(arg0, lib, retain: true, release: true)))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } - ffi.Pointer<_ObjCBlock> get pointer => _id; + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSArray1.listener( + PedometerBindings lib, void Function(NSArray) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSArray1_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSArray1_registerClosure( + (ffi.Pointer arg0) => + fn(NSArray._(arg0, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>? + _dartFuncListenerTrampoline; + + void call(NSArray arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>()(_id, arg0._id); } -/// ! -/// @class NSURLCredential -/// @discussion This class is an immutable object representing an authentication credential. The actual type of the credential is determined by the constructor called in the categories declared below. -class NSURLCredential extends NSObject { - NSURLCredential._(ffi.Pointer id, PedometerBindings lib, +class NSURLSessionUploadTask extends NSURLSessionDataTask { + NSURLSessionUploadTask._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSURLCredential] that points to the same underlying object as [other]. - static NSURLCredential castFrom(T other) { - return NSURLCredential._(other._id, other._lib, + /// Returns a [NSURLSessionUploadTask] that points to the same underlying object as [other]. + static NSURLSessionUploadTask castFrom(T other) { + return NSURLSessionUploadTask._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSURLCredential] that wraps the given raw object pointer. - static NSURLCredential castFromPointer( + /// Returns a [NSURLSessionUploadTask] that wraps the given raw object pointer. + static NSURLSessionUploadTask castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLCredential._(other, lib, retain: retain, release: release); + return NSURLSessionUploadTask._(other, lib, + retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLCredential]. + /// Returns whether [obj] is an instance of [NSURLSessionUploadTask]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLCredential1); - } - - /// ! - /// @abstract Determine whether this credential is or should be stored persistently - /// @result A value indicating whether this credential is stored permanently, per session or not at all. - int get persistence { - return _lib._objc_msgSend_795(_id, _lib._sel_persistence1); - } - - /// ! - /// @method initWithUser:password:persistence: - /// @abstract Initialize a NSURLCredential with a user and password - /// @param user the username - /// @param password the password - /// @param persistence enum that says to store per session, permanently or not at all - /// @result The initialized NSURLCredential - NSURLCredential initWithUser_password_persistence_( - NSString? user, NSString? password, int persistence) { - final _ret = _lib._objc_msgSend_796( - _id, - _lib._sel_initWithUser_password_persistence_1, - user?._id ?? ffi.nullptr, - password?._id ?? ffi.nullptr, - persistence); - return NSURLCredential._(_ret, _lib, retain: true, release: true); - } - - /// ! - /// @method credentialWithUser:password:persistence: - /// @abstract Create a new NSURLCredential with a user and password - /// @param user the username - /// @param password the password - /// @param persistence enum that says to store per session, permanently or not at all - /// @result The new autoreleased NSURLCredential - static NSURLCredential credentialWithUser_password_persistence_( - PedometerBindings _lib, - NSString? user, - NSString? password, - int persistence) { - final _ret = _lib._objc_msgSend_797( - _lib._class_NSURLCredential1, - _lib._sel_credentialWithUser_password_persistence_1, - user?._id ?? ffi.nullptr, - password?._id ?? ffi.nullptr, - persistence); - return NSURLCredential._(_ret, _lib, retain: true, release: true); - } - - /// ! - /// @abstract Get the username - /// @result The user string - NSString? get user { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_user1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - /// ! - /// @abstract Get the password - /// @result The password string - /// @discussion This method might actually attempt to retrieve the - /// password from an external store, possible resulting in prompting, - /// so do not call it unless needed. - NSString? get password { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_password1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - /// ! - /// @abstract Find out if this credential has a password, without trying to get it - /// @result YES if this credential has a password, otherwise NO - /// @discussion If this credential's password is actually kept in an - /// external store, the password method may return nil even if this - /// method returns YES, since getting the password may fail, or the - /// user may refuse access. - bool get hasPassword { - return _lib._objc_msgSend_12(_id, _lib._sel_hasPassword1); - } - - /// ! - /// @method initWithIdentity:certificates:persistence: - /// @abstract Initialize an NSURLCredential with an identity and array of at least 1 client certificates (SecCertificateRef) - /// @param identity a SecIdentityRef object - /// @param certArray an array containing at least one SecCertificateRef objects - /// @param persistence enum that says to store per session, permanently or not at all - /// @result the Initialized NSURLCredential - NSURLCredential initWithIdentity_certificates_persistence_( - ffi.Pointer<__SecIdentity> identity, - NSArray? certArray, - int persistence) { - final _ret = _lib._objc_msgSend_798( - _id, - _lib._sel_initWithIdentity_certificates_persistence_1, - identity, - certArray?._id ?? ffi.nullptr, - persistence); - return NSURLCredential._(_ret, _lib, retain: true, release: true); - } - - /// ! - /// @method credentialWithIdentity:certificates:persistence: - /// @abstract Create a new NSURLCredential with an identity and certificate array - /// @param identity a SecIdentityRef object - /// @param certArray an array containing at least one SecCertificateRef objects - /// @param persistence enum that says to store per session, permanently or not at all - /// @result The new autoreleased NSURLCredential - static NSURLCredential credentialWithIdentity_certificates_persistence_( - PedometerBindings _lib, - ffi.Pointer<__SecIdentity> identity, - NSArray? certArray, - int persistence) { - final _ret = _lib._objc_msgSend_799( - _lib._class_NSURLCredential1, - _lib._sel_credentialWithIdentity_certificates_persistence_1, - identity, - certArray?._id ?? ffi.nullptr, - persistence); - return NSURLCredential._(_ret, _lib, retain: true, release: true); - } - - /// ! - /// @abstract Returns the SecIdentityRef of this credential, if it was created with a certificate and identity - /// @result A SecIdentityRef or NULL if this is a username/password credential - ffi.Pointer<__SecIdentity> get identity { - return _lib._objc_msgSend_800(_id, _lib._sel_identity1); + obj._lib._class_NSURLSessionUploadTask1); } - /// ! - /// @abstract Returns an NSArray of SecCertificateRef objects representing the client certificate for this credential, if this credential was created with an identity and certificate. - /// @result an NSArray of SecCertificateRef or NULL if this is a username/password credential - NSArray? get certificates { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_certificates1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + @override + NSURLSessionUploadTask init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); } - /// ! - /// @method initWithTrust: - /// @abstract Initialize a new NSURLCredential which specifies that the specified trust has been accepted. - /// @result the Initialized NSURLCredential - NSURLCredential initWithTrust_(ffi.Pointer<__SecTrust> trust) { - final _ret = _lib._objc_msgSend_801(_id, _lib._sel_initWithTrust_1, trust); - return NSURLCredential._(_ret, _lib, retain: true, release: true); + static NSURLSessionUploadTask new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionUploadTask1, _lib._sel_new1); + return NSURLSessionUploadTask._(_ret, _lib, retain: false, release: true); } - /// ! - /// @method credentialForTrust: - /// @abstract Create a new NSURLCredential which specifies that a handshake has been trusted. - /// @result The new autoreleased NSURLCredential - static NSURLCredential credentialForTrust_( - PedometerBindings _lib, ffi.Pointer<__SecTrust> trust) { - final _ret = _lib._objc_msgSend_802( - _lib._class_NSURLCredential1, _lib._sel_credentialForTrust_1, trust); - return NSURLCredential._(_ret, _lib, retain: true, release: true); + /// Cancels an upload and calls the completion handler with resume data for later use. + /// resumeData will be nil if the server does not support the latest resumable uploads + /// Internet-Draft from the HTTP Working Group, found at + /// https://datatracker.ietf.org/doc/draft-ietf-httpbis-resumable-upload/ + /// + /// - Parameter completionHandler: The completion handler to call when the upload has been successfully canceled. + void cancelByProducingResumeData_( + ObjCBlock_ffiVoid_NSData completionHandler) { + _lib._objc_msgSend_905( + _id, _lib._sel_cancelByProducingResumeData_1, completionHandler._id); } - static NSURLCredential new1(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLCredential1, _lib._sel_new1); - return NSURLCredential._(_ret, _lib, retain: false, release: true); + static NSURLSessionUploadTask allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLSessionUploadTask1, _lib._sel_allocWithZone_1, zone); + return NSURLSessionUploadTask._(_ret, _lib, retain: false, release: true); } - static NSURLCredential alloc(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLCredential1, _lib._sel_alloc1); - return NSURLCredential._(_ret, _lib, retain: false, release: true); + static NSURLSessionUploadTask alloc(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionUploadTask1, _lib._sel_alloc1); + return NSURLSessionUploadTask._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURLCredential1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSURLSessionUploadTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLCredential1, + _lib._objc_msgSend_15(_lib._class_NSURLSessionUploadTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLCredential1, + return _lib._objc_msgSend_12(_lib._class_NSURLSessionUploadTask1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLCredential1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLSessionUploadTask1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSURLCredential1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSURLSessionUploadTask1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSURLCredential1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSURLCredential1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSURLSessionUploadTask1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71(_lib._class_NSURLCredential1, + final _ret = _lib._objc_msgSend_77(_lib._class_NSURLSessionUploadTask1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLCredential1, _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionUploadTask1, + _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -/// ! -/// @enum NSURLCredentialPersistence -/// @abstract Constants defining how long a credential will be kept around -/// @constant NSURLCredentialPersistenceNone This credential won't be saved. -/// @constant NSURLCredentialPersistenceForSession This credential will only be stored for this session. -/// @constant NSURLCredentialPersistencePermanent This credential will be stored permanently. Note: Whereas in Mac OS X any application can access any credential provided the user gives permission, in iPhone OS an application can access only its own credentials. -/// @constant NSURLCredentialPersistenceSynchronizable This credential will be stored permanently. Additionally, this credential will be distributed to other devices based on the owning AppleID. -/// Note: Whereas in Mac OS X any application can access any credential provided the user gives permission, on iOS an application can -/// access only its own credentials. -abstract class NSURLCredentialPersistence { - static const int NSURLCredentialPersistenceNone = 0; - static const int NSURLCredentialPersistenceForSession = 1; - static const int NSURLCredentialPersistencePermanent = 2; - static const int NSURLCredentialPersistenceSynchronizable = 3; +void _ObjCBlock_ffiVoid_NSData_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi + .NativeFunction arg0)>>() + .asFunction)>()(arg0); +final _ObjCBlock_ffiVoid_NSData_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_NSData_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSData_registerClosure( + void Function(ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSData_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSData_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); } -final class __SecIdentity extends ffi.Opaque {} +void _ObjCBlock_ffiVoid_NSData_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + _ObjCBlock_ffiVoid_NSData_closureRegistry[block.ref.target.address]!(arg0); -final class __SecTrust extends ffi.Opaque {} +class ObjCBlock_ffiVoid_NSData extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSData._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); -/// ! -/// @class NSURLProtectionSpace -/// @discussion This class represents a protection space requiring authentication. -class NSURLProtectionSpace extends NSObject { - NSURLProtectionSpace._(ffi.Pointer id, PedometerBindings lib, + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSData.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi + .NativeFunction arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSData_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSData.fromFunction( + PedometerBindings lib, void Function(NSData?) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSData_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSData_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSData._(arg0, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSData.listener( + PedometerBindings lib, void Function(NSData?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSData_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSData_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSData._(arg0, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>? + _dartFuncListenerTrampoline; + + void call(NSData? arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>()(_id, arg0?._id ?? ffi.nullptr); +} + +class NSURLSessionDownloadTask extends NSURLSessionTask { + NSURLSessionDownloadTask._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSURLProtectionSpace] that points to the same underlying object as [other]. - static NSURLProtectionSpace castFrom(T other) { - return NSURLProtectionSpace._(other._id, other._lib, + /// Returns a [NSURLSessionDownloadTask] that points to the same underlying object as [other]. + static NSURLSessionDownloadTask castFrom(T other) { + return NSURLSessionDownloadTask._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSURLProtectionSpace] that wraps the given raw object pointer. - static NSURLProtectionSpace castFromPointer( + /// Returns a [NSURLSessionDownloadTask] that wraps the given raw object pointer. + static NSURLSessionDownloadTask castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLProtectionSpace._(other, lib, retain: retain, release: release); + return NSURLSessionDownloadTask._(other, lib, + retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLProtectionSpace]. + /// Returns whether [obj] is an instance of [NSURLSessionDownloadTask]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLProtectionSpace1); - } - - /// ! - /// @method initWithHost:port:protocol:realm:authenticationMethod: - /// @abstract Initialize a protection space representing an origin server, or a realm on one - /// @param host The hostname of the server - /// @param port The port for the server - /// @param protocol The protocol for this server - e.g. "http", "ftp", "https" - /// @param realm A string indicating a protocol-specific subdivision - /// of a single host. For http and https, this maps to the realm - /// string in http authentication challenges. For many other protocols - /// it is unused. - /// @param authenticationMethod The authentication method to use to access this protection space - - /// valid values include nil (default method), @"digest" and @"form". - /// @result The initialized object. - NSURLProtectionSpace initWithHost_port_protocol_realm_authenticationMethod_( - NSString? host, - int port, - NSString? protocol, - NSString? realm, - NSString? authenticationMethod) { - final _ret = _lib._objc_msgSend_803( - _id, - _lib._sel_initWithHost_port_protocol_realm_authenticationMethod_1, - host?._id ?? ffi.nullptr, - port, - protocol?._id ?? ffi.nullptr, - realm?._id ?? ffi.nullptr, - authenticationMethod?._id ?? ffi.nullptr); - return NSURLProtectionSpace._(_ret, _lib, retain: true, release: true); - } - - /// ! - /// @method initWithProxyHost:port:type:realm:authenticationMethod: - /// @abstract Initialize a protection space representing a proxy server, or a realm on one - /// @param host The hostname of the proxy server - /// @param port The port for the proxy server - /// @param type The type of proxy - e.g. "http", "ftp", "SOCKS" - /// @param realm A string indicating a protocol-specific subdivision - /// of a single host. For http and https, this maps to the realm - /// string in http authentication challenges. For many other protocols - /// it is unused. - /// @param authenticationMethod The authentication method to use to access this protection space - - /// valid values include nil (default method) and @"digest" - /// @result The initialized object. - NSURLProtectionSpace initWithProxyHost_port_type_realm_authenticationMethod_( - NSString? host, - int port, - NSString? type, - NSString? realm, - NSString? authenticationMethod) { - final _ret = _lib._objc_msgSend_803( - _id, - _lib._sel_initWithProxyHost_port_type_realm_authenticationMethod_1, - host?._id ?? ffi.nullptr, - port, - type?._id ?? ffi.nullptr, - realm?._id ?? ffi.nullptr, - authenticationMethod?._id ?? ffi.nullptr); - return NSURLProtectionSpace._(_ret, _lib, retain: true, release: true); - } - - /// ! - /// @abstract Get the authentication realm for which the protection space that - /// needs authentication - /// @discussion This is generally only available for http - /// authentication, and may be nil otherwise. - /// @result The realm string - NSString? get realm { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_realm1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - /// ! - /// @abstract Determine if the password for this protection space can be sent securely - /// @result YES if a secure authentication method or protocol will be used, NO otherwise - bool get receivesCredentialSecurely { - return _lib._objc_msgSend_12(_id, _lib._sel_receivesCredentialSecurely1); - } - - /// ! - /// @abstract Determine if this authenticating protection space is a proxy server - /// @result YES if a proxy, NO otherwise - bool get isProxy { - return _lib._objc_msgSend_12(_id, _lib._sel_isProxy1); - } - - /// ! - /// @abstract Get the proxy host if this is a proxy authentication, or the host from the URL. - /// @result The host for this protection space. - NSString? get host { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_host1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - /// ! - /// @abstract Get the proxy port if this is a proxy authentication, or the port from the URL. - /// @result The port for this protection space, or 0 if not set. - int get port { - return _lib._objc_msgSend_70(_id, _lib._sel_port1); - } - - /// ! - /// @abstract Get the type of this protection space, if a proxy - /// @result The type string, or nil if not a proxy. - NSString? get proxyType { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_proxyType1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - /// ! - /// @abstract Get the protocol of this protection space, if not a proxy - /// @result The type string, or nil if a proxy. - NSString? get protocol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_protocol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - /// ! - /// @abstract Get the authentication method to be used for this protection space - /// @result The authentication method - NSString? get authenticationMethod { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_authenticationMethod1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + obj._lib._class_NSURLSessionDownloadTask1); } - /// ! - /// @abstract Returns an array of acceptable certificate issuing authorities for client certification authentication. Issuers are identified by their distinguished name and returned as a DER encoded data. - /// @result An array of NSData objects. (Nil if the authenticationMethod is not NSURLAuthenticationMethodClientCertificate) - NSArray? get distinguishedNames { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_distinguishedNames1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + void cancelByProducingResumeData_( + ObjCBlock_ffiVoid_NSData completionHandler) { + _lib._objc_msgSend_905( + _id, _lib._sel_cancelByProducingResumeData_1, completionHandler._id); } - /// ! - /// @abstract Returns a SecTrustRef which represents the state of the servers SSL transaction state - /// @result A SecTrustRef from Security.framework. (Nil if the authenticationMethod is not NSURLAuthenticationMethodServerTrust) - ffi.Pointer<__SecTrust> get serverTrust { - return _lib._objc_msgSend_804(_id, _lib._sel_serverTrust1); + @override + NSURLSessionDownloadTask init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } - static NSURLProtectionSpace new1(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLProtectionSpace1, _lib._sel_new1); - return NSURLProtectionSpace._(_ret, _lib, retain: false, release: true); + static NSURLSessionDownloadTask new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionDownloadTask1, _lib._sel_new1); + return NSURLSessionDownloadTask._(_ret, _lib, retain: false, release: true); } - static NSURLProtectionSpace alloc(PedometerBindings _lib) { + static NSURLSessionDownloadTask allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLSessionDownloadTask1, _lib._sel_allocWithZone_1, zone); + return NSURLSessionDownloadTask._(_ret, _lib, retain: false, release: true); + } + + static NSURLSessionDownloadTask alloc(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLProtectionSpace1, _lib._sel_alloc1); - return NSURLProtectionSpace._(_ret, _lib, retain: false, release: true); + _lib._class_NSURLSessionDownloadTask1, _lib._sel_alloc1); + return NSURLSessionDownloadTask._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURLProtectionSpace1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSURLSessionDownloadTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLProtectionSpace1, + _lib._objc_msgSend_15(_lib._class_NSURLSessionDownloadTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLProtectionSpace1, + return _lib._objc_msgSend_12(_lib._class_NSURLSessionDownloadTask1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLProtectionSpace1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLSessionDownloadTask1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSURLProtectionSpace1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSURLSessionDownloadTask1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSURLProtectionSpace1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSURLProtectionSpace1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSURLSessionDownloadTask1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71(_lib._class_NSURLProtectionSpace1, + final _ret = _lib._objc_msgSend_77(_lib._class_NSURLSessionDownloadTask1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLProtectionSpace1, _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionDownloadTask1, + _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -/// ! -/// @class NSURLCredentialStorage -/// @discussion NSURLCredentialStorage implements a singleton object (shared instance) which manages the shared credentials cache. Note: Whereas in Mac OS X any application can access any credential with a persistence of NSURLCredentialPersistencePermanent provided the user gives permission, in iPhone OS an application can access only its own credentials. -class NSURLCredentialStorage extends NSObject { - NSURLCredentialStorage._(ffi.Pointer id, PedometerBindings lib, +class NSURLSessionStreamTask extends NSURLSessionTask { + NSURLSessionStreamTask._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSURLCredentialStorage] that points to the same underlying object as [other]. - static NSURLCredentialStorage castFrom(T other) { - return NSURLCredentialStorage._(other._id, other._lib, + /// Returns a [NSURLSessionStreamTask] that points to the same underlying object as [other]. + static NSURLSessionStreamTask castFrom(T other) { + return NSURLSessionStreamTask._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSURLCredentialStorage] that wraps the given raw object pointer. - static NSURLCredentialStorage castFromPointer( + /// Returns a [NSURLSessionStreamTask] that wraps the given raw object pointer. + static NSURLSessionStreamTask castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLCredentialStorage._(other, lib, + return NSURLSessionStreamTask._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLCredentialStorage]. + /// Returns whether [obj] is an instance of [NSURLSessionStreamTask]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLCredentialStorage1); - } - - /// ! - /// @property sharedCredentialStorage - /// @abstract Get the shared singleton authentication storage - /// @result the shared authentication storage - static NSURLCredentialStorage? getSharedCredentialStorage( - PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_805(_lib._class_NSURLCredentialStorage1, - _lib._sel_sharedCredentialStorage1); - return _ret.address == 0 - ? null - : NSURLCredentialStorage._(_ret, _lib, retain: true, release: true); - } - - /// ! - /// @method credentialsForProtectionSpace: - /// @abstract Get a dictionary mapping usernames to credentials for the specified protection space. - /// @param space An NSURLProtectionSpace indicating the protection space for which to get credentials - /// @result A dictionary where the keys are usernames and the values are the corresponding NSURLCredentials. - NSDictionary credentialsForProtectionSpace_(NSURLProtectionSpace? space) { - final _ret = _lib._objc_msgSend_806(_id, - _lib._sel_credentialsForProtectionSpace_1, space?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - /// ! - /// @abstract Get a dictionary mapping NSURLProtectionSpaces to dictionaries which map usernames to NSURLCredentials - /// @result an NSDictionary where the keys are NSURLProtectionSpaces - /// and the values are dictionaries, in which the keys are usernames - /// and the values are NSURLCredentials - NSDictionary? get allCredentials { - final _ret = _lib._objc_msgSend_324(_id, _lib._sel_allCredentials1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - /// ! - /// @method setCredential:forProtectionSpace: - /// @abstract Add a new credential to the set for the specified protection space or replace an existing one. - /// @param credential The credential to set. - /// @param space The protection space for which to add it. - /// @discussion Multiple credentials may be set for a given protection space, but each must have - /// a distinct user. If a credential with the same user is already set for the protection space, - /// the new one will replace it. - void setCredential_forProtectionSpace_( - NSURLCredential? credential, NSURLProtectionSpace? space) { - return _lib._objc_msgSend_807( - _id, - _lib._sel_setCredential_forProtectionSpace_1, - credential?._id ?? ffi.nullptr, - space?._id ?? ffi.nullptr); + obj._lib._class_NSURLSessionStreamTask1); } - /// ! - /// @method removeCredential:forProtectionSpace: - /// @abstract Remove the credential from the set for the specified protection space. - /// @param credential The credential to remove. - /// @param space The protection space for which a credential should be removed - /// @discussion The credential is removed from both persistent and temporary storage. A credential that - /// has a persistence policy of NSURLCredentialPersistenceSynchronizable will fail. - /// See removeCredential:forProtectionSpace:options. - void removeCredential_forProtectionSpace_( - NSURLCredential? credential, NSURLProtectionSpace? space) { - return _lib._objc_msgSend_807( + void readDataOfMinLength_maxLength_timeout_completionHandler_( + int minBytes, + int maxBytes, + double timeout, + ObjCBlock_ffiVoid_NSData_bool_NSError completionHandler) { + _lib._objc_msgSend_913( _id, - _lib._sel_removeCredential_forProtectionSpace_1, - credential?._id ?? ffi.nullptr, - space?._id ?? ffi.nullptr); + _lib._sel_readDataOfMinLength_maxLength_timeout_completionHandler_1, + minBytes, + maxBytes, + timeout, + completionHandler._id); } - /// ! - /// @method removeCredential:forProtectionSpace:options - /// @abstract Remove the credential from the set for the specified protection space based on options. - /// @param credential The credential to remove. - /// @param space The protection space for which a credential should be removed - /// @param options A dictionary containing options to consider when removing the credential. This should - /// be used when trying to delete a credential that has the NSURLCredentialPersistenceSynchronizable policy. - /// Please note that when NSURLCredential objects that have a NSURLCredentialPersistenceSynchronizable policy - /// are removed, the credential will be removed on all devices that contain this credential. - /// @discussion The credential is removed from both persistent and temporary storage. - void removeCredential_forProtectionSpace_options_(NSURLCredential? credential, - NSURLProtectionSpace? space, NSDictionary? options) { - return _lib._objc_msgSend_808( - _id, - _lib._sel_removeCredential_forProtectionSpace_options_1, - credential?._id ?? ffi.nullptr, - space?._id ?? ffi.nullptr, - options?._id ?? ffi.nullptr); + void writeData_timeout_completionHandler_(NSData data, double timeout, + ObjCBlock_ffiVoid_NSError completionHandler) { + _lib._objc_msgSend_914(_id, _lib._sel_writeData_timeout_completionHandler_1, + data._id, timeout, completionHandler._id); } - /// ! - /// @method defaultCredentialForProtectionSpace: - /// @abstract Get the default credential for the specified protection space. - /// @param space The protection space for which to get the default credential. - NSURLCredential defaultCredentialForProtectionSpace_( - NSURLProtectionSpace? space) { - final _ret = _lib._objc_msgSend_809( - _id, - _lib._sel_defaultCredentialForProtectionSpace_1, - space?._id ?? ffi.nullptr); - return NSURLCredential._(_ret, _lib, retain: true, release: true); + void captureStreams() { + _lib._objc_msgSend_1(_id, _lib._sel_captureStreams1); } - /// ! - /// @method setDefaultCredential:forProtectionSpace: - /// @abstract Set the default credential for the specified protection space. - /// @param credential The credential to set as default. - /// @param space The protection space for which the credential should be set as default. - /// @discussion If the credential is not yet in the set for the protection space, it will be added to it. - void setDefaultCredential_forProtectionSpace_( - NSURLCredential? credential, NSURLProtectionSpace? space) { - return _lib._objc_msgSend_807( - _id, - _lib._sel_setDefaultCredential_forProtectionSpace_1, - credential?._id ?? ffi.nullptr, - space?._id ?? ffi.nullptr); + void closeWrite() { + _lib._objc_msgSend_1(_id, _lib._sel_closeWrite1); } - void getCredentialsForProtectionSpace_task_completionHandler_( - NSURLProtectionSpace? protectionSpace, - NSURLSessionTask? task, - ObjCBlock41 completionHandler) { - return _lib._objc_msgSend_810( - _id, - _lib._sel_getCredentialsForProtectionSpace_task_completionHandler_1, - protectionSpace?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr, - completionHandler._id); + void closeRead() { + _lib._objc_msgSend_1(_id, _lib._sel_closeRead1); } - void setCredential_forProtectionSpace_task_(NSURLCredential? credential, - NSURLProtectionSpace? protectionSpace, NSURLSessionTask? task) { - return _lib._objc_msgSend_811( - _id, - _lib._sel_setCredential_forProtectionSpace_task_1, - credential?._id ?? ffi.nullptr, - protectionSpace?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr); + void startSecureConnection() { + _lib._objc_msgSend_1(_id, _lib._sel_startSecureConnection1); } - void removeCredential_forProtectionSpace_options_task_( - NSURLCredential? credential, - NSURLProtectionSpace? protectionSpace, - NSDictionary? options, - NSURLSessionTask? task) { - return _lib._objc_msgSend_812( - _id, - _lib._sel_removeCredential_forProtectionSpace_options_task_1, - credential?._id ?? ffi.nullptr, - protectionSpace?._id ?? ffi.nullptr, - options?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr); + void stopSecureConnection() { + _lib._objc_msgSend_1(_id, _lib._sel_stopSecureConnection1); } - void getDefaultCredentialForProtectionSpace_task_completionHandler_( - NSURLProtectionSpace? space, - NSURLSessionTask? task, - ObjCBlock42 completionHandler) { - return _lib._objc_msgSend_813( - _id, - _lib._sel_getDefaultCredentialForProtectionSpace_task_completionHandler_1, - space?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr, - completionHandler._id); + @override + NSURLSessionStreamTask init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLSessionStreamTask._(_ret, _lib, retain: true, release: true); } - void setDefaultCredential_forProtectionSpace_task_( - NSURLCredential? credential, - NSURLProtectionSpace? protectionSpace, - NSURLSessionTask? task) { - return _lib._objc_msgSend_811( - _id, - _lib._sel_setDefaultCredential_forProtectionSpace_task_1, - credential?._id ?? ffi.nullptr, - protectionSpace?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr); + static NSURLSessionStreamTask new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionStreamTask1, _lib._sel_new1); + return NSURLSessionStreamTask._(_ret, _lib, retain: false, release: true); } - static NSURLCredentialStorage new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLCredentialStorage1, _lib._sel_new1); - return NSURLCredentialStorage._(_ret, _lib, retain: false, release: true); + static NSURLSessionStreamTask allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLSessionStreamTask1, _lib._sel_allocWithZone_1, zone); + return NSURLSessionStreamTask._(_ret, _lib, retain: false, release: true); } - static NSURLCredentialStorage alloc(PedometerBindings _lib) { + static NSURLSessionStreamTask alloc(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLCredentialStorage1, _lib._sel_alloc1); - return NSURLCredentialStorage._(_ret, _lib, retain: false, release: true); + _lib._class_NSURLSessionStreamTask1, _lib._sel_alloc1); + return NSURLSessionStreamTask._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURLCredentialStorage1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSURLSessionStreamTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLCredentialStorage1, + _lib._objc_msgSend_15(_lib._class_NSURLSessionStreamTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLCredentialStorage1, + return _lib._objc_msgSend_12(_lib._class_NSURLSessionStreamTask1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLCredentialStorage1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLSessionStreamTask1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSURLCredentialStorage1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSURLSessionStreamTask1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSURLCredentialStorage1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSURLCredentialStorage1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSURLSessionStreamTask1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71(_lib._class_NSURLCredentialStorage1, + final _ret = _lib._objc_msgSend_77(_lib._class_NSURLSessionStreamTask1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLCredentialStorage1, + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionStreamTask1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -void _ObjCBlock41_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock41_closureRegistry = {}; -int _ObjCBlock41_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock41_registerClosure(Function fn) { - final id = ++_ObjCBlock41_closureRegistryIndex; - _ObjCBlock41_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSData_bool_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer, bool, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistry = , bool, ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSData_bool_NSError_registerClosure( + void Function(ffi.Pointer, bool, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock41_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock41_closureRegistry[block.ref.target.address]!(arg0); -} - -class ObjCBlock41 extends _ObjCBlockBase { - ObjCBlock41._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_NSData_bool_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_NSData_bool_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSData_bool_NSError._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock41.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSData_bool_NSError.fromFunctionPointer( PedometerBindings lib, ffi.Pointer< - ffi - .NativeFunction arg0)>> + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, + ffi.Pointer arg2)>> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock41_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Bool, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSData_bool_NSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock41.fromFunction( - PedometerBindings lib, void Function(ffi.Pointer arg0) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSData_bool_NSError.fromFunction(PedometerBindings lib, void Function(NSData, bool, NSError?) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock41_closureTrampoline) + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Bool, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSData_bool_NSError_closureTrampoline) .cast(), - _ObjCBlock41_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSData_bool_NSError_registerClosure( + (ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) => fn( + NSData._(arg0, lib, retain: true, release: true), + arg1, + arg2.address == 0 ? null : NSError._(arg2, lib, retain: true, release: true)))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -void _ObjCBlock42_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock42_closureRegistry = {}; -int _ObjCBlock42_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock42_registerClosure(Function fn) { - final id = ++_ObjCBlock42_closureRegistryIndex; - _ObjCBlock42_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock42_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock42_closureRegistry[block.ref.target.address]!(arg0); -} - -class ObjCBlock42 extends _ObjCBlockBase { - ObjCBlock42._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock42.fromFunctionPointer( - PedometerBindings lib, - ffi.Pointer< - ffi - .NativeFunction arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock42_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - /// Creates a block from a Dart function. - ObjCBlock42.fromFunction( - PedometerBindings lib, void Function(ffi.Pointer arg0) fn) + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSData_bool_NSError.listener( + PedometerBindings lib, void Function(NSData, bool, NSError?) fn) : this._( lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock42_closureTrampoline) + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Bool, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSData_bool_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction .cast(), - _ObjCBlock42_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSData_bool_NSError_registerClosure( + (ffi.Pointer arg0, bool arg1, + ffi.Pointer arg2) => + fn(NSData._(arg0, lib, retain: true, release: true), arg1, arg2.address == 0 ? null : NSError._(arg2, lib, retain: true, release: true)))), lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Bool, ffi.Pointer)>? _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(NSData arg0, bool arg1, NSError? arg2) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Bool arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + bool, ffi.Pointer)>()( + _id, arg0._id, arg1, arg2?._id ?? ffi.nullptr); } -/// ! -/// @class NSURLProtocol -/// -/// @abstract NSURLProtocol is an abstract class which provides the -/// basic structure for performing protocol-specific loading of URL -/// data. Concrete subclasses handle the specifics associated with one -/// or more protocols or URL schemes. -class NSURLProtocol extends NSObject { - NSURLProtocol._(ffi.Pointer id, PedometerBindings lib, +class NSNetService extends NSObject { + NSNetService._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSURLProtocol] that points to the same underlying object as [other]. - static NSURLProtocol castFrom(T other) { - return NSURLProtocol._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSNetService] that points to the same underlying object as [other]. + static NSNetService castFrom(T other) { + return NSNetService._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSURLProtocol] that wraps the given raw object pointer. - static NSURLProtocol castFromPointer( + /// Returns a [NSNetService] that wraps the given raw object pointer. + static NSNetService castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLProtocol._(other, lib, retain: retain, release: release); + return NSNetService._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLProtocol]. + /// Returns whether [obj] is an instance of [NSNetService]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLProtocol1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSNetService1); } - /// ! - /// @method initWithRequest:cachedResponse:client: - /// @abstract Initializes an NSURLProtocol given request, - /// cached response, and client. - /// @param request The request to load. - /// @param cachedResponse A response that has been retrieved from the - /// cache for the given request. The protocol implementation should - /// apply protocol-specific validity checks if such tests are - /// necessary. - /// @param client The NSURLProtocolClient object that serves as the - /// interface the protocol implementation can use to report results back - /// to the URL loading system. - NSURLProtocol initWithRequest_cachedResponse_client_(NSURLRequest? request, - NSCachedURLResponse? cachedResponse, NSObject? client) { - final _ret = _lib._objc_msgSend_814( + NSNetService initWithDomain_type_name_port_( + NSString domain, NSString type, NSString name, int port) { + final _ret = _lib._objc_msgSend_916( _id, - _lib._sel_initWithRequest_cachedResponse_client_1, - request?._id ?? ffi.nullptr, - cachedResponse?._id ?? ffi.nullptr, - client?._id ?? ffi.nullptr); - return NSURLProtocol._(_ret, _lib, retain: true, release: true); + _lib._sel_initWithDomain_type_name_port_1, + domain._id, + type._id, + name._id, + port); + return NSNetService._(_ret, _lib, retain: true, release: true); } - /// ! - /// @abstract Returns the NSURLProtocolClient of the receiver. - /// @result The NSURLProtocolClient of the receiver. - NSObject? get client { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_client1); + NSNetService initWithDomain_type_name_( + NSString domain, NSString type, NSString name) { + final _ret = _lib._objc_msgSend_917(_id, + _lib._sel_initWithDomain_type_name_1, domain._id, type._id, name._id); + return NSNetService._(_ret, _lib, retain: true, release: true); + } + + void scheduleInRunLoop_forMode_(NSRunLoop aRunLoop, NSString mode) { + _lib._objc_msgSend_680( + _id, _lib._sel_scheduleInRunLoop_forMode_1, aRunLoop._id, mode._id); + } + + void removeFromRunLoop_forMode_(NSRunLoop aRunLoop, NSString mode) { + _lib._objc_msgSend_680( + _id, _lib._sel_removeFromRunLoop_forMode_1, aRunLoop._id, mode._id); + } + + NSObject? get delegate { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_delegate1); return _ret.address == 0 ? null : NSObject._(_ret, _lib, retain: true, release: true); } - /// ! - /// @abstract Returns the NSURLRequest of the receiver. - /// @result The NSURLRequest of the receiver. - NSURLRequest? get request { - final _ret = _lib._objc_msgSend_692(_id, _lib._sel_request1); + set delegate(NSObject? value) { + return _lib._objc_msgSend_367( + _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); + } + + bool get includesPeerToPeer { + return _lib._objc_msgSend_12(_id, _lib._sel_includesPeerToPeer1); + } + + set includesPeerToPeer(bool value) { + return _lib._objc_msgSend_475( + _id, _lib._sel_setIncludesPeerToPeer_1, value); + } + + NSString get name { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_name1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString get type { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_type1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString get domain { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_domain1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get hostName { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_hostName1); return _ret.address == 0 ? null - : NSURLRequest._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - /// ! - /// @abstract Returns the NSCachedURLResponse of the receiver. - /// @result The NSCachedURLResponse of the receiver. - NSCachedURLResponse? get cachedResponse { - final _ret = _lib._objc_msgSend_815(_id, _lib._sel_cachedResponse1); + NSArray? get addresses { + final _ret = _lib._objc_msgSend_76(_id, _lib._sel_addresses1); return _ret.address == 0 ? null - : NSCachedURLResponse._(_ret, _lib, retain: true, release: true); + : NSArray._(_ret, _lib, retain: true, release: true); } - /// ! - /// @method canInitWithRequest: - /// @abstract This method determines whether this protocol can handle - /// the given request. - /// @discussion A concrete subclass should inspect the given request and - /// determine whether or not the implementation can perform a load with - /// that request. This is an abstract method. Subclasses must provide an - /// implementation. - /// @param request A request to inspect. - /// @result YES if the protocol can handle the given request, NO if not. - static bool canInitWithRequest_( - PedometerBindings _lib, NSURLRequest? request) { - return _lib._objc_msgSend_792(_lib._class_NSURLProtocol1, - _lib._sel_canInitWithRequest_1, request?._id ?? ffi.nullptr); + int get port { + return _lib._objc_msgSend_75(_id, _lib._sel_port1); } - /// ! - /// @method canonicalRequestForRequest: - /// @abstract This method returns a canonical version of the given - /// request. - /// @discussion It is up to each concrete protocol implementation to - /// define what "canonical" means. However, a protocol should - /// guarantee that the same input request always yields the same - /// canonical form. Special consideration should be given when - /// implementing this method since the canonical form of a request is - /// used to look up objects in the URL cache, a process which performs - /// equality checks between NSURLRequest objects. - ///

- /// This is an abstract method; subclasses must provide an - /// implementation. - /// @param request A request to make canonical. - /// @result The canonical form of the given request. - static NSURLRequest canonicalRequestForRequest_( - PedometerBindings _lib, NSURLRequest? request) { - final _ret = _lib._objc_msgSend_816(_lib._class_NSURLProtocol1, - _lib._sel_canonicalRequestForRequest_1, request?._id ?? ffi.nullptr); - return NSURLRequest._(_ret, _lib, retain: true, release: true); + void publish() { + _lib._objc_msgSend_1(_id, _lib._sel_publish1); } - /// ! - /// @method requestIsCacheEquivalent:toRequest: - /// @abstract Compares two requests for equivalence with regard to caching. - /// @discussion Requests are considered equivalent for cache purposes - /// if and only if they would be handled by the same protocol AND that - /// protocol declares them equivalent after performing - /// implementation-specific checks. - /// @result YES if the two requests are cache-equivalent, NO otherwise. - static bool requestIsCacheEquivalent_toRequest_( - PedometerBindings _lib, NSURLRequest? a, NSURLRequest? b) { - return _lib._objc_msgSend_817( - _lib._class_NSURLProtocol1, - _lib._sel_requestIsCacheEquivalent_toRequest_1, - a?._id ?? ffi.nullptr, - b?._id ?? ffi.nullptr); + void publishWithOptions_(int options) { + _lib._objc_msgSend_918(_id, _lib._sel_publishWithOptions_1, options); } - /// ! - /// @method startLoading - /// @abstract Starts protocol-specific loading of a request. - /// @discussion When this method is called, the protocol implementation - /// should start loading a request. - void startLoading() { - return _lib._objc_msgSend_1(_id, _lib._sel_startLoading1); + void resolve() { + _lib._objc_msgSend_1(_id, _lib._sel_resolve1); } - /// ! - /// @method stopLoading - /// @abstract Stops protocol-specific loading of a request. - /// @discussion When this method is called, the protocol implementation - /// should end the work of loading a request. This could be in response - /// to a cancel operation, so protocol implementations must be able to - /// handle this call while a load is in progress. - void stopLoading() { - return _lib._objc_msgSend_1(_id, _lib._sel_stopLoading1); + void stop() { + _lib._objc_msgSend_1(_id, _lib._sel_stop1); } - /// ! - /// @method propertyForKey:inRequest: - /// @abstract Returns the property in the given request previously - /// stored with the given key. - /// @discussion The purpose of this method is to provide an interface - /// for protocol implementors to access protocol-specific information - /// associated with NSURLRequest objects. - /// @param key The string to use for the property lookup. - /// @param request The request to use for the property lookup. - /// @result The property stored with the given key, or nil if no property - /// had previously been stored with the given key in the given request. - static NSObject propertyForKey_inRequest_( - PedometerBindings _lib, NSString? key, NSURLRequest? request) { - final _ret = _lib._objc_msgSend_818( - _lib._class_NSURLProtocol1, - _lib._sel_propertyForKey_inRequest_1, - key?._id ?? ffi.nullptr, - request?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSDictionary dictionaryFromTXTRecordData_( + PedometerBindings _lib, NSData txtData) { + final _ret = _lib._objc_msgSend_919(_lib._class_NSNetService1, + _lib._sel_dictionaryFromTXTRecordData_1, txtData._id); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - /// ! - /// @method setProperty:forKey:inRequest: - /// @abstract Stores the given property in the given request using the - /// given key. - /// @discussion The purpose of this method is to provide an interface - /// for protocol implementors to customize protocol-specific - /// information associated with NSMutableURLRequest objects. - /// @param value The property to store. - /// @param key The string to use for the property storage. - /// @param request The request in which to store the property. - static void setProperty_forKey_inRequest_(PedometerBindings _lib, - NSObject value, NSString? key, NSMutableURLRequest? request) { - return _lib._objc_msgSend_824( - _lib._class_NSURLProtocol1, - _lib._sel_setProperty_forKey_inRequest_1, - value._id, - key?._id ?? ffi.nullptr, - request?._id ?? ffi.nullptr); + static NSData dataFromTXTRecordDictionary_( + PedometerBindings _lib, NSDictionary txtDictionary) { + final _ret = _lib._objc_msgSend_920(_lib._class_NSNetService1, + _lib._sel_dataFromTXTRecordDictionary_1, txtDictionary._id); + return NSData._(_ret, _lib, retain: true, release: true); } - /// ! - /// @method removePropertyForKey:inRequest: - /// @abstract Remove any property stored under the given key - /// @discussion Like setProperty:forKey:inRequest: above, the purpose of this - /// method is to give protocol implementors the ability to store - /// protocol-specific information in an NSURLRequest - /// @param key The key whose value should be removed - /// @param request The request to be modified - static void removePropertyForKey_inRequest_( - PedometerBindings _lib, NSString? key, NSMutableURLRequest? request) { - return _lib._objc_msgSend_825( - _lib._class_NSURLProtocol1, - _lib._sel_removePropertyForKey_inRequest_1, - key?._id ?? ffi.nullptr, - request?._id ?? ffi.nullptr); + void resolveWithTimeout_(double timeout) { + _lib._objc_msgSend_489(_id, _lib._sel_resolveWithTimeout_1, timeout); } - /// ! - /// @method registerClass: - /// @abstract This method registers a protocol class, making it visible - /// to several other NSURLProtocol class methods. - /// @discussion When the URL loading system begins to load a request, - /// each protocol class that has been registered is consulted in turn to - /// see if it can be initialized with a given request. The first - /// protocol handler class to provide a YES answer to - /// +canInitWithRequest: "wins" and that protocol - /// implementation is used to perform the URL load. There is no - /// guarantee that all registered protocol classes will be consulted. - /// Hence, it should be noted that registering a class places it first - /// on the list of classes that will be consulted in calls to - /// +canInitWithRequest:, moving it in front of all classes - /// that had been registered previously. - ///

A similar design governs the process to create the canonical form - /// of a request with the +canonicalRequestForRequest: class - /// method. - /// @param protocolClass the class to register. - /// @result YES if the protocol was registered successfully, NO if not. - /// The only way that failure can occur is if the given class is not a - /// subclass of NSURLProtocol. - static bool registerClass_(PedometerBindings _lib, NSObject protocolClass) { - return _lib._objc_msgSend_0(_lib._class_NSURLProtocol1, - _lib._sel_registerClass_1, protocolClass._id); + bool getInputStream_outputStream_( + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + return _lib._objc_msgSend_921(_id, _lib._sel_getInputStream_outputStream_1, + inputStream, outputStream); } - /// ! - /// @method unregisterClass: - /// @abstract This method unregisters a protocol. - /// @discussion After unregistration, a protocol class is no longer - /// consulted in calls to NSURLProtocol class methods. - /// @param protocolClass The class to unregister. - static void unregisterClass_(PedometerBindings _lib, NSObject protocolClass) { - return _lib._objc_msgSend_15(_lib._class_NSURLProtocol1, - _lib._sel_unregisterClass_1, protocolClass._id); + bool setTXTRecordData_(NSData? recordData) { + return _lib._objc_msgSend_922( + _id, _lib._sel_setTXTRecordData_1, recordData?._id ?? ffi.nullptr); + } + + NSData? TXTRecordData() { + final _ret = _lib._objc_msgSend_227(_id, _lib._sel_TXTRecordData1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - static bool canInitWithTask_(PedometerBindings _lib, NSURLSessionTask? task) { - return _lib._objc_msgSend_826(_lib._class_NSURLProtocol1, - _lib._sel_canInitWithTask_1, task?._id ?? ffi.nullptr); + void startMonitoring() { + _lib._objc_msgSend_1(_id, _lib._sel_startMonitoring1); + } + + void stopMonitoring() { + _lib._objc_msgSend_1(_id, _lib._sel_stopMonitoring1); } - NSURLProtocol initWithTask_cachedResponse_client_(NSURLSessionTask? task, - NSCachedURLResponse? cachedResponse, NSObject? client) { - final _ret = _lib._objc_msgSend_827( - _id, - _lib._sel_initWithTask_cachedResponse_client_1, - task?._id ?? ffi.nullptr, - cachedResponse?._id ?? ffi.nullptr, - client?._id ?? ffi.nullptr); - return NSURLProtocol._(_ret, _lib, retain: true, release: true); + @override + NSNetService init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSNetService._(_ret, _lib, retain: true, release: true); } - NSURLSessionTask? get task { - final _ret = _lib._objc_msgSend_828(_id, _lib._sel_task1); - return _ret.address == 0 - ? null - : NSURLSessionTask._(_ret, _lib, retain: true, release: true); + static NSNetService new1(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSNetService1, _lib._sel_new1); + return NSNetService._(_ret, _lib, retain: false, release: true); } - static NSURLProtocol new1(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLProtocol1, _lib._sel_new1); - return NSURLProtocol._(_ret, _lib, retain: false, release: true); + static NSNetService allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSNetService1, _lib._sel_allocWithZone_1, zone); + return NSNetService._(_ret, _lib, retain: false, release: true); } - static NSURLProtocol alloc(PedometerBindings _lib) { + static NSNetService alloc(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLProtocol1, _lib._sel_alloc1); - return NSURLProtocol._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSNetService1, _lib._sel_alloc1); + return NSNetService._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURLProtocol1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSNetService1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLProtocol1, + _lib._objc_msgSend_15(_lib._class_NSNetService1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLProtocol1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSNetService1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLProtocol1, _lib._sel_useStoredAccessor1); + _lib._class_NSNetService1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSURLProtocol1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSNetService1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSURLProtocol1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSURLProtocol1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSNetService1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSURLProtocol1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_NSNetService1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLProtocol1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSNetService1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -/// ! -/// @class NSMutableURLRequest -/// -/// @abstract An NSMutableURLRequest object represents a mutable URL load -/// request in a manner independent of protocol and URL scheme. -/// -/// @discussion This specialization of NSURLRequest is provided to aid -/// developers who may find it more convenient to mutate a single request -/// object for a series of URL loads instead of creating an immutable -/// NSURLRequest for each load. This programming model is supported by -/// the following contract stipulation between NSMutableURLRequest and -/// NSURLConnection: NSURLConnection makes a deep copy of each -/// NSMutableURLRequest object passed to one of its initializers. -///

NSMutableURLRequest is designed to be extended to support -/// protocol-specific data by adding categories to access a property -/// object provided in an interface targeted at protocol implementors. -///

    -///
  • Protocol implementors should direct their attention to the -/// NSMutableURLRequestExtensibility category on -/// NSMutableURLRequest for more information on how to provide -/// extensions on NSMutableURLRequest to support protocol-specific -/// request information. -///
  • Clients of this API who wish to create NSMutableURLRequest -/// objects to load URL content should consult the protocol-specific -/// NSMutableURLRequest categories that are available. The -/// NSMutableHTTPURLRequest category on NSMutableURLRequest is an -/// example. -///
-class NSMutableURLRequest extends NSURLRequest { - NSMutableURLRequest._(ffi.Pointer id, PedometerBindings lib, +abstract class NSNetServiceOptions { + static const int NSNetServiceNoAutoRename = 1; + static const int NSNetServiceListenForConnections = 2; +} + +class NSURLSessionWebSocketTask extends NSURLSessionTask { + NSURLSessionWebSocketTask._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSMutableURLRequest] that points to the same underlying object as [other]. - static NSMutableURLRequest castFrom(T other) { - return NSMutableURLRequest._(other._id, other._lib, + /// Returns a [NSURLSessionWebSocketTask] that points to the same underlying object as [other]. + static NSURLSessionWebSocketTask castFrom(T other) { + return NSURLSessionWebSocketTask._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSMutableURLRequest] that wraps the given raw object pointer. - static NSMutableURLRequest castFromPointer( + /// Returns a [NSURLSessionWebSocketTask] that wraps the given raw object pointer. + static NSURLSessionWebSocketTask castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSMutableURLRequest._(other, lib, retain: retain, release: release); + return NSURLSessionWebSocketTask._(other, lib, + retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSMutableURLRequest]. + /// Returns whether [obj] is an instance of [NSURLSessionWebSocketTask]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMutableURLRequest1); - } - - /// ! - /// @abstract The URL of the receiver. - @override - NSURL? get URL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - /// ! - /// @abstract The URL of the receiver. - set URL(NSURL? value) { - _lib._objc_msgSend_487(_id, _lib._sel_setURL_1, value?._id ?? ffi.nullptr); - } - - /// ! - /// @abstract The cache policy of the receiver. - @override - int get cachePolicy { - return _lib._objc_msgSend_680(_id, _lib._sel_cachePolicy1); - } - - /// ! - /// @abstract The cache policy of the receiver. - set cachePolicy(int value) { - _lib._objc_msgSend_819(_id, _lib._sel_setCachePolicy_1, value); - } - - /// ! - /// @abstract Sets the timeout interval of the receiver. - /// @discussion The timeout interval specifies the limit on the idle - /// interval allotted to a request in the process of loading. The "idle - /// interval" is defined as the period of time that has passed since the - /// last instance of load activity occurred for a request that is in the - /// process of loading. Hence, when an instance of load activity occurs - /// (e.g. bytes are received from the network for a request), the idle - /// interval for a request is reset to 0. If the idle interval ever - /// becomes greater than or equal to the timeout interval, the request - /// is considered to have timed out. This timeout interval is measured - /// in seconds. - @override - double get timeoutInterval { - return _lib._objc_msgSend_147(_id, _lib._sel_timeoutInterval1); - } - - /// ! - /// @abstract Sets the timeout interval of the receiver. - /// @discussion The timeout interval specifies the limit on the idle - /// interval allotted to a request in the process of loading. The "idle - /// interval" is defined as the period of time that has passed since the - /// last instance of load activity occurred for a request that is in the - /// process of loading. Hence, when an instance of load activity occurs - /// (e.g. bytes are received from the network for a request), the idle - /// interval for a request is reset to 0. If the idle interval ever - /// becomes greater than or equal to the timeout interval, the request - /// is considered to have timed out. This timeout interval is measured - /// in seconds. - set timeoutInterval(double value) { - _lib._objc_msgSend_467(_id, _lib._sel_setTimeoutInterval_1, value); - } - - /// ! - /// @abstract Sets the main document URL - /// @discussion The caller should pass the URL for an appropriate main - /// document, if known. For example, when loading a web page, the URL - /// of the main html document for the top-level frame should be - /// passed. This main document is used to implement the cookie "only - /// from same domain as main document" policy, attributing this request - /// as a sub-resource of a user-specified URL, and possibly other things - /// in the future. - @override - NSURL? get mainDocumentURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_mainDocumentURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - /// ! - /// @abstract Sets the main document URL - /// @discussion The caller should pass the URL for an appropriate main - /// document, if known. For example, when loading a web page, the URL - /// of the main html document for the top-level frame should be - /// passed. This main document is used to implement the cookie "only - /// from same domain as main document" policy, attributing this request - /// as a sub-resource of a user-specified URL, and possibly other things - /// in the future. - set mainDocumentURL(NSURL? value) { - _lib._objc_msgSend_487( - _id, _lib._sel_setMainDocumentURL_1, value?._id ?? ffi.nullptr); + obj._lib._class_NSURLSessionWebSocketTask1); } - /// ! - /// @abstract Sets the NSURLRequestNetworkServiceType to associate with this request - /// @discussion This method is used to provide the network layers with a hint as to the purpose - /// of the request. Most clients should not need to use this method. - @override - int get networkServiceType { - return _lib._objc_msgSend_681(_id, _lib._sel_networkServiceType1); + void sendMessage_completionHandler_(NSURLSessionWebSocketMessage message, + ObjCBlock_ffiVoid_NSError completionHandler) { + _lib._objc_msgSend_925(_id, _lib._sel_sendMessage_completionHandler_1, + message._id, completionHandler._id); } - /// ! - /// @abstract Sets the NSURLRequestNetworkServiceType to associate with this request - /// @discussion This method is used to provide the network layers with a hint as to the purpose - /// of the request. Most clients should not need to use this method. - set networkServiceType(int value) { - _lib._objc_msgSend_820(_id, _lib._sel_setNetworkServiceType_1, value); + void receiveMessageWithCompletionHandler_( + ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError + completionHandler) { + _lib._objc_msgSend_926(_id, _lib._sel_receiveMessageWithCompletionHandler_1, + completionHandler._id); } - /// ! - /// @abstract sets whether a connection created with this request is allowed to use - /// the built in cellular radios (if present). - /// @discussion NO if the receiver should not be allowed to use the built in - /// cellular radios to satisfy the request, YES otherwise. The default is YES. - @override - bool get allowsCellularAccess { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsCellularAccess1); + void sendPingWithPongReceiveHandler_( + ObjCBlock_ffiVoid_NSError pongReceiveHandler) { + _lib._objc_msgSend_927(_id, _lib._sel_sendPingWithPongReceiveHandler_1, + pongReceiveHandler._id); } - /// ! - /// @abstract sets whether a connection created with this request is allowed to use - /// the built in cellular radios (if present). - /// @discussion NO if the receiver should not be allowed to use the built in - /// cellular radios to satisfy the request, YES otherwise. The default is YES. - set allowsCellularAccess(bool value) { - _lib._objc_msgSend_453(_id, _lib._sel_setAllowsCellularAccess_1, value); + void cancelWithCloseCode_reason_(int closeCode, NSData? reason) { + _lib._objc_msgSend_928(_id, _lib._sel_cancelWithCloseCode_reason_1, + closeCode, reason?._id ?? ffi.nullptr); } - /// ! - /// @abstract sets whether a connection created with this request is allowed to use - /// network interfaces which have been marked as expensive. - /// @discussion NO if the receiver should not be allowed to use an interface marked as expensive to - /// satisfy the request, YES otherwise. - @override - bool get allowsExpensiveNetworkAccess { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsExpensiveNetworkAccess1); + int get maximumMessageSize { + return _lib._objc_msgSend_75(_id, _lib._sel_maximumMessageSize1); } - /// ! - /// @abstract sets whether a connection created with this request is allowed to use - /// network interfaces which have been marked as expensive. - /// @discussion NO if the receiver should not be allowed to use an interface marked as expensive to - /// satisfy the request, YES otherwise. - set allowsExpensiveNetworkAccess(bool value) { - _lib._objc_msgSend_453( - _id, _lib._sel_setAllowsExpensiveNetworkAccess_1, value); + set maximumMessageSize(int value) { + return _lib._objc_msgSend_626( + _id, _lib._sel_setMaximumMessageSize_1, value); } - /// ! - /// @abstract sets whether a connection created with this request is allowed to use - /// network interfaces which have been marked as constrained. - /// @discussion NO if the receiver should not be allowed to use an interface marked as constrained to - /// satisfy the request, YES otherwise. - @override - bool get allowsConstrainedNetworkAccess { - return _lib._objc_msgSend_12( - _id, _lib._sel_allowsConstrainedNetworkAccess1); + int get closeCode { + return _lib._objc_msgSend_929(_id, _lib._sel_closeCode1); } - /// ! - /// @abstract sets whether a connection created with this request is allowed to use - /// network interfaces which have been marked as constrained. - /// @discussion NO if the receiver should not be allowed to use an interface marked as constrained to - /// satisfy the request, YES otherwise. - set allowsConstrainedNetworkAccess(bool value) { - _lib._objc_msgSend_453( - _id, _lib._sel_setAllowsConstrainedNetworkAccess_1, value); + NSData? get closeReason { + final _ret = _lib._objc_msgSend_227(_id, _lib._sel_closeReason1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - /// ! - /// @abstract returns whether we assume that server supports HTTP/3. Enables QUIC - /// racing without HTTP/3 service discovery. - /// @result YES if server endpoint is known to support HTTP/3. Defaults to NO. - /// The default may be YES in a future OS update. @override - bool get assumesHTTP3Capable { - return _lib._objc_msgSend_12(_id, _lib._sel_assumesHTTP3Capable1); - } - - /// ! - /// @abstract returns whether we assume that server supports HTTP/3. Enables QUIC - /// racing without HTTP/3 service discovery. - /// @result YES if server endpoint is known to support HTTP/3. Defaults to NO. - /// The default may be YES in a future OS update. - set assumesHTTP3Capable(bool value) { - _lib._objc_msgSend_453(_id, _lib._sel_setAssumesHTTP3Capable_1, value); + NSURLSessionWebSocketTask init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); } - /// ! - /// @abstract Sets the NSURLRequestAttribution to associate with this request. - /// @discussion Set to NSURLRequestAttributionUser if the URL was specified by the - /// user. Defaults to NSURLRequestAttributionDeveloper. - @override - int get attribution { - return _lib._objc_msgSend_682(_id, _lib._sel_attribution1); + static NSURLSessionWebSocketTask new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionWebSocketTask1, _lib._sel_new1); + return NSURLSessionWebSocketTask._(_ret, _lib, + retain: false, release: true); } - /// ! - /// @abstract Sets the NSURLRequestAttribution to associate with this request. - /// @discussion Set to NSURLRequestAttributionUser if the URL was specified by the - /// user. Defaults to NSURLRequestAttributionDeveloper. - set attribution(int value) { - _lib._objc_msgSend_821(_id, _lib._sel_setAttribution_1, value); + static NSURLSessionWebSocketTask allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3(_lib._class_NSURLSessionWebSocketTask1, + _lib._sel_allocWithZone_1, zone); + return NSURLSessionWebSocketTask._(_ret, _lib, + retain: false, release: true); } - /// ! - /// @abstract sets whether a request is required to do DNSSEC validation during DNS lookup. - /// @discussion YES, if the DNS lookup for this request should require DNSSEC validation, - /// No otherwise. Defaults to NO. - @override - bool get requiresDNSSECValidation { - return _lib._objc_msgSend_12(_id, _lib._sel_requiresDNSSECValidation1); + static NSURLSessionWebSocketTask alloc(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionWebSocketTask1, _lib._sel_alloc1); + return NSURLSessionWebSocketTask._(_ret, _lib, + retain: false, release: true); } - /// ! - /// @abstract sets whether a request is required to do DNSSEC validation during DNS lookup. - /// @discussion YES, if the DNS lookup for this request should require DNSSEC validation, - /// No otherwise. Defaults to NO. - set requiresDNSSECValidation(bool value) { - _lib._objc_msgSend_453(_id, _lib._sel_setRequiresDNSSECValidation_1, value); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + PedometerBindings _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSURLSessionWebSocketTask1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument?._id ?? ffi.nullptr); } - /// ! - /// @abstract Sets the HTTP request method of the receiver. - @override - NSString? get HTTPMethod { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_HTTPMethod1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_( + PedometerBindings _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSURLSessionWebSocketTask1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - /// ! - /// @abstract Sets the HTTP request method of the receiver. - set HTTPMethod(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setHTTPMethod_1, value?._id ?? ffi.nullptr); + static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { + return _lib._objc_msgSend_12(_lib._class_NSURLSessionWebSocketTask1, + _lib._sel_accessInstanceVariablesDirectly1); } - /// ! - /// @abstract Sets the HTTP header fields of the receiver to the given - /// dictionary. - /// @discussion This method replaces all header fields that may have - /// existed before this method call. - ///

Since HTTP header fields must be string values, each object and - /// key in the dictionary passed to this method must answer YES when - /// sent an -isKindOfClass:[NSString class] message. If either - /// the key or value for a key-value pair answers NO when sent this - /// message, the key-value pair is skipped. - @override - NSDictionary? get allHTTPHeaderFields { - final _ret = _lib._objc_msgSend_324(_id, _lib._sel_allHTTPHeaderFields1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + static bool useStoredAccessor(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLSessionWebSocketTask1, _lib._sel_useStoredAccessor1); } - /// ! - /// @abstract Sets the HTTP header fields of the receiver to the given - /// dictionary. - /// @discussion This method replaces all header fields that may have - /// existed before this method call. - ///

Since HTTP header fields must be string values, each object and - /// key in the dictionary passed to this method must answer YES when - /// sent an -isKindOfClass:[NSString class] message. If either - /// the key or value for a key-value pair answers NO when sent this - /// message, the key-value pair is skipped. - set allHTTPHeaderFields(NSDictionary? value) { - _lib._objc_msgSend_571( - _id, _lib._sel_setAllHTTPHeaderFields_1, value?._id ?? ffi.nullptr); + static NSSet keyPathsForValuesAffectingValueForKey_( + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSURLSessionWebSocketTask1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); + return NSSet._(_ret, _lib, retain: true, release: true); } - /// ! - /// @method setValue:forHTTPHeaderField: - /// @abstract Sets the value of the given HTTP header field. - /// @discussion If a value was previously set for the given header - /// field, that value is replaced with the given value. Note that, in - /// keeping with the HTTP RFC, HTTP header field names are - /// case-insensitive. - /// @param value the header field value. - /// @param field the header field name (case-insensitive). - void setValue_forHTTPHeaderField_(NSString? value, NSString? field) { - return _lib._objc_msgSend_639(_id, _lib._sel_setValue_forHTTPHeaderField_1, - value?._id ?? ffi.nullptr, field?._id ?? ffi.nullptr); + static bool automaticallyNotifiesObserversForKey_( + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSURLSessionWebSocketTask1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } - /// ! - /// @method addValue:forHTTPHeaderField: - /// @abstract Adds an HTTP header field in the current header - /// dictionary. - /// @discussion This method provides a way to add values to header - /// fields incrementally. If a value was previously set for the given - /// header field, the given value is appended to the previously-existing - /// value. The appropriate field delimiter, a comma in the case of HTTP, - /// is added by the implementation, and should not be added to the given - /// value by the caller. Note that, in keeping with the HTTP RFC, HTTP - /// header field names are case-insensitive. - /// @param value the header field value. - /// @param field the header field name (case-insensitive). - void addValue_forHTTPHeaderField_(NSString? value, NSString? field) { - return _lib._objc_msgSend_639(_id, _lib._sel_addValue_forHTTPHeaderField_1, - value?._id ?? ffi.nullptr, field?._id ?? ffi.nullptr); + static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77(_lib._class_NSURLSessionWebSocketTask1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - /// ! - /// @abstract Sets the request body data of the receiver. - /// @discussion This data is sent as the message body of the request, as - /// in done in an HTTP POST request. - @override - NSData? get HTTPBody { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_HTTPBody1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionWebSocketTask1, + _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - /// ! - /// @abstract Sets the request body data of the receiver. - /// @discussion This data is sent as the message body of the request, as - /// in done in an HTTP POST request. - set HTTPBody(NSData? value) { - _lib._objc_msgSend_822( - _id, _lib._sel_setHTTPBody_1, value?._id ?? ffi.nullptr); - } +class NSURLSessionWebSocketMessage extends NSObject { + NSURLSessionWebSocketMessage._( + ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - /// ! - /// @abstract Sets the request body to be the contents of the given stream. - /// @discussion The provided stream should be unopened; the request will take - /// over the stream's delegate. The entire stream's contents will be - /// transmitted as the HTTP body of the request. Note that the body stream - /// and the body data (set by setHTTPBody:, above) are mutually exclusive - /// - setting one will clear the other. - @override - NSInputStream? get HTTPBodyStream { - final _ret = _lib._objc_msgSend_691(_id, _lib._sel_HTTPBodyStream1); - return _ret.address == 0 - ? null - : NSInputStream._(_ret, _lib, retain: true, release: true); + /// Returns a [NSURLSessionWebSocketMessage] that points to the same underlying object as [other]. + static NSURLSessionWebSocketMessage castFrom( + T other) { + return NSURLSessionWebSocketMessage._(other._id, other._lib, + retain: true, release: true); } - /// ! - /// @abstract Sets the request body to be the contents of the given stream. - /// @discussion The provided stream should be unopened; the request will take - /// over the stream's delegate. The entire stream's contents will be - /// transmitted as the HTTP body of the request. Note that the body stream - /// and the body data (set by setHTTPBody:, above) are mutually exclusive - /// - setting one will clear the other. - set HTTPBodyStream(NSInputStream? value) { - _lib._objc_msgSend_823( - _id, _lib._sel_setHTTPBodyStream_1, value?._id ?? ffi.nullptr); + /// Returns a [NSURLSessionWebSocketMessage] that wraps the given raw object pointer. + static NSURLSessionWebSocketMessage castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLSessionWebSocketMessage._(other, lib, + retain: retain, release: release); } - /// ! - /// @abstract Decide whether default cookie handling will happen for - /// this request (YES if cookies should be sent with and set for this request; - /// otherwise NO). - /// @discussion The default is YES - in other words, cookies are sent from and - /// stored to the cookie manager by default. - /// NOTE: In releases prior to 10.3, this value is ignored - @override - bool get HTTPShouldHandleCookies { - return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldHandleCookies1); + /// Returns whether [obj] is an instance of [NSURLSessionWebSocketMessage]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSURLSessionWebSocketMessage1); } - /// ! - /// @abstract Decide whether default cookie handling will happen for - /// this request (YES if cookies should be sent with and set for this request; - /// otherwise NO). - /// @discussion The default is YES - in other words, cookies are sent from and - /// stored to the cookie manager by default. - /// NOTE: In releases prior to 10.3, this value is ignored - set HTTPShouldHandleCookies(bool value) { - _lib._objc_msgSend_453(_id, _lib._sel_setHTTPShouldHandleCookies_1, value); + NSURLSessionWebSocketMessage initWithData_(NSData data) { + final _ret = + _lib._objc_msgSend_220(_id, _lib._sel_initWithData_1, data._id); + return NSURLSessionWebSocketMessage._(_ret, _lib, + retain: true, release: true); } - /// ! - /// @abstract Sets whether the request should not wait for the previous response - /// before transmitting (YES if the receiver should transmit before the previous response is - /// received. NO to wait for the previous response before transmitting) - /// @discussion Calling this method with a YES value does not guarantee HTTP - /// pipelining behavior. This method may have no effect if an HTTP proxy is - /// configured, or if the HTTP request uses an unsafe request method (e.g., POST - /// requests will not pipeline). Pipelining behavior also may not begin until - /// the second request on a given TCP connection. There may be other situations - /// where pipelining does not occur even though YES was set. - /// HTTP 1.1 allows the client to send multiple requests to the server without - /// waiting for a response. Though HTTP 1.1 requires support for pipelining, - /// some servers report themselves as being HTTP 1.1 but do not support - /// pipelining (disconnecting, sending resources misordered, omitting part of - /// a resource, etc.). - @override - bool get HTTPShouldUsePipelining { - return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldUsePipelining1); + NSURLSessionWebSocketMessage initWithString_(NSString string) { + final _ret = + _lib._objc_msgSend_31(_id, _lib._sel_initWithString_1, string._id); + return NSURLSessionWebSocketMessage._(_ret, _lib, + retain: true, release: true); } - /// ! - /// @abstract Sets whether the request should not wait for the previous response - /// before transmitting (YES if the receiver should transmit before the previous response is - /// received. NO to wait for the previous response before transmitting) - /// @discussion Calling this method with a YES value does not guarantee HTTP - /// pipelining behavior. This method may have no effect if an HTTP proxy is - /// configured, or if the HTTP request uses an unsafe request method (e.g., POST - /// requests will not pipeline). Pipelining behavior also may not begin until - /// the second request on a given TCP connection. There may be other situations - /// where pipelining does not occur even though YES was set. - /// HTTP 1.1 allows the client to send multiple requests to the server without - /// waiting for a response. Though HTTP 1.1 requires support for pipelining, - /// some servers report themselves as being HTTP 1.1 but do not support - /// pipelining (disconnecting, sending resources misordered, omitting part of - /// a resource, etc.). - set HTTPShouldUsePipelining(bool value) { - _lib._objc_msgSend_453(_id, _lib._sel_setHTTPShouldUsePipelining_1, value); + int get type { + return _lib._objc_msgSend_924(_id, _lib._sel_type1); } - /// ! - /// @method requestWithURL: - /// @abstract Allocates and initializes an NSURLRequest with the given - /// URL. - /// @discussion Default values are used for cache policy - /// (NSURLRequestUseProtocolCachePolicy) and timeout interval (60 - /// seconds). - /// @param URL The URL for the request. - /// @result A newly-created and autoreleased NSURLRequest instance. - static NSMutableURLRequest requestWithURL_( - PedometerBindings _lib, NSURL? URL) { - final _ret = _lib._objc_msgSend_209(_lib._class_NSMutableURLRequest1, - _lib._sel_requestWithURL_1, URL?._id ?? ffi.nullptr); - return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); + NSData? get data { + final _ret = _lib._objc_msgSend_227(_id, _lib._sel_data1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - /// ! - /// @property supportsSecureCoding - /// @abstract Indicates that NSURLRequest implements the NSSecureCoding protocol. - /// @result A BOOL value set to YES. - static bool getSupportsSecureCoding(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMutableURLRequest1, _lib._sel_supportsSecureCoding1); + NSString? get string { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_string1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - /// ! - /// @method requestWithURL:cachePolicy:timeoutInterval: - /// @abstract Allocates and initializes a NSURLRequest with the given - /// URL and cache policy. - /// @param URL The URL for the request. - /// @param cachePolicy The cache policy for the request. - /// @param timeoutInterval The timeout interval for the request. See the - /// commentary for the timeoutInterval for more information on - /// timeout intervals. - /// @result A newly-created and autoreleased NSURLRequest instance. - static NSMutableURLRequest requestWithURL_cachePolicy_timeoutInterval_( - PedometerBindings _lib, - NSURL? URL, - int cachePolicy, - double timeoutInterval) { - final _ret = _lib._objc_msgSend_679( - _lib._class_NSMutableURLRequest1, - _lib._sel_requestWithURL_cachePolicy_timeoutInterval_1, - URL?._id ?? ffi.nullptr, - cachePolicy, - timeoutInterval); - return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); + @override + NSURLSessionWebSocketMessage init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLSessionWebSocketMessage._(_ret, _lib, + retain: true, release: true); } - static NSMutableURLRequest new1(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableURLRequest1, _lib._sel_new1); - return NSMutableURLRequest._(_ret, _lib, retain: false, release: true); + static NSURLSessionWebSocketMessage new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_new1); + return NSURLSessionWebSocketMessage._(_ret, _lib, + retain: false, release: true); } - static NSMutableURLRequest alloc(PedometerBindings _lib) { + static NSURLSessionWebSocketMessage allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3(_lib._class_NSURLSessionWebSocketMessage1, + _lib._sel_allocWithZone_1, zone); + return NSURLSessionWebSocketMessage._(_ret, _lib, + retain: false, release: true); + } + + static NSURLSessionWebSocketMessage alloc(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableURLRequest1, _lib._sel_alloc1); - return NSMutableURLRequest._(_ret, _lib, retain: false, release: true); + _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_alloc1); + return NSURLSessionWebSocketMessage._(_ret, _lib, + retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSMutableURLRequest1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMutableURLRequest1, + _lib._objc_msgSend_15(_lib._class_NSURLSessionWebSocketMessage1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSMutableURLRequest1, + return _lib._objc_msgSend_12(_lib._class_NSURLSessionWebSocketMessage1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMutableURLRequest1, _lib._sel_useStoredAccessor1); + return _lib._objc_msgSend_12(_lib._class_NSURLSessionWebSocketMessage1, + _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSMutableURLRequest1, + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55( + _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSMutableURLRequest1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSMutableURLRequest1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSURLSessionWebSocketMessage1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71(_lib._class_NSMutableURLRequest1, + final _ret = _lib._objc_msgSend_77( + _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableURLRequest1, _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionWebSocketMessage1, + _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSXMLParser extends NSObject { - NSXMLParser._(ffi.Pointer id, PedometerBindings lib, - {bool retain = false, bool release = false}) +abstract class NSURLSessionWebSocketMessageType { + static const int NSURLSessionWebSocketMessageTypeData = 0; + static const int NSURLSessionWebSocketMessageTypeString = 1; +} + +void _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer, + ffi.Pointer)>()(arg0, arg1); +final _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureRegistryIndex = + 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_registerClosure( + void Function(ffi.Pointer, ffi.Pointer) fn) { + final id = + ++_ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureRegistry[id] = + fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError + extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSXMLParser] that points to the same underlying object as [other]. - static NSXMLParser castFrom(T other) { - return NSXMLParser._(other._id, other._lib, retain: true, release: true); - } + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - /// Returns a [NSXMLParser] that wraps the given raw object pointer. - static NSXMLParser castFromPointer( - PedometerBindings lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSXMLParser._(other, lib, retain: retain, release: release); - } + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError.fromFunction( + PedometerBindings lib, + void Function(NSURLSessionWebSocketMessage?, NSError?) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 ? null : NSURLSessionWebSocketMessage._(arg0, lib, retain: true, release: true), + arg1.address == 0 ? null : NSError._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; - /// Returns whether [obj] is an instance of [NSXMLParser]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLParser1); - } + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError.listener( + PedometerBindings lib, + void Function(NSURLSessionWebSocketMessage?, NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= + ffi.NativeCallable, ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 + ? null + : NSURLSessionWebSocketMessage._(arg0, lib, + retain: true, release: true), + arg1.address == 0 + ? null + : NSError._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; - NSXMLParser initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_209( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSXMLParser._(_ret, _lib, retain: true, release: true); - } + void call(NSURLSessionWebSocketMessage? arg0, NSError? arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1?._id ?? ffi.nullptr); +} - NSXMLParser initWithData_(NSData? data) { - final _ret = _lib._objc_msgSend_211( - _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); - return NSXMLParser._(_ret, _lib, retain: true, release: true); - } +abstract class NSURLSessionWebSocketCloseCode { + static const int NSURLSessionWebSocketCloseCodeInvalid = 0; + static const int NSURLSessionWebSocketCloseCodeNormalClosure = 1000; + static const int NSURLSessionWebSocketCloseCodeGoingAway = 1001; + static const int NSURLSessionWebSocketCloseCodeProtocolError = 1002; + static const int NSURLSessionWebSocketCloseCodeUnsupportedData = 1003; + static const int NSURLSessionWebSocketCloseCodeNoStatusReceived = 1005; + static const int NSURLSessionWebSocketCloseCodeAbnormalClosure = 1006; + static const int NSURLSessionWebSocketCloseCodeInvalidFramePayloadData = 1007; + static const int NSURLSessionWebSocketCloseCodePolicyViolation = 1008; + static const int NSURLSessionWebSocketCloseCodeMessageTooBig = 1009; + static const int NSURLSessionWebSocketCloseCodeMandatoryExtensionMissing = + 1010; + static const int NSURLSessionWebSocketCloseCodeInternalServerError = 1011; + static const int NSURLSessionWebSocketCloseCodeTLSHandshakeFailure = 1015; +} - NSXMLParser initWithStream_(NSInputStream? stream) { - final _ret = _lib._objc_msgSend_829( - _id, _lib._sel_initWithStream_1, stream?._id ?? ffi.nullptr); - return NSXMLParser._(_ret, _lib, retain: true, release: true); - } +void _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureRegistry = , ffi.Pointer, + ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_registerClosure( + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer) + fn) { + final id = + ++_ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); - } +void _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); - set delegate(NSObject? value) { - _lib._objc_msgSend_348( - _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); - } + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - bool get shouldProcessNamespaces { - return _lib._objc_msgSend_12(_id, _lib._sel_shouldProcessNamespaces1); + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError.fromFunction( + PedometerBindings lib, + void Function(NSData?, NSURLResponse?, NSError?) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction, ffi.Pointer, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) => + fn( + arg0.address == 0 + ? null + : NSData._(arg0, lib, retain: true, release: true), + arg1.address == 0 ? null : NSURLResponse._(arg1, lib, retain: true, release: true), + arg2.address == 0 ? null : NSError._(arg2, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError.listener(PedometerBindings lib, + void Function(NSData?, NSURLResponse?, NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= + ffi.NativeCallable, ffi.Pointer, ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_registerClosure((ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + fn( + arg0.address == 0 + ? null + : NSData._(arg0, lib, retain: true, release: true), + arg1.address == 0 + ? null + : NSURLResponse._(arg1, lib, retain: true, release: true), + arg2.address == 0 ? null : NSError._(arg2, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; + + void call(NSData? arg0, NSURLResponse? arg1, NSError? arg2) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>()( + _id, + arg0?._id ?? ffi.nullptr, + arg1?._id ?? ffi.nullptr, + arg2?._id ?? ffi.nullptr); +} + +void _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureRegistry = , ffi.Pointer, + ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_registerClosure( + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer) + fn) { + final id = + ++_ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError.fromFunction( + PedometerBindings lib, void Function(NSURL?, NSURLResponse?, NSError?) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction, ffi.Pointer, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2) => fn( + arg0.address == 0 + ? null + : NSURL._(arg0, lib, retain: true, release: true), + arg1.address == 0 + ? null + : NSURLResponse._(arg1, lib, retain: true, release: true), + arg2.address == 0 ? null : NSError._(arg2, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError.listener( + PedometerBindings lib, void Function(NSURL?, NSURLResponse?, NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= + ffi.NativeCallable, ffi.Pointer, ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) => + fn( + arg0.address == 0 + ? null + : NSURL._(arg0, lib, retain: true, release: true), + arg1.address == 0 ? null : NSURLResponse._(arg1, lib, retain: true, release: true), + arg2.address == 0 ? null : NSError._(arg2, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; + + void call(NSURL? arg0, NSURLResponse? arg1, NSError? arg2) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>()( + _id, + arg0?._id ?? ffi.nullptr, + arg1?._id ?? ffi.nullptr, + arg2?._id ?? ffi.nullptr); +} + +class CMPedometer extends NSObject { + CMPedometer._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [CMPedometer] that points to the same underlying object as [other]. + static CMPedometer castFrom(T other) { + return CMPedometer._(other._id, other._lib, retain: true, release: true); } - set shouldProcessNamespaces(bool value) { - _lib._objc_msgSend_453(_id, _lib._sel_setShouldProcessNamespaces_1, value); + /// Returns a [CMPedometer] that wraps the given raw object pointer. + static CMPedometer castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return CMPedometer._(other, lib, retain: retain, release: release); } - bool get shouldReportNamespacePrefixes { - return _lib._objc_msgSend_12(_id, _lib._sel_shouldReportNamespacePrefixes1); + /// Returns whether [obj] is an instance of [CMPedometer]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_CMPedometer1); } - set shouldReportNamespacePrefixes(bool value) { - _lib._objc_msgSend_453( - _id, _lib._sel_setShouldReportNamespacePrefixes_1, value); + static bool isStepCountingAvailable(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_CMPedometer1, _lib._sel_isStepCountingAvailable1); } - int get externalEntityResolvingPolicy { - return _lib._objc_msgSend_830( - _id, _lib._sel_externalEntityResolvingPolicy1); + static bool isDistanceAvailable(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_CMPedometer1, _lib._sel_isDistanceAvailable1); } - set externalEntityResolvingPolicy(int value) { - _lib._objc_msgSend_831( - _id, _lib._sel_setExternalEntityResolvingPolicy_1, value); + static bool isFloorCountingAvailable(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_CMPedometer1, _lib._sel_isFloorCountingAvailable1); } - NSSet? get allowedExternalEntityURLs { - final _ret = - _lib._objc_msgSend_249(_id, _lib._sel_allowedExternalEntityURLs1); - return _ret.address == 0 - ? null - : NSSet._(_ret, _lib, retain: true, release: true); + static bool isPaceAvailable(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_CMPedometer1, _lib._sel_isPaceAvailable1); } - set allowedExternalEntityURLs(NSSet? value) { - _lib._objc_msgSend_832(_id, _lib._sel_setAllowedExternalEntityURLs_1, - value?._id ?? ffi.nullptr); + static bool isCadenceAvailable(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_CMPedometer1, _lib._sel_isCadenceAvailable1); } - bool parse() { - return _lib._objc_msgSend_12(_id, _lib._sel_parse1); + static bool isPedometerEventTrackingAvailable(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_CMPedometer1, _lib._sel_isPedometerEventTrackingAvailable1); } - void abortParsing() { - return _lib._objc_msgSend_1(_id, _lib._sel_abortParsing1); + static int authorizationStatus(PedometerBindings _lib) { + return _lib._objc_msgSend_941( + _lib._class_CMPedometer1, _lib._sel_authorizationStatus1); } - NSError? get parserError { - final _ret = _lib._objc_msgSend_252(_id, _lib._sel_parserError1); - return _ret.address == 0 - ? null - : NSError._(_ret, _lib, retain: true, release: true); + void queryPedometerDataFromDate_toDate_withHandler_(NSDate start, NSDate end, + ObjCBlock_ffiVoid_CMPedometerData_NSError handler) { + _lib._objc_msgSend_943( + _id, + _lib._sel_queryPedometerDataFromDate_toDate_withHandler_1, + start._id, + end._id, + handler._id); } - bool get shouldResolveExternalEntities { - return _lib._objc_msgSend_12(_id, _lib._sel_shouldResolveExternalEntities1); + void startPedometerUpdatesFromDate_withHandler_( + NSDate start, ObjCBlock_ffiVoid_CMPedometerData_NSError handler) { + _lib._objc_msgSend_944( + _id, + _lib._sel_startPedometerUpdatesFromDate_withHandler_1, + start._id, + handler._id); } - set shouldResolveExternalEntities(bool value) { - _lib._objc_msgSend_453( - _id, _lib._sel_setShouldResolveExternalEntities_1, value); + void stopPedometerUpdates() { + _lib._objc_msgSend_1(_id, _lib._sel_stopPedometerUpdates1); } - NSString? get publicID { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_publicID1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + void startPedometerEventUpdatesWithHandler_( + ObjCBlock_ffiVoid_CMPedometerEvent_NSError handler) { + _lib._objc_msgSend_946( + _id, _lib._sel_startPedometerEventUpdatesWithHandler_1, handler._id); } - NSString? get systemID { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_systemID1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + void stopPedometerEventUpdates() { + _lib._objc_msgSend_1(_id, _lib._sel_stopPedometerEventUpdates1); } - int get lineNumber { - return _lib._objc_msgSend_70(_id, _lib._sel_lineNumber1); + @override + CMPedometer init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return CMPedometer._(_ret, _lib, retain: true, release: true); } - int get columnNumber { - return _lib._objc_msgSend_70(_id, _lib._sel_columnNumber1); + static CMPedometer new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_CMPedometer1, _lib._sel_new1); + return CMPedometer._(_ret, _lib, retain: false, release: true); } - static NSXMLParser new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLParser1, _lib._sel_new1); - return NSXMLParser._(_ret, _lib, retain: false, release: true); + static CMPedometer allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_CMPedometer1, _lib._sel_allocWithZone_1, zone); + return CMPedometer._(_ret, _lib, retain: false, release: true); } - static NSXMLParser alloc(PedometerBindings _lib) { + static CMPedometer alloc(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLParser1, _lib._sel_alloc1); - return NSXMLParser._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_CMPedometer1, _lib._sel_alloc1); + return CMPedometer._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSXMLParser1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_CMPedometer1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSXMLParser1, + _lib._objc_msgSend_15(_lib._class_CMPedometer1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSXMLParser1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_CMPedometer1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSXMLParser1, _lib._sel_useStoredAccessor1); + _lib._class_CMPedometer1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSXMLParser1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_CMPedometer1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSXMLParser1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSXMLParser1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_CMPedometer1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSXMLParser1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_CMPedometer1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSXMLParser1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_CMPedometer1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSXMLParserExternalEntityResolvingPolicy { - static const int NSXMLParserResolveExternalEntitiesNever = 0; - static const int NSXMLParserResolveExternalEntitiesNoNetwork = 1; - static const int NSXMLParserResolveExternalEntitiesSameOriginOnly = 2; - static const int NSXMLParserResolveExternalEntitiesAlways = 3; +abstract class CMAuthorizationStatus { + static const int CMAuthorizationStatusNotDetermined = 0; + static const int CMAuthorizationStatusRestricted = 1; + static const int CMAuthorizationStatusDenied = 2; + static const int CMAuthorizationStatusAuthorized = 3; } -class NSFileWrapper extends NSObject { - NSFileWrapper._(ffi.Pointer id, PedometerBindings lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSFileWrapper] that points to the same underlying object as [other]. - static NSFileWrapper castFrom(T other) { - return NSFileWrapper._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSFileWrapper] that wraps the given raw object pointer. - static NSFileWrapper castFromPointer( - PedometerBindings lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSFileWrapper._(other, lib, retain: retain, release: release); - } +void _ObjCBlock_ffiVoid_CMPedometerData_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer, + ffi.Pointer)>()(arg0, arg1); +final _ObjCBlock_ffiVoid_CMPedometerData_NSError_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_CMPedometerData_NSError_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_CMPedometerData_NSError_registerClosure( + void Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_CMPedometerData_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_CMPedometerData_NSError_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - /// Returns whether [obj] is an instance of [NSFileWrapper]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSFileWrapper1); - } +void _ObjCBlock_ffiVoid_CMPedometerData_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_CMPedometerData_NSError_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_ffiVoid_CMPedometerData_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_CMPedometerData_NSError._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); - NSFileWrapper initWithURL_options_error_( - NSURL? url, int options, ffi.Pointer> outError) { - final _ret = _lib._objc_msgSend_833( - _id, - _lib._sel_initWithURL_options_error_1, - url?._id ?? ffi.nullptr, - options, - outError); - return NSFileWrapper._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_CMPedometerData_NSError.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_CMPedometerData_NSError_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - NSFileWrapper initDirectoryWithFileWrappers_( - NSDictionary? childrenByPreferredName) { - final _ret = _lib._objc_msgSend_141( - _id, - _lib._sel_initDirectoryWithFileWrappers_1, - childrenByPreferredName?._id ?? ffi.nullptr); - return NSFileWrapper._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_CMPedometerData_NSError.fromFunction( + PedometerBindings lib, void Function(CMPedometerData?, NSError?) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_ffiVoid_CMPedometerData_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_CMPedometerData_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 ? null : CMPedometerData._(arg0, lib, retain: true, release: true), + arg1.address == 0 ? null : NSError._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; - NSFileWrapper initRegularFileWithContents_(NSData? contents) { - final _ret = _lib._objc_msgSend_211(_id, - _lib._sel_initRegularFileWithContents_1, contents?._id ?? ffi.nullptr); - return NSFileWrapper._(_ret, _lib, retain: true, release: true); - } + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_CMPedometerData_NSError.listener( + PedometerBindings lib, void Function(CMPedometerData?, NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable, ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_CMPedometerData_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_CMPedometerData_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 + ? null + : CMPedometerData._(arg0, lib, + retain: true, release: true), + arg1.address == 0 + ? null + : NSError._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; - NSFileWrapper initSymbolicLinkWithDestinationURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_209( - _id, - _lib._sel_initSymbolicLinkWithDestinationURL_1, - url?._id ?? ffi.nullptr); - return NSFileWrapper._(_ret, _lib, retain: true, release: true); - } + void call(CMPedometerData? arg0, NSError? arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1?._id ?? ffi.nullptr); +} - NSFileWrapper initWithSerializedRepresentation_( - NSData? serializeRepresentation) { - final _ret = _lib._objc_msgSend_211( - _id, - _lib._sel_initWithSerializedRepresentation_1, - serializeRepresentation?._id ?? ffi.nullptr); - return NSFileWrapper._(_ret, _lib, retain: true, release: true); - } +class CMPedometerData extends NSObject { + CMPedometerData._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - NSFileWrapper initWithCoder_(NSCoder? inCoder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); - return NSFileWrapper._(_ret, _lib, retain: true, release: true); + /// Returns a [CMPedometerData] that points to the same underlying object as [other]. + static CMPedometerData castFrom(T other) { + return CMPedometerData._(other._id, other._lib, + retain: true, release: true); } - bool get directory { - return _lib._objc_msgSend_12(_id, _lib._sel_isDirectory1); + /// Returns a [CMPedometerData] that wraps the given raw object pointer. + static CMPedometerData castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return CMPedometerData._(other, lib, retain: retain, release: release); } - bool get regularFile { - return _lib._objc_msgSend_12(_id, _lib._sel_isRegularFile1); + /// Returns whether [obj] is an instance of [CMPedometerData]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_CMPedometerData1); } - bool get symbolicLink { - return _lib._objc_msgSend_12(_id, _lib._sel_isSymbolicLink1); + NSDate get startDate { + final _ret = _lib._objc_msgSend_163(_id, _lib._sel_startDate1); + return NSDate._(_ret, _lib, retain: true, release: true); } - NSString? get preferredFilename { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_preferredFilename1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSDate get endDate { + final _ret = _lib._objc_msgSend_163(_id, _lib._sel_endDate1); + return NSDate._(_ret, _lib, retain: true, release: true); } - set preferredFilename(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setPreferredFilename_1, value?._id ?? ffi.nullptr); + NSNumber get numberOfSteps { + final _ret = _lib._objc_msgSend_942(_id, _lib._sel_numberOfSteps1); + return NSNumber._(_ret, _lib, retain: true, release: true); } - NSString? get filename { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_filename1); + NSNumber? get distance { + final _ret = _lib._objc_msgSend_166(_id, _lib._sel_distance1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set filename(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setFilename_1, value?._id ?? ffi.nullptr); + : NSNumber._(_ret, _lib, retain: true, release: true); } - NSDictionary? get fileAttributes { - final _ret = _lib._objc_msgSend_324(_id, _lib._sel_fileAttributes1); + NSNumber? get floorsAscended { + final _ret = _lib._objc_msgSend_166(_id, _lib._sel_floorsAscended1); return _ret.address == 0 ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - set fileAttributes(NSDictionary? value) { - _lib._objc_msgSend_571( - _id, _lib._sel_setFileAttributes_1, value?._id ?? ffi.nullptr); - } - - bool matchesContentsOfURL_(NSURL? url) { - return _lib._objc_msgSend_395( - _id, _lib._sel_matchesContentsOfURL_1, url?._id ?? ffi.nullptr); - } - - bool readFromURL_options_error_( - NSURL? url, int options, ffi.Pointer> outError) { - return _lib._objc_msgSend_834(_id, _lib._sel_readFromURL_options_error_1, - url?._id ?? ffi.nullptr, options, outError); - } - - bool writeToURL_options_originalContentsURL_error_( - NSURL? url, - int options, - NSURL? originalContentsURL, - ffi.Pointer> outError) { - return _lib._objc_msgSend_835( - _id, - _lib._sel_writeToURL_options_originalContentsURL_error_1, - url?._id ?? ffi.nullptr, - options, - originalContentsURL?._id ?? ffi.nullptr, - outError); + : NSNumber._(_ret, _lib, retain: true, release: true); } - NSData? get serializedRepresentation { - final _ret = - _lib._objc_msgSend_39(_id, _lib._sel_serializedRepresentation1); + NSNumber? get floorsDescended { + final _ret = _lib._objc_msgSend_166(_id, _lib._sel_floorsDescended1); return _ret.address == 0 ? null - : NSData._(_ret, _lib, retain: true, release: true); - } - - NSString addFileWrapper_(NSFileWrapper? child) { - final _ret = _lib._objc_msgSend_836( - _id, _lib._sel_addFileWrapper_1, child?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString addRegularFileWithContents_preferredFilename_( - NSData? data, NSString? fileName) { - final _ret = _lib._objc_msgSend_837( - _id, - _lib._sel_addRegularFileWithContents_preferredFilename_1, - data?._id ?? ffi.nullptr, - fileName?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - void removeFileWrapper_(NSFileWrapper? child) { - return _lib._objc_msgSend_838( - _id, _lib._sel_removeFileWrapper_1, child?._id ?? ffi.nullptr); + : NSNumber._(_ret, _lib, retain: true, release: true); } - NSDictionary? get fileWrappers { - final _ret = _lib._objc_msgSend_324(_id, _lib._sel_fileWrappers1); + NSNumber? get currentPace { + final _ret = _lib._objc_msgSend_166(_id, _lib._sel_currentPace1); return _ret.address == 0 ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - NSString keyForFileWrapper_(NSFileWrapper? child) { - final _ret = _lib._objc_msgSend_836( - _id, _lib._sel_keyForFileWrapper_1, child?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + : NSNumber._(_ret, _lib, retain: true, release: true); } - NSData? get regularFileContents { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_regularFileContents1); + NSNumber? get currentCadence { + final _ret = _lib._objc_msgSend_166(_id, _lib._sel_currentCadence1); return _ret.address == 0 ? null - : NSData._(_ret, _lib, retain: true, release: true); + : NSNumber._(_ret, _lib, retain: true, release: true); } - NSURL? get symbolicLinkDestinationURL { - final _ret = - _lib._objc_msgSend_40(_id, _lib._sel_symbolicLinkDestinationURL1); + NSNumber? get averageActivePace { + final _ret = _lib._objc_msgSend_166(_id, _lib._sel_averageActivePace1); return _ret.address == 0 ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - NSObject initWithPath_(NSString? path) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithPath_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject initSymbolicLinkWithDestination_(NSString? path) { - final _ret = _lib._objc_msgSend_30(_id, - _lib._sel_initSymbolicLinkWithDestination_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - bool needsToBeUpdatedFromPath_(NSString? path) { - return _lib._objc_msgSend_51( - _id, _lib._sel_needsToBeUpdatedFromPath_1, path?._id ?? ffi.nullptr); - } - - bool updateFromPath_(NSString? path) { - return _lib._objc_msgSend_51( - _id, _lib._sel_updateFromPath_1, path?._id ?? ffi.nullptr); - } - - bool writeToFile_atomically_updateFilenames_( - NSString? path, bool atomicFlag, bool updateFilenamesFlag) { - return _lib._objc_msgSend_839( - _id, - _lib._sel_writeToFile_atomically_updateFilenames_1, - path?._id ?? ffi.nullptr, - atomicFlag, - updateFilenamesFlag); - } - - NSString addFileWithPath_(NSString? path) { - final _ret = _lib._objc_msgSend_56( - _id, _lib._sel_addFileWithPath_1, path?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + : NSNumber._(_ret, _lib, retain: true, release: true); } - NSString addSymbolicLinkWithDestination_preferredFilename_( - NSString? path, NSString? filename) { - final _ret = _lib._objc_msgSend_298( - _id, - _lib._sel_addSymbolicLinkWithDestination_preferredFilename_1, - path?._id ?? ffi.nullptr, - filename?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + @override + CMPedometerData init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return CMPedometerData._(_ret, _lib, retain: true, release: true); } - NSString symbolicLinkDestination() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_symbolicLinkDestination1); - return NSString._(_ret, _lib, retain: true, release: true); + static CMPedometerData new1(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_CMPedometerData1, _lib._sel_new1); + return CMPedometerData._(_ret, _lib, retain: false, release: true); } - static NSFileWrapper new1(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSFileWrapper1, _lib._sel_new1); - return NSFileWrapper._(_ret, _lib, retain: false, release: true); + static CMPedometerData allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_CMPedometerData1, _lib._sel_allocWithZone_1, zone); + return CMPedometerData._(_ret, _lib, retain: false, release: true); } - static NSFileWrapper alloc(PedometerBindings _lib) { + static CMPedometerData alloc(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSFileWrapper1, _lib._sel_alloc1); - return NSFileWrapper._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_CMPedometerData1, _lib._sel_alloc1); + return CMPedometerData._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSFileWrapper1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_CMPedometerData1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSFileWrapper1, + _lib._objc_msgSend_15(_lib._class_CMPedometerData1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSFileWrapper1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_CMPedometerData1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSFileWrapper1, _lib._sel_useStoredAccessor1); + _lib._class_CMPedometerData1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSFileWrapper1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_CMPedometerData1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSFileWrapper1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSFileWrapper1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_CMPedometerData1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSFileWrapper1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77(_lib._class_CMPedometerData1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSFileWrapper1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_CMPedometerData1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSFileWrapperReadingOptions { - static const int NSFileWrapperReadingImmediate = 1; - static const int NSFileWrapperReadingWithoutMapping = 2; +void _ObjCBlock_ffiVoid_CMPedometerEvent_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer, + ffi.Pointer)>()(arg0, arg1); +final _ObjCBlock_ffiVoid_CMPedometerEvent_NSError_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_CMPedometerEvent_NSError_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_CMPedometerEvent_NSError_registerClosure( + void Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_CMPedometerEvent_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_CMPedometerEvent_NSError_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); } -abstract class NSFileWrapperWritingOptions { - static const int NSFileWrapperWritingAtomic = 1; - static const int NSFileWrapperWritingWithNameUpdating = 2; +void _ObjCBlock_ffiVoid_CMPedometerEvent_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_CMPedometerEvent_NSError_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_ffiVoid_CMPedometerEvent_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_CMPedometerEvent_NSError._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_CMPedometerEvent_NSError.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_CMPedometerEvent_NSError_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_CMPedometerEvent_NSError.fromFunction( + PedometerBindings lib, void Function(CMPedometerEvent?, NSError?) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_ffiVoid_CMPedometerEvent_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_CMPedometerEvent_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 ? null : CMPedometerEvent._(arg0, lib, retain: true, release: true), + arg1.address == 0 ? null : NSError._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_CMPedometerEvent_NSError.listener( + PedometerBindings lib, void Function(CMPedometerEvent?, NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable, ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_CMPedometerEvent_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_CMPedometerEvent_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 + ? null + : CMPedometerEvent._(arg0, lib, + retain: true, release: true), + arg1.address == 0 + ? null + : NSError._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; + + void call(CMPedometerEvent? arg0, NSError? arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1?._id ?? ffi.nullptr); } -class NSURLSession extends NSObject { - NSURLSession._(ffi.Pointer id, PedometerBindings lib, +class CMPedometerEvent extends NSObject { + CMPedometerEvent._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSURLSession] that points to the same underlying object as [other]. - static NSURLSession castFrom(T other) { - return NSURLSession._(other._id, other._lib, retain: true, release: true); + /// Returns a [CMPedometerEvent] that points to the same underlying object as [other]. + static CMPedometerEvent castFrom(T other) { + return CMPedometerEvent._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSURLSession] that wraps the given raw object pointer. - static NSURLSession castFromPointer( + /// Returns a [CMPedometerEvent] that wraps the given raw object pointer. + static CMPedometerEvent castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLSession._(other, lib, retain: retain, release: release); + return CMPedometerEvent._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLSession]. + /// Returns whether [obj] is an instance of [CMPedometerEvent]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLSession1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_CMPedometerEvent1); } - static NSURLSession? getSharedSession(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_840( - _lib._class_NSURLSession1, _lib._sel_sharedSession1); - return _ret.address == 0 - ? null - : NSURLSession._(_ret, _lib, retain: true, release: true); + NSDate get date { + final _ret = _lib._objc_msgSend_163(_id, _lib._sel_date1); + return NSDate._(_ret, _lib, retain: true, release: true); } - static NSURLSession sessionWithConfiguration_( - PedometerBindings _lib, NSURLSessionConfiguration? configuration) { - final _ret = _lib._objc_msgSend_851( - _lib._class_NSURLSession1, - _lib._sel_sessionWithConfiguration_1, - configuration?._id ?? ffi.nullptr); - return NSURLSession._(_ret, _lib, retain: true, release: true); + int get type { + return _lib._objc_msgSend_945(_id, _lib._sel_type1); } - static NSURLSession sessionWithConfiguration_delegate_delegateQueue_( - PedometerBindings _lib, - NSURLSessionConfiguration? configuration, - NSObject? delegate, - NSOperationQueue? queue) { - final _ret = _lib._objc_msgSend_852( - _lib._class_NSURLSession1, - _lib._sel_sessionWithConfiguration_delegate_delegateQueue_1, - configuration?._id ?? ffi.nullptr, - delegate?._id ?? ffi.nullptr, - queue?._id ?? ffi.nullptr); - return NSURLSession._(_ret, _lib, retain: true, release: true); + @override + CMPedometerEvent init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return CMPedometerEvent._(_ret, _lib, retain: true, release: true); } - NSOperationQueue? get delegateQueue { - final _ret = _lib._objc_msgSend_721(_id, _lib._sel_delegateQueue1); - return _ret.address == 0 - ? null - : NSOperationQueue._(_ret, _lib, retain: true, release: true); + static CMPedometerEvent new1(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_CMPedometerEvent1, _lib._sel_new1); + return CMPedometerEvent._(_ret, _lib, retain: false, release: true); } - NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); + static CMPedometerEvent allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_CMPedometerEvent1, _lib._sel_allocWithZone_1, zone); + return CMPedometerEvent._(_ret, _lib, retain: false, release: true); } - NSURLSessionConfiguration? get configuration { - final _ret = _lib._objc_msgSend_841(_id, _lib._sel_configuration1); - return _ret.address == 0 - ? null - : NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + static CMPedometerEvent alloc(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_CMPedometerEvent1, _lib._sel_alloc1); + return CMPedometerEvent._(_ret, _lib, retain: false, release: true); } - NSString? get sessionDescription { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sessionDescription1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + PedometerBindings _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_CMPedometerEvent1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument?._id ?? ffi.nullptr); } - set sessionDescription(NSString? value) { - _lib._objc_msgSend_470( - _id, _lib._sel_setSessionDescription_1, value?._id ?? ffi.nullptr); + static void cancelPreviousPerformRequestsWithTarget_( + PedometerBindings _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_CMPedometerEvent1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - void finishTasksAndInvalidate() { - return _lib._objc_msgSend_1(_id, _lib._sel_finishTasksAndInvalidate1); + static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { + return _lib._objc_msgSend_12(_lib._class_CMPedometerEvent1, + _lib._sel_accessInstanceVariablesDirectly1); } - void invalidateAndCancel() { - return _lib._objc_msgSend_1(_id, _lib._sel_invalidateAndCancel1); + static bool useStoredAccessor(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_CMPedometerEvent1, _lib._sel_useStoredAccessor1); } - void resetWithCompletionHandler_(ObjCBlock21 completionHandler) { - return _lib._objc_msgSend_458( - _id, _lib._sel_resetWithCompletionHandler_1, completionHandler._id); + static NSSet keyPathsForValuesAffectingValueForKey_( + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_CMPedometerEvent1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); + return NSSet._(_ret, _lib, retain: true, release: true); } - void flushWithCompletionHandler_(ObjCBlock21 completionHandler) { - return _lib._objc_msgSend_458( - _id, _lib._sel_flushWithCompletionHandler_1, completionHandler._id); + static bool automaticallyNotifiesObserversForKey_( + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_CMPedometerEvent1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } - void getTasksWithCompletionHandler_(ObjCBlock43 completionHandler) { - return _lib._objc_msgSend_853( - _id, _lib._sel_getTasksWithCompletionHandler_1, completionHandler._id); + static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77(_lib._class_CMPedometerEvent1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - void getAllTasksWithCompletionHandler_(ObjCBlock36 completionHandler) { - return _lib._objc_msgSend_854(_id, - _lib._sel_getAllTasksWithCompletionHandler_1, completionHandler._id); + static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_CMPedometerEvent1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - NSURLSessionDataTask dataTaskWithRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_855( - _id, _lib._sel_dataTaskWithRequest_1, request?._id ?? ffi.nullptr); - return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); +abstract class CMPedometerEventType { + static const int CMPedometerEventTypePause = 0; + static const int CMPedometerEventTypeResume = 1; +} + +class CLLocationManager extends NSObject { + CLLocationManager._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [CLLocationManager] that points to the same underlying object as [other]. + static CLLocationManager castFrom(T other) { + return CLLocationManager._(other._id, other._lib, + retain: true, release: true); } - NSURLSessionDataTask dataTaskWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_856( - _id, _lib._sel_dataTaskWithURL_1, url?._id ?? ffi.nullptr); - return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); + /// Returns a [CLLocationManager] that wraps the given raw object pointer. + static CLLocationManager castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return CLLocationManager._(other, lib, retain: retain, release: release); } - NSURLSessionUploadTask uploadTaskWithRequest_fromFile_( - NSURLRequest? request, NSURL? fileURL) { - final _ret = _lib._objc_msgSend_857( - _id, - _lib._sel_uploadTaskWithRequest_fromFile_1, - request?._id ?? ffi.nullptr, - fileURL?._id ?? ffi.nullptr); - return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [CLLocationManager]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_CLLocationManager1); } - NSURLSessionUploadTask uploadTaskWithRequest_fromData_( - NSURLRequest? request, NSData? bodyData) { - final _ret = _lib._objc_msgSend_858( - _id, - _lib._sel_uploadTaskWithRequest_fromData_1, - request?._id ?? ffi.nullptr, - bodyData?._id ?? ffi.nullptr); - return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + bool get locationServicesEnabled { + return _lib._objc_msgSend_12(_id, _lib._sel_locationServicesEnabled1); } - NSURLSessionUploadTask uploadTaskWithStreamedRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_859(_id, - _lib._sel_uploadTaskWithStreamedRequest_1, request?._id ?? ffi.nullptr); - return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + bool get headingAvailable { + return _lib._objc_msgSend_12(_id, _lib._sel_headingAvailable1); } - NSURLSessionDownloadTask downloadTaskWithRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_861( - _id, _lib._sel_downloadTaskWithRequest_1, request?._id ?? ffi.nullptr); - return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + static bool significantLocationChangeMonitoringAvailable( + PedometerBindings _lib) { + return _lib._objc_msgSend_12(_lib._class_CLLocationManager1, + _lib._sel_significantLocationChangeMonitoringAvailable1); } - NSURLSessionDownloadTask downloadTaskWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_862( - _id, _lib._sel_downloadTaskWithURL_1, url?._id ?? ffi.nullptr); - return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + static bool isMonitoringAvailableForClass_( + PedometerBindings _lib, NSObject regionClass) { + return _lib._objc_msgSend_0(_lib._class_CLLocationManager1, + _lib._sel_isMonitoringAvailableForClass_1, regionClass._id); } - NSURLSessionDownloadTask downloadTaskWithResumeData_(NSData? resumeData) { - final _ret = _lib._objc_msgSend_863(_id, - _lib._sel_downloadTaskWithResumeData_1, resumeData?._id ?? ffi.nullptr); - return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + static bool regionMonitoringAvailable(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_CLLocationManager1, _lib._sel_regionMonitoringAvailable1); } - NSURLSessionStreamTask streamTaskWithHostName_port_( - NSString? hostname, int port) { - final _ret = _lib._objc_msgSend_866( - _id, - _lib._sel_streamTaskWithHostName_port_1, - hostname?._id ?? ffi.nullptr, - port); - return NSURLSessionStreamTask._(_ret, _lib, retain: true, release: true); + static bool regionMonitoringEnabled(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_CLLocationManager1, _lib._sel_regionMonitoringEnabled1); } - NSURLSessionStreamTask streamTaskWithNetService_(NSNetService? service) { - final _ret = _lib._objc_msgSend_872( - _id, _lib._sel_streamTaskWithNetService_1, service?._id ?? ffi.nullptr); - return NSURLSessionStreamTask._(_ret, _lib, retain: true, release: true); + static bool isRangingAvailable(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_CLLocationManager1, _lib._sel_isRangingAvailable1); } - NSURLSessionWebSocketTask webSocketTaskWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_879( - _id, _lib._sel_webSocketTaskWithURL_1, url?._id ?? ffi.nullptr); - return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); + int get authorizationStatus { + return _lib._objc_msgSend_947(_id, _lib._sel_authorizationStatus1); } - NSURLSessionWebSocketTask webSocketTaskWithURL_protocols_( - NSURL? url, NSArray? protocols) { - final _ret = _lib._objc_msgSend_880( - _id, - _lib._sel_webSocketTaskWithURL_protocols_1, - url?._id ?? ffi.nullptr, - protocols?._id ?? ffi.nullptr); - return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); + int get accuracyAuthorization { + return _lib._objc_msgSend_948(_id, _lib._sel_accuracyAuthorization1); } - NSURLSessionWebSocketTask webSocketTaskWithRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_881( - _id, _lib._sel_webSocketTaskWithRequest_1, request?._id ?? ffi.nullptr); - return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); + bool get authorizedForWidgetUpdates { + return _lib._objc_msgSend_12(_id, _lib._sel_isAuthorizedForWidgetUpdates1); } - @override - NSURLSession init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSession._(_ret, _lib, retain: true, release: true); + NSObject? get delegate { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_delegate1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSURLSession new1(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLSession1, _lib._sel_new1); - return NSURLSession._(_ret, _lib, retain: false, release: true); + set delegate(NSObject? value) { + return _lib._objc_msgSend_367( + _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } - NSURLSessionDataTask dataTaskWithRequest_completionHandler_( - NSURLRequest? request, ObjCBlock47 completionHandler) { - final _ret = _lib._objc_msgSend_882( - _id, - _lib._sel_dataTaskWithRequest_completionHandler_1, - request?._id ?? ffi.nullptr, - completionHandler._id); - return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); + NSString? get purpose { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_purpose1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSURLSessionDataTask dataTaskWithURL_completionHandler_( - NSURL? url, ObjCBlock47 completionHandler) { - final _ret = _lib._objc_msgSend_883( - _id, - _lib._sel_dataTaskWithURL_completionHandler_1, - url?._id ?? ffi.nullptr, - completionHandler._id); - return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); + set purpose(NSString? value) { + return _lib._objc_msgSend_493( + _id, _lib._sel_setPurpose_1, value?._id ?? ffi.nullptr); } - NSURLSessionUploadTask uploadTaskWithRequest_fromFile_completionHandler_( - NSURLRequest? request, NSURL? fileURL, ObjCBlock47 completionHandler) { - final _ret = _lib._objc_msgSend_884( - _id, - _lib._sel_uploadTaskWithRequest_fromFile_completionHandler_1, - request?._id ?? ffi.nullptr, - fileURL?._id ?? ffi.nullptr, - completionHandler._id); - return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + int get activityType { + return _lib._objc_msgSend_949(_id, _lib._sel_activityType1); } - NSURLSessionUploadTask uploadTaskWithRequest_fromData_completionHandler_( - NSURLRequest? request, NSData? bodyData, ObjCBlock47 completionHandler) { - final _ret = _lib._objc_msgSend_885( - _id, - _lib._sel_uploadTaskWithRequest_fromData_completionHandler_1, - request?._id ?? ffi.nullptr, - bodyData?._id ?? ffi.nullptr, - completionHandler._id); - return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + set activityType(int value) { + return _lib._objc_msgSend_950(_id, _lib._sel_setActivityType_1, value); } - NSURLSessionDownloadTask downloadTaskWithRequest_completionHandler_( - NSURLRequest? request, ObjCBlock48 completionHandler) { - final _ret = _lib._objc_msgSend_886( - _id, - _lib._sel_downloadTaskWithRequest_completionHandler_1, - request?._id ?? ffi.nullptr, - completionHandler._id); - return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + double get distanceFilter { + return _lib._objc_msgSend_156(_id, _lib._sel_distanceFilter1); } - NSURLSessionDownloadTask downloadTaskWithURL_completionHandler_( - NSURL? url, ObjCBlock48 completionHandler) { - final _ret = _lib._objc_msgSend_887( - _id, - _lib._sel_downloadTaskWithURL_completionHandler_1, - url?._id ?? ffi.nullptr, - completionHandler._id); - return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + set distanceFilter(double value) { + return _lib._objc_msgSend_490(_id, _lib._sel_setDistanceFilter_1, value); } - NSURLSessionDownloadTask downloadTaskWithResumeData_completionHandler_( - NSData? resumeData, ObjCBlock48 completionHandler) { - final _ret = _lib._objc_msgSend_888( - _id, - _lib._sel_downloadTaskWithResumeData_completionHandler_1, - resumeData?._id ?? ffi.nullptr, - completionHandler._id); - return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + double get desiredAccuracy { + return _lib._objc_msgSend_156(_id, _lib._sel_desiredAccuracy1); } - static NSURLSession alloc(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLSession1, _lib._sel_alloc1); - return NSURLSession._(_ret, _lib, retain: false, release: true); + set desiredAccuracy(double value) { + return _lib._objc_msgSend_490(_id, _lib._sel_setDesiredAccuracy_1, value); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - PedometerBindings _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURLSession1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + bool get pausesLocationUpdatesAutomatically { + return _lib._objc_msgSend_12( + _id, _lib._sel_pausesLocationUpdatesAutomatically1); } - static void cancelPreviousPerformRequestsWithTarget_( - PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSession1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + set pausesLocationUpdatesAutomatically(bool value) { + return _lib._objc_msgSend_475( + _id, _lib._sel_setPausesLocationUpdatesAutomatically_1, value); } - static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { + bool get allowsBackgroundLocationUpdates { return _lib._objc_msgSend_12( - _lib._class_NSURLSession1, _lib._sel_accessInstanceVariablesDirectly1); + _id, _lib._sel_allowsBackgroundLocationUpdates1); } - static bool useStoredAccessor(PedometerBindings _lib) { + set allowsBackgroundLocationUpdates(bool value) { + return _lib._objc_msgSend_475( + _id, _lib._sel_setAllowsBackgroundLocationUpdates_1, value); + } + + bool get showsBackgroundLocationIndicator { return _lib._objc_msgSend_12( - _lib._class_NSURLSession1, _lib._sel_useStoredAccessor1); + _id, _lib._sel_showsBackgroundLocationIndicator1); } - static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSURLSession1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + set showsBackgroundLocationIndicator(bool value) { + return _lib._objc_msgSend_475( + _id, _lib._sel_setShowsBackgroundLocationIndicator_1, value); } - static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSURLSession1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + CLLocation? get location { + final _ret = _lib._objc_msgSend_961(_id, _lib._sel_location1); + return _ret.address == 0 + ? null + : CLLocation._(_ret, _lib, retain: true, release: true); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSURLSession1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + double get headingFilter { + return _lib._objc_msgSend_156(_id, _lib._sel_headingFilter1); } - static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSURLSession1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + set headingFilter(double value) { + return _lib._objc_msgSend_490(_id, _lib._sel_setHeadingFilter_1, value); } - static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSession1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + int get headingOrientation { + return _lib._objc_msgSend_962(_id, _lib._sel_headingOrientation1); } -} -class NSURLSessionConfiguration extends NSObject { - NSURLSessionConfiguration._(ffi.Pointer id, PedometerBindings lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + set headingOrientation(int value) { + return _lib._objc_msgSend_963( + _id, _lib._sel_setHeadingOrientation_1, value); + } - /// Returns a [NSURLSessionConfiguration] that points to the same underlying object as [other]. - static NSURLSessionConfiguration castFrom(T other) { - return NSURLSessionConfiguration._(other._id, other._lib, - retain: true, release: true); + CLHeading? get heading { + final _ret = _lib._objc_msgSend_964(_id, _lib._sel_heading1); + return _ret.address == 0 + ? null + : CLHeading._(_ret, _lib, retain: true, release: true); } - /// Returns a [NSURLSessionConfiguration] that wraps the given raw object pointer. - static NSURLSessionConfiguration castFromPointer( - PedometerBindings lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLSessionConfiguration._(other, lib, - retain: retain, release: release); + double get maximumRegionMonitoringDistance { + return _lib._objc_msgSend_156( + _id, _lib._sel_maximumRegionMonitoringDistance1); } - /// Returns whether [obj] is an instance of [NSURLSessionConfiguration]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLSessionConfiguration1); + NSSet get monitoredRegions { + final _ret = _lib._objc_msgSend_438(_id, _lib._sel_monitoredRegions1); + return NSSet._(_ret, _lib, retain: true, release: true); } - static NSURLSessionConfiguration? getDefaultSessionConfiguration( - PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_841(_lib._class_NSURLSessionConfiguration1, - _lib._sel_defaultSessionConfiguration1); - return _ret.address == 0 - ? null - : NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + NSSet get rangedRegions { + final _ret = _lib._objc_msgSend_438(_id, _lib._sel_rangedRegions1); + return NSSet._(_ret, _lib, retain: true, release: true); } - static NSURLSessionConfiguration? getEphemeralSessionConfiguration( - PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_841(_lib._class_NSURLSessionConfiguration1, - _lib._sel_ephemeralSessionConfiguration1); - return _ret.address == 0 - ? null - : NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + NSSet get rangedBeaconConstraints { + final _ret = + _lib._objc_msgSend_438(_id, _lib._sel_rangedBeaconConstraints1); + return NSSet._(_ret, _lib, retain: true, release: true); } - static NSURLSessionConfiguration - backgroundSessionConfigurationWithIdentifier_( - PedometerBindings _lib, NSString? identifier) { - final _ret = _lib._objc_msgSend_842( - _lib._class_NSURLSessionConfiguration1, - _lib._sel_backgroundSessionConfigurationWithIdentifier_1, - identifier?._id ?? ffi.nullptr); - return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + void requestWhenInUseAuthorization() { + _lib._objc_msgSend_1(_id, _lib._sel_requestWhenInUseAuthorization1); } - NSString? get identifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_identifier1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + void requestAlwaysAuthorization() { + _lib._objc_msgSend_1(_id, _lib._sel_requestAlwaysAuthorization1); } - int get requestCachePolicy { - return _lib._objc_msgSend_680(_id, _lib._sel_requestCachePolicy1); + void requestTemporaryFullAccuracyAuthorizationWithPurposeKey_completion_( + NSString purposeKey, ObjCBlock_ffiVoid_NSError? completion) { + _lib._objc_msgSend_965( + _id, + _lib._sel_requestTemporaryFullAccuracyAuthorizationWithPurposeKey_completion_1, + purposeKey._id, + completion?._id ?? ffi.nullptr); } - set requestCachePolicy(int value) { - _lib._objc_msgSend_819(_id, _lib._sel_setRequestCachePolicy_1, value); + void requestTemporaryFullAccuracyAuthorizationWithPurposeKey_( + NSString purposeKey) { + _lib._objc_msgSend_199( + _id, + _lib._sel_requestTemporaryFullAccuracyAuthorizationWithPurposeKey_1, + purposeKey._id); } - double get timeoutIntervalForRequest { - return _lib._objc_msgSend_147(_id, _lib._sel_timeoutIntervalForRequest1); + void startUpdatingLocation() { + _lib._objc_msgSend_1(_id, _lib._sel_startUpdatingLocation1); } - set timeoutIntervalForRequest(double value) { - _lib._objc_msgSend_467( - _id, _lib._sel_setTimeoutIntervalForRequest_1, value); + void stopUpdatingLocation() { + _lib._objc_msgSend_1(_id, _lib._sel_stopUpdatingLocation1); } - double get timeoutIntervalForResource { - return _lib._objc_msgSend_147(_id, _lib._sel_timeoutIntervalForResource1); + void requestLocation() { + _lib._objc_msgSend_1(_id, _lib._sel_requestLocation1); } - set timeoutIntervalForResource(double value) { - _lib._objc_msgSend_467( - _id, _lib._sel_setTimeoutIntervalForResource_1, value); + void startUpdatingHeading() { + _lib._objc_msgSend_1(_id, _lib._sel_startUpdatingHeading1); } - int get networkServiceType { - return _lib._objc_msgSend_681(_id, _lib._sel_networkServiceType1); + void stopUpdatingHeading() { + _lib._objc_msgSend_1(_id, _lib._sel_stopUpdatingHeading1); } - set networkServiceType(int value) { - _lib._objc_msgSend_820(_id, _lib._sel_setNetworkServiceType_1, value); + void dismissHeadingCalibrationDisplay() { + _lib._objc_msgSend_1(_id, _lib._sel_dismissHeadingCalibrationDisplay1); } - bool get allowsCellularAccess { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsCellularAccess1); + void startMonitoringSignificantLocationChanges() { + _lib._objc_msgSend_1( + _id, _lib._sel_startMonitoringSignificantLocationChanges1); } - set allowsCellularAccess(bool value) { - _lib._objc_msgSend_453(_id, _lib._sel_setAllowsCellularAccess_1, value); + void stopMonitoringSignificantLocationChanges() { + _lib._objc_msgSend_1( + _id, _lib._sel_stopMonitoringSignificantLocationChanges1); } - bool get allowsExpensiveNetworkAccess { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsExpensiveNetworkAccess1); + void startMonitoringLocationPushesWithCompletion_( + ObjCBlock_ffiVoid_NSData_NSError? completion) { + _lib._objc_msgSend_966( + _id, + _lib._sel_startMonitoringLocationPushesWithCompletion_1, + completion?._id ?? ffi.nullptr); } - set allowsExpensiveNetworkAccess(bool value) { - _lib._objc_msgSend_453( - _id, _lib._sel_setAllowsExpensiveNetworkAccess_1, value); + void stopMonitoringLocationPushes() { + _lib._objc_msgSend_1(_id, _lib._sel_stopMonitoringLocationPushes1); } - bool get allowsConstrainedNetworkAccess { - return _lib._objc_msgSend_12( - _id, _lib._sel_allowsConstrainedNetworkAccess1); + void startMonitoringForRegion_desiredAccuracy_( + CLRegion region, double accuracy) { + _lib._objc_msgSend_969( + _id, + _lib._sel_startMonitoringForRegion_desiredAccuracy_1, + region._id, + accuracy); } - set allowsConstrainedNetworkAccess(bool value) { - _lib._objc_msgSend_453( - _id, _lib._sel_setAllowsConstrainedNetworkAccess_1, value); + void stopMonitoringForRegion_(CLRegion region) { + _lib._objc_msgSend_970( + _id, _lib._sel_stopMonitoringForRegion_1, region._id); } - bool get requiresDNSSECValidation { - return _lib._objc_msgSend_12(_id, _lib._sel_requiresDNSSECValidation1); + void startMonitoringForRegion_(CLRegion region) { + _lib._objc_msgSend_970( + _id, _lib._sel_startMonitoringForRegion_1, region._id); } - set requiresDNSSECValidation(bool value) { - _lib._objc_msgSend_453(_id, _lib._sel_setRequiresDNSSECValidation_1, value); + void requestStateForRegion_(CLRegion region) { + _lib._objc_msgSend_970(_id, _lib._sel_requestStateForRegion_1, region._id); } - bool get waitsForConnectivity { - return _lib._objc_msgSend_12(_id, _lib._sel_waitsForConnectivity1); + void startRangingBeaconsInRegion_(CLBeaconRegion region) { + _lib._objc_msgSend_984( + _id, _lib._sel_startRangingBeaconsInRegion_1, region._id); } - set waitsForConnectivity(bool value) { - _lib._objc_msgSend_453(_id, _lib._sel_setWaitsForConnectivity_1, value); + void stopRangingBeaconsInRegion_(CLBeaconRegion region) { + _lib._objc_msgSend_984( + _id, _lib._sel_stopRangingBeaconsInRegion_1, region._id); } - bool get discretionary { - return _lib._objc_msgSend_12(_id, _lib._sel_isDiscretionary1); + void startRangingBeaconsSatisfyingConstraint_( + CLBeaconIdentityConstraint constraint) { + _lib._objc_msgSend_985(_id, + _lib._sel_startRangingBeaconsSatisfyingConstraint_1, constraint._id); } - set discretionary(bool value) { - _lib._objc_msgSend_453(_id, _lib._sel_setDiscretionary_1, value); + void stopRangingBeaconsSatisfyingConstraint_( + CLBeaconIdentityConstraint constraint) { + _lib._objc_msgSend_985(_id, + _lib._sel_stopRangingBeaconsSatisfyingConstraint_1, constraint._id); } - NSString? get sharedContainerIdentifier { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_sharedContainerIdentifier1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + void allowDeferredLocationUpdatesUntilTraveled_timeout_( + double distance, double timeout) { + _lib._objc_msgSend_986( + _id, + _lib._sel_allowDeferredLocationUpdatesUntilTraveled_timeout_1, + distance, + timeout); } - set sharedContainerIdentifier(NSString? value) { - _lib._objc_msgSend_470(_id, _lib._sel_setSharedContainerIdentifier_1, - value?._id ?? ffi.nullptr); + void disallowDeferredLocationUpdates() { + _lib._objc_msgSend_1(_id, _lib._sel_disallowDeferredLocationUpdates1); } - bool get sessionSendsLaunchEvents { - return _lib._objc_msgSend_12(_id, _lib._sel_sessionSendsLaunchEvents1); + static bool deferredLocationUpdatesAvailable(PedometerBindings _lib) { + return _lib._objc_msgSend_12(_lib._class_CLLocationManager1, + _lib._sel_deferredLocationUpdatesAvailable1); } - set sessionSendsLaunchEvents(bool value) { - _lib._objc_msgSend_453(_id, _lib._sel_setSessionSendsLaunchEvents_1, value); + void requestHistoricalLocationsWithPurposeKey_sampleCount_completionHandler_( + NSString purposeKey, + int sampleCount, + ObjCBlock_ffiVoid_NSArray_NSError handler) { + _lib._objc_msgSend_987( + _id, + _lib._sel_requestHistoricalLocationsWithPurposeKey_sampleCount_completionHandler_1, + purposeKey._id, + sampleCount, + handler._id); } - NSDictionary? get connectionProxyDictionary { - final _ret = - _lib._objc_msgSend_324(_id, _lib._sel_connectionProxyDictionary1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + void startMonitoringVisits() { + _lib._objc_msgSend_1(_id, _lib._sel_startMonitoringVisits1); } - set connectionProxyDictionary(NSDictionary? value) { - _lib._objc_msgSend_571(_id, _lib._sel_setConnectionProxyDictionary_1, - value?._id ?? ffi.nullptr); + void stopMonitoringVisits() { + _lib._objc_msgSend_1(_id, _lib._sel_stopMonitoringVisits1); } - int get TLSMinimumSupportedProtocol { - return _lib._objc_msgSend_843(_id, _lib._sel_TLSMinimumSupportedProtocol1); + @override + CLLocationManager init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return CLLocationManager._(_ret, _lib, retain: true, release: true); } - set TLSMinimumSupportedProtocol(int value) { - _lib._objc_msgSend_844( - _id, _lib._sel_setTLSMinimumSupportedProtocol_1, value); + static CLLocationManager new1(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_CLLocationManager1, _lib._sel_new1); + return CLLocationManager._(_ret, _lib, retain: false, release: true); + } + + static CLLocationManager allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_CLLocationManager1, _lib._sel_allocWithZone_1, zone); + return CLLocationManager._(_ret, _lib, retain: false, release: true); } - int get TLSMaximumSupportedProtocol { - return _lib._objc_msgSend_843(_id, _lib._sel_TLSMaximumSupportedProtocol1); + static CLLocationManager alloc(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_CLLocationManager1, _lib._sel_alloc1); + return CLLocationManager._(_ret, _lib, retain: false, release: true); } - set TLSMaximumSupportedProtocol(int value) { - _lib._objc_msgSend_844( - _id, _lib._sel_setTLSMaximumSupportedProtocol_1, value); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + PedometerBindings _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_CLLocationManager1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument?._id ?? ffi.nullptr); } - int get TLSMinimumSupportedProtocolVersion { - return _lib._objc_msgSend_845( - _id, _lib._sel_TLSMinimumSupportedProtocolVersion1); + static void cancelPreviousPerformRequestsWithTarget_( + PedometerBindings _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_CLLocationManager1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - set TLSMinimumSupportedProtocolVersion(int value) { - _lib._objc_msgSend_846( - _id, _lib._sel_setTLSMinimumSupportedProtocolVersion_1, value); + static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { + return _lib._objc_msgSend_12(_lib._class_CLLocationManager1, + _lib._sel_accessInstanceVariablesDirectly1); } - int get TLSMaximumSupportedProtocolVersion { - return _lib._objc_msgSend_845( - _id, _lib._sel_TLSMaximumSupportedProtocolVersion1); + static bool useStoredAccessor(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_CLLocationManager1, _lib._sel_useStoredAccessor1); } - set TLSMaximumSupportedProtocolVersion(int value) { - _lib._objc_msgSend_846( - _id, _lib._sel_setTLSMaximumSupportedProtocolVersion_1, value); + static NSSet keyPathsForValuesAffectingValueForKey_( + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_CLLocationManager1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); + return NSSet._(_ret, _lib, retain: true, release: true); } - bool get HTTPShouldUsePipelining { - return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldUsePipelining1); + static bool automaticallyNotifiesObserversForKey_( + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_CLLocationManager1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } - set HTTPShouldUsePipelining(bool value) { - _lib._objc_msgSend_453(_id, _lib._sel_setHTTPShouldUsePipelining_1, value); + static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77(_lib._class_CLLocationManager1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - bool get HTTPShouldSetCookies { - return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldSetCookies1); + static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_CLLocationManager1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - set HTTPShouldSetCookies(bool value) { - _lib._objc_msgSend_453(_id, _lib._sel_setHTTPShouldSetCookies_1, value); +abstract class CLAuthorizationStatus { + static const int kCLAuthorizationStatusNotDetermined = 0; + static const int kCLAuthorizationStatusRestricted = 1; + static const int kCLAuthorizationStatusDenied = 2; + static const int kCLAuthorizationStatusAuthorizedAlways = 3; + static const int kCLAuthorizationStatusAuthorizedWhenInUse = 4; + static const int kCLAuthorizationStatusAuthorized = 3; +} + +abstract class CLAccuracyAuthorization { + static const int CLAccuracyAuthorizationFullAccuracy = 0; + static const int CLAccuracyAuthorizationReducedAccuracy = 1; +} + +abstract class CLActivityType { + static const int CLActivityTypeOther = 1; + static const int CLActivityTypeAutomotiveNavigation = 2; + static const int CLActivityTypeFitness = 3; + static const int CLActivityTypeOtherNavigation = 4; + static const int CLActivityTypeAirborne = 5; +} + +class CLLocation extends NSObject { + CLLocation._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [CLLocation] that points to the same underlying object as [other]. + static CLLocation castFrom(T other) { + return CLLocation._(other._id, other._lib, retain: true, release: true); } - int get HTTPCookieAcceptPolicy { - return _lib._objc_msgSend_677(_id, _lib._sel_HTTPCookieAcceptPolicy1); + /// Returns a [CLLocation] that wraps the given raw object pointer. + static CLLocation castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return CLLocation._(other, lib, retain: retain, release: release); } - set HTTPCookieAcceptPolicy(int value) { - _lib._objc_msgSend_678(_id, _lib._sel_setHTTPCookieAcceptPolicy_1, value); + /// Returns whether [obj] is an instance of [CLLocation]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_CLLocation1); } - NSDictionary? get HTTPAdditionalHeaders { - final _ret = _lib._objc_msgSend_324(_id, _lib._sel_HTTPAdditionalHeaders1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + CLLocation initWithLatitude_longitude_(double latitude, double longitude) { + final _ret = _lib._objc_msgSend_951( + _id, _lib._sel_initWithLatitude_longitude_1, latitude, longitude); + return CLLocation._(_ret, _lib, retain: true, release: true); } - set HTTPAdditionalHeaders(NSDictionary? value) { - _lib._objc_msgSend_571( - _id, _lib._sel_setHTTPAdditionalHeaders_1, value?._id ?? ffi.nullptr); + CLLocation + initWithCoordinate_altitude_horizontalAccuracy_verticalAccuracy_timestamp_( + CLLocationCoordinate2D coordinate, + double altitude, + double hAccuracy, + double vAccuracy, + NSDate timestamp) { + final _ret = _lib._objc_msgSend_952( + _id, + _lib._sel_initWithCoordinate_altitude_horizontalAccuracy_verticalAccuracy_timestamp_1, + coordinate, + altitude, + hAccuracy, + vAccuracy, + timestamp._id); + return CLLocation._(_ret, _lib, retain: true, release: true); + } + + CLLocation + initWithCoordinate_altitude_horizontalAccuracy_verticalAccuracy_course_speed_timestamp_( + CLLocationCoordinate2D coordinate, + double altitude, + double hAccuracy, + double vAccuracy, + double course, + double speed, + NSDate timestamp) { + final _ret = _lib._objc_msgSend_953( + _id, + _lib._sel_initWithCoordinate_altitude_horizontalAccuracy_verticalAccuracy_course_speed_timestamp_1, + coordinate, + altitude, + hAccuracy, + vAccuracy, + course, + speed, + timestamp._id); + return CLLocation._(_ret, _lib, retain: true, release: true); + } + + CLLocation + initWithCoordinate_altitude_horizontalAccuracy_verticalAccuracy_course_courseAccuracy_speed_speedAccuracy_timestamp_( + CLLocationCoordinate2D coordinate, + double altitude, + double hAccuracy, + double vAccuracy, + double course, + double courseAccuracy, + double speed, + double speedAccuracy, + NSDate timestamp) { + final _ret = _lib._objc_msgSend_954( + _id, + _lib._sel_initWithCoordinate_altitude_horizontalAccuracy_verticalAccuracy_course_courseAccuracy_speed_speedAccuracy_timestamp_1, + coordinate, + altitude, + hAccuracy, + vAccuracy, + course, + courseAccuracy, + speed, + speedAccuracy, + timestamp._id); + return CLLocation._(_ret, _lib, retain: true, release: true); + } + + CLLocation + initWithCoordinate_altitude_horizontalAccuracy_verticalAccuracy_course_courseAccuracy_speed_speedAccuracy_timestamp_sourceInfo_( + CLLocationCoordinate2D coordinate, + double altitude, + double hAccuracy, + double vAccuracy, + double course, + double courseAccuracy, + double speed, + double speedAccuracy, + NSDate timestamp, + CLLocationSourceInformation sourceInfo) { + final _ret = _lib._objc_msgSend_956( + _id, + _lib._sel_initWithCoordinate_altitude_horizontalAccuracy_verticalAccuracy_course_courseAccuracy_speed_speedAccuracy_timestamp_sourceInfo_1, + coordinate, + altitude, + hAccuracy, + vAccuracy, + course, + courseAccuracy, + speed, + speedAccuracy, + timestamp._id, + sourceInfo._id); + return CLLocation._(_ret, _lib, retain: true, release: true); } - int get HTTPMaximumConnectionsPerHost { - return _lib._objc_msgSend_70(_id, _lib._sel_HTTPMaximumConnectionsPerHost1); + void getCoordinate(ffi.Pointer stret) { + _lib._objc_msgSend_957(stret, _id, _lib._sel_coordinate1); } - set HTTPMaximumConnectionsPerHost(int value) { - _lib._objc_msgSend_583( - _id, _lib._sel_setHTTPMaximumConnectionsPerHost_1, value); + double get altitude { + return _lib._objc_msgSend_156(_id, _lib._sel_altitude1); } - NSHTTPCookieStorage? get HTTPCookieStorage { - final _ret = _lib._objc_msgSend_671(_id, _lib._sel_HTTPCookieStorage1); - return _ret.address == 0 - ? null - : NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); + double get ellipsoidalAltitude { + return _lib._objc_msgSend_156(_id, _lib._sel_ellipsoidalAltitude1); } - set HTTPCookieStorage(NSHTTPCookieStorage? value) { - _lib._objc_msgSend_847( - _id, _lib._sel_setHTTPCookieStorage_1, value?._id ?? ffi.nullptr); + double get horizontalAccuracy { + return _lib._objc_msgSend_156(_id, _lib._sel_horizontalAccuracy1); } - NSURLCredentialStorage? get URLCredentialStorage { - final _ret = _lib._objc_msgSend_805(_id, _lib._sel_URLCredentialStorage1); - return _ret.address == 0 - ? null - : NSURLCredentialStorage._(_ret, _lib, retain: true, release: true); + double get verticalAccuracy { + return _lib._objc_msgSend_156(_id, _lib._sel_verticalAccuracy1); } - set URLCredentialStorage(NSURLCredentialStorage? value) { - _lib._objc_msgSend_848( - _id, _lib._sel_setURLCredentialStorage_1, value?._id ?? ffi.nullptr); + double get course { + return _lib._objc_msgSend_156(_id, _lib._sel_course1); } - NSURLCache? get URLCache { - final _ret = _lib._objc_msgSend_775(_id, _lib._sel_URLCache1); - return _ret.address == 0 - ? null - : NSURLCache._(_ret, _lib, retain: true, release: true); + double get courseAccuracy { + return _lib._objc_msgSend_156(_id, _lib._sel_courseAccuracy1); } - set URLCache(NSURLCache? value) { - _lib._objc_msgSend_776( - _id, _lib._sel_setURLCache_1, value?._id ?? ffi.nullptr); + double get speed { + return _lib._objc_msgSend_156(_id, _lib._sel_speed1); } - bool get shouldUseExtendedBackgroundIdleMode { - return _lib._objc_msgSend_12( - _id, _lib._sel_shouldUseExtendedBackgroundIdleMode1); + double get speedAccuracy { + return _lib._objc_msgSend_156(_id, _lib._sel_speedAccuracy1); } - set shouldUseExtendedBackgroundIdleMode(bool value) { - _lib._objc_msgSend_453( - _id, _lib._sel_setShouldUseExtendedBackgroundIdleMode_1, value); + NSDate get timestamp { + final _ret = _lib._objc_msgSend_163(_id, _lib._sel_timestamp1); + return NSDate._(_ret, _lib, retain: true, release: true); } - NSArray? get protocolClasses { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_protocolClasses1); + CLFloor? get floor { + final _ret = _lib._objc_msgSend_958(_id, _lib._sel_floor1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : CLFloor._(_ret, _lib, retain: true, release: true); } - set protocolClasses(NSArray? value) { - _lib._objc_msgSend_609( - _id, _lib._sel_setProtocolClasses_1, value?._id ?? ffi.nullptr); + CLLocationSourceInformation? get sourceInformation { + final _ret = _lib._objc_msgSend_959(_id, _lib._sel_sourceInformation1); + return _ret.address == 0 + ? null + : CLLocationSourceInformation._(_ret, _lib, + retain: true, release: true); } - int get multipathServiceType { - return _lib._objc_msgSend_849(_id, _lib._sel_multipathServiceType1); + double getDistanceFrom_(CLLocation location) { + return _lib._objc_msgSend_960( + _id, _lib._sel_getDistanceFrom_1, location._id); } - set multipathServiceType(int value) { - _lib._objc_msgSend_850(_id, _lib._sel_setMultipathServiceType_1, value); + double distanceFromLocation_(CLLocation location) { + return _lib._objc_msgSend_960( + _id, _lib._sel_distanceFromLocation_1, location._id); } @override - NSURLSessionConfiguration init() { + CLLocation init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + return CLLocation._(_ret, _lib, retain: true, release: true); } - static NSURLSessionConfiguration new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionConfiguration1, _lib._sel_new1); - return NSURLSessionConfiguration._(_ret, _lib, - retain: false, release: true); + static CLLocation new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_CLLocation1, _lib._sel_new1); + return CLLocation._(_ret, _lib, retain: false, release: true); } - static NSURLSessionConfiguration backgroundSessionConfiguration_( - PedometerBindings _lib, NSString? identifier) { - final _ret = _lib._objc_msgSend_842( - _lib._class_NSURLSessionConfiguration1, - _lib._sel_backgroundSessionConfiguration_1, - identifier?._id ?? ffi.nullptr); - return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + static CLLocation allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_CLLocation1, _lib._sel_allocWithZone_1, zone); + return CLLocation._(_ret, _lib, retain: false, release: true); } - static NSURLSessionConfiguration alloc(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionConfiguration1, _lib._sel_alloc1); - return NSURLSessionConfiguration._(_ret, _lib, - retain: false, release: true); + static CLLocation alloc(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_CLLocation1, _lib._sel_alloc1); + return CLLocation._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURLSessionConfiguration1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_CLLocation1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSessionConfiguration1, + _lib._objc_msgSend_15(_lib._class_CLLocation1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionConfiguration1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_CLLocation1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLSessionConfiguration1, _lib._sel_useStoredAccessor1); + _lib._class_CLLocation1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSURLSessionConfiguration1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_CLLocation1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSURLSessionConfiguration1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSURLSessionConfiguration1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_CLLocation1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71(_lib._class_NSURLSessionConfiguration1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_CLLocation1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionConfiguration1, - _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2( + _lib._class_CLLocation1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -/// ! -/// @enum SSLProtocol enumeration -/// @abstract Enumerations for the set of supported TLS and DTLS protocol versions. -/// -/// @note This enumeration is deprecated. Use `tls_protocol_version_t` instead. -abstract class SSLProtocol { - static const int kSSLProtocolUnknown = 0; - static const int kTLSProtocol1 = 4; - static const int kTLSProtocol11 = 7; - static const int kTLSProtocol12 = 8; - static const int kDTLSProtocol1 = 9; - static const int kTLSProtocol13 = 10; - static const int kDTLSProtocol12 = 11; - static const int kTLSProtocolMaxSupported = 999; - static const int kSSLProtocol2 = 1; - static const int kSSLProtocol3 = 2; - static const int kSSLProtocol3Only = 3; - static const int kTLSProtocol1Only = 5; - static const int kSSLProtocolAll = 6; -} - -/// ! -/// @enum tls_protocol_version_t enumeration -/// @abstract Enumerations for the set of supported TLS and DTLS protocol versions. -/// -/// @constant tls_protocol_version_TLSv10 TLS 1.0 [https://tools.ietf.org/html/rfc4346] -/// @constant tls_protocol_version_TLSv11 TLS 1.1 [https://tools.ietf.org/html/rfc2246] -/// @constant tls_protocol_version_TLSv12 TLS 1.2 [https://tools.ietf.org/html/rfc5246] -/// @constant tls_protocol_version_TLSv13 TLS 1.3 [https://tools.ietf.org/html/rfc8446] -/// @constant tls_protocol_version_DTLSv10 DTLS 1.0 [https://tools.ietf.org/html/rfc4347] -/// @constant tls_protocol_version_DTLSv12 DTLS 1.2 [https://tools.ietf.org/html/rfc6347] -abstract class tls_protocol_version_t { - static const int tls_protocol_version_TLSv10 = 769; - static const int tls_protocol_version_TLSv11 = 770; - static const int tls_protocol_version_TLSv12 = 771; - static const int tls_protocol_version_TLSv13 = 772; - static const int tls_protocol_version_DTLSv10 = -257; - static const int tls_protocol_version_DTLSv12 = -259; -} - -/// ! -/// @enum NSURLSessionMultipathServiceType -/// -/// @discussion The NSURLSessionMultipathServiceType enum defines constants that -/// can be used to specify the multipath service type to associate an NSURLSession. The -/// multipath service type determines whether multipath TCP should be attempted and the conditions -/// for creating and switching between subflows. Using these service types requires the appropriate entitlement. Any connection attempt will fail if the process does not have the required entitlement. -/// A primary interface is a generally less expensive interface in terms of both cost and power (such as WiFi or ethernet). A secondary interface is more expensive (such as 3G or LTE). -/// -/// @constant NSURLSessionMultipathServiceTypeNone Specifies that multipath tcp should not be used. Connections will use a single flow. -/// This is the default value. No entitlement is required to set this value. -/// -/// @constant NSURLSessionMultipathServiceTypeHandover Specifies that a secondary subflow should only be used -/// when the primary subflow is not performing adequately. Requires the com.apple.developer.networking.multipath entitlement. -/// -/// @constant NSURLSessionMultipathServiceTypeInteractive Specifies that a secondary subflow should be used if the -/// primary subflow is not performing adequately (packet loss, high round trip times, bandwidth issues). The secondary -/// subflow will be created more aggressively than with NSURLSessionMultipathServiceTypeHandover. Requires the com.apple.developer.networking.multipath entitlement. -/// -/// @constant NSURLSessionMultipathServiceTypeAggregate Specifies that multiple subflows across multiple interfaces should be -/// used for better bandwidth. This mode is only available for experimentation on devices configured for development use. -/// It can be enabled in the Developer section of the Settings app. -abstract class NSURLSessionMultipathServiceType { - static const int NSURLSessionMultipathServiceTypeNone = 0; - static const int NSURLSessionMultipathServiceTypeHandover = 1; - static const int NSURLSessionMultipathServiceTypeInteractive = 2; - static const int NSURLSessionMultipathServiceTypeAggregate = 3; -} - -void _ObjCBlock43_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock43_closureRegistry = {}; -int _ObjCBlock43_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock43_registerClosure(Function fn) { - final id = ++_ObjCBlock43_closureRegistryIndex; - _ObjCBlock43_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock43_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return _ObjCBlock43_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock43 extends _ObjCBlockBase { - ObjCBlock43._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock43.fromFunctionPointer( - PedometerBindings lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock43_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock43.fromFunction( - PedometerBindings lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock43_closureTrampoline) - .cast(), - _ObjCBlock43_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } +final class CLLocationCoordinate2D extends ffi.Struct { + @ffi.Double() + external double latitude; - ffi.Pointer<_ObjCBlock> get pointer => _id; + @ffi.Double() + external double longitude; } -class NSURLSessionUploadTask extends NSURLSessionDataTask { - NSURLSessionUploadTask._(ffi.Pointer id, PedometerBindings lib, +class CLLocationSourceInformation extends NSObject { + CLLocationSourceInformation._( + ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSURLSessionUploadTask] that points to the same underlying object as [other]. - static NSURLSessionUploadTask castFrom(T other) { - return NSURLSessionUploadTask._(other._id, other._lib, + /// Returns a [CLLocationSourceInformation] that points to the same underlying object as [other]. + static CLLocationSourceInformation castFrom(T other) { + return CLLocationSourceInformation._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSURLSessionUploadTask] that wraps the given raw object pointer. - static NSURLSessionUploadTask castFromPointer( + /// Returns a [CLLocationSourceInformation] that wraps the given raw object pointer. + static CLLocationSourceInformation castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLSessionUploadTask._(other, lib, + return CLLocationSourceInformation._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLSessionUploadTask]. + /// Returns whether [obj] is an instance of [CLLocationSourceInformation]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLSessionUploadTask1); + obj._lib._class_CLLocationSourceInformation1); + } + + CLLocationSourceInformation + initWithSoftwareSimulationState_andExternalAccessoryState_( + bool isSoftware, bool isAccessory) { + final _ret = _lib._objc_msgSend_955( + _id, + _lib._sel_initWithSoftwareSimulationState_andExternalAccessoryState_1, + isSoftware, + isAccessory); + return CLLocationSourceInformation._(_ret, _lib, + retain: true, release: true); + } + + bool get isSimulatedBySoftware { + return _lib._objc_msgSend_12(_id, _lib._sel_isSimulatedBySoftware1); + } + + bool get isProducedByAccessory { + return _lib._objc_msgSend_12(_id, _lib._sel_isProducedByAccessory1); } @override - NSURLSessionUploadTask init() { + CLLocationSourceInformation init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + return CLLocationSourceInformation._(_ret, _lib, + retain: true, release: true); } - static NSURLSessionUploadTask new1(PedometerBindings _lib) { + static CLLocationSourceInformation new1(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionUploadTask1, _lib._sel_new1); - return NSURLSessionUploadTask._(_ret, _lib, retain: false, release: true); + _lib._class_CLLocationSourceInformation1, _lib._sel_new1); + return CLLocationSourceInformation._(_ret, _lib, + retain: false, release: true); } - static NSURLSessionUploadTask alloc(PedometerBindings _lib) { + static CLLocationSourceInformation allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3(_lib._class_CLLocationSourceInformation1, + _lib._sel_allocWithZone_1, zone); + return CLLocationSourceInformation._(_ret, _lib, + retain: false, release: true); + } + + static CLLocationSourceInformation alloc(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionUploadTask1, _lib._sel_alloc1); - return NSURLSessionUploadTask._(_ret, _lib, retain: false, release: true); + _lib._class_CLLocationSourceInformation1, _lib._sel_alloc1); + return CLLocationSourceInformation._(_ret, _lib, + retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURLSessionUploadTask1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_CLLocationSourceInformation1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSessionUploadTask1, + _lib._objc_msgSend_15(_lib._class_CLLocationSourceInformation1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionUploadTask1, + return _lib._objc_msgSend_12(_lib._class_CLLocationSourceInformation1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLSessionUploadTask1, _lib._sel_useStoredAccessor1); + _lib._class_CLLocationSourceInformation1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSURLSessionUploadTask1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_CLLocationSourceInformation1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSURLSessionUploadTask1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSURLSessionUploadTask1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_CLLocationSourceInformation1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71(_lib._class_NSURLSessionUploadTask1, + final _ret = _lib._objc_msgSend_77(_lib._class_CLLocationSourceInformation1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionUploadTask1, + final _ret = _lib._objc_msgSend_2(_lib._class_CLLocationSourceInformation1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSURLSessionDownloadTask extends NSURLSessionTask { - NSURLSessionDownloadTask._(ffi.Pointer id, PedometerBindings lib, +class CLFloor extends NSObject { + CLFloor._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSURLSessionDownloadTask] that points to the same underlying object as [other]. - static NSURLSessionDownloadTask castFrom(T other) { - return NSURLSessionDownloadTask._(other._id, other._lib, - retain: true, release: true); + /// Returns a [CLFloor] that points to the same underlying object as [other]. + static CLFloor castFrom(T other) { + return CLFloor._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSURLSessionDownloadTask] that wraps the given raw object pointer. - static NSURLSessionDownloadTask castFromPointer( + /// Returns a [CLFloor] that wraps the given raw object pointer. + static CLFloor castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLSessionDownloadTask._(other, lib, - retain: retain, release: release); + return CLFloor._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLSessionDownloadTask]. + /// Returns whether [obj] is an instance of [CLFloor]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLSessionDownloadTask1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_CLFloor1); } - void cancelByProducingResumeData_(ObjCBlock44 completionHandler) { - return _lib._objc_msgSend_860( - _id, _lib._sel_cancelByProducingResumeData_1, completionHandler._id); + int get level { + return _lib._objc_msgSend_75(_id, _lib._sel_level1); } @override - NSURLSessionDownloadTask init() { + CLFloor init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + return CLFloor._(_ret, _lib, retain: true, release: true); } - static NSURLSessionDownloadTask new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionDownloadTask1, _lib._sel_new1); - return NSURLSessionDownloadTask._(_ret, _lib, retain: false, release: true); + static CLFloor new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_CLFloor1, _lib._sel_new1); + return CLFloor._(_ret, _lib, retain: false, release: true); } - static NSURLSessionDownloadTask alloc(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionDownloadTask1, _lib._sel_alloc1); - return NSURLSessionDownloadTask._(_ret, _lib, retain: false, release: true); + static CLFloor allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_CLFloor1, _lib._sel_allocWithZone_1, zone); + return CLFloor._(_ret, _lib, retain: false, release: true); + } + + static CLFloor alloc(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_CLFloor1, _lib._sel_alloc1); + return CLFloor._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURLSessionDownloadTask1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_CLFloor1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSessionDownloadTask1, + _lib._objc_msgSend_15(_lib._class_CLFloor1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionDownloadTask1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_CLFloor1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLSessionDownloadTask1, _lib._sel_useStoredAccessor1); + _lib._class_CLFloor1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSURLSessionDownloadTask1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_CLFloor1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSURLSessionDownloadTask1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSURLSessionDownloadTask1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_CLFloor1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71(_lib._class_NSURLSessionDownloadTask1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_CLFloor1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionDownloadTask1, - _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2( + _lib._class_CLFloor1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -void _ObjCBlock44_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock44_closureRegistry = {}; -int _ObjCBlock44_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock44_registerClosure(Function fn) { - final id = ++_ObjCBlock44_closureRegistryIndex; - _ObjCBlock44_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock44_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock44_closureRegistry[block.ref.target.address]!(arg0); -} - -class ObjCBlock44 extends _ObjCBlockBase { - ObjCBlock44._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock44.fromFunctionPointer( - PedometerBindings lib, - ffi.Pointer< - ffi - .NativeFunction arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock44_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock44.fromFunction( - PedometerBindings lib, void Function(ffi.Pointer arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock44_closureTrampoline) - .cast(), - _ObjCBlock44_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; +abstract class CLDeviceOrientation { + static const int CLDeviceOrientationUnknown = 0; + static const int CLDeviceOrientationPortrait = 1; + static const int CLDeviceOrientationPortraitUpsideDown = 2; + static const int CLDeviceOrientationLandscapeLeft = 3; + static const int CLDeviceOrientationLandscapeRight = 4; + static const int CLDeviceOrientationFaceUp = 5; + static const int CLDeviceOrientationFaceDown = 6; } -class NSURLSessionStreamTask extends NSURLSessionTask { - NSURLSessionStreamTask._(ffi.Pointer id, PedometerBindings lib, +class CLHeading extends NSObject { + CLHeading._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSURLSessionStreamTask] that points to the same underlying object as [other]. - static NSURLSessionStreamTask castFrom(T other) { - return NSURLSessionStreamTask._(other._id, other._lib, - retain: true, release: true); + /// Returns a [CLHeading] that points to the same underlying object as [other]. + static CLHeading castFrom(T other) { + return CLHeading._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSURLSessionStreamTask] that wraps the given raw object pointer. - static NSURLSessionStreamTask castFromPointer( + /// Returns a [CLHeading] that wraps the given raw object pointer. + static CLHeading castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLSessionStreamTask._(other, lib, - retain: retain, release: release); + return CLHeading._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLSessionStreamTask]. + /// Returns whether [obj] is an instance of [CLHeading]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLSessionStreamTask1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_CLHeading1); } - void readDataOfMinLength_maxLength_timeout_completionHandler_(int minBytes, - int maxBytes, double timeout, ObjCBlock45 completionHandler) { - return _lib._objc_msgSend_864( - _id, - _lib._sel_readDataOfMinLength_maxLength_timeout_completionHandler_1, - minBytes, - maxBytes, - timeout, - completionHandler._id); + double get magneticHeading { + return _lib._objc_msgSend_156(_id, _lib._sel_magneticHeading1); } - void writeData_timeout_completionHandler_( - NSData? data, double timeout, ObjCBlock18 completionHandler) { - return _lib._objc_msgSend_865( - _id, - _lib._sel_writeData_timeout_completionHandler_1, - data?._id ?? ffi.nullptr, - timeout, - completionHandler._id); + double get trueHeading { + return _lib._objc_msgSend_156(_id, _lib._sel_trueHeading1); } - void captureStreams() { - return _lib._objc_msgSend_1(_id, _lib._sel_captureStreams1); + double get headingAccuracy { + return _lib._objc_msgSend_156(_id, _lib._sel_headingAccuracy1); } - void closeWrite() { - return _lib._objc_msgSend_1(_id, _lib._sel_closeWrite1); + double get x { + return _lib._objc_msgSend_156(_id, _lib._sel_x1); } - void closeRead() { - return _lib._objc_msgSend_1(_id, _lib._sel_closeRead1); + double get y { + return _lib._objc_msgSend_156(_id, _lib._sel_y1); } - void startSecureConnection() { - return _lib._objc_msgSend_1(_id, _lib._sel_startSecureConnection1); + double get z { + return _lib._objc_msgSend_156(_id, _lib._sel_z1); } - void stopSecureConnection() { - return _lib._objc_msgSend_1(_id, _lib._sel_stopSecureConnection1); + NSDate get timestamp { + final _ret = _lib._objc_msgSend_163(_id, _lib._sel_timestamp1); + return NSDate._(_ret, _lib, retain: true, release: true); } @override - NSURLSessionStreamTask init() { + CLHeading init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionStreamTask._(_ret, _lib, retain: true, release: true); + return CLHeading._(_ret, _lib, retain: true, release: true); } - static NSURLSessionStreamTask new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionStreamTask1, _lib._sel_new1); - return NSURLSessionStreamTask._(_ret, _lib, retain: false, release: true); + static CLHeading new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_CLHeading1, _lib._sel_new1); + return CLHeading._(_ret, _lib, retain: false, release: true); } - static NSURLSessionStreamTask alloc(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionStreamTask1, _lib._sel_alloc1); - return NSURLSessionStreamTask._(_ret, _lib, retain: false, release: true); + static CLHeading allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_CLHeading1, _lib._sel_allocWithZone_1, zone); + return CLHeading._(_ret, _lib, retain: false, release: true); + } + + static CLHeading alloc(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_CLHeading1, _lib._sel_alloc1); + return CLHeading._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURLSessionStreamTask1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_CLHeading1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSessionStreamTask1, + _lib._objc_msgSend_15(_lib._class_CLHeading1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionStreamTask1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_CLHeading1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLSessionStreamTask1, _lib._sel_useStoredAccessor1); + _lib._class_CLHeading1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSURLSessionStreamTask1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_CLHeading1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSURLSessionStreamTask1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSURLSessionStreamTask1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_CLHeading1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71(_lib._class_NSURLSessionStreamTask1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_CLHeading1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } - static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionStreamTask1, - _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -void _ObjCBlock45_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, bool arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock45_closureRegistry = {}; -int _ObjCBlock45_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock45_registerClosure(Function fn) { - final id = ++_ObjCBlock45_closureRegistryIndex; - _ObjCBlock45_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock45_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return _ObjCBlock45_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock45 extends _ObjCBlockBase { - ObjCBlock45._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock45.fromFunctionPointer( - PedometerBindings lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, - ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>( - _ObjCBlock45_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock45.fromFunction( - PedometerBindings lib, - void Function(ffi.Pointer arg0, bool arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>( - _ObjCBlock45_closureTrampoline) - .cast(), - _ObjCBlock45_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call( - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; + static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_CLHeading1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } } -class NSNetService extends NSObject { - NSNetService._(ffi.Pointer id, PedometerBindings lib, +class CLRegion extends NSObject { + CLRegion._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSNetService] that points to the same underlying object as [other]. - static NSNetService castFrom(T other) { - return NSNetService._(other._id, other._lib, retain: true, release: true); + /// Returns a [CLRegion] that points to the same underlying object as [other]. + static CLRegion castFrom(T other) { + return CLRegion._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSNetService] that wraps the given raw object pointer. - static NSNetService castFromPointer( + /// Returns a [CLRegion] that wraps the given raw object pointer. + static CLRegion castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSNetService._(other, lib, retain: retain, release: release); + return CLRegion._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSNetService]. + /// Returns whether [obj] is an instance of [CLRegion]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSNetService1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_CLRegion1); } - NSNetService initWithDomain_type_name_port_( - NSString? domain, NSString? type, NSString? name, int port) { - final _ret = _lib._objc_msgSend_867( + CLRegion initCircularRegionWithCenter_radius_identifier_( + CLLocationCoordinate2D center, double radius, NSString identifier) { + final _ret = _lib._objc_msgSend_967( _id, - _lib._sel_initWithDomain_type_name_port_1, - domain?._id ?? ffi.nullptr, - type?._id ?? ffi.nullptr, - name?._id ?? ffi.nullptr, - port); - return NSNetService._(_ret, _lib, retain: true, release: true); + _lib._sel_initCircularRegionWithCenter_radius_identifier_1, + center, + radius, + identifier._id); + return CLRegion._(_ret, _lib, retain: true, release: true); } - NSNetService initWithDomain_type_name_( - NSString? domain, NSString? type, NSString? name) { - final _ret = _lib._objc_msgSend_26( - _id, - _lib._sel_initWithDomain_type_name_1, - domain?._id ?? ffi.nullptr, - type?._id ?? ffi.nullptr, - name?._id ?? ffi.nullptr); - return NSNetService._(_ret, _lib, retain: true, release: true); + void getCenter(ffi.Pointer stret) { + _lib._objc_msgSend_957(stret, _id, _lib._sel_center1); } - void scheduleInRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { - return _lib._objc_msgSend_650(_id, _lib._sel_scheduleInRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode._id); + double get radius { + return _lib._objc_msgSend_156(_id, _lib._sel_radius1); } - void removeFromRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { - return _lib._objc_msgSend_650(_id, _lib._sel_removeFromRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode._id); + NSString get identifier { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_identifier1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); + bool get notifyOnEntry { + return _lib._objc_msgSend_12(_id, _lib._sel_notifyOnEntry1); } - set delegate(NSObject? value) { - _lib._objc_msgSend_348( - _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); + set notifyOnEntry(bool value) { + return _lib._objc_msgSend_475(_id, _lib._sel_setNotifyOnEntry_1, value); } - bool get includesPeerToPeer { - return _lib._objc_msgSend_12(_id, _lib._sel_includesPeerToPeer1); + bool get notifyOnExit { + return _lib._objc_msgSend_12(_id, _lib._sel_notifyOnExit1); } - set includesPeerToPeer(bool value) { - _lib._objc_msgSend_453(_id, _lib._sel_setIncludesPeerToPeer_1, value); + set notifyOnExit(bool value) { + return _lib._objc_msgSend_475(_id, _lib._sel_setNotifyOnExit_1, value); } - NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + bool containsCoordinate_(CLLocationCoordinate2D coordinate) { + return _lib._objc_msgSend_968( + _id, _lib._sel_containsCoordinate_1, coordinate); } - NSString? get type { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_type1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + @override + CLRegion init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return CLRegion._(_ret, _lib, retain: true, release: true); } - NSString? get domain { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_domain1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static CLRegion new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_CLRegion1, _lib._sel_new1); + return CLRegion._(_ret, _lib, retain: false, release: true); } - NSString? get hostName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_hostName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static CLRegion allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_CLRegion1, _lib._sel_allocWithZone_1, zone); + return CLRegion._(_ret, _lib, retain: false, release: true); } - NSArray? get addresses { - final _ret = _lib._objc_msgSend_71(_id, _lib._sel_addresses1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static CLRegion alloc(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_CLRegion1, _lib._sel_alloc1); + return CLRegion._(_ret, _lib, retain: false, release: true); } - int get port { - return _lib._objc_msgSend_70(_id, _lib._sel_port1); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + PedometerBindings _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_CLRegion1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument?._id ?? ffi.nullptr); } - void publish() { - return _lib._objc_msgSend_1(_id, _lib._sel_publish1); + static void cancelPreviousPerformRequestsWithTarget_( + PedometerBindings _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_CLRegion1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - void publishWithOptions_(int options) { - return _lib._objc_msgSend_868(_id, _lib._sel_publishWithOptions_1, options); + static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_CLRegion1, _lib._sel_accessInstanceVariablesDirectly1); } - void resolve() { - return _lib._objc_msgSend_1(_id, _lib._sel_resolve1); + static bool useStoredAccessor(PedometerBindings _lib) { + return _lib._objc_msgSend_12( + _lib._class_CLRegion1, _lib._sel_useStoredAccessor1); } - void stop() { - return _lib._objc_msgSend_1(_id, _lib._sel_stop1); + static NSSet keyPathsForValuesAffectingValueForKey_( + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_CLRegion1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); + return NSSet._(_ret, _lib, retain: true, release: true); } - static NSDictionary dictionaryFromTXTRecordData_( - PedometerBindings _lib, NSData? txtData) { - final _ret = _lib._objc_msgSend_869(_lib._class_NSNetService1, - _lib._sel_dictionaryFromTXTRecordData_1, txtData?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + static bool automaticallyNotifiesObserversForKey_( + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_CLRegion1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } - static NSData dataFromTXTRecordDictionary_( - PedometerBindings _lib, NSDictionary? txtDictionary) { - final _ret = _lib._objc_msgSend_870( - _lib._class_NSNetService1, - _lib._sel_dataFromTXTRecordDictionary_1, - txtDictionary?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); + static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77( + _lib._class_CLRegion1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - void resolveWithTimeout_(double timeout) { - return _lib._objc_msgSend_466(_id, _lib._sel_resolveWithTimeout_1, timeout); + static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_CLRegion1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - bool getInputStream_outputStream_( - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - return _lib._objc_msgSend_871(_id, _lib._sel_getInputStream_outputStream_1, - inputStream, outputStream); +class CLBeaconRegion extends CLRegion { + CLBeaconRegion._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [CLBeaconRegion] that points to the same underlying object as [other]. + static CLBeaconRegion castFrom(T other) { + return CLBeaconRegion._(other._id, other._lib, retain: true, release: true); } - bool setTXTRecordData_(NSData? recordData) { - return _lib._objc_msgSend_23( - _id, _lib._sel_setTXTRecordData_1, recordData?._id ?? ffi.nullptr); + /// Returns a [CLBeaconRegion] that wraps the given raw object pointer. + static CLBeaconRegion castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return CLBeaconRegion._(other, lib, retain: retain, release: release); } - NSData TXTRecordData() { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_TXTRecordData1); - return NSData._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [CLBeaconRegion]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_CLBeaconRegion1); } - void startMonitoring() { - return _lib._objc_msgSend_1(_id, _lib._sel_startMonitoring1); + CLBeaconRegion initWithUUID_identifier_(NSUUID uuid, NSString identifier) { + final _ret = _lib._objc_msgSend_974( + _id, _lib._sel_initWithUUID_identifier_1, uuid._id, identifier._id); + return CLBeaconRegion._(_ret, _lib, retain: true, release: true); } - void stopMonitoring() { - return _lib._objc_msgSend_1(_id, _lib._sel_stopMonitoring1); + CLBeaconRegion initWithProximityUUID_identifier_( + NSUUID proximityUUID, NSString identifier) { + final _ret = _lib._objc_msgSend_974( + _id, + _lib._sel_initWithProximityUUID_identifier_1, + proximityUUID._id, + identifier._id); + return CLBeaconRegion._(_ret, _lib, retain: true, release: true); } - static NSNetService new1(PedometerBindings _lib) { + CLBeaconRegion initWithUUID_major_identifier_( + NSUUID uuid, int major, NSString identifier) { + final _ret = _lib._objc_msgSend_975( + _id, + _lib._sel_initWithUUID_major_identifier_1, + uuid._id, + major, + identifier._id); + return CLBeaconRegion._(_ret, _lib, retain: true, release: true); + } + + CLBeaconRegion initWithProximityUUID_major_identifier_( + NSUUID proximityUUID, int major, NSString identifier) { + final _ret = _lib._objc_msgSend_975( + _id, + _lib._sel_initWithProximityUUID_major_identifier_1, + proximityUUID._id, + major, + identifier._id); + return CLBeaconRegion._(_ret, _lib, retain: true, release: true); + } + + CLBeaconRegion initWithUUID_major_minor_identifier_( + NSUUID uuid, int major, int minor, NSString identifier) { + final _ret = _lib._objc_msgSend_976( + _id, + _lib._sel_initWithUUID_major_minor_identifier_1, + uuid._id, + major, + minor, + identifier._id); + return CLBeaconRegion._(_ret, _lib, retain: true, release: true); + } + + CLBeaconRegion initWithProximityUUID_major_minor_identifier_( + NSUUID proximityUUID, int major, int minor, NSString identifier) { + final _ret = _lib._objc_msgSend_976( + _id, + _lib._sel_initWithProximityUUID_major_minor_identifier_1, + proximityUUID._id, + major, + minor, + identifier._id); + return CLBeaconRegion._(_ret, _lib, retain: true, release: true); + } + + CLBeaconRegion initWithBeaconIdentityConstraint_identifier_( + CLBeaconIdentityConstraint beaconIdentityConstraint, + NSString identifier) { + final _ret = _lib._objc_msgSend_981( + _id, + _lib._sel_initWithBeaconIdentityConstraint_identifier_1, + beaconIdentityConstraint._id, + identifier._id); + return CLBeaconRegion._(_ret, _lib, retain: true, release: true); + } + + NSMutableDictionary peripheralDataWithMeasuredPower_( + NSNumber? measuredPower) { + final _ret = _lib._objc_msgSend_982( + _id, + _lib._sel_peripheralDataWithMeasuredPower_1, + measuredPower?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + CLBeaconIdentityConstraint get beaconIdentityConstraint { final _ret = - _lib._objc_msgSend_2(_lib._class_NSNetService1, _lib._sel_new1); - return NSNetService._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_983(_id, _lib._sel_beaconIdentityConstraint1); + return CLBeaconIdentityConstraint._(_ret, _lib, + retain: true, release: true); } - static NSNetService alloc(PedometerBindings _lib) { + NSUUID get UUID { + final _ret = _lib._objc_msgSend_977(_id, _lib._sel_UUID1); + return NSUUID._(_ret, _lib, retain: true, release: true); + } + + NSUUID get proximityUUID { + final _ret = _lib._objc_msgSend_977(_id, _lib._sel_proximityUUID1); + return NSUUID._(_ret, _lib, retain: true, release: true); + } + + NSNumber? get major { + final _ret = _lib._objc_msgSend_166(_id, _lib._sel_major1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); + } + + NSNumber? get minor { + final _ret = _lib._objc_msgSend_166(_id, _lib._sel_minor1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); + } + + bool get notifyEntryStateOnDisplay { + return _lib._objc_msgSend_12(_id, _lib._sel_notifyEntryStateOnDisplay1); + } + + set notifyEntryStateOnDisplay(bool value) { + return _lib._objc_msgSend_475( + _id, _lib._sel_setNotifyEntryStateOnDisplay_1, value); + } + + @override + CLBeaconRegion initCircularRegionWithCenter_radius_identifier_( + CLLocationCoordinate2D center, double radius, NSString identifier) { + final _ret = _lib._objc_msgSend_967( + _id, + _lib._sel_initCircularRegionWithCenter_radius_identifier_1, + center, + radius, + identifier._id); + return CLBeaconRegion._(_ret, _lib, retain: true, release: true); + } + + @override + CLBeaconRegion init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return CLBeaconRegion._(_ret, _lib, retain: true, release: true); + } + + static CLBeaconRegion new1(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSNetService1, _lib._sel_alloc1); - return NSNetService._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_CLBeaconRegion1, _lib._sel_new1); + return CLBeaconRegion._(_ret, _lib, retain: false, release: true); + } + + static CLBeaconRegion allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_CLBeaconRegion1, _lib._sel_allocWithZone_1, zone); + return CLBeaconRegion._(_ret, _lib, retain: false, release: true); + } + + static CLBeaconRegion alloc(PedometerBindings _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_CLBeaconRegion1, _lib._sel_alloc1); + return CLBeaconRegion._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSNetService1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_CLBeaconRegion1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSNetService1, + _lib._objc_msgSend_15(_lib._class_CLBeaconRegion1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSNetService1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_CLBeaconRegion1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSNetService1, _lib._sel_useStoredAccessor1); + _lib._class_CLBeaconRegion1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSNetService1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_CLBeaconRegion1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSNetService1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSNetService1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_CLBeaconRegion1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSNetService1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_CLBeaconRegion1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSNetService1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_CLBeaconRegion1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSNetServiceOptions { - static const int NSNetServiceNoAutoRename = 1; - static const int NSNetServiceListenForConnections = 2; -} - -class NSURLSessionWebSocketTask extends NSURLSessionTask { - NSURLSessionWebSocketTask._(ffi.Pointer id, PedometerBindings lib, +class NSUUID extends NSObject { + NSUUID._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSURLSessionWebSocketTask] that points to the same underlying object as [other]. - static NSURLSessionWebSocketTask castFrom(T other) { - return NSURLSessionWebSocketTask._(other._id, other._lib, - retain: true, release: true); + /// Returns a [NSUUID] that points to the same underlying object as [other]. + static NSUUID castFrom(T other) { + return NSUUID._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSURLSessionWebSocketTask] that wraps the given raw object pointer. - static NSURLSessionWebSocketTask castFromPointer( + /// Returns a [NSUUID] that wraps the given raw object pointer. + static NSUUID castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLSessionWebSocketTask._(other, lib, - retain: retain, release: release); + return NSUUID._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLSessionWebSocketTask]. + /// Returns whether [obj] is an instance of [NSUUID]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLSessionWebSocketTask1); - } - - void sendMessage_completionHandler_( - NSURLSessionWebSocketMessage? message, ObjCBlock18 completionHandler) { - return _lib._objc_msgSend_874( - _id, - _lib._sel_sendMessage_completionHandler_1, - message?._id ?? ffi.nullptr, - completionHandler._id); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSUUID1); } - void receiveMessageWithCompletionHandler_(ObjCBlock46 completionHandler) { - return _lib._objc_msgSend_875(_id, - _lib._sel_receiveMessageWithCompletionHandler_1, completionHandler._id); + static NSUUID UUID(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSUUID1, _lib._sel_UUID1); + return NSUUID._(_ret, _lib, retain: true, release: true); } - void sendPingWithPongReceiveHandler_(ObjCBlock18 pongReceiveHandler) { - return _lib._objc_msgSend_876(_id, - _lib._sel_sendPingWithPongReceiveHandler_1, pongReceiveHandler._id); + @override + NSUUID init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSUUID._(_ret, _lib, retain: true, release: true); } - void cancelWithCloseCode_reason_(int closeCode, NSData? reason) { - return _lib._objc_msgSend_877(_id, _lib._sel_cancelWithCloseCode_reason_1, - closeCode, reason?._id ?? ffi.nullptr); + NSUUID? initWithUUIDString_(NSString string) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_initWithUUIDString_1, string._id); + return _ret.address == 0 + ? null + : NSUUID._(_ret, _lib, retain: true, release: true); } - int get maximumMessageSize { - return _lib._objc_msgSend_70(_id, _lib._sel_maximumMessageSize1); + NSUUID initWithUUIDBytes_(ffi.Pointer bytes) { + final _ret = + _lib._objc_msgSend_971(_id, _lib._sel_initWithUUIDBytes_1, bytes); + return NSUUID._(_ret, _lib, retain: true, release: true); } - set maximumMessageSize(int value) { - _lib._objc_msgSend_583(_id, _lib._sel_setMaximumMessageSize_1, value); + void getUUIDBytes_(ffi.Pointer uuid) { + _lib._objc_msgSend_972(_id, _lib._sel_getUUIDBytes_1, uuid); } - int get closeCode { - return _lib._objc_msgSend_878(_id, _lib._sel_closeCode1); + int compare_(NSUUID otherUUID) { + return _lib._objc_msgSend_973(_id, _lib._sel_compare_1, otherUUID._id); } - NSData? get closeReason { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_closeReason1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + NSString get UUIDString { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_UUIDString1); + return NSString._(_ret, _lib, retain: true, release: true); } - @override - NSURLSessionWebSocketTask init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); + static NSUUID new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSUUID1, _lib._sel_new1); + return NSUUID._(_ret, _lib, retain: false, release: true); } - static NSURLSessionWebSocketTask new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionWebSocketTask1, _lib._sel_new1); - return NSURLSessionWebSocketTask._(_ret, _lib, - retain: false, release: true); + static NSUUID allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSUUID1, _lib._sel_allocWithZone_1, zone); + return NSUUID._(_ret, _lib, retain: false, release: true); } - static NSURLSessionWebSocketTask alloc(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionWebSocketTask1, _lib._sel_alloc1); - return NSURLSessionWebSocketTask._(_ret, _lib, - retain: false, release: true); + static NSUUID alloc(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSUUID1, _lib._sel_alloc1); + return NSUUID._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURLSessionWebSocketTask1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSUUID1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSessionWebSocketTask1, + _lib._objc_msgSend_15(_lib._class_NSUUID1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionWebSocketTask1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSUUID1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLSessionWebSocketTask1, _lib._sel_useStoredAccessor1); + _lib._class_NSUUID1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSURLSessionWebSocketTask1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSUUID1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSURLSessionWebSocketTask1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSURLSessionWebSocketTask1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_NSUUID1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71(_lib._class_NSURLSessionWebSocketTask1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_NSUUID1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionWebSocketTask1, - _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSUUID1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSURLSessionWebSocketMessage extends NSObject { - NSURLSessionWebSocketMessage._( +class CLBeaconIdentityConstraint extends CLBeaconIdentityCondition { + CLBeaconIdentityConstraint._( ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSURLSessionWebSocketMessage] that points to the same underlying object as [other]. - static NSURLSessionWebSocketMessage castFrom( - T other) { - return NSURLSessionWebSocketMessage._(other._id, other._lib, + /// Returns a [CLBeaconIdentityConstraint] that points to the same underlying object as [other]. + static CLBeaconIdentityConstraint castFrom(T other) { + return CLBeaconIdentityConstraint._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSURLSessionWebSocketMessage] that wraps the given raw object pointer. - static NSURLSessionWebSocketMessage castFromPointer( + /// Returns a [CLBeaconIdentityConstraint] that wraps the given raw object pointer. + static CLBeaconIdentityConstraint castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLSessionWebSocketMessage._(other, lib, + return CLBeaconIdentityConstraint._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLSessionWebSocketMessage]. + /// Returns whether [obj] is an instance of [CLBeaconIdentityConstraint]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLSessionWebSocketMessage1); + obj._lib._class_CLBeaconIdentityConstraint1); } - NSURLSessionWebSocketMessage initWithData_(NSData? data) { - final _ret = _lib._objc_msgSend_211( - _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); - return NSURLSessionWebSocketMessage._(_ret, _lib, + @override + CLBeaconIdentityConstraint initWithUUID_(NSUUID uuid) { + final _ret = + _lib._objc_msgSend_978(_id, _lib._sel_initWithUUID_1, uuid._id); + return CLBeaconIdentityConstraint._(_ret, _lib, retain: true, release: true); } - NSURLSessionWebSocketMessage initWithString_(NSString? string) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, string?._id ?? ffi.nullptr); - return NSURLSessionWebSocketMessage._(_ret, _lib, + @override + CLBeaconIdentityConstraint initWithUUID_major_(NSUUID uuid, int major) { + final _ret = _lib._objc_msgSend_979( + _id, _lib._sel_initWithUUID_major_1, uuid._id, major); + return CLBeaconIdentityConstraint._(_ret, _lib, retain: true, release: true); } - int get type { - return _lib._objc_msgSend_873(_id, _lib._sel_type1); - } - - NSData? get data { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_data1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); - } - - NSString? get string { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_string1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + @override + CLBeaconIdentityConstraint initWithUUID_major_minor_( + NSUUID uuid, int major, int minor) { + final _ret = _lib._objc_msgSend_980( + _id, _lib._sel_initWithUUID_major_minor_1, uuid._id, major, minor); + return CLBeaconIdentityConstraint._(_ret, _lib, + retain: true, release: true); } @override - NSURLSessionWebSocketMessage init() { + CLBeaconIdentityConstraint init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionWebSocketMessage._(_ret, _lib, + return CLBeaconIdentityConstraint._(_ret, _lib, retain: true, release: true); } - static NSURLSessionWebSocketMessage new1(PedometerBindings _lib) { + static CLBeaconIdentityConstraint new1(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_new1); - return NSURLSessionWebSocketMessage._(_ret, _lib, + _lib._class_CLBeaconIdentityConstraint1, _lib._sel_new1); + return CLBeaconIdentityConstraint._(_ret, _lib, retain: false, release: true); } - static NSURLSessionWebSocketMessage alloc(PedometerBindings _lib) { + static CLBeaconIdentityConstraint allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3(_lib._class_CLBeaconIdentityConstraint1, + _lib._sel_allocWithZone_1, zone); + return CLBeaconIdentityConstraint._(_ret, _lib, + retain: false, release: true); + } + + static CLBeaconIdentityConstraint alloc(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_alloc1); - return NSURLSessionWebSocketMessage._(_ret, _lib, + _lib._class_CLBeaconIdentityConstraint1, _lib._sel_alloc1); + return CLBeaconIdentityConstraint._(_ret, _lib, retain: false, release: true); } @@ -58521,593 +64733,346 @@ class NSURLSessionWebSocketMessage extends NSObject { PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURLSessionWebSocketMessage1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_CLBeaconIdentityConstraint1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSessionWebSocketMessage1, + _lib._objc_msgSend_15(_lib._class_CLBeaconIdentityConstraint1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionWebSocketMessage1, + return _lib._objc_msgSend_12(_lib._class_CLBeaconIdentityConstraint1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionWebSocketMessage1, - _lib._sel_useStoredAccessor1); + return _lib._objc_msgSend_12( + _lib._class_CLBeaconIdentityConstraint1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSURLSessionWebSocketMessage1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_CLBeaconIdentityConstraint1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_NSURLSessionWebSocketMessage1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_NSURLSessionWebSocketMessage1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_CLBeaconIdentityConstraint1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSURLSessionWebSocketMessage1, + final _ret = _lib._objc_msgSend_77(_lib._class_CLBeaconIdentityConstraint1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionWebSocketMessage1, + final _ret = _lib._objc_msgSend_2(_lib._class_CLBeaconIdentityConstraint1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSURLSessionWebSocketMessageType { - static const int NSURLSessionWebSocketMessageTypeData = 0; - static const int NSURLSessionWebSocketMessageTypeString = 1; -} - -void _ObjCBlock46_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock46_closureRegistry = {}; -int _ObjCBlock46_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock46_registerClosure(Function fn) { - final id = ++_ObjCBlock46_closureRegistryIndex; - _ObjCBlock46_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock46_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock46_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock46 extends _ObjCBlockBase { - ObjCBlock46._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock46.fromFunctionPointer( - PedometerBindings lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock46_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock46.fromFunction( - PedometerBindings lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock46_closureTrampoline) - .cast(), - _ObjCBlock46_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -abstract class NSURLSessionWebSocketCloseCode { - static const int NSURLSessionWebSocketCloseCodeInvalid = 0; - static const int NSURLSessionWebSocketCloseCodeNormalClosure = 1000; - static const int NSURLSessionWebSocketCloseCodeGoingAway = 1001; - static const int NSURLSessionWebSocketCloseCodeProtocolError = 1002; - static const int NSURLSessionWebSocketCloseCodeUnsupportedData = 1003; - static const int NSURLSessionWebSocketCloseCodeNoStatusReceived = 1005; - static const int NSURLSessionWebSocketCloseCodeAbnormalClosure = 1006; - static const int NSURLSessionWebSocketCloseCodeInvalidFramePayloadData = 1007; - static const int NSURLSessionWebSocketCloseCodePolicyViolation = 1008; - static const int NSURLSessionWebSocketCloseCodeMessageTooBig = 1009; - static const int NSURLSessionWebSocketCloseCodeMandatoryExtensionMissing = - 1010; - static const int NSURLSessionWebSocketCloseCodeInternalServerError = 1011; - static const int NSURLSessionWebSocketCloseCodeTLSHandshakeFailure = 1015; -} - -void _ObjCBlock47_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock47_closureRegistry = {}; -int _ObjCBlock47_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock47_registerClosure(Function fn) { - final id = ++_ObjCBlock47_closureRegistryIndex; - _ObjCBlock47_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock47_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return _ObjCBlock47_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock47 extends _ObjCBlockBase { - ObjCBlock47._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock47.fromFunctionPointer( - PedometerBindings lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock47_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock47.fromFunction( - PedometerBindings lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock47_closureTrampoline) - .cast(), - _ObjCBlock47_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -void _ObjCBlock48_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock48_closureRegistry = {}; -int _ObjCBlock48_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock48_registerClosure(Function fn) { - final id = ++_ObjCBlock48_closureRegistryIndex; - _ObjCBlock48_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock48_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return _ObjCBlock48_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock48 extends _ObjCBlockBase { - ObjCBlock48._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock48.fromFunctionPointer( - PedometerBindings lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock48_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock48.fromFunction( - PedometerBindings lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock48_closureTrampoline) - .cast(), - _ObjCBlock48_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -class CMPedometer extends NSObject { - CMPedometer._(ffi.Pointer id, PedometerBindings lib, +class CLBeaconIdentityCondition extends CLCondition { + CLBeaconIdentityCondition._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [CMPedometer] that points to the same underlying object as [other]. - static CMPedometer castFrom(T other) { - return CMPedometer._(other._id, other._lib, retain: true, release: true); + /// Returns a [CLBeaconIdentityCondition] that points to the same underlying object as [other]. + static CLBeaconIdentityCondition castFrom(T other) { + return CLBeaconIdentityCondition._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [CMPedometer] that wraps the given raw object pointer. - static CMPedometer castFromPointer( + /// Returns a [CLBeaconIdentityCondition] that wraps the given raw object pointer. + static CLBeaconIdentityCondition castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return CMPedometer._(other, lib, retain: retain, release: release); + return CLBeaconIdentityCondition._(other, lib, + retain: retain, release: release); } - /// Returns whether [obj] is an instance of [CMPedometer]. + /// Returns whether [obj] is an instance of [CLBeaconIdentityCondition]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_CMPedometer1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_CLBeaconIdentityCondition1); } - static bool isStepCountingAvailable(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_CMPedometer1, _lib._sel_isStepCountingAvailable1); + NSUUID get UUID { + final _ret = _lib._objc_msgSend_977(_id, _lib._sel_UUID1); + return NSUUID._(_ret, _lib, retain: true, release: true); } - static bool isDistanceAvailable(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_CMPedometer1, _lib._sel_isDistanceAvailable1); + NSNumber? get major { + final _ret = _lib._objc_msgSend_166(_id, _lib._sel_major1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } - static bool isFloorCountingAvailable(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_CMPedometer1, _lib._sel_isFloorCountingAvailable1); + NSNumber? get minor { + final _ret = _lib._objc_msgSend_166(_id, _lib._sel_minor1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } - static bool isPaceAvailable(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_CMPedometer1, _lib._sel_isPaceAvailable1); + CLBeaconIdentityCondition initWithUUID_(NSUUID uuid) { + final _ret = + _lib._objc_msgSend_978(_id, _lib._sel_initWithUUID_1, uuid._id); + return CLBeaconIdentityCondition._(_ret, _lib, retain: true, release: true); } - static bool isCadenceAvailable(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_CMPedometer1, _lib._sel_isCadenceAvailable1); + CLBeaconIdentityCondition initWithUUID_major_(NSUUID uuid, int major) { + final _ret = _lib._objc_msgSend_979( + _id, _lib._sel_initWithUUID_major_1, uuid._id, major); + return CLBeaconIdentityCondition._(_ret, _lib, retain: true, release: true); } - static bool isPedometerEventTrackingAvailable(PedometerBindings _lib) { + CLBeaconIdentityCondition initWithUUID_major_minor_( + NSUUID uuid, int major, int minor) { + final _ret = _lib._objc_msgSend_980( + _id, _lib._sel_initWithUUID_major_minor_1, uuid._id, major, minor); + return CLBeaconIdentityCondition._(_ret, _lib, retain: true, release: true); + } + + @override + CLBeaconIdentityCondition init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return CLBeaconIdentityCondition._(_ret, _lib, retain: true, release: true); + } + + static CLBeaconIdentityCondition new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_CLBeaconIdentityCondition1, _lib._sel_new1); + return CLBeaconIdentityCondition._(_ret, _lib, + retain: false, release: true); + } + + static CLBeaconIdentityCondition allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3(_lib._class_CLBeaconIdentityCondition1, + _lib._sel_allocWithZone_1, zone); + return CLBeaconIdentityCondition._(_ret, _lib, + retain: false, release: true); + } + + static CLBeaconIdentityCondition alloc(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_CLBeaconIdentityCondition1, _lib._sel_alloc1); + return CLBeaconIdentityCondition._(_ret, _lib, + retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + PedometerBindings _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_CLBeaconIdentityCondition1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument?._id ?? ffi.nullptr); + } + + static void cancelPreviousPerformRequestsWithTarget_( + PedometerBindings _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_CLBeaconIdentityCondition1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { + return _lib._objc_msgSend_12(_lib._class_CLBeaconIdentityCondition1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_CMPedometer1, _lib._sel_isPedometerEventTrackingAvailable1); + _lib._class_CLBeaconIdentityCondition1, _lib._sel_useStoredAccessor1); } - static int authorizationStatus(PedometerBindings _lib) { - return _lib._objc_msgSend_889( - _lib._class_CMPedometer1, _lib._sel_authorizationStatus1); + static NSSet keyPathsForValuesAffectingValueForKey_( + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_CLBeaconIdentityCondition1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); + return NSSet._(_ret, _lib, retain: true, release: true); } - void queryPedometerDataFromDate_toDate_withHandler_( - NSDate? start, NSDate? end, ObjCBlock49 handler) { - return _lib._objc_msgSend_890( - _id, - _lib._sel_queryPedometerDataFromDate_toDate_withHandler_1, - start?._id ?? ffi.nullptr, - end?._id ?? ffi.nullptr, - handler._id); + static bool automaticallyNotifiesObserversForKey_( + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_CLBeaconIdentityCondition1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } - void startPedometerUpdatesFromDate_withHandler_( - NSDate? start, ObjCBlock49 handler) { - return _lib._objc_msgSend_891( - _id, - _lib._sel_startPedometerUpdatesFromDate_withHandler_1, - start?._id ?? ffi.nullptr, - handler._id); + static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_77(_lib._class_CLBeaconIdentityCondition1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - void stopPedometerUpdates() { - return _lib._objc_msgSend_1(_id, _lib._sel_stopPedometerUpdates1); + static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_CLBeaconIdentityCondition1, + _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - void startPedometerEventUpdatesWithHandler_(ObjCBlock50 handler) { - return _lib._objc_msgSend_893( - _id, _lib._sel_startPedometerEventUpdatesWithHandler_1, handler._id); +class CLCondition extends NSObject { + CLCondition._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [CLCondition] that points to the same underlying object as [other]. + static CLCondition castFrom(T other) { + return CLCondition._(other._id, other._lib, retain: true, release: true); } - void stopPedometerEventUpdates() { - return _lib._objc_msgSend_1(_id, _lib._sel_stopPedometerEventUpdates1); + /// Returns a [CLCondition] that wraps the given raw object pointer. + static CLCondition castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return CLCondition._(other, lib, retain: retain, release: release); } - static CMPedometer new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_CMPedometer1, _lib._sel_new1); - return CMPedometer._(_ret, _lib, retain: false, release: true); + /// Returns whether [obj] is an instance of [CLCondition]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_CLCondition1); } - static CMPedometer alloc(PedometerBindings _lib) { + @override + CLCondition init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return CLCondition._(_ret, _lib, retain: true, release: true); + } + + static CLCondition new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_CLCondition1, _lib._sel_new1); + return CLCondition._(_ret, _lib, retain: false, release: true); + } + + static CLCondition allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_CLCondition1, _lib._sel_allocWithZone_1, zone); + return CLCondition._(_ret, _lib, retain: false, release: true); + } + + static CLCondition alloc(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_CMPedometer1, _lib._sel_alloc1); - return CMPedometer._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_CLCondition1, _lib._sel_alloc1); + return CLCondition._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_CMPedometer1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_CLCondition1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_CMPedometer1, + _lib._objc_msgSend_15(_lib._class_CLCondition1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_CMPedometer1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_CLCondition1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_CMPedometer1, _lib._sel_useStoredAccessor1); + _lib._class_CLCondition1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_CMPedometer1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_CLCondition1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_CMPedometer1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_CMPedometer1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_CLCondition1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71( - _lib._class_CMPedometer1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_CLCondition1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_CMPedometer1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_CLCondition1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class CMAuthorizationStatus { - static const int CMAuthorizationStatusNotDetermined = 0; - static const int CMAuthorizationStatusRestricted = 1; - static const int CMAuthorizationStatusDenied = 2; - static const int CMAuthorizationStatusAuthorized = 3; -} - -void _ObjCBlock49_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock49_closureRegistry = {}; -int _ObjCBlock49_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock49_registerClosure(Function fn) { - final id = ++_ObjCBlock49_closureRegistryIndex; - _ObjCBlock49_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSArray_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer, + ffi.Pointer)>()(arg0, arg1); +final _ObjCBlock_ffiVoid_NSArray_NSError_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSArray_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSArray_NSError_registerClosure( + void Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSArray_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSArray_NSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock49_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock49_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock49 extends _ObjCBlockBase { - ObjCBlock49._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_NSArray_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_NSArray_NSError_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_ffiVoid_NSArray_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSArray_NSError._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock49.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSArray_NSError.fromFunctionPointer( PedometerBindings lib, ffi.Pointer< ffi.NativeFunction< @@ -59118,537 +65083,662 @@ class ObjCBlock49 extends _ObjCBlockBase { lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock49_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSArray_NSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock49.fromFunction( - PedometerBindings lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSArray_NSError.fromFunction(PedometerBindings lib, void Function(NSArray, NSError?) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock49_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSArray_NSError_closureTrampoline) .cast(), - _ObjCBlock49_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSArray_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + NSArray._(arg0, lib, retain: true, release: true), + arg1.address == 0 ? null : NSError._(arg1, lib, retain: true, release: true)))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } - ffi.Pointer<_ObjCBlock> get pointer => _id; + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSArray_NSError.listener( + PedometerBindings lib, void Function(NSArray, NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= + ffi.NativeCallable, ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSArray_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSArray_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + NSArray._(arg0, lib, retain: true, release: true), + arg1.address == 0 + ? null + : NSError._(arg1, lib, + retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; + + void call(NSArray arg0, NSError? arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()( + _id, arg0._id, arg1?._id ?? ffi.nullptr); } -class CMPedometerData extends NSObject { - CMPedometerData._(ffi.Pointer id, PedometerBindings lib, +class CLPlacemark extends NSObject { + CLPlacemark._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [CMPedometerData] that points to the same underlying object as [other]. - static CMPedometerData castFrom(T other) { - return CMPedometerData._(other._id, other._lib, - retain: true, release: true); + /// Returns a [CLPlacemark] that points to the same underlying object as [other]. + static CLPlacemark castFrom(T other) { + return CLPlacemark._(other._id, other._lib, retain: true, release: true); } - /// Returns a [CMPedometerData] that wraps the given raw object pointer. - static CMPedometerData castFromPointer( + /// Returns a [CLPlacemark] that wraps the given raw object pointer. + static CLPlacemark castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return CMPedometerData._(other, lib, retain: retain, release: release); + return CLPlacemark._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [CMPedometerData]. + /// Returns whether [obj] is an instance of [CLPlacemark]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_CMPedometerData1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_CLPlacemark1); + } + + @override + CLPlacemark init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return CLPlacemark._(_ret, _lib, retain: true, release: true); + } + + static CLPlacemark new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_CLPlacemark1, _lib._sel_new1); + return CLPlacemark._(_ret, _lib, retain: false, release: true); } - NSDate? get startDate { - final _ret = _lib._objc_msgSend_154(_id, _lib._sel_startDate1); + CLPlacemark initWithPlacemark_(CLPlacemark placemark) { + final _ret = _lib._objc_msgSend_988( + _id, _lib._sel_initWithPlacemark_1, placemark._id); + return CLPlacemark._(_ret, _lib, retain: true, release: true); + } + + CLLocation? get location { + final _ret = _lib._objc_msgSend_961(_id, _lib._sel_location1); return _ret.address == 0 ? null - : NSDate._(_ret, _lib, retain: true, release: true); + : CLLocation._(_ret, _lib, retain: true, release: true); } - NSDate? get endDate { - final _ret = _lib._objc_msgSend_154(_id, _lib._sel_endDate1); + CLRegion? get region { + final _ret = _lib._objc_msgSend_989(_id, _lib._sel_region1); return _ret.address == 0 ? null - : NSDate._(_ret, _lib, retain: true, release: true); + : CLRegion._(_ret, _lib, retain: true, release: true); } - NSNumber? get numberOfSteps { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_numberOfSteps1); + NSTimeZone? get timeZone { + final _ret = _lib._objc_msgSend_624(_id, _lib._sel_timeZone1); return _ret.address == 0 ? null - : NSNumber._(_ret, _lib, retain: true, release: true); + : NSTimeZone._(_ret, _lib, retain: true, release: true); } - NSNumber? get distance { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_distance1); + NSDictionary? get addressDictionary { + final _ret = _lib._objc_msgSend_340(_id, _lib._sel_addressDictionary1); return _ret.address == 0 ? null - : NSNumber._(_ret, _lib, retain: true, release: true); + : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSNumber? get floorsAscended { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_floorsAscended1); + NSString? get name { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_name1); return _ret.address == 0 ? null - : NSNumber._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - NSNumber? get floorsDescended { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_floorsDescended1); + NSString? get thoroughfare { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_thoroughfare1); return _ret.address == 0 ? null - : NSNumber._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - NSNumber? get currentPace { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_currentPace1); + NSString? get subThoroughfare { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_subThoroughfare1); return _ret.address == 0 ? null - : NSNumber._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - NSNumber? get currentCadence { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_currentCadence1); + NSString? get locality { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_locality1); return _ret.address == 0 ? null - : NSNumber._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - NSNumber? get averageActivePace { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_averageActivePace1); + NSString? get subLocality { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_subLocality1); return _ret.address == 0 ? null - : NSNumber._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - static CMPedometerData new1(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_CMPedometerData1, _lib._sel_new1); - return CMPedometerData._(_ret, _lib, retain: false, release: true); + NSString? get administrativeArea { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_administrativeArea1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static CMPedometerData alloc(PedometerBindings _lib) { + NSString? get subAdministrativeArea { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_subAdministrativeArea1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get postalCode { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_postalCode1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get ISOcountryCode { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_ISOcountryCode1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get country { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_country1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get inlandWater { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_inlandWater1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get ocean { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_ocean1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSArray? get areasOfInterest { + final _ret = _lib._objc_msgSend_76(_id, _lib._sel_areasOfInterest1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + CNPostalAddress? get postalAddress { + final _ret = _lib._objc_msgSend_990(_id, _lib._sel_postalAddress1); + return _ret.address == 0 + ? null + : CNPostalAddress._(_ret, _lib, retain: true, release: true); + } + + static CLPlacemark allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_CLPlacemark1, _lib._sel_allocWithZone_1, zone); + return CLPlacemark._(_ret, _lib, retain: false, release: true); + } + + static CLPlacemark alloc(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_CMPedometerData1, _lib._sel_alloc1); - return CMPedometerData._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_CLPlacemark1, _lib._sel_alloc1); + return CLPlacemark._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_CMPedometerData1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_CLPlacemark1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_CMPedometerData1, + _lib._objc_msgSend_15(_lib._class_CLPlacemark1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_CMPedometerData1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_CLPlacemark1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_CMPedometerData1, _lib._sel_useStoredAccessor1); + _lib._class_CLPlacemark1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_CMPedometerData1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_CLPlacemark1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_CMPedometerData1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_CMPedometerData1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_CLPlacemark1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71(_lib._class_CMPedometerData1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_CLPlacemark1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_CMPedometerData1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_CLPlacemark1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -void _ObjCBlock50_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock50_closureRegistry = {}; -int _ObjCBlock50_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock50_registerClosure(Function fn) { - final id = ++_ObjCBlock50_closureRegistryIndex; - _ObjCBlock50_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock50_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock50_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock50 extends _ObjCBlockBase { - ObjCBlock50._(ffi.Pointer<_ObjCBlock> id, PedometerBindings lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock50.fromFunctionPointer( - PedometerBindings lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock50_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock50.fromFunction( - PedometerBindings lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock50_closureTrampoline) - .cast(), - _ObjCBlock50_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -class CMPedometerEvent extends NSObject { - CMPedometerEvent._(ffi.Pointer id, PedometerBindings lib, +class CNPostalAddress extends _ObjCWrapper { + CNPostalAddress._(ffi.Pointer id, PedometerBindings lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [CMPedometerEvent] that points to the same underlying object as [other]. - static CMPedometerEvent castFrom(T other) { - return CMPedometerEvent._(other._id, other._lib, + /// Returns a [CNPostalAddress] that points to the same underlying object as [other]. + static CNPostalAddress castFrom(T other) { + return CNPostalAddress._(other._id, other._lib, retain: true, release: true); } - /// Returns a [CMPedometerEvent] that wraps the given raw object pointer. - static CMPedometerEvent castFromPointer( + /// Returns a [CNPostalAddress] that wraps the given raw object pointer. + static CNPostalAddress castFromPointer( PedometerBindings lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return CMPedometerEvent._(other, lib, retain: retain, release: release); + return CNPostalAddress._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [CMPedometerEvent]. + /// Returns whether [obj] is an instance of [CNPostalAddress]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_CMPedometerEvent1); - } - - NSDate? get date { - final _ret = _lib._objc_msgSend_154(_id, _lib._sel_date1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + obj._lib._class_CNPostalAddress1); } +} - int get type { - return _lib._objc_msgSend_892(_id, _lib._sel_type1); - } +class CLGeocoder extends NSObject { + CLGeocoder._(ffi.Pointer id, PedometerBindings lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - static CMPedometerEvent new1(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_CMPedometerEvent1, _lib._sel_new1); - return CMPedometerEvent._(_ret, _lib, retain: false, release: true); + /// Returns a [CLGeocoder] that points to the same underlying object as [other]. + static CLGeocoder castFrom(T other) { + return CLGeocoder._(other._id, other._lib, retain: true, release: true); } - static CMPedometerEvent alloc(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_CMPedometerEvent1, _lib._sel_alloc1); - return CMPedometerEvent._(_ret, _lib, retain: false, release: true); + /// Returns a [CLGeocoder] that wraps the given raw object pointer. + static CLGeocoder castFromPointer( + PedometerBindings lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return CLGeocoder._(other, lib, retain: retain, release: release); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - PedometerBindings _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_CMPedometerEvent1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + /// Returns whether [obj] is an instance of [CLGeocoder]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_CLGeocoder1); } - static void cancelPreviousPerformRequestsWithTarget_( - PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_CMPedometerEvent1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + bool get geocoding { + return _lib._objc_msgSend_12(_id, _lib._sel_isGeocoding1); } - static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_CMPedometerEvent1, - _lib._sel_accessInstanceVariablesDirectly1); + void reverseGeocodeLocation_completionHandler_(CLLocation location, + ObjCBlock_ffiVoid_NSArray_NSError1 completionHandler) { + _lib._objc_msgSend_991( + _id, + _lib._sel_reverseGeocodeLocation_completionHandler_1, + location._id, + completionHandler._id); } - static bool useStoredAccessor(PedometerBindings _lib) { - return _lib._objc_msgSend_12( - _lib._class_CMPedometerEvent1, _lib._sel_useStoredAccessor1); + void reverseGeocodeLocation_preferredLocale_completionHandler_( + CLLocation location, + NSLocale? locale, + ObjCBlock_ffiVoid_NSArray_NSError1 completionHandler) { + _lib._objc_msgSend_992( + _id, + _lib._sel_reverseGeocodeLocation_preferredLocale_completionHandler_1, + location._id, + locale?._id ?? ffi.nullptr, + completionHandler._id); } - static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_CMPedometerEvent1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + void geocodeAddressDictionary_completionHandler_( + NSDictionary addressDictionary, + ObjCBlock_ffiVoid_NSArray_NSError1 completionHandler) { + _lib._objc_msgSend_993( + _id, + _lib._sel_geocodeAddressDictionary_completionHandler_1, + addressDictionary._id, + completionHandler._id); } - static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_CMPedometerEvent1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + void geocodeAddressString_inRegion_completionHandler_(NSString addressString, + CLRegion? region, ObjCBlock_ffiVoid_NSArray_NSError1 completionHandler) { + _lib._objc_msgSend_994( + _id, + _lib._sel_geocodeAddressString_inRegion_completionHandler_1, + addressString._id, + region?._id ?? ffi.nullptr, + completionHandler._id); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_CMPedometerEvent1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + void geocodeAddressString_inRegion_preferredLocale_completionHandler_( + NSString addressString, + CLRegion? region, + NSLocale? locale, + ObjCBlock_ffiVoid_NSArray_NSError1 completionHandler) { + _lib._objc_msgSend_995( + _id, + _lib._sel_geocodeAddressString_inRegion_preferredLocale_completionHandler_1, + addressString._id, + region?._id ?? ffi.nullptr, + locale?._id ?? ffi.nullptr, + completionHandler._id); } - static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71(_lib._class_CMPedometerEvent1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + void geocodeAddressString_completionHandler_(NSString addressString, + ObjCBlock_ffiVoid_NSArray_NSError1 completionHandler) { + _lib._objc_msgSend_996( + _id, + _lib._sel_geocodeAddressString_completionHandler_1, + addressString._id, + completionHandler._id); } - static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_CMPedometerEvent1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + void cancelGeocode() { + _lib._objc_msgSend_1(_id, _lib._sel_cancelGeocode1); } -} - -abstract class CMPedometerEventType { - static const int CMPedometerEventTypePause = 0; - static const int CMPedometerEventTypeResume = 1; -} - -class PedometerHelper extends NSObject { - PedometerHelper._(ffi.Pointer id, PedometerBindings lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - /// Returns a [PedometerHelper] that points to the same underlying object as [other]. - static PedometerHelper castFrom(T other) { - return PedometerHelper._(other._id, other._lib, - retain: true, release: true); + void geocodePostalAddress_completionHandler_(CNPostalAddress postalAddress, + ObjCBlock_ffiVoid_NSArray_NSError1 completionHandler) { + _lib._objc_msgSend_997( + _id, + _lib._sel_geocodePostalAddress_completionHandler_1, + postalAddress._id, + completionHandler._id); } - /// Returns a [PedometerHelper] that wraps the given raw object pointer. - static PedometerHelper castFromPointer( - PedometerBindings lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return PedometerHelper._(other, lib, retain: retain, release: release); + void geocodePostalAddress_preferredLocale_completionHandler_( + CNPostalAddress postalAddress, + NSLocale? locale, + ObjCBlock_ffiVoid_NSArray_NSError1 completionHandler) { + _lib._objc_msgSend_998( + _id, + _lib._sel_geocodePostalAddress_preferredLocale_completionHandler_1, + postalAddress._id, + locale?._id ?? ffi.nullptr, + completionHandler._id); } - /// Returns whether [obj] is an instance of [PedometerHelper]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_PedometerHelper1); + @override + CLGeocoder init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return CLGeocoder._(_ret, _lib, retain: true, release: true); } - static void startPedometerWithPort_pedometer_start_end_( - PedometerBindings _lib, - int sendPort, - CMPedometer? pedometer, - NSDate? start, - NSDate? end) { - return _lib._objc_msgSend_894( - _lib._class_PedometerHelper1, - _lib._sel_startPedometerWithPort_pedometer_start_end_1, - sendPort, - pedometer?._id ?? ffi.nullptr, - start?._id ?? ffi.nullptr, - end?._id ?? ffi.nullptr); + static CLGeocoder new1(PedometerBindings _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_CLGeocoder1, _lib._sel_new1); + return CLGeocoder._(_ret, _lib, retain: false, release: true); } - static PedometerHelper new1(PedometerBindings _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_PedometerHelper1, _lib._sel_new1); - return PedometerHelper._(_ret, _lib, retain: false, release: true); + static CLGeocoder allocWithZone_( + PedometerBindings _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_CLGeocoder1, _lib._sel_allocWithZone_1, zone); + return CLGeocoder._(_ret, _lib, retain: false, release: true); } - static PedometerHelper alloc(PedometerBindings _lib) { + static CLGeocoder alloc(PedometerBindings _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_PedometerHelper1, _lib._sel_alloc1); - return PedometerHelper._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_CLGeocoder1, _lib._sel_alloc1); + return CLGeocoder._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( PedometerBindings _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_PedometerHelper1, + NSObject? anArgument) { + _lib._objc_msgSend_14( + _lib._class_CLGeocoder1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( PedometerBindings _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_PedometerHelper1, + _lib._objc_msgSend_15(_lib._class_CLGeocoder1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(PedometerBindings _lib) { - return _lib._objc_msgSend_12(_lib._class_PedometerHelper1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_CLGeocoder1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(PedometerBindings _lib) { return _lib._objc_msgSend_12( - _lib._class_PedometerHelper1, _lib._sel_useStoredAccessor1); + _lib._class_CLGeocoder1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( - PedometerBindings _lib, NSString? key) { - final _ret = _lib._objc_msgSend_50( - _lib._class_PedometerHelper1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + final _ret = _lib._objc_msgSend_55(_lib._class_CLGeocoder1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - PedometerBindings _lib, NSString? key) { - return _lib._objc_msgSend_51( - _lib._class_PedometerHelper1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - PedometerBindings _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_74( - _lib._class_PedometerHelper1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + PedometerBindings _lib, NSString key) { + return _lib._objc_msgSend_56(_lib._class_CLGeocoder1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static NSArray classFallbacksForKeyedArchiver(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_71(_lib._class_PedometerHelper1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_77( + _lib._class_CLGeocoder1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(PedometerBindings _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_PedometerHelper1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_CLGeocoder1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } + +void _ObjCBlock_ffiVoid_NSArray_NSError1_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer, + ffi.Pointer)>()(arg0, arg1); +final _ObjCBlock_ffiVoid_NSArray_NSError1_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSArray_NSError1_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSArray_NSError1_registerClosure( + void Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSArray_NSError1_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSArray_NSError1_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSArray_NSError1_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_NSArray_NSError1_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_ffiVoid_NSArray_NSError1 extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSArray_NSError1._( + ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSArray_NSError1.fromFunctionPointer( + PedometerBindings lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSArray_NSError1_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSArray_NSError1.fromFunction( + PedometerBindings lib, void Function(NSArray?, NSError?) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSArray_NSError1_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSArray_NSError1_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 + ? null + : NSArray._(arg0, lib, retain: true, release: true), + arg1.address == 0 + ? null + : NSError._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSArray_NSError1.listener( + PedometerBindings lib, void Function(NSArray?, NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= + ffi.NativeCallable, ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSArray_NSError1_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSArray_NSError1_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 + ? null + : NSArray._(arg0, lib, retain: true, release: true), + arg1.address == 0 + ? null + : NSError._(arg1, lib, + retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; + + void call(NSArray? arg0, NSError? arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1?._id ?? ffi.nullptr); +} diff --git a/experimental/pedometer/src/pedometerHelper.h b/experimental/pedometer/src/pedometerHelper.h index 54ad6f4ee..c2b02254a 100644 --- a/experimental/pedometer/src/pedometerHelper.h +++ b/experimental/pedometer/src/pedometerHelper.h @@ -1,15 +1,7 @@ #import #import #import -#import -#include "dart-sdk/include/dart_api_dl.h" - -@interface PedometerHelper : NSObject - -+ (void) startPedometerWithPort: (Dart_Port) sendPort - pedometer: (CMPedometer*) pedometer - start: (NSDate*) start - end: (NSDate*) end; - -@end +// TODO(https://github.com/dart-lang/native/issues/835): Generate this wrapper +// automatically. +CMPedometerHandler wrapCallback(CMPedometerHandler callback); diff --git a/experimental/pedometer/src/pedometerHelper.m b/experimental/pedometer/src/pedometerHelper.m index 33cbc7aeb..fe76a5686 100644 --- a/experimental/pedometer/src/pedometerHelper.m +++ b/experimental/pedometer/src/pedometerHelper.m @@ -2,37 +2,11 @@ #import #import #import -#import -#include "dart-sdk/include/dart_api_dl.h" - -// Need to import the dart headers to get the definitions Dart_CObject -#include "dart-sdk/include/dart_api_dl.h" - - -// Helper function that takes a pointer to CMPedometer data and converts it to a Dart C Object -static Dart_CObject NSObjectToCObject(CMPedometerData* n) { - Dart_CObject cobj; - cobj.type = Dart_CObject_kInt64; - cobj.value.as_int64 = (int64_t) n; - return cobj; -} - - -@implementation PedometerHelper -+(void)startPedometerWithPort: (Dart_Port) sendPort pedometer: (CMPedometer*) pedometer start: (NSDate*) start end: (NSDate*) end { - - // Start the pedometer - [pedometer queryPedometerDataFromDate:start toDate:end withHandler:^(CMPedometerData *pedometerData, NSError *error) { - if(error == nil){ - pedometerData = [pedometerData retain]; - Dart_CObject data = NSObjectToCObject(pedometerData); - const bool success = Dart_PostCObject_DL(sendPort, &data); - NSAssert(success, @"Couldn't send to Dart@"); - } - else{ - NSLog(@"Error:%@", error); - } - }]; +// TODO(https://github.com/dart-lang/native/issues/835): Generate this wrapper +// automatically. +CMPedometerHandler wrapCallback(CMPedometerHandler callback) { + return [^(CMPedometerData *data, NSError *error) { + return callback([data retain], [error retain]); + } copy]; } -@end