From 262b32d3f2b5c2744a9ae1b67a3c122235926bc9 Mon Sep 17 00:00:00 2001 From: GitHub Date: Fri, 10 Apr 2026 04:02:40 +0000 Subject: [PATCH] chore: update packages/flutter/scripts/update-cocoa.sh to 9.10.0 --- CHANGELOG.md | 6 + packages/flutter/ios/sentry_flutter.podspec | 2 +- .../flutter/ios/sentry_flutter/Package.swift | 2 +- .../flutter/lib/src/native/cocoa/binding.dart | 67492 +++++++++------- 4 files changed, 37833 insertions(+), 29669 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bd8d610f31..ebb78f2144 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ - Stop re-triggering hitTest in SentryUserInteractionWidget on pointerUp ([#3540](https://github.com/getsentry/sentry-dart/pull/3540)) +### Dependencies + +- Bump Cocoa SDK from v8.56.2 to v9.10.0 ([#4](https://github.com/glemartret/sentry-dart/pull/4)) + - [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#9100) + - [diff](https://github.com/getsentry/sentry-cocoa/compare/8.56.2...9.10.0) + ## 9.14.0 ### Features diff --git a/packages/flutter/ios/sentry_flutter.podspec b/packages/flutter/ios/sentry_flutter.podspec index ab735e7984..a388ac7390 100644 --- a/packages/flutter/ios/sentry_flutter.podspec +++ b/packages/flutter/ios/sentry_flutter.podspec @@ -16,7 +16,7 @@ Sentry SDK for Flutter with support to native through sentry-cocoa. :tag => s.version.to_s } s.source_files = 'sentry_flutter/Sources/**/*' s.public_header_files = 'sentry_flutter/Sources/**/*.h' - s.dependency 'Sentry/HybridSDK', '8.56.2' + s.dependency 'Sentry/HybridSDK', '9.10.0' s.ios.dependency 'Flutter' s.osx.dependency 'FlutterMacOS' s.ios.deployment_target = '12.0' diff --git a/packages/flutter/ios/sentry_flutter/Package.swift b/packages/flutter/ios/sentry_flutter/Package.swift index 89b109d62b..bb76997fbc 100644 --- a/packages/flutter/ios/sentry_flutter/Package.swift +++ b/packages/flutter/ios/sentry_flutter/Package.swift @@ -13,7 +13,7 @@ let package = Package( .library(name: "sentry-flutter", targets: ["sentry_flutter", "sentry_flutter_objc"]) ], dependencies: [ - .package(url: "https://github.com/getsentry/sentry-cocoa", exact: "8.56.2") + .package(url: "https://github.com/getsentry/sentry-cocoa", exact: "9.10.0") ], targets: [ .target( diff --git a/packages/flutter/lib/src/native/cocoa/binding.dart b/packages/flutter/lib/src/native/cocoa/binding.dart index 4e6faabec1..2cf1ecf638 100644 --- a/packages/flutter/lib/src/native/cocoa/binding.dart +++ b/packages/flutter/lib/src/native/cocoa/binding.dart @@ -7756,15 +7756,64 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer)>(); + late final _sel_decodeBytesWithMinimumLength_1 = + _registerName1("decodeBytesWithMinimumLength:"); + ffi.Pointer _objc_msgSend_286( + ffi.Pointer obj, + ffi.Pointer sel, + int length, + ) { + return __objc_msgSend_286( + obj, + sel, + length, + ); + } + + late final __objc_msgSend_286Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_286 = __objc_msgSend_286Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_decodeBytesForKey_minimumLength_1 = + _registerName1("decodeBytesForKey:minimumLength:"); + ffi.Pointer _objc_msgSend_287( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer key, + int length, + ) { + return __objc_msgSend_287( + obj, + sel, + key, + length, + ); + } + + late final __objc_msgSend_287Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_287 = __objc_msgSend_287Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); + late final _sel_encodeInteger_forKey_1 = _registerName1("encodeInteger:forKey:"); - void _objc_msgSend_286( + void _objc_msgSend_288( ffi.Pointer obj, ffi.Pointer sel, int value, ffi.Pointer key, ) { - return __objc_msgSend_286( + return __objc_msgSend_288( obj, sel, value, @@ -7772,11 +7821,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_286Ptr = _lookup< + late final __objc_msgSend_288Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Long, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_286 = __objc_msgSend_286Ptr.asFunction< + late final __objc_msgSend_288 = __objc_msgSend_288Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); @@ -7786,13 +7835,13 @@ class SentryCocoa { _registerName1("requiresSecureCoding"); late final _sel_decodeObjectOfClass_forKey_1 = _registerName1("decodeObjectOfClass:forKey:"); - ffi.Pointer _objc_msgSend_287( + ffi.Pointer _objc_msgSend_289( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, ffi.Pointer key, ) { - return __objc_msgSend_287( + return __objc_msgSend_289( obj, sel, aClass, @@ -7800,14 +7849,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_287Ptr = _lookup< + late final __objc_msgSend_289Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_287 = __objc_msgSend_287Ptr.asFunction< + late final __objc_msgSend_289 = __objc_msgSend_289Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -7816,14 +7865,14 @@ class SentryCocoa { late final _sel_decodeTopLevelObjectOfClass_forKey_error_1 = _registerName1("decodeTopLevelObjectOfClass:forKey:error:"); - ffi.Pointer _objc_msgSend_288( + ffi.Pointer _objc_msgSend_290( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, ffi.Pointer key, ffi.Pointer> error, ) { - return __objc_msgSend_288( + return __objc_msgSend_290( obj, sel, aClass, @@ -7832,7 +7881,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_288Ptr = _lookup< + late final __objc_msgSend_290Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -7840,7 +7889,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_288 = __objc_msgSend_288Ptr.asFunction< + late final __objc_msgSend_290 = __objc_msgSend_290Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -7850,13 +7899,13 @@ class SentryCocoa { late final _sel_decodeArrayOfObjectsOfClass_forKey_1 = _registerName1("decodeArrayOfObjectsOfClass:forKey:"); - ffi.Pointer _objc_msgSend_289( + ffi.Pointer _objc_msgSend_291( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer cls, ffi.Pointer key, ) { - return __objc_msgSend_289( + return __objc_msgSend_291( obj, sel, cls, @@ -7864,14 +7913,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_289Ptr = _lookup< + late final __objc_msgSend_291Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_289 = __objc_msgSend_289Ptr.asFunction< + late final __objc_msgSend_291 = __objc_msgSend_291Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -7880,14 +7929,14 @@ class SentryCocoa { late final _sel_decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_1 = _registerName1("decodeDictionaryWithKeysOfClass:objectsOfClass:forKey:"); - ffi.Pointer _objc_msgSend_290( + ffi.Pointer _objc_msgSend_292( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keyCls, ffi.Pointer objectCls, ffi.Pointer key, ) { - return __objc_msgSend_290( + return __objc_msgSend_292( obj, sel, keyCls, @@ -7896,7 +7945,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_290Ptr = _lookup< + late final __objc_msgSend_292Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -7904,7 +7953,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_290 = __objc_msgSend_290Ptr.asFunction< + late final __objc_msgSend_292 = __objc_msgSend_292Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -7914,13 +7963,13 @@ class SentryCocoa { late final _sel_decodeObjectOfClasses_forKey_1 = _registerName1("decodeObjectOfClasses:forKey:"); - ffi.Pointer _objc_msgSend_291( + ffi.Pointer _objc_msgSend_293( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer classes, ffi.Pointer key, ) { - return __objc_msgSend_291( + return __objc_msgSend_293( obj, sel, classes, @@ -7928,14 +7977,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_291Ptr = _lookup< + late final __objc_msgSend_293Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_291 = __objc_msgSend_291Ptr.asFunction< + late final __objc_msgSend_293 = __objc_msgSend_293Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -7944,14 +7993,14 @@ class SentryCocoa { late final _sel_decodeTopLevelObjectOfClasses_forKey_error_1 = _registerName1("decodeTopLevelObjectOfClasses:forKey:error:"); - ffi.Pointer _objc_msgSend_292( + ffi.Pointer _objc_msgSend_294( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer classes, ffi.Pointer key, ffi.Pointer> error, ) { - return __objc_msgSend_292( + return __objc_msgSend_294( obj, sel, classes, @@ -7960,7 +8009,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_292Ptr = _lookup< + late final __objc_msgSend_294Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -7968,7 +8017,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_292 = __objc_msgSend_292Ptr.asFunction< + late final __objc_msgSend_294 = __objc_msgSend_294Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -7978,13 +8027,13 @@ class SentryCocoa { late final _sel_decodeArrayOfObjectsOfClasses_forKey_1 = _registerName1("decodeArrayOfObjectsOfClasses:forKey:"); - ffi.Pointer _objc_msgSend_293( + ffi.Pointer _objc_msgSend_295( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer classes, ffi.Pointer key, ) { - return __objc_msgSend_293( + return __objc_msgSend_295( obj, sel, classes, @@ -7992,14 +8041,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_293Ptr = _lookup< + late final __objc_msgSend_295Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_293 = __objc_msgSend_293Ptr.asFunction< + late final __objc_msgSend_295 = __objc_msgSend_295Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -8009,14 +8058,14 @@ class SentryCocoa { late final _sel_decodeDictionaryWithKeysOfClasses_objectsOfClasses_forKey_1 = _registerName1( "decodeDictionaryWithKeysOfClasses:objectsOfClasses:forKey:"); - ffi.Pointer _objc_msgSend_294( + ffi.Pointer _objc_msgSend_296( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keyClasses, ffi.Pointer objectClasses, ffi.Pointer key, ) { - return __objc_msgSend_294( + return __objc_msgSend_296( obj, sel, keyClasses, @@ -8025,7 +8074,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_294Ptr = _lookup< + late final __objc_msgSend_296Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -8033,7 +8082,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_294 = __objc_msgSend_294Ptr.asFunction< + late final __objc_msgSend_296 = __objc_msgSend_296Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -8044,80 +8093,80 @@ class SentryCocoa { late final _sel_decodePropertyListForKey_1 = _registerName1("decodePropertyListForKey:"); late final _sel_allowedClasses1 = _registerName1("allowedClasses"); - ffi.Pointer _objc_msgSend_295( + ffi.Pointer _objc_msgSend_297( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_295( + return __objc_msgSend_297( obj, sel, ); } - late final __objc_msgSend_295Ptr = _lookup< + late final __objc_msgSend_297Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_295 = __objc_msgSend_295Ptr.asFunction< + late final __objc_msgSend_297 = __objc_msgSend_297Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_failWithError_1 = _registerName1("failWithError:"); - void _objc_msgSend_296( + void _objc_msgSend_298( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer error, ) { - return __objc_msgSend_296( + return __objc_msgSend_298( obj, sel, error, ); } - late final __objc_msgSend_296Ptr = _lookup< + late final __objc_msgSend_298Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_296 = __objc_msgSend_296Ptr.asFunction< + late final __objc_msgSend_298 = __objc_msgSend_298Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_decodingFailurePolicy1 = _registerName1("decodingFailurePolicy"); - int _objc_msgSend_297( + int _objc_msgSend_299( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_297( + return __objc_msgSend_299( obj, sel, ); } - late final __objc_msgSend_297Ptr = _lookup< + late final __objc_msgSend_299Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_297 = __objc_msgSend_297Ptr.asFunction< + late final __objc_msgSend_299 = __objc_msgSend_299Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_error1 = _registerName1("error"); - ffi.Pointer _objc_msgSend_298( + ffi.Pointer _objc_msgSend_300( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_298( + return __objc_msgSend_300( obj, sel, ); } - late final __objc_msgSend_298Ptr = _lookup< + late final __objc_msgSend_300Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_298 = __objc_msgSend_298Ptr.asFunction< + late final __objc_msgSend_300 = __objc_msgSend_300Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -8126,76 +8175,76 @@ class SentryCocoa { late final _sel_decodeValueOfObjCType_at_1 = _registerName1("decodeValueOfObjCType:at:"); late final _sel_encodePoint_1 = _registerName1("encodePoint:"); - void _objc_msgSend_299( + void _objc_msgSend_301( ffi.Pointer obj, ffi.Pointer sel, CGPoint point, ) { - return __objc_msgSend_299( + return __objc_msgSend_301( obj, sel, point, ); } - late final __objc_msgSend_299Ptr = _lookup< + late final __objc_msgSend_301Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, CGPoint)>>('objc_msgSend'); - late final __objc_msgSend_299 = __objc_msgSend_299Ptr.asFunction< + late final __objc_msgSend_301 = __objc_msgSend_301Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, CGPoint)>(); late final _sel_decodePoint1 = _registerName1("decodePoint"); late final _sel_encodeSize_1 = _registerName1("encodeSize:"); - void _objc_msgSend_300( + void _objc_msgSend_302( ffi.Pointer obj, ffi.Pointer sel, CGSize size, ) { - return __objc_msgSend_300( + return __objc_msgSend_302( obj, sel, size, ); } - late final __objc_msgSend_300Ptr = _lookup< + late final __objc_msgSend_302Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, CGSize)>>('objc_msgSend'); - late final __objc_msgSend_300 = __objc_msgSend_300Ptr.asFunction< + late final __objc_msgSend_302 = __objc_msgSend_302Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, CGSize)>(); late final _sel_decodeSize1 = _registerName1("decodeSize"); late final _sel_encodeRect_1 = _registerName1("encodeRect:"); - void _objc_msgSend_301( + void _objc_msgSend_303( ffi.Pointer obj, ffi.Pointer sel, CGRect rect, ) { - return __objc_msgSend_301( + return __objc_msgSend_303( obj, sel, rect, ); } - late final __objc_msgSend_301Ptr = _lookup< + late final __objc_msgSend_303Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, CGRect)>>('objc_msgSend'); - late final __objc_msgSend_301 = __objc_msgSend_301Ptr.asFunction< + late final __objc_msgSend_303 = __objc_msgSend_303Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, CGRect)>(); late final _sel_decodeRect1 = _registerName1("decodeRect"); late final _sel_encodePoint_forKey_1 = _registerName1("encodePoint:forKey:"); - void _objc_msgSend_302( + void _objc_msgSend_304( ffi.Pointer obj, ffi.Pointer sel, CGPoint point, ffi.Pointer key, ) { - return __objc_msgSend_302( + return __objc_msgSend_304( obj, sel, point, @@ -8203,22 +8252,22 @@ class SentryCocoa { ); } - late final __objc_msgSend_302Ptr = _lookup< + late final __objc_msgSend_304Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, CGPoint, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_302 = __objc_msgSend_302Ptr.asFunction< + late final __objc_msgSend_304 = __objc_msgSend_304Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, CGPoint, ffi.Pointer)>(); late final _sel_encodeSize_forKey_1 = _registerName1("encodeSize:forKey:"); - void _objc_msgSend_303( + void _objc_msgSend_305( ffi.Pointer obj, ffi.Pointer sel, CGSize size, ffi.Pointer key, ) { - return __objc_msgSend_303( + return __objc_msgSend_305( obj, sel, size, @@ -8226,22 +8275,22 @@ class SentryCocoa { ); } - late final __objc_msgSend_303Ptr = _lookup< + late final __objc_msgSend_305Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, CGSize, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_303 = __objc_msgSend_303Ptr.asFunction< + late final __objc_msgSend_305 = __objc_msgSend_305Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, CGSize, ffi.Pointer)>(); late final _sel_encodeRect_forKey_1 = _registerName1("encodeRect:forKey:"); - void _objc_msgSend_304( + void _objc_msgSend_306( ffi.Pointer obj, ffi.Pointer sel, CGRect rect, ffi.Pointer key, ) { - return __objc_msgSend_304( + return __objc_msgSend_306( obj, sel, rect, @@ -8249,22 +8298,22 @@ class SentryCocoa { ); } - late final __objc_msgSend_304Ptr = _lookup< + late final __objc_msgSend_306Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, CGRect, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_304 = __objc_msgSend_304Ptr.asFunction< + late final __objc_msgSend_306 = __objc_msgSend_306Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, CGRect, ffi.Pointer)>(); late final _sel_decodePointForKey_1 = _registerName1("decodePointForKey:"); - void _objc_msgSend_305( + void _objc_msgSend_307( ffi.Pointer stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_305( + return __objc_msgSend_307( stret, obj, sel, @@ -8272,25 +8321,25 @@ class SentryCocoa { ); } - late final __objc_msgSend_305Ptr = _lookup< + late final __objc_msgSend_307Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend_stret'); - late final __objc_msgSend_305 = __objc_msgSend_305Ptr.asFunction< + late final __objc_msgSend_307 = __objc_msgSend_307Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_decodeSizeForKey_1 = _registerName1("decodeSizeForKey:"); - void _objc_msgSend_306( + void _objc_msgSend_308( ffi.Pointer stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_306( + return __objc_msgSend_308( stret, obj, sel, @@ -8298,25 +8347,25 @@ class SentryCocoa { ); } - late final __objc_msgSend_306Ptr = _lookup< + late final __objc_msgSend_308Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend_stret'); - late final __objc_msgSend_306 = __objc_msgSend_306Ptr.asFunction< + late final __objc_msgSend_308 = __objc_msgSend_308Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_decodeRectForKey_1 = _registerName1("decodeRectForKey:"); - void _objc_msgSend_307( + void _objc_msgSend_309( ffi.Pointer stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_307( + return __objc_msgSend_309( stret, obj, sel, @@ -8324,69 +8373,69 @@ class SentryCocoa { ); } - late final __objc_msgSend_307Ptr = _lookup< + late final __objc_msgSend_309Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend_stret'); - late final __objc_msgSend_307 = __objc_msgSend_307Ptr.asFunction< + late final __objc_msgSend_309 = __objc_msgSend_309Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_substringFromIndex_1 = _registerName1("substringFromIndex:"); - ffi.Pointer _objc_msgSend_308( + ffi.Pointer _objc_msgSend_310( ffi.Pointer obj, ffi.Pointer sel, int from, ) { - return __objc_msgSend_308( + return __objc_msgSend_310( obj, sel, from, ); } - late final __objc_msgSend_308Ptr = _lookup< + late final __objc_msgSend_310Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_308 = __objc_msgSend_308Ptr.asFunction< + late final __objc_msgSend_310 = __objc_msgSend_310Ptr.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_309( + ffi.Pointer _objc_msgSend_311( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ) { - return __objc_msgSend_309( + return __objc_msgSend_311( obj, sel, range, ); } - late final __objc_msgSend_309Ptr = _lookup< + late final __objc_msgSend_311Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_309 = __objc_msgSend_309Ptr.asFunction< + late final __objc_msgSend_311 = __objc_msgSend_311Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_getCharacters_range_1 = _registerName1("getCharacters:range:"); - void _objc_msgSend_310( + void _objc_msgSend_312( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, _NSRange range, ) { - return __objc_msgSend_310( + return __objc_msgSend_312( obj, sel, buffer, @@ -8394,42 +8443,42 @@ class SentryCocoa { ); } - late final __objc_msgSend_310Ptr = _lookup< + late final __objc_msgSend_312Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_310 = __objc_msgSend_310Ptr.asFunction< + late final __objc_msgSend_312 = __objc_msgSend_312Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange)>(); - int _objc_msgSend_311( + int _objc_msgSend_313( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, ) { - return __objc_msgSend_311( + return __objc_msgSend_313( obj, sel, string, ); } - late final __objc_msgSend_311Ptr = _lookup< + late final __objc_msgSend_313Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_311 = __objc_msgSend_311Ptr.asFunction< + late final __objc_msgSend_313 = __objc_msgSend_313Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_compare_options_1 = _registerName1("compare:options:"); - int _objc_msgSend_312( + int _objc_msgSend_314( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int mask, ) { - return __objc_msgSend_312( + return __objc_msgSend_314( obj, sel, string, @@ -8437,24 +8486,24 @@ class SentryCocoa { ); } - late final __objc_msgSend_312Ptr = _lookup< + late final __objc_msgSend_314Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_312 = __objc_msgSend_312Ptr.asFunction< + late final __objc_msgSend_314 = __objc_msgSend_314Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_compare_options_range_1 = _registerName1("compare:options:range:"); - int _objc_msgSend_313( + int _objc_msgSend_315( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int mask, _NSRange rangeOfReceiverToCompare, ) { - return __objc_msgSend_313( + return __objc_msgSend_315( obj, sel, string, @@ -8463,17 +8512,17 @@ class SentryCocoa { ); } - late final __objc_msgSend_313Ptr = _lookup< + late final __objc_msgSend_315Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_313 = __objc_msgSend_313Ptr.asFunction< + late final __objc_msgSend_315 = __objc_msgSend_315Ptr.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_314( + int _objc_msgSend_316( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, @@ -8481,7 +8530,7 @@ class SentryCocoa { _NSRange rangeOfReceiverToCompare, ffi.Pointer locale, ) { - return __objc_msgSend_314( + return __objc_msgSend_316( obj, sel, string, @@ -8491,7 +8540,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_314Ptr = _lookup< + late final __objc_msgSend_316Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, @@ -8500,7 +8549,7 @@ class SentryCocoa { ffi.Int32, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_314 = __objc_msgSend_314Ptr.asFunction< + late final __objc_msgSend_316 = __objc_msgSend_316Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, _NSRange, ffi.Pointer)>(); @@ -8516,13 +8565,13 @@ class SentryCocoa { late final _sel_hasSuffix_1 = _registerName1("hasSuffix:"); late final _sel_commonPrefixWithString_options_1 = _registerName1("commonPrefixWithString:options:"); - ffi.Pointer _objc_msgSend_315( + ffi.Pointer _objc_msgSend_317( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer str, int mask, ) { - return __objc_msgSend_315( + return __objc_msgSend_317( obj, sel, str, @@ -8530,14 +8579,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_315Ptr = _lookup< + late final __objc_msgSend_317Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_315 = __objc_msgSend_315Ptr.asFunction< + late final __objc_msgSend_317 = __objc_msgSend_317Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -8548,13 +8597,13 @@ class SentryCocoa { _registerName1("localizedStandardContainsString:"); late final _sel_localizedStandardRangeOfString_1 = _registerName1("localizedStandardRangeOfString:"); - void _objc_msgSend_316( + void _objc_msgSend_318( ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer str, ) { - return __objc_msgSend_316( + return __objc_msgSend_318( stret, obj, sel, @@ -8562,28 +8611,28 @@ class SentryCocoa { ); } - late final __objc_msgSend_316Ptr = _lookup< + late final __objc_msgSend_318Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer<_NSRange>, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend_stret'); - late final __objc_msgSend_316 = __objc_msgSend_316Ptr.asFunction< + late final __objc_msgSend_318 = __objc_msgSend_318Ptr.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:"); - void _objc_msgSend_317( + void _objc_msgSend_319( ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer searchString, int mask, ) { - return __objc_msgSend_317( + return __objc_msgSend_319( stret, obj, sel, @@ -8592,7 +8641,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_317Ptr = _lookup< + late final __objc_msgSend_319Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer<_NSRange>, @@ -8600,13 +8649,13 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend_stret'); - late final __objc_msgSend_317 = __objc_msgSend_317Ptr.asFunction< + late final __objc_msgSend_319 = __objc_msgSend_319Ptr.asFunction< void Function(ffi.Pointer<_NSRange>, ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_rangeOfString_options_range_1 = _registerName1("rangeOfString:options:range:"); - void _objc_msgSend_318( + void _objc_msgSend_320( ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, @@ -8614,7 +8663,7 @@ class SentryCocoa { int mask, _NSRange rangeOfReceiverToSearch, ) { - return __objc_msgSend_318( + return __objc_msgSend_320( stret, obj, sel, @@ -8624,7 +8673,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_318Ptr = _lookup< + late final __objc_msgSend_320Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer<_NSRange>, @@ -8633,13 +8682,13 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend_stret'); - late final __objc_msgSend_318 = __objc_msgSend_318Ptr.asFunction< + late final __objc_msgSend_320 = __objc_msgSend_320Ptr.asFunction< void Function(ffi.Pointer<_NSRange>, ffi.Pointer, ffi.Pointer, ffi.Pointer, int, _NSRange)>(); late final _sel_rangeOfString_options_range_locale_1 = _registerName1("rangeOfString:options:range:locale:"); - void _objc_msgSend_319( + void _objc_msgSend_321( ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, @@ -8648,7 +8697,7 @@ class SentryCocoa { _NSRange rangeOfReceiverToSearch, ffi.Pointer locale, ) { - return __objc_msgSend_319( + return __objc_msgSend_321( stret, obj, sel, @@ -8659,7 +8708,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_319Ptr = _lookup< + late final __objc_msgSend_321Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer<_NSRange>, @@ -8669,7 +8718,7 @@ class SentryCocoa { ffi.Int32, _NSRange, ffi.Pointer)>>('objc_msgSend_stret'); - late final __objc_msgSend_319 = __objc_msgSend_319Ptr.asFunction< + late final __objc_msgSend_321 = __objc_msgSend_321Ptr.asFunction< void Function( ffi.Pointer<_NSRange>, ffi.Pointer, @@ -8681,13 +8730,13 @@ class SentryCocoa { late final _sel_rangeOfCharacterFromSet_1 = _registerName1("rangeOfCharacterFromSet:"); - void _objc_msgSend_320( + void _objc_msgSend_322( ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer searchSet, ) { - return __objc_msgSend_320( + return __objc_msgSend_322( stret, obj, sel, @@ -8695,27 +8744,27 @@ class SentryCocoa { ); } - late final __objc_msgSend_320Ptr = _lookup< + late final __objc_msgSend_322Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer<_NSRange>, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend_stret'); - late final __objc_msgSend_320 = __objc_msgSend_320Ptr.asFunction< + late final __objc_msgSend_322 = __objc_msgSend_322Ptr.asFunction< void Function(ffi.Pointer<_NSRange>, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_rangeOfCharacterFromSet_options_1 = _registerName1("rangeOfCharacterFromSet:options:"); - void _objc_msgSend_321( + void _objc_msgSend_323( ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer searchSet, int mask, ) { - return __objc_msgSend_321( + return __objc_msgSend_323( stret, obj, sel, @@ -8724,7 +8773,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_321Ptr = _lookup< + late final __objc_msgSend_323Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer<_NSRange>, @@ -8732,13 +8781,13 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend_stret'); - late final __objc_msgSend_321 = __objc_msgSend_321Ptr.asFunction< + late final __objc_msgSend_323 = __objc_msgSend_323Ptr.asFunction< void Function(ffi.Pointer<_NSRange>, ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_rangeOfCharacterFromSet_options_range_1 = _registerName1("rangeOfCharacterFromSet:options:range:"); - void _objc_msgSend_322( + void _objc_msgSend_324( ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, @@ -8746,7 +8795,7 @@ class SentryCocoa { int mask, _NSRange rangeOfReceiverToSearch, ) { - return __objc_msgSend_322( + return __objc_msgSend_324( stret, obj, sel, @@ -8756,7 +8805,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_322Ptr = _lookup< + late final __objc_msgSend_324Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer<_NSRange>, @@ -8765,19 +8814,19 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend_stret'); - late final __objc_msgSend_322 = __objc_msgSend_322Ptr.asFunction< + late final __objc_msgSend_324 = __objc_msgSend_324Ptr.asFunction< void Function(ffi.Pointer<_NSRange>, ffi.Pointer, ffi.Pointer, ffi.Pointer, int, _NSRange)>(); late final _sel_rangeOfComposedCharacterSequenceAtIndex_1 = _registerName1("rangeOfComposedCharacterSequenceAtIndex:"); - void _objc_msgSend_323( + void _objc_msgSend_325( ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_323( + return __objc_msgSend_325( stret, obj, sel, @@ -8785,23 +8834,23 @@ class SentryCocoa { ); } - late final __objc_msgSend_323Ptr = _lookup< + late final __objc_msgSend_325Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer<_NSRange>, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend_stret'); - late final __objc_msgSend_323 = __objc_msgSend_323Ptr.asFunction< + late final __objc_msgSend_325 = __objc_msgSend_325Ptr.asFunction< void Function(ffi.Pointer<_NSRange>, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_rangeOfComposedCharacterSequencesForRange_1 = _registerName1("rangeOfComposedCharacterSequencesForRange:"); - void _objc_msgSend_324( + void _objc_msgSend_326( ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ) { - return __objc_msgSend_324( + return __objc_msgSend_326( stret, obj, sel, @@ -8809,11 +8858,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_324Ptr = _lookup< + late final __objc_msgSend_326Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer<_NSRange>, ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend_stret'); - late final __objc_msgSend_324 = __objc_msgSend_324Ptr.asFunction< + late final __objc_msgSend_326 = __objc_msgSend_326Ptr.asFunction< void Function(ffi.Pointer<_NSRange>, ffi.Pointer, ffi.Pointer, _NSRange)>(); @@ -8832,23 +8881,23 @@ class SentryCocoa { _registerName1("localizedCapitalizedString"); late final _sel_uppercaseStringWithLocale_1 = _registerName1("uppercaseStringWithLocale:"); - ffi.Pointer _objc_msgSend_325( + ffi.Pointer _objc_msgSend_327( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer locale, ) { - return __objc_msgSend_325( + return __objc_msgSend_327( obj, sel, locale, ); } - late final __objc_msgSend_325Ptr = _lookup< + late final __objc_msgSend_327Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_325 = __objc_msgSend_325Ptr.asFunction< + late final __objc_msgSend_327 = __objc_msgSend_327Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -8858,7 +8907,7 @@ class SentryCocoa { _registerName1("capitalizedStringWithLocale:"); late final _sel_getLineStart_end_contentsEnd_forRange_1 = _registerName1("getLineStart:end:contentsEnd:forRange:"); - void _objc_msgSend_326( + void _objc_msgSend_328( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer startPtr, @@ -8866,7 +8915,7 @@ class SentryCocoa { ffi.Pointer contentsEndPtr, _NSRange range, ) { - return __objc_msgSend_326( + return __objc_msgSend_328( obj, sel, startPtr, @@ -8876,7 +8925,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_326Ptr = _lookup< + late final __objc_msgSend_328Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -8885,7 +8934,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_326 = __objc_msgSend_326Ptr.asFunction< + late final __objc_msgSend_328 = __objc_msgSend_328Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -8901,14 +8950,14 @@ class SentryCocoa { _registerName1("paragraphRangeForRange:"); late final _sel_enumerateSubstringsInRange_options_usingBlock_1 = _registerName1("enumerateSubstringsInRange:options:usingBlock:"); - void _objc_msgSend_327( + void _objc_msgSend_329( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_327( + return __objc_msgSend_329( obj, sel, range, @@ -8917,33 +8966,33 @@ class SentryCocoa { ); } - late final __objc_msgSend_327Ptr = _lookup< + late final __objc_msgSend_329Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_327 = __objc_msgSend_327Ptr.asFunction< + late final __objc_msgSend_329 = __objc_msgSend_329Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, _NSRange, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateLinesUsingBlock_1 = _registerName1("enumerateLinesUsingBlock:"); - void _objc_msgSend_328( + void _objc_msgSend_330( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_328( + return __objc_msgSend_330( obj, sel, block, ); } - late final __objc_msgSend_328Ptr = _lookup< + late final __objc_msgSend_330Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_328 = __objc_msgSend_328Ptr.asFunction< + late final __objc_msgSend_330 = __objc_msgSend_330Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); @@ -8952,13 +9001,13 @@ class SentryCocoa { late final _sel_smallestEncoding1 = _registerName1("smallestEncoding"); late final _sel_dataUsingEncoding_allowLossyConversion_1 = _registerName1("dataUsingEncoding:allowLossyConversion:"); - ffi.Pointer _objc_msgSend_329( + ffi.Pointer _objc_msgSend_331( ffi.Pointer obj, ffi.Pointer sel, int encoding, bool lossy, ) { - return __objc_msgSend_329( + return __objc_msgSend_331( obj, sel, encoding, @@ -8966,35 +9015,35 @@ class SentryCocoa { ); } - late final __objc_msgSend_329Ptr = _lookup< + late final __objc_msgSend_331Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.UnsignedLong, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_329 = __objc_msgSend_329Ptr.asFunction< + late final __objc_msgSend_331 = __objc_msgSend_331Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int, bool)>(); late final _sel_dataUsingEncoding_1 = _registerName1("dataUsingEncoding:"); - ffi.Pointer _objc_msgSend_330( + ffi.Pointer _objc_msgSend_332( ffi.Pointer obj, ffi.Pointer sel, int encoding, ) { - return __objc_msgSend_330( + return __objc_msgSend_332( obj, sel, encoding, ); } - late final __objc_msgSend_330Ptr = _lookup< + late final __objc_msgSend_332Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_330 = __objc_msgSend_330Ptr.asFunction< + late final __objc_msgSend_332 = __objc_msgSend_332Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -9004,14 +9053,14 @@ class SentryCocoa { _registerName1("cStringUsingEncoding:"); late final _sel_getCString_maxLength_encoding_1 = _registerName1("getCString:maxLength:encoding:"); - bool _objc_msgSend_331( + bool _objc_msgSend_333( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, int maxBufferCount, int encoding, ) { - return __objc_msgSend_331( + return __objc_msgSend_333( obj, sel, buffer, @@ -9020,7 +9069,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_331Ptr = _lookup< + late final __objc_msgSend_333Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -9028,14 +9077,14 @@ class SentryCocoa { ffi.Pointer, ffi.UnsignedLong, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_331 = __objc_msgSend_331Ptr.asFunction< + late final __objc_msgSend_333 = __objc_msgSend_333Ptr.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_332( + bool _objc_msgSend_334( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, @@ -9046,7 +9095,7 @@ class SentryCocoa { _NSRange range, ffi.Pointer<_NSRange> leftover, ) { - return __objc_msgSend_332( + return __objc_msgSend_334( obj, sel, buffer, @@ -9059,7 +9108,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_332Ptr = _lookup< + late final __objc_msgSend_334Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -9071,7 +9120,7 @@ class SentryCocoa { ffi.Int32, _NSRange, ffi.Pointer<_NSRange>)>>('objc_msgSend'); - late final __objc_msgSend_332 = __objc_msgSend_332Ptr.asFunction< + late final __objc_msgSend_334 = __objc_msgSend_334Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -9089,21 +9138,21 @@ class SentryCocoa { _registerName1("lengthOfBytesUsingEncoding:"); late final _sel_availableStringEncodings1 = _registerName1("availableStringEncodings"); - ffi.Pointer _objc_msgSend_333( + ffi.Pointer _objc_msgSend_335( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_333( + return __objc_msgSend_335( obj, sel, ); } - late final __objc_msgSend_333Ptr = _lookup< + late final __objc_msgSend_335Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_333 = __objc_msgSend_333Ptr.asFunction< + late final __objc_msgSend_335 = __objc_msgSend_335Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -9123,58 +9172,58 @@ class SentryCocoa { _registerName1("componentsSeparatedByString:"); late final _sel_componentsSeparatedByCharactersInSet_1 = _registerName1("componentsSeparatedByCharactersInSet:"); - ffi.Pointer _objc_msgSend_334( + ffi.Pointer _objc_msgSend_336( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer separator, ) { - return __objc_msgSend_334( + return __objc_msgSend_336( obj, sel, separator, ); } - late final __objc_msgSend_334Ptr = _lookup< + late final __objc_msgSend_336Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_334 = __objc_msgSend_334Ptr.asFunction< + late final __objc_msgSend_336 = __objc_msgSend_336Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_stringByTrimmingCharactersInSet_1 = _registerName1("stringByTrimmingCharactersInSet:"); - ffi.Pointer _objc_msgSend_335( + ffi.Pointer _objc_msgSend_337( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer set1, ) { - return __objc_msgSend_335( + return __objc_msgSend_337( obj, sel, set1, ); } - late final __objc_msgSend_335Ptr = _lookup< + late final __objc_msgSend_337Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_335 = __objc_msgSend_335Ptr.asFunction< + late final __objc_msgSend_337 = __objc_msgSend_337Ptr.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_336( + ffi.Pointer _objc_msgSend_338( ffi.Pointer obj, ffi.Pointer sel, int newLength, ffi.Pointer padString, int padIndex, ) { - return __objc_msgSend_336( + return __objc_msgSend_338( obj, sel, newLength, @@ -9183,7 +9232,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_336Ptr = _lookup< + late final __objc_msgSend_338Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -9191,19 +9240,19 @@ class SentryCocoa { ffi.UnsignedLong, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_336 = __objc_msgSend_336Ptr.asFunction< + late final __objc_msgSend_338 = __objc_msgSend_338Ptr.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_337( + ffi.Pointer _objc_msgSend_339( ffi.Pointer obj, ffi.Pointer sel, int options, ffi.Pointer locale, ) { - return __objc_msgSend_337( + return __objc_msgSend_339( obj, sel, options, @@ -9211,21 +9260,21 @@ class SentryCocoa { ); } - late final __objc_msgSend_337Ptr = _lookup< + late final __objc_msgSend_339Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_337 = __objc_msgSend_337Ptr.asFunction< + late final __objc_msgSend_339 = __objc_msgSend_339Ptr.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_338( + ffi.Pointer _objc_msgSend_340( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer target, @@ -9233,7 +9282,7 @@ class SentryCocoa { int options, _NSRange searchRange, ) { - return __objc_msgSend_338( + return __objc_msgSend_340( obj, sel, target, @@ -9243,7 +9292,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_338Ptr = _lookup< + late final __objc_msgSend_340Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -9252,7 +9301,7 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_338 = __objc_msgSend_338Ptr.asFunction< + late final __objc_msgSend_340 = __objc_msgSend_340Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -9263,13 +9312,13 @@ class SentryCocoa { late final _sel_stringByReplacingOccurrencesOfString_withString_1 = _registerName1("stringByReplacingOccurrencesOfString:withString:"); - ffi.Pointer _objc_msgSend_339( + ffi.Pointer _objc_msgSend_341( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer target, ffi.Pointer replacement, ) { - return __objc_msgSend_339( + return __objc_msgSend_341( obj, sel, target, @@ -9277,14 +9326,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_339Ptr = _lookup< + late final __objc_msgSend_341Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_339 = __objc_msgSend_339Ptr.asFunction< + late final __objc_msgSend_341 = __objc_msgSend_341Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -9293,13 +9342,13 @@ class SentryCocoa { late final _sel_stringByReplacingCharactersInRange_withString_1 = _registerName1("stringByReplacingCharactersInRange:withString:"); - ffi.Pointer _objc_msgSend_340( + ffi.Pointer _objc_msgSend_342( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer replacement, ) { - return __objc_msgSend_340( + return __objc_msgSend_342( obj, sel, range, @@ -9307,26 +9356,26 @@ class SentryCocoa { ); } - late final __objc_msgSend_340Ptr = _lookup< + late final __objc_msgSend_342Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_340 = __objc_msgSend_340Ptr.asFunction< + late final __objc_msgSend_342 = __objc_msgSend_342Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_stringByApplyingTransform_reverse_1 = _registerName1("stringByApplyingTransform:reverse:"); - ffi.Pointer _objc_msgSend_341( + ffi.Pointer _objc_msgSend_343( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer transform, bool reverse, ) { - return __objc_msgSend_341( + return __objc_msgSend_343( obj, sel, transform, @@ -9334,20 +9383,20 @@ class SentryCocoa { ); } - late final __objc_msgSend_341Ptr = _lookup< + late final __objc_msgSend_343Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_341 = __objc_msgSend_341Ptr.asFunction< + late final __objc_msgSend_343 = __objc_msgSend_343Ptr.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_342( + bool _objc_msgSend_344( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, @@ -9355,7 +9404,7 @@ class SentryCocoa { int enc, ffi.Pointer> error, ) { - return __objc_msgSend_342( + return __objc_msgSend_344( obj, sel, url, @@ -9365,7 +9414,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_342Ptr = _lookup< + late final __objc_msgSend_344Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -9374,7 +9423,7 @@ class SentryCocoa { ffi.Bool, ffi.UnsignedLong, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_342 = __objc_msgSend_342Ptr.asFunction< + late final __objc_msgSend_344 = __objc_msgSend_344Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -9385,7 +9434,7 @@ class SentryCocoa { late final _sel_writeToFile_atomically_encoding_error_1 = _registerName1("writeToFile:atomically:encoding:error:"); - bool _objc_msgSend_343( + bool _objc_msgSend_345( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, @@ -9393,7 +9442,7 @@ class SentryCocoa { int enc, ffi.Pointer> error, ) { - return __objc_msgSend_343( + return __objc_msgSend_345( obj, sel, path, @@ -9403,7 +9452,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_343Ptr = _lookup< + late final __objc_msgSend_345Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -9412,7 +9461,7 @@ class SentryCocoa { ffi.Bool, ffi.UnsignedLong, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_343 = __objc_msgSend_343Ptr.asFunction< + late final __objc_msgSend_345 = __objc_msgSend_345Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -9424,14 +9473,14 @@ class SentryCocoa { late final _sel_hash1 = _registerName1("hash"); late final _sel_initWithCharactersNoCopy_length_freeWhenDone_1 = _registerName1("initWithCharactersNoCopy:length:freeWhenDone:"); - instancetype _objc_msgSend_344( + instancetype _objc_msgSend_346( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer characters, int length, bool freeBuffer, ) { - return __objc_msgSend_344( + return __objc_msgSend_346( obj, sel, characters, @@ -9440,7 +9489,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_344Ptr = _lookup< + late final __objc_msgSend_346Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -9448,20 +9497,20 @@ class SentryCocoa { ffi.Pointer, ffi.UnsignedLong, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_344 = __objc_msgSend_344Ptr.asFunction< + late final __objc_msgSend_346 = __objc_msgSend_346Ptr.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_345( + instancetype _objc_msgSend_347( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer chars, int len, ffi.Pointer<_ObjCBlock> deallocator, ) { - return __objc_msgSend_345( + return __objc_msgSend_347( obj, sel, chars, @@ -9470,7 +9519,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_345Ptr = _lookup< + late final __objc_msgSend_347Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -9478,19 +9527,19 @@ class SentryCocoa { ffi.Pointer, ffi.UnsignedLong, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_345 = __objc_msgSend_345Ptr.asFunction< + late final __objc_msgSend_347 = __objc_msgSend_347Ptr.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_346( + instancetype _objc_msgSend_348( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer characters, int length, ) { - return __objc_msgSend_346( + return __objc_msgSend_348( obj, sel, characters, @@ -9498,48 +9547,48 @@ class SentryCocoa { ); } - late final __objc_msgSend_346Ptr = _lookup< + late final __objc_msgSend_348Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_346 = __objc_msgSend_346Ptr.asFunction< + late final __objc_msgSend_348 = __objc_msgSend_348Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithUTF8String_1 = _registerName1("initWithUTF8String:"); - instancetype _objc_msgSend_347( + instancetype _objc_msgSend_349( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer nullTerminatedCString, ) { - return __objc_msgSend_347( + return __objc_msgSend_349( obj, sel, nullTerminatedCString, ); } - late final __objc_msgSend_347Ptr = _lookup< + late final __objc_msgSend_349Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_347 = __objc_msgSend_347Ptr.asFunction< + late final __objc_msgSend_349 = __objc_msgSend_349Ptr.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_348( + instancetype _objc_msgSend_350( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, ffi.Pointer<__va_list_tag> argList, ) { - return __objc_msgSend_348( + return __objc_msgSend_350( obj, sel, format, @@ -9547,14 +9596,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_348Ptr = _lookup< + late final __objc_msgSend_350Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); - late final __objc_msgSend_348 = __objc_msgSend_348Ptr.asFunction< + late final __objc_msgSend_350 = __objc_msgSend_350Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<__va_list_tag>)>(); @@ -9562,14 +9611,14 @@ class SentryCocoa { _registerName1("initWithFormat:locale:"); late final _sel_initWithFormat_locale_arguments_1 = _registerName1("initWithFormat:locale:arguments:"); - instancetype _objc_msgSend_349( + instancetype _objc_msgSend_351( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, ffi.Pointer locale, ffi.Pointer<__va_list_tag> argList, ) { - return __objc_msgSend_349( + return __objc_msgSend_351( obj, sel, format, @@ -9578,7 +9627,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_349Ptr = _lookup< + late final __objc_msgSend_351Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -9586,7 +9635,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); - late final __objc_msgSend_349 = __objc_msgSend_349Ptr.asFunction< + late final __objc_msgSend_351 = __objc_msgSend_351Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -9596,14 +9645,14 @@ class SentryCocoa { late final _sel_initWithValidatedFormat_validFormatSpecifiers_error_1 = _registerName1("initWithValidatedFormat:validFormatSpecifiers:error:"); - instancetype _objc_msgSend_350( + instancetype _objc_msgSend_352( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, ffi.Pointer validFormatSpecifiers, ffi.Pointer> error, ) { - return __objc_msgSend_350( + return __objc_msgSend_352( obj, sel, format, @@ -9612,7 +9661,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_350Ptr = _lookup< + late final __objc_msgSend_352Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -9620,7 +9669,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_350 = __objc_msgSend_350Ptr.asFunction< + late final __objc_msgSend_352 = __objc_msgSend_352Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -9631,7 +9680,7 @@ class SentryCocoa { late final _sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_1 = _registerName1( "initWithValidatedFormat:validFormatSpecifiers:locale:error:"); - instancetype _objc_msgSend_351( + instancetype _objc_msgSend_353( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, @@ -9639,7 +9688,7 @@ class SentryCocoa { ffi.Pointer locale, ffi.Pointer> error, ) { - return __objc_msgSend_351( + return __objc_msgSend_353( obj, sel, format, @@ -9649,7 +9698,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_351Ptr = _lookup< + late final __objc_msgSend_353Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -9658,7 +9707,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_351 = __objc_msgSend_351Ptr.asFunction< + late final __objc_msgSend_353 = __objc_msgSend_353Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -9670,7 +9719,7 @@ class SentryCocoa { late final _sel_initWithValidatedFormat_validFormatSpecifiers_arguments_error_1 = _registerName1( "initWithValidatedFormat:validFormatSpecifiers:arguments:error:"); - instancetype _objc_msgSend_352( + instancetype _objc_msgSend_354( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, @@ -9678,7 +9727,7 @@ class SentryCocoa { ffi.Pointer<__va_list_tag> argList, ffi.Pointer> error, ) { - return __objc_msgSend_352( + return __objc_msgSend_354( obj, sel, format, @@ -9688,7 +9737,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_352Ptr = _lookup< + late final __objc_msgSend_354Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -9697,7 +9746,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer<__va_list_tag>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_352 = __objc_msgSend_352Ptr.asFunction< + late final __objc_msgSend_354 = __objc_msgSend_354Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -9709,7 +9758,7 @@ class SentryCocoa { late final _sel_initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_1 = _registerName1( "initWithValidatedFormat:validFormatSpecifiers:locale:arguments:error:"); - instancetype _objc_msgSend_353( + instancetype _objc_msgSend_355( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, @@ -9718,7 +9767,7 @@ class SentryCocoa { ffi.Pointer<__va_list_tag> argList, ffi.Pointer> error, ) { - return __objc_msgSend_353( + return __objc_msgSend_355( obj, sel, format, @@ -9729,7 +9778,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_353Ptr = _lookup< + late final __objc_msgSend_355Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -9739,7 +9788,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer<__va_list_tag>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_353 = __objc_msgSend_353Ptr.asFunction< + late final __objc_msgSend_355 = __objc_msgSend_355Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -9751,13 +9800,13 @@ class SentryCocoa { late final _sel_initWithData_encoding_1 = _registerName1("initWithData:encoding:"); - instancetype _objc_msgSend_354( + instancetype _objc_msgSend_356( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, int encoding, ) { - return __objc_msgSend_354( + return __objc_msgSend_356( obj, sel, data, @@ -9765,24 +9814,24 @@ class SentryCocoa { ); } - late final __objc_msgSend_354Ptr = _lookup< + late final __objc_msgSend_356Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_354 = __objc_msgSend_354Ptr.asFunction< + late final __objc_msgSend_356 = __objc_msgSend_356Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithBytes_length_encoding_1 = _registerName1("initWithBytes:length:encoding:"); - instancetype _objc_msgSend_355( + instancetype _objc_msgSend_357( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, int len, int encoding, ) { - return __objc_msgSend_355( + return __objc_msgSend_357( obj, sel, bytes, @@ -9791,7 +9840,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_355Ptr = _lookup< + late final __objc_msgSend_357Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -9799,13 +9848,13 @@ class SentryCocoa { ffi.Pointer, ffi.UnsignedLong, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_355 = __objc_msgSend_355Ptr.asFunction< + late final __objc_msgSend_357 = __objc_msgSend_357Ptr.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_356( + instancetype _objc_msgSend_358( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, @@ -9813,7 +9862,7 @@ class SentryCocoa { int encoding, bool freeBuffer, ) { - return __objc_msgSend_356( + return __objc_msgSend_358( obj, sel, bytes, @@ -9823,7 +9872,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_356Ptr = _lookup< + late final __objc_msgSend_358Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -9832,13 +9881,13 @@ class SentryCocoa { ffi.UnsignedLong, ffi.UnsignedLong, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_356 = __objc_msgSend_356Ptr.asFunction< + late final __objc_msgSend_358 = __objc_msgSend_358Ptr.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_357( + instancetype _objc_msgSend_359( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, @@ -9846,7 +9895,7 @@ class SentryCocoa { int encoding, ffi.Pointer<_ObjCBlock> deallocator, ) { - return __objc_msgSend_357( + return __objc_msgSend_359( obj, sel, bytes, @@ -9856,7 +9905,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_357Ptr = _lookup< + late final __objc_msgSend_359Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -9865,7 +9914,7 @@ class SentryCocoa { ffi.UnsignedLong, ffi.UnsignedLong, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_357 = __objc_msgSend_357Ptr.asFunction< + late final __objc_msgSend_359 = __objc_msgSend_359Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer<_ObjCBlock>)>(); @@ -9885,13 +9934,13 @@ class SentryCocoa { "localizedStringWithValidatedFormat:validFormatSpecifiers:error:"); late final _sel_initWithCString_encoding_1 = _registerName1("initWithCString:encoding:"); - instancetype _objc_msgSend_358( + instancetype _objc_msgSend_360( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer nullTerminatedCString, int encoding, ) { - return __objc_msgSend_358( + return __objc_msgSend_360( obj, sel, nullTerminatedCString, @@ -9899,11 +9948,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_358Ptr = _lookup< + late final __objc_msgSend_360Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_358 = __objc_msgSend_358Ptr.asFunction< + late final __objc_msgSend_360 = __objc_msgSend_360Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -9911,14 +9960,14 @@ class SentryCocoa { _registerName1("stringWithCString:encoding:"); late final _sel_initWithContentsOfURL_encoding_error_1 = _registerName1("initWithContentsOfURL:encoding:error:"); - instancetype _objc_msgSend_359( + instancetype _objc_msgSend_361( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, int enc, ffi.Pointer> error, ) { - return __objc_msgSend_359( + return __objc_msgSend_361( obj, sel, url, @@ -9927,7 +9976,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_359Ptr = _lookup< + late final __objc_msgSend_361Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -9935,7 +9984,7 @@ class SentryCocoa { ffi.Pointer, ffi.UnsignedLong, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_359 = __objc_msgSend_359Ptr.asFunction< + late final __objc_msgSend_361 = __objc_msgSend_361Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -9945,14 +9994,14 @@ class SentryCocoa { late final _sel_initWithContentsOfFile_encoding_error_1 = _registerName1("initWithContentsOfFile:encoding:error:"); - instancetype _objc_msgSend_360( + instancetype _objc_msgSend_362( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, int enc, ffi.Pointer> error, ) { - return __objc_msgSend_360( + return __objc_msgSend_362( obj, sel, path, @@ -9961,7 +10010,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_360Ptr = _lookup< + late final __objc_msgSend_362Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -9969,7 +10018,7 @@ class SentryCocoa { ffi.Pointer, ffi.UnsignedLong, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_360 = __objc_msgSend_360Ptr.asFunction< + late final __objc_msgSend_362 = __objc_msgSend_362Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -9983,14 +10032,14 @@ class SentryCocoa { _registerName1("stringWithContentsOfFile:encoding:error:"); late final _sel_initWithContentsOfURL_usedEncoding_error_1 = _registerName1("initWithContentsOfURL:usedEncoding:error:"); - instancetype _objc_msgSend_361( + instancetype _objc_msgSend_363( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer enc, ffi.Pointer> error, ) { - return __objc_msgSend_361( + return __objc_msgSend_363( obj, sel, url, @@ -9999,7 +10048,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_361Ptr = _lookup< + late final __objc_msgSend_363Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -10007,7 +10056,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_361 = __objc_msgSend_361Ptr.asFunction< + late final __objc_msgSend_363 = __objc_msgSend_363Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -10017,14 +10066,14 @@ class SentryCocoa { late final _sel_initWithContentsOfFile_usedEncoding_error_1 = _registerName1("initWithContentsOfFile:usedEncoding:error:"); - instancetype _objc_msgSend_362( + instancetype _objc_msgSend_364( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer enc, ffi.Pointer> error, ) { - return __objc_msgSend_362( + return __objc_msgSend_364( obj, sel, path, @@ -10033,7 +10082,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_362Ptr = _lookup< + late final __objc_msgSend_364Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -10041,7 +10090,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_362 = __objc_msgSend_362Ptr.asFunction< + late final __objc_msgSend_364 = __objc_msgSend_364Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -10056,7 +10105,7 @@ class SentryCocoa { late final _sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1 = _registerName1( "stringEncodingForData:encodingOptions:convertedString:usedLossyConversion:"); - int _objc_msgSend_363( + int _objc_msgSend_365( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, @@ -10064,7 +10113,7 @@ class SentryCocoa { ffi.Pointer> string, ffi.Pointer usedLossyConversion, ) { - return __objc_msgSend_363( + return __objc_msgSend_365( obj, sel, data, @@ -10074,7 +10123,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_363Ptr = _lookup< + late final __objc_msgSend_365Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedLong Function( ffi.Pointer, @@ -10083,7 +10132,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer>, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_363 = __objc_msgSend_363Ptr.asFunction< + late final __objc_msgSend_365 = __objc_msgSend_365Ptr.asFunction< int Function( ffi.Pointer, ffi.Pointer, @@ -10101,13 +10150,13 @@ class SentryCocoa { late final _sel_getCString_1 = _registerName1("getCString:"); late final _sel_getCString_maxLength_1 = _registerName1("getCString:maxLength:"); - void _objc_msgSend_364( + void _objc_msgSend_366( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, int maxLength, ) { - return __objc_msgSend_364( + return __objc_msgSend_366( obj, sel, bytes, @@ -10115,17 +10164,17 @@ class SentryCocoa { ); } - late final __objc_msgSend_364Ptr = _lookup< + late final __objc_msgSend_366Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_364 = __objc_msgSend_364Ptr.asFunction< + late final __objc_msgSend_366 = __objc_msgSend_366Ptr.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_365( + void _objc_msgSend_367( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, @@ -10133,7 +10182,7 @@ class SentryCocoa { _NSRange aRange, ffi.Pointer<_NSRange> leftoverRange, ) { - return __objc_msgSend_365( + return __objc_msgSend_367( obj, sel, bytes, @@ -10143,7 +10192,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_365Ptr = _lookup< + late final __objc_msgSend_367Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -10152,7 +10201,7 @@ class SentryCocoa { ffi.UnsignedLong, _NSRange, ffi.Pointer<_NSRange>)>>('objc_msgSend'); - late final __objc_msgSend_365 = __objc_msgSend_365Ptr.asFunction< + late final __objc_msgSend_367 = __objc_msgSend_367Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, _NSRange, ffi.Pointer<_NSRange>)>(); @@ -10162,14 +10211,14 @@ class SentryCocoa { _registerName1("stringWithContentsOfURL:"); late final _sel_initWithCStringNoCopy_length_freeWhenDone_1 = _registerName1("initWithCStringNoCopy:length:freeWhenDone:"); - ffi.Pointer _objc_msgSend_366( + ffi.Pointer _objc_msgSend_368( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, int length, bool freeBuffer, ) { - return __objc_msgSend_366( + return __objc_msgSend_368( obj, sel, bytes, @@ -10178,7 +10227,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_366Ptr = _lookup< + late final __objc_msgSend_368Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -10186,7 +10235,7 @@ class SentryCocoa { ffi.Pointer, ffi.UnsignedLong, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_366 = __objc_msgSend_366Ptr.asFunction< + late final __objc_msgSend_368 = __objc_msgSend_368Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, bool)>(); @@ -10197,66 +10246,66 @@ class SentryCocoa { _registerName1("stringWithCString:length:"); late final _sel_stringWithCString_1 = _registerName1("stringWithCString:"); late final _sel_getCharacters_1 = _registerName1("getCharacters:"); - void _objc_msgSend_367( + void _objc_msgSend_369( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, ) { - return __objc_msgSend_367( + return __objc_msgSend_369( obj, sel, buffer, ); } - late final __objc_msgSend_367Ptr = _lookup< + late final __objc_msgSend_369Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_367 = __objc_msgSend_367Ptr.asFunction< + late final __objc_msgSend_369 = __objc_msgSend_369Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_variantFittingPresentationWidth_1 = _registerName1("variantFittingPresentationWidth:"); - ffi.Pointer _objc_msgSend_368( + ffi.Pointer _objc_msgSend_370( ffi.Pointer obj, ffi.Pointer sel, int width, ) { - return __objc_msgSend_368( + return __objc_msgSend_370( obj, sel, width, ); } - late final __objc_msgSend_368Ptr = _lookup< + late final __objc_msgSend_370Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_368 = __objc_msgSend_368Ptr.asFunction< + late final __objc_msgSend_370 = __objc_msgSend_370Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_pathWithComponents_1 = _registerName1("pathWithComponents:"); - ffi.Pointer _objc_msgSend_369( + ffi.Pointer _objc_msgSend_371( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer components, ) { - return __objc_msgSend_369( + return __objc_msgSend_371( obj, sel, components, ); } - late final __objc_msgSend_369Ptr = _lookup< + late final __objc_msgSend_371Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_369 = __objc_msgSend_369Ptr.asFunction< + late final __objc_msgSend_371 = __objc_msgSend_371Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -10282,7 +10331,7 @@ class SentryCocoa { late final _sel_completePathIntoString_caseSensitive_matchesIntoArray_filterTypes_1 = _registerName1( "completePathIntoString:caseSensitive:matchesIntoArray:filterTypes:"); - int _objc_msgSend_370( + int _objc_msgSend_372( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> outputName, @@ -10290,7 +10339,7 @@ class SentryCocoa { ffi.Pointer> outputArray, ffi.Pointer filterTypes, ) { - return __objc_msgSend_370( + return __objc_msgSend_372( obj, sel, outputName, @@ -10300,7 +10349,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_370Ptr = _lookup< + late final __objc_msgSend_372Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedLong Function( ffi.Pointer, @@ -10309,7 +10358,7 @@ class SentryCocoa { ffi.Bool, ffi.Pointer>, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_370 = __objc_msgSend_370Ptr.asFunction< + late final __objc_msgSend_372 = __objc_msgSend_372Ptr.asFunction< int Function( ffi.Pointer, ffi.Pointer, @@ -10331,13 +10380,13 @@ class SentryCocoa { late final _sel_languageMap1 = _registerName1("languageMap"); late final _sel_initWithDominantScript_languageMap_1 = _registerName1("initWithDominantScript:languageMap:"); - instancetype _objc_msgSend_371( + instancetype _objc_msgSend_373( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer script, ffi.Pointer map, ) { - return __objc_msgSend_371( + return __objc_msgSend_373( obj, sel, script, @@ -10345,14 +10394,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_371Ptr = _lookup< + late final __objc_msgSend_373Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_371 = __objc_msgSend_371Ptr.asFunction< + late final __objc_msgSend_373 = __objc_msgSend_373Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -10369,7 +10418,7 @@ class SentryCocoa { late final _sel_linguisticTagsInRange_scheme_options_orthography_tokenRanges_1 = _registerName1( "linguisticTagsInRange:scheme:options:orthography:tokenRanges:"); - ffi.Pointer _objc_msgSend_372( + ffi.Pointer _objc_msgSend_374( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, @@ -10378,7 +10427,7 @@ class SentryCocoa { ffi.Pointer orthography, ffi.Pointer> tokenRanges, ) { - return __objc_msgSend_372( + return __objc_msgSend_374( obj, sel, range, @@ -10389,7 +10438,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_372Ptr = _lookup< + late final __objc_msgSend_374Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -10399,7 +10448,7 @@ class SentryCocoa { ffi.Int32, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_372 = __objc_msgSend_372Ptr.asFunction< + late final __objc_msgSend_374 = __objc_msgSend_374Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -10412,7 +10461,7 @@ class SentryCocoa { late final _sel_enumerateLinguisticTagsInRange_scheme_options_orthography_usingBlock_1 = _registerName1( "enumerateLinguisticTagsInRange:scheme:options:orthography:usingBlock:"); - void _objc_msgSend_373( + void _objc_msgSend_375( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, @@ -10421,7 +10470,7 @@ class SentryCocoa { ffi.Pointer orthography, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_373( + return __objc_msgSend_375( obj, sel, range, @@ -10432,7 +10481,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_373Ptr = _lookup< + late final __objc_msgSend_375Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -10442,7 +10491,7 @@ class SentryCocoa { ffi.Int32, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_373 = __objc_msgSend_373Ptr.asFunction< + late final __objc_msgSend_375 = __objc_msgSend_375Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -10454,120 +10503,120 @@ class SentryCocoa { late final _sel_anyObject1 = _registerName1("anyObject"); late final _sel_intersectsSet_1 = _registerName1("intersectsSet:"); - bool _objc_msgSend_374( + bool _objc_msgSend_376( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherSet, ) { - return __objc_msgSend_374( + return __objc_msgSend_376( obj, sel, otherSet, ); } - late final __objc_msgSend_374Ptr = _lookup< + late final __objc_msgSend_376Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_374 = __objc_msgSend_374Ptr.asFunction< + late final __objc_msgSend_376 = __objc_msgSend_376Ptr.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_375( + ffi.Pointer _objc_msgSend_377( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, ) { - return __objc_msgSend_375( + return __objc_msgSend_377( obj, sel, anObject, ); } - late final __objc_msgSend_375Ptr = _lookup< + late final __objc_msgSend_377Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_375 = __objc_msgSend_375Ptr.asFunction< + late final __objc_msgSend_377 = __objc_msgSend_377Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_setByAddingObjectsFromSet_1 = _registerName1("setByAddingObjectsFromSet:"); - ffi.Pointer _objc_msgSend_376( + ffi.Pointer _objc_msgSend_378( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_376( + return __objc_msgSend_378( obj, sel, other, ); } - late final __objc_msgSend_376Ptr = _lookup< + late final __objc_msgSend_378Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_376 = __objc_msgSend_376Ptr.asFunction< + late final __objc_msgSend_378 = __objc_msgSend_378Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_setByAddingObjectsFromArray_1 = _registerName1("setByAddingObjectsFromArray:"); - ffi.Pointer _objc_msgSend_377( + ffi.Pointer _objc_msgSend_379( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_377( + return __objc_msgSend_379( obj, sel, other, ); } - late final __objc_msgSend_377Ptr = _lookup< + late final __objc_msgSend_379Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_377 = __objc_msgSend_377Ptr.asFunction< + late final __objc_msgSend_379 = __objc_msgSend_379Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - void _objc_msgSend_378( + void _objc_msgSend_380( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_378( + return __objc_msgSend_380( obj, sel, block, ); } - late final __objc_msgSend_378Ptr = _lookup< + late final __objc_msgSend_380Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_378 = __objc_msgSend_378Ptr.asFunction< + late final __objc_msgSend_380 = __objc_msgSend_380Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - void _objc_msgSend_379( + void _objc_msgSend_381( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_379( + return __objc_msgSend_381( obj, sel, opts, @@ -10575,44 +10624,44 @@ class SentryCocoa { ); } - late final __objc_msgSend_379Ptr = _lookup< + late final __objc_msgSend_381Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_379 = __objc_msgSend_379Ptr.asFunction< + late final __objc_msgSend_381 = __objc_msgSend_381Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_objectsPassingTest_1 = _registerName1("objectsPassingTest:"); - ffi.Pointer _objc_msgSend_380( + ffi.Pointer _objc_msgSend_382( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_380( + return __objc_msgSend_382( obj, sel, predicate, ); } - late final __objc_msgSend_380Ptr = _lookup< + late final __objc_msgSend_382Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_380 = __objc_msgSend_380Ptr.asFunction< + late final __objc_msgSend_382 = __objc_msgSend_382Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_objectsWithOptions_passingTest_1 = _registerName1("objectsWithOptions:passingTest:"); - ffi.Pointer _objc_msgSend_381( + ffi.Pointer _objc_msgSend_383( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_381( + return __objc_msgSend_383( obj, sel, opts, @@ -10620,14 +10669,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_381Ptr = _lookup< + late final __objc_msgSend_383Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_381 = __objc_msgSend_381Ptr.asFunction< + late final __objc_msgSend_383 = __objc_msgSend_383Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); @@ -10637,23 +10686,23 @@ class SentryCocoa { _registerName1("setWithObjects:count:"); late final _sel_setWithObjects_1 = _registerName1("setWithObjects:"); late final _sel_setWithSet_1 = _registerName1("setWithSet:"); - instancetype _objc_msgSend_382( + instancetype _objc_msgSend_384( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer set1, ) { - return __objc_msgSend_382( + return __objc_msgSend_384( obj, sel, set1, ); } - late final __objc_msgSend_382Ptr = _lookup< + late final __objc_msgSend_384Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_382 = __objc_msgSend_382Ptr.asFunction< + late final __objc_msgSend_384 = __objc_msgSend_384Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -10661,13 +10710,13 @@ class SentryCocoa { late final _sel_initWithSet_1 = _registerName1("initWithSet:"); late final _sel_initWithSet_copyItems_1 = _registerName1("initWithSet:copyItems:"); - instancetype _objc_msgSend_383( + instancetype _objc_msgSend_385( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer set1, bool flag, ) { - return __objc_msgSend_383( + return __objc_msgSend_385( obj, sel, set1, @@ -10675,74 +10724,74 @@ class SentryCocoa { ); } - late final __objc_msgSend_383Ptr = _lookup< + late final __objc_msgSend_385Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_383 = __objc_msgSend_383Ptr.asFunction< + late final __objc_msgSend_385 = __objc_msgSend_385Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_filteredSetUsingPredicate_1 = _registerName1("filteredSetUsingPredicate:"); - ffi.Pointer _objc_msgSend_384( + ffi.Pointer _objc_msgSend_386( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer predicate, ) { - return __objc_msgSend_384( + return __objc_msgSend_386( obj, sel, predicate, ); } - late final __objc_msgSend_384Ptr = _lookup< + late final __objc_msgSend_386Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_384 = __objc_msgSend_384Ptr.asFunction< + late final __objc_msgSend_386 = __objc_msgSend_386Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_invocationWithMethodSignature_1 = _registerName1("invocationWithMethodSignature:"); - ffi.Pointer _objc_msgSend_385( + ffi.Pointer _objc_msgSend_387( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer sig, ) { - return __objc_msgSend_385( + return __objc_msgSend_387( obj, sel, sig, ); } - late final __objc_msgSend_385Ptr = _lookup< + late final __objc_msgSend_387Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_385 = __objc_msgSend_385Ptr.asFunction< + late final __objc_msgSend_387 = __objc_msgSend_387Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_methodSignature1 = _registerName1("methodSignature"); - ffi.Pointer _objc_msgSend_386( + ffi.Pointer _objc_msgSend_388( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_386( + return __objc_msgSend_388( obj, sel, ); } - late final __objc_msgSend_386Ptr = _lookup< + late final __objc_msgSend_388Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_386 = __objc_msgSend_386Ptr.asFunction< + late final __objc_msgSend_388 = __objc_msgSend_388Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -10750,63 +10799,63 @@ class SentryCocoa { late final _sel_argumentsRetained1 = _registerName1("argumentsRetained"); late final _sel_target1 = _registerName1("target"); late final _sel_setTarget_1 = _registerName1("setTarget:"); - void _objc_msgSend_387( + void _objc_msgSend_389( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_387( + return __objc_msgSend_389( obj, sel, value, ); } - late final __objc_msgSend_387Ptr = _lookup< + late final __objc_msgSend_389Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_387 = __objc_msgSend_387Ptr.asFunction< + late final __objc_msgSend_389 = __objc_msgSend_389Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_selector1 = _registerName1("selector"); - ffi.Pointer _objc_msgSend_388( + ffi.Pointer _objc_msgSend_390( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_388( + return __objc_msgSend_390( obj, sel, ); } - late final __objc_msgSend_388Ptr = _lookup< + late final __objc_msgSend_390Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_388 = __objc_msgSend_388Ptr.asFunction< + late final __objc_msgSend_390 = __objc_msgSend_390Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setSelector_1 = _registerName1("setSelector:"); - void _objc_msgSend_389( + void _objc_msgSend_391( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_389( + return __objc_msgSend_391( obj, sel, value, ); } - late final __objc_msgSend_389Ptr = _lookup< + late final __objc_msgSend_391Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_389 = __objc_msgSend_389Ptr.asFunction< + late final __objc_msgSend_391 = __objc_msgSend_391Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -10814,13 +10863,13 @@ class SentryCocoa { late final _sel_setReturnValue_1 = _registerName1("setReturnValue:"); late final _sel_getArgument_atIndex_1 = _registerName1("getArgument:atIndex:"); - void _objc_msgSend_390( + void _objc_msgSend_392( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer argumentLocation, int idx, ) { - return __objc_msgSend_390( + return __objc_msgSend_392( obj, sel, argumentLocation, @@ -10828,11 +10877,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_390Ptr = _lookup< + late final __objc_msgSend_392Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_390 = __objc_msgSend_390Ptr.asFunction< + late final __objc_msgSend_392 = __objc_msgSend_392Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -10841,67 +10890,67 @@ class SentryCocoa { late final _sel_invoke1 = _registerName1("invoke"); late final _sel_invokeWithTarget_1 = _registerName1("invokeWithTarget:"); late final _sel_invokeUsingIMP_1 = _registerName1("invokeUsingIMP:"); - void _objc_msgSend_391( + void _objc_msgSend_393( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> imp, ) { - return __objc_msgSend_391( + return __objc_msgSend_393( obj, sel, imp, ); } - late final __objc_msgSend_391Ptr = _lookup< + late final __objc_msgSend_393Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>( 'objc_msgSend'); - late final __objc_msgSend_391 = __objc_msgSend_391Ptr.asFunction< + late final __objc_msgSend_393 = __objc_msgSend_393Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); late final _sel_forwardInvocation_1 = _registerName1("forwardInvocation:"); - void _objc_msgSend_392( + void _objc_msgSend_394( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anInvocation, ) { - return __objc_msgSend_392( + return __objc_msgSend_394( obj, sel, anInvocation, ); } - late final __objc_msgSend_392Ptr = _lookup< + late final __objc_msgSend_394Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_392 = __objc_msgSend_392Ptr.asFunction< + late final __objc_msgSend_394 = __objc_msgSend_394Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_methodSignatureForSelector_1 = _registerName1("methodSignatureForSelector:"); - ffi.Pointer _objc_msgSend_393( + ffi.Pointer _objc_msgSend_395( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, ) { - return __objc_msgSend_393( + return __objc_msgSend_395( obj, sel, aSelector, ); } - late final __objc_msgSend_393Ptr = _lookup< + late final __objc_msgSend_395Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_393 = __objc_msgSend_393Ptr.asFunction< + late final __objc_msgSend_395 = __objc_msgSend_395Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -10918,23 +10967,23 @@ class SentryCocoa { late final _sel_debugDescription1 = _registerName1("debugDescription"); late final _sel_version1 = _registerName1("version"); late final _sel_setVersion_1 = _registerName1("setVersion:"); - void _objc_msgSend_394( + void _objc_msgSend_396( ffi.Pointer obj, ffi.Pointer sel, int aVersion, ) { - return __objc_msgSend_394( + return __objc_msgSend_396( obj, sel, aVersion, ); } - late final __objc_msgSend_394Ptr = _lookup< + late final __objc_msgSend_396Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_394 = __objc_msgSend_394Ptr.asFunction< + late final __objc_msgSend_396 = __objc_msgSend_396Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_classForCoder1 = _registerName1("classForCoder"); @@ -10948,7 +10997,7 @@ class SentryCocoa { late final _sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_1 = _registerName1( "attemptRecoveryFromError:optionIndex:delegate:didRecoverSelector:contextInfo:"); - void _objc_msgSend_395( + void _objc_msgSend_397( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer error, @@ -10957,7 +11006,7 @@ class SentryCocoa { ffi.Pointer didRecoverSelector, ffi.Pointer contextInfo, ) { - return __objc_msgSend_395( + return __objc_msgSend_397( obj, sel, error, @@ -10968,7 +11017,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_395Ptr = _lookup< + late final __objc_msgSend_397Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -10978,7 +11027,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_395 = __objc_msgSend_395Ptr.asFunction< + late final __objc_msgSend_397 = __objc_msgSend_397Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -10990,13 +11039,13 @@ class SentryCocoa { late final _sel_attemptRecoveryFromError_optionIndex_1 = _registerName1("attemptRecoveryFromError:optionIndex:"); - bool _objc_msgSend_396( + bool _objc_msgSend_398( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer error, int recoveryOptionIndex, ) { - return __objc_msgSend_396( + return __objc_msgSend_398( obj, sel, error, @@ -11004,17 +11053,17 @@ class SentryCocoa { ); } - late final __objc_msgSend_396Ptr = _lookup< + late final __objc_msgSend_398Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_396 = __objc_msgSend_396Ptr.asFunction< + late final __objc_msgSend_398 = __objc_msgSend_398Ptr.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_397( + void _objc_msgSend_399( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, @@ -11022,7 +11071,7 @@ class SentryCocoa { double delay, ffi.Pointer modes, ) { - return __objc_msgSend_397( + return __objc_msgSend_399( obj, sel, aSelector, @@ -11032,7 +11081,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_397Ptr = _lookup< + late final __objc_msgSend_399Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -11041,7 +11090,7 @@ class SentryCocoa { ffi.Pointer, ffi.Double, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_397 = __objc_msgSend_397Ptr.asFunction< + late final __objc_msgSend_399 = __objc_msgSend_399Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -11052,14 +11101,14 @@ class SentryCocoa { late final _sel_performSelector_withObject_afterDelay_1 = _registerName1("performSelector:withObject:afterDelay:"); - void _objc_msgSend_398( + void _objc_msgSend_400( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, ffi.Pointer anArgument, double delay, ) { - return __objc_msgSend_398( + return __objc_msgSend_400( obj, sel, aSelector, @@ -11068,7 +11117,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_398Ptr = _lookup< + late final __objc_msgSend_400Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -11076,19 +11125,19 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_398 = __objc_msgSend_398Ptr.asFunction< + late final __objc_msgSend_400 = __objc_msgSend_400Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, double)>(); late final _sel_URL_resourceDataDidBecomeAvailable_1 = _registerName1("URL:resourceDataDidBecomeAvailable:"); - void _objc_msgSend_399( + void _objc_msgSend_401( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer sender, ffi.Pointer newBytes, ) { - return __objc_msgSend_399( + return __objc_msgSend_401( obj, sel, sender, @@ -11096,36 +11145,36 @@ class SentryCocoa { ); } - late final __objc_msgSend_399Ptr = _lookup< + late final __objc_msgSend_401Ptr = _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_401 = __objc_msgSend_401Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_URLResourceDidFinishLoading_1 = _registerName1("URLResourceDidFinishLoading:"); - void _objc_msgSend_400( + void _objc_msgSend_402( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer sender, ) { - return __objc_msgSend_400( + return __objc_msgSend_402( obj, sel, sender, ); } - late final __objc_msgSend_400Ptr = _lookup< + late final __objc_msgSend_402Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_400 = __objc_msgSend_400Ptr.asFunction< + late final __objc_msgSend_402 = __objc_msgSend_402Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -11133,13 +11182,13 @@ class SentryCocoa { _registerName1("URLResourceDidCancelLoading:"); late final _sel_URL_resourceDidFailLoadingWithReason_1 = _registerName1("URL:resourceDidFailLoadingWithReason:"); - void _objc_msgSend_401( + void _objc_msgSend_403( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer sender, ffi.Pointer reason, ) { - return __objc_msgSend_401( + return __objc_msgSend_403( obj, sel, sender, @@ -11147,47 +11196,47 @@ class SentryCocoa { ); } - late final __objc_msgSend_401Ptr = _lookup< + late final __objc_msgSend_403Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_401 = __objc_msgSend_401Ptr.asFunction< + late final __objc_msgSend_403 = __objc_msgSend_403Ptr.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_402( + ffi.Pointer _objc_msgSend_404( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_402( + return __objc_msgSend_404( obj, sel, ); } - late final __objc_msgSend_402Ptr = _lookup< + late final __objc_msgSend_404Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_402 = __objc_msgSend_402Ptr.asFunction< + late final __objc_msgSend_404 = __objc_msgSend_404Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_mountedVolumeURLsIncludingResourceValuesForKeys_options_1 = _registerName1( "mountedVolumeURLsIncludingResourceValuesForKeys:options:"); - ffi.Pointer _objc_msgSend_403( + ffi.Pointer _objc_msgSend_405( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer propertyKeys, int options, ) { - return __objc_msgSend_403( + return __objc_msgSend_405( obj, sel, propertyKeys, @@ -11195,27 +11244,27 @@ class SentryCocoa { ); } - late final __objc_msgSend_403Ptr = _lookup< + late final __objc_msgSend_405Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_403 = __objc_msgSend_403Ptr.asFunction< + late final __objc_msgSend_405 = __objc_msgSend_405Ptr.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_404( + void _objc_msgSend_406( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, int mask, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_404( + return __objc_msgSend_406( obj, sel, url, @@ -11224,7 +11273,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_404Ptr = _lookup< + late final __objc_msgSend_406Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -11232,14 +11281,14 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_404 = __objc_msgSend_404Ptr.asFunction< + late final __objc_msgSend_406 = __objc_msgSend_406Ptr.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_405( + ffi.Pointer _objc_msgSend_407( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, @@ -11247,7 +11296,7 @@ class SentryCocoa { int mask, ffi.Pointer> error, ) { - return __objc_msgSend_405( + return __objc_msgSend_407( obj, sel, url, @@ -11257,7 +11306,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_405Ptr = _lookup< + late final __objc_msgSend_407Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -11266,7 +11315,7 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_405 = __objc_msgSend_405Ptr.asFunction< + late final __objc_msgSend_407 = __objc_msgSend_407Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -11277,13 +11326,13 @@ class SentryCocoa { late final _sel_URLsForDirectory_inDomains_1 = _registerName1("URLsForDirectory:inDomains:"); - ffi.Pointer _objc_msgSend_406( + ffi.Pointer _objc_msgSend_408( ffi.Pointer obj, ffi.Pointer sel, int directory, int domainMask, ) { - return __objc_msgSend_406( + return __objc_msgSend_408( obj, sel, directory, @@ -11291,18 +11340,18 @@ class SentryCocoa { ); } - late final __objc_msgSend_406Ptr = _lookup< + late final __objc_msgSend_408Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_406 = __objc_msgSend_406Ptr.asFunction< + late final __objc_msgSend_408 = __objc_msgSend_408Ptr.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_407( + ffi.Pointer _objc_msgSend_409( ffi.Pointer obj, ffi.Pointer sel, int directory, @@ -11311,7 +11360,7 @@ class SentryCocoa { bool shouldCreate, ffi.Pointer> error, ) { - return __objc_msgSend_407( + return __objc_msgSend_409( obj, sel, directory, @@ -11322,7 +11371,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_407Ptr = _lookup< + late final __objc_msgSend_409Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -11332,7 +11381,7 @@ class SentryCocoa { ffi.Pointer, ffi.Bool, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_407 = __objc_msgSend_407Ptr.asFunction< + late final __objc_msgSend_409 = __objc_msgSend_409Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -11344,7 +11393,7 @@ class SentryCocoa { late final _sel_getRelationship_ofDirectoryAtURL_toItemAtURL_error_1 = _registerName1("getRelationship:ofDirectoryAtURL:toItemAtURL:error:"); - bool _objc_msgSend_408( + bool _objc_msgSend_410( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer outRelationship, @@ -11352,7 +11401,7 @@ class SentryCocoa { ffi.Pointer otherURL, ffi.Pointer> error, ) { - return __objc_msgSend_408( + return __objc_msgSend_410( obj, sel, outRelationship, @@ -11362,7 +11411,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_408Ptr = _lookup< + late final __objc_msgSend_410Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -11371,7 +11420,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_408 = __objc_msgSend_408Ptr.asFunction< + late final __objc_msgSend_410 = __objc_msgSend_410Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -11382,7 +11431,7 @@ class SentryCocoa { late final _sel_getRelationship_ofDirectory_inDomain_toItemAtURL_error_1 = _registerName1("getRelationship:ofDirectory:inDomain:toItemAtURL:error:"); - bool _objc_msgSend_409( + bool _objc_msgSend_411( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer outRelationship, @@ -11391,7 +11440,7 @@ class SentryCocoa { ffi.Pointer url, ffi.Pointer> error, ) { - return __objc_msgSend_409( + return __objc_msgSend_411( obj, sel, outRelationship, @@ -11402,7 +11451,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_409Ptr = _lookup< + late final __objc_msgSend_411Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -11412,7 +11461,7 @@ class SentryCocoa { ffi.Int32, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_409 = __objc_msgSend_409Ptr.asFunction< + late final __objc_msgSend_411 = __objc_msgSend_411Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -11425,7 +11474,7 @@ class SentryCocoa { late final _sel_createDirectoryAtURL_withIntermediateDirectories_attributes_error_1 = _registerName1( "createDirectoryAtURL:withIntermediateDirectories:attributes:error:"); - bool _objc_msgSend_410( + bool _objc_msgSend_412( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, @@ -11433,7 +11482,7 @@ class SentryCocoa { ffi.Pointer attributes, ffi.Pointer> error, ) { - return __objc_msgSend_410( + return __objc_msgSend_412( obj, sel, url, @@ -11443,7 +11492,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_410Ptr = _lookup< + late final __objc_msgSend_412Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -11452,7 +11501,7 @@ class SentryCocoa { ffi.Bool, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_410 = __objc_msgSend_410Ptr.asFunction< + late final __objc_msgSend_412 = __objc_msgSend_412Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -11463,14 +11512,14 @@ class SentryCocoa { late final _sel_createSymbolicLinkAtURL_withDestinationURL_error_1 = _registerName1("createSymbolicLinkAtURL:withDestinationURL:error:"); - bool _objc_msgSend_411( + bool _objc_msgSend_413( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer destURL, ffi.Pointer> error, ) { - return __objc_msgSend_411( + return __objc_msgSend_413( obj, sel, url, @@ -11479,7 +11528,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_411Ptr = _lookup< + late final __objc_msgSend_413Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -11487,7 +11536,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_411 = __objc_msgSend_411Ptr.asFunction< + late final __objc_msgSend_413 = __objc_msgSend_413Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -11499,14 +11548,14 @@ class SentryCocoa { late final _sel_setDelegate_1 = _registerName1("setDelegate:"); late final _sel_setAttributes_ofItemAtPath_error_1 = _registerName1("setAttributes:ofItemAtPath:error:"); - bool _objc_msgSend_412( + bool _objc_msgSend_414( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attributes, ffi.Pointer path, ffi.Pointer> error, ) { - return __objc_msgSend_412( + return __objc_msgSend_414( obj, sel, attributes, @@ -11515,7 +11564,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_412Ptr = _lookup< + late final __objc_msgSend_414Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -11523,7 +11572,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_412 = __objc_msgSend_412Ptr.asFunction< + late final __objc_msgSend_414 = __objc_msgSend_414Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -11534,7 +11583,7 @@ class SentryCocoa { late final _sel_createDirectoryAtPath_withIntermediateDirectories_attributes_error_1 = _registerName1( "createDirectoryAtPath:withIntermediateDirectories:attributes:error:"); - bool _objc_msgSend_413( + bool _objc_msgSend_415( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, @@ -11542,7 +11591,7 @@ class SentryCocoa { ffi.Pointer attributes, ffi.Pointer> error, ) { - return __objc_msgSend_413( + return __objc_msgSend_415( obj, sel, path, @@ -11552,7 +11601,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_413Ptr = _lookup< + late final __objc_msgSend_415Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -11561,7 +11610,7 @@ class SentryCocoa { ffi.Bool, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_413 = __objc_msgSend_413Ptr.asFunction< + late final __objc_msgSend_415 = __objc_msgSend_415Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -11572,13 +11621,13 @@ class SentryCocoa { late final _sel_contentsOfDirectoryAtPath_error_1 = _registerName1("contentsOfDirectoryAtPath:error:"); - ffi.Pointer _objc_msgSend_414( + ffi.Pointer _objc_msgSend_416( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer> error, ) { - return __objc_msgSend_414( + return __objc_msgSend_416( obj, sel, path, @@ -11586,14 +11635,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_414Ptr = _lookup< + late final __objc_msgSend_416Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_414 = __objc_msgSend_414Ptr.asFunction< + late final __objc_msgSend_416 = __objc_msgSend_416Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -11604,72 +11653,6 @@ class SentryCocoa { _registerName1("subpathsOfDirectoryAtPath:error:"); late final _sel_attributesOfItemAtPath_error_1 = _registerName1("attributesOfItemAtPath:error:"); - ffi.Pointer _objc_msgSend_415( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - ffi.Pointer> error, - ) { - return __objc_msgSend_415( - obj, - sel, - path, - error, - ); - } - - late final __objc_msgSend_415Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_415 = __objc_msgSend_415Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_attributesOfFileSystemForPath_error_1 = - _registerName1("attributesOfFileSystemForPath:error:"); - late final _sel_createSymbolicLinkAtPath_withDestinationPath_error_1 = - _registerName1("createSymbolicLinkAtPath:withDestinationPath:error:"); - bool _objc_msgSend_416( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - ffi.Pointer destPath, - ffi.Pointer> error, - ) { - return __objc_msgSend_416( - obj, - sel, - path, - destPath, - error, - ); - } - - late final __objc_msgSend_416Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_416 = __objc_msgSend_416Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_destinationOfSymbolicLinkAtPath_error_1 = - _registerName1("destinationOfSymbolicLinkAtPath:error:"); ffi.Pointer _objc_msgSend_417( ffi.Pointer obj, ffi.Pointer sel, @@ -11698,6 +11681,72 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer>)>(); + late final _sel_attributesOfFileSystemForPath_error_1 = + _registerName1("attributesOfFileSystemForPath:error:"); + late final _sel_createSymbolicLinkAtPath_withDestinationPath_error_1 = + _registerName1("createSymbolicLinkAtPath:withDestinationPath:error:"); + bool _objc_msgSend_418( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + ffi.Pointer destPath, + ffi.Pointer> error, + ) { + return __objc_msgSend_418( + obj, + sel, + path, + destPath, + error, + ); + } + + late final __objc_msgSend_418Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_418 = __objc_msgSend_418Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_destinationOfSymbolicLinkAtPath_error_1 = + _registerName1("destinationOfSymbolicLinkAtPath:error:"); + ffi.Pointer _objc_msgSend_419( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + ffi.Pointer> error, + ) { + return __objc_msgSend_419( + obj, + sel, + path, + error, + ); + } + + late final __objc_msgSend_419Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_419 = __objc_msgSend_419Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + late final _sel_copyItemAtPath_toPath_error_1 = _registerName1("copyItemAtPath:toPath:error:"); late final _sel_moveItemAtPath_toPath_error_1 = @@ -11706,13 +11755,13 @@ class SentryCocoa { _registerName1("linkItemAtPath:toPath:error:"); late final _sel_removeItemAtPath_error_1 = _registerName1("removeItemAtPath:error:"); - bool _objc_msgSend_418( + bool _objc_msgSend_420( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer> error, ) { - return __objc_msgSend_418( + return __objc_msgSend_420( obj, sel, path, @@ -11720,14 +11769,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_418Ptr = _lookup< + late final __objc_msgSend_420Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_418 = __objc_msgSend_418Ptr.asFunction< + late final __objc_msgSend_420 = __objc_msgSend_420Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); @@ -11741,14 +11790,14 @@ class SentryCocoa { _registerName1("removeItemAtURL:error:"); late final _sel_trashItemAtURL_resultingItemURL_error_1 = _registerName1("trashItemAtURL:resultingItemURL:error:"); - bool _objc_msgSend_419( + bool _objc_msgSend_421( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer> outResultingURL, ffi.Pointer> error, ) { - return __objc_msgSend_419( + return __objc_msgSend_421( obj, sel, url, @@ -11757,7 +11806,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_419Ptr = _lookup< + late final __objc_msgSend_421Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -11765,7 +11814,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_419 = __objc_msgSend_419Ptr.asFunction< + late final __objc_msgSend_421 = __objc_msgSend_421Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -11775,13 +11824,13 @@ class SentryCocoa { late final _sel_fileAttributesAtPath_traverseLink_1 = _registerName1("fileAttributesAtPath:traverseLink:"); - ffi.Pointer _objc_msgSend_420( + ffi.Pointer _objc_msgSend_422( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, bool yorn, ) { - return __objc_msgSend_420( + return __objc_msgSend_422( obj, sel, path, @@ -11789,26 +11838,26 @@ class SentryCocoa { ); } - late final __objc_msgSend_420Ptr = _lookup< + late final __objc_msgSend_422Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_420 = __objc_msgSend_420Ptr.asFunction< + late final __objc_msgSend_422 = __objc_msgSend_422Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_changeFileAttributes_atPath_1 = _registerName1("changeFileAttributes:atPath:"); - bool _objc_msgSend_421( + bool _objc_msgSend_423( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attributes, ffi.Pointer path, ) { - return __objc_msgSend_421( + return __objc_msgSend_423( obj, sel, attributes, @@ -11816,14 +11865,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_421Ptr = _lookup< + late final __objc_msgSend_423Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_421 = __objc_msgSend_421Ptr.asFunction< + late final __objc_msgSend_423 = __objc_msgSend_423Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -11835,13 +11884,13 @@ class SentryCocoa { _registerName1("pathContentOfSymbolicLinkAtPath:"); late final _sel_createSymbolicLinkAtPath_pathContent_1 = _registerName1("createSymbolicLinkAtPath:pathContent:"); - bool _objc_msgSend_422( + bool _objc_msgSend_424( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer otherpath, ) { - return __objc_msgSend_422( + return __objc_msgSend_424( obj, sel, path, @@ -11849,26 +11898,26 @@ class SentryCocoa { ); } - late final __objc_msgSend_422Ptr = _lookup< + late final __objc_msgSend_424Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_422 = __objc_msgSend_422Ptr.asFunction< + late final __objc_msgSend_424 = __objc_msgSend_424Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_createDirectoryAtPath_attributes_1 = _registerName1("createDirectoryAtPath:attributes:"); - bool _objc_msgSend_423( + bool _objc_msgSend_425( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer attributes, ) { - return __objc_msgSend_423( + return __objc_msgSend_425( obj, sel, path, @@ -11876,27 +11925,27 @@ class SentryCocoa { ); } - late final __objc_msgSend_423Ptr = _lookup< + late final __objc_msgSend_425Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_423 = __objc_msgSend_423Ptr.asFunction< + late final __objc_msgSend_425 = __objc_msgSend_425Ptr.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_424( + bool _objc_msgSend_426( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer src, ffi.Pointer dest, ffi.Pointer handler, ) { - return __objc_msgSend_424( + return __objc_msgSend_426( obj, sel, src, @@ -11905,7 +11954,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_424Ptr = _lookup< + late final __objc_msgSend_426Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -11913,7 +11962,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_424 = __objc_msgSend_424Ptr.asFunction< + late final __objc_msgSend_426 = __objc_msgSend_426Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -11927,13 +11976,13 @@ class SentryCocoa { _registerName1("movePath:toPath:handler:"); late final _sel_removeFileAtPath_handler_1 = _registerName1("removeFileAtPath:handler:"); - bool _objc_msgSend_425( + bool _objc_msgSend_427( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer handler, ) { - return __objc_msgSend_425( + return __objc_msgSend_427( obj, sel, path, @@ -11941,14 +11990,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_425Ptr = _lookup< + late final __objc_msgSend_427Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_425 = __objc_msgSend_425Ptr.asFunction< + late final __objc_msgSend_427 = __objc_msgSend_427Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -11959,13 +12008,13 @@ class SentryCocoa { late final _sel_fileExistsAtPath_1 = _registerName1("fileExistsAtPath:"); late final _sel_fileExistsAtPath_isDirectory_1 = _registerName1("fileExistsAtPath:isDirectory:"); - bool _objc_msgSend_426( + bool _objc_msgSend_428( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer isDirectory, ) { - return __objc_msgSend_426( + return __objc_msgSend_428( obj, sel, path, @@ -11973,11 +12022,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_426Ptr = _lookup< + late final __objc_msgSend_428Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_426 = __objc_msgSend_426Ptr.asFunction< + late final __objc_msgSend_428 = __objc_msgSend_428Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -11998,7 +12047,7 @@ class SentryCocoa { late final _sel_enumeratorAtURL_includingPropertiesForKeys_options_errorHandler_1 = _registerName1( "enumeratorAtURL:includingPropertiesForKeys:options:errorHandler:"); - ffi.Pointer _objc_msgSend_427( + ffi.Pointer _objc_msgSend_429( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, @@ -12006,7 +12055,7 @@ class SentryCocoa { int mask, ffi.Pointer<_ObjCBlock> handler, ) { - return __objc_msgSend_427( + return __objc_msgSend_429( obj, sel, url, @@ -12016,7 +12065,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_427Ptr = _lookup< + late final __objc_msgSend_429Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -12025,7 +12074,7 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_427 = __objc_msgSend_427Ptr.asFunction< + late final __objc_msgSend_429 = __objc_msgSend_429Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -12036,36 +12085,36 @@ class SentryCocoa { late final _sel_subpathsAtPath_1 = _registerName1("subpathsAtPath:"); late final _sel_contentsAtPath_1 = _registerName1("contentsAtPath:"); - ffi.Pointer _objc_msgSend_428( + ffi.Pointer _objc_msgSend_430( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ) { - return __objc_msgSend_428( + return __objc_msgSend_430( obj, sel, path, ); } - late final __objc_msgSend_428Ptr = _lookup< + late final __objc_msgSend_430Ptr = _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_430 = __objc_msgSend_430Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_createFileAtPath_contents_attributes_1 = _registerName1("createFileAtPath:contents:attributes:"); - bool _objc_msgSend_429( + bool _objc_msgSend_431( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer data, ffi.Pointer attr, ) { - return __objc_msgSend_429( + return __objc_msgSend_431( obj, sel, path, @@ -12074,7 +12123,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_429Ptr = _lookup< + late final __objc_msgSend_431Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -12082,7 +12131,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_429 = __objc_msgSend_429Ptr.asFunction< + late final __objc_msgSend_431 = __objc_msgSend_431Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -12092,35 +12141,35 @@ class SentryCocoa { late final _sel_fileSystemRepresentationWithPath_1 = _registerName1("fileSystemRepresentationWithPath:"); - ffi.Pointer _objc_msgSend_430( + ffi.Pointer _objc_msgSend_432( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ) { - return __objc_msgSend_430( + return __objc_msgSend_432( obj, sel, path, ); } - late final __objc_msgSend_430Ptr = _lookup< + late final __objc_msgSend_432Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_430 = __objc_msgSend_430Ptr.asFunction< + late final __objc_msgSend_432 = __objc_msgSend_432Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_stringWithFileSystemRepresentation_length_1 = _registerName1("stringWithFileSystemRepresentation:length:"); - ffi.Pointer _objc_msgSend_431( + ffi.Pointer _objc_msgSend_433( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer str, int len, ) { - return __objc_msgSend_431( + return __objc_msgSend_433( obj, sel, str, @@ -12128,21 +12177,21 @@ class SentryCocoa { ); } - late final __objc_msgSend_431Ptr = _lookup< + late final __objc_msgSend_433Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_431 = __objc_msgSend_431Ptr.asFunction< + late final __objc_msgSend_433 = __objc_msgSend_433Ptr.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_432( + bool _objc_msgSend_434( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer originalItemURL, @@ -12152,7 +12201,7 @@ class SentryCocoa { ffi.Pointer> resultingURL, ffi.Pointer> error, ) { - return __objc_msgSend_432( + return __objc_msgSend_434( obj, sel, originalItemURL, @@ -12164,7 +12213,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_432Ptr = _lookup< + late final __objc_msgSend_434Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -12175,7 +12224,7 @@ class SentryCocoa { ffi.Int32, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_432 = __objc_msgSend_432Ptr.asFunction< + late final __objc_msgSend_434 = __objc_msgSend_434Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -12188,7 +12237,7 @@ class SentryCocoa { late final _sel_setUbiquitous_itemAtURL_destinationURL_error_1 = _registerName1("setUbiquitous:itemAtURL:destinationURL:error:"); - bool _objc_msgSend_433( + bool _objc_msgSend_435( ffi.Pointer obj, ffi.Pointer sel, bool flag, @@ -12196,7 +12245,7 @@ class SentryCocoa { ffi.Pointer destinationURL, ffi.Pointer> error, ) { - return __objc_msgSend_433( + return __objc_msgSend_435( obj, sel, flag, @@ -12206,7 +12255,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_433Ptr = _lookup< + late final __objc_msgSend_435Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -12215,7 +12264,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_433 = __objc_msgSend_433Ptr.asFunction< + late final __objc_msgSend_435 = __objc_msgSend_435Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -12235,14 +12284,14 @@ class SentryCocoa { late final _sel_URLForPublishingUbiquitousItemAtURL_expirationDate_error_1 = _registerName1( "URLForPublishingUbiquitousItemAtURL:expirationDate:error:"); - ffi.Pointer _objc_msgSend_434( + ffi.Pointer _objc_msgSend_436( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer> outDate, ffi.Pointer> error, ) { - return __objc_msgSend_434( + return __objc_msgSend_436( obj, sel, url, @@ -12251,7 +12300,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_434Ptr = _lookup< + late final __objc_msgSend_436Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -12259,7 +12308,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_434 = __objc_msgSend_434Ptr.asFunction< + late final __objc_msgSend_436 = __objc_msgSend_436Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -12271,13 +12320,13 @@ class SentryCocoa { _registerName1("ubiquityIdentityToken"); late final _sel_getFileProviderServicesForItemAtURL_completionHandler_1 = _registerName1("getFileProviderServicesForItemAtURL:completionHandler:"); - void _objc_msgSend_435( + void _objc_msgSend_437( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_435( + return __objc_msgSend_437( obj, sel, url, @@ -12285,14 +12334,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_435Ptr = _lookup< + late final __objc_msgSend_437Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_435 = __objc_msgSend_435Ptr.asFunction< + late final __objc_msgSend_437 = __objc_msgSend_437Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); @@ -12305,13 +12354,13 @@ class SentryCocoa { _registerName1("homeDirectoryForUser:"); late final _sel_fileManager_shouldProceedAfterError_1 = _registerName1("fileManager:shouldProceedAfterError:"); - bool _objc_msgSend_436( + bool _objc_msgSend_438( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer fm, ffi.Pointer errorInfo, ) { - return __objc_msgSend_436( + return __objc_msgSend_438( obj, sel, fm, @@ -12319,26 +12368,26 @@ class SentryCocoa { ); } - late final __objc_msgSend_436Ptr = _lookup< + late final __objc_msgSend_438Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_436 = __objc_msgSend_436Ptr.asFunction< + late final __objc_msgSend_438 = __objc_msgSend_438Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_fileManager_willProcessPath_1 = _registerName1("fileManager:willProcessPath:"); - void _objc_msgSend_437( + void _objc_msgSend_439( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer fm, ffi.Pointer path, ) { - return __objc_msgSend_437( + return __objc_msgSend_439( obj, sel, fm, @@ -12346,14 +12395,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_437Ptr = _lookup< + late final __objc_msgSend_439Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_437 = __objc_msgSend_437Ptr.asFunction< + late final __objc_msgSend_439 = __objc_msgSend_439Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -12363,13 +12412,13 @@ class SentryCocoa { late final _sel_addObject_1 = _registerName1("addObject:"); late final _sel_insertObject_atIndex_1 = _registerName1("insertObject:atIndex:"); - void _objc_msgSend_438( + void _objc_msgSend_440( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, int index, ) { - return __objc_msgSend_438( + return __objc_msgSend_440( obj, sel, anObject, @@ -12377,45 +12426,45 @@ class SentryCocoa { ); } - late final __objc_msgSend_438Ptr = _lookup< + late final __objc_msgSend_440Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_438 = __objc_msgSend_438Ptr.asFunction< + late final __objc_msgSend_440 = __objc_msgSend_440Ptr.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_439( + void _objc_msgSend_441( ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_439( + return __objc_msgSend_441( obj, sel, index, ); } - late final __objc_msgSend_439Ptr = _lookup< + late final __objc_msgSend_441Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_439 = __objc_msgSend_439Ptr.asFunction< + late final __objc_msgSend_441 = __objc_msgSend_441Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_replaceObjectAtIndex_withObject_1 = _registerName1("replaceObjectAtIndex:withObject:"); - void _objc_msgSend_440( + void _objc_msgSend_442( ffi.Pointer obj, ffi.Pointer sel, int index, ffi.Pointer anObject, ) { - return __objc_msgSend_440( + return __objc_msgSend_442( obj, sel, index, @@ -12423,46 +12472,46 @@ class SentryCocoa { ); } - late final __objc_msgSend_440Ptr = _lookup< + late final __objc_msgSend_442Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_440 = __objc_msgSend_440Ptr.asFunction< + late final __objc_msgSend_442 = __objc_msgSend_442Ptr.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_441( + void _objc_msgSend_443( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherArray, ) { - return __objc_msgSend_441( + return __objc_msgSend_443( obj, sel, otherArray, ); } - late final __objc_msgSend_441Ptr = _lookup< + late final __objc_msgSend_443Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_441 = __objc_msgSend_441Ptr.asFunction< + late final __objc_msgSend_443 = __objc_msgSend_443Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_exchangeObjectAtIndex_withObjectAtIndex_1 = _registerName1("exchangeObjectAtIndex:withObjectAtIndex:"); - void _objc_msgSend_442( + void _objc_msgSend_444( ffi.Pointer obj, ffi.Pointer sel, int idx1, int idx2, ) { - return __objc_msgSend_442( + return __objc_msgSend_444( obj, sel, idx1, @@ -12470,23 +12519,23 @@ class SentryCocoa { ); } - late final __objc_msgSend_442Ptr = _lookup< + late final __objc_msgSend_444Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_442 = __objc_msgSend_442Ptr.asFunction< + late final __objc_msgSend_444 = __objc_msgSend_444Ptr.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_443( + void _objc_msgSend_445( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, _NSRange range, ) { - return __objc_msgSend_443( + return __objc_msgSend_445( obj, sel, anObject, @@ -12494,11 +12543,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_443Ptr = _lookup< + late final __objc_msgSend_445Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_443 = __objc_msgSend_443Ptr.asFunction< + late final __objc_msgSend_445 = __objc_msgSend_445Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange)>(); @@ -12509,13 +12558,13 @@ class SentryCocoa { _registerName1("removeObjectIdenticalTo:"); late final _sel_removeObjectsFromIndices_numIndices_1 = _registerName1("removeObjectsFromIndices:numIndices:"); - void _objc_msgSend_444( + void _objc_msgSend_446( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indices, int cnt, ) { - return __objc_msgSend_444( + return __objc_msgSend_446( obj, sel, indices, @@ -12523,14 +12572,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_444Ptr = _lookup< + late final __objc_msgSend_446Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_444 = __objc_msgSend_444Ptr.asFunction< + late final __objc_msgSend_446 = __objc_msgSend_446Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -12538,35 +12587,35 @@ class SentryCocoa { _registerName1("removeObjectsInArray:"); late final _sel_removeObjectsInRange_1 = _registerName1("removeObjectsInRange:"); - void _objc_msgSend_445( + void _objc_msgSend_447( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ) { - return __objc_msgSend_445( + return __objc_msgSend_447( obj, sel, range, ); } - late final __objc_msgSend_445Ptr = _lookup< + late final __objc_msgSend_447Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_445 = __objc_msgSend_445Ptr.asFunction< + late final __objc_msgSend_447 = __objc_msgSend_447Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_replaceObjectsInRange_withObjectsFromArray_range_1 = _registerName1("replaceObjectsInRange:withObjectsFromArray:range:"); - void _objc_msgSend_446( + void _objc_msgSend_448( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer otherArray, _NSRange otherRange, ) { - return __objc_msgSend_446( + return __objc_msgSend_448( obj, sel, range, @@ -12575,23 +12624,23 @@ class SentryCocoa { ); } - late final __objc_msgSend_446Ptr = _lookup< + late final __objc_msgSend_448Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_446 = __objc_msgSend_446Ptr.asFunction< + late final __objc_msgSend_448 = __objc_msgSend_448Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer, _NSRange)>(); late final _sel_replaceObjectsInRange_withObjectsFromArray_1 = _registerName1("replaceObjectsInRange:withObjectsFromArray:"); - void _objc_msgSend_447( + void _objc_msgSend_449( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer otherArray, ) { - return __objc_msgSend_447( + return __objc_msgSend_449( obj, sel, range, @@ -12599,18 +12648,18 @@ class SentryCocoa { ); } - late final __objc_msgSend_447Ptr = _lookup< + late final __objc_msgSend_449Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_447 = __objc_msgSend_447Ptr.asFunction< + late final __objc_msgSend_449 = __objc_msgSend_449Ptr.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_448( + void _objc_msgSend_450( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< @@ -12620,7 +12669,7 @@ class SentryCocoa { compare, ffi.Pointer context, ) { - return __objc_msgSend_448( + return __objc_msgSend_450( obj, sel, compare, @@ -12628,7 +12677,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_448Ptr = _lookup< + late final __objc_msgSend_450Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -12638,7 +12687,7 @@ class SentryCocoa { ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_448 = __objc_msgSend_448Ptr.asFunction< + late final __objc_msgSend_450 = __objc_msgSend_450Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -12651,13 +12700,13 @@ class SentryCocoa { late final _sel_sortUsingSelector_1 = _registerName1("sortUsingSelector:"); late final _sel_insertObjects_atIndexes_1 = _registerName1("insertObjects:atIndexes:"); - void _objc_msgSend_449( + void _objc_msgSend_451( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer objects, ffi.Pointer indexes, ) { - return __objc_msgSend_449( + return __objc_msgSend_451( obj, sel, objects, @@ -12665,48 +12714,48 @@ class SentryCocoa { ); } - late final __objc_msgSend_449Ptr = _lookup< + late final __objc_msgSend_451Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_449 = __objc_msgSend_449Ptr.asFunction< + late final __objc_msgSend_451 = __objc_msgSend_451Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_removeObjectsAtIndexes_1 = _registerName1("removeObjectsAtIndexes:"); - void _objc_msgSend_450( + void _objc_msgSend_452( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexes, ) { - return __objc_msgSend_450( + return __objc_msgSend_452( obj, sel, indexes, ); } - late final __objc_msgSend_450Ptr = _lookup< + late final __objc_msgSend_452Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_450 = __objc_msgSend_450Ptr.asFunction< + late final __objc_msgSend_452 = __objc_msgSend_452Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_replaceObjectsAtIndexes_withObjects_1 = _registerName1("replaceObjectsAtIndexes:withObjects:"); - void _objc_msgSend_451( + void _objc_msgSend_453( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexes, ffi.Pointer objects, ) { - return __objc_msgSend_451( + return __objc_msgSend_453( obj, sel, indexes, @@ -12714,14 +12763,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_451Ptr = _lookup< + late final __objc_msgSend_453Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_451 = __objc_msgSend_451Ptr.asFunction< + late final __objc_msgSend_453 = __objc_msgSend_453Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -12729,35 +12778,35 @@ class SentryCocoa { _registerName1("setObject:atIndexedSubscript:"); late final _sel_sortUsingComparator_1 = _registerName1("sortUsingComparator:"); - void _objc_msgSend_452( + void _objc_msgSend_454( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> cmptr, ) { - return __objc_msgSend_452( + return __objc_msgSend_454( obj, sel, cmptr, ); } - late final __objc_msgSend_452Ptr = _lookup< + late final __objc_msgSend_454Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_452 = __objc_msgSend_452Ptr.asFunction< + late final __objc_msgSend_454 = __objc_msgSend_454Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_sortWithOptions_usingComparator_1 = _registerName1("sortWithOptions:usingComparator:"); - void _objc_msgSend_453( + void _objc_msgSend_455( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> cmptr, ) { - return __objc_msgSend_453( + return __objc_msgSend_455( obj, sel, opts, @@ -12765,52 +12814,52 @@ class SentryCocoa { ); } - late final __objc_msgSend_453Ptr = _lookup< + late final __objc_msgSend_455Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_453 = __objc_msgSend_453Ptr.asFunction< + late final __objc_msgSend_455 = __objc_msgSend_455Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_arrayWithCapacity_1 = _registerName1("arrayWithCapacity:"); - ffi.Pointer _objc_msgSend_454( + ffi.Pointer _objc_msgSend_456( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ) { - return __objc_msgSend_454( + return __objc_msgSend_456( obj, sel, path, ); } - late final __objc_msgSend_454Ptr = _lookup< + late final __objc_msgSend_456Ptr = _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_456 = __objc_msgSend_456Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer _objc_msgSend_455( + ffi.Pointer _objc_msgSend_457( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_455( + return __objc_msgSend_457( obj, sel, url, ); } - late final __objc_msgSend_455Ptr = _lookup< + late final __objc_msgSend_457Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_455 = __objc_msgSend_455Ptr.asFunction< + late final __objc_msgSend_457 = __objc_msgSend_457Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -12819,23 +12868,23 @@ class SentryCocoa { _registerName1("sortUsingDescriptors:"); late final _sel_filterUsingPredicate_1 = _registerName1("filterUsingPredicate:"); - void _objc_msgSend_456( + void _objc_msgSend_458( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer predicate, ) { - return __objc_msgSend_456( + return __objc_msgSend_458( obj, sel, predicate, ); } - late final __objc_msgSend_456Ptr = _lookup< + late final __objc_msgSend_458Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_456 = __objc_msgSend_456Ptr.asFunction< + late final __objc_msgSend_458 = __objc_msgSend_458Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -12845,23 +12894,23 @@ class SentryCocoa { late final _class_NSOrderedSet1 = _getClass1("NSOrderedSet"); late final _sel_isEqualToOrderedSet_1 = _registerName1("isEqualToOrderedSet:"); - bool _objc_msgSend_457( + bool _objc_msgSend_459( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_457( + return __objc_msgSend_459( obj, sel, other, ); } - late final __objc_msgSend_457Ptr = _lookup< + late final __objc_msgSend_459Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_457 = __objc_msgSend_457Ptr.asFunction< + late final __objc_msgSend_459 = __objc_msgSend_459Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -12870,21 +12919,21 @@ class SentryCocoa { late final _sel_isSubsetOfOrderedSet_1 = _registerName1("isSubsetOfOrderedSet:"); late final _sel_reversedOrderedSet1 = _registerName1("reversedOrderedSet"); - ffi.Pointer _objc_msgSend_458( + ffi.Pointer _objc_msgSend_460( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_458( + return __objc_msgSend_460( obj, sel, ); } - late final __objc_msgSend_458Ptr = _lookup< + late final __objc_msgSend_460Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_458 = __objc_msgSend_458Ptr.asFunction< + late final __objc_msgSend_460 = __objc_msgSend_460Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -12897,36 +12946,36 @@ class SentryCocoa { _registerName1("orderedSetWithObjects:"); late final _sel_orderedSetWithOrderedSet_1 = _registerName1("orderedSetWithOrderedSet:"); - instancetype _objc_msgSend_459( + instancetype _objc_msgSend_461( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer set1, ) { - return __objc_msgSend_459( + return __objc_msgSend_461( obj, sel, set1, ); } - late final __objc_msgSend_459Ptr = _lookup< + late final __objc_msgSend_461Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_459 = __objc_msgSend_459Ptr.asFunction< + late final __objc_msgSend_461 = __objc_msgSend_461Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_orderedSetWithOrderedSet_range_copyItems_1 = _registerName1("orderedSetWithOrderedSet:range:copyItems:"); - instancetype _objc_msgSend_460( + instancetype _objc_msgSend_462( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer set1, _NSRange range, bool flag, ) { - return __objc_msgSend_460( + return __objc_msgSend_462( obj, sel, set1, @@ -12935,11 +12984,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_460Ptr = _lookup< + late final __objc_msgSend_462Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_460 = __objc_msgSend_460Ptr.asFunction< + late final __objc_msgSend_462 = __objc_msgSend_462Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange, bool)>(); @@ -12947,14 +12996,14 @@ class SentryCocoa { _registerName1("orderedSetWithArray:"); late final _sel_orderedSetWithArray_range_copyItems_1 = _registerName1("orderedSetWithArray:range:copyItems:"); - instancetype _objc_msgSend_461( + instancetype _objc_msgSend_463( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer array, _NSRange range, bool flag, ) { - return __objc_msgSend_461( + return __objc_msgSend_463( obj, sel, array, @@ -12963,11 +13012,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_461Ptr = _lookup< + late final __objc_msgSend_463Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_461 = __objc_msgSend_461Ptr.asFunction< + late final __objc_msgSend_463 = __objc_msgSend_463Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange, bool)>(); @@ -12978,13 +13027,13 @@ class SentryCocoa { late final _sel_initWithOrderedSet_1 = _registerName1("initWithOrderedSet:"); late final _sel_initWithOrderedSet_copyItems_1 = _registerName1("initWithOrderedSet:copyItems:"); - instancetype _objc_msgSend_462( + instancetype _objc_msgSend_464( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer set1, bool flag, ) { - return __objc_msgSend_462( + return __objc_msgSend_464( obj, sel, set1, @@ -12992,11 +13041,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_462Ptr = _lookup< + late final __objc_msgSend_464Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_462 = __objc_msgSend_462Ptr.asFunction< + late final __objc_msgSend_464 = __objc_msgSend_464Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); @@ -13007,14 +13056,14 @@ class SentryCocoa { late final _sel_differenceFromOrderedSet_withOptions_usingEquivalenceTest_1 = _registerName1( "differenceFromOrderedSet:withOptions:usingEquivalenceTest:"); - ffi.Pointer _objc_msgSend_463( + ffi.Pointer _objc_msgSend_465( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, int options, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_463( + return __objc_msgSend_465( obj, sel, other, @@ -13023,7 +13072,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_463Ptr = _lookup< + late final __objc_msgSend_465Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -13031,7 +13080,7 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_463 = __objc_msgSend_463Ptr.asFunction< + late final __objc_msgSend_465 = __objc_msgSend_465Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -13041,13 +13090,13 @@ class SentryCocoa { late final _sel_differenceFromOrderedSet_withOptions_1 = _registerName1("differenceFromOrderedSet:withOptions:"); - ffi.Pointer _objc_msgSend_464( + ffi.Pointer _objc_msgSend_466( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, int options, ) { - return __objc_msgSend_464( + return __objc_msgSend_466( obj, sel, other, @@ -13055,14 +13104,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_464Ptr = _lookup< + late final __objc_msgSend_466Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_464 = __objc_msgSend_464Ptr.asFunction< + late final __objc_msgSend_466 = __objc_msgSend_466Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -13070,56 +13119,56 @@ class SentryCocoa { _registerName1("differenceFromOrderedSet:"); late final _sel_orderedSetByApplyingDifference_1 = _registerName1("orderedSetByApplyingDifference:"); - ffi.Pointer _objc_msgSend_465( + ffi.Pointer _objc_msgSend_467( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer difference, ) { - return __objc_msgSend_465( + return __objc_msgSend_467( obj, sel, difference, ); } - late final __objc_msgSend_465Ptr = _lookup< + late final __objc_msgSend_467Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_465 = __objc_msgSend_465Ptr.asFunction< + late final __objc_msgSend_467 = __objc_msgSend_467Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_filteredOrderedSetUsingPredicate_1 = _registerName1("filteredOrderedSetUsingPredicate:"); - ffi.Pointer _objc_msgSend_466( + ffi.Pointer _objc_msgSend_468( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer p, ) { - return __objc_msgSend_466( + return __objc_msgSend_468( obj, sel, p, ); } - late final __objc_msgSend_466Ptr = _lookup< + late final __objc_msgSend_468Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_466 = __objc_msgSend_466Ptr.asFunction< + late final __objc_msgSend_468 = __objc_msgSend_468Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_addObjects_count_1 = _registerName1("addObjects:count:"); - void _objc_msgSend_467( + void _objc_msgSend_469( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> objects, int count, ) { - return __objc_msgSend_467( + return __objc_msgSend_469( obj, sel, objects, @@ -13127,26 +13176,26 @@ class SentryCocoa { ); } - late final __objc_msgSend_467Ptr = _lookup< + late final __objc_msgSend_469Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_467 = __objc_msgSend_467Ptr.asFunction< + late final __objc_msgSend_469 = __objc_msgSend_469Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>, int)>(); late final _sel_moveObjectsAtIndexes_toIndex_1 = _registerName1("moveObjectsAtIndexes:toIndex:"); - void _objc_msgSend_468( + void _objc_msgSend_470( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexes, int idx, ) { - return __objc_msgSend_468( + return __objc_msgSend_470( obj, sel, indexes, @@ -13154,25 +13203,25 @@ class SentryCocoa { ); } - late final __objc_msgSend_468Ptr = _lookup< + late final __objc_msgSend_470Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_468 = __objc_msgSend_468Ptr.asFunction< + late final __objc_msgSend_470 = __objc_msgSend_470Ptr.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_469( + void _objc_msgSend_471( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer> objects, int count, ) { - return __objc_msgSend_469( + return __objc_msgSend_471( obj, sel, range, @@ -13181,7 +13230,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_469Ptr = _lookup< + late final __objc_msgSend_471Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -13189,52 +13238,52 @@ class SentryCocoa { _NSRange, ffi.Pointer>, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_469 = __objc_msgSend_469Ptr.asFunction< + late final __objc_msgSend_471 = __objc_msgSend_471Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer>, int)>(); late final _sel_intersectOrderedSet_1 = _registerName1("intersectOrderedSet:"); - void _objc_msgSend_470( + void _objc_msgSend_472( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_470( + return __objc_msgSend_472( obj, sel, other, ); } - late final __objc_msgSend_470Ptr = _lookup< + late final __objc_msgSend_472Ptr = _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_472 = __objc_msgSend_472Ptr.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_471( + void _objc_msgSend_473( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_471( + return __objc_msgSend_473( obj, sel, other, ); } - late final __objc_msgSend_471Ptr = _lookup< + late final __objc_msgSend_473Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_471 = __objc_msgSend_471Ptr.asFunction< + late final __objc_msgSend_473 = __objc_msgSend_473Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -13242,14 +13291,14 @@ class SentryCocoa { late final _sel_unionSet_1 = _registerName1("unionSet:"); late final _sel_sortRange_options_usingComparator_1 = _registerName1("sortRange:options:usingComparator:"); - void _objc_msgSend_472( + void _objc_msgSend_474( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, int opts, ffi.Pointer<_ObjCBlock> cmptr, ) { - return __objc_msgSend_472( + return __objc_msgSend_474( obj, sel, range, @@ -13258,11 +13307,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_472Ptr = _lookup< + late final __objc_msgSend_474Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_472 = __objc_msgSend_472Ptr.asFunction< + late final __objc_msgSend_474 = __objc_msgSend_474Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, _NSRange, int, ffi.Pointer<_ObjCBlock>)>(); @@ -13270,23 +13319,23 @@ class SentryCocoa { _registerName1("orderedSetWithCapacity:"); late final _sel_mutableOrderedSetValueForKey_1 = _registerName1("mutableOrderedSetValueForKey:"); - ffi.Pointer _objc_msgSend_473( + ffi.Pointer _objc_msgSend_475( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_473( + return __objc_msgSend_475( obj, sel, key, ); } - late final __objc_msgSend_473Ptr = _lookup< + late final __objc_msgSend_475Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_473 = __objc_msgSend_473Ptr.asFunction< + late final __objc_msgSend_475 = __objc_msgSend_475Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -13295,23 +13344,23 @@ class SentryCocoa { late final _sel_setWithCapacity_1 = _registerName1("setWithCapacity:"); late final _sel_mutableSetValueForKey_1 = _registerName1("mutableSetValueForKey:"); - ffi.Pointer _objc_msgSend_474( + ffi.Pointer _objc_msgSend_476( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_474( + return __objc_msgSend_476( obj, sel, key, ); } - late final __objc_msgSend_474Ptr = _lookup< + late final __objc_msgSend_476Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_474 = __objc_msgSend_474Ptr.asFunction< + late final __objc_msgSend_476 = __objc_msgSend_476Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -13333,45 +13382,45 @@ class SentryCocoa { late final _sel_setNilValueForKey_1 = _registerName1("setNilValueForKey:"); late final _sel_dictionaryWithValuesForKeys_1 = _registerName1("dictionaryWithValuesForKeys:"); - ffi.Pointer _objc_msgSend_475( + ffi.Pointer _objc_msgSend_477( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keys, ) { - return __objc_msgSend_475( + return __objc_msgSend_477( obj, sel, keys, ); } - late final __objc_msgSend_475Ptr = _lookup< + late final __objc_msgSend_477Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_475 = __objc_msgSend_475Ptr.asFunction< + late final __objc_msgSend_477 = __objc_msgSend_477Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_setValuesForKeysWithDictionary_1 = _registerName1("setValuesForKeysWithDictionary:"); - void _objc_msgSend_476( + void _objc_msgSend_478( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keyedValues, ) { - return __objc_msgSend_476( + return __objc_msgSend_478( obj, sel, keyedValues, ); } - late final __objc_msgSend_476Ptr = _lookup< + late final __objc_msgSend_478Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_476 = __objc_msgSend_476Ptr.asFunction< + late final __objc_msgSend_478 = __objc_msgSend_478Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -13392,7 +13441,7 @@ class SentryCocoa { _registerName1("takeValuesFromDictionary:"); late final _sel_observeValueForKeyPath_ofObject_change_context_1 = _registerName1("observeValueForKeyPath:ofObject:change:context:"); - void _objc_msgSend_477( + void _objc_msgSend_479( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keyPath, @@ -13400,7 +13449,7 @@ class SentryCocoa { ffi.Pointer change, ffi.Pointer context, ) { - return __objc_msgSend_477( + return __objc_msgSend_479( obj, sel, keyPath, @@ -13410,7 +13459,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_477Ptr = _lookup< + late final __objc_msgSend_479Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -13419,7 +13468,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_477 = __objc_msgSend_477Ptr.asFunction< + late final __objc_msgSend_479 = __objc_msgSend_479Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -13434,14 +13483,14 @@ class SentryCocoa { _registerName1("didChangeValueForKey:"); late final _sel_willChange_valuesAtIndexes_forKey_1 = _registerName1("willChange:valuesAtIndexes:forKey:"); - void _objc_msgSend_478( + void _objc_msgSend_480( ffi.Pointer obj, ffi.Pointer sel, int changeKind, ffi.Pointer indexes, ffi.Pointer key, ) { - return __objc_msgSend_478( + return __objc_msgSend_480( obj, sel, changeKind, @@ -13450,7 +13499,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_478Ptr = _lookup< + late final __objc_msgSend_480Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -13458,7 +13507,7 @@ class SentryCocoa { ffi.Int32, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_478 = __objc_msgSend_478Ptr.asFunction< + late final __objc_msgSend_480 = __objc_msgSend_480Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer, ffi.Pointer)>(); @@ -13466,14 +13515,14 @@ class SentryCocoa { _registerName1("didChange:valuesAtIndexes:forKey:"); late final _sel_willChangeValueForKey_withSetMutation_usingObjects_1 = _registerName1("willChangeValueForKey:withSetMutation:usingObjects:"); - void _objc_msgSend_479( + void _objc_msgSend_481( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, int mutationKind, ffi.Pointer objects, ) { - return __objc_msgSend_479( + return __objc_msgSend_481( obj, sel, key, @@ -13482,7 +13531,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_479Ptr = _lookup< + late final __objc_msgSend_481Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -13490,7 +13539,7 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_479 = __objc_msgSend_479Ptr.asFunction< + late final __objc_msgSend_481 = __objc_msgSend_481Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); @@ -13498,61 +13547,84 @@ class SentryCocoa { _registerName1("didChangeValueForKey:withSetMutation:usingObjects:"); late final _sel_observationInfo1 = _registerName1("observationInfo"); late final _sel_setObservationInfo_1 = _registerName1("setObservationInfo:"); - void _objc_msgSend_480( + void _objc_msgSend_482( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_480( + return __objc_msgSend_482( obj, sel, value, ); } - late final __objc_msgSend_480Ptr = _lookup< + late final __objc_msgSend_482Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_480 = __objc_msgSend_480Ptr.asFunction< + late final __objc_msgSend_482 = __objc_msgSend_482Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + late final _class_NSKeyValueSharedObserversSnapshot1 = + _getClass1("NSKeyValueSharedObserversSnapshot"); + late final _sel_setSharedObservers_1 = _registerName1("setSharedObservers:"); + void _objc_msgSend_483( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer sharedObservers, + ) { + return __objc_msgSend_483( + obj, + sel, + sharedObservers, + ); + } + + late final __objc_msgSend_483Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(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)>(); + late final _sel_classForKeyedArchiver1 = _registerName1("classForKeyedArchiver"); late final _class_NSKeyedArchiver1 = _getClass1("NSKeyedArchiver"); late final _sel_initRequiringSecureCoding_1 = _registerName1("initRequiringSecureCoding:"); - instancetype _objc_msgSend_481( + instancetype _objc_msgSend_484( ffi.Pointer obj, ffi.Pointer sel, bool requiresSecureCoding, ) { - return __objc_msgSend_481( + return __objc_msgSend_484( obj, sel, requiresSecureCoding, ); } - late final __objc_msgSend_481Ptr = _lookup< + late final __objc_msgSend_484Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_481 = __objc_msgSend_481Ptr.asFunction< + late final __objc_msgSend_484 = __objc_msgSend_484Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_archivedDataWithRootObject_requiringSecureCoding_error_1 = _registerName1("archivedDataWithRootObject:requiringSecureCoding:error:"); - ffi.Pointer _objc_msgSend_482( + ffi.Pointer _objc_msgSend_485( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer object, bool requiresSecureCoding, ffi.Pointer> error, ) { - return __objc_msgSend_482( + return __objc_msgSend_485( obj, sel, object, @@ -13561,7 +13633,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_482Ptr = _lookup< + late final __objc_msgSend_485Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -13569,7 +13641,7 @@ class SentryCocoa { ffi.Pointer, ffi.Bool, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_482 = __objc_msgSend_482Ptr.asFunction< + late final __objc_msgSend_485 = __objc_msgSend_485Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -13580,23 +13652,23 @@ class SentryCocoa { late final _class_NSMutableData1 = _getClass1("NSMutableData"); late final _sel_mutableBytes1 = _registerName1("mutableBytes"); late final _sel_setLength_1 = _registerName1("setLength:"); - void _objc_msgSend_483( + void _objc_msgSend_486( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_483( + return __objc_msgSend_486( obj, sel, value, ); } - late final __objc_msgSend_483Ptr = _lookup< + late final __objc_msgSend_486Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_483 = __objc_msgSend_483Ptr.asFunction< + late final __objc_msgSend_486 = __objc_msgSend_486Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_appendBytes_length_1 = _registerName1("appendBytes:length:"); @@ -13604,13 +13676,13 @@ class SentryCocoa { late final _sel_increaseLengthBy_1 = _registerName1("increaseLengthBy:"); late final _sel_replaceBytesInRange_withBytes_1 = _registerName1("replaceBytesInRange:withBytes:"); - void _objc_msgSend_484( + void _objc_msgSend_487( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer bytes, ) { - return __objc_msgSend_484( + return __objc_msgSend_487( obj, sel, range, @@ -13618,11 +13690,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_484Ptr = _lookup< + late final __objc_msgSend_487Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_484 = __objc_msgSend_484Ptr.asFunction< + late final __objc_msgSend_487 = __objc_msgSend_487Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); @@ -13630,14 +13702,14 @@ class SentryCocoa { late final _sel_setData_1 = _registerName1("setData:"); late final _sel_replaceBytesInRange_withBytes_length_1 = _registerName1("replaceBytesInRange:withBytes:length:"); - void _objc_msgSend_485( + void _objc_msgSend_488( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer replacementBytes, int replacementLength, ) { - return __objc_msgSend_485( + return __objc_msgSend_488( obj, sel, range, @@ -13646,7 +13718,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_485Ptr = _lookup< + late final __objc_msgSend_488Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -13654,7 +13726,7 @@ class SentryCocoa { _NSRange, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_485 = __objc_msgSend_485Ptr.asFunction< + late final __objc_msgSend_488 = __objc_msgSend_488Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer, int)>(); @@ -13663,13 +13735,13 @@ class SentryCocoa { late final _sel_initWithLength_1 = _registerName1("initWithLength:"); late final _sel_decompressUsingAlgorithm_error_1 = _registerName1("decompressUsingAlgorithm:error:"); - bool _objc_msgSend_486( + bool _objc_msgSend_489( ffi.Pointer obj, ffi.Pointer sel, int algorithm, ffi.Pointer> error, ) { - return __objc_msgSend_486( + return __objc_msgSend_489( obj, sel, algorithm, @@ -13677,14 +13749,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_486Ptr = _lookup< + late final __objc_msgSend_489Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_486 = __objc_msgSend_486Ptr.asFunction< + late final __objc_msgSend_489 = __objc_msgSend_489Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer>)>(); @@ -13692,99 +13764,99 @@ class SentryCocoa { _registerName1("compressUsingAlgorithm:error:"); late final _sel_initForWritingWithMutableData_1 = _registerName1("initForWritingWithMutableData:"); - instancetype _objc_msgSend_487( + instancetype _objc_msgSend_490( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ) { - return __objc_msgSend_487( + return __objc_msgSend_490( obj, sel, data, ); } - late final __objc_msgSend_487Ptr = _lookup< + late final __objc_msgSend_490Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_487 = __objc_msgSend_487Ptr.asFunction< + late final __objc_msgSend_490 = __objc_msgSend_490Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_archivedDataWithRootObject_1 = _registerName1("archivedDataWithRootObject:"); - ffi.Pointer _objc_msgSend_488( + ffi.Pointer _objc_msgSend_491( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer rootObject, ) { - return __objc_msgSend_488( + return __objc_msgSend_491( obj, sel, rootObject, ); } - late final __objc_msgSend_488Ptr = _lookup< + late final __objc_msgSend_491Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_488 = __objc_msgSend_488Ptr.asFunction< + late final __objc_msgSend_491 = __objc_msgSend_491Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_archiveRootObject_toFile_1 = _registerName1("archiveRootObject:toFile:"); late final _sel_outputFormat1 = _registerName1("outputFormat"); - int _objc_msgSend_489( + int _objc_msgSend_492( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_489( + return __objc_msgSend_492( obj, sel, ); } - late final __objc_msgSend_489Ptr = _lookup< + late final __objc_msgSend_492Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_489 = __objc_msgSend_489Ptr.asFunction< + late final __objc_msgSend_492 = __objc_msgSend_492Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setOutputFormat_1 = _registerName1("setOutputFormat:"); - void _objc_msgSend_490( + void _objc_msgSend_493( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_490( + return __objc_msgSend_493( obj, sel, value, ); } - late final __objc_msgSend_490Ptr = _lookup< + late final __objc_msgSend_493Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_490 = __objc_msgSend_490Ptr.asFunction< + late final __objc_msgSend_493 = __objc_msgSend_493Ptr.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_491( + void _objc_msgSend_494( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer codedName, ffi.Pointer cls, ) { - return __objc_msgSend_491( + return __objc_msgSend_494( obj, sel, codedName, @@ -13792,65 +13864,65 @@ class SentryCocoa { ); } - late final __objc_msgSend_491Ptr = _lookup< + late final __objc_msgSend_494Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_491 = __objc_msgSend_491Ptr.asFunction< + late final __objc_msgSend_494 = __objc_msgSend_494Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_classNameForClass_1 = _registerName1("classNameForClass:"); late final _sel_setRequiresSecureCoding_1 = _registerName1("setRequiresSecureCoding:"); - void _objc_msgSend_492( + void _objc_msgSend_495( ffi.Pointer obj, ffi.Pointer sel, bool value, ) { - return __objc_msgSend_492( + return __objc_msgSend_495( obj, sel, value, ); } - late final __objc_msgSend_492Ptr = _lookup< + late final __objc_msgSend_495Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_492 = __objc_msgSend_492Ptr.asFunction< + late final __objc_msgSend_495 = __objc_msgSend_495Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_replacementObjectForKeyedArchiver_1 = _registerName1("replacementObjectForKeyedArchiver:"); - ffi.Pointer _objc_msgSend_493( + ffi.Pointer _objc_msgSend_496( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer archiver, ) { - return __objc_msgSend_493( + return __objc_msgSend_496( obj, sel, archiver, ); } - late final __objc_msgSend_493Ptr = _lookup< + late final __objc_msgSend_496Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_493 = __objc_msgSend_493Ptr.asFunction< + late final __objc_msgSend_496 = __objc_msgSend_496Ptr.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_494( + void _objc_msgSend_497( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, @@ -13858,7 +13930,7 @@ class SentryCocoa { bool wait, ffi.Pointer array, ) { - return __objc_msgSend_494( + return __objc_msgSend_497( obj, sel, aSelector, @@ -13868,7 +13940,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_494Ptr = _lookup< + late final __objc_msgSend_497Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -13877,7 +13949,7 @@ class SentryCocoa { ffi.Pointer, ffi.Bool, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_494 = __objc_msgSend_494Ptr.asFunction< + late final __objc_msgSend_497 = __objc_msgSend_497Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -13888,14 +13960,14 @@ class SentryCocoa { late final _sel_performSelectorOnMainThread_withObject_waitUntilDone_1 = _registerName1("performSelectorOnMainThread:withObject:waitUntilDone:"); - void _objc_msgSend_495( + void _objc_msgSend_498( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, ffi.Pointer arg, bool wait, ) { - return __objc_msgSend_495( + return __objc_msgSend_498( obj, sel, aSelector, @@ -13904,7 +13976,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_495Ptr = _lookup< + late final __objc_msgSend_498Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -13912,62 +13984,62 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_495 = __objc_msgSend_495Ptr.asFunction< + late final __objc_msgSend_498 = __objc_msgSend_498Ptr.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_496( + ffi.Pointer _objc_msgSend_499( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_496( + return __objc_msgSend_499( obj, sel, ); } - late final __objc_msgSend_496Ptr = _lookup< + late final __objc_msgSend_499Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_496 = __objc_msgSend_496Ptr.asFunction< + late final __objc_msgSend_499 = __objc_msgSend_499Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_detachNewThreadWithBlock_1 = _registerName1("detachNewThreadWithBlock:"); - void _objc_msgSend_497( + void _objc_msgSend_500( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_497( + return __objc_msgSend_500( obj, sel, block, ); } - late final __objc_msgSend_497Ptr = _lookup< + late final __objc_msgSend_500Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_497 = __objc_msgSend_497Ptr.asFunction< + late final __objc_msgSend_500 = __objc_msgSend_500Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_detachNewThreadSelector_toTarget_withObject_1 = _registerName1("detachNewThreadSelector:toTarget:withObject:"); - void _objc_msgSend_498( + void _objc_msgSend_501( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer selector, ffi.Pointer target, ffi.Pointer argument, ) { - return __objc_msgSend_498( + return __objc_msgSend_501( obj, sel, selector, @@ -13976,7 +14048,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_498Ptr = _lookup< + late final __objc_msgSend_501Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -13984,7 +14056,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_498 = __objc_msgSend_498Ptr.asFunction< + late final __objc_msgSend_501 = __objc_msgSend_501Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -13996,13 +14068,13 @@ class SentryCocoa { 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_499( + void _objc_msgSend_502( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, ffi.Pointer aKey, ) { - return __objc_msgSend_499( + return __objc_msgSend_502( obj, sel, anObject, @@ -14010,14 +14082,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_499Ptr = _lookup< + late final __objc_msgSend_502Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_499 = __objc_msgSend_499Ptr.asFunction< + late final __objc_msgSend_502 = __objc_msgSend_502Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -14030,211 +14102,211 @@ class SentryCocoa { _registerName1("setObject:forKeyedSubscript:"); late final _sel_dictionaryWithCapacity_1 = _registerName1("dictionaryWithCapacity:"); - ffi.Pointer _objc_msgSend_500( + ffi.Pointer _objc_msgSend_503( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ) { - return __objc_msgSend_500( + return __objc_msgSend_503( obj, sel, path, ); } - late final __objc_msgSend_500Ptr = _lookup< + late final __objc_msgSend_503Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_500 = __objc_msgSend_500Ptr.asFunction< + late final __objc_msgSend_503 = __objc_msgSend_503Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer _objc_msgSend_501( + ffi.Pointer _objc_msgSend_504( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_501( + return __objc_msgSend_504( obj, sel, url, ); } - late final __objc_msgSend_501Ptr = _lookup< + late final __objc_msgSend_504Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_501 = __objc_msgSend_501Ptr.asFunction< + late final __objc_msgSend_504 = __objc_msgSend_504Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dictionaryWithSharedKeySet_1 = _registerName1("dictionaryWithSharedKeySet:"); - ffi.Pointer _objc_msgSend_502( + ffi.Pointer _objc_msgSend_505( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keyset, ) { - return __objc_msgSend_502( + return __objc_msgSend_505( obj, sel, keyset, ); } - late final __objc_msgSend_502Ptr = _lookup< + late final __objc_msgSend_505Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_502 = __objc_msgSend_502Ptr.asFunction< + late final __objc_msgSend_505 = __objc_msgSend_505Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_threadDictionary1 = _registerName1("threadDictionary"); - ffi.Pointer _objc_msgSend_503( + ffi.Pointer _objc_msgSend_506( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_503( + return __objc_msgSend_506( obj, sel, ); } - late final __objc_msgSend_503Ptr = _lookup< + late final __objc_msgSend_506Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_503 = __objc_msgSend_503Ptr.asFunction< + late final __objc_msgSend_506 = __objc_msgSend_506Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_sleepUntilDate_1 = _registerName1("sleepUntilDate:"); - void _objc_msgSend_504( + void _objc_msgSend_507( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, ) { - return __objc_msgSend_504( + return __objc_msgSend_507( obj, sel, date, ); } - late final __objc_msgSend_504Ptr = _lookup< + late final __objc_msgSend_507Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_504 = __objc_msgSend_504Ptr.asFunction< + late final __objc_msgSend_507 = __objc_msgSend_507Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_sleepForTimeInterval_1 = _registerName1("sleepForTimeInterval:"); - void _objc_msgSend_505( + void _objc_msgSend_508( ffi.Pointer obj, ffi.Pointer sel, double ti, ) { - return __objc_msgSend_505( + return __objc_msgSend_508( obj, sel, ti, ); } - late final __objc_msgSend_505Ptr = _lookup< + late final __objc_msgSend_508Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_505 = __objc_msgSend_505Ptr.asFunction< + late final __objc_msgSend_508 = __objc_msgSend_508Ptr.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_506( + void _objc_msgSend_509( ffi.Pointer obj, ffi.Pointer sel, double value, ) { - return __objc_msgSend_506( + return __objc_msgSend_509( obj, sel, value, ); } - late final __objc_msgSend_506Ptr = _lookup< + late final __objc_msgSend_509Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_506 = __objc_msgSend_506Ptr.asFunction< + late final __objc_msgSend_509 = __objc_msgSend_509Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, double)>(); late final _sel_qualityOfService1 = _registerName1("qualityOfService"); - int _objc_msgSend_507( + int _objc_msgSend_510( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_507( + return __objc_msgSend_510( obj, sel, ); } - late final __objc_msgSend_507Ptr = _lookup< + late final __objc_msgSend_510Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_507 = __objc_msgSend_507Ptr.asFunction< + late final __objc_msgSend_510 = __objc_msgSend_510Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setQualityOfService_1 = _registerName1("setQualityOfService:"); - void _objc_msgSend_508( + void _objc_msgSend_511( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_508( + return __objc_msgSend_511( obj, sel, value, ); } - late final __objc_msgSend_508Ptr = _lookup< + late final __objc_msgSend_511Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_508 = __objc_msgSend_508Ptr.asFunction< + late final __objc_msgSend_511 = __objc_msgSend_511Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_callStackReturnAddresses1 = _registerName1("callStackReturnAddresses"); late final _sel_callStackSymbols1 = _registerName1("callStackSymbols"); late final _sel_setName_1 = _registerName1("setName:"); - void _objc_msgSend_509( + void _objc_msgSend_512( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_509( + return __objc_msgSend_512( obj, sel, value, ); } - late final __objc_msgSend_509Ptr = _lookup< + late final __objc_msgSend_512Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_509 = __objc_msgSend_509Ptr.asFunction< + late final __objc_msgSend_512 = __objc_msgSend_512Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -14244,14 +14316,14 @@ class SentryCocoa { late final _sel_mainThread1 = _registerName1("mainThread"); late final _sel_initWithTarget_selector_object_1 = _registerName1("initWithTarget:selector:object:"); - instancetype _objc_msgSend_510( + instancetype _objc_msgSend_513( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer target, ffi.Pointer selector, ffi.Pointer argument, ) { - return __objc_msgSend_510( + return __objc_msgSend_513( obj, sel, target, @@ -14260,7 +14332,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_510Ptr = _lookup< + late final __objc_msgSend_513Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -14268,7 +14340,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_510 = __objc_msgSend_510Ptr.asFunction< + late final __objc_msgSend_513 = __objc_msgSend_513Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -14277,23 +14349,23 @@ class SentryCocoa { ffi.Pointer)>(); late final _sel_initWithBlock_1 = _registerName1("initWithBlock:"); - instancetype _objc_msgSend_511( + instancetype _objc_msgSend_514( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_511( + return __objc_msgSend_514( obj, sel, block, ); } - late final __objc_msgSend_511Ptr = _lookup< + late final __objc_msgSend_514Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_511 = __objc_msgSend_511Ptr.asFunction< + late final __objc_msgSend_514 = __objc_msgSend_514Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); @@ -14306,7 +14378,7 @@ class SentryCocoa { late final _sel_performSelector_onThread_withObject_waitUntilDone_modes_1 = _registerName1( "performSelector:onThread:withObject:waitUntilDone:modes:"); - void _objc_msgSend_512( + void _objc_msgSend_515( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, @@ -14315,7 +14387,7 @@ class SentryCocoa { bool wait, ffi.Pointer array, ) { - return __objc_msgSend_512( + return __objc_msgSend_515( obj, sel, aSelector, @@ -14326,7 +14398,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_512Ptr = _lookup< + late final __objc_msgSend_515Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -14336,7 +14408,7 @@ class SentryCocoa { ffi.Pointer, ffi.Bool, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_512 = __objc_msgSend_512Ptr.asFunction< + late final __objc_msgSend_515 = __objc_msgSend_515Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -14348,7 +14420,7 @@ class SentryCocoa { late final _sel_performSelector_onThread_withObject_waitUntilDone_1 = _registerName1("performSelector:onThread:withObject:waitUntilDone:"); - void _objc_msgSend_513( + void _objc_msgSend_516( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, @@ -14356,7 +14428,7 @@ class SentryCocoa { ffi.Pointer arg, bool wait, ) { - return __objc_msgSend_513( + return __objc_msgSend_516( obj, sel, aSelector, @@ -14366,7 +14438,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_513Ptr = _lookup< + late final __objc_msgSend_516Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -14375,7 +14447,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_513 = __objc_msgSend_513Ptr.asFunction< + late final __objc_msgSend_516 = __objc_msgSend_516Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -14389,33 +14461,33 @@ class SentryCocoa { late final _sel_classForArchiver1 = _registerName1("classForArchiver"); late final _class_NSArchiver1 = _getClass1("NSArchiver"); late final _sel_archiverData1 = _registerName1("archiverData"); - ffi.Pointer _objc_msgSend_514( + ffi.Pointer _objc_msgSend_517( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_514( + return __objc_msgSend_517( obj, sel, ); } - late final __objc_msgSend_514Ptr = _lookup< + late final __objc_msgSend_517Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_514 = __objc_msgSend_514Ptr.asFunction< + late final __objc_msgSend_517 = __objc_msgSend_517Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_encodeClassName_intoClassName_1 = _registerName1("encodeClassName:intoClassName:"); - void _objc_msgSend_515( + void _objc_msgSend_518( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer trueName, ffi.Pointer inArchiveName, ) { - return __objc_msgSend_515( + return __objc_msgSend_518( obj, sel, trueName, @@ -14423,14 +14495,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_515Ptr = _lookup< + late final __objc_msgSend_518Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_515 = __objc_msgSend_515Ptr.asFunction< + late final __objc_msgSend_518 = __objc_msgSend_518Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -14440,23 +14512,23 @@ class SentryCocoa { _registerName1("replaceObject:withObject:"); late final _sel_replacementObjectForArchiver_1 = _registerName1("replacementObjectForArchiver:"); - ffi.Pointer _objc_msgSend_516( + ffi.Pointer _objc_msgSend_519( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer archiver, ) { - return __objc_msgSend_516( + return __objc_msgSend_519( obj, sel, archiver, ); } - late final __objc_msgSend_516Ptr = _lookup< + late final __objc_msgSend_519Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_516 = __objc_msgSend_516Ptr.asFunction< + late final __objc_msgSend_519 = __objc_msgSend_519Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -14465,21 +14537,21 @@ class SentryCocoa { late final _sel_isBycopy1 = _registerName1("isBycopy"); late final _sel_isByref1 = _registerName1("isByref"); late final _class_NSPort1 = _getClass1("NSPort"); - ffi.Pointer _objc_msgSend_517( + ffi.Pointer _objc_msgSend_520( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_517( + return __objc_msgSend_520( obj, sel, ); } - late final __objc_msgSend_517Ptr = _lookup< + late final __objc_msgSend_520Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_517 = __objc_msgSend_517Ptr.asFunction< + late final __objc_msgSend_520 = __objc_msgSend_520Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -14487,56 +14559,56 @@ class SentryCocoa { late final _sel_isValid1 = _registerName1("isValid"); late final _class_NSRunLoop1 = _getClass1("NSRunLoop"); late final _sel_currentRunLoop1 = _registerName1("currentRunLoop"); - ffi.Pointer _objc_msgSend_518( + ffi.Pointer _objc_msgSend_521( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_518( + return __objc_msgSend_521( obj, sel, ); } - late final __objc_msgSend_518Ptr = _lookup< + late final __objc_msgSend_521Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_518 = __objc_msgSend_518Ptr.asFunction< + late final __objc_msgSend_521 = __objc_msgSend_521Ptr.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_519( + ffi.Pointer<__CFRunLoop> _objc_msgSend_522( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_519( + return __objc_msgSend_522( obj, sel, ); } - late final __objc_msgSend_519Ptr = _lookup< + late final __objc_msgSend_522Ptr = _lookup< ffi.NativeFunction< ffi.Pointer<__CFRunLoop> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_519 = __objc_msgSend_519Ptr.asFunction< + late final __objc_msgSend_522 = __objc_msgSend_522Ptr.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_520( + ffi.Pointer _objc_msgSend_523( ffi.Pointer obj, ffi.Pointer sel, double ti, ffi.Pointer invocation, bool yesOrNo, ) { - return __objc_msgSend_520( + return __objc_msgSend_523( obj, sel, ti, @@ -14545,7 +14617,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_520Ptr = _lookup< + late final __objc_msgSend_523Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -14553,7 +14625,7 @@ class SentryCocoa { ffi.Double, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_520 = __objc_msgSend_520Ptr.asFunction< + late final __objc_msgSend_523 = __objc_msgSend_523Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, double, ffi.Pointer, bool)>(); @@ -14561,7 +14633,7 @@ class SentryCocoa { _registerName1("scheduledTimerWithTimeInterval:invocation:repeats:"); late final _sel_timerWithTimeInterval_target_selector_userInfo_repeats_1 = _registerName1("timerWithTimeInterval:target:selector:userInfo:repeats:"); - ffi.Pointer _objc_msgSend_521( + ffi.Pointer _objc_msgSend_524( ffi.Pointer obj, ffi.Pointer sel, double ti, @@ -14570,7 +14642,7 @@ class SentryCocoa { ffi.Pointer userInfo, bool yesOrNo, ) { - return __objc_msgSend_521( + return __objc_msgSend_524( obj, sel, ti, @@ -14581,7 +14653,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_521Ptr = _lookup< + late final __objc_msgSend_524Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -14591,7 +14663,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_521 = __objc_msgSend_521Ptr.asFunction< + late final __objc_msgSend_524 = __objc_msgSend_524Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -14606,14 +14678,14 @@ class SentryCocoa { "scheduledTimerWithTimeInterval:target:selector:userInfo:repeats:"); late final _sel_timerWithTimeInterval_repeats_block_1 = _registerName1("timerWithTimeInterval:repeats:block:"); - ffi.Pointer _objc_msgSend_522( + ffi.Pointer _objc_msgSend_525( ffi.Pointer obj, ffi.Pointer sel, double interval, bool repeats, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_522( + return __objc_msgSend_525( obj, sel, interval, @@ -14622,7 +14694,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_522Ptr = _lookup< + late final __objc_msgSend_525Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -14630,7 +14702,7 @@ class SentryCocoa { ffi.Double, ffi.Bool, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_522 = __objc_msgSend_522Ptr.asFunction< + late final __objc_msgSend_525 = __objc_msgSend_525Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, double, bool, ffi.Pointer<_ObjCBlock>)>(); @@ -14638,7 +14710,7 @@ class SentryCocoa { _registerName1("scheduledTimerWithTimeInterval:repeats:block:"); late final _sel_initWithFireDate_interval_repeats_block_1 = _registerName1("initWithFireDate:interval:repeats:block:"); - instancetype _objc_msgSend_523( + instancetype _objc_msgSend_526( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, @@ -14646,7 +14718,7 @@ class SentryCocoa { bool repeats, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_523( + return __objc_msgSend_526( obj, sel, date, @@ -14656,7 +14728,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_523Ptr = _lookup< + late final __objc_msgSend_526Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -14665,14 +14737,14 @@ class SentryCocoa { ffi.Double, ffi.Bool, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_523 = __objc_msgSend_523Ptr.asFunction< + late final __objc_msgSend_526 = __objc_msgSend_526Ptr.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_524( + instancetype _objc_msgSend_527( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, @@ -14682,7 +14754,7 @@ class SentryCocoa { ffi.Pointer ui, bool rep, ) { - return __objc_msgSend_524( + return __objc_msgSend_527( obj, sel, date, @@ -14694,7 +14766,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_524Ptr = _lookup< + late final __objc_msgSend_527Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -14705,7 +14777,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_524 = __objc_msgSend_524Ptr.asFunction< + late final __objc_msgSend_527 = __objc_msgSend_527Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -14719,23 +14791,23 @@ class SentryCocoa { late final _sel_fire1 = _registerName1("fire"); late final _sel_fireDate1 = _registerName1("fireDate"); late final _sel_setFireDate_1 = _registerName1("setFireDate:"); - void _objc_msgSend_525( + void _objc_msgSend_528( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_525( + return __objc_msgSend_528( obj, sel, value, ); } - late final __objc_msgSend_525Ptr = _lookup< + late final __objc_msgSend_528Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_525 = __objc_msgSend_525Ptr.asFunction< + late final __objc_msgSend_528 = __objc_msgSend_528Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -14743,13 +14815,13 @@ class SentryCocoa { late final _sel_tolerance1 = _registerName1("tolerance"); late final _sel_setTolerance_1 = _registerName1("setTolerance:"); late final _sel_addTimer_forMode_1 = _registerName1("addTimer:forMode:"); - void _objc_msgSend_526( + void _objc_msgSend_529( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer timer, ffi.Pointer mode, ) { - return __objc_msgSend_526( + return __objc_msgSend_529( obj, sel, timer, @@ -14757,25 +14829,25 @@ class SentryCocoa { ); } - late final __objc_msgSend_526Ptr = _lookup< + late final __objc_msgSend_529Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_526 = __objc_msgSend_526Ptr.asFunction< + late final __objc_msgSend_529 = __objc_msgSend_529Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_addPort_forMode_1 = _registerName1("addPort:forMode:"); - void _objc_msgSend_527( + void _objc_msgSend_530( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aPort, ffi.Pointer mode, ) { - return __objc_msgSend_527( + return __objc_msgSend_530( obj, sel, aPort, @@ -14783,48 +14855,48 @@ class SentryCocoa { ); } - late final __objc_msgSend_527Ptr = _lookup< + late final __objc_msgSend_530Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_527 = __objc_msgSend_527Ptr.asFunction< + late final __objc_msgSend_530 = __objc_msgSend_530Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_removePort_forMode_1 = _registerName1("removePort:forMode:"); late final _sel_limitDateForMode_1 = _registerName1("limitDateForMode:"); - ffi.Pointer _objc_msgSend_528( + ffi.Pointer _objc_msgSend_531( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer mode, ) { - return __objc_msgSend_528( + return __objc_msgSend_531( obj, sel, mode, ); } - late final __objc_msgSend_528Ptr = _lookup< + late final __objc_msgSend_531Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_528 = __objc_msgSend_528Ptr.asFunction< + late final __objc_msgSend_531 = __objc_msgSend_531Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_acceptInputForMode_beforeDate_1 = _registerName1("acceptInputForMode:beforeDate:"); - void _objc_msgSend_529( + void _objc_msgSend_532( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer mode, ffi.Pointer limitDate, ) { - return __objc_msgSend_529( + return __objc_msgSend_532( obj, sel, mode, @@ -14832,27 +14904,27 @@ class SentryCocoa { ); } - late final __objc_msgSend_529Ptr = _lookup< + late final __objc_msgSend_532Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_529 = __objc_msgSend_529Ptr.asFunction< + late final __objc_msgSend_532 = __objc_msgSend_532Ptr.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_530( + bool _objc_msgSend_533( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer mode, ffi.Pointer limitDate, ) { - return __objc_msgSend_530( + return __objc_msgSend_533( obj, sel, mode, @@ -14860,27 +14932,27 @@ class SentryCocoa { ); } - late final __objc_msgSend_530Ptr = _lookup< + late final __objc_msgSend_533Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_530 = __objc_msgSend_530Ptr.asFunction< + late final __objc_msgSend_533 = __objc_msgSend_533Ptr.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_531( + void _objc_msgSend_534( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer modes, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_531( + return __objc_msgSend_534( obj, sel, modes, @@ -14888,21 +14960,21 @@ class SentryCocoa { ); } - late final __objc_msgSend_531Ptr = _lookup< + late final __objc_msgSend_534Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_531 = __objc_msgSend_531Ptr.asFunction< + late final __objc_msgSend_534 = __objc_msgSend_534Ptr.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_532( + void _objc_msgSend_535( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, @@ -14911,7 +14983,7 @@ class SentryCocoa { int order, ffi.Pointer modes, ) { - return __objc_msgSend_532( + return __objc_msgSend_535( obj, sel, aSelector, @@ -14922,7 +14994,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_532Ptr = _lookup< + late final __objc_msgSend_535Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -14932,7 +15004,7 @@ class SentryCocoa { ffi.Pointer, ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_532 = __objc_msgSend_532Ptr.asFunction< + late final __objc_msgSend_535 = __objc_msgSend_535Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -14948,13 +15020,13 @@ class SentryCocoa { _registerName1("cancelPerformSelectorsWithTarget:"); late final _sel_scheduleInRunLoop_forMode_1 = _registerName1("scheduleInRunLoop:forMode:"); - void _objc_msgSend_533( + void _objc_msgSend_536( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer runLoop, ffi.Pointer mode, ) { - return __objc_msgSend_533( + return __objc_msgSend_536( obj, sel, runLoop, @@ -14962,14 +15034,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_533Ptr = _lookup< + late final __objc_msgSend_536Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_533 = __objc_msgSend_533Ptr.asFunction< + late final __objc_msgSend_536 = __objc_msgSend_536Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -14978,7 +15050,7 @@ class SentryCocoa { late final _sel_reservedSpaceLength1 = _registerName1("reservedSpaceLength"); late final _sel_sendBeforeDate_components_from_reserved_1 = _registerName1("sendBeforeDate:components:from:reserved:"); - bool _objc_msgSend_534( + bool _objc_msgSend_537( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer limitDate, @@ -14986,7 +15058,7 @@ class SentryCocoa { ffi.Pointer receivePort, int headerSpaceReserved, ) { - return __objc_msgSend_534( + return __objc_msgSend_537( obj, sel, limitDate, @@ -14996,7 +15068,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_534Ptr = _lookup< + late final __objc_msgSend_537Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -15005,7 +15077,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_534 = __objc_msgSend_534Ptr.asFunction< + late final __objc_msgSend_537 = __objc_msgSend_537Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -15016,7 +15088,7 @@ class SentryCocoa { late final _sel_sendBeforeDate_msgid_components_from_reserved_1 = _registerName1("sendBeforeDate:msgid:components:from:reserved:"); - bool _objc_msgSend_535( + bool _objc_msgSend_538( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer limitDate, @@ -15025,7 +15097,7 @@ class SentryCocoa { ffi.Pointer receivePort, int headerSpaceReserved, ) { - return __objc_msgSend_535( + return __objc_msgSend_538( obj, sel, limitDate, @@ -15036,7 +15108,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_535Ptr = _lookup< + late final __objc_msgSend_538Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -15046,7 +15118,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_535 = __objc_msgSend_535Ptr.asFunction< + late final __objc_msgSend_538 = __objc_msgSend_538Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -15060,21 +15132,21 @@ class SentryCocoa { late final _sel_statistics1 = _registerName1("statistics"); late final _sel_allConnections1 = _registerName1("allConnections"); late final _sel_defaultConnection1 = _registerName1("defaultConnection"); - ffi.Pointer _objc_msgSend_536( + ffi.Pointer _objc_msgSend_539( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_536( + return __objc_msgSend_539( obj, sel, ); } - late final __objc_msgSend_536Ptr = _lookup< + late final __objc_msgSend_539Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_536 = __objc_msgSend_536Ptr.asFunction< + late final __objc_msgSend_539 = __objc_msgSend_539Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -15083,53 +15155,53 @@ class SentryCocoa { late final _class_NSPortNameServer1 = _getClass1("NSPortNameServer"); late final _sel_systemDefaultPortNameServer1 = _registerName1("systemDefaultPortNameServer"); - ffi.Pointer _objc_msgSend_537( + ffi.Pointer _objc_msgSend_540( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_537( + return __objc_msgSend_540( obj, sel, ); } - late final __objc_msgSend_537Ptr = _lookup< + late final __objc_msgSend_540Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_537 = __objc_msgSend_537Ptr.asFunction< + late final __objc_msgSend_540 = __objc_msgSend_540Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_portForName_1 = _registerName1("portForName:"); - ffi.Pointer _objc_msgSend_538( + ffi.Pointer _objc_msgSend_541( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ) { - return __objc_msgSend_538( + return __objc_msgSend_541( obj, sel, name, ); } - late final __objc_msgSend_538Ptr = _lookup< + late final __objc_msgSend_541Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_538 = __objc_msgSend_538Ptr.asFunction< + late final __objc_msgSend_541 = __objc_msgSend_541Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_portForName_host_1 = _registerName1("portForName:host:"); - ffi.Pointer _objc_msgSend_539( + ffi.Pointer _objc_msgSend_542( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer host, ) { - return __objc_msgSend_539( + return __objc_msgSend_542( obj, sel, name, @@ -15137,14 +15209,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_539Ptr = _lookup< + late final __objc_msgSend_542Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_539 = __objc_msgSend_539Ptr.asFunction< + late final __objc_msgSend_542 = __objc_msgSend_542Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -15152,13 +15224,13 @@ class SentryCocoa { ffi.Pointer)>(); late final _sel_registerPort_name_1 = _registerName1("registerPort:name:"); - bool _objc_msgSend_540( + bool _objc_msgSend_543( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer port, ffi.Pointer name, ) { - return __objc_msgSend_540( + return __objc_msgSend_543( obj, sel, port, @@ -15166,28 +15238,28 @@ class SentryCocoa { ); } - late final __objc_msgSend_540Ptr = _lookup< + late final __objc_msgSend_543Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_540 = __objc_msgSend_540Ptr.asFunction< + late final __objc_msgSend_543 = __objc_msgSend_543Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_removePortForName_1 = _registerName1("removePortForName:"); late final _sel_connectionWithRegisteredName_host_usingNameServer_1 = _registerName1("connectionWithRegisteredName:host:usingNameServer:"); - instancetype _objc_msgSend_541( + instancetype _objc_msgSend_544( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer hostName, ffi.Pointer server, ) { - return __objc_msgSend_541( + return __objc_msgSend_544( obj, sel, name, @@ -15196,7 +15268,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_541Ptr = _lookup< + late final __objc_msgSend_544Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -15204,7 +15276,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_541 = __objc_msgSend_541Ptr.asFunction< + late final __objc_msgSend_544 = __objc_msgSend_544Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -15217,13 +15289,13 @@ class SentryCocoa { late final _sel_respondsToSelector_1 = _registerName1("respondsToSelector:"); late final _sel_proxyWithTarget_connection_1 = _registerName1("proxyWithTarget:connection:"); - ffi.Pointer _objc_msgSend_542( + ffi.Pointer _objc_msgSend_545( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer target, ffi.Pointer connection, ) { - return __objc_msgSend_542( + return __objc_msgSend_545( obj, sel, target, @@ -15231,14 +15303,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_542Ptr = _lookup< + late final __objc_msgSend_545Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_542 = __objc_msgSend_542Ptr.asFunction< + late final __objc_msgSend_545 = __objc_msgSend_545Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -15253,36 +15325,36 @@ class SentryCocoa { _registerName1("initWithLocal:connection:"); late final _sel_setProtocolForProxy_1 = _registerName1("setProtocolForProxy:"); - void _objc_msgSend_543( + void _objc_msgSend_546( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer proto, ) { - return __objc_msgSend_543( + return __objc_msgSend_546( obj, sel, proto, ); } - late final __objc_msgSend_543Ptr = _lookup< + late final __objc_msgSend_546Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_543 = __objc_msgSend_543Ptr.asFunction< + late final __objc_msgSend_546 = __objc_msgSend_546Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_connectionForProxy1 = _registerName1("connectionForProxy"); late final _sel_rootProxyForConnectionWithRegisteredName_host_1 = _registerName1("rootProxyForConnectionWithRegisteredName:host:"); - ffi.Pointer _objc_msgSend_544( + ffi.Pointer _objc_msgSend_547( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer hostName, ) { - return __objc_msgSend_544( + return __objc_msgSend_547( obj, sel, name, @@ -15290,14 +15362,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_544Ptr = _lookup< + 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_544 = __objc_msgSend_544Ptr.asFunction< + late final __objc_msgSend_547 = __objc_msgSend_547Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -15307,14 +15379,14 @@ class SentryCocoa { late final _sel_rootProxyForConnectionWithRegisteredName_host_usingNameServer_1 = _registerName1( "rootProxyForConnectionWithRegisteredName:host:usingNameServer:"); - ffi.Pointer _objc_msgSend_545( + ffi.Pointer _objc_msgSend_548( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer hostName, ffi.Pointer server, ) { - return __objc_msgSend_545( + return __objc_msgSend_548( obj, sel, name, @@ -15323,7 +15395,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_545Ptr = _lookup< + late final __objc_msgSend_548Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -15331,7 +15403,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_545 = __objc_msgSend_545Ptr.asFunction< + late final __objc_msgSend_548 = __objc_msgSend_548Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -15341,14 +15413,14 @@ class SentryCocoa { late final _sel_serviceConnectionWithName_rootObject_usingNameServer_1 = _registerName1("serviceConnectionWithName:rootObject:usingNameServer:"); - instancetype _objc_msgSend_546( + instancetype _objc_msgSend_549( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer root, ffi.Pointer server, ) { - return __objc_msgSend_546( + return __objc_msgSend_549( obj, sel, name, @@ -15357,7 +15429,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_546Ptr = _lookup< + late final __objc_msgSend_549Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -15365,7 +15437,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_546 = __objc_msgSend_546Ptr.asFunction< + late final __objc_msgSend_549 = __objc_msgSend_549Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -15386,21 +15458,21 @@ class SentryCocoa { late final _sel_setIndependentConversationQueueing_1 = _registerName1("setIndependentConversationQueueing:"); late final _sel_rootProxy1 = _registerName1("rootProxy"); - ffi.Pointer _objc_msgSend_547( + ffi.Pointer _objc_msgSend_550( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_547( + return __objc_msgSend_550( obj, sel, ); } - late final __objc_msgSend_547Ptr = _lookup< + late final __objc_msgSend_550Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_547 = __objc_msgSend_547Ptr.asFunction< + late final __objc_msgSend_550 = __objc_msgSend_550Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -15410,13 +15482,13 @@ class SentryCocoa { late final _sel_registerName_1 = _registerName1("registerName:"); late final _sel_registerName_withNameServer_1 = _registerName1("registerName:withNameServer:"); - bool _objc_msgSend_548( + bool _objc_msgSend_551( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer server, ) { - return __objc_msgSend_548( + return __objc_msgSend_551( obj, sel, name, @@ -15424,26 +15496,26 @@ class SentryCocoa { ); } - late final __objc_msgSend_548Ptr = _lookup< + late final __objc_msgSend_551Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_548 = __objc_msgSend_548Ptr.asFunction< + late final __objc_msgSend_551 = __objc_msgSend_551Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_connectionWithReceivePort_sendPort_1 = _registerName1("connectionWithReceivePort:sendPort:"); - instancetype _objc_msgSend_549( + instancetype _objc_msgSend_552( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer receivePort, ffi.Pointer sendPort, ) { - return __objc_msgSend_549( + return __objc_msgSend_552( obj, sel, receivePort, @@ -15451,14 +15523,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_549Ptr = _lookup< + late final __objc_msgSend_552Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_549 = __objc_msgSend_549Ptr.asFunction< + late final __objc_msgSend_552 = __objc_msgSend_552Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -15472,23 +15544,23 @@ class SentryCocoa { late final _sel_multipleThreadsEnabled1 = _registerName1("multipleThreadsEnabled"); late final _sel_addRunLoop_1 = _registerName1("addRunLoop:"); - void _objc_msgSend_550( + void _objc_msgSend_553( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer runloop, ) { - return __objc_msgSend_550( + return __objc_msgSend_553( obj, sel, runloop, ); } - late final __objc_msgSend_550Ptr = _lookup< + late final __objc_msgSend_553Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_550 = __objc_msgSend_550Ptr.asFunction< + late final __objc_msgSend_553 = __objc_msgSend_553Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -15500,14 +15572,14 @@ class SentryCocoa { _registerName1("dispatchWithComponents:"); late final _sel_addConnection_toRunLoop_forMode_1 = _registerName1("addConnection:toRunLoop:forMode:"); - void _objc_msgSend_551( + void _objc_msgSend_554( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer conn, ffi.Pointer runLoop, ffi.Pointer mode, ) { - return __objc_msgSend_551( + return __objc_msgSend_554( obj, sel, conn, @@ -15516,7 +15588,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_551Ptr = _lookup< + late final __objc_msgSend_554Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -15524,7 +15596,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_551 = __objc_msgSend_551Ptr.asFunction< + late final __objc_msgSend_554 = __objc_msgSend_554Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -15535,23 +15607,23 @@ class SentryCocoa { late final _sel_removeConnection_fromRunLoop_forMode_1 = _registerName1("removeConnection:fromRunLoop:forMode:"); late final _sel_encodePortObject_1 = _registerName1("encodePortObject:"); - void _objc_msgSend_552( + void _objc_msgSend_555( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aport, ) { - return __objc_msgSend_552( + return __objc_msgSend_555( obj, sel, aport, ); } - late final __objc_msgSend_552Ptr = _lookup< + late final __objc_msgSend_555Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_552 = __objc_msgSend_552Ptr.asFunction< + late final __objc_msgSend_555 = __objc_msgSend_555Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -15559,14 +15631,14 @@ class SentryCocoa { late final _sel_connection1 = _registerName1("connection"); late final _sel_portCoderWithReceivePort_sendPort_components_1 = _registerName1("portCoderWithReceivePort:sendPort:components:"); - ffi.Pointer _objc_msgSend_553( + ffi.Pointer _objc_msgSend_556( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer rcvPort, ffi.Pointer sndPort, ffi.Pointer comps, ) { - return __objc_msgSend_553( + return __objc_msgSend_556( obj, sel, rcvPort, @@ -15575,7 +15647,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_553Ptr = _lookup< + late final __objc_msgSend_556Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -15583,7 +15655,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_553 = __objc_msgSend_553Ptr.asFunction< + late final __objc_msgSend_556 = __objc_msgSend_556Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -15596,36 +15668,36 @@ class SentryCocoa { late final _sel_dispatch1 = _registerName1("dispatch"); late final _sel_replacementObjectForPortCoder_1 = _registerName1("replacementObjectForPortCoder:"); - ffi.Pointer _objc_msgSend_554( + ffi.Pointer _objc_msgSend_557( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer coder, ) { - return __objc_msgSend_554( + return __objc_msgSend_557( obj, sel, coder, ); } - late final __objc_msgSend_554Ptr = _lookup< + late final __objc_msgSend_557Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_554 = __objc_msgSend_554Ptr.asFunction< + late final __objc_msgSend_557 = __objc_msgSend_557Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSClassDescription1 = _getClass1("NSClassDescription"); late final _sel_registerClassDescription_forClass_1 = _registerName1("registerClassDescription:forClass:"); - void _objc_msgSend_555( + void _objc_msgSend_558( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer description, ffi.Pointer aClass, ) { - return __objc_msgSend_555( + return __objc_msgSend_558( obj, sel, description, @@ -15633,14 +15705,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_555Ptr = _lookup< + late final __objc_msgSend_558Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_555 = __objc_msgSend_555Ptr.asFunction< + late final __objc_msgSend_558 = __objc_msgSend_558Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -15648,23 +15720,23 @@ class SentryCocoa { _registerName1("invalidateClassDescriptionCache"); late final _sel_classDescriptionForClass_1 = _registerName1("classDescriptionForClass:"); - ffi.Pointer _objc_msgSend_556( + ffi.Pointer _objc_msgSend_559( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, ) { - return __objc_msgSend_556( + return __objc_msgSend_559( obj, sel, aClass, ); } - late final __objc_msgSend_556Ptr = _lookup< + late final __objc_msgSend_559Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_556 = __objc_msgSend_556Ptr.asFunction< + late final __objc_msgSend_559 = __objc_msgSend_559Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -15676,21 +15748,21 @@ class SentryCocoa { late final _sel_inverseForRelationshipKey_1 = _registerName1("inverseForRelationshipKey:"); late final _sel_classDescription1 = _registerName1("classDescription"); - ffi.Pointer _objc_msgSend_557( + ffi.Pointer _objc_msgSend_560( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_557( + return __objc_msgSend_560( obj, sel, ); } - late final __objc_msgSend_557Ptr = _lookup< + late final __objc_msgSend_560Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_557 = __objc_msgSend_557Ptr.asFunction< + late final __objc_msgSend_560 = __objc_msgSend_560Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -15699,34 +15771,34 @@ class SentryCocoa { late final _class_NSAppleEventDescriptor1 = _getClass1("NSAppleEventDescriptor"); late final _sel_nullDescriptor1 = _registerName1("nullDescriptor"); - ffi.Pointer _objc_msgSend_558( + ffi.Pointer _objc_msgSend_561( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_558( + return __objc_msgSend_561( obj, sel, ); } - late final __objc_msgSend_558Ptr = _lookup< + late final __objc_msgSend_561Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_558 = __objc_msgSend_558Ptr.asFunction< + late final __objc_msgSend_561 = __objc_msgSend_561Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_descriptorWithDescriptorType_bytes_length_1 = _registerName1("descriptorWithDescriptorType:bytes:length:"); - ffi.Pointer _objc_msgSend_559( + ffi.Pointer _objc_msgSend_562( ffi.Pointer obj, ffi.Pointer sel, int descriptorType, ffi.Pointer bytes, int byteCount, ) { - return __objc_msgSend_559( + return __objc_msgSend_562( obj, sel, descriptorType, @@ -15735,7 +15807,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_559Ptr = _lookup< + late final __objc_msgSend_562Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -15743,19 +15815,19 @@ class SentryCocoa { ffi.UnsignedInt, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_559 = __objc_msgSend_559Ptr.asFunction< + late final __objc_msgSend_562 = __objc_msgSend_562Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer, int)>(); late final _sel_descriptorWithDescriptorType_data_1 = _registerName1("descriptorWithDescriptorType:data:"); - ffi.Pointer _objc_msgSend_560( + ffi.Pointer _objc_msgSend_563( ffi.Pointer obj, ffi.Pointer sel, int descriptorType, ffi.Pointer data, ) { - return __objc_msgSend_560( + return __objc_msgSend_563( obj, sel, descriptorType, @@ -15763,102 +15835,102 @@ class SentryCocoa { ); } - late final __objc_msgSend_560Ptr = _lookup< + late final __objc_msgSend_563Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.UnsignedInt, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_560 = __objc_msgSend_560Ptr.asFunction< + late final __objc_msgSend_563 = __objc_msgSend_563Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_descriptorWithBoolean_1 = _registerName1("descriptorWithBoolean:"); - ffi.Pointer _objc_msgSend_561( + ffi.Pointer _objc_msgSend_564( ffi.Pointer obj, ffi.Pointer sel, int boolean, ) { - return __objc_msgSend_561( + return __objc_msgSend_564( obj, sel, boolean, ); } - late final __objc_msgSend_561Ptr = _lookup< + late final __objc_msgSend_564Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedChar)>>('objc_msgSend'); - late final __objc_msgSend_561 = __objc_msgSend_561Ptr.asFunction< + late final __objc_msgSend_564 = __objc_msgSend_564Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_descriptorWithEnumCode_1 = _registerName1("descriptorWithEnumCode:"); - ffi.Pointer _objc_msgSend_562( + ffi.Pointer _objc_msgSend_565( ffi.Pointer obj, ffi.Pointer sel, int enumerator, ) { - return __objc_msgSend_562( + return __objc_msgSend_565( obj, sel, enumerator, ); } - late final __objc_msgSend_562Ptr = _lookup< + late final __objc_msgSend_565Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedInt)>>('objc_msgSend'); - late final __objc_msgSend_562 = __objc_msgSend_562Ptr.asFunction< + late final __objc_msgSend_565 = __objc_msgSend_565Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_descriptorWithInt32_1 = _registerName1("descriptorWithInt32:"); - ffi.Pointer _objc_msgSend_563( + ffi.Pointer _objc_msgSend_566( ffi.Pointer obj, ffi.Pointer sel, int signedInt, ) { - return __objc_msgSend_563( + return __objc_msgSend_566( obj, sel, signedInt, ); } - late final __objc_msgSend_563Ptr = _lookup< + late final __objc_msgSend_566Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int)>>('objc_msgSend'); - late final __objc_msgSend_563 = __objc_msgSend_563Ptr.asFunction< + late final __objc_msgSend_566 = __objc_msgSend_566Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_descriptorWithDouble_1 = _registerName1("descriptorWithDouble:"); - ffi.Pointer _objc_msgSend_564( + ffi.Pointer _objc_msgSend_567( ffi.Pointer obj, ffi.Pointer sel, double doubleValue, ) { - return __objc_msgSend_564( + return __objc_msgSend_567( obj, sel, doubleValue, ); } - late final __objc_msgSend_564Ptr = _lookup< + late final __objc_msgSend_567Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_564 = __objc_msgSend_564Ptr.asFunction< + late final __objc_msgSend_567 = __objc_msgSend_567Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, double)>(); @@ -15866,73 +15938,73 @@ class SentryCocoa { _registerName1("descriptorWithTypeCode:"); late final _sel_descriptorWithString_1 = _registerName1("descriptorWithString:"); - ffi.Pointer _objc_msgSend_565( + ffi.Pointer _objc_msgSend_568( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, ) { - return __objc_msgSend_565( + return __objc_msgSend_568( obj, sel, string, ); } - late final __objc_msgSend_565Ptr = _lookup< + late final __objc_msgSend_568Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_565 = __objc_msgSend_565Ptr.asFunction< + late final __objc_msgSend_568 = __objc_msgSend_568Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_descriptorWithDate_1 = _registerName1("descriptorWithDate:"); - ffi.Pointer _objc_msgSend_566( + ffi.Pointer _objc_msgSend_569( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, ) { - return __objc_msgSend_566( + return __objc_msgSend_569( obj, sel, date, ); } - late final __objc_msgSend_566Ptr = _lookup< + late final __objc_msgSend_569Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_566 = __objc_msgSend_566Ptr.asFunction< + late final __objc_msgSend_569 = __objc_msgSend_569Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_descriptorWithFileURL_1 = _registerName1("descriptorWithFileURL:"); - ffi.Pointer _objc_msgSend_567( + ffi.Pointer _objc_msgSend_570( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer fileURL, ) { - return __objc_msgSend_567( + return __objc_msgSend_570( obj, sel, fileURL, ); } - late final __objc_msgSend_567Ptr = _lookup< + late final __objc_msgSend_570Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_567 = __objc_msgSend_567Ptr.asFunction< + late final __objc_msgSend_570 = __objc_msgSend_570Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_appleEventWithEventClass_eventID_targetDescriptor_returnID_transactionID_1 = _registerName1( "appleEventWithEventClass:eventID:targetDescriptor:returnID:transactionID:"); - ffi.Pointer _objc_msgSend_568( + ffi.Pointer _objc_msgSend_571( ffi.Pointer obj, ffi.Pointer sel, int eventClass, @@ -15941,7 +16013,7 @@ class SentryCocoa { int returnID, int transactionID, ) { - return __objc_msgSend_568( + return __objc_msgSend_571( obj, sel, eventClass, @@ -15952,7 +16024,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_568Ptr = _lookup< + late final __objc_msgSend_571Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -15962,7 +16034,7 @@ class SentryCocoa { ffi.Pointer, ffi.Short, ffi.Int)>>('objc_msgSend'); - late final __objc_msgSend_568 = __objc_msgSend_568Ptr.asFunction< + late final __objc_msgSend_571 = __objc_msgSend_571Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer, int, int)>(); @@ -15978,36 +16050,36 @@ class SentryCocoa { _registerName1("descriptorWithApplicationURL:"); late final _sel_initWithAEDescNoCopy_1 = _registerName1("initWithAEDescNoCopy:"); - instancetype _objc_msgSend_569( + instancetype _objc_msgSend_572( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aeDesc, ) { - return __objc_msgSend_569( + return __objc_msgSend_572( obj, sel, aeDesc, ); } - late final __objc_msgSend_569Ptr = _lookup< + late final __objc_msgSend_572Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_569 = __objc_msgSend_569Ptr.asFunction< + late final __objc_msgSend_572 = __objc_msgSend_572Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithDescriptorType_bytes_length_1 = _registerName1("initWithDescriptorType:bytes:length:"); - instancetype _objc_msgSend_570( + instancetype _objc_msgSend_573( ffi.Pointer obj, ffi.Pointer sel, int descriptorType, ffi.Pointer bytes, int byteCount, ) { - return __objc_msgSend_570( + return __objc_msgSend_573( obj, sel, descriptorType, @@ -16016,7 +16088,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_570Ptr = _lookup< + late final __objc_msgSend_573Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -16024,19 +16096,19 @@ class SentryCocoa { ffi.UnsignedInt, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_570 = __objc_msgSend_570Ptr.asFunction< + late final __objc_msgSend_573 = __objc_msgSend_573Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer, int)>(); late final _sel_initWithDescriptorType_data_1 = _registerName1("initWithDescriptorType:data:"); - instancetype _objc_msgSend_571( + instancetype _objc_msgSend_574( ffi.Pointer obj, ffi.Pointer sel, int descriptorType, ffi.Pointer data, ) { - return __objc_msgSend_571( + return __objc_msgSend_574( obj, sel, descriptorType, @@ -16044,18 +16116,18 @@ class SentryCocoa { ); } - late final __objc_msgSend_571Ptr = _lookup< + late final __objc_msgSend_574Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedInt, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_571 = __objc_msgSend_571Ptr.asFunction< + late final __objc_msgSend_574 = __objc_msgSend_574Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_initWithEventClass_eventID_targetDescriptor_returnID_transactionID_1 = _registerName1( "initWithEventClass:eventID:targetDescriptor:returnID:transactionID:"); - instancetype _objc_msgSend_572( + instancetype _objc_msgSend_575( ffi.Pointer obj, ffi.Pointer sel, int eventClass, @@ -16064,7 +16136,7 @@ class SentryCocoa { int returnID, int transactionID, ) { - return __objc_msgSend_572( + return __objc_msgSend_575( obj, sel, eventClass, @@ -16075,7 +16147,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_572Ptr = _lookup< + late final __objc_msgSend_575Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -16085,7 +16157,7 @@ class SentryCocoa { ffi.Pointer, ffi.Short, ffi.Int)>>('objc_msgSend'); - late final __objc_msgSend_572 = __objc_msgSend_572Ptr.asFunction< + late final __objc_msgSend_575 = __objc_msgSend_575Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer, int, int)>(); @@ -16093,21 +16165,21 @@ class SentryCocoa { late final _sel_initRecordDescriptor1 = _registerName1("initRecordDescriptor"); late final _sel_aeDesc1 = _registerName1("aeDesc"); - ffi.Pointer _objc_msgSend_573( + ffi.Pointer _objc_msgSend_576( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_573( + return __objc_msgSend_576( obj, sel, ); } - late final __objc_msgSend_573Ptr = _lookup< + late final __objc_msgSend_576Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_573 = __objc_msgSend_573Ptr.asFunction< + late final __objc_msgSend_576 = __objc_msgSend_576Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -16124,13 +16196,13 @@ class SentryCocoa { late final _sel_transactionID1 = _registerName1("transactionID"); late final _sel_setParamDescriptor_forKeyword_1 = _registerName1("setParamDescriptor:forKeyword:"); - void _objc_msgSend_574( + void _objc_msgSend_577( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer descriptor, int keyword, ) { - return __objc_msgSend_574( + return __objc_msgSend_577( obj, sel, descriptor, @@ -16138,11 +16210,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_574Ptr = _lookup< + late final __objc_msgSend_577Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedInt)>>('objc_msgSend'); - late final __objc_msgSend_574 = __objc_msgSend_574Ptr.asFunction< + late final __objc_msgSend_577 = __objc_msgSend_577Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -16150,23 +16222,23 @@ class SentryCocoa { _registerName1("paramDescriptorForKeyword:"); late final _sel_removeParamDescriptorWithKeyword_1 = _registerName1("removeParamDescriptorWithKeyword:"); - void _objc_msgSend_575( + void _objc_msgSend_578( ffi.Pointer obj, ffi.Pointer sel, int keyword, ) { - return __objc_msgSend_575( + return __objc_msgSend_578( obj, sel, keyword, ); } - late final __objc_msgSend_575Ptr = _lookup< + late final __objc_msgSend_578Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedInt)>>('objc_msgSend'); - late final __objc_msgSend_575 = __objc_msgSend_575Ptr.asFunction< + late final __objc_msgSend_578 = __objc_msgSend_578Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setAttributeDescriptor_forKeyword_1 = @@ -16175,14 +16247,14 @@ class SentryCocoa { _registerName1("attributeDescriptorForKeyword:"); late final _sel_sendEventWithOptions_timeout_error_1 = _registerName1("sendEventWithOptions:timeout:error:"); - ffi.Pointer _objc_msgSend_576( + ffi.Pointer _objc_msgSend_579( ffi.Pointer obj, ffi.Pointer sel, int sendOptions, double timeoutInSeconds, ffi.Pointer> error, ) { - return __objc_msgSend_576( + return __objc_msgSend_579( obj, sel, sendOptions, @@ -16191,7 +16263,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_576Ptr = _lookup< + late final __objc_msgSend_579Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -16199,7 +16271,7 @@ class SentryCocoa { ffi.Int32, ffi.Double, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_576 = __objc_msgSend_576Ptr.asFunction< + late final __objc_msgSend_579 = __objc_msgSend_579Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -16211,13 +16283,13 @@ class SentryCocoa { late final _sel_numberOfItems1 = _registerName1("numberOfItems"); late final _sel_insertDescriptor_atIndex_1 = _registerName1("insertDescriptor:atIndex:"); - void _objc_msgSend_577( + void _objc_msgSend_580( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer descriptor, int index, ) { - return __objc_msgSend_577( + return __objc_msgSend_580( obj, sel, descriptor, @@ -16225,32 +16297,32 @@ class SentryCocoa { ); } - late final __objc_msgSend_577Ptr = _lookup< + late final __objc_msgSend_580Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_577 = __objc_msgSend_577Ptr.asFunction< + late final __objc_msgSend_580 = __objc_msgSend_580Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_descriptorAtIndex_1 = _registerName1("descriptorAtIndex:"); - ffi.Pointer _objc_msgSend_578( + ffi.Pointer _objc_msgSend_581( ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_578( + return __objc_msgSend_581( obj, sel, index, ); } - late final __objc_msgSend_578Ptr = _lookup< + late final __objc_msgSend_581Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_578 = __objc_msgSend_578Ptr.asFunction< + late final __objc_msgSend_581 = __objc_msgSend_581Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -16264,58 +16336,58 @@ class SentryCocoa { _registerName1("removeDescriptorWithKeyword:"); late final _sel_keywordForDescriptorAtIndex_1 = _registerName1("keywordForDescriptorAtIndex:"); - int _objc_msgSend_579( + int _objc_msgSend_582( ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_579( + return __objc_msgSend_582( obj, sel, index, ); } - late final __objc_msgSend_579Ptr = _lookup< + late final __objc_msgSend_582Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedInt Function(ffi.Pointer, ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_579 = __objc_msgSend_579Ptr.asFunction< + late final __objc_msgSend_582 = __objc_msgSend_582Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_coerceToDescriptorType_1 = _registerName1("coerceToDescriptorType:"); late final _sel_objectSpecifierWithDescriptor_1 = _registerName1("objectSpecifierWithDescriptor:"); - ffi.Pointer _objc_msgSend_580( + ffi.Pointer _objc_msgSend_583( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer descriptor, ) { - return __objc_msgSend_580( + return __objc_msgSend_583( obj, sel, descriptor, ); } - late final __objc_msgSend_580Ptr = _lookup< + late final __objc_msgSend_583Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_580 = __objc_msgSend_580Ptr.asFunction< + late final __objc_msgSend_583 = __objc_msgSend_583Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithContainerSpecifier_key_1 = _registerName1("initWithContainerSpecifier:key:"); - instancetype _objc_msgSend_581( + instancetype _objc_msgSend_584( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer container, ffi.Pointer property, ) { - return __objc_msgSend_581( + return __objc_msgSend_584( obj, sel, container, @@ -16323,49 +16395,49 @@ class SentryCocoa { ); } - late final __objc_msgSend_581Ptr = _lookup< + late final __objc_msgSend_584Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_581 = __objc_msgSend_581Ptr.asFunction< + late final __objc_msgSend_584 = __objc_msgSend_584Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSScriptClassDescription1 = _getClass1("NSScriptClassDescription"); - ffi.Pointer _objc_msgSend_582( + ffi.Pointer _objc_msgSend_585( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, ) { - return __objc_msgSend_582( + return __objc_msgSend_585( obj, sel, aClass, ); } - late final __objc_msgSend_582Ptr = _lookup< + late final __objc_msgSend_585Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_582 = __objc_msgSend_582Ptr.asFunction< + late final __objc_msgSend_585 = __objc_msgSend_585Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithSuiteName_className_dictionary_1 = _registerName1("initWithSuiteName:className:dictionary:"); - instancetype _objc_msgSend_583( + instancetype _objc_msgSend_586( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer suiteName, ffi.Pointer className, ffi.Pointer classDeclaration, ) { - return __objc_msgSend_583( + return __objc_msgSend_586( obj, sel, suiteName, @@ -16374,7 +16446,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_583Ptr = _lookup< + late final __objc_msgSend_586Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -16382,7 +16454,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_583 = __objc_msgSend_583Ptr.asFunction< + late final __objc_msgSend_586 = __objc_msgSend_586Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -16396,21 +16468,21 @@ class SentryCocoa { _registerName1("implementationClassName"); late final _sel_superclassDescription1 = _registerName1("superclassDescription"); - ffi.Pointer _objc_msgSend_584( + ffi.Pointer _objc_msgSend_587( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_584( + return __objc_msgSend_587( obj, sel, ); } - late final __objc_msgSend_584Ptr = _lookup< + late final __objc_msgSend_587Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_584 = __objc_msgSend_584Ptr.asFunction< + late final __objc_msgSend_587 = __objc_msgSend_587Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -16432,23 +16504,23 @@ class SentryCocoa { _registerName1("typeForArgumentWithName:"); late final _sel_appleEventCodeForArgumentWithName_1 = _registerName1("appleEventCodeForArgumentWithName:"); - int _objc_msgSend_585( + int _objc_msgSend_588( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer argumentName, ) { - return __objc_msgSend_585( + return __objc_msgSend_588( obj, sel, argumentName, ); } - late final __objc_msgSend_585Ptr = _lookup< + late final __objc_msgSend_588Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedInt Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_585 = __objc_msgSend_585Ptr.asFunction< + late final __objc_msgSend_588 = __objc_msgSend_588Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -16457,85 +16529,85 @@ class SentryCocoa { late final _class_NSScriptCommand1 = _getClass1("NSScriptCommand"); late final _sel_initWithCommandDescription_1 = _registerName1("initWithCommandDescription:"); - instancetype _objc_msgSend_586( + instancetype _objc_msgSend_589( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer commandDef, ) { - return __objc_msgSend_586( + return __objc_msgSend_589( obj, sel, commandDef, ); } - late final __objc_msgSend_586Ptr = _lookup< + late final __objc_msgSend_589Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_586 = __objc_msgSend_586Ptr.asFunction< + late final __objc_msgSend_589 = __objc_msgSend_589Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_commandDescription1 = _registerName1("commandDescription"); - ffi.Pointer _objc_msgSend_587( + ffi.Pointer _objc_msgSend_590( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_587( + return __objc_msgSend_590( obj, sel, ); } - late final __objc_msgSend_587Ptr = _lookup< + late final __objc_msgSend_590Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_587 = __objc_msgSend_587Ptr.asFunction< + late final __objc_msgSend_590 = __objc_msgSend_590Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_directParameter1 = _registerName1("directParameter"); late final _sel_setDirectParameter_1 = _registerName1("setDirectParameter:"); late final _sel_receiversSpecifier1 = _registerName1("receiversSpecifier"); - ffi.Pointer _objc_msgSend_588( + ffi.Pointer _objc_msgSend_591( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_588( + return __objc_msgSend_591( obj, sel, ); } - late final __objc_msgSend_588Ptr = _lookup< + late final __objc_msgSend_591Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_588 = __objc_msgSend_588Ptr.asFunction< + late final __objc_msgSend_591 = __objc_msgSend_591Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setReceiversSpecifier_1 = _registerName1("setReceiversSpecifier:"); - void _objc_msgSend_589( + void _objc_msgSend_592( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_589( + return __objc_msgSend_592( obj, sel, value, ); } - late final __objc_msgSend_589Ptr = _lookup< + late final __objc_msgSend_592Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_589 = __objc_msgSend_589Ptr.asFunction< + late final __objc_msgSend_592 = __objc_msgSend_592Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -16550,46 +16622,46 @@ class SentryCocoa { late final _sel_scriptErrorNumber1 = _registerName1("scriptErrorNumber"); late final _sel_setScriptErrorNumber_1 = _registerName1("setScriptErrorNumber:"); - void _objc_msgSend_590( + void _objc_msgSend_593( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_590( + return __objc_msgSend_593( obj, sel, value, ); } - late final __objc_msgSend_590Ptr = _lookup< + late final __objc_msgSend_593Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_590 = __objc_msgSend_590Ptr.asFunction< + late final __objc_msgSend_593 = __objc_msgSend_593Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_scriptErrorOffendingObjectDescriptor1 = _registerName1("scriptErrorOffendingObjectDescriptor"); late final _sel_setScriptErrorOffendingObjectDescriptor_1 = _registerName1("setScriptErrorOffendingObjectDescriptor:"); - void _objc_msgSend_591( + void _objc_msgSend_594( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_591( + return __objc_msgSend_594( obj, sel, value, ); } - late final __objc_msgSend_591Ptr = _lookup< + late final __objc_msgSend_594Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_591 = __objc_msgSend_591Ptr.asFunction< + late final __objc_msgSend_594 = __objc_msgSend_594Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -16601,21 +16673,21 @@ class SentryCocoa { late final _sel_setScriptErrorString_1 = _registerName1("setScriptErrorString:"); late final _sel_currentCommand1 = _registerName1("currentCommand"); - ffi.Pointer _objc_msgSend_592( + ffi.Pointer _objc_msgSend_595( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_592( + return __objc_msgSend_595( obj, sel, ); } - late final __objc_msgSend_592Ptr = _lookup< + late final __objc_msgSend_595Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_592 = __objc_msgSend_592Ptr.asFunction< + late final __objc_msgSend_595 = __objc_msgSend_595Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -16627,88 +16699,88 @@ class SentryCocoa { _registerName1("createCommandInstance"); late final _sel_createCommandInstanceWithZone_1 = _registerName1("createCommandInstanceWithZone:"); - ffi.Pointer _objc_msgSend_593( + ffi.Pointer _objc_msgSend_596( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_NSZone> zone, ) { - return __objc_msgSend_593( + return __objc_msgSend_596( obj, sel, zone, ); } - late final __objc_msgSend_593Ptr = _lookup< + late final __objc_msgSend_596Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_NSZone>)>>('objc_msgSend'); - late final __objc_msgSend_593 = __objc_msgSend_593Ptr.asFunction< + late final __objc_msgSend_596 = __objc_msgSend_596Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_NSZone>)>(); late final _sel_supportsCommand_1 = _registerName1("supportsCommand:"); - bool _objc_msgSend_594( + bool _objc_msgSend_597( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer commandDescription, ) { - return __objc_msgSend_594( + return __objc_msgSend_597( obj, sel, commandDescription, ); } - late final __objc_msgSend_594Ptr = _lookup< + late final __objc_msgSend_597Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_594 = __objc_msgSend_594Ptr.asFunction< + late final __objc_msgSend_597 = __objc_msgSend_597Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_selectorForCommand_1 = _registerName1("selectorForCommand:"); - ffi.Pointer _objc_msgSend_595( + ffi.Pointer _objc_msgSend_598( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer commandDescription, ) { - return __objc_msgSend_595( + return __objc_msgSend_598( obj, sel, commandDescription, ); } - late final __objc_msgSend_595Ptr = _lookup< + late final __objc_msgSend_598Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_595 = __objc_msgSend_595Ptr.asFunction< + late final __objc_msgSend_598 = __objc_msgSend_598Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_typeForKey_1 = _registerName1("typeForKey:"); late final _sel_classDescriptionForKey_1 = _registerName1("classDescriptionForKey:"); - ffi.Pointer _objc_msgSend_596( + ffi.Pointer _objc_msgSend_599( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_596( + return __objc_msgSend_599( obj, sel, key, ); } - late final __objc_msgSend_596Ptr = _lookup< + late final __objc_msgSend_599Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_596 = __objc_msgSend_596Ptr.asFunction< + late final __objc_msgSend_599 = __objc_msgSend_599Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -16716,23 +16788,23 @@ class SentryCocoa { _registerName1("appleEventCodeForKey:"); late final _sel_keyWithAppleEventCode_1 = _registerName1("keyWithAppleEventCode:"); - ffi.Pointer _objc_msgSend_597( + ffi.Pointer _objc_msgSend_600( ffi.Pointer obj, ffi.Pointer sel, int appleEventCode, ) { - return __objc_msgSend_597( + return __objc_msgSend_600( obj, sel, appleEventCode, ); } - late final __objc_msgSend_597Ptr = _lookup< + late final __objc_msgSend_600Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedInt)>>('objc_msgSend'); - late final __objc_msgSend_597 = __objc_msgSend_597Ptr.asFunction< + late final __objc_msgSend_600 = __objc_msgSend_600Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -16751,14 +16823,14 @@ class SentryCocoa { late final _sel_initWithContainerClassDescription_containerSpecifier_key_1 = _registerName1( "initWithContainerClassDescription:containerSpecifier:key:"); - instancetype _objc_msgSend_598( + instancetype _objc_msgSend_601( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer classDesc, ffi.Pointer container, ffi.Pointer property, ) { - return __objc_msgSend_598( + return __objc_msgSend_601( obj, sel, classDesc, @@ -16767,7 +16839,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_598Ptr = _lookup< + late final __objc_msgSend_601Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -16775,7 +16847,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_598 = __objc_msgSend_598Ptr.asFunction< + late final __objc_msgSend_601 = __objc_msgSend_601Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -16802,36 +16874,36 @@ class SentryCocoa { _registerName1("containerClassDescription"); late final _sel_setContainerClassDescription_1 = _registerName1("setContainerClassDescription:"); - void _objc_msgSend_599( + void _objc_msgSend_602( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_599( + return __objc_msgSend_602( obj, sel, value, ); } - late final __objc_msgSend_599Ptr = _lookup< + late final __objc_msgSend_602Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_599 = __objc_msgSend_599Ptr.asFunction< + late final __objc_msgSend_602 = __objc_msgSend_602Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_keyClassDescription1 = _registerName1("keyClassDescription"); late final _sel_indicesOfObjectsByEvaluatingWithContainer_count_1 = _registerName1("indicesOfObjectsByEvaluatingWithContainer:count:"); - ffi.Pointer _objc_msgSend_600( + ffi.Pointer _objc_msgSend_603( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer container, ffi.Pointer count, ) { - return __objc_msgSend_600( + return __objc_msgSend_603( obj, sel, container, @@ -16839,14 +16911,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_600Ptr = _lookup< + late final __objc_msgSend_603Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_600 = __objc_msgSend_600Ptr.asFunction< + late final __objc_msgSend_603 = __objc_msgSend_603Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -16866,23 +16938,23 @@ class SentryCocoa { late final _sel_descriptor1 = _registerName1("descriptor"); late final _sel_scriptingValueForSpecifier_1 = _registerName1("scriptingValueForSpecifier:"); - ffi.Pointer _objc_msgSend_601( + ffi.Pointer _objc_msgSend_604( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer objectSpecifier, ) { - return __objc_msgSend_601( + return __objc_msgSend_604( obj, sel, objectSpecifier, ); } - late final __objc_msgSend_601Ptr = _lookup< + late final __objc_msgSend_604Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_601 = __objc_msgSend_601Ptr.asFunction< + late final __objc_msgSend_604 = __objc_msgSend_604Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -16891,14 +16963,14 @@ class SentryCocoa { _registerName1("setScriptingProperties:"); late final _sel_copyScriptingValue_forKey_withProperties_1 = _registerName1("copyScriptingValue:forKey:withProperties:"); - ffi.Pointer _objc_msgSend_602( + ffi.Pointer _objc_msgSend_605( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ffi.Pointer key, ffi.Pointer properties, ) { - return __objc_msgSend_602( + return __objc_msgSend_605( obj, sel, value, @@ -16907,7 +16979,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_602Ptr = _lookup< + late final __objc_msgSend_605Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -16915,7 +16987,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_602 = __objc_msgSend_602Ptr.asFunction< + late final __objc_msgSend_605 = __objc_msgSend_605Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -16926,7 +16998,7 @@ class SentryCocoa { late final _sel_newScriptingObjectOfClass_forValueForKey_withContentsValue_properties_1 = _registerName1( "newScriptingObjectOfClass:forValueForKey:withContentsValue:properties:"); - ffi.Pointer _objc_msgSend_603( + ffi.Pointer _objc_msgSend_606( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer objectClass, @@ -16934,7 +17006,7 @@ class SentryCocoa { ffi.Pointer contentsValue, ffi.Pointer properties, ) { - return __objc_msgSend_603( + return __objc_msgSend_606( obj, sel, objectClass, @@ -16944,7 +17016,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_603Ptr = _lookup< + late final __objc_msgSend_606Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -16953,7 +17025,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_603 = __objc_msgSend_603Ptr.asFunction< + late final __objc_msgSend_606 = __objc_msgSend_606Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -16965,13 +17037,13 @@ class SentryCocoa { late final _sel_classCode1 = _registerName1("classCode"); late final _sel_valueAtIndex_inPropertyWithKey_1 = _registerName1("valueAtIndex:inPropertyWithKey:"); - ffi.Pointer _objc_msgSend_604( + ffi.Pointer _objc_msgSend_607( ffi.Pointer obj, ffi.Pointer sel, int index, ffi.Pointer key, ) { - return __objc_msgSend_604( + return __objc_msgSend_607( obj, sel, index, @@ -16979,14 +17051,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_604Ptr = _lookup< + late final __objc_msgSend_607Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_604 = __objc_msgSend_604Ptr.asFunction< + late final __objc_msgSend_607 = __objc_msgSend_607Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); @@ -16996,14 +17068,14 @@ class SentryCocoa { _registerName1("valueWithUniqueID:inPropertyWithKey:"); late final _sel_insertValue_atIndex_inPropertyWithKey_1 = _registerName1("insertValue:atIndex:inPropertyWithKey:"); - void _objc_msgSend_605( + void _objc_msgSend_608( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, int index, ffi.Pointer key, ) { - return __objc_msgSend_605( + return __objc_msgSend_608( obj, sel, value, @@ -17012,7 +17084,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_605Ptr = _lookup< + late final __objc_msgSend_608Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -17020,19 +17092,19 @@ class SentryCocoa { ffi.Pointer, ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_605 = __objc_msgSend_605Ptr.asFunction< + late final __objc_msgSend_608 = __objc_msgSend_608Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_removeValueAtIndex_fromPropertyWithKey_1 = _registerName1("removeValueAtIndex:fromPropertyWithKey:"); - void _objc_msgSend_606( + void _objc_msgSend_609( ffi.Pointer obj, ffi.Pointer sel, int index, ffi.Pointer key, ) { - return __objc_msgSend_606( + return __objc_msgSend_609( obj, sel, index, @@ -17040,24 +17112,24 @@ class SentryCocoa { ); } - late final __objc_msgSend_606Ptr = _lookup< + late final __objc_msgSend_609Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_606 = __objc_msgSend_606Ptr.asFunction< + late final __objc_msgSend_609 = __objc_msgSend_609Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_replaceValueAtIndex_inPropertyWithKey_withValue_1 = _registerName1("replaceValueAtIndex:inPropertyWithKey:withValue:"); - void _objc_msgSend_607( + void _objc_msgSend_610( ffi.Pointer obj, ffi.Pointer sel, int index, ffi.Pointer key, ffi.Pointer value, ) { - return __objc_msgSend_607( + return __objc_msgSend_610( obj, sel, index, @@ -17066,7 +17138,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_607Ptr = _lookup< + late final __objc_msgSend_610Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -17074,7 +17146,7 @@ class SentryCocoa { ffi.UnsignedLong, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_607 = __objc_msgSend_607Ptr.asFunction< + late final __objc_msgSend_610 = __objc_msgSend_610Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer, ffi.Pointer)>(); @@ -17084,23 +17156,23 @@ class SentryCocoa { late final _sel_objectSpecifier1 = _registerName1("objectSpecifier"); late final _sel_indicesOfObjectsByEvaluatingObjectSpecifier_1 = _registerName1("indicesOfObjectsByEvaluatingObjectSpecifier:"); - ffi.Pointer _objc_msgSend_608( + ffi.Pointer _objc_msgSend_611( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer specifier, ) { - return __objc_msgSend_608( + return __objc_msgSend_611( obj, sel, specifier, ); } - late final __objc_msgSend_608Ptr = _lookup< + late final __objc_msgSend_611Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_608 = __objc_msgSend_608Ptr.asFunction< + late final __objc_msgSend_611 = __objc_msgSend_611Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -17132,43 +17204,43 @@ class SentryCocoa { late final _class_NSItemProvider1 = _getClass1("NSItemProvider"); late final _class_NSProgress1 = _getClass1("NSProgress"); late final _sel_currentProgress1 = _registerName1("currentProgress"); - ffi.Pointer _objc_msgSend_609( + ffi.Pointer _objc_msgSend_612( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_609( + return __objc_msgSend_612( obj, sel, ); } - late final __objc_msgSend_609Ptr = _lookup< + late final __objc_msgSend_612Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_609 = __objc_msgSend_609Ptr.asFunction< + late final __objc_msgSend_612 = __objc_msgSend_612Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_progressWithTotalUnitCount_1 = _registerName1("progressWithTotalUnitCount:"); - ffi.Pointer _objc_msgSend_610( + ffi.Pointer _objc_msgSend_613( ffi.Pointer obj, ffi.Pointer sel, int unitCount, ) { - return __objc_msgSend_610( + return __objc_msgSend_613( obj, sel, unitCount, ); } - late final __objc_msgSend_610Ptr = _lookup< + late final __objc_msgSend_613Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_610 = __objc_msgSend_610Ptr.asFunction< + late final __objc_msgSend_613 = __objc_msgSend_613Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -17176,14 +17248,14 @@ class SentryCocoa { _registerName1("discreteProgressWithTotalUnitCount:"); late final _sel_progressWithTotalUnitCount_parent_pendingUnitCount_1 = _registerName1("progressWithTotalUnitCount:parent:pendingUnitCount:"); - ffi.Pointer _objc_msgSend_611( + ffi.Pointer _objc_msgSend_614( ffi.Pointer obj, ffi.Pointer sel, int unitCount, ffi.Pointer parent, int portionOfParentTotalUnitCount, ) { - return __objc_msgSend_611( + return __objc_msgSend_614( obj, sel, unitCount, @@ -17192,7 +17264,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_611Ptr = _lookup< + late final __objc_msgSend_614Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -17200,19 +17272,19 @@ class SentryCocoa { ffi.Int64, ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_611 = __objc_msgSend_611Ptr.asFunction< + late final __objc_msgSend_614 = __objc_msgSend_614Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer, int)>(); late final _sel_initWithParent_userInfo_1 = _registerName1("initWithParent:userInfo:"); - instancetype _objc_msgSend_612( + instancetype _objc_msgSend_615( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer parentProgressOrNil, ffi.Pointer userInfoOrNil, ) { - return __objc_msgSend_612( + return __objc_msgSend_615( obj, sel, parentProgressOrNil, @@ -17220,47 +17292,47 @@ class SentryCocoa { ); } - late final __objc_msgSend_612Ptr = _lookup< + late final __objc_msgSend_615Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_612 = __objc_msgSend_612Ptr.asFunction< + late final __objc_msgSend_615 = __objc_msgSend_615Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_becomeCurrentWithPendingUnitCount_1 = _registerName1("becomeCurrentWithPendingUnitCount:"); - void _objc_msgSend_613( + void _objc_msgSend_616( ffi.Pointer obj, ffi.Pointer sel, int unitCount, ) { - return __objc_msgSend_613( + return __objc_msgSend_616( obj, sel, unitCount, ); } - late final __objc_msgSend_613Ptr = _lookup< + late final __objc_msgSend_616Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_613 = __objc_msgSend_613Ptr.asFunction< + late final __objc_msgSend_616 = __objc_msgSend_616Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_performAsCurrentWithPendingUnitCount_usingBlock_1 = _registerName1("performAsCurrentWithPendingUnitCount:usingBlock:"); - void _objc_msgSend_614( + void _objc_msgSend_617( ffi.Pointer obj, ffi.Pointer sel, int unitCount, ffi.Pointer<_ObjCBlock> work, ) { - return __objc_msgSend_614( + return __objc_msgSend_617( obj, sel, unitCount, @@ -17268,24 +17340,24 @@ class SentryCocoa { ); } - late final __objc_msgSend_614Ptr = _lookup< + late final __objc_msgSend_617Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int64, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_614 = __objc_msgSend_614Ptr.asFunction< + late final __objc_msgSend_617 = __objc_msgSend_617Ptr.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_615( + void _objc_msgSend_618( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer child, int inUnitCount, ) { - return __objc_msgSend_615( + return __objc_msgSend_618( obj, sel, child, @@ -17293,50 +17365,50 @@ class SentryCocoa { ); } - late final __objc_msgSend_615Ptr = _lookup< + late final __objc_msgSend_618Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_615 = __objc_msgSend_615Ptr.asFunction< + late final __objc_msgSend_618 = __objc_msgSend_618Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_totalUnitCount1 = _registerName1("totalUnitCount"); - int _objc_msgSend_616( + int _objc_msgSend_619( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_616( + return __objc_msgSend_619( obj, sel, ); } - late final __objc_msgSend_616Ptr = _lookup< + late final __objc_msgSend_619Ptr = _lookup< ffi.NativeFunction< ffi.Int64 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_616 = __objc_msgSend_616Ptr.asFunction< + late final __objc_msgSend_619 = __objc_msgSend_619Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setTotalUnitCount_1 = _registerName1("setTotalUnitCount:"); - void _objc_msgSend_617( + void _objc_msgSend_620( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_617( + return __objc_msgSend_620( obj, sel, value, ); } - late final __objc_msgSend_617Ptr = _lookup< + late final __objc_msgSend_620Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_617 = __objc_msgSend_617Ptr.asFunction< + late final __objc_msgSend_620 = __objc_msgSend_620Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_completedUnitCount1 = _registerName1("completedUnitCount"); @@ -17354,43 +17426,43 @@ class SentryCocoa { late final _sel_setPausable_1 = _registerName1("setPausable:"); late final _sel_isPaused1 = _registerName1("isPaused"); late final _sel_cancellationHandler1 = _registerName1("cancellationHandler"); - ffi.Pointer<_ObjCBlock> _objc_msgSend_618( + ffi.Pointer<_ObjCBlock> _objc_msgSend_621( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_618( + return __objc_msgSend_621( obj, sel, ); } - late final __objc_msgSend_618Ptr = _lookup< + late final __objc_msgSend_621Ptr = _lookup< ffi.NativeFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_618 = __objc_msgSend_618Ptr.asFunction< + late final __objc_msgSend_621 = __objc_msgSend_621Ptr.asFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setCancellationHandler_1 = _registerName1("setCancellationHandler:"); - void _objc_msgSend_619( + void _objc_msgSend_622( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> value, ) { - return __objc_msgSend_619( + return __objc_msgSend_622( obj, sel, value, ); } - late final __objc_msgSend_619Ptr = _lookup< + late final __objc_msgSend_622Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_619 = __objc_msgSend_619Ptr.asFunction< + late final __objc_msgSend_622 = __objc_msgSend_622Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); @@ -17410,23 +17482,23 @@ class SentryCocoa { _registerName1("estimatedTimeRemaining"); late final _sel_setEstimatedTimeRemaining_1 = _registerName1("setEstimatedTimeRemaining:"); - void _objc_msgSend_620( + void _objc_msgSend_623( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_620( + return __objc_msgSend_623( obj, sel, value, ); } - late final __objc_msgSend_620Ptr = _lookup< + late final __objc_msgSend_623Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_620 = __objc_msgSend_620Ptr.asFunction< + late final __objc_msgSend_623 = __objc_msgSend_623Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -17437,23 +17509,23 @@ class SentryCocoa { _registerName1("setFileOperationKind:"); late final _sel_fileURL1 = _registerName1("fileURL"); late final _sel_setFileURL_1 = _registerName1("setFileURL:"); - void _objc_msgSend_621( + void _objc_msgSend_624( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_621( + return __objc_msgSend_624( obj, sel, value, ); } - late final __objc_msgSend_621Ptr = _lookup< + late final __objc_msgSend_624Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_621 = __objc_msgSend_621Ptr.asFunction< + late final __objc_msgSend_624 = __objc_msgSend_624Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -17466,13 +17538,13 @@ class SentryCocoa { late final _sel_unpublish1 = _registerName1("unpublish"); late final _sel_addSubscriberForFileURL_withPublishingHandler_1 = _registerName1("addSubscriberForFileURL:withPublishingHandler:"); - ffi.Pointer _objc_msgSend_622( + ffi.Pointer _objc_msgSend_625( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer<_ObjCBlock> publishingHandler, ) { - return __objc_msgSend_622( + return __objc_msgSend_625( obj, sel, url, @@ -17480,14 +17552,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_622Ptr = _lookup< + late final __objc_msgSend_625Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_622 = __objc_msgSend_622Ptr.asFunction< + late final __objc_msgSend_625 = __objc_msgSend_625Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -17499,14 +17571,14 @@ class SentryCocoa { late final _sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_1 = _registerName1( "registerDataRepresentationForTypeIdentifier:visibility:loadHandler:"); - void _objc_msgSend_623( + void _objc_msgSend_626( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, int visibility, ffi.Pointer<_ObjCBlock> loadHandler, ) { - return __objc_msgSend_623( + return __objc_msgSend_626( obj, sel, typeIdentifier, @@ -17515,7 +17587,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_623Ptr = _lookup< + late final __objc_msgSend_626Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -17523,14 +17595,14 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_623 = __objc_msgSend_623Ptr.asFunction< + late final __objc_msgSend_626 = __objc_msgSend_626Ptr.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_624( + void _objc_msgSend_627( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, @@ -17538,7 +17610,7 @@ class SentryCocoa { int visibility, ffi.Pointer<_ObjCBlock> loadHandler, ) { - return __objc_msgSend_624( + return __objc_msgSend_627( obj, sel, typeIdentifier, @@ -17548,7 +17620,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_624Ptr = _lookup< + late final __objc_msgSend_627Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -17557,7 +17629,7 @@ class SentryCocoa { ffi.Int32, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_624 = __objc_msgSend_624Ptr.asFunction< + late final __objc_msgSend_627 = __objc_msgSend_627Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer<_ObjCBlock>)>(); @@ -17565,23 +17637,23 @@ class SentryCocoa { _registerName1("registeredTypeIdentifiers"); late final _sel_registeredTypeIdentifiersWithFileOptions_1 = _registerName1("registeredTypeIdentifiersWithFileOptions:"); - ffi.Pointer _objc_msgSend_625( + ffi.Pointer _objc_msgSend_628( ffi.Pointer obj, ffi.Pointer sel, int fileOptions, ) { - return __objc_msgSend_625( + return __objc_msgSend_628( obj, sel, fileOptions, ); } - late final __objc_msgSend_625Ptr = _lookup< + late final __objc_msgSend_628Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_625 = __objc_msgSend_625Ptr.asFunction< + late final __objc_msgSend_628 = __objc_msgSend_628Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -17590,13 +17662,13 @@ class SentryCocoa { late final _sel_hasRepresentationConformingToTypeIdentifier_fileOptions_1 = _registerName1( "hasRepresentationConformingToTypeIdentifier:fileOptions:"); - bool _objc_msgSend_626( + bool _objc_msgSend_629( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, int fileOptions, ) { - return __objc_msgSend_626( + return __objc_msgSend_629( obj, sel, typeIdentifier, @@ -17604,24 +17676,24 @@ class SentryCocoa { ); } - late final __objc_msgSend_626Ptr = _lookup< + late final __objc_msgSend_629Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_626 = __objc_msgSend_626Ptr.asFunction< + late final __objc_msgSend_629 = __objc_msgSend_629Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_loadDataRepresentationForTypeIdentifier_completionHandler_1 = _registerName1( "loadDataRepresentationForTypeIdentifier:completionHandler:"); - ffi.Pointer _objc_msgSend_627( + ffi.Pointer _objc_msgSend_630( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_627( + return __objc_msgSend_630( obj, sel, typeIdentifier, @@ -17629,14 +17701,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_627Ptr = _lookup< + late final __objc_msgSend_630Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_627 = __objc_msgSend_627Ptr.asFunction< + late final __objc_msgSend_630 = __objc_msgSend_630Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -17646,13 +17718,13 @@ class SentryCocoa { late final _sel_loadFileRepresentationForTypeIdentifier_completionHandler_1 = _registerName1( "loadFileRepresentationForTypeIdentifier:completionHandler:"); - ffi.Pointer _objc_msgSend_628( + ffi.Pointer _objc_msgSend_631( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_628( + return __objc_msgSend_631( obj, sel, typeIdentifier, @@ -17660,14 +17732,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_628Ptr = _lookup< + late final __objc_msgSend_631Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_628 = __objc_msgSend_628Ptr.asFunction< + late final __objc_msgSend_631 = __objc_msgSend_631Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -17677,13 +17749,13 @@ class SentryCocoa { late final _sel_loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_1 = _registerName1( "loadInPlaceFileRepresentationForTypeIdentifier:completionHandler:"); - ffi.Pointer _objc_msgSend_629( + ffi.Pointer _objc_msgSend_632( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_629( + return __objc_msgSend_632( obj, sel, typeIdentifier, @@ -17691,14 +17763,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_629Ptr = _lookup< + late final __objc_msgSend_632Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_629 = __objc_msgSend_629Ptr.asFunction< + late final __objc_msgSend_632 = __objc_msgSend_632Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -17709,13 +17781,13 @@ class SentryCocoa { late final _sel_setSuggestedName_1 = _registerName1("setSuggestedName:"); late final _sel_registerObject_visibility_1 = _registerName1("registerObject:visibility:"); - void _objc_msgSend_630( + void _objc_msgSend_633( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer object, int visibility, ) { - return __objc_msgSend_630( + return __objc_msgSend_633( obj, sel, object, @@ -17723,24 +17795,24 @@ class SentryCocoa { ); } - late final __objc_msgSend_630Ptr = _lookup< + late final __objc_msgSend_633Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_630 = __objc_msgSend_630Ptr.asFunction< + late final __objc_msgSend_633 = __objc_msgSend_633Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_registerObjectOfClass_visibility_loadHandler_1 = _registerName1("registerObjectOfClass:visibility:loadHandler:"); - void _objc_msgSend_631( + void _objc_msgSend_634( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, int visibility, ffi.Pointer<_ObjCBlock> loadHandler, ) { - return __objc_msgSend_631( + return __objc_msgSend_634( obj, sel, aClass, @@ -17749,7 +17821,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_631Ptr = _lookup< + late final __objc_msgSend_634Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -17757,7 +17829,7 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_631 = __objc_msgSend_631Ptr.asFunction< + late final __objc_msgSend_634 = __objc_msgSend_634Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); @@ -17765,13 +17837,13 @@ class SentryCocoa { _registerName1("canLoadObjectOfClass:"); late final _sel_loadObjectOfClass_completionHandler_1 = _registerName1("loadObjectOfClass:completionHandler:"); - ffi.Pointer _objc_msgSend_632( + ffi.Pointer _objc_msgSend_635( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_632( + return __objc_msgSend_635( obj, sel, aClass, @@ -17779,14 +17851,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_632Ptr = _lookup< + late final __objc_msgSend_635Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_632 = __objc_msgSend_632Ptr.asFunction< + late final __objc_msgSend_635 = __objc_msgSend_635Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -17797,13 +17869,13 @@ class SentryCocoa { _registerName1("initWithItem:typeIdentifier:"); late final _sel_registerItemForTypeIdentifier_loadHandler_1 = _registerName1("registerItemForTypeIdentifier:loadHandler:"); - void _objc_msgSend_633( + void _objc_msgSend_636( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, ffi.Pointer<_ObjCBlock> loadHandler, ) { - return __objc_msgSend_633( + return __objc_msgSend_636( obj, sel, typeIdentifier, @@ -17811,27 +17883,27 @@ class SentryCocoa { ); } - late final __objc_msgSend_633Ptr = _lookup< + late final __objc_msgSend_636Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_633 = __objc_msgSend_633Ptr.asFunction< + late final __objc_msgSend_636 = __objc_msgSend_636Ptr.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_634( + void _objc_msgSend_637( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, ffi.Pointer options, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_634( + return __objc_msgSend_637( obj, sel, typeIdentifier, @@ -17840,7 +17912,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_634Ptr = _lookup< + late final __objc_msgSend_637Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -17848,7 +17920,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_634 = __objc_msgSend_634Ptr.asFunction< + late final __objc_msgSend_637 = __objc_msgSend_637Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -17857,55 +17929,55 @@ class SentryCocoa { ffi.Pointer<_ObjCBlock>)>(); late final _sel_previewImageHandler1 = _registerName1("previewImageHandler"); - ffi.Pointer<_ObjCBlock> _objc_msgSend_635( + ffi.Pointer<_ObjCBlock> _objc_msgSend_638( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_635( + return __objc_msgSend_638( obj, sel, ); } - late final __objc_msgSend_635Ptr = _lookup< + late final __objc_msgSend_638Ptr = _lookup< ffi.NativeFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_635 = __objc_msgSend_635Ptr.asFunction< + late final __objc_msgSend_638 = __objc_msgSend_638Ptr.asFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setPreviewImageHandler_1 = _registerName1("setPreviewImageHandler:"); - void _objc_msgSend_636( + void _objc_msgSend_639( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> value, ) { - return __objc_msgSend_636( + return __objc_msgSend_639( obj, sel, value, ); } - late final __objc_msgSend_636Ptr = _lookup< + late final __objc_msgSend_639Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_636 = __objc_msgSend_636Ptr.asFunction< + late final __objc_msgSend_639 = __objc_msgSend_639Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_loadPreviewImageWithOptions_completionHandler_1 = _registerName1("loadPreviewImageWithOptions:completionHandler:"); - void _objc_msgSend_637( + void _objc_msgSend_640( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer options, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_637( + return __objc_msgSend_640( obj, sel, options, @@ -17913,27 +17985,27 @@ class SentryCocoa { ); } - late final __objc_msgSend_637Ptr = _lookup< + late final __objc_msgSend_640Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_637 = __objc_msgSend_637Ptr.asFunction< + late final __objc_msgSend_640 = __objc_msgSend_640Ptr.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_638( + void _objc_msgSend_641( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer aString, ) { - return __objc_msgSend_638( + return __objc_msgSend_641( obj, sel, range, @@ -17941,23 +18013,23 @@ class SentryCocoa { ); } - late final __objc_msgSend_638Ptr = _lookup< + late final __objc_msgSend_641Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_638 = __objc_msgSend_638Ptr.asFunction< + late final __objc_msgSend_641 = __objc_msgSend_641Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_insertString_atIndex_1 = _registerName1("insertString:atIndex:"); - void _objc_msgSend_639( + void _objc_msgSend_642( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aString, int loc, ) { - return __objc_msgSend_639( + return __objc_msgSend_642( obj, sel, aString, @@ -17965,11 +18037,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_639Ptr = _lookup< + late final __objc_msgSend_642Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_639 = __objc_msgSend_639Ptr.asFunction< + late final __objc_msgSend_642 = __objc_msgSend_642Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -17980,7 +18052,7 @@ class SentryCocoa { late final _sel_setString_1 = _registerName1("setString:"); late final _sel_replaceOccurrencesOfString_withString_options_range_1 = _registerName1("replaceOccurrencesOfString:withString:options:range:"); - int _objc_msgSend_640( + int _objc_msgSend_643( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer target, @@ -17988,7 +18060,7 @@ class SentryCocoa { int options, _NSRange searchRange, ) { - return __objc_msgSend_640( + return __objc_msgSend_643( obj, sel, target, @@ -17998,7 +18070,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_640Ptr = _lookup< + late final __objc_msgSend_643Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedLong Function( ffi.Pointer, @@ -18007,13 +18079,13 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_640 = __objc_msgSend_640Ptr.asFunction< + late final __objc_msgSend_643 = __objc_msgSend_643Ptr.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_641( + bool _objc_msgSend_644( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer transform, @@ -18021,7 +18093,7 @@ class SentryCocoa { _NSRange range, ffi.Pointer<_NSRange> resultingRange, ) { - return __objc_msgSend_641( + return __objc_msgSend_644( obj, sel, transform, @@ -18031,7 +18103,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_641Ptr = _lookup< + late final __objc_msgSend_644Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -18040,27 +18112,27 @@ class SentryCocoa { ffi.Bool, _NSRange, ffi.Pointer<_NSRange>)>>('objc_msgSend'); - late final __objc_msgSend_641 = __objc_msgSend_641Ptr.asFunction< + late final __objc_msgSend_644 = __objc_msgSend_644Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool, _NSRange, ffi.Pointer<_NSRange>)>(); - ffi.Pointer _objc_msgSend_642( + ffi.Pointer _objc_msgSend_645( ffi.Pointer obj, ffi.Pointer sel, int capacity, ) { - return __objc_msgSend_642( + return __objc_msgSend_645( obj, sel, capacity, ); } - late final __objc_msgSend_642Ptr = _lookup< + late final __objc_msgSend_645Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_642 = __objc_msgSend_642Ptr.asFunction< + late final __objc_msgSend_645 = __objc_msgSend_645Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -18069,14 +18141,14 @@ class SentryCocoa { late final _sel_object1 = _registerName1("object"); late final _sel_initWithName_object_userInfo_1 = _registerName1("initWithName:object:userInfo:"); - instancetype _objc_msgSend_643( + instancetype _objc_msgSend_646( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer object, ffi.Pointer userInfo, ) { - return __objc_msgSend_643( + return __objc_msgSend_646( obj, sel, name, @@ -18085,7 +18157,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_643Ptr = _lookup< + late final __objc_msgSend_646Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -18093,7 +18165,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_643 = __objc_msgSend_643Ptr.asFunction< + late final __objc_msgSend_646 = __objc_msgSend_646Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -18107,21 +18179,21 @@ class SentryCocoa { _registerName1("notificationWithName:object:userInfo:"); late final _class_NSBundle1 = _getClass1("NSBundle"); late final _sel_mainBundle1 = _registerName1("mainBundle"); - ffi.Pointer _objc_msgSend_644( + ffi.Pointer _objc_msgSend_647( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_644( + return __objc_msgSend_647( obj, sel, ); } - late final __objc_msgSend_644Ptr = _lookup< + late final __objc_msgSend_647Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_644 = __objc_msgSend_644Ptr.asFunction< + late final __objc_msgSend_647 = __objc_msgSend_647Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -18130,45 +18202,45 @@ class SentryCocoa { 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_645( + ffi.Pointer _objc_msgSend_648( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, ) { - return __objc_msgSend_645( + return __objc_msgSend_648( obj, sel, aClass, ); } - late final __objc_msgSend_645Ptr = _lookup< + late final __objc_msgSend_648Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_645 = __objc_msgSend_645Ptr.asFunction< + late final __objc_msgSend_648 = __objc_msgSend_648Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_bundleWithIdentifier_1 = _registerName1("bundleWithIdentifier:"); - ffi.Pointer _objc_msgSend_646( + ffi.Pointer _objc_msgSend_649( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer identifier, ) { - return __objc_msgSend_646( + return __objc_msgSend_649( obj, sel, identifier, ); } - late final __objc_msgSend_646Ptr = _lookup< + late final __objc_msgSend_649Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_646 = __objc_msgSend_646Ptr.asFunction< + late final __objc_msgSend_649 = __objc_msgSend_649Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -18204,7 +18276,7 @@ class SentryCocoa { late final _sel_URLForResource_withExtension_subdirectory_inBundleWithURL_1 = _registerName1( "URLForResource:withExtension:subdirectory:inBundleWithURL:"); - ffi.Pointer _objc_msgSend_647( + ffi.Pointer _objc_msgSend_650( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, @@ -18212,7 +18284,7 @@ class SentryCocoa { ffi.Pointer subpath, ffi.Pointer bundleURL, ) { - return __objc_msgSend_647( + return __objc_msgSend_650( obj, sel, name, @@ -18222,7 +18294,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_647Ptr = _lookup< + late final __objc_msgSend_650Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -18231,7 +18303,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_647 = __objc_msgSend_647Ptr.asFunction< + late final __objc_msgSend_650 = __objc_msgSend_650Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -18243,14 +18315,14 @@ class SentryCocoa { late final _sel_URLsForResourcesWithExtension_subdirectory_inBundleWithURL_1 = _registerName1( "URLsForResourcesWithExtension:subdirectory:inBundleWithURL:"); - ffi.Pointer _objc_msgSend_648( + ffi.Pointer _objc_msgSend_651( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer ext, ffi.Pointer subpath, ffi.Pointer bundleURL, ) { - return __objc_msgSend_648( + return __objc_msgSend_651( obj, sel, ext, @@ -18259,7 +18331,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_648Ptr = _lookup< + late final __objc_msgSend_651Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -18267,7 +18339,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_648 = __objc_msgSend_648Ptr.asFunction< + late final __objc_msgSend_651 = __objc_msgSend_651Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -18277,13 +18349,13 @@ class SentryCocoa { late final _sel_URLForResource_withExtension_1 = _registerName1("URLForResource:withExtension:"); - ffi.Pointer _objc_msgSend_649( + ffi.Pointer _objc_msgSend_652( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer ext, ) { - return __objc_msgSend_649( + return __objc_msgSend_652( obj, sel, name, @@ -18291,14 +18363,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_649Ptr = _lookup< + late final __objc_msgSend_652Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_649 = __objc_msgSend_649Ptr.asFunction< + late final __objc_msgSend_652 = __objc_msgSend_652Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -18307,14 +18379,14 @@ class SentryCocoa { late final _sel_URLForResource_withExtension_subdirectory_1 = _registerName1("URLForResource:withExtension:subdirectory:"); - ffi.Pointer _objc_msgSend_650( + ffi.Pointer _objc_msgSend_653( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer ext, ffi.Pointer subpath, ) { - return __objc_msgSend_650( + return __objc_msgSend_653( obj, sel, name, @@ -18323,7 +18395,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_650Ptr = _lookup< + late final __objc_msgSend_653Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -18331,7 +18403,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_650 = __objc_msgSend_650Ptr.asFunction< + late final __objc_msgSend_653 = __objc_msgSend_653Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -18341,7 +18413,7 @@ class SentryCocoa { late final _sel_URLForResource_withExtension_subdirectory_localization_1 = _registerName1("URLForResource:withExtension:subdirectory:localization:"); - ffi.Pointer _objc_msgSend_651( + ffi.Pointer _objc_msgSend_654( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, @@ -18349,7 +18421,7 @@ class SentryCocoa { ffi.Pointer subpath, ffi.Pointer localizationName, ) { - return __objc_msgSend_651( + return __objc_msgSend_654( obj, sel, name, @@ -18359,7 +18431,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_651Ptr = _lookup< + late final __objc_msgSend_654Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -18368,7 +18440,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_651 = __objc_msgSend_651Ptr.asFunction< + late final __objc_msgSend_654 = __objc_msgSend_654Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -18379,13 +18451,13 @@ class SentryCocoa { late final _sel_URLsForResourcesWithExtension_subdirectory_1 = _registerName1("URLsForResourcesWithExtension:subdirectory:"); - ffi.Pointer _objc_msgSend_652( + ffi.Pointer _objc_msgSend_655( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer ext, ffi.Pointer subpath, ) { - return __objc_msgSend_652( + return __objc_msgSend_655( obj, sel, ext, @@ -18393,14 +18465,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_652Ptr = _lookup< + late final __objc_msgSend_655Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_652 = __objc_msgSend_652Ptr.asFunction< + late final __objc_msgSend_655 = __objc_msgSend_655Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -18410,14 +18482,14 @@ class SentryCocoa { late final _sel_URLsForResourcesWithExtension_subdirectory_localization_1 = _registerName1( "URLsForResourcesWithExtension:subdirectory:localization:"); - ffi.Pointer _objc_msgSend_653( + ffi.Pointer _objc_msgSend_656( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer ext, ffi.Pointer subpath, ffi.Pointer localizationName, ) { - return __objc_msgSend_653( + return __objc_msgSend_656( obj, sel, ext, @@ -18426,7 +18498,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_653Ptr = _lookup< + late final __objc_msgSend_656Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -18434,7 +18506,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_653 = __objc_msgSend_653Ptr.asFunction< + late final __objc_msgSend_656 = __objc_msgSend_656Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -18444,14 +18516,14 @@ class SentryCocoa { late final _sel_pathForResource_ofType_inDirectory_1 = _registerName1("pathForResource:ofType:inDirectory:"); - ffi.Pointer _objc_msgSend_654( + ffi.Pointer _objc_msgSend_657( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer ext, ffi.Pointer bundlePath, ) { - return __objc_msgSend_654( + return __objc_msgSend_657( obj, sel, name, @@ -18460,7 +18532,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_654Ptr = _lookup< + late final __objc_msgSend_657Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -18468,7 +18540,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_654 = __objc_msgSend_654Ptr.asFunction< + late final __objc_msgSend_657 = __objc_msgSend_657Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -18482,7 +18554,7 @@ class SentryCocoa { _registerName1("pathForResource:ofType:"); late final _sel_pathForResource_ofType_inDirectory_forLocalization_1 = _registerName1("pathForResource:ofType:inDirectory:forLocalization:"); - ffi.Pointer _objc_msgSend_655( + ffi.Pointer _objc_msgSend_658( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, @@ -18490,7 +18562,7 @@ class SentryCocoa { ffi.Pointer subpath, ffi.Pointer localizationName, ) { - return __objc_msgSend_655( + return __objc_msgSend_658( obj, sel, name, @@ -18500,7 +18572,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_655Ptr = _lookup< + late final __objc_msgSend_658Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -18509,7 +18581,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_655 = __objc_msgSend_655Ptr.asFunction< + late final __objc_msgSend_658 = __objc_msgSend_658Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -18525,13 +18597,13 @@ class SentryCocoa { late final _class_NSAttributedString1 = _getClass1("NSAttributedString"); late final _sel_attributesAtIndex_effectiveRange_1 = _registerName1("attributesAtIndex:effectiveRange:"); - ffi.Pointer _objc_msgSend_656( + ffi.Pointer _objc_msgSend_659( ffi.Pointer obj, ffi.Pointer sel, int location, ffi.Pointer<_NSRange> range, ) { - return __objc_msgSend_656( + return __objc_msgSend_659( obj, sel, location, @@ -18539,27 +18611,27 @@ class SentryCocoa { ); } - late final __objc_msgSend_656Ptr = _lookup< + late final __objc_msgSend_659Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.UnsignedLong, ffi.Pointer<_NSRange>)>>('objc_msgSend'); - late final __objc_msgSend_656 = __objc_msgSend_656Ptr.asFunction< + late final __objc_msgSend_659 = __objc_msgSend_659Ptr.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_657( + ffi.Pointer _objc_msgSend_660( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attrName, int location, ffi.Pointer<_NSRange> range, ) { - return __objc_msgSend_657( + return __objc_msgSend_660( obj, sel, attrName, @@ -18568,7 +18640,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_657Ptr = _lookup< + late final __objc_msgSend_660Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -18576,7 +18648,7 @@ class SentryCocoa { ffi.Pointer, ffi.UnsignedLong, ffi.Pointer<_NSRange>)>>('objc_msgSend'); - late final __objc_msgSend_657 = __objc_msgSend_657Ptr.asFunction< + late final __objc_msgSend_660 = __objc_msgSend_660Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -18586,36 +18658,36 @@ class SentryCocoa { late final _sel_attributedSubstringFromRange_1 = _registerName1("attributedSubstringFromRange:"); - ffi.Pointer _objc_msgSend_658( + ffi.Pointer _objc_msgSend_661( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ) { - return __objc_msgSend_658( + return __objc_msgSend_661( obj, sel, range, ); } - late final __objc_msgSend_658Ptr = _lookup< + late final __objc_msgSend_661Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_658 = __objc_msgSend_658Ptr.asFunction< + late final __objc_msgSend_661 = __objc_msgSend_661Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_attributesAtIndex_longestEffectiveRange_inRange_1 = _registerName1("attributesAtIndex:longestEffectiveRange:inRange:"); - ffi.Pointer _objc_msgSend_659( + ffi.Pointer _objc_msgSend_662( ffi.Pointer obj, ffi.Pointer sel, int location, ffi.Pointer<_NSRange> range, _NSRange rangeLimit, ) { - return __objc_msgSend_659( + return __objc_msgSend_662( obj, sel, location, @@ -18624,7 +18696,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_659Ptr = _lookup< + late final __objc_msgSend_662Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -18632,13 +18704,13 @@ class SentryCocoa { ffi.UnsignedLong, ffi.Pointer<_NSRange>, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_659 = __objc_msgSend_659Ptr.asFunction< + late final __objc_msgSend_662 = __objc_msgSend_662Ptr.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_660( + ffi.Pointer _objc_msgSend_663( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attrName, @@ -18646,7 +18718,7 @@ class SentryCocoa { ffi.Pointer<_NSRange> range, _NSRange rangeLimit, ) { - return __objc_msgSend_660( + return __objc_msgSend_663( obj, sel, attrName, @@ -18656,7 +18728,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_660Ptr = _lookup< + late final __objc_msgSend_663Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -18665,7 +18737,7 @@ class SentryCocoa { ffi.UnsignedLong, ffi.Pointer<_NSRange>, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_660 = __objc_msgSend_660Ptr.asFunction< + late final __objc_msgSend_663 = __objc_msgSend_663Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -18676,23 +18748,23 @@ class SentryCocoa { late final _sel_isEqualToAttributedString_1 = _registerName1("isEqualToAttributedString:"); - bool _objc_msgSend_661( + bool _objc_msgSend_664( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_661( + return __objc_msgSend_664( obj, sel, other, ); } - late final __objc_msgSend_661Ptr = _lookup< + late final __objc_msgSend_664Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_661 = __objc_msgSend_661Ptr.asFunction< + late final __objc_msgSend_664 = __objc_msgSend_664Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -18700,36 +18772,36 @@ class SentryCocoa { _registerName1("initWithString:attributes:"); late final _sel_initWithAttributedString_1 = _registerName1("initWithAttributedString:"); - instancetype _objc_msgSend_662( + instancetype _objc_msgSend_665( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attrStr, ) { - return __objc_msgSend_662( + return __objc_msgSend_665( obj, sel, attrStr, ); } - late final __objc_msgSend_662Ptr = _lookup< + late final __objc_msgSend_665Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_662 = __objc_msgSend_662Ptr.asFunction< + late final __objc_msgSend_665 = __objc_msgSend_665Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_enumerateAttributesInRange_options_usingBlock_1 = _registerName1("enumerateAttributesInRange:options:usingBlock:"); - void _objc_msgSend_663( + void _objc_msgSend_666( ffi.Pointer obj, ffi.Pointer sel, _NSRange enumerationRange, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_663( + return __objc_msgSend_666( obj, sel, enumerationRange, @@ -18738,17 +18810,17 @@ class SentryCocoa { ); } - late final __objc_msgSend_663Ptr = _lookup< + late final __objc_msgSend_666Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_663 = __objc_msgSend_663Ptr.asFunction< + late final __objc_msgSend_666 = __objc_msgSend_666Ptr.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_664( + void _objc_msgSend_667( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attrName, @@ -18756,7 +18828,7 @@ class SentryCocoa { int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_664( + return __objc_msgSend_667( obj, sel, attrName, @@ -18766,7 +18838,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_664Ptr = _lookup< + late final __objc_msgSend_667Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -18775,7 +18847,7 @@ class SentryCocoa { _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_664 = __objc_msgSend_664Ptr.asFunction< + late final __objc_msgSend_667 = __objc_msgSend_667Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange, int, ffi.Pointer<_ObjCBlock>)>(); @@ -18786,80 +18858,80 @@ class SentryCocoa { late final _sel_setAllowsExtendedAttributes_1 = _registerName1("setAllowsExtendedAttributes:"); late final _sel_interpretedSyntax1 = _registerName1("interpretedSyntax"); - int _objc_msgSend_665( + int _objc_msgSend_668( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_665( + return __objc_msgSend_668( obj, sel, ); } - late final __objc_msgSend_665Ptr = _lookup< + late final __objc_msgSend_668Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_665 = __objc_msgSend_665Ptr.asFunction< + late final __objc_msgSend_668 = __objc_msgSend_668Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setInterpretedSyntax_1 = _registerName1("setInterpretedSyntax:"); - void _objc_msgSend_666( + void _objc_msgSend_669( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_666( + return __objc_msgSend_669( obj, sel, value, ); } - late final __objc_msgSend_666Ptr = _lookup< + late final __objc_msgSend_669Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_666 = __objc_msgSend_666Ptr.asFunction< + late final __objc_msgSend_669 = __objc_msgSend_669Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_failurePolicy1 = _registerName1("failurePolicy"); - int _objc_msgSend_667( + int _objc_msgSend_670( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_667( + return __objc_msgSend_670( obj, sel, ); } - late final __objc_msgSend_667Ptr = _lookup< + late final __objc_msgSend_670Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_667 = __objc_msgSend_667Ptr.asFunction< + late final __objc_msgSend_670 = __objc_msgSend_670Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setFailurePolicy_1 = _registerName1("setFailurePolicy:"); - void _objc_msgSend_668( + void _objc_msgSend_671( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_668( + return __objc_msgSend_671( obj, sel, value, ); } - late final __objc_msgSend_668Ptr = _lookup< + late final __objc_msgSend_671Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_668 = __objc_msgSend_668Ptr.asFunction< + late final __objc_msgSend_671 = __objc_msgSend_671Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setLanguageCode_1 = _registerName1("setLanguageCode:"); @@ -18870,7 +18942,7 @@ class SentryCocoa { late final _sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_1 = _registerName1( "initWithContentsOfMarkdownFileAtURL:options:baseURL:error:"); - instancetype _objc_msgSend_669( + instancetype _objc_msgSend_672( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer markdownFile, @@ -18878,7 +18950,7 @@ class SentryCocoa { ffi.Pointer baseURL, ffi.Pointer> error, ) { - return __objc_msgSend_669( + return __objc_msgSend_672( obj, sel, markdownFile, @@ -18888,7 +18960,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_669Ptr = _lookup< + late final __objc_msgSend_672Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -18897,7 +18969,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_669 = __objc_msgSend_669Ptr.asFunction< + late final __objc_msgSend_672 = __objc_msgSend_672Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -18908,7 +18980,7 @@ class SentryCocoa { late final _sel_initWithMarkdown_options_baseURL_error_1 = _registerName1("initWithMarkdown:options:baseURL:error:"); - instancetype _objc_msgSend_670( + instancetype _objc_msgSend_673( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer markdown, @@ -18916,7 +18988,7 @@ class SentryCocoa { ffi.Pointer baseURL, ffi.Pointer> error, ) { - return __objc_msgSend_670( + return __objc_msgSend_673( obj, sel, markdown, @@ -18926,7 +18998,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_670Ptr = _lookup< + late final __objc_msgSend_673Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -18935,7 +19007,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_670 = __objc_msgSend_670Ptr.asFunction< + late final __objc_msgSend_673 = __objc_msgSend_673Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -18946,7 +19018,7 @@ class SentryCocoa { late final _sel_initWithMarkdownString_options_baseURL_error_1 = _registerName1("initWithMarkdownString:options:baseURL:error:"); - instancetype _objc_msgSend_671( + instancetype _objc_msgSend_674( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer markdownString, @@ -18954,7 +19026,7 @@ class SentryCocoa { ffi.Pointer baseURL, ffi.Pointer> error, ) { - return __objc_msgSend_671( + return __objc_msgSend_674( obj, sel, markdownString, @@ -18964,7 +19036,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_671Ptr = _lookup< + late final __objc_msgSend_674Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -18973,7 +19045,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_671 = __objc_msgSend_671Ptr.asFunction< + late final __objc_msgSend_674 = __objc_msgSend_674Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -18984,14 +19056,14 @@ class SentryCocoa { late final _sel_initWithFormat_options_locale_1 = _registerName1("initWithFormat:options:locale:"); - instancetype _objc_msgSend_672( + instancetype _objc_msgSend_675( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, int options, ffi.Pointer locale, ) { - return __objc_msgSend_672( + return __objc_msgSend_675( obj, sel, format, @@ -19000,7 +19072,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_672Ptr = _lookup< + late final __objc_msgSend_675Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -19008,13 +19080,13 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_672 = __objc_msgSend_672Ptr.asFunction< + late final __objc_msgSend_675 = __objc_msgSend_675Ptr.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_673( + instancetype _objc_msgSend_676( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, @@ -19022,7 +19094,7 @@ class SentryCocoa { ffi.Pointer locale, ffi.Pointer<__va_list_tag> arguments, ) { - return __objc_msgSend_673( + return __objc_msgSend_676( obj, sel, format, @@ -19032,7 +19104,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_673Ptr = _lookup< + late final __objc_msgSend_676Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -19041,7 +19113,7 @@ class SentryCocoa { ffi.Int32, ffi.Pointer, ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); - late final __objc_msgSend_673 = __objc_msgSend_673Ptr.asFunction< + late final __objc_msgSend_676 = __objc_msgSend_676Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -19054,13 +19126,13 @@ class SentryCocoa { _registerName1("localizedAttributedStringWithFormat:"); late final _sel_localizedAttributedStringWithFormat_options_1 = _registerName1("localizedAttributedStringWithFormat:options:"); - instancetype _objc_msgSend_674( + instancetype _objc_msgSend_677( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, int options, ) { - return __objc_msgSend_674( + return __objc_msgSend_677( obj, sel, format, @@ -19068,17 +19140,17 @@ class SentryCocoa { ); } - late final __objc_msgSend_674Ptr = _lookup< + late final __objc_msgSend_677Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_674 = __objc_msgSend_674Ptr.asFunction< + late final __objc_msgSend_677 = __objc_msgSend_677Ptr.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_675( + instancetype _objc_msgSend_678( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, @@ -19086,7 +19158,7 @@ class SentryCocoa { ffi.Pointer locale, ffi.Pointer context, ) { - return __objc_msgSend_675( + return __objc_msgSend_678( obj, sel, format, @@ -19096,7 +19168,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_675Ptr = _lookup< + late final __objc_msgSend_678Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -19105,7 +19177,7 @@ class SentryCocoa { ffi.Int32, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_675 = __objc_msgSend_675Ptr.asFunction< + late final __objc_msgSend_678 = __objc_msgSend_678Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -19116,7 +19188,7 @@ class SentryCocoa { late final _sel_initWithFormat_options_locale_context_arguments_1 = _registerName1("initWithFormat:options:locale:context:arguments:"); - instancetype _objc_msgSend_676( + instancetype _objc_msgSend_679( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, @@ -19125,7 +19197,7 @@ class SentryCocoa { ffi.Pointer context, ffi.Pointer<__va_list_tag> arguments, ) { - return __objc_msgSend_676( + return __objc_msgSend_679( obj, sel, format, @@ -19136,7 +19208,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_676Ptr = _lookup< + late final __objc_msgSend_679Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -19146,7 +19218,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); - late final __objc_msgSend_676 = __objc_msgSend_676Ptr.asFunction< + late final __objc_msgSend_679 = __objc_msgSend_679Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -19158,13 +19230,13 @@ class SentryCocoa { late final _sel_localizedAttributedStringWithFormat_context_1 = _registerName1("localizedAttributedStringWithFormat:context:"); - instancetype _objc_msgSend_677( + instancetype _objc_msgSend_680( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, ffi.Pointer context, ) { - return __objc_msgSend_677( + return __objc_msgSend_680( obj, sel, format, @@ -19172,27 +19244,27 @@ class SentryCocoa { ); } - late final __objc_msgSend_677Ptr = _lookup< + late final __objc_msgSend_680Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_677 = __objc_msgSend_677Ptr.asFunction< + late final __objc_msgSend_680 = __objc_msgSend_680Ptr.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_678( + instancetype _objc_msgSend_681( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, int options, ffi.Pointer context, ) { - return __objc_msgSend_678( + return __objc_msgSend_681( obj, sel, format, @@ -19201,7 +19273,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_678Ptr = _lookup< + late final __objc_msgSend_681Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -19209,40 +19281,40 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_678 = __objc_msgSend_678Ptr.asFunction< + late final __objc_msgSend_681 = __objc_msgSend_681Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_attributedStringByInflectingString1 = _registerName1("attributedStringByInflectingString"); - ffi.Pointer _objc_msgSend_679( + ffi.Pointer _objc_msgSend_682( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_679( + return __objc_msgSend_682( obj, sel, ); } - late final __objc_msgSend_679Ptr = _lookup< + late final __objc_msgSend_682Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_679 = __objc_msgSend_679Ptr.asFunction< + late final __objc_msgSend_682 = __objc_msgSend_682Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_localizedAttributedStringForKey_value_table_1 = _registerName1("localizedAttributedStringForKey:value:table:"); - ffi.Pointer _objc_msgSend_680( + ffi.Pointer _objc_msgSend_683( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ffi.Pointer value, ffi.Pointer tableName, ) { - return __objc_msgSend_680( + return __objc_msgSend_683( obj, sel, key, @@ -19251,7 +19323,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_680Ptr = _lookup< + late final __objc_msgSend_683Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -19259,7 +19331,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_680 = __objc_msgSend_680Ptr.asFunction< + late final __objc_msgSend_683 = __objc_msgSend_683Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -19267,6 +19339,44 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer)>(); + late final _sel_localizedStringForKey_value_table_localizations_1 = + _registerName1("localizedStringForKey:value:table:localizations:"); + ffi.Pointer _objc_msgSend_684( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer key, + ffi.Pointer value, + ffi.Pointer tableName, + ffi.Pointer localizations, + ) { + return __objc_msgSend_684( + obj, + sel, + key, + value, + tableName, + localizations, + ); + } + + late final __objc_msgSend_684Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_684 = __objc_msgSend_684Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + late final _sel_bundleIdentifier1 = _registerName1("bundleIdentifier"); late final _sel_infoDictionary1 = _registerName1("infoDictionary"); late final _sel_localizedInfoDictionary1 = @@ -19284,13 +19394,13 @@ class SentryCocoa { _registerName1("preferredLocalizationsFromArray:"); late final _sel_preferredLocalizationsFromArray_forPreferences_1 = _registerName1("preferredLocalizationsFromArray:forPreferences:"); - ffi.Pointer _objc_msgSend_681( + ffi.Pointer _objc_msgSend_685( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer localizationsArray, ffi.Pointer preferencesArray, ) { - return __objc_msgSend_681( + return __objc_msgSend_685( obj, sel, localizationsArray, @@ -19298,14 +19408,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_681Ptr = _lookup< + late final __objc_msgSend_685Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_681 = __objc_msgSend_681Ptr.asFunction< + late final __objc_msgSend_685 = __objc_msgSend_685Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -19316,13 +19426,13 @@ class SentryCocoa { _registerName1("executableArchitectures"); late final _sel_setPreservationPriority_forTags_1 = _registerName1("setPreservationPriority:forTags:"); - void _objc_msgSend_682( + void _objc_msgSend_686( ffi.Pointer obj, ffi.Pointer sel, double priority, ffi.Pointer tags, ) { - return __objc_msgSend_682( + return __objc_msgSend_686( obj, sel, priority, @@ -19330,11 +19440,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_682Ptr = _lookup< + late final __objc_msgSend_686Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Double, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_682 = __objc_msgSend_682Ptr.asFunction< + late final __objc_msgSend_686 = __objc_msgSend_686Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, double, ffi.Pointer)>(); @@ -19344,13 +19454,13 @@ class SentryCocoa { _getClass1("NSMutableAttributedString"); late final _sel_setAttributes_range_1 = _registerName1("setAttributes:range:"); - void _objc_msgSend_683( + void _objc_msgSend_687( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attrs, _NSRange range, ) { - return __objc_msgSend_683( + return __objc_msgSend_687( obj, sel, attrs, @@ -19358,43 +19468,43 @@ class SentryCocoa { ); } - late final __objc_msgSend_683Ptr = _lookup< + late final __objc_msgSend_687Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_683 = __objc_msgSend_683Ptr.asFunction< + late final __objc_msgSend_687 = __objc_msgSend_687Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_mutableString1 = _registerName1("mutableString"); - ffi.Pointer _objc_msgSend_684( + ffi.Pointer _objc_msgSend_688( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_684( + return __objc_msgSend_688( obj, sel, ); } - late final __objc_msgSend_684Ptr = _lookup< + late final __objc_msgSend_688Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_684 = __objc_msgSend_684Ptr.asFunction< + late final __objc_msgSend_688 = __objc_msgSend_688Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_addAttribute_value_range_1 = _registerName1("addAttribute:value:range:"); - void _objc_msgSend_685( + void _objc_msgSend_689( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer value, _NSRange range, ) { - return __objc_msgSend_685( + return __objc_msgSend_689( obj, sel, name, @@ -19403,7 +19513,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_685Ptr = _lookup< + late final __objc_msgSend_689Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -19411,7 +19521,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_685 = __objc_msgSend_685Ptr.asFunction< + late final __objc_msgSend_689 = __objc_msgSend_689Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange)>(); @@ -19419,13 +19529,13 @@ class SentryCocoa { _registerName1("addAttributes:range:"); late final _sel_removeAttribute_range_1 = _registerName1("removeAttribute:range:"); - void _objc_msgSend_686( + void _objc_msgSend_690( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, _NSRange range, ) { - return __objc_msgSend_686( + return __objc_msgSend_690( obj, sel, name, @@ -19433,23 +19543,23 @@ class SentryCocoa { ); } - late final __objc_msgSend_686Ptr = _lookup< + late final __objc_msgSend_690Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_686 = __objc_msgSend_686Ptr.asFunction< + late final __objc_msgSend_690 = __objc_msgSend_690Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_replaceCharactersInRange_withAttributedString_1 = _registerName1("replaceCharactersInRange:withAttributedString:"); - void _objc_msgSend_687( + void _objc_msgSend_691( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer attrString, ) { - return __objc_msgSend_687( + return __objc_msgSend_691( obj, sel, range, @@ -19457,23 +19567,23 @@ class SentryCocoa { ); } - late final __objc_msgSend_687Ptr = _lookup< + late final __objc_msgSend_691Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_687 = __objc_msgSend_687Ptr.asFunction< + late final __objc_msgSend_691 = __objc_msgSend_691Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_insertAttributedString_atIndex_1 = _registerName1("insertAttributedString:atIndex:"); - void _objc_msgSend_688( + void _objc_msgSend_692( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attrString, int loc, ) { - return __objc_msgSend_688( + return __objc_msgSend_692( obj, sel, attrString, @@ -19481,33 +19591,33 @@ class SentryCocoa { ); } - late final __objc_msgSend_688Ptr = _lookup< + late final __objc_msgSend_692Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_688 = __objc_msgSend_688Ptr.asFunction< + late final __objc_msgSend_692 = __objc_msgSend_692Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_appendAttributedString_1 = _registerName1("appendAttributedString:"); - void _objc_msgSend_689( + void _objc_msgSend_693( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attrString, ) { - return __objc_msgSend_689( + return __objc_msgSend_693( obj, sel, attrString, ); } - late final __objc_msgSend_689Ptr = _lookup< + late final __objc_msgSend_693Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_689 = __objc_msgSend_689Ptr.asFunction< + late final __objc_msgSend_693 = __objc_msgSend_693Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -19523,13 +19633,13 @@ class SentryCocoa { _registerName1("stringForObjectValue:"); late final _sel_attributedStringForObjectValue_withDefaultAttributes_1 = _registerName1("attributedStringForObjectValue:withDefaultAttributes:"); - ffi.Pointer _objc_msgSend_690( + ffi.Pointer _objc_msgSend_694( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer obj1, ffi.Pointer attrs, ) { - return __objc_msgSend_690( + return __objc_msgSend_694( obj, sel, obj1, @@ -19537,14 +19647,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_690Ptr = _lookup< + late final __objc_msgSend_694Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_690 = __objc_msgSend_690Ptr.asFunction< + late final __objc_msgSend_694 = __objc_msgSend_694Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -19555,14 +19665,14 @@ class SentryCocoa { _registerName1("editingStringForObjectValue:"); late final _sel_getObjectValue_forString_errorDescription_1 = _registerName1("getObjectValue:forString:errorDescription:"); - bool _objc_msgSend_691( + bool _objc_msgSend_695( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> obj1, ffi.Pointer string, ffi.Pointer> error, ) { - return __objc_msgSend_691( + return __objc_msgSend_695( obj, sel, obj1, @@ -19571,7 +19681,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_691Ptr = _lookup< + late final __objc_msgSend_695Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -19579,7 +19689,7 @@ class SentryCocoa { ffi.Pointer>, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_691 = __objc_msgSend_691Ptr.asFunction< + late final __objc_msgSend_695 = __objc_msgSend_695Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -19589,14 +19699,14 @@ class SentryCocoa { late final _sel_isPartialStringValid_newEditingString_errorDescription_1 = _registerName1("isPartialStringValid:newEditingString:errorDescription:"); - bool _objc_msgSend_692( + bool _objc_msgSend_696( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer partialString, ffi.Pointer> newString, ffi.Pointer> error, ) { - return __objc_msgSend_692( + return __objc_msgSend_696( obj, sel, partialString, @@ -19605,7 +19715,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_692Ptr = _lookup< + late final __objc_msgSend_696Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -19613,7 +19723,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_692 = __objc_msgSend_692Ptr.asFunction< + late final __objc_msgSend_696 = __objc_msgSend_696Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -19624,7 +19734,7 @@ class SentryCocoa { late final _sel_isPartialStringValid_proposedSelectedRange_originalString_originalSelectedRange_errorDescription_1 = _registerName1( "isPartialStringValid:proposedSelectedRange:originalString:originalSelectedRange:errorDescription:"); - bool _objc_msgSend_693( + bool _objc_msgSend_697( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> partialStringPtr, @@ -19633,7 +19743,7 @@ class SentryCocoa { _NSRange origSelRange, ffi.Pointer> error, ) { - return __objc_msgSend_693( + return __objc_msgSend_697( obj, sel, partialStringPtr, @@ -19644,7 +19754,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_693Ptr = _lookup< + late final __objc_msgSend_697Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -19654,7 +19764,7 @@ class SentryCocoa { ffi.Pointer, _NSRange, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_693 = __objc_msgSend_693Ptr.asFunction< + late final __objc_msgSend_697 = __objc_msgSend_697Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -19665,47 +19775,47 @@ class SentryCocoa { ffi.Pointer>)>(); late final _sel_formattingContext1 = _registerName1("formattingContext"); - int _objc_msgSend_694( + int _objc_msgSend_698( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_694( + return __objc_msgSend_698( obj, sel, ); } - late final __objc_msgSend_694Ptr = _lookup< + late final __objc_msgSend_698Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_694 = __objc_msgSend_694Ptr.asFunction< + late final __objc_msgSend_698 = __objc_msgSend_698Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setFormattingContext_1 = _registerName1("setFormattingContext:"); - void _objc_msgSend_695( + void _objc_msgSend_699( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_695( + return __objc_msgSend_699( obj, sel, value, ); } - late final __objc_msgSend_695Ptr = _lookup< + late final __objc_msgSend_699Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_695 = __objc_msgSend_695Ptr.asFunction< + late final __objc_msgSend_699 = __objc_msgSend_699Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_getObjectValue_forString_range_error_1 = _registerName1("getObjectValue:forString:range:error:"); - bool _objc_msgSend_696( + bool _objc_msgSend_700( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> obj1, @@ -19713,7 +19823,7 @@ class SentryCocoa { ffi.Pointer<_NSRange> rangep, ffi.Pointer> error, ) { - return __objc_msgSend_696( + return __objc_msgSend_700( obj, sel, obj1, @@ -19723,7 +19833,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_696Ptr = _lookup< + late final __objc_msgSend_700Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -19732,7 +19842,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer<_NSRange>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_696 = __objc_msgSend_696Ptr.asFunction< + late final __objc_msgSend_700 = __objc_msgSend_700Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -19745,14 +19855,14 @@ class SentryCocoa { late final _sel_dateFromString_1 = _registerName1("dateFromString:"); late final _sel_localizedStringFromDate_dateStyle_timeStyle_1 = _registerName1("localizedStringFromDate:dateStyle:timeStyle:"); - ffi.Pointer _objc_msgSend_697( + ffi.Pointer _objc_msgSend_701( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, int dstyle, int tstyle, ) { - return __objc_msgSend_697( + return __objc_msgSend_701( obj, sel, date, @@ -19761,7 +19871,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_697Ptr = _lookup< + late final __objc_msgSend_701Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -19769,20 +19879,20 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_697 = __objc_msgSend_697Ptr.asFunction< + late final __objc_msgSend_701 = __objc_msgSend_701Ptr.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_698( + ffi.Pointer _objc_msgSend_702( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer tmplate, int opts, ffi.Pointer locale, ) { - return __objc_msgSend_698( + return __objc_msgSend_702( obj, sel, tmplate, @@ -19791,7 +19901,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_698Ptr = _lookup< + late final __objc_msgSend_702Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -19799,7 +19909,7 @@ class SentryCocoa { ffi.Pointer, ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_698 = __objc_msgSend_698Ptr.asFunction< + late final __objc_msgSend_702 = __objc_msgSend_702Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -19809,42 +19919,42 @@ class SentryCocoa { late final _sel_defaultFormatterBehavior1 = _registerName1("defaultFormatterBehavior"); - int _objc_msgSend_699( + int _objc_msgSend_703( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_699( + return __objc_msgSend_703( obj, sel, ); } - late final __objc_msgSend_699Ptr = _lookup< + late final __objc_msgSend_703Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_699 = __objc_msgSend_699Ptr.asFunction< + late final __objc_msgSend_703 = __objc_msgSend_703Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setDefaultFormatterBehavior_1 = _registerName1("setDefaultFormatterBehavior:"); - void _objc_msgSend_700( + void _objc_msgSend_704( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_700( + return __objc_msgSend_704( obj, sel, value, ); } - late final __objc_msgSend_700Ptr = _lookup< + late final __objc_msgSend_704Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_700 = __objc_msgSend_700Ptr.asFunction< + late final __objc_msgSend_704 = __objc_msgSend_704Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setLocalizedDateFormatFromTemplate_1 = @@ -19852,64 +19962,64 @@ class SentryCocoa { late final _sel_dateFormat1 = _registerName1("dateFormat"); late final _sel_setDateFormat_1 = _registerName1("setDateFormat:"); late final _sel_dateStyle1 = _registerName1("dateStyle"); - int _objc_msgSend_701( + int _objc_msgSend_705( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_701( + return __objc_msgSend_705( obj, sel, ); } - late final __objc_msgSend_701Ptr = _lookup< + late final __objc_msgSend_705Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_701 = __objc_msgSend_701Ptr.asFunction< + late final __objc_msgSend_705 = __objc_msgSend_705Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setDateStyle_1 = _registerName1("setDateStyle:"); - void _objc_msgSend_702( + void _objc_msgSend_706( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_702( + return __objc_msgSend_706( obj, sel, value, ); } - late final __objc_msgSend_702Ptr = _lookup< + late final __objc_msgSend_706Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_702 = __objc_msgSend_702Ptr.asFunction< + late final __objc_msgSend_706 = __objc_msgSend_706Ptr.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_703( + void _objc_msgSend_707( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_703( + return __objc_msgSend_707( obj, sel, value, ); } - late final __objc_msgSend_703Ptr = _lookup< + late final __objc_msgSend_707Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_703 = __objc_msgSend_703Ptr.asFunction< + late final __objc_msgSend_707 = __objc_msgSend_707Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -19922,21 +20032,21 @@ class SentryCocoa { _registerName1("setFormatterBehavior:"); late final _class_NSCalendar1 = _getClass1("NSCalendar"); late final _sel_currentCalendar1 = _registerName1("currentCalendar"); - ffi.Pointer _objc_msgSend_704( + ffi.Pointer _objc_msgSend_708( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_704( + return __objc_msgSend_708( obj, sel, ); } - late final __objc_msgSend_704Ptr = _lookup< + late final __objc_msgSend_708Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_704 = __objc_msgSend_704Ptr.asFunction< + late final __objc_msgSend_708 = __objc_msgSend_708Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -19944,23 +20054,23 @@ class SentryCocoa { _registerName1("autoupdatingCurrentCalendar"); late final _sel_calendarWithIdentifier_1 = _registerName1("calendarWithIdentifier:"); - ffi.Pointer _objc_msgSend_705( + ffi.Pointer _objc_msgSend_709( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer calendarIdentifierConstant, ) { - return __objc_msgSend_705( + return __objc_msgSend_709( obj, sel, calendarIdentifierConstant, ); } - late final __objc_msgSend_705Ptr = _lookup< + late final __objc_msgSend_709Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_705 = __objc_msgSend_705Ptr.asFunction< + late final __objc_msgSend_709 = __objc_msgSend_709Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -20003,13 +20113,13 @@ class SentryCocoa { late final _sel_AMSymbol1 = _registerName1("AMSymbol"); late final _sel_PMSymbol1 = _registerName1("PMSymbol"); late final _sel_minimumRangeOfUnit_1 = _registerName1("minimumRangeOfUnit:"); - void _objc_msgSend_706( + void _objc_msgSend_710( ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, int unit, ) { - return __objc_msgSend_706( + return __objc_msgSend_710( stret, obj, sel, @@ -20017,18 +20127,18 @@ class SentryCocoa { ); } - late final __objc_msgSend_706Ptr = _lookup< + late final __objc_msgSend_710Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer<_NSRange>, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend_stret'); - late final __objc_msgSend_706 = __objc_msgSend_706Ptr.asFunction< + late final __objc_msgSend_710 = __objc_msgSend_710Ptr.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:"); - void _objc_msgSend_707( + void _objc_msgSend_711( ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, @@ -20036,7 +20146,7 @@ class SentryCocoa { int larger, ffi.Pointer date, ) { - return __objc_msgSend_707( + return __objc_msgSend_711( stret, obj, sel, @@ -20046,7 +20156,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_707Ptr = _lookup< + late final __objc_msgSend_711Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer<_NSRange>, @@ -20055,20 +20165,20 @@ class SentryCocoa { ffi.Int32, ffi.Int32, ffi.Pointer)>>('objc_msgSend_stret'); - late final __objc_msgSend_707 = __objc_msgSend_707Ptr.asFunction< + late final __objc_msgSend_711 = __objc_msgSend_711Ptr.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_708( + int _objc_msgSend_712( ffi.Pointer obj, ffi.Pointer sel, int smaller, int larger, ffi.Pointer date, ) { - return __objc_msgSend_708( + return __objc_msgSend_712( obj, sel, smaller, @@ -20077,7 +20187,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_708Ptr = _lookup< + late final __objc_msgSend_712Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedLong Function( ffi.Pointer, @@ -20085,13 +20195,13 @@ class SentryCocoa { ffi.Int32, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_708 = __objc_msgSend_708Ptr.asFunction< + late final __objc_msgSend_712 = __objc_msgSend_712Ptr.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_709( + bool _objc_msgSend_713( ffi.Pointer obj, ffi.Pointer sel, int unit, @@ -20099,7 +20209,7 @@ class SentryCocoa { ffi.Pointer tip, ffi.Pointer date, ) { - return __objc_msgSend_709( + return __objc_msgSend_713( obj, sel, unit, @@ -20109,7 +20219,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_709Ptr = _lookup< + late final __objc_msgSend_713Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -20118,7 +20228,7 @@ class SentryCocoa { ffi.Pointer>, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_709 = __objc_msgSend_709Ptr.asFunction< + late final __objc_msgSend_713 = __objc_msgSend_713Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -20130,23 +20240,23 @@ class SentryCocoa { late final _class_NSDateComponents1 = _getClass1("NSDateComponents"); late final _sel_calendar1 = _registerName1("calendar"); late final _sel_setCalendar_1 = _registerName1("setCalendar:"); - void _objc_msgSend_710( + void _objc_msgSend_714( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_710( + return __objc_msgSend_714( obj, sel, value, ); } - late final __objc_msgSend_710Ptr = _lookup< + late final __objc_msgSend_714Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_710 = __objc_msgSend_710Ptr.asFunction< + late final __objc_msgSend_714 = __objc_msgSend_714Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -20179,19 +20289,20 @@ class SentryCocoa { late final _sel_yearForWeekOfYear1 = _registerName1("yearForWeekOfYear"); late final _sel_setYearForWeekOfYear_1 = _registerName1("setYearForWeekOfYear:"); + late final _sel_setDayOfYear_1 = _registerName1("setDayOfYear:"); late final _sel_isLeapMonth1 = _registerName1("isLeapMonth"); late final _sel_setLeapMonth_1 = _registerName1("setLeapMonth:"); late final _sel_week1 = _registerName1("week"); late final _sel_setWeek_1 = _registerName1("setWeek:"); late final _sel_setValue_forComponent_1 = _registerName1("setValue:forComponent:"); - void _objc_msgSend_711( + void _objc_msgSend_715( ffi.Pointer obj, ffi.Pointer sel, int value, int unit, ) { - return __objc_msgSend_711( + return __objc_msgSend_715( obj, sel, value, @@ -20199,86 +20310,86 @@ class SentryCocoa { ); } - late final __objc_msgSend_711Ptr = _lookup< + late final __objc_msgSend_715Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Long, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_711 = __objc_msgSend_711Ptr.asFunction< + late final __objc_msgSend_715 = __objc_msgSend_715Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, int)>(); late final _sel_valueForComponent_1 = _registerName1("valueForComponent:"); - int _objc_msgSend_712( + int _objc_msgSend_716( ffi.Pointer obj, ffi.Pointer sel, int unit, ) { - return __objc_msgSend_712( + return __objc_msgSend_716( obj, sel, unit, ); } - late final __objc_msgSend_712Ptr = _lookup< + late final __objc_msgSend_716Ptr = _lookup< ffi.NativeFunction< ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_712 = __objc_msgSend_712Ptr.asFunction< + late final __objc_msgSend_716 = __objc_msgSend_716Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_isValidDate1 = _registerName1("isValidDate"); late final _sel_isValidDateInCalendar_1 = _registerName1("isValidDateInCalendar:"); - bool _objc_msgSend_713( + bool _objc_msgSend_717( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer calendar, ) { - return __objc_msgSend_713( + return __objc_msgSend_717( obj, sel, calendar, ); } - late final __objc_msgSend_713Ptr = _lookup< + late final __objc_msgSend_717Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_713 = __objc_msgSend_713Ptr.asFunction< + late final __objc_msgSend_717 = __objc_msgSend_717Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dateFromComponents_1 = _registerName1("dateFromComponents:"); - ffi.Pointer _objc_msgSend_714( + ffi.Pointer _objc_msgSend_718( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer comps, ) { - return __objc_msgSend_714( + return __objc_msgSend_718( obj, sel, comps, ); } - late final __objc_msgSend_714Ptr = _lookup< + late final __objc_msgSend_718Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_714 = __objc_msgSend_714Ptr.asFunction< + late final __objc_msgSend_718 = __objc_msgSend_718Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_components_fromDate_1 = _registerName1("components:fromDate:"); - ffi.Pointer _objc_msgSend_715( + ffi.Pointer _objc_msgSend_719( ffi.Pointer obj, ffi.Pointer sel, int unitFlags, ffi.Pointer date, ) { - return __objc_msgSend_715( + return __objc_msgSend_719( obj, sel, unitFlags, @@ -20286,27 +20397,27 @@ class SentryCocoa { ); } - late final __objc_msgSend_715Ptr = _lookup< + late final __objc_msgSend_719Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_715 = __objc_msgSend_715Ptr.asFunction< + late final __objc_msgSend_719 = __objc_msgSend_719Ptr.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_716( + ffi.Pointer _objc_msgSend_720( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer comps, ffi.Pointer date, int opts, ) { - return __objc_msgSend_716( + return __objc_msgSend_720( obj, sel, comps, @@ -20315,7 +20426,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_716Ptr = _lookup< + late final __objc_msgSend_720Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -20323,7 +20434,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_716 = __objc_msgSend_716Ptr.asFunction< + late final __objc_msgSend_720 = __objc_msgSend_720Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -20333,7 +20444,7 @@ class SentryCocoa { late final _sel_components_fromDate_toDate_options_1 = _registerName1("components:fromDate:toDate:options:"); - ffi.Pointer _objc_msgSend_717( + ffi.Pointer _objc_msgSend_721( ffi.Pointer obj, ffi.Pointer sel, int unitFlags, @@ -20341,7 +20452,7 @@ class SentryCocoa { ffi.Pointer resultDate, int opts, ) { - return __objc_msgSend_717( + return __objc_msgSend_721( obj, sel, unitFlags, @@ -20351,7 +20462,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_717Ptr = _lookup< + late final __objc_msgSend_721Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -20360,7 +20471,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_717 = __objc_msgSend_717Ptr.asFunction< + late final __objc_msgSend_721 = __objc_msgSend_721Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -20371,7 +20482,7 @@ class SentryCocoa { late final _sel_getEra_year_month_day_fromDate_1 = _registerName1("getEra:year:month:day:fromDate:"); - void _objc_msgSend_718( + void _objc_msgSend_722( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer eraValuePointer, @@ -20380,7 +20491,7 @@ class SentryCocoa { ffi.Pointer dayValuePointer, ffi.Pointer date, ) { - return __objc_msgSend_718( + return __objc_msgSend_722( obj, sel, eraValuePointer, @@ -20391,7 +20502,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_718Ptr = _lookup< + late final __objc_msgSend_722Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -20401,7 +20512,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_718 = __objc_msgSend_718Ptr.asFunction< + late final __objc_msgSend_722 = __objc_msgSend_722Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -20416,13 +20527,13 @@ class SentryCocoa { 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_719( + int _objc_msgSend_723( ffi.Pointer obj, ffi.Pointer sel, int unit, ffi.Pointer date, ) { - return __objc_msgSend_719( + return __objc_msgSend_723( obj, sel, unit, @@ -20430,18 +20541,18 @@ class SentryCocoa { ); } - late final __objc_msgSend_719Ptr = _lookup< + late final __objc_msgSend_723Ptr = _lookup< ffi.NativeFunction< ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_719 = __objc_msgSend_719Ptr.asFunction< + late final __objc_msgSend_723 = __objc_msgSend_723Ptr.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_720( + ffi.Pointer _objc_msgSend_724( ffi.Pointer obj, ffi.Pointer sel, int eraValue, @@ -20453,7 +20564,7 @@ class SentryCocoa { int secondValue, int nanosecondValue, ) { - return __objc_msgSend_720( + return __objc_msgSend_724( obj, sel, eraValue, @@ -20467,7 +20578,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_720Ptr = _lookup< + late final __objc_msgSend_724Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -20480,7 +20591,7 @@ class SentryCocoa { ffi.Long, ffi.Long, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_720 = __objc_msgSend_720Ptr.asFunction< + late final __objc_msgSend_724 = __objc_msgSend_724Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, int, int, int, int, int, int, int)>(); @@ -20490,13 +20601,13 @@ class SentryCocoa { late final _sel_startOfDayForDate_1 = _registerName1("startOfDayForDate:"); late final _sel_componentsInTimeZone_fromDate_1 = _registerName1("componentsInTimeZone:fromDate:"); - ffi.Pointer _objc_msgSend_721( + ffi.Pointer _objc_msgSend_725( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer timezone, ffi.Pointer date, ) { - return __objc_msgSend_721( + return __objc_msgSend_725( obj, sel, timezone, @@ -20504,14 +20615,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_721Ptr = _lookup< + late final __objc_msgSend_725Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_721 = __objc_msgSend_721Ptr.asFunction< + late final __objc_msgSend_725 = __objc_msgSend_725Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -20520,14 +20631,14 @@ class SentryCocoa { late final _sel_compareDate_toDate_toUnitGranularity_1 = _registerName1("compareDate:toDate:toUnitGranularity:"); - int _objc_msgSend_722( + int _objc_msgSend_726( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date1, ffi.Pointer date2, int unit, ) { - return __objc_msgSend_722( + return __objc_msgSend_726( obj, sel, date1, @@ -20536,7 +20647,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_722Ptr = _lookup< + late final __objc_msgSend_726Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, @@ -20544,20 +20655,20 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_722 = __objc_msgSend_722Ptr.asFunction< + late final __objc_msgSend_726 = __objc_msgSend_726Ptr.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_723( + bool _objc_msgSend_727( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date1, ffi.Pointer date2, int unit, ) { - return __objc_msgSend_723( + return __objc_msgSend_727( obj, sel, date1, @@ -20566,7 +20677,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_723Ptr = _lookup< + late final __objc_msgSend_727Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -20574,19 +20685,19 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_723 = __objc_msgSend_723Ptr.asFunction< + late final __objc_msgSend_727 = __objc_msgSend_727Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_isDate_inSameDayAsDate_1 = _registerName1("isDate:inSameDayAsDate:"); - bool _objc_msgSend_724( + bool _objc_msgSend_728( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date1, ffi.Pointer date2, ) { - return __objc_msgSend_724( + return __objc_msgSend_728( obj, sel, date1, @@ -20594,14 +20705,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_724Ptr = _lookup< + late final __objc_msgSend_728Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_724 = __objc_msgSend_724Ptr.asFunction< + late final __objc_msgSend_728 = __objc_msgSend_728Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -20611,14 +20722,14 @@ class SentryCocoa { late final _sel_isDateInWeekend_1 = _registerName1("isDateInWeekend:"); late final _sel_rangeOfWeekendStartDate_interval_containingDate_1 = _registerName1("rangeOfWeekendStartDate:interval:containingDate:"); - bool _objc_msgSend_725( + bool _objc_msgSend_729( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> datep, ffi.Pointer tip, ffi.Pointer date, ) { - return __objc_msgSend_725( + return __objc_msgSend_729( obj, sel, datep, @@ -20627,7 +20738,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_725Ptr = _lookup< + late final __objc_msgSend_729Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -20635,7 +20746,7 @@ class SentryCocoa { ffi.Pointer>, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_725 = __objc_msgSend_725Ptr.asFunction< + late final __objc_msgSend_729 = __objc_msgSend_729Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -20645,7 +20756,7 @@ class SentryCocoa { late final _sel_nextWeekendStartDate_interval_options_afterDate_1 = _registerName1("nextWeekendStartDate:interval:options:afterDate:"); - bool _objc_msgSend_726( + bool _objc_msgSend_730( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> datep, @@ -20653,7 +20764,7 @@ class SentryCocoa { int options, ffi.Pointer date, ) { - return __objc_msgSend_726( + return __objc_msgSend_730( obj, sel, datep, @@ -20663,7 +20774,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_726Ptr = _lookup< + late final __objc_msgSend_730Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -20672,7 +20783,7 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_726 = __objc_msgSend_726Ptr.asFunction< + late final __objc_msgSend_730 = __objc_msgSend_730Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -20683,7 +20794,7 @@ class SentryCocoa { late final _sel_components_fromDateComponents_toDateComponents_options_1 = _registerName1("components:fromDateComponents:toDateComponents:options:"); - ffi.Pointer _objc_msgSend_727( + ffi.Pointer _objc_msgSend_731( ffi.Pointer obj, ffi.Pointer sel, int unitFlags, @@ -20691,7 +20802,7 @@ class SentryCocoa { ffi.Pointer resultDateComp, int options, ) { - return __objc_msgSend_727( + return __objc_msgSend_731( obj, sel, unitFlags, @@ -20701,7 +20812,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_727Ptr = _lookup< + late final __objc_msgSend_731Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -20710,7 +20821,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_727 = __objc_msgSend_727Ptr.asFunction< + late final __objc_msgSend_731 = __objc_msgSend_731Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -20721,7 +20832,7 @@ class SentryCocoa { late final _sel_dateByAddingUnit_value_toDate_options_1 = _registerName1("dateByAddingUnit:value:toDate:options:"); - ffi.Pointer _objc_msgSend_728( + ffi.Pointer _objc_msgSend_732( ffi.Pointer obj, ffi.Pointer sel, int unit, @@ -20729,7 +20840,7 @@ class SentryCocoa { ffi.Pointer date, int options, ) { - return __objc_msgSend_728( + return __objc_msgSend_732( obj, sel, unit, @@ -20739,7 +20850,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_728Ptr = _lookup< + late final __objc_msgSend_732Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -20748,14 +20859,14 @@ class SentryCocoa { ffi.Long, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_728 = __objc_msgSend_728Ptr.asFunction< + late final __objc_msgSend_732 = __objc_msgSend_732Ptr.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_729( + void _objc_msgSend_733( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer start, @@ -20763,7 +20874,7 @@ class SentryCocoa { int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_729( + return __objc_msgSend_733( obj, sel, start, @@ -20773,7 +20884,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_729Ptr = _lookup< + late final __objc_msgSend_733Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -20782,7 +20893,7 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_729 = __objc_msgSend_729Ptr.asFunction< + late final __objc_msgSend_733 = __objc_msgSend_733Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -20793,14 +20904,14 @@ class SentryCocoa { late final _sel_nextDateAfterDate_matchingComponents_options_1 = _registerName1("nextDateAfterDate:matchingComponents:options:"); - ffi.Pointer _objc_msgSend_730( + ffi.Pointer _objc_msgSend_734( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, ffi.Pointer comps, int options, ) { - return __objc_msgSend_730( + return __objc_msgSend_734( obj, sel, date, @@ -20809,7 +20920,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_730Ptr = _lookup< + late final __objc_msgSend_734Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -20817,7 +20928,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_730 = __objc_msgSend_730Ptr.asFunction< + late final __objc_msgSend_734 = __objc_msgSend_734Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -20827,7 +20938,7 @@ class SentryCocoa { late final _sel_nextDateAfterDate_matchingUnit_value_options_1 = _registerName1("nextDateAfterDate:matchingUnit:value:options:"); - ffi.Pointer _objc_msgSend_731( + ffi.Pointer _objc_msgSend_735( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, @@ -20835,7 +20946,7 @@ class SentryCocoa { int value, int options, ) { - return __objc_msgSend_731( + return __objc_msgSend_735( obj, sel, date, @@ -20845,7 +20956,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_731Ptr = _lookup< + late final __objc_msgSend_735Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -20854,13 +20965,13 @@ class SentryCocoa { ffi.Int32, ffi.Long, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_731 = __objc_msgSend_731Ptr.asFunction< + late final __objc_msgSend_735 = __objc_msgSend_735Ptr.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_732( + ffi.Pointer _objc_msgSend_736( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, @@ -20869,7 +20980,7 @@ class SentryCocoa { int secondValue, int options, ) { - return __objc_msgSend_732( + return __objc_msgSend_736( obj, sel, date, @@ -20880,7 +20991,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_732Ptr = _lookup< + late final __objc_msgSend_736Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -20890,7 +21001,7 @@ class SentryCocoa { ffi.Long, ffi.Long, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_732 = __objc_msgSend_732Ptr.asFunction< + late final __objc_msgSend_736 = __objc_msgSend_736Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int, int, int)>(); @@ -20898,7 +21009,7 @@ class SentryCocoa { _registerName1("dateBySettingUnit:value:ofDate:options:"); late final _sel_dateBySettingHour_minute_second_ofDate_options_1 = _registerName1("dateBySettingHour:minute:second:ofDate:options:"); - ffi.Pointer _objc_msgSend_733( + ffi.Pointer _objc_msgSend_737( ffi.Pointer obj, ffi.Pointer sel, int h, @@ -20907,7 +21018,7 @@ class SentryCocoa { ffi.Pointer date, int opts, ) { - return __objc_msgSend_733( + return __objc_msgSend_737( obj, sel, h, @@ -20918,7 +21029,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_733Ptr = _lookup< + late final __objc_msgSend_737Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -20928,19 +21039,19 @@ class SentryCocoa { ffi.Long, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_733 = __objc_msgSend_733Ptr.asFunction< + late final __objc_msgSend_737 = __objc_msgSend_737Ptr.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_734( + bool _objc_msgSend_738( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, ffi.Pointer components, ) { - return __objc_msgSend_734( + return __objc_msgSend_738( obj, sel, date, @@ -20948,14 +21059,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_734Ptr = _lookup< + late final __objc_msgSend_738Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_734 = __objc_msgSend_734Ptr.asFunction< + late final __objc_msgSend_738 = __objc_msgSend_738Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -20967,23 +21078,23 @@ class SentryCocoa { late final _sel_defaultDate1 = _registerName1("defaultDate"); late final _sel_setDefaultDate_1 = _registerName1("setDefaultDate:"); late final _sel_setEraSymbols_1 = _registerName1("setEraSymbols:"); - void _objc_msgSend_735( + void _objc_msgSend_739( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_735( + return __objc_msgSend_739( obj, sel, value, ); } - late final __objc_msgSend_735Ptr = _lookup< + late final __objc_msgSend_739Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_735 = __objc_msgSend_735Ptr.asFunction< + late final __objc_msgSend_739 = __objc_msgSend_739Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -21032,56 +21143,56 @@ class SentryCocoa { _registerName1("allowsNaturalLanguage"); late final _class_NSNumberFormatter1 = _getClass1("NSNumberFormatter"); late final _sel_stringFromNumber_1 = _registerName1("stringFromNumber:"); - ffi.Pointer _objc_msgSend_736( + ffi.Pointer _objc_msgSend_740( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer number, ) { - return __objc_msgSend_736( + return __objc_msgSend_740( obj, sel, number, ); } - late final __objc_msgSend_736Ptr = _lookup< + late final __objc_msgSend_740Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_736 = __objc_msgSend_736Ptr.asFunction< + late final __objc_msgSend_740 = __objc_msgSend_740Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_numberFromString_1 = _registerName1("numberFromString:"); - ffi.Pointer _objc_msgSend_737( + ffi.Pointer _objc_msgSend_741( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, ) { - return __objc_msgSend_737( + return __objc_msgSend_741( obj, sel, string, ); } - late final __objc_msgSend_737Ptr = _lookup< + late final __objc_msgSend_741Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_737 = __objc_msgSend_737Ptr.asFunction< + late final __objc_msgSend_741 = __objc_msgSend_741Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_localizedStringFromNumber_numberStyle_1 = _registerName1("localizedStringFromNumber:numberStyle:"); - ffi.Pointer _objc_msgSend_738( + ffi.Pointer _objc_msgSend_742( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer num, int nstyle, ) { - return __objc_msgSend_738( + return __objc_msgSend_742( obj, sel, num, @@ -21089,112 +21200,116 @@ class SentryCocoa { ); } - late final __objc_msgSend_738Ptr = _lookup< + late final __objc_msgSend_742Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_738 = __objc_msgSend_738Ptr.asFunction< + late final __objc_msgSend_742 = __objc_msgSend_742Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); - int _objc_msgSend_739( + int _objc_msgSend_743( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_739( + return __objc_msgSend_743( obj, sel, ); } - late final __objc_msgSend_739Ptr = _lookup< + late final __objc_msgSend_743Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_739 = __objc_msgSend_739Ptr.asFunction< + late final __objc_msgSend_743 = __objc_msgSend_743Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); - void _objc_msgSend_740( + void _objc_msgSend_744( ffi.Pointer obj, ffi.Pointer sel, int behavior, ) { - return __objc_msgSend_740( + return __objc_msgSend_744( obj, sel, behavior, ); } - late final __objc_msgSend_740Ptr = _lookup< + late final __objc_msgSend_744Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_740 = __objc_msgSend_740Ptr.asFunction< + late final __objc_msgSend_744 = __objc_msgSend_744Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _sel_minimumGroupingDigits1 = + _registerName1("minimumGroupingDigits"); + late final _sel_setMinimumGroupingDigits_1 = + _registerName1("setMinimumGroupingDigits:"); late final _sel_numberStyle1 = _registerName1("numberStyle"); - int _objc_msgSend_741( + int _objc_msgSend_745( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_741( + return __objc_msgSend_745( obj, sel, ); } - late final __objc_msgSend_741Ptr = _lookup< + late final __objc_msgSend_745Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_741 = __objc_msgSend_741Ptr.asFunction< + late final __objc_msgSend_745 = __objc_msgSend_745Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setNumberStyle_1 = _registerName1("setNumberStyle:"); - void _objc_msgSend_742( + void _objc_msgSend_746( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_742( + return __objc_msgSend_746( obj, sel, value, ); } - late final __objc_msgSend_742Ptr = _lookup< + late final __objc_msgSend_746Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_742 = __objc_msgSend_742Ptr.asFunction< + late final __objc_msgSend_746 = __objc_msgSend_746Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_generatesDecimalNumbers1 = _registerName1("generatesDecimalNumbers"); late final _sel_setGeneratesDecimalNumbers_1 = _registerName1("setGeneratesDecimalNumbers:"); - void _objc_msgSend_743( + void _objc_msgSend_747( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_743( + return __objc_msgSend_747( obj, sel, value, ); } - late final __objc_msgSend_743Ptr = _lookup< + late final __objc_msgSend_747Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_743 = __objc_msgSend_743Ptr.asFunction< + late final __objc_msgSend_747 = __objc_msgSend_747Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_negativeFormat1 = _registerName1("negativeFormat"); @@ -21300,79 +21415,79 @@ class SentryCocoa { late final _sel_setPaddingCharacter_1 = _registerName1("setPaddingCharacter:"); late final _sel_paddingPosition1 = _registerName1("paddingPosition"); - int _objc_msgSend_744( + int _objc_msgSend_748( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_744( + return __objc_msgSend_748( obj, sel, ); } - late final __objc_msgSend_744Ptr = _lookup< + late final __objc_msgSend_748Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_744 = __objc_msgSend_744Ptr.asFunction< + late final __objc_msgSend_748 = __objc_msgSend_748Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setPaddingPosition_1 = _registerName1("setPaddingPosition:"); - void _objc_msgSend_745( + void _objc_msgSend_749( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_745( + return __objc_msgSend_749( obj, sel, value, ); } - late final __objc_msgSend_745Ptr = _lookup< + late final __objc_msgSend_749Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_745 = __objc_msgSend_745Ptr.asFunction< + late final __objc_msgSend_749 = __objc_msgSend_749Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_roundingMode1 = _registerName1("roundingMode"); - int _objc_msgSend_746( + int _objc_msgSend_750( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_746( + return __objc_msgSend_750( obj, sel, ); } - late final __objc_msgSend_746Ptr = _lookup< + late final __objc_msgSend_750Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_746 = __objc_msgSend_746Ptr.asFunction< + late final __objc_msgSend_750 = __objc_msgSend_750Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setRoundingMode_1 = _registerName1("setRoundingMode:"); - void _objc_msgSend_747( + void _objc_msgSend_751( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_747( + return __objc_msgSend_751( obj, sel, value, ); } - late final __objc_msgSend_747Ptr = _lookup< + late final __objc_msgSend_751Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_747 = __objc_msgSend_747Ptr.asFunction< + late final __objc_msgSend_751 = __objc_msgSend_751Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_roundingIncrement1 = _registerName1("roundingIncrement"); @@ -21433,23 +21548,23 @@ class SentryCocoa { _registerName1("attributedStringForZero"); late final _sel_setAttributedStringForZero_1 = _registerName1("setAttributedStringForZero:"); - void _objc_msgSend_748( + void _objc_msgSend_752( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_748( + return __objc_msgSend_752( obj, sel, value, ); } - late final __objc_msgSend_748Ptr = _lookup< + late final __objc_msgSend_752Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_748 = __objc_msgSend_748Ptr.asFunction< + late final __objc_msgSend_752 = __objc_msgSend_752Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -21465,28 +21580,28 @@ class SentryCocoa { _getClass1("NSDecimalNumberHandler"); late final _sel_defaultDecimalNumberHandler1 = _registerName1("defaultDecimalNumberHandler"); - ffi.Pointer _objc_msgSend_749( + ffi.Pointer _objc_msgSend_753( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_749( + return __objc_msgSend_753( obj, sel, ); } - late final __objc_msgSend_749Ptr = _lookup< + late final __objc_msgSend_753Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_749 = __objc_msgSend_749Ptr.asFunction< + late final __objc_msgSend_753 = __objc_msgSend_753Ptr.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_750( + instancetype _objc_msgSend_754( ffi.Pointer obj, ffi.Pointer sel, int roundingMode, @@ -21496,7 +21611,7 @@ class SentryCocoa { bool underflow, bool divideByZero, ) { - return __objc_msgSend_750( + return __objc_msgSend_754( obj, sel, roundingMode, @@ -21508,7 +21623,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_750Ptr = _lookup< + late final __objc_msgSend_754Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -21519,7 +21634,7 @@ class SentryCocoa { ffi.Bool, ffi.Bool, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_750 = __objc_msgSend_750Ptr.asFunction< + late final __objc_msgSend_754 = __objc_msgSend_754Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, int, int, bool, bool, bool, bool)>(); @@ -21529,23 +21644,23 @@ class SentryCocoa { late final _sel_roundingBehavior1 = _registerName1("roundingBehavior"); late final _sel_setRoundingBehavior_1 = _registerName1("setRoundingBehavior:"); - void _objc_msgSend_751( + void _objc_msgSend_755( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_751( + return __objc_msgSend_755( obj, sel, value, ); } - late final __objc_msgSend_751Ptr = _lookup< + late final __objc_msgSend_755Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_751 = __objc_msgSend_751Ptr.asFunction< + late final __objc_msgSend_755 = __objc_msgSend_755Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -21556,173 +21671,173 @@ class SentryCocoa { _registerName1("charactersToBeSkipped"); late final _sel_setCharactersToBeSkipped_1 = _registerName1("setCharactersToBeSkipped:"); - void _objc_msgSend_752( + void _objc_msgSend_756( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_752( + return __objc_msgSend_756( obj, sel, value, ); } - late final __objc_msgSend_752Ptr = _lookup< + late final __objc_msgSend_756Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_752 = __objc_msgSend_752Ptr.asFunction< + late final __objc_msgSend_756 = __objc_msgSend_756Ptr.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_753( + bool _objc_msgSend_757( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, ) { - return __objc_msgSend_753( + return __objc_msgSend_757( obj, sel, result, ); } - late final __objc_msgSend_753Ptr = _lookup< + late final __objc_msgSend_757Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_753 = __objc_msgSend_753Ptr.asFunction< + late final __objc_msgSend_757 = __objc_msgSend_757Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_scanInteger_1 = _registerName1("scanInteger:"); - bool _objc_msgSend_754( + bool _objc_msgSend_758( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, ) { - return __objc_msgSend_754( + return __objc_msgSend_758( obj, sel, result, ); } - late final __objc_msgSend_754Ptr = _lookup< + late final __objc_msgSend_758Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_754 = __objc_msgSend_754Ptr.asFunction< + late final __objc_msgSend_758 = __objc_msgSend_758Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_scanLongLong_1 = _registerName1("scanLongLong:"); - bool _objc_msgSend_755( + bool _objc_msgSend_759( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, ) { - return __objc_msgSend_755( + return __objc_msgSend_759( obj, sel, result, ); } - late final __objc_msgSend_755Ptr = _lookup< + late final __objc_msgSend_759Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_755 = __objc_msgSend_755Ptr.asFunction< + late final __objc_msgSend_759 = __objc_msgSend_759Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_scanUnsignedLongLong_1 = _registerName1("scanUnsignedLongLong:"); - bool _objc_msgSend_756( + bool _objc_msgSend_760( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, ) { - return __objc_msgSend_756( + return __objc_msgSend_760( obj, sel, result, ); } - late final __objc_msgSend_756Ptr = _lookup< + late final __objc_msgSend_760Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_756 = __objc_msgSend_756Ptr.asFunction< + late final __objc_msgSend_760 = __objc_msgSend_760Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_scanFloat_1 = _registerName1("scanFloat:"); - bool _objc_msgSend_757( + bool _objc_msgSend_761( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, ) { - return __objc_msgSend_757( + return __objc_msgSend_761( obj, sel, result, ); } - late final __objc_msgSend_757Ptr = _lookup< + late final __objc_msgSend_761Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_757 = __objc_msgSend_757Ptr.asFunction< + late final __objc_msgSend_761 = __objc_msgSend_761Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_scanDouble_1 = _registerName1("scanDouble:"); - bool _objc_msgSend_758( + bool _objc_msgSend_762( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, ) { - return __objc_msgSend_758( + return __objc_msgSend_762( obj, sel, result, ); } - late final __objc_msgSend_758Ptr = _lookup< + late final __objc_msgSend_762Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_758 = __objc_msgSend_758Ptr.asFunction< + late final __objc_msgSend_762 = __objc_msgSend_762Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_scanHexInt_1 = _registerName1("scanHexInt:"); - bool _objc_msgSend_759( + bool _objc_msgSend_763( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, ) { - return __objc_msgSend_759( + return __objc_msgSend_763( obj, sel, result, ); } - late final __objc_msgSend_759Ptr = _lookup< + late final __objc_msgSend_763Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_759 = __objc_msgSend_759Ptr.asFunction< + late final __objc_msgSend_763 = __objc_msgSend_763Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -21731,13 +21846,13 @@ class SentryCocoa { late final _sel_scanHexDouble_1 = _registerName1("scanHexDouble:"); late final _sel_scanString_intoString_1 = _registerName1("scanString:intoString:"); - bool _objc_msgSend_760( + bool _objc_msgSend_764( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, ffi.Pointer> result, ) { - return __objc_msgSend_760( + return __objc_msgSend_764( obj, sel, string, @@ -21745,26 +21860,26 @@ class SentryCocoa { ); } - late final __objc_msgSend_760Ptr = _lookup< + late final __objc_msgSend_764Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_760 = __objc_msgSend_760Ptr.asFunction< + late final __objc_msgSend_764 = __objc_msgSend_764Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); late final _sel_scanCharactersFromSet_intoString_1 = _registerName1("scanCharactersFromSet:intoString:"); - bool _objc_msgSend_761( + bool _objc_msgSend_765( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer set1, ffi.Pointer> result, ) { - return __objc_msgSend_761( + return __objc_msgSend_765( obj, sel, set1, @@ -21772,14 +21887,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_761Ptr = _lookup< + late final __objc_msgSend_765Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_761 = __objc_msgSend_761Ptr.asFunction< + late final __objc_msgSend_765 = __objc_msgSend_765Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); @@ -21792,37 +21907,37 @@ class SentryCocoa { late final _sel_localizedScannerWithString_1 = _registerName1("localizedScannerWithString:"); late final _sel_scanDecimal_1 = _registerName1("scanDecimal:"); - bool _objc_msgSend_762( + bool _objc_msgSend_766( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer dcm, ) { - return __objc_msgSend_762( + return __objc_msgSend_766( obj, sel, dcm, ); } - late final __objc_msgSend_762Ptr = _lookup< + late final __objc_msgSend_766Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_762 = __objc_msgSend_762Ptr.asFunction< + late final __objc_msgSend_766 = __objc_msgSend_766Ptr.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_763( + ffi.Pointer _objc_msgSend_767( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer reason, ffi.Pointer userInfo, ) { - return __objc_msgSend_763( + return __objc_msgSend_767( obj, sel, name, @@ -21831,7 +21946,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_763Ptr = _lookup< + late final __objc_msgSend_767Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -21839,7 +21954,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_763 = __objc_msgSend_763Ptr.asFunction< + late final __objc_msgSend_767 = __objc_msgSend_767Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -21854,14 +21969,14 @@ class SentryCocoa { late final _sel_raise_format_1 = _registerName1("raise:format:"); late final _sel_raise_format_arguments_1 = _registerName1("raise:format:arguments:"); - void _objc_msgSend_764( + void _objc_msgSend_768( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer format, ffi.Pointer<__va_list_tag> argList, ) { - return __objc_msgSend_764( + return __objc_msgSend_768( obj, sel, name, @@ -21870,7 +21985,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_764Ptr = _lookup< + late final __objc_msgSend_768Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -21878,7 +21993,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); - late final __objc_msgSend_764 = __objc_msgSend_764Ptr.asFunction< + late final __objc_msgSend_768 = __objc_msgSend_768Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -21890,13 +22005,13 @@ class SentryCocoa { late final _sel_availableData1 = _registerName1("availableData"); late final _sel_initWithFileDescriptor_closeOnDealloc_1 = _registerName1("initWithFileDescriptor:closeOnDealloc:"); - instancetype _objc_msgSend_765( + instancetype _objc_msgSend_769( ffi.Pointer obj, ffi.Pointer sel, int fd, bool closeopt, ) { - return __objc_msgSend_765( + return __objc_msgSend_769( obj, sel, fd, @@ -21904,47 +22019,47 @@ class SentryCocoa { ); } - late final __objc_msgSend_765Ptr = _lookup< + late final __objc_msgSend_769Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Int, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_765 = __objc_msgSend_765Ptr.asFunction< + late final __objc_msgSend_769 = __objc_msgSend_769Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, int, bool)>(); late final _sel_readDataToEndOfFileAndReturnError_1 = _registerName1("readDataToEndOfFileAndReturnError:"); - ffi.Pointer _objc_msgSend_766( + ffi.Pointer _objc_msgSend_770( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> error, ) { - return __objc_msgSend_766( + return __objc_msgSend_770( obj, sel, error, ); } - late final __objc_msgSend_766Ptr = _lookup< + late final __objc_msgSend_770Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_766 = __objc_msgSend_766Ptr.asFunction< + late final __objc_msgSend_770 = __objc_msgSend_770Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); late final _sel_readDataUpToLength_error_1 = _registerName1("readDataUpToLength:error:"); - ffi.Pointer _objc_msgSend_767( + ffi.Pointer _objc_msgSend_771( ffi.Pointer obj, ffi.Pointer sel, int length, ffi.Pointer> error, ) { - return __objc_msgSend_767( + return __objc_msgSend_771( obj, sel, length, @@ -21952,25 +22067,25 @@ class SentryCocoa { ); } - late final __objc_msgSend_767Ptr = _lookup< + late final __objc_msgSend_771Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.UnsignedLong, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_767 = __objc_msgSend_767Ptr.asFunction< + late final __objc_msgSend_771 = __objc_msgSend_771Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer>)>(); late final _sel_writeData_error_1 = _registerName1("writeData:error:"); - bool _objc_msgSend_768( + bool _objc_msgSend_772( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ffi.Pointer> error, ) { - return __objc_msgSend_768( + return __objc_msgSend_772( obj, sel, data, @@ -21978,25 +22093,25 @@ class SentryCocoa { ); } - late final __objc_msgSend_768Ptr = _lookup< + late final __objc_msgSend_772Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_768 = __objc_msgSend_768Ptr.asFunction< + late final __objc_msgSend_772 = __objc_msgSend_772Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); late final _sel_getOffset_error_1 = _registerName1("getOffset:error:"); - bool _objc_msgSend_769( + bool _objc_msgSend_773( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer offsetInFile, ffi.Pointer> error, ) { - return __objc_msgSend_769( + return __objc_msgSend_773( obj, sel, offsetInFile, @@ -22004,14 +22119,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_769Ptr = _lookup< + late final __objc_msgSend_773Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_769 = __objc_msgSend_769Ptr.asFunction< + late final __objc_msgSend_773 = __objc_msgSend_773Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -22021,13 +22136,13 @@ class SentryCocoa { late final _sel_seekToEndReturningOffset_error_1 = _registerName1("seekToEndReturningOffset:error:"); late final _sel_seekToOffset_error_1 = _registerName1("seekToOffset:error:"); - bool _objc_msgSend_770( + bool _objc_msgSend_774( ffi.Pointer obj, ffi.Pointer sel, int offset, ffi.Pointer> error, ) { - return __objc_msgSend_770( + return __objc_msgSend_774( obj, sel, offset, @@ -22035,14 +22150,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_770Ptr = _lookup< + late final __objc_msgSend_774Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.UnsignedLongLong, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_770 = __objc_msgSend_770Ptr.asFunction< + late final __objc_msgSend_774 = __objc_msgSend_774Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer>)>(); @@ -22054,21 +22169,21 @@ class SentryCocoa { _registerName1("closeAndReturnError:"); late final _sel_fileHandleWithStandardInput1 = _registerName1("fileHandleWithStandardInput"); - ffi.Pointer _objc_msgSend_771( + ffi.Pointer _objc_msgSend_775( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_771( + return __objc_msgSend_775( obj, sel, ); } - late final __objc_msgSend_771Ptr = _lookup< + late final __objc_msgSend_775Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_771 = __objc_msgSend_771Ptr.asFunction< + late final __objc_msgSend_775 = __objc_msgSend_775Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -22086,13 +22201,13 @@ class SentryCocoa { _registerName1("fileHandleForUpdatingAtPath:"); late final _sel_fileHandleForReadingFromURL_error_1 = _registerName1("fileHandleForReadingFromURL:error:"); - instancetype _objc_msgSend_772( + instancetype _objc_msgSend_776( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer> error, ) { - return __objc_msgSend_772( + return __objc_msgSend_776( obj, sel, url, @@ -22100,14 +22215,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_772Ptr = _lookup< + late final __objc_msgSend_776Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_772 = __objc_msgSend_772Ptr.asFunction< + late final __objc_msgSend_776 = __objc_msgSend_776Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); @@ -22132,43 +22247,43 @@ class SentryCocoa { late final _sel_waitForDataInBackgroundAndNotify1 = _registerName1("waitForDataInBackgroundAndNotify"); late final _sel_readabilityHandler1 = _registerName1("readabilityHandler"); - ffi.Pointer<_ObjCBlock> _objc_msgSend_773( + ffi.Pointer<_ObjCBlock> _objc_msgSend_777( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_773( + return __objc_msgSend_777( obj, sel, ); } - late final __objc_msgSend_773Ptr = _lookup< + late final __objc_msgSend_777Ptr = _lookup< ffi.NativeFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_773 = __objc_msgSend_773Ptr.asFunction< + late final __objc_msgSend_777 = __objc_msgSend_777Ptr.asFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setReadabilityHandler_1 = _registerName1("setReadabilityHandler:"); - void _objc_msgSend_774( + void _objc_msgSend_778( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> value, ) { - return __objc_msgSend_774( + return __objc_msgSend_778( obj, sel, value, ); } - late final __objc_msgSend_774Ptr = _lookup< + late final __objc_msgSend_778Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_774 = __objc_msgSend_774Ptr.asFunction< + late final __objc_msgSend_778 = __objc_msgSend_778Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); @@ -22177,23 +22292,23 @@ class SentryCocoa { _registerName1("setWriteabilityHandler:"); late final _sel_initWithFileDescriptor_1 = _registerName1("initWithFileDescriptor:"); - instancetype _objc_msgSend_775( + instancetype _objc_msgSend_779( ffi.Pointer obj, ffi.Pointer sel, int fd, ) { - return __objc_msgSend_775( + return __objc_msgSend_779( obj, sel, fd, ); } - late final __objc_msgSend_775Ptr = _lookup< + late final __objc_msgSend_779Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Int)>>('objc_msgSend'); - late final __objc_msgSend_775 = __objc_msgSend_775Ptr.asFunction< + late final __objc_msgSend_779 = __objc_msgSend_779Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -22203,23 +22318,23 @@ class SentryCocoa { late final _sel_offsetInFile1 = _registerName1("offsetInFile"); late final _sel_seekToEndOfFile1 = _registerName1("seekToEndOfFile"); late final _sel_seekToFileOffset_1 = _registerName1("seekToFileOffset:"); - void _objc_msgSend_776( + void _objc_msgSend_780( ffi.Pointer obj, ffi.Pointer sel, int offset, ) { - return __objc_msgSend_776( + return __objc_msgSend_780( obj, sel, offset, ); } - late final __objc_msgSend_776Ptr = _lookup< + late final __objc_msgSend_780Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLongLong)>>('objc_msgSend'); - late final __objc_msgSend_776 = __objc_msgSend_776Ptr.asFunction< + late final __objc_msgSend_780 = __objc_msgSend_780Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_truncateFileAtOffset_1 = @@ -22229,43 +22344,43 @@ class SentryCocoa { late final _class_NSHTTPCookieStorage1 = _getClass1("NSHTTPCookieStorage"); late final _sel_sharedHTTPCookieStorage1 = _registerName1("sharedHTTPCookieStorage"); - ffi.Pointer _objc_msgSend_777( + ffi.Pointer _objc_msgSend_781( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_777( + return __objc_msgSend_781( obj, sel, ); } - late final __objc_msgSend_777Ptr = _lookup< + late final __objc_msgSend_781Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_777 = __objc_msgSend_777Ptr.asFunction< + late final __objc_msgSend_781 = __objc_msgSend_781Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_sharedCookieStorageForGroupContainerIdentifier_1 = _registerName1("sharedCookieStorageForGroupContainerIdentifier:"); - ffi.Pointer _objc_msgSend_778( + ffi.Pointer _objc_msgSend_782( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer identifier, ) { - return __objc_msgSend_778( + return __objc_msgSend_782( obj, sel, identifier, ); } - late final __objc_msgSend_778Ptr = _lookup< + late final __objc_msgSend_782Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_778 = __objc_msgSend_778Ptr.asFunction< + late final __objc_msgSend_782 = __objc_msgSend_782Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -22274,23 +22389,23 @@ class SentryCocoa { late final _sel_initWithProperties_1 = _registerName1("initWithProperties:"); late final _sel_cookieWithProperties_1 = _registerName1("cookieWithProperties:"); - ffi.Pointer _objc_msgSend_779( + ffi.Pointer _objc_msgSend_783( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer properties, ) { - return __objc_msgSend_779( + return __objc_msgSend_783( obj, sel, properties, ); } - late final __objc_msgSend_779Ptr = _lookup< + late final __objc_msgSend_783Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_779 = __objc_msgSend_779Ptr.asFunction< + late final __objc_msgSend_783 = __objc_msgSend_783Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -22298,13 +22413,13 @@ class SentryCocoa { _registerName1("requestHeaderFieldsWithCookies:"); late final _sel_cookiesWithResponseHeaderFields_forURL_1 = _registerName1("cookiesWithResponseHeaderFields:forURL:"); - ffi.Pointer _objc_msgSend_780( + ffi.Pointer _objc_msgSend_784( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer headerFields, ffi.Pointer URL, ) { - return __objc_msgSend_780( + return __objc_msgSend_784( obj, sel, headerFields, @@ -22312,14 +22427,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_780Ptr = _lookup< + late final __objc_msgSend_784Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_780 = __objc_msgSend_780Ptr.asFunction< + late final __objc_msgSend_784 = __objc_msgSend_784Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -22337,23 +22452,23 @@ class SentryCocoa { late final _sel_portList1 = _registerName1("portList"); late final _sel_sameSitePolicy1 = _registerName1("sameSitePolicy"); late final _sel_setCookie_1 = _registerName1("setCookie:"); - void _objc_msgSend_781( + void _objc_msgSend_785( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer cookie, ) { - return __objc_msgSend_781( + return __objc_msgSend_785( obj, sel, cookie, ); } - late final __objc_msgSend_781Ptr = _lookup< + late final __objc_msgSend_785Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_781 = __objc_msgSend_781Ptr.asFunction< + late final __objc_msgSend_785 = __objc_msgSend_785Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -22363,14 +22478,14 @@ class SentryCocoa { late final _sel_cookiesForURL_1 = _registerName1("cookiesForURL:"); late final _sel_setCookies_forURL_mainDocumentURL_1 = _registerName1("setCookies:forURL:mainDocumentURL:"); - void _objc_msgSend_782( + void _objc_msgSend_786( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer cookies, ffi.Pointer URL, ffi.Pointer mainDocumentURL, ) { - return __objc_msgSend_782( + return __objc_msgSend_786( obj, sel, cookies, @@ -22379,7 +22494,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_782Ptr = _lookup< + late final __objc_msgSend_786Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -22387,7 +22502,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_782 = __objc_msgSend_782Ptr.asFunction< + late final __objc_msgSend_786 = __objc_msgSend_786Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -22396,42 +22511,42 @@ class SentryCocoa { ffi.Pointer)>(); late final _sel_cookieAcceptPolicy1 = _registerName1("cookieAcceptPolicy"); - int _objc_msgSend_783( + int _objc_msgSend_787( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_783( + return __objc_msgSend_787( obj, sel, ); } - late final __objc_msgSend_783Ptr = _lookup< + late final __objc_msgSend_787Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_783 = __objc_msgSend_783Ptr.asFunction< + late final __objc_msgSend_787 = __objc_msgSend_787Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setCookieAcceptPolicy_1 = _registerName1("setCookieAcceptPolicy:"); - void _objc_msgSend_784( + void _objc_msgSend_788( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_784( + return __objc_msgSend_788( obj, sel, value, ); } - late final __objc_msgSend_784Ptr = _lookup< + late final __objc_msgSend_788Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_784 = __objc_msgSend_784Ptr.asFunction< + late final __objc_msgSend_788 = __objc_msgSend_788Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_sortedCookiesUsingDescriptors_1 = @@ -22444,14 +22559,14 @@ class SentryCocoa { _registerName1("supportsSecureCoding"); late final _sel_requestWithURL_cachePolicy_timeoutInterval_1 = _registerName1("requestWithURL:cachePolicy:timeoutInterval:"); - instancetype _objc_msgSend_785( + instancetype _objc_msgSend_789( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer URL, int cachePolicy, double timeoutInterval, ) { - return __objc_msgSend_785( + return __objc_msgSend_789( obj, sel, URL, @@ -22460,11 +22575,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_785Ptr = _lookup< + late final __objc_msgSend_789Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_785 = __objc_msgSend_785Ptr.asFunction< + late final __objc_msgSend_789 = __objc_msgSend_789Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, double)>(); @@ -22472,41 +22587,41 @@ class SentryCocoa { _registerName1("initWithURL:cachePolicy:timeoutInterval:"); late final _sel_URL1 = _registerName1("URL"); late final _sel_cachePolicy1 = _registerName1("cachePolicy"); - int _objc_msgSend_786( + int _objc_msgSend_790( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_786( + return __objc_msgSend_790( obj, sel, ); } - late final __objc_msgSend_786Ptr = _lookup< + late final __objc_msgSend_790Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_786 = __objc_msgSend_786Ptr.asFunction< + late final __objc_msgSend_790 = __objc_msgSend_790Ptr.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_787( + int _objc_msgSend_791( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_787( + return __objc_msgSend_791( obj, sel, ); } - late final __objc_msgSend_787Ptr = _lookup< + late final __objc_msgSend_791Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_787 = __objc_msgSend_787Ptr.asFunction< + late final __objc_msgSend_791 = __objc_msgSend_791Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_allowsCellularAccess1 = @@ -22517,25 +22632,28 @@ class SentryCocoa { _registerName1("allowsConstrainedNetworkAccess"); late final _sel_assumesHTTP3Capable1 = _registerName1("assumesHTTP3Capable"); late final _sel_attribution1 = _registerName1("attribution"); - int _objc_msgSend_788( + int _objc_msgSend_792( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_788( + return __objc_msgSend_792( obj, sel, ); } - late final __objc_msgSend_788Ptr = _lookup< + late final __objc_msgSend_792Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_788 = __objc_msgSend_788Ptr.asFunction< + late final __objc_msgSend_792 = __objc_msgSend_792Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_requiresDNSSECValidation1 = _registerName1("requiresDNSSECValidation"); + late final _sel_allowsPersistentDNS1 = _registerName1("allowsPersistentDNS"); + late final _sel_cookiePartitionIdentifier1 = + _registerName1("cookiePartitionIdentifier"); late final _sel_HTTPMethod1 = _registerName1("HTTPMethod"); late final _sel_allHTTPHeaderFields1 = _registerName1("allHTTPHeaderFields"); late final _sel_valueForHTTPHeaderField_1 = @@ -22546,33 +22664,33 @@ class SentryCocoa { late final _sel_open1 = _registerName1("open"); late final _sel_close1 = _registerName1("close"); late final _sel_streamStatus1 = _registerName1("streamStatus"); - int _objc_msgSend_789( + int _objc_msgSend_793( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_789( + return __objc_msgSend_793( obj, sel, ); } - late final __objc_msgSend_789Ptr = _lookup< + late final __objc_msgSend_793Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_789 = __objc_msgSend_789Ptr.asFunction< + late final __objc_msgSend_793 = __objc_msgSend_793Ptr.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_790( + int _objc_msgSend_794( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, int len, ) { - return __objc_msgSend_790( + return __objc_msgSend_794( obj, sel, buffer, @@ -22580,11 +22698,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_790Ptr = _lookup< + late final __objc_msgSend_794Ptr = _lookup< ffi.NativeFunction< ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_790 = __objc_msgSend_790Ptr.asFunction< + late final __objc_msgSend_794 = __objc_msgSend_794Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -22592,13 +22710,13 @@ class SentryCocoa { late final _sel_initToMemory1 = _registerName1("initToMemory"); late final _sel_initToBuffer_capacity_1 = _registerName1("initToBuffer:capacity:"); - instancetype _objc_msgSend_791( + instancetype _objc_msgSend_795( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, int capacity, ) { - return __objc_msgSend_791( + return __objc_msgSend_795( obj, sel, buffer, @@ -22606,11 +22724,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_791Ptr = _lookup< + late final __objc_msgSend_795Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_791 = __objc_msgSend_791Ptr.asFunction< + late final __objc_msgSend_795 = __objc_msgSend_795Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -22627,7 +22745,7 @@ class SentryCocoa { _registerName1("outputStreamWithURL:append:"); late final _sel_getStreamsToHostWithName_port_inputStream_outputStream_1 = _registerName1("getStreamsToHostWithName:port:inputStream:outputStream:"); - void _objc_msgSend_792( + void _objc_msgSend_796( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer hostname, @@ -22635,7 +22753,7 @@ class SentryCocoa { ffi.Pointer> inputStream, ffi.Pointer> outputStream, ) { - return __objc_msgSend_792( + return __objc_msgSend_796( obj, sel, hostname, @@ -22645,7 +22763,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_792Ptr = _lookup< + late final __objc_msgSend_796Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -22654,7 +22772,7 @@ class SentryCocoa { ffi.Long, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_792 = __objc_msgSend_792Ptr.asFunction< + late final __objc_msgSend_796 = __objc_msgSend_796Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -22668,23 +22786,23 @@ class SentryCocoa { late final _sel_hostWithName_1 = _registerName1("hostWithName:"); late final _sel_hostWithAddress_1 = _registerName1("hostWithAddress:"); late final _sel_isEqualToHost_1 = _registerName1("isEqualToHost:"); - bool _objc_msgSend_793( + bool _objc_msgSend_797( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aHost, ) { - return __objc_msgSend_793( + return __objc_msgSend_797( obj, sel, aHost, ); } - late final __objc_msgSend_793Ptr = _lookup< + late final __objc_msgSend_797Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_793 = __objc_msgSend_793Ptr.asFunction< + late final __objc_msgSend_797 = __objc_msgSend_797Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -22694,30 +22812,30 @@ class SentryCocoa { late final _sel_localizedName1 = _registerName1("localizedName"); late final _sel_setHostCacheEnabled_1 = _registerName1("setHostCacheEnabled:"); - void _objc_msgSend_794( + void _objc_msgSend_798( ffi.Pointer obj, ffi.Pointer sel, bool flag, ) { - return __objc_msgSend_794( + return __objc_msgSend_798( obj, sel, flag, ); } - late final __objc_msgSend_794Ptr = _lookup< + late final __objc_msgSend_798Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_794 = __objc_msgSend_794Ptr.asFunction< + late final __objc_msgSend_798 = __objc_msgSend_798Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_isHostCacheEnabled1 = _registerName1("isHostCacheEnabled"); late final _sel_flushHostCache1 = _registerName1("flushHostCache"); late final _sel_getStreamsToHost_port_inputStream_outputStream_1 = _registerName1("getStreamsToHost:port:inputStream:outputStream:"); - void _objc_msgSend_795( + void _objc_msgSend_799( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer host, @@ -22725,7 +22843,7 @@ class SentryCocoa { ffi.Pointer> inputStream, ffi.Pointer> outputStream, ) { - return __objc_msgSend_795( + return __objc_msgSend_799( obj, sel, host, @@ -22735,7 +22853,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_795Ptr = _lookup< + late final __objc_msgSend_799Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -22744,7 +22862,7 @@ class SentryCocoa { ffi.Long, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_795 = __objc_msgSend_795Ptr.asFunction< + late final __objc_msgSend_799 = __objc_msgSend_799Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -22755,14 +22873,14 @@ class SentryCocoa { late final _sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1 = _registerName1("getBoundStreamsWithBufferSize:inputStream:outputStream:"); - void _objc_msgSend_796( + void _objc_msgSend_800( ffi.Pointer obj, ffi.Pointer sel, int bufferSize, ffi.Pointer> inputStream, ffi.Pointer> outputStream, ) { - return __objc_msgSend_796( + return __objc_msgSend_800( obj, sel, bufferSize, @@ -22771,7 +22889,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_796Ptr = _lookup< + late final __objc_msgSend_800Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -22779,7 +22897,7 @@ class SentryCocoa { ffi.UnsignedLong, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_796 = __objc_msgSend_796Ptr.asFunction< + late final __objc_msgSend_800 = __objc_msgSend_800Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -22789,13 +22907,13 @@ class SentryCocoa { late final _sel_read_maxLength_1 = _registerName1("read:maxLength:"); late final _sel_getBuffer_length_1 = _registerName1("getBuffer:length:"); - bool _objc_msgSend_797( + bool _objc_msgSend_801( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> buffer, ffi.Pointer len, ) { - return __objc_msgSend_797( + return __objc_msgSend_801( obj, sel, buffer, @@ -22803,14 +22921,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_797Ptr = _lookup< + late final __objc_msgSend_801Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_797 = __objc_msgSend_797Ptr.asFunction< + late final __objc_msgSend_801 = __objc_msgSend_801Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -22825,21 +22943,21 @@ class SentryCocoa { _registerName1("inputStreamWithFileAtPath:"); late final _sel_inputStreamWithURL_1 = _registerName1("inputStreamWithURL:"); late final _sel_HTTPBodyStream1 = _registerName1("HTTPBodyStream"); - ffi.Pointer _objc_msgSend_798( + ffi.Pointer _objc_msgSend_802( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_798( + return __objc_msgSend_802( obj, sel, ); } - late final __objc_msgSend_798Ptr = _lookup< + late final __objc_msgSend_802Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_798 = __objc_msgSend_798Ptr.asFunction< + late final __objc_msgSend_802 = __objc_msgSend_802Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -22848,21 +22966,21 @@ class SentryCocoa { late final _sel_HTTPShouldUsePipelining1 = _registerName1("HTTPShouldUsePipelining"); late final _sel_originalRequest1 = _registerName1("originalRequest"); - ffi.Pointer _objc_msgSend_799( + ffi.Pointer _objc_msgSend_803( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_799( + return __objc_msgSend_803( obj, sel, ); } - late final __objc_msgSend_799Ptr = _lookup< + late final __objc_msgSend_803Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_799 = __objc_msgSend_799Ptr.asFunction< + late final __objc_msgSend_803 = __objc_msgSend_803Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -22871,7 +22989,7 @@ class SentryCocoa { late final _sel_initWithURL_MIMEType_expectedContentLength_textEncodingName_1 = _registerName1( "initWithURL:MIMEType:expectedContentLength:textEncodingName:"); - instancetype _objc_msgSend_800( + instancetype _objc_msgSend_804( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer URL, @@ -22879,7 +22997,7 @@ class SentryCocoa { int length, ffi.Pointer name, ) { - return __objc_msgSend_800( + return __objc_msgSend_804( obj, sel, URL, @@ -22889,7 +23007,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_800Ptr = _lookup< + late final __objc_msgSend_804Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -22898,7 +23016,7 @@ class SentryCocoa { ffi.Pointer, ffi.Long, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_800 = __objc_msgSend_800Ptr.asFunction< + late final __objc_msgSend_804 = __objc_msgSend_804Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -22913,21 +23031,21 @@ class SentryCocoa { late final _sel_textEncodingName1 = _registerName1("textEncodingName"); late final _sel_suggestedFilename1 = _registerName1("suggestedFilename"); late final _sel_response1 = _registerName1("response"); - ffi.Pointer _objc_msgSend_801( + ffi.Pointer _objc_msgSend_805( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_801( + return __objc_msgSend_805( obj, sel, ); } - late final __objc_msgSend_801Ptr = _lookup< + late final __objc_msgSend_805Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_801 = __objc_msgSend_801Ptr.asFunction< + late final __objc_msgSend_805 = __objc_msgSend_805Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -22953,43 +23071,43 @@ class SentryCocoa { late final _sel_taskDescription1 = _registerName1("taskDescription"); late final _sel_setTaskDescription_1 = _registerName1("setTaskDescription:"); late final _sel_state1 = _registerName1("state"); - int _objc_msgSend_802( + int _objc_msgSend_806( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_802( + return __objc_msgSend_806( obj, sel, ); } - late final __objc_msgSend_802Ptr = _lookup< + late final __objc_msgSend_806Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_802 = __objc_msgSend_802Ptr.asFunction< + late final __objc_msgSend_806 = __objc_msgSend_806Ptr.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_803( + void _objc_msgSend_807( ffi.Pointer obj, ffi.Pointer sel, double value, ) { - return __objc_msgSend_803( + return __objc_msgSend_807( obj, sel, value, ); } - late final __objc_msgSend_803Ptr = _lookup< + late final __objc_msgSend_807Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Float)>>('objc_msgSend'); - late final __objc_msgSend_803 = __objc_msgSend_803Ptr.asFunction< + late final __objc_msgSend_807 = __objc_msgSend_807Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, double)>(); late final _sel_prefersIncrementalDelivery1 = @@ -22998,13 +23116,13 @@ class SentryCocoa { _registerName1("setPrefersIncrementalDelivery:"); late final _sel_storeCookies_forTask_1 = _registerName1("storeCookies:forTask:"); - void _objc_msgSend_804( + void _objc_msgSend_808( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer cookies, ffi.Pointer task, ) { - return __objc_msgSend_804( + return __objc_msgSend_808( obj, sel, cookies, @@ -23012,26 +23130,26 @@ class SentryCocoa { ); } - late final __objc_msgSend_804Ptr = _lookup< + late final __objc_msgSend_808Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_804 = __objc_msgSend_804Ptr.asFunction< + late final __objc_msgSend_808 = __objc_msgSend_808Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_getCookiesForTask_completionHandler_1 = _registerName1("getCookiesForTask:completionHandler:"); - void _objc_msgSend_805( + void _objc_msgSend_809( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer task, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_805( + return __objc_msgSend_809( obj, sel, task, @@ -23039,14 +23157,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_805Ptr = _lookup< + late final __objc_msgSend_809Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_805 = __objc_msgSend_805Ptr.asFunction< + late final __objc_msgSend_809 = __objc_msgSend_809Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); @@ -23054,13 +23172,13 @@ class SentryCocoa { late final _sel_indexPathWithIndex_1 = _registerName1("indexPathWithIndex:"); late final _sel_indexPathWithIndexes_length_1 = _registerName1("indexPathWithIndexes:length:"); - instancetype _objc_msgSend_806( + instancetype _objc_msgSend_810( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexes, int length, ) { - return __objc_msgSend_806( + return __objc_msgSend_810( obj, sel, indexes, @@ -23068,14 +23186,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_806Ptr = _lookup< + late final __objc_msgSend_810Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_806 = __objc_msgSend_806Ptr.asFunction< + late final __objc_msgSend_810 = __objc_msgSend_810Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -23083,55 +23201,55 @@ class SentryCocoa { _registerName1("initWithIndexes:length:"); late final _sel_indexPathByAddingIndex_1 = _registerName1("indexPathByAddingIndex:"); - ffi.Pointer _objc_msgSend_807( + ffi.Pointer _objc_msgSend_811( ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_807( + return __objc_msgSend_811( obj, sel, index, ); } - late final __objc_msgSend_807Ptr = _lookup< + late final __objc_msgSend_811Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_807 = __objc_msgSend_807Ptr.asFunction< + late final __objc_msgSend_811 = __objc_msgSend_811Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_indexPathByRemovingLastIndex1 = _registerName1("indexPathByRemovingLastIndex"); - ffi.Pointer _objc_msgSend_808( + ffi.Pointer _objc_msgSend_812( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_808( + return __objc_msgSend_812( obj, sel, ); } - late final __objc_msgSend_808Ptr = _lookup< + late final __objc_msgSend_812Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_808 = __objc_msgSend_808Ptr.asFunction< + late final __objc_msgSend_812 = __objc_msgSend_812Ptr.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_809( + void _objc_msgSend_813( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexes, _NSRange positionRange, ) { - return __objc_msgSend_809( + return __objc_msgSend_813( obj, sel, indexes, @@ -23139,72 +23257,72 @@ class SentryCocoa { ); } - late final __objc_msgSend_809Ptr = _lookup< + late final __objc_msgSend_813Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_809 = __objc_msgSend_809Ptr.asFunction< + late final __objc_msgSend_813 = __objc_msgSend_813Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange)>(); - int _objc_msgSend_810( + int _objc_msgSend_814( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherObject, ) { - return __objc_msgSend_810( + return __objc_msgSend_814( obj, sel, otherObject, ); } - late final __objc_msgSend_810Ptr = _lookup< + late final __objc_msgSend_814Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_810 = __objc_msgSend_810Ptr.asFunction< + late final __objc_msgSend_814 = __objc_msgSend_814Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_getIndexes_1 = _registerName1("getIndexes:"); - void _objc_msgSend_811( + void _objc_msgSend_815( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexes, ) { - return __objc_msgSend_811( + return __objc_msgSend_815( obj, sel, indexes, ); } - late final __objc_msgSend_811Ptr = _lookup< + late final __objc_msgSend_815Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_811 = __objc_msgSend_811Ptr.asFunction< + late final __objc_msgSend_815 = __objc_msgSend_815Ptr.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_812( + ffi.Pointer _objc_msgSend_816( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_812( + return __objc_msgSend_816( obj, sel, ); } - late final __objc_msgSend_812Ptr = _lookup< + late final __objc_msgSend_816Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_812 = __objc_msgSend_812Ptr.asFunction< + late final __objc_msgSend_816 = __objc_msgSend_816Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -23213,309 +23331,309 @@ class SentryCocoa { _registerName1("canInflectPreferredLocalization"); late final _class_NSMorphology1 = _getClass1("NSMorphology"); late final _sel_grammaticalGender1 = _registerName1("grammaticalGender"); - int _objc_msgSend_813( + int _objc_msgSend_817( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_813( + return __objc_msgSend_817( obj, sel, ); } - late final __objc_msgSend_813Ptr = _lookup< + late final __objc_msgSend_817Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_813 = __objc_msgSend_813Ptr.asFunction< + late final __objc_msgSend_817 = __objc_msgSend_817Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setGrammaticalGender_1 = _registerName1("setGrammaticalGender:"); - void _objc_msgSend_814( + void _objc_msgSend_818( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_814( + return __objc_msgSend_818( obj, sel, value, ); } - late final __objc_msgSend_814Ptr = _lookup< + late final __objc_msgSend_818Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_814 = __objc_msgSend_814Ptr.asFunction< + late final __objc_msgSend_818 = __objc_msgSend_818Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_partOfSpeech1 = _registerName1("partOfSpeech"); - int _objc_msgSend_815( + int _objc_msgSend_819( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_815( + return __objc_msgSend_819( obj, sel, ); } - late final __objc_msgSend_815Ptr = _lookup< + late final __objc_msgSend_819Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_815 = __objc_msgSend_815Ptr.asFunction< + late final __objc_msgSend_819 = __objc_msgSend_819Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setPartOfSpeech_1 = _registerName1("setPartOfSpeech:"); - void _objc_msgSend_816( + void _objc_msgSend_820( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_816( + return __objc_msgSend_820( obj, sel, value, ); } - late final __objc_msgSend_816Ptr = _lookup< + late final __objc_msgSend_820Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_816 = __objc_msgSend_816Ptr.asFunction< + late final __objc_msgSend_820 = __objc_msgSend_820Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_number1 = _registerName1("number"); - int _objc_msgSend_817( + int _objc_msgSend_821( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_817( + return __objc_msgSend_821( obj, sel, ); } - late final __objc_msgSend_817Ptr = _lookup< + late final __objc_msgSend_821Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_817 = __objc_msgSend_817Ptr.asFunction< + late final __objc_msgSend_821 = __objc_msgSend_821Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setNumber_1 = _registerName1("setNumber:"); - void _objc_msgSend_818( + void _objc_msgSend_822( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_818( + return __objc_msgSend_822( obj, sel, value, ); } - late final __objc_msgSend_818Ptr = _lookup< + late final __objc_msgSend_822Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_818 = __objc_msgSend_818Ptr.asFunction< + late final __objc_msgSend_822 = __objc_msgSend_822Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_grammaticalCase1 = _registerName1("grammaticalCase"); - int _objc_msgSend_819( + int _objc_msgSend_823( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_819( + return __objc_msgSend_823( obj, sel, ); } - late final __objc_msgSend_819Ptr = _lookup< + late final __objc_msgSend_823Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_819 = __objc_msgSend_819Ptr.asFunction< + late final __objc_msgSend_823 = __objc_msgSend_823Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setGrammaticalCase_1 = _registerName1("setGrammaticalCase:"); - void _objc_msgSend_820( + void _objc_msgSend_824( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_820( + return __objc_msgSend_824( obj, sel, value, ); } - late final __objc_msgSend_820Ptr = _lookup< + late final __objc_msgSend_824Ptr = _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_824 = __objc_msgSend_824Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_determination1 = _registerName1("determination"); - int _objc_msgSend_821( + int _objc_msgSend_825( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_821( + return __objc_msgSend_825( obj, sel, ); } - late final __objc_msgSend_821Ptr = _lookup< + late final __objc_msgSend_825Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_821 = __objc_msgSend_821Ptr.asFunction< + late final __objc_msgSend_825 = __objc_msgSend_825Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setDetermination_1 = _registerName1("setDetermination:"); - void _objc_msgSend_822( + void _objc_msgSend_826( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_822( + return __objc_msgSend_826( obj, sel, value, ); } - late final __objc_msgSend_822Ptr = _lookup< + late final __objc_msgSend_826Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_822 = __objc_msgSend_822Ptr.asFunction< + late final __objc_msgSend_826 = __objc_msgSend_826Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_grammaticalPerson1 = _registerName1("grammaticalPerson"); - int _objc_msgSend_823( + int _objc_msgSend_827( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_823( + return __objc_msgSend_827( obj, sel, ); } - late final __objc_msgSend_823Ptr = _lookup< + late final __objc_msgSend_827Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_823 = __objc_msgSend_823Ptr.asFunction< + late final __objc_msgSend_827 = __objc_msgSend_827Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setGrammaticalPerson_1 = _registerName1("setGrammaticalPerson:"); - void _objc_msgSend_824( + void _objc_msgSend_828( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_824( + return __objc_msgSend_828( obj, sel, value, ); } - late final __objc_msgSend_824Ptr = _lookup< + late final __objc_msgSend_828Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_824 = __objc_msgSend_824Ptr.asFunction< + late final __objc_msgSend_828 = __objc_msgSend_828Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_pronounType1 = _registerName1("pronounType"); - int _objc_msgSend_825( + int _objc_msgSend_829( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_825( + return __objc_msgSend_829( obj, sel, ); } - late final __objc_msgSend_825Ptr = _lookup< + late final __objc_msgSend_829Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_825 = __objc_msgSend_825Ptr.asFunction< + late final __objc_msgSend_829 = __objc_msgSend_829Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setPronounType_1 = _registerName1("setPronounType:"); - void _objc_msgSend_826( + void _objc_msgSend_830( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_826( + return __objc_msgSend_830( obj, sel, value, ); } - late final __objc_msgSend_826Ptr = _lookup< + late final __objc_msgSend_830Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_826 = __objc_msgSend_826Ptr.asFunction< + late final __objc_msgSend_830 = __objc_msgSend_830Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_definiteness1 = _registerName1("definiteness"); - int _objc_msgSend_827( + int _objc_msgSend_831( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_827( + return __objc_msgSend_831( obj, sel, ); } - late final __objc_msgSend_827Ptr = _lookup< + late final __objc_msgSend_831Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_827 = __objc_msgSend_827Ptr.asFunction< + late final __objc_msgSend_831 = __objc_msgSend_831Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setDefiniteness_1 = _registerName1("setDefiniteness:"); - void _objc_msgSend_828( + void _objc_msgSend_832( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_828( + return __objc_msgSend_832( obj, sel, value, ); } - late final __objc_msgSend_828Ptr = _lookup< + late final __objc_msgSend_832Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_828 = __objc_msgSend_828Ptr.asFunction< + late final __objc_msgSend_832 = __objc_msgSend_832Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _class_NSMorphologyCustomPronoun1 = @@ -23538,36 +23656,36 @@ class SentryCocoa { late final _sel_setReflexiveForm_1 = _registerName1("setReflexiveForm:"); late final _sel_customPronounForLanguage_1 = _registerName1("customPronounForLanguage:"); - ffi.Pointer _objc_msgSend_829( + ffi.Pointer _objc_msgSend_833( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer language, ) { - return __objc_msgSend_829( + return __objc_msgSend_833( obj, sel, language, ); } - late final __objc_msgSend_829Ptr = _lookup< + late final __objc_msgSend_833Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_829 = __objc_msgSend_829Ptr.asFunction< + late final __objc_msgSend_833 = __objc_msgSend_833Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_setCustomPronoun_forLanguage_error_1 = _registerName1("setCustomPronoun:forLanguage:error:"); - bool _objc_msgSend_830( + bool _objc_msgSend_834( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer features, ffi.Pointer language, ffi.Pointer> error, ) { - return __objc_msgSend_830( + return __objc_msgSend_834( obj, sel, features, @@ -23576,7 +23694,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_830Ptr = _lookup< + late final __objc_msgSend_834Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -23584,7 +23702,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_830 = __objc_msgSend_830Ptr.asFunction< + late final __objc_msgSend_834 = __objc_msgSend_834Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -23594,21 +23712,21 @@ class SentryCocoa { late final _sel_isUnspecified1 = _registerName1("isUnspecified"); late final _sel_userMorphology1 = _registerName1("userMorphology"); - ffi.Pointer _objc_msgSend_831( + ffi.Pointer _objc_msgSend_835( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_831( + return __objc_msgSend_835( obj, sel, ); } - late final __objc_msgSend_831Ptr = _lookup< + late final __objc_msgSend_835Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_831 = __objc_msgSend_831Ptr.asFunction< + late final __objc_msgSend_835 = __objc_msgSend_835Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -23618,64 +23736,64 @@ class SentryCocoa { late final _sel_isAsynchronous1 = _registerName1("isAsynchronous"); late final _sel_isReady1 = _registerName1("isReady"); late final _sel_addDependency_1 = _registerName1("addDependency:"); - void _objc_msgSend_832( + void _objc_msgSend_836( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer op, ) { - return __objc_msgSend_832( + return __objc_msgSend_836( obj, sel, op, ); } - late final __objc_msgSend_832Ptr = _lookup< + late final __objc_msgSend_836Ptr = _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_836 = __objc_msgSend_836Ptr.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_833( + int _objc_msgSend_837( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_833( + return __objc_msgSend_837( obj, sel, ); } - late final __objc_msgSend_833Ptr = _lookup< + late final __objc_msgSend_837Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_833 = __objc_msgSend_833Ptr.asFunction< + late final __objc_msgSend_837 = __objc_msgSend_837Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setQueuePriority_1 = _registerName1("setQueuePriority:"); - void _objc_msgSend_834( + void _objc_msgSend_838( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_834( + return __objc_msgSend_838( obj, sel, value, ); } - late final __objc_msgSend_834Ptr = _lookup< + late final __objc_msgSend_838Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_834 = __objc_msgSend_834Ptr.asFunction< + late final __objc_msgSend_838 = __objc_msgSend_838Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_completionBlock1 = _registerName1("completionBlock"); @@ -23684,13 +23802,13 @@ class SentryCocoa { late final _sel_addOperation_1 = _registerName1("addOperation:"); late final _sel_addOperations_waitUntilFinished_1 = _registerName1("addOperations:waitUntilFinished:"); - void _objc_msgSend_835( + void _objc_msgSend_839( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer ops, bool wait, ) { - return __objc_msgSend_835( + return __objc_msgSend_839( obj, sel, ops, @@ -23698,11 +23816,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_835Ptr = _lookup< + late final __objc_msgSend_839Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_835 = __objc_msgSend_835Ptr.asFunction< + late final __objc_msgSend_839 = __objc_msgSend_839Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); @@ -23716,42 +23834,42 @@ class SentryCocoa { late final _sel_isSuspended1 = _registerName1("isSuspended"); late final _sel_setSuspended_1 = _registerName1("setSuspended:"); late final _sel_underlyingQueue1 = _registerName1("underlyingQueue"); - ffi.Pointer _objc_msgSend_836( + ffi.Pointer _objc_msgSend_840( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_836( + return __objc_msgSend_840( obj, sel, ); } - late final __objc_msgSend_836Ptr = _lookup< + late final __objc_msgSend_840Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_836 = __objc_msgSend_836Ptr.asFunction< + late final __objc_msgSend_840 = __objc_msgSend_840Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setUnderlyingQueue_1 = _registerName1("setUnderlyingQueue:"); - void _objc_msgSend_837( + void _objc_msgSend_841( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_837( + return __objc_msgSend_841( obj, sel, value, ); } - late final __objc_msgSend_837Ptr = _lookup< + late final __objc_msgSend_841Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_837 = __objc_msgSend_837Ptr.asFunction< + late final __objc_msgSend_841 = __objc_msgSend_841Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -23759,21 +23877,21 @@ class SentryCocoa { late final _sel_waitUntilAllOperationsAreFinished1 = _registerName1("waitUntilAllOperationsAreFinished"); late final _sel_currentQueue1 = _registerName1("currentQueue"); - ffi.Pointer _objc_msgSend_838( + ffi.Pointer _objc_msgSend_842( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_838( + return __objc_msgSend_842( obj, sel, ); } - late final __objc_msgSend_838Ptr = _lookup< + late final __objc_msgSend_842Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_838 = __objc_msgSend_838Ptr.asFunction< + late final __objc_msgSend_842 = __objc_msgSend_842Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -23782,46 +23900,46 @@ class SentryCocoa { late final _sel_operationCount1 = _registerName1("operationCount"); late final _class_NSPointerArray1 = _getClass1("NSPointerArray"); late final _sel_initWithOptions_1 = _registerName1("initWithOptions:"); - instancetype _objc_msgSend_839( + instancetype _objc_msgSend_843( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_839( + return __objc_msgSend_843( obj, sel, options, ); } - late final __objc_msgSend_839Ptr = _lookup< + late final __objc_msgSend_843Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_839 = __objc_msgSend_839Ptr.asFunction< + late final __objc_msgSend_843 = __objc_msgSend_843Ptr.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_840( + ffi.Pointer _objc_msgSend_844( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_840( + return __objc_msgSend_844( obj, sel, options, ); } - late final __objc_msgSend_840Ptr = _lookup< + late final __objc_msgSend_844Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_840 = __objc_msgSend_840Ptr.asFunction< + late final __objc_msgSend_844 = __objc_msgSend_844Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -23833,17 +23951,17 @@ class SentryCocoa { ffi.Pointer< ffi.NativeFunction< ffi.UnsignedLong Function(ffi.Pointer)>>)>> - _objc_msgSend_841( + _objc_msgSend_845( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_841( + return __objc_msgSend_845( obj, sel, ); } - late final __objc_msgSend_841Ptr = _lookup< + late final __objc_msgSend_845Ptr = _lookup< ffi.NativeFunction< ffi.Pointer< ffi.NativeFunction< @@ -23855,7 +23973,7 @@ class SentryCocoa { ffi.Pointer)>>)>> Function(ffi.Pointer, ffi.Pointer)>>( 'objc_msgSend'); - late final __objc_msgSend_841 = __objc_msgSend_841Ptr.asFunction< + late final __objc_msgSend_845 = __objc_msgSend_845Ptr.asFunction< ffi.Pointer< ffi.NativeFunction< ffi.UnsignedLong Function( @@ -23867,7 +23985,7 @@ class SentryCocoa { Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setHashFunction_1 = _registerName1("setHashFunction:"); - void _objc_msgSend_842( + void _objc_msgSend_846( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< @@ -23880,14 +23998,14 @@ class SentryCocoa { ffi.Pointer)>>)>> value, ) { - return __objc_msgSend_842( + return __objc_msgSend_846( obj, sel, value, ); } - late final __objc_msgSend_842Ptr = _lookup< + late final __objc_msgSend_846Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -23901,7 +24019,7 @@ class SentryCocoa { ffi.UnsignedLong Function( ffi.Pointer)>>)>>)>>( 'objc_msgSend'); - late final __objc_msgSend_842 = __objc_msgSend_842Ptr.asFunction< + late final __objc_msgSend_846 = __objc_msgSend_846Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -23923,17 +24041,17 @@ class SentryCocoa { ffi.Pointer< ffi.NativeFunction< ffi.UnsignedLong Function(ffi.Pointer)>>)>> - _objc_msgSend_843( + _objc_msgSend_847( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_843( + return __objc_msgSend_847( obj, sel, ); } - late final __objc_msgSend_843Ptr = _lookup< + late final __objc_msgSend_847Ptr = _lookup< ffi.NativeFunction< ffi.Pointer< ffi.NativeFunction< @@ -23946,7 +24064,7 @@ class SentryCocoa { ffi.Pointer)>>)>> Function(ffi.Pointer, ffi.Pointer)>>( 'objc_msgSend'); - late final __objc_msgSend_843 = __objc_msgSend_843Ptr.asFunction< + late final __objc_msgSend_847 = __objc_msgSend_847Ptr.asFunction< ffi.Pointer< ffi.NativeFunction< ffi.Bool Function( @@ -23959,7 +24077,7 @@ class SentryCocoa { Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setIsEqualFunction_1 = _registerName1("setIsEqualFunction:"); - void _objc_msgSend_844( + void _objc_msgSend_848( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< @@ -23973,14 +24091,14 @@ class SentryCocoa { ffi.Pointer)>>)>> value, ) { - return __objc_msgSend_844( + return __objc_msgSend_848( obj, sel, value, ); } - late final __objc_msgSend_844Ptr = _lookup< + late final __objc_msgSend_848Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -23995,7 +24113,7 @@ class SentryCocoa { ffi.UnsignedLong Function( ffi.Pointer)>>)>>)>>( 'objc_msgSend'); - late final __objc_msgSend_844 = __objc_msgSend_844Ptr.asFunction< + late final __objc_msgSend_848 = __objc_msgSend_848Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -24012,31 +24130,31 @@ class SentryCocoa { late final _sel_sizeFunction1 = _registerName1("sizeFunction"); ffi.Pointer< ffi.NativeFunction)>> - _objc_msgSend_845( + _objc_msgSend_849( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_845( + return __objc_msgSend_849( obj, sel, ); } - late final __objc_msgSend_845Ptr = _lookup< + late final __objc_msgSend_849Ptr = _lookup< ffi.NativeFunction< ffi.Pointer< ffi.NativeFunction< ffi.UnsignedLong Function(ffi.Pointer)>> Function(ffi.Pointer, ffi.Pointer)>>( 'objc_msgSend'); - late final __objc_msgSend_845 = __objc_msgSend_845Ptr.asFunction< + late final __objc_msgSend_849 = __objc_msgSend_849Ptr.asFunction< ffi.Pointer< ffi .NativeFunction)>> Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setSizeFunction_1 = _registerName1("setSizeFunction:"); - void _objc_msgSend_846( + void _objc_msgSend_850( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< @@ -24044,14 +24162,14 @@ class SentryCocoa { .NativeFunction)>> value, ) { - return __objc_msgSend_846( + return __objc_msgSend_850( obj, sel, value, ); } - late final __objc_msgSend_846Ptr = _lookup< + late final __objc_msgSend_850Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -24060,7 +24178,7 @@ class SentryCocoa { ffi.NativeFunction< ffi.UnsignedLong Function( ffi.Pointer)>>)>>('objc_msgSend'); - late final __objc_msgSend_846 = __objc_msgSend_846Ptr.asFunction< + late final __objc_msgSend_850 = __objc_msgSend_850Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -24072,17 +24190,17 @@ class SentryCocoa { ffi.Pointer< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer)>> - _objc_msgSend_847( + _objc_msgSend_851( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_847( + return __objc_msgSend_851( obj, sel, ); } - late final __objc_msgSend_847Ptr = + late final __objc_msgSend_851Ptr = _lookup< ffi.NativeFunction< ffi.Pointer< @@ -24091,7 +24209,7 @@ class SentryCocoa { ffi.Pointer)>> Function(ffi.Pointer, ffi.Pointer)>>( 'objc_msgSend'); - late final __objc_msgSend_847 = __objc_msgSend_847Ptr.asFunction< + late final __objc_msgSend_851 = __objc_msgSend_851Ptr.asFunction< ffi.Pointer< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer)>> @@ -24099,7 +24217,7 @@ class SentryCocoa { late final _sel_setDescriptionFunction_1 = _registerName1("setDescriptionFunction:"); - void _objc_msgSend_848( + void _objc_msgSend_852( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< @@ -24107,14 +24225,14 @@ class SentryCocoa { ffi.Pointer Function(ffi.Pointer)>> value, ) { - return __objc_msgSend_848( + return __objc_msgSend_852( obj, sel, value, ); } - late final __objc_msgSend_848Ptr = _lookup< + late final __objc_msgSend_852Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -24123,7 +24241,7 @@ class SentryCocoa { ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer)>>)>>('objc_msgSend'); - late final __objc_msgSend_848 = __objc_msgSend_848Ptr.asFunction< + late final __objc_msgSend_852 = __objc_msgSend_852Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -24139,17 +24257,17 @@ class SentryCocoa { ffi.Pointer< ffi.NativeFunction< ffi.UnsignedLong Function(ffi.Pointer)>>)>> - _objc_msgSend_849( + _objc_msgSend_853( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_849( + return __objc_msgSend_853( obj, sel, ); } - late final __objc_msgSend_849Ptr = _lookup< + late final __objc_msgSend_853Ptr = _lookup< ffi.NativeFunction< ffi.Pointer< ffi.NativeFunction< @@ -24161,7 +24279,7 @@ class SentryCocoa { ffi.Pointer)>>)>> Function(ffi.Pointer, ffi.Pointer)>>( 'objc_msgSend'); - late final __objc_msgSend_849 = __objc_msgSend_849Ptr.asFunction< + late final __objc_msgSend_853 = __objc_msgSend_853Ptr.asFunction< ffi.Pointer< ffi.NativeFunction< ffi.Void Function( @@ -24174,7 +24292,7 @@ class SentryCocoa { late final _sel_setRelinquishFunction_1 = _registerName1("setRelinquishFunction:"); - void _objc_msgSend_850( + void _objc_msgSend_854( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< @@ -24187,14 +24305,14 @@ class SentryCocoa { ffi.Pointer)>>)>> value, ) { - return __objc_msgSend_850( + return __objc_msgSend_854( obj, sel, value, ); } - late final __objc_msgSend_850Ptr = _lookup< + late final __objc_msgSend_854Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -24208,7 +24326,7 @@ class SentryCocoa { ffi.UnsignedLong Function( ffi.Pointer)>>)>>)>>( 'objc_msgSend'); - late final __objc_msgSend_850 = __objc_msgSend_850Ptr.asFunction< + late final __objc_msgSend_854 = __objc_msgSend_854Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -24229,17 +24347,17 @@ class SentryCocoa { ffi.Pointer< ffi.NativeFunction< ffi.UnsignedLong Function(ffi.Pointer)>>, - ffi.Bool)>> _objc_msgSend_851( + ffi.Bool)>> _objc_msgSend_855( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_851( + return __objc_msgSend_855( obj, sel, ); } - late final __objc_msgSend_851Ptr = _lookup< + late final __objc_msgSend_855Ptr = _lookup< ffi.NativeFunction< ffi.Pointer< ffi.NativeFunction< @@ -24252,7 +24370,7 @@ class SentryCocoa { ffi.Bool)>> Function(ffi.Pointer, ffi.Pointer)>>( 'objc_msgSend'); - late final __objc_msgSend_851 = __objc_msgSend_851Ptr.asFunction< + late final __objc_msgSend_855 = __objc_msgSend_855Ptr.asFunction< ffi.Pointer< ffi.NativeFunction< ffi.Pointer Function( @@ -24265,7 +24383,7 @@ class SentryCocoa { Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setAcquireFunction_1 = _registerName1("setAcquireFunction:"); - void _objc_msgSend_852( + void _objc_msgSend_856( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< @@ -24278,14 +24396,14 @@ class SentryCocoa { ffi.Bool)>> value, ) { - return __objc_msgSend_852( + return __objc_msgSend_856( obj, sel, value, ); } - late final __objc_msgSend_852Ptr = _lookup< + late final __objc_msgSend_856Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -24299,7 +24417,7 @@ class SentryCocoa { ffi.UnsignedLong Function( ffi.Pointer)>>, ffi.Bool)>>)>>('objc_msgSend'); - late final __objc_msgSend_852 = __objc_msgSend_852Ptr.asFunction< + late final __objc_msgSend_856 = __objc_msgSend_856Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -24323,110 +24441,90 @@ class SentryCocoa { _registerName1("setUsesWeakReadAndWriteBarriers:"); late final _sel_initWithPointerFunctions_1 = _registerName1("initWithPointerFunctions:"); - instancetype _objc_msgSend_853( + instancetype _objc_msgSend_857( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer functions, ) { - return __objc_msgSend_853( + return __objc_msgSend_857( obj, sel, functions, ); } - late final __objc_msgSend_853Ptr = _lookup< + late final __objc_msgSend_857Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_853 = __objc_msgSend_853Ptr.asFunction< + late final __objc_msgSend_857 = __objc_msgSend_857Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_pointerArrayWithOptions_1 = _registerName1("pointerArrayWithOptions:"); - ffi.Pointer _objc_msgSend_854( + ffi.Pointer _objc_msgSend_858( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_854( + return __objc_msgSend_858( obj, sel, options, ); } - late final __objc_msgSend_854Ptr = _lookup< + late final __objc_msgSend_858Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_854 = __objc_msgSend_854Ptr.asFunction< + late final __objc_msgSend_858 = __objc_msgSend_858Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_pointerArrayWithPointerFunctions_1 = _registerName1("pointerArrayWithPointerFunctions:"); - ffi.Pointer _objc_msgSend_855( + ffi.Pointer _objc_msgSend_859( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer functions, ) { - return __objc_msgSend_855( + return __objc_msgSend_859( obj, sel, functions, ); } - late final __objc_msgSend_855Ptr = _lookup< + late final __objc_msgSend_859Ptr = _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_859 = __objc_msgSend_859Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_pointerFunctions1 = _registerName1("pointerFunctions"); - ffi.Pointer _objc_msgSend_856( + ffi.Pointer _objc_msgSend_860( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_856( + return __objc_msgSend_860( obj, sel, ); } - late final __objc_msgSend_856Ptr = _lookup< + late final __objc_msgSend_860Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_856 = __objc_msgSend_856Ptr.asFunction< + late final __objc_msgSend_860 = __objc_msgSend_860Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_pointerAtIndex_1 = _registerName1("pointerAtIndex:"); - ffi.Pointer _objc_msgSend_857( - ffi.Pointer obj, - ffi.Pointer sel, - int index, - ) { - return __objc_msgSend_857( - obj, - sel, - index, - ); - } - - late final __objc_msgSend_857Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_857 = __objc_msgSend_857Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_addPointer_1 = _registerName1("addPointer:"); late final _sel_removePointerAtIndex_1 = _registerName1("removePointerAtIndex:"); @@ -24434,13 +24532,13 @@ class SentryCocoa { _registerName1("insertPointer:atIndex:"); late final _sel_replacePointerAtIndex_withPointer_1 = _registerName1("replacePointerAtIndex:withPointer:"); - void _objc_msgSend_858( + void _objc_msgSend_861( ffi.Pointer obj, ffi.Pointer sel, int index, ffi.Pointer item, ) { - return __objc_msgSend_858( + return __objc_msgSend_861( obj, sel, index, @@ -24448,11 +24546,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_858Ptr = _lookup< + late final __objc_msgSend_861Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_858 = __objc_msgSend_858Ptr.asFunction< + late final __objc_msgSend_861 = __objc_msgSend_861Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); @@ -24464,21 +24562,21 @@ class SentryCocoa { _registerName1("pointerArrayWithWeakObjects"); late final _sel_strongObjectsPointerArray1 = _registerName1("strongObjectsPointerArray"); - ffi.Pointer _objc_msgSend_859( + ffi.Pointer _objc_msgSend_862( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_859( + return __objc_msgSend_862( obj, sel, ); } - late final __objc_msgSend_859Ptr = _lookup< + late final __objc_msgSend_862Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_859 = __objc_msgSend_859Ptr.asFunction< + late final __objc_msgSend_862 = __objc_msgSend_862Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -24486,21 +24584,21 @@ class SentryCocoa { _registerName1("weakObjectsPointerArray"); late final _class_NSProcessInfo1 = _getClass1("NSProcessInfo"); late final _sel_processInfo1 = _registerName1("processInfo"); - ffi.Pointer _objc_msgSend_860( + ffi.Pointer _objc_msgSend_863( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_860( + return __objc_msgSend_863( obj, sel, ); } - late final __objc_msgSend_860Ptr = _lookup< + late final __objc_msgSend_863Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_860 = __objc_msgSend_860Ptr.asFunction< + late final __objc_msgSend_863 = __objc_msgSend_863Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -24517,25 +24615,25 @@ class SentryCocoa { _registerName1("operatingSystemVersionString"); late final _sel_operatingSystemVersion1 = _registerName1("operatingSystemVersion"); - void _objc_msgSend_861( + void _objc_msgSend_864( ffi.Pointer stret, ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_861( + return __objc_msgSend_864( stret, obj, sel, ); } - late final __objc_msgSend_861Ptr = _lookup< + late final __objc_msgSend_864Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend_stret'); - late final __objc_msgSend_861 = __objc_msgSend_861Ptr.asFunction< + late final __objc_msgSend_864 = __objc_msgSend_864Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -24545,23 +24643,23 @@ class SentryCocoa { late final _sel_physicalMemory1 = _registerName1("physicalMemory"); late final _sel_isOperatingSystemAtLeastVersion_1 = _registerName1("isOperatingSystemAtLeastVersion:"); - bool _objc_msgSend_862( + bool _objc_msgSend_865( ffi.Pointer obj, ffi.Pointer sel, NSOperatingSystemVersion version, ) { - return __objc_msgSend_862( + return __objc_msgSend_865( obj, sel, version, ); } - late final __objc_msgSend_862Ptr = _lookup< + late final __objc_msgSend_865Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, NSOperatingSystemVersion)>>('objc_msgSend'); - late final __objc_msgSend_862 = __objc_msgSend_862Ptr.asFunction< + late final __objc_msgSend_865 = __objc_msgSend_865Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, NSOperatingSystemVersion)>(); @@ -24580,13 +24678,13 @@ class SentryCocoa { _registerName1("setAutomaticTerminationSupportEnabled:"); late final _sel_beginActivityWithOptions_reason_1 = _registerName1("beginActivityWithOptions:reason:"); - ffi.Pointer _objc_msgSend_863( + ffi.Pointer _objc_msgSend_866( ffi.Pointer obj, ffi.Pointer sel, int options, ffi.Pointer reason, ) { - return __objc_msgSend_863( + return __objc_msgSend_866( obj, sel, options, @@ -24594,28 +24692,28 @@ class SentryCocoa { ); } - late final __objc_msgSend_863Ptr = _lookup< + late final __objc_msgSend_866Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_863 = __objc_msgSend_863Ptr.asFunction< + late final __objc_msgSend_866 = __objc_msgSend_866Ptr.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_864( + void _objc_msgSend_867( ffi.Pointer obj, ffi.Pointer sel, int options, ffi.Pointer reason, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_864( + return __objc_msgSend_867( obj, sel, options, @@ -24624,7 +24722,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_864Ptr = _lookup< + late final __objc_msgSend_867Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -24632,19 +24730,19 @@ class SentryCocoa { ffi.Int32, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_864 = __objc_msgSend_864Ptr.asFunction< + late final __objc_msgSend_867 = __objc_msgSend_867Ptr.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_865( + void _objc_msgSend_868( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer reason, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_865( + return __objc_msgSend_868( obj, sel, reason, @@ -24652,77 +24750,81 @@ class SentryCocoa { ); } - late final __objc_msgSend_865Ptr = _lookup< + late final __objc_msgSend_868Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_865 = __objc_msgSend_865Ptr.asFunction< + late final __objc_msgSend_868 = __objc_msgSend_868Ptr.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_866( + int _objc_msgSend_869( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_866( + return __objc_msgSend_869( obj, sel, ); } - late final __objc_msgSend_866Ptr = _lookup< + late final __objc_msgSend_869Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_866 = __objc_msgSend_866Ptr.asFunction< + late final __objc_msgSend_869 = __objc_msgSend_869Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_isLowPowerModeEnabled1 = _registerName1("isLowPowerModeEnabled"); late final _sel_isMacCatalystApp1 = _registerName1("isMacCatalystApp"); late final _sel_isiOSAppOnMac1 = _registerName1("isiOSAppOnMac"); + late final _sel_processDirectoryPath1 = + _registerName1("processDirectoryPath"); + late final _sel_processPath1 = _registerName1("processPath"); + late final _sel_isiOSAppOnVisionOS1 = _registerName1("isiOSAppOnVisionOS"); late final _class_NSTextCheckingResult1 = _getClass1("NSTextCheckingResult"); late final _sel_resultType1 = _registerName1("resultType"); - int _objc_msgSend_867( + int _objc_msgSend_870( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_867( + return __objc_msgSend_870( obj, sel, ); } - late final __objc_msgSend_867Ptr = _lookup< + late final __objc_msgSend_870Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_867 = __objc_msgSend_867Ptr.asFunction< + late final __objc_msgSend_870 = __objc_msgSend_870Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_range1 = _registerName1("range"); late final _sel_orthography1 = _registerName1("orthography"); - ffi.Pointer _objc_msgSend_868( + ffi.Pointer _objc_msgSend_871( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_868( + return __objc_msgSend_871( obj, sel, ); } - late final __objc_msgSend_868Ptr = _lookup< + late final __objc_msgSend_871Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_868 = __objc_msgSend_868Ptr.asFunction< + late final __objc_msgSend_871 = __objc_msgSend_871Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -24734,14 +24836,14 @@ class SentryCocoa { late final _class_NSRegularExpression1 = _getClass1("NSRegularExpression"); late final _sel_regularExpressionWithPattern_options_error_1 = _registerName1("regularExpressionWithPattern:options:error:"); - ffi.Pointer _objc_msgSend_869( + ffi.Pointer _objc_msgSend_872( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer pattern, int options, ffi.Pointer> error, ) { - return __objc_msgSend_869( + return __objc_msgSend_872( obj, sel, pattern, @@ -24750,7 +24852,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_869Ptr = _lookup< + late final __objc_msgSend_872Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -24758,7 +24860,7 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_869 = __objc_msgSend_869Ptr.asFunction< + late final __objc_msgSend_872 = __objc_msgSend_872Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -24768,14 +24870,14 @@ class SentryCocoa { late final _sel_initWithPattern_options_error_1 = _registerName1("initWithPattern:options:error:"); - instancetype _objc_msgSend_870( + instancetype _objc_msgSend_873( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer pattern, int options, ffi.Pointer> error, ) { - return __objc_msgSend_870( + return __objc_msgSend_873( obj, sel, pattern, @@ -24784,7 +24886,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_870Ptr = _lookup< + late final __objc_msgSend_873Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -24792,7 +24894,7 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_870 = __objc_msgSend_870Ptr.asFunction< + late final __objc_msgSend_873 = __objc_msgSend_873Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -24802,21 +24904,21 @@ class SentryCocoa { late final _sel_pattern1 = _registerName1("pattern"); late final _sel_options1 = _registerName1("options"); - int _objc_msgSend_871( + int _objc_msgSend_874( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_871( + return __objc_msgSend_874( obj, sel, ); } - late final __objc_msgSend_871Ptr = _lookup< + late final __objc_msgSend_874Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_871 = __objc_msgSend_871Ptr.asFunction< + late final __objc_msgSend_874 = __objc_msgSend_874Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_numberOfCaptureGroups1 = @@ -24825,7 +24927,7 @@ class SentryCocoa { _registerName1("escapedPatternForString:"); late final _sel_enumerateMatchesInString_options_range_usingBlock_1 = _registerName1("enumerateMatchesInString:options:range:usingBlock:"); - void _objc_msgSend_872( + void _objc_msgSend_875( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, @@ -24833,7 +24935,7 @@ class SentryCocoa { _NSRange range, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_872( + return __objc_msgSend_875( obj, sel, string, @@ -24843,7 +24945,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_872Ptr = _lookup< + late final __objc_msgSend_875Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -24852,20 +24954,20 @@ class SentryCocoa { ffi.Int32, _NSRange, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_872 = __objc_msgSend_872Ptr.asFunction< + late final __objc_msgSend_875 = __objc_msgSend_875Ptr.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_873( + ffi.Pointer _objc_msgSend_876( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int options, _NSRange range, ) { - return __objc_msgSend_873( + return __objc_msgSend_876( obj, sel, string, @@ -24874,7 +24976,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_873Ptr = _lookup< + late final __objc_msgSend_876Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -24882,20 +24984,20 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_873 = __objc_msgSend_873Ptr.asFunction< + late final __objc_msgSend_876 = __objc_msgSend_876Ptr.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_874( + int _objc_msgSend_877( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int options, _NSRange range, ) { - return __objc_msgSend_874( + return __objc_msgSend_877( obj, sel, string, @@ -24904,7 +25006,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_874Ptr = _lookup< + late final __objc_msgSend_877Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedLong Function( ffi.Pointer, @@ -24912,20 +25014,20 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_874 = __objc_msgSend_874Ptr.asFunction< + late final __objc_msgSend_877 = __objc_msgSend_877Ptr.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_875( + ffi.Pointer _objc_msgSend_878( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int options, _NSRange range, ) { - return __objc_msgSend_875( + return __objc_msgSend_878( obj, sel, string, @@ -24934,7 +25036,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_875Ptr = _lookup< + late final __objc_msgSend_878Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -24942,13 +25044,13 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_875 = __objc_msgSend_875Ptr.asFunction< + late final __objc_msgSend_878 = __objc_msgSend_878Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, _NSRange)>(); late final _sel_rangeOfFirstMatchInString_options_range_1 = _registerName1("rangeOfFirstMatchInString:options:range:"); - void _objc_msgSend_876( + void _objc_msgSend_879( ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, @@ -24956,7 +25058,7 @@ class SentryCocoa { int options, _NSRange range, ) { - return __objc_msgSend_876( + return __objc_msgSend_879( stret, obj, sel, @@ -24966,7 +25068,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_876Ptr = _lookup< + late final __objc_msgSend_879Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer<_NSRange>, @@ -24975,14 +25077,14 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend_stret'); - late final __objc_msgSend_876 = __objc_msgSend_876Ptr.asFunction< + late final __objc_msgSend_879 = __objc_msgSend_879Ptr.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_877( + ffi.Pointer _objc_msgSend_880( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, @@ -24990,7 +25092,7 @@ class SentryCocoa { _NSRange range, ffi.Pointer templ, ) { - return __objc_msgSend_877( + return __objc_msgSend_880( obj, sel, string, @@ -25000,7 +25102,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_877Ptr = _lookup< + late final __objc_msgSend_880Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -25009,7 +25111,7 @@ class SentryCocoa { ffi.Int32, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_877 = __objc_msgSend_877Ptr.asFunction< + late final __objc_msgSend_880 = __objc_msgSend_880Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -25020,7 +25122,7 @@ class SentryCocoa { late final _sel_replaceMatchesInString_options_range_withTemplate_1 = _registerName1("replaceMatchesInString:options:range:withTemplate:"); - int _objc_msgSend_878( + int _objc_msgSend_881( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, @@ -25028,7 +25130,7 @@ class SentryCocoa { _NSRange range, ffi.Pointer templ, ) { - return __objc_msgSend_878( + return __objc_msgSend_881( obj, sel, string, @@ -25038,7 +25140,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_878Ptr = _lookup< + late final __objc_msgSend_881Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedLong Function( ffi.Pointer, @@ -25047,13 +25149,13 @@ class SentryCocoa { ffi.Int32, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_878 = __objc_msgSend_878Ptr.asFunction< + late final __objc_msgSend_881 = __objc_msgSend_881Ptr.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_879( + ffi.Pointer _objc_msgSend_882( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, @@ -25061,7 +25163,7 @@ class SentryCocoa { int offset, ffi.Pointer templ, ) { - return __objc_msgSend_879( + return __objc_msgSend_882( obj, sel, result, @@ -25071,7 +25173,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_879Ptr = _lookup< + late final __objc_msgSend_882Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -25080,7 +25182,7 @@ class SentryCocoa { ffi.Pointer, ffi.Long, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_879 = __objc_msgSend_879Ptr.asFunction< + late final __objc_msgSend_882 = __objc_msgSend_882Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -25092,21 +25194,21 @@ class SentryCocoa { late final _sel_escapedTemplateForString_1 = _registerName1("escapedTemplateForString:"); late final _sel_regularExpression1 = _registerName1("regularExpression"); - ffi.Pointer _objc_msgSend_880( + ffi.Pointer _objc_msgSend_883( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_880( + return __objc_msgSend_883( obj, sel, ); } - late final __objc_msgSend_880Ptr = _lookup< + late final __objc_msgSend_883Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_880 = __objc_msgSend_880Ptr.asFunction< + late final __objc_msgSend_883 = __objc_msgSend_883Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -25116,36 +25218,36 @@ class SentryCocoa { late final _sel_rangeWithName_1 = _registerName1("rangeWithName:"); late final _sel_resultByAdjustingRangesWithOffset_1 = _registerName1("resultByAdjustingRangesWithOffset:"); - ffi.Pointer _objc_msgSend_881( + ffi.Pointer _objc_msgSend_884( ffi.Pointer obj, ffi.Pointer sel, int offset, ) { - return __objc_msgSend_881( + return __objc_msgSend_884( obj, sel, offset, ); } - late final __objc_msgSend_881Ptr = _lookup< + late final __objc_msgSend_884Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_881 = __objc_msgSend_881Ptr.asFunction< + late final __objc_msgSend_884 = __objc_msgSend_884Ptr.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_882( + ffi.Pointer _objc_msgSend_885( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer orthography, ) { - return __objc_msgSend_882( + return __objc_msgSend_885( obj, sel, range, @@ -25153,48 +25255,48 @@ class SentryCocoa { ); } - late final __objc_msgSend_882Ptr = _lookup< + late final __objc_msgSend_885Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_882 = __objc_msgSend_882Ptr.asFunction< + late final __objc_msgSend_885 = __objc_msgSend_885Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_spellCheckingResultWithRange_1 = _registerName1("spellCheckingResultWithRange:"); - ffi.Pointer _objc_msgSend_883( + ffi.Pointer _objc_msgSend_886( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ) { - return __objc_msgSend_883( + return __objc_msgSend_886( obj, sel, range, ); } - late final __objc_msgSend_883Ptr = _lookup< + late final __objc_msgSend_886Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_883 = __objc_msgSend_883Ptr.asFunction< + late final __objc_msgSend_886 = __objc_msgSend_886Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_grammarCheckingResultWithRange_details_1 = _registerName1("grammarCheckingResultWithRange:details:"); - ffi.Pointer _objc_msgSend_884( + ffi.Pointer _objc_msgSend_887( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer details, ) { - return __objc_msgSend_884( + return __objc_msgSend_887( obj, sel, range, @@ -25202,26 +25304,26 @@ class SentryCocoa { ); } - late final __objc_msgSend_884Ptr = _lookup< + late final __objc_msgSend_887Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_884 = __objc_msgSend_884Ptr.asFunction< + late final __objc_msgSend_887 = __objc_msgSend_887Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_dateCheckingResultWithRange_date_1 = _registerName1("dateCheckingResultWithRange:date:"); - ffi.Pointer _objc_msgSend_885( + ffi.Pointer _objc_msgSend_888( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer date, ) { - return __objc_msgSend_885( + return __objc_msgSend_888( obj, sel, range, @@ -25229,20 +25331,20 @@ class SentryCocoa { ); } - late final __objc_msgSend_885Ptr = _lookup< + late final __objc_msgSend_888Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_885 = __objc_msgSend_885Ptr.asFunction< + late final __objc_msgSend_888 = __objc_msgSend_888Ptr.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_886( + ffi.Pointer _objc_msgSend_889( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, @@ -25250,7 +25352,7 @@ class SentryCocoa { ffi.Pointer timeZone, double duration, ) { - return __objc_msgSend_886( + return __objc_msgSend_889( obj, sel, range, @@ -25260,7 +25362,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_886Ptr = _lookup< + late final __objc_msgSend_889Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -25269,7 +25371,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_886 = __objc_msgSend_886Ptr.asFunction< + late final __objc_msgSend_889 = __objc_msgSend_889Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -25280,13 +25382,13 @@ class SentryCocoa { late final _sel_addressCheckingResultWithRange_components_1 = _registerName1("addressCheckingResultWithRange:components:"); - ffi.Pointer _objc_msgSend_887( + ffi.Pointer _objc_msgSend_890( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer components, ) { - return __objc_msgSend_887( + return __objc_msgSend_890( obj, sel, range, @@ -25294,26 +25396,26 @@ class SentryCocoa { ); } - late final __objc_msgSend_887Ptr = _lookup< + late final __objc_msgSend_890Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_887 = __objc_msgSend_887Ptr.asFunction< + late final __objc_msgSend_890 = __objc_msgSend_890Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_linkCheckingResultWithRange_URL_1 = _registerName1("linkCheckingResultWithRange:URL:"); - ffi.Pointer _objc_msgSend_888( + ffi.Pointer _objc_msgSend_891( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer url, ) { - return __objc_msgSend_888( + return __objc_msgSend_891( obj, sel, range, @@ -25321,26 +25423,26 @@ class SentryCocoa { ); } - late final __objc_msgSend_888Ptr = _lookup< + late final __objc_msgSend_891Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_888 = __objc_msgSend_888Ptr.asFunction< + late final __objc_msgSend_891 = __objc_msgSend_891Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_quoteCheckingResultWithRange_replacementString_1 = _registerName1("quoteCheckingResultWithRange:replacementString:"); - ffi.Pointer _objc_msgSend_889( + ffi.Pointer _objc_msgSend_892( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer replacementString, ) { - return __objc_msgSend_889( + return __objc_msgSend_892( obj, sel, range, @@ -25348,14 +25450,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_889Ptr = _lookup< + late final __objc_msgSend_892Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_889 = __objc_msgSend_889Ptr.asFunction< + late final __objc_msgSend_892 = __objc_msgSend_892Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); @@ -25368,14 +25470,14 @@ class SentryCocoa { late final _sel_correctionCheckingResultWithRange_replacementString_alternativeStrings_1 = _registerName1( "correctionCheckingResultWithRange:replacementString:alternativeStrings:"); - ffi.Pointer _objc_msgSend_890( + ffi.Pointer _objc_msgSend_893( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer replacementString, ffi.Pointer alternativeStrings, ) { - return __objc_msgSend_890( + return __objc_msgSend_893( obj, sel, range, @@ -25384,7 +25486,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_890Ptr = _lookup< + late final __objc_msgSend_893Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -25392,7 +25494,7 @@ class SentryCocoa { _NSRange, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_890 = __objc_msgSend_890Ptr.asFunction< + late final __objc_msgSend_893 = __objc_msgSend_893Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -25403,14 +25505,14 @@ class SentryCocoa { late final _sel_regularExpressionCheckingResultWithRanges_count_regularExpression_1 = _registerName1( "regularExpressionCheckingResultWithRanges:count:regularExpression:"); - ffi.Pointer _objc_msgSend_891( + ffi.Pointer _objc_msgSend_894( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_NSRange> ranges, int count, ffi.Pointer regularExpression, ) { - return __objc_msgSend_891( + return __objc_msgSend_894( obj, sel, ranges, @@ -25419,7 +25521,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_891Ptr = _lookup< + late final __objc_msgSend_894Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -25427,7 +25529,7 @@ class SentryCocoa { ffi.Pointer<_NSRange>, ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_891 = __objc_msgSend_891Ptr.asFunction< + late final __objc_msgSend_894 = __objc_msgSend_894Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -25441,55 +25543,55 @@ class SentryCocoa { _registerName1("transitInformationCheckingResultWithRange:components:"); late final _class_NSURLCache1 = _getClass1("NSURLCache"); late final _sel_sharedURLCache1 = _registerName1("sharedURLCache"); - ffi.Pointer _objc_msgSend_892( + ffi.Pointer _objc_msgSend_895( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_892( + return __objc_msgSend_895( obj, sel, ); } - late final __objc_msgSend_892Ptr = _lookup< + late final __objc_msgSend_895Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_892 = __objc_msgSend_892Ptr.asFunction< + late final __objc_msgSend_895 = __objc_msgSend_895Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setSharedURLCache_1 = _registerName1("setSharedURLCache:"); - void _objc_msgSend_893( + void _objc_msgSend_896( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_893( + return __objc_msgSend_896( obj, sel, value, ); } - late final __objc_msgSend_893Ptr = _lookup< + late final __objc_msgSend_896Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_893 = __objc_msgSend_893Ptr.asFunction< + late final __objc_msgSend_896 = __objc_msgSend_896Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithMemoryCapacity_diskCapacity_diskPath_1 = _registerName1("initWithMemoryCapacity:diskCapacity:diskPath:"); - instancetype _objc_msgSend_894( + instancetype _objc_msgSend_897( ffi.Pointer obj, ffi.Pointer sel, int memoryCapacity, int diskCapacity, ffi.Pointer path, ) { - return __objc_msgSend_894( + return __objc_msgSend_897( obj, sel, memoryCapacity, @@ -25498,7 +25600,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_894Ptr = _lookup< + late final __objc_msgSend_897Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -25506,20 +25608,20 @@ class SentryCocoa { ffi.UnsignedLong, ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_894 = __objc_msgSend_894Ptr.asFunction< + late final __objc_msgSend_897 = __objc_msgSend_897Ptr.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_895( + instancetype _objc_msgSend_898( ffi.Pointer obj, ffi.Pointer sel, int memoryCapacity, int diskCapacity, ffi.Pointer directoryURL, ) { - return __objc_msgSend_895( + return __objc_msgSend_898( obj, sel, memoryCapacity, @@ -25528,7 +25630,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_895Ptr = _lookup< + late final __objc_msgSend_898Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -25536,20 +25638,20 @@ class SentryCocoa { ffi.UnsignedLong, ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_895 = __objc_msgSend_895Ptr.asFunction< + late final __objc_msgSend_898 = __objc_msgSend_898Ptr.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_896( + instancetype _objc_msgSend_899( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer response, ffi.Pointer data, ) { - return __objc_msgSend_896( + return __objc_msgSend_899( obj, sel, response, @@ -25557,20 +25659,20 @@ class SentryCocoa { ); } - late final __objc_msgSend_896Ptr = _lookup< + late final __objc_msgSend_899Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_896 = __objc_msgSend_896Ptr.asFunction< + late final __objc_msgSend_899 = __objc_msgSend_899Ptr.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_897( + instancetype _objc_msgSend_900( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer response, @@ -25578,7 +25680,7 @@ class SentryCocoa { ffi.Pointer userInfo, int storagePolicy, ) { - return __objc_msgSend_897( + return __objc_msgSend_900( obj, sel, response, @@ -25588,7 +25690,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_897Ptr = _lookup< + late final __objc_msgSend_900Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -25597,7 +25699,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_897 = __objc_msgSend_897Ptr.asFunction< + late final __objc_msgSend_900 = __objc_msgSend_900Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -25607,54 +25709,54 @@ class SentryCocoa { int)>(); late final _sel_storagePolicy1 = _registerName1("storagePolicy"); - int _objc_msgSend_898( + int _objc_msgSend_901( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_898( + return __objc_msgSend_901( obj, sel, ); } - late final __objc_msgSend_898Ptr = _lookup< + late final __objc_msgSend_901Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_898 = __objc_msgSend_898Ptr.asFunction< + late final __objc_msgSend_901 = __objc_msgSend_901Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_cachedResponseForRequest_1 = _registerName1("cachedResponseForRequest:"); - ffi.Pointer _objc_msgSend_899( + ffi.Pointer _objc_msgSend_902( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_899( + return __objc_msgSend_902( obj, sel, request, ); } - late final __objc_msgSend_899Ptr = _lookup< + late final __objc_msgSend_902Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_899 = __objc_msgSend_899Ptr.asFunction< + late final __objc_msgSend_902 = __objc_msgSend_902Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_storeCachedResponse_forRequest_1 = _registerName1("storeCachedResponse:forRequest:"); - void _objc_msgSend_900( + void _objc_msgSend_903( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer cachedResponse, ffi.Pointer request, ) { - return __objc_msgSend_900( + return __objc_msgSend_903( obj, sel, cachedResponse, @@ -25662,36 +25764,36 @@ class SentryCocoa { ); } - late final __objc_msgSend_900Ptr = _lookup< + late final __objc_msgSend_903Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_900 = __objc_msgSend_900Ptr.asFunction< + late final __objc_msgSend_903 = __objc_msgSend_903Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_removeCachedResponseForRequest_1 = _registerName1("removeCachedResponseForRequest:"); - void _objc_msgSend_901( + void _objc_msgSend_904( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_901( + return __objc_msgSend_904( obj, sel, request, ); } - late final __objc_msgSend_901Ptr = _lookup< + late final __objc_msgSend_904Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_901 = __objc_msgSend_901Ptr.asFunction< + late final __objc_msgSend_904 = __objc_msgSend_904Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -25708,13 +25810,13 @@ class SentryCocoa { late final _class_NSURLSessionDataTask1 = _getClass1("NSURLSessionDataTask"); late final _sel_storeCachedResponse_forDataTask_1 = _registerName1("storeCachedResponse:forDataTask:"); - void _objc_msgSend_902( + void _objc_msgSend_905( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer cachedResponse, ffi.Pointer dataTask, ) { - return __objc_msgSend_902( + return __objc_msgSend_905( obj, sel, cachedResponse, @@ -25722,26 +25824,26 @@ class SentryCocoa { ); } - late final __objc_msgSend_902Ptr = _lookup< + late final __objc_msgSend_905Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_902 = __objc_msgSend_902Ptr.asFunction< + late final __objc_msgSend_905 = __objc_msgSend_905Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_getCachedResponseForDataTask_completionHandler_1 = _registerName1("getCachedResponseForDataTask:completionHandler:"); - void _objc_msgSend_903( + void _objc_msgSend_906( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer dataTask, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_903( + return __objc_msgSend_906( obj, sel, dataTask, @@ -25749,50 +25851,50 @@ class SentryCocoa { ); } - late final __objc_msgSend_903Ptr = _lookup< + late final __objc_msgSend_906Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_903 = __objc_msgSend_903Ptr.asFunction< + late final __objc_msgSend_906 = __objc_msgSend_906Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_removeCachedResponseForDataTask_1 = _registerName1("removeCachedResponseForDataTask:"); - void _objc_msgSend_904( + void _objc_msgSend_907( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer dataTask, ) { - return __objc_msgSend_904( + return __objc_msgSend_907( obj, sel, dataTask, ); } - late final __objc_msgSend_904Ptr = _lookup< + late final __objc_msgSend_907Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_904 = __objc_msgSend_904Ptr.asFunction< + late final __objc_msgSend_907 = __objc_msgSend_907Ptr.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_905( + instancetype _objc_msgSend_908( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer delegate, bool startImmediately, ) { - return __objc_msgSend_905( + return __objc_msgSend_908( obj, sel, request, @@ -25801,7 +25903,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_905Ptr = _lookup< + late final __objc_msgSend_908Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -25809,19 +25911,19 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_905 = __objc_msgSend_905Ptr.asFunction< + late final __objc_msgSend_908 = __objc_msgSend_908Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_initWithRequest_delegate_1 = _registerName1("initWithRequest:delegate:"); - instancetype _objc_msgSend_906( + instancetype _objc_msgSend_909( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer delegate, ) { - return __objc_msgSend_906( + return __objc_msgSend_909( obj, sel, request, @@ -25829,26 +25931,26 @@ class SentryCocoa { ); } - late final __objc_msgSend_906Ptr = _lookup< + late final __objc_msgSend_909Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_906 = __objc_msgSend_906Ptr.asFunction< + late final __objc_msgSend_909 = __objc_msgSend_909Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_connectionWithRequest_delegate_1 = _registerName1("connectionWithRequest:delegate:"); - ffi.Pointer _objc_msgSend_907( + ffi.Pointer _objc_msgSend_910( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer delegate, ) { - return __objc_msgSend_907( + return __objc_msgSend_910( obj, sel, request, @@ -25856,14 +25958,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_907Ptr = _lookup< + late final __objc_msgSend_910Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_907 = __objc_msgSend_907Ptr.asFunction< + late final __objc_msgSend_910 = __objc_msgSend_910Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -25873,57 +25975,57 @@ class SentryCocoa { late final _sel_unscheduleFromRunLoop_forMode_1 = _registerName1("unscheduleFromRunLoop:forMode:"); late final _sel_setDelegateQueue_1 = _registerName1("setDelegateQueue:"); - void _objc_msgSend_908( + void _objc_msgSend_911( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer queue, ) { - return __objc_msgSend_908( + return __objc_msgSend_911( obj, sel, queue, ); } - late final __objc_msgSend_908Ptr = _lookup< + late final __objc_msgSend_911Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_908 = __objc_msgSend_908Ptr.asFunction< + late final __objc_msgSend_911 = __objc_msgSend_911Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_canHandleRequest_1 = _registerName1("canHandleRequest:"); - bool _objc_msgSend_909( + bool _objc_msgSend_912( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_909( + return __objc_msgSend_912( obj, sel, request, ); } - late final __objc_msgSend_909Ptr = _lookup< + late final __objc_msgSend_912Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_909 = __objc_msgSend_909Ptr.asFunction< + late final __objc_msgSend_912 = __objc_msgSend_912Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_sendSynchronousRequest_returningResponse_error_1 = _registerName1("sendSynchronousRequest:returningResponse:error:"); - ffi.Pointer _objc_msgSend_910( + ffi.Pointer _objc_msgSend_913( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer> response, ffi.Pointer> error, ) { - return __objc_msgSend_910( + return __objc_msgSend_913( obj, sel, request, @@ -25932,7 +26034,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_910Ptr = _lookup< + late final __objc_msgSend_913Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -25940,7 +26042,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_910 = __objc_msgSend_910Ptr.asFunction< + late final __objc_msgSend_913 = __objc_msgSend_913Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -25950,14 +26052,14 @@ class SentryCocoa { late final _sel_sendAsynchronousRequest_queue_completionHandler_1 = _registerName1("sendAsynchronousRequest:queue:completionHandler:"); - void _objc_msgSend_911( + void _objc_msgSend_914( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer queue, ffi.Pointer<_ObjCBlock> handler, ) { - return __objc_msgSend_911( + return __objc_msgSend_914( obj, sel, request, @@ -25966,7 +26068,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_911Ptr = _lookup< + late final __objc_msgSend_914Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -25974,7 +26076,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_911 = __objc_msgSend_911Ptr.asFunction< + late final __objc_msgSend_914 = __objc_msgSend_914Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -25984,33 +26086,33 @@ class SentryCocoa { late final _class_NSURLCredential1 = _getClass1("NSURLCredential"); late final _sel_persistence1 = _registerName1("persistence"); - int _objc_msgSend_912( + int _objc_msgSend_915( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_912( + return __objc_msgSend_915( obj, sel, ); } - late final __objc_msgSend_912Ptr = _lookup< + late final __objc_msgSend_915Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_912 = __objc_msgSend_912Ptr.asFunction< + late final __objc_msgSend_915 = __objc_msgSend_915Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithUser_password_persistence_1 = _registerName1("initWithUser:password:persistence:"); - instancetype _objc_msgSend_913( + instancetype _objc_msgSend_916( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer user, ffi.Pointer password, int persistence, ) { - return __objc_msgSend_913( + return __objc_msgSend_916( obj, sel, user, @@ -26019,7 +26121,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_913Ptr = _lookup< + late final __objc_msgSend_916Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -26027,20 +26129,20 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_913 = __objc_msgSend_913Ptr.asFunction< + late final __objc_msgSend_916 = __objc_msgSend_916Ptr.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_914( + ffi.Pointer _objc_msgSend_917( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer user, ffi.Pointer password, int persistence, ) { - return __objc_msgSend_914( + return __objc_msgSend_917( obj, sel, user, @@ -26049,7 +26151,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_914Ptr = _lookup< + late final __objc_msgSend_917Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -26057,7 +26159,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_914 = __objc_msgSend_914Ptr.asFunction< + late final __objc_msgSend_917 = __objc_msgSend_917Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -26068,14 +26170,14 @@ class SentryCocoa { late final _sel_hasPassword1 = _registerName1("hasPassword"); late final _sel_initWithIdentity_certificates_persistence_1 = _registerName1("initWithIdentity:certificates:persistence:"); - instancetype _objc_msgSend_915( + instancetype _objc_msgSend_918( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<__SecIdentity> identity, ffi.Pointer certArray, int persistence, ) { - return __objc_msgSend_915( + return __objc_msgSend_918( obj, sel, identity, @@ -26084,7 +26186,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_915Ptr = _lookup< + late final __objc_msgSend_918Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -26092,20 +26194,20 @@ class SentryCocoa { ffi.Pointer<__SecIdentity>, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_915 = __objc_msgSend_915Ptr.asFunction< + late final __objc_msgSend_918 = __objc_msgSend_918Ptr.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_916( + ffi.Pointer _objc_msgSend_919( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<__SecIdentity> identity, ffi.Pointer certArray, int persistence, ) { - return __objc_msgSend_916( + return __objc_msgSend_919( obj, sel, identity, @@ -26114,7 +26216,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_916Ptr = _lookup< + late final __objc_msgSend_919Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -26122,7 +26224,7 @@ class SentryCocoa { ffi.Pointer<__SecIdentity>, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_916 = __objc_msgSend_916Ptr.asFunction< + late final __objc_msgSend_919 = __objc_msgSend_919Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -26131,71 +26233,71 @@ class SentryCocoa { int)>(); late final _sel_identity1 = _registerName1("identity"); - ffi.Pointer<__SecIdentity> _objc_msgSend_917( + ffi.Pointer<__SecIdentity> _objc_msgSend_920( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_917( + return __objc_msgSend_920( obj, sel, ); } - late final __objc_msgSend_917Ptr = _lookup< + late final __objc_msgSend_920Ptr = _lookup< ffi.NativeFunction< ffi.Pointer<__SecIdentity> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_917 = __objc_msgSend_917Ptr.asFunction< + late final __objc_msgSend_920 = __objc_msgSend_920Ptr.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_918( + instancetype _objc_msgSend_921( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<__SecTrust> trust, ) { - return __objc_msgSend_918( + return __objc_msgSend_921( obj, sel, trust, ); } - late final __objc_msgSend_918Ptr = _lookup< + late final __objc_msgSend_921Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<__SecTrust>)>>('objc_msgSend'); - late final __objc_msgSend_918 = __objc_msgSend_918Ptr.asFunction< + late final __objc_msgSend_921 = __objc_msgSend_921Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<__SecTrust>)>(); late final _sel_credentialForTrust_1 = _registerName1("credentialForTrust:"); - ffi.Pointer _objc_msgSend_919( + ffi.Pointer _objc_msgSend_922( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<__SecTrust> trust, ) { - return __objc_msgSend_919( + return __objc_msgSend_922( obj, sel, trust, ); } - late final __objc_msgSend_919Ptr = _lookup< + late final __objc_msgSend_922Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<__SecTrust>)>>('objc_msgSend'); - late final __objc_msgSend_919 = __objc_msgSend_919Ptr.asFunction< + late final __objc_msgSend_922 = __objc_msgSend_922Ptr.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_920( + instancetype _objc_msgSend_923( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer host, @@ -26204,7 +26306,7 @@ class SentryCocoa { ffi.Pointer realm, ffi.Pointer authenticationMethod, ) { - return __objc_msgSend_920( + return __objc_msgSend_923( obj, sel, host, @@ -26215,7 +26317,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_920Ptr = _lookup< + late final __objc_msgSend_923Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -26225,7 +26327,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_920 = __objc_msgSend_920Ptr.asFunction< + late final __objc_msgSend_923 = __objc_msgSend_923Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -26247,21 +26349,21 @@ class SentryCocoa { _registerName1("authenticationMethod"); late final _sel_distinguishedNames1 = _registerName1("distinguishedNames"); late final _sel_serverTrust1 = _registerName1("serverTrust"); - ffi.Pointer<__SecTrust> _objc_msgSend_921( + ffi.Pointer<__SecTrust> _objc_msgSend_924( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_921( + return __objc_msgSend_924( obj, sel, ); } - late final __objc_msgSend_921Ptr = _lookup< + late final __objc_msgSend_924Ptr = _lookup< ffi.NativeFunction< ffi.Pointer<__SecTrust> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_921 = __objc_msgSend_921Ptr.asFunction< + late final __objc_msgSend_924 = __objc_msgSend_924Ptr.asFunction< ffi.Pointer<__SecTrust> Function( ffi.Pointer, ffi.Pointer)>(); @@ -26269,56 +26371,56 @@ class SentryCocoa { _getClass1("NSURLCredentialStorage"); late final _sel_sharedCredentialStorage1 = _registerName1("sharedCredentialStorage"); - ffi.Pointer _objc_msgSend_922( + ffi.Pointer _objc_msgSend_925( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_922( + return __objc_msgSend_925( obj, sel, ); } - late final __objc_msgSend_922Ptr = _lookup< + late final __objc_msgSend_925Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_922 = __objc_msgSend_922Ptr.asFunction< + late final __objc_msgSend_925 = __objc_msgSend_925Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_credentialsForProtectionSpace_1 = _registerName1("credentialsForProtectionSpace:"); - ffi.Pointer _objc_msgSend_923( + ffi.Pointer _objc_msgSend_926( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer space, ) { - return __objc_msgSend_923( + return __objc_msgSend_926( obj, sel, space, ); } - late final __objc_msgSend_923Ptr = _lookup< + late final __objc_msgSend_926Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_923 = __objc_msgSend_923Ptr.asFunction< + late final __objc_msgSend_926 = __objc_msgSend_926Ptr.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_924( + void _objc_msgSend_927( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer credential, ffi.Pointer space, ) { - return __objc_msgSend_924( + return __objc_msgSend_927( obj, sel, credential, @@ -26326,14 +26428,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_924Ptr = _lookup< + late final __objc_msgSend_927Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_924 = __objc_msgSend_924Ptr.asFunction< + late final __objc_msgSend_927 = __objc_msgSend_927Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -26341,14 +26443,14 @@ class SentryCocoa { _registerName1("removeCredential:forProtectionSpace:"); late final _sel_removeCredential_forProtectionSpace_options_1 = _registerName1("removeCredential:forProtectionSpace:options:"); - void _objc_msgSend_925( + void _objc_msgSend_928( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer credential, ffi.Pointer space, ffi.Pointer options, ) { - return __objc_msgSend_925( + return __objc_msgSend_928( obj, sel, credential, @@ -26357,7 +26459,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_925Ptr = _lookup< + late final __objc_msgSend_928Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -26365,7 +26467,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_925 = __objc_msgSend_925Ptr.asFunction< + late final __objc_msgSend_928 = __objc_msgSend_928Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -26375,23 +26477,23 @@ class SentryCocoa { late final _sel_defaultCredentialForProtectionSpace_1 = _registerName1("defaultCredentialForProtectionSpace:"); - ffi.Pointer _objc_msgSend_926( + ffi.Pointer _objc_msgSend_929( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer space, ) { - return __objc_msgSend_926( + return __objc_msgSend_929( obj, sel, space, ); } - late final __objc_msgSend_926Ptr = _lookup< + late final __objc_msgSend_929Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_926 = __objc_msgSend_926Ptr.asFunction< + late final __objc_msgSend_929 = __objc_msgSend_929Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -26400,14 +26502,14 @@ class SentryCocoa { late final _sel_getCredentialsForProtectionSpace_task_completionHandler_1 = _registerName1( "getCredentialsForProtectionSpace:task:completionHandler:"); - void _objc_msgSend_927( + void _objc_msgSend_930( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer protectionSpace, ffi.Pointer task, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_927( + return __objc_msgSend_930( obj, sel, protectionSpace, @@ -26416,7 +26518,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_927Ptr = _lookup< + late final __objc_msgSend_930Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -26424,7 +26526,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_927 = __objc_msgSend_927Ptr.asFunction< + late final __objc_msgSend_930 = __objc_msgSend_930Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -26434,14 +26536,14 @@ class SentryCocoa { late final _sel_setCredential_forProtectionSpace_task_1 = _registerName1("setCredential:forProtectionSpace:task:"); - void _objc_msgSend_928( + void _objc_msgSend_931( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer credential, ffi.Pointer protectionSpace, ffi.Pointer task, ) { - return __objc_msgSend_928( + return __objc_msgSend_931( obj, sel, credential, @@ -26450,7 +26552,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_928Ptr = _lookup< + late final __objc_msgSend_931Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -26458,7 +26560,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_928 = __objc_msgSend_928Ptr.asFunction< + late final __objc_msgSend_931 = __objc_msgSend_931Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -26468,7 +26570,7 @@ class SentryCocoa { late final _sel_removeCredential_forProtectionSpace_options_task_1 = _registerName1("removeCredential:forProtectionSpace:options:task:"); - void _objc_msgSend_929( + void _objc_msgSend_932( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer credential, @@ -26476,7 +26578,7 @@ class SentryCocoa { ffi.Pointer options, ffi.Pointer task, ) { - return __objc_msgSend_929( + return __objc_msgSend_932( obj, sel, credential, @@ -26486,7 +26588,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_929Ptr = _lookup< + late final __objc_msgSend_932Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -26495,7 +26597,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_929 = __objc_msgSend_929Ptr.asFunction< + late final __objc_msgSend_932 = __objc_msgSend_932Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -26507,14 +26609,14 @@ class SentryCocoa { late final _sel_getDefaultCredentialForProtectionSpace_task_completionHandler_1 = _registerName1( "getDefaultCredentialForProtectionSpace:task:completionHandler:"); - void _objc_msgSend_930( + void _objc_msgSend_933( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer space, ffi.Pointer task, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_930( + return __objc_msgSend_933( obj, sel, space, @@ -26523,7 +26625,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_930Ptr = _lookup< + late final __objc_msgSend_933Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -26531,7 +26633,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_930 = __objc_msgSend_930Ptr.asFunction< + late final __objc_msgSend_933 = __objc_msgSend_933Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -26544,14 +26646,14 @@ class SentryCocoa { late final _class_NSURLProtocol1 = _getClass1("NSURLProtocol"); late final _sel_initWithRequest_cachedResponse_client_1 = _registerName1("initWithRequest:cachedResponse:client:"); - instancetype _objc_msgSend_931( + instancetype _objc_msgSend_934( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer cachedResponse, ffi.Pointer client, ) { - return __objc_msgSend_931( + return __objc_msgSend_934( obj, sel, request, @@ -26560,7 +26662,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_931Ptr = _lookup< + late final __objc_msgSend_934Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -26568,7 +26670,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_931 = __objc_msgSend_931Ptr.asFunction< + late final __objc_msgSend_934 = __objc_msgSend_934Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -26579,56 +26681,56 @@ class SentryCocoa { late final _sel_client1 = _registerName1("client"); late final _sel_request1 = _registerName1("request"); late final _sel_cachedResponse1 = _registerName1("cachedResponse"); - ffi.Pointer _objc_msgSend_932( + ffi.Pointer _objc_msgSend_935( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_932( + return __objc_msgSend_935( obj, sel, ); } - late final __objc_msgSend_932Ptr = _lookup< + late final __objc_msgSend_935Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_932 = __objc_msgSend_932Ptr.asFunction< + late final __objc_msgSend_935 = __objc_msgSend_935Ptr.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_933( + ffi.Pointer _objc_msgSend_936( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_933( + return __objc_msgSend_936( obj, sel, request, ); } - late final __objc_msgSend_933Ptr = _lookup< + late final __objc_msgSend_936Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_933 = __objc_msgSend_933Ptr.asFunction< + late final __objc_msgSend_936 = __objc_msgSend_936Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_requestIsCacheEquivalent_toRequest_1 = _registerName1("requestIsCacheEquivalent:toRequest:"); - bool _objc_msgSend_934( + bool _objc_msgSend_937( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer a, ffi.Pointer b, ) { - return __objc_msgSend_934( + return __objc_msgSend_937( obj, sel, a, @@ -26636,14 +26738,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_934Ptr = _lookup< + late final __objc_msgSend_937Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_934 = __objc_msgSend_934Ptr.asFunction< + late final __objc_msgSend_937 = __objc_msgSend_937Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -26651,13 +26753,13 @@ class SentryCocoa { late final _sel_stopLoading1 = _registerName1("stopLoading"); late final _sel_propertyForKey_inRequest_1 = _registerName1("propertyForKey:inRequest:"); - ffi.Pointer _objc_msgSend_935( + ffi.Pointer _objc_msgSend_938( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ffi.Pointer request, ) { - return __objc_msgSend_935( + return __objc_msgSend_938( obj, sel, key, @@ -26665,14 +26767,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_935Ptr = _lookup< + late final __objc_msgSend_938Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_935 = __objc_msgSend_935Ptr.asFunction< + late final __objc_msgSend_938 = __objc_msgSend_938Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -26682,46 +26784,46 @@ class SentryCocoa { late final _class_NSMutableURLRequest1 = _getClass1("NSMutableURLRequest"); late final _sel_setURL_1 = _registerName1("setURL:"); late final _sel_setCachePolicy_1 = _registerName1("setCachePolicy:"); - void _objc_msgSend_936( + void _objc_msgSend_939( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_936( + return __objc_msgSend_939( obj, sel, value, ); } - late final __objc_msgSend_936Ptr = _lookup< + late final __objc_msgSend_939Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_936 = __objc_msgSend_936Ptr.asFunction< + late final __objc_msgSend_939 = __objc_msgSend_939Ptr.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_937( + void _objc_msgSend_940( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_937( + return __objc_msgSend_940( obj, sel, value, ); } - late final __objc_msgSend_937Ptr = _lookup< + late final __objc_msgSend_940Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_937 = __objc_msgSend_937Ptr.asFunction< + late final __objc_msgSend_940 = __objc_msgSend_940Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setAllowsCellularAccess_1 = @@ -26733,27 +26835,31 @@ class SentryCocoa { late final _sel_setAssumesHTTP3Capable_1 = _registerName1("setAssumesHTTP3Capable:"); late final _sel_setAttribution_1 = _registerName1("setAttribution:"); - void _objc_msgSend_938( + void _objc_msgSend_941( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_938( + return __objc_msgSend_941( obj, sel, value, ); } - late final __objc_msgSend_938Ptr = _lookup< + late final __objc_msgSend_941Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_938 = __objc_msgSend_938Ptr.asFunction< + late final __objc_msgSend_941 = __objc_msgSend_941Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setRequiresDNSSECValidation_1 = _registerName1("setRequiresDNSSECValidation:"); + late final _sel_setAllowsPersistentDNS_1 = + _registerName1("setAllowsPersistentDNS:"); + late final _sel_setCookiePartitionIdentifier_1 = + _registerName1("setCookiePartitionIdentifier:"); late final _sel_setHTTPMethod_1 = _registerName1("setHTTPMethod:"); late final _sel_setAllHTTPHeaderFields_1 = _registerName1("setAllHTTPHeaderFields:"); @@ -26762,44 +26868,44 @@ class SentryCocoa { late final _sel_addValue_forHTTPHeaderField_1 = _registerName1("addValue:forHTTPHeaderField:"); late final _sel_setHTTPBody_1 = _registerName1("setHTTPBody:"); - void _objc_msgSend_939( + void _objc_msgSend_942( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_939( + return __objc_msgSend_942( obj, sel, value, ); } - late final __objc_msgSend_939Ptr = _lookup< + late final __objc_msgSend_942Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_939 = __objc_msgSend_939Ptr.asFunction< + late final __objc_msgSend_942 = __objc_msgSend_942Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_setHTTPBodyStream_1 = _registerName1("setHTTPBodyStream:"); - void _objc_msgSend_940( + void _objc_msgSend_943( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_940( + return __objc_msgSend_943( obj, sel, value, ); } - late final __objc_msgSend_940Ptr = _lookup< + late final __objc_msgSend_943Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_940 = __objc_msgSend_940Ptr.asFunction< + late final __objc_msgSend_943 = __objc_msgSend_943Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -26809,14 +26915,14 @@ class SentryCocoa { _registerName1("setHTTPShouldUsePipelining:"); late final _sel_setProperty_forKey_inRequest_1 = _registerName1("setProperty:forKey:inRequest:"); - void _objc_msgSend_941( + void _objc_msgSend_944( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ffi.Pointer key, ffi.Pointer request, ) { - return __objc_msgSend_941( + return __objc_msgSend_944( obj, sel, value, @@ -26825,7 +26931,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_941Ptr = _lookup< + late final __objc_msgSend_944Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -26833,7 +26939,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_941 = __objc_msgSend_941Ptr.asFunction< + late final __objc_msgSend_944 = __objc_msgSend_944Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -26843,13 +26949,13 @@ class SentryCocoa { late final _sel_removePropertyForKey_inRequest_1 = _registerName1("removePropertyForKey:inRequest:"); - void _objc_msgSend_942( + void _objc_msgSend_945( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ffi.Pointer request, ) { - return __objc_msgSend_942( + return __objc_msgSend_945( obj, sel, key, @@ -26857,50 +26963,50 @@ class SentryCocoa { ); } - late final __objc_msgSend_942Ptr = _lookup< + late final __objc_msgSend_945Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_942 = __objc_msgSend_942Ptr.asFunction< + late final __objc_msgSend_945 = __objc_msgSend_945Ptr.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_943( + bool _objc_msgSend_946( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer task, ) { - return __objc_msgSend_943( + return __objc_msgSend_946( obj, sel, task, ); } - late final __objc_msgSend_943Ptr = _lookup< + late final __objc_msgSend_946Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_943 = __objc_msgSend_943Ptr.asFunction< + late final __objc_msgSend_946 = __objc_msgSend_946Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithTask_cachedResponse_client_1 = _registerName1("initWithTask:cachedResponse:client:"); - instancetype _objc_msgSend_944( + instancetype _objc_msgSend_947( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer task, ffi.Pointer cachedResponse, ffi.Pointer client, ) { - return __objc_msgSend_944( + return __objc_msgSend_947( obj, sel, task, @@ -26909,7 +27015,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_944Ptr = _lookup< + late final __objc_msgSend_947Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -26917,7 +27023,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_944 = __objc_msgSend_944Ptr.asFunction< + late final __objc_msgSend_947 = __objc_msgSend_947Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -26926,43 +27032,43 @@ class SentryCocoa { ffi.Pointer)>(); late final _sel_task1 = _registerName1("task"); - ffi.Pointer _objc_msgSend_945( + ffi.Pointer _objc_msgSend_948( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_945( + return __objc_msgSend_948( obj, sel, ); } - late final __objc_msgSend_945Ptr = _lookup< + late final __objc_msgSend_948Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_945 = __objc_msgSend_945Ptr.asFunction< + late final __objc_msgSend_948 = __objc_msgSend_948Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _class_NSXMLParser1 = _getClass1("NSXMLParser"); late final _sel_initWithStream_1 = _registerName1("initWithStream:"); - instancetype _objc_msgSend_946( + instancetype _objc_msgSend_949( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer stream, ) { - return __objc_msgSend_946( + return __objc_msgSend_949( obj, sel, stream, ); } - late final __objc_msgSend_946Ptr = _lookup< + late final __objc_msgSend_949Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_946 = __objc_msgSend_946Ptr.asFunction< + late final __objc_msgSend_949 = __objc_msgSend_949Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -26976,65 +27082,65 @@ class SentryCocoa { _registerName1("setShouldReportNamespacePrefixes:"); late final _sel_externalEntityResolvingPolicy1 = _registerName1("externalEntityResolvingPolicy"); - int _objc_msgSend_947( + int _objc_msgSend_950( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_947( + return __objc_msgSend_950( obj, sel, ); } - late final __objc_msgSend_947Ptr = _lookup< + late final __objc_msgSend_950Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_947 = __objc_msgSend_947Ptr.asFunction< + late final __objc_msgSend_950 = __objc_msgSend_950Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setExternalEntityResolvingPolicy_1 = _registerName1("setExternalEntityResolvingPolicy:"); - void _objc_msgSend_948( + void _objc_msgSend_951( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_948( + return __objc_msgSend_951( obj, sel, value, ); } - late final __objc_msgSend_948Ptr = _lookup< + late final __objc_msgSend_951Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_948 = __objc_msgSend_948Ptr.asFunction< + late final __objc_msgSend_951 = __objc_msgSend_951Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_allowedExternalEntityURLs1 = _registerName1("allowedExternalEntityURLs"); late final _sel_setAllowedExternalEntityURLs_1 = _registerName1("setAllowedExternalEntityURLs:"); - void _objc_msgSend_949( + void _objc_msgSend_952( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_949( + return __objc_msgSend_952( obj, sel, value, ); } - late final __objc_msgSend_949Ptr = _lookup< + late final __objc_msgSend_952Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_949 = __objc_msgSend_949Ptr.asFunction< + late final __objc_msgSend_952 = __objc_msgSend_952Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -27052,14 +27158,14 @@ class SentryCocoa { late final _class_NSFileWrapper1 = _getClass1("NSFileWrapper"); late final _sel_initWithURL_options_error_1 = _registerName1("initWithURL:options:error:"); - instancetype _objc_msgSend_950( + instancetype _objc_msgSend_953( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, int options, ffi.Pointer> outError, ) { - return __objc_msgSend_950( + return __objc_msgSend_953( obj, sel, url, @@ -27068,7 +27174,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_950Ptr = _lookup< + late final __objc_msgSend_953Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -27076,7 +27182,7 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_950 = __objc_msgSend_950Ptr.asFunction< + late final __objc_msgSend_953 = __objc_msgSend_953Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -27106,14 +27212,14 @@ class SentryCocoa { _registerName1("matchesContentsOfURL:"); late final _sel_readFromURL_options_error_1 = _registerName1("readFromURL:options:error:"); - bool _objc_msgSend_951( + bool _objc_msgSend_954( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, int options, ffi.Pointer> outError, ) { - return __objc_msgSend_951( + return __objc_msgSend_954( obj, sel, url, @@ -27122,7 +27228,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_951Ptr = _lookup< + late final __objc_msgSend_954Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -27130,7 +27236,7 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_951 = __objc_msgSend_951Ptr.asFunction< + late final __objc_msgSend_954 = __objc_msgSend_954Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -27140,7 +27246,7 @@ class SentryCocoa { late final _sel_writeToURL_options_originalContentsURL_error_1 = _registerName1("writeToURL:options:originalContentsURL:error:"); - bool _objc_msgSend_952( + bool _objc_msgSend_955( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, @@ -27148,7 +27254,7 @@ class SentryCocoa { ffi.Pointer originalContentsURL, ffi.Pointer> outError, ) { - return __objc_msgSend_952( + return __objc_msgSend_955( obj, sel, url, @@ -27158,7 +27264,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_952Ptr = _lookup< + late final __objc_msgSend_955Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -27167,7 +27273,7 @@ class SentryCocoa { ffi.Int32, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_952 = __objc_msgSend_952Ptr.asFunction< + late final __objc_msgSend_955 = __objc_msgSend_955Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -27179,35 +27285,35 @@ class SentryCocoa { late final _sel_serializedRepresentation1 = _registerName1("serializedRepresentation"); late final _sel_addFileWrapper_1 = _registerName1("addFileWrapper:"); - ffi.Pointer _objc_msgSend_953( + ffi.Pointer _objc_msgSend_956( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer child, ) { - return __objc_msgSend_953( + return __objc_msgSend_956( obj, sel, child, ); } - late final __objc_msgSend_953Ptr = _lookup< + late final __objc_msgSend_956Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_953 = __objc_msgSend_953Ptr.asFunction< + late final __objc_msgSend_956 = __objc_msgSend_956Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_addRegularFileWithContents_preferredFilename_1 = _registerName1("addRegularFileWithContents:preferredFilename:"); - ffi.Pointer _objc_msgSend_954( + ffi.Pointer _objc_msgSend_957( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ffi.Pointer fileName, ) { - return __objc_msgSend_954( + return __objc_msgSend_957( obj, sel, data, @@ -27215,14 +27321,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_954Ptr = _lookup< + late final __objc_msgSend_957Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_954 = __objc_msgSend_954Ptr.asFunction< + late final __objc_msgSend_957 = __objc_msgSend_957Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -27230,23 +27336,23 @@ class SentryCocoa { ffi.Pointer)>(); late final _sel_removeFileWrapper_1 = _registerName1("removeFileWrapper:"); - void _objc_msgSend_955( + void _objc_msgSend_958( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer child, ) { - return __objc_msgSend_955( + return __objc_msgSend_958( obj, sel, child, ); } - late final __objc_msgSend_955Ptr = _lookup< + late final __objc_msgSend_958Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_955 = __objc_msgSend_955Ptr.asFunction< + late final __objc_msgSend_958 = __objc_msgSend_958Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -27262,14 +27368,14 @@ class SentryCocoa { late final _sel_updateFromPath_1 = _registerName1("updateFromPath:"); late final _sel_writeToFile_atomically_updateFilenames_1 = _registerName1("writeToFile:atomically:updateFilenames:"); - bool _objc_msgSend_956( + bool _objc_msgSend_959( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, bool atomicFlag, bool updateFilenamesFlag, ) { - return __objc_msgSend_956( + return __objc_msgSend_959( obj, sel, path, @@ -27278,11 +27384,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_956Ptr = _lookup< + late final __objc_msgSend_959Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_956 = __objc_msgSend_956Ptr.asFunction< + late final __objc_msgSend_959 = __objc_msgSend_959Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool, bool)>(); @@ -27293,21 +27399,21 @@ class SentryCocoa { _registerName1("symbolicLinkDestination"); late final _class_NSURLSession1 = _getClass1("NSURLSession"); late final _sel_sharedSession1 = _registerName1("sharedSession"); - ffi.Pointer _objc_msgSend_957( + ffi.Pointer _objc_msgSend_960( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_957( + return __objc_msgSend_960( obj, sel, ); } - late final __objc_msgSend_957Ptr = _lookup< + late final __objc_msgSend_960Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_957 = __objc_msgSend_957Ptr.asFunction< + late final __objc_msgSend_960 = __objc_msgSend_960Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -27315,21 +27421,21 @@ class SentryCocoa { _getClass1("NSURLSessionConfiguration"); late final _sel_defaultSessionConfiguration1 = _registerName1("defaultSessionConfiguration"); - ffi.Pointer _objc_msgSend_958( + ffi.Pointer _objc_msgSend_961( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_958( + return __objc_msgSend_961( obj, sel, ); } - late final __objc_msgSend_958Ptr = _lookup< + late final __objc_msgSend_961Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_958 = __objc_msgSend_958Ptr.asFunction< + late final __objc_msgSend_961 = __objc_msgSend_961Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -27337,23 +27443,23 @@ class SentryCocoa { _registerName1("ephemeralSessionConfiguration"); late final _sel_backgroundSessionConfigurationWithIdentifier_1 = _registerName1("backgroundSessionConfigurationWithIdentifier:"); - ffi.Pointer _objc_msgSend_959( + ffi.Pointer _objc_msgSend_962( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer identifier, ) { - return __objc_msgSend_959( + return __objc_msgSend_962( obj, sel, identifier, ); } - late final __objc_msgSend_959Ptr = _lookup< + late final __objc_msgSend_962Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_959 = __objc_msgSend_959Ptr.asFunction< + late final __objc_msgSend_962 = __objc_msgSend_962Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -27389,42 +27495,42 @@ class SentryCocoa { _registerName1("setConnectionProxyDictionary:"); late final _sel_TLSMinimumSupportedProtocol1 = _registerName1("TLSMinimumSupportedProtocol"); - int _objc_msgSend_960( + int _objc_msgSend_963( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_960( + return __objc_msgSend_963( obj, sel, ); } - late final __objc_msgSend_960Ptr = _lookup< + late final __objc_msgSend_963Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_960 = __objc_msgSend_960Ptr.asFunction< + late final __objc_msgSend_963 = __objc_msgSend_963Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setTLSMinimumSupportedProtocol_1 = _registerName1("setTLSMinimumSupportedProtocol:"); - void _objc_msgSend_961( + void _objc_msgSend_964( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_961( + return __objc_msgSend_964( obj, sel, value, ); } - late final __objc_msgSend_961Ptr = _lookup< + late final __objc_msgSend_964Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_961 = __objc_msgSend_961Ptr.asFunction< + late final __objc_msgSend_964 = __objc_msgSend_964Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_TLSMaximumSupportedProtocol1 = @@ -27433,42 +27539,42 @@ class SentryCocoa { _registerName1("setTLSMaximumSupportedProtocol:"); late final _sel_TLSMinimumSupportedProtocolVersion1 = _registerName1("TLSMinimumSupportedProtocolVersion"); - int _objc_msgSend_962( + int _objc_msgSend_965( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_962( + return __objc_msgSend_965( obj, sel, ); } - late final __objc_msgSend_962Ptr = _lookup< + late final __objc_msgSend_965Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_962 = __objc_msgSend_962Ptr.asFunction< + late final __objc_msgSend_965 = __objc_msgSend_965Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setTLSMinimumSupportedProtocolVersion_1 = _registerName1("setTLSMinimumSupportedProtocolVersion:"); - void _objc_msgSend_963( + void _objc_msgSend_966( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_963( + return __objc_msgSend_966( obj, sel, value, ); } - late final __objc_msgSend_963Ptr = _lookup< + late final __objc_msgSend_966Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_963 = __objc_msgSend_963Ptr.asFunction< + late final __objc_msgSend_966 = __objc_msgSend_966Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_TLSMaximumSupportedProtocolVersion1 = @@ -27494,23 +27600,23 @@ class SentryCocoa { late final _sel_HTTPCookieStorage1 = _registerName1("HTTPCookieStorage"); late final _sel_setHTTPCookieStorage_1 = _registerName1("setHTTPCookieStorage:"); - void _objc_msgSend_964( + void _objc_msgSend_967( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_964( + return __objc_msgSend_967( obj, sel, value, ); } - late final __objc_msgSend_964Ptr = _lookup< + late final __objc_msgSend_967Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_964 = __objc_msgSend_964Ptr.asFunction< + late final __objc_msgSend_967 = __objc_msgSend_967Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -27518,23 +27624,23 @@ class SentryCocoa { _registerName1("URLCredentialStorage"); late final _sel_setURLCredentialStorage_1 = _registerName1("setURLCredentialStorage:"); - void _objc_msgSend_965( + void _objc_msgSend_968( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_965( + return __objc_msgSend_968( obj, sel, value, ); } - late final __objc_msgSend_965Ptr = _lookup< + late final __objc_msgSend_968Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_965 = __objc_msgSend_965Ptr.asFunction< + late final __objc_msgSend_968 = __objc_msgSend_968Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -27548,78 +27654,82 @@ class SentryCocoa { late final _sel_setProtocolClasses_1 = _registerName1("setProtocolClasses:"); late final _sel_multipathServiceType1 = _registerName1("multipathServiceType"); - int _objc_msgSend_966( + int _objc_msgSend_969( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_966( + return __objc_msgSend_969( obj, sel, ); } - late final __objc_msgSend_966Ptr = _lookup< + late final __objc_msgSend_969Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_966 = __objc_msgSend_966Ptr.asFunction< + late final __objc_msgSend_969 = __objc_msgSend_969Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setMultipathServiceType_1 = _registerName1("setMultipathServiceType:"); - void _objc_msgSend_967( + void _objc_msgSend_970( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_967( + return __objc_msgSend_970( obj, sel, value, ); } - late final __objc_msgSend_967Ptr = _lookup< + late final __objc_msgSend_970Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_967 = __objc_msgSend_967Ptr.asFunction< + late final __objc_msgSend_970 = __objc_msgSend_970Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _sel_usesClassicLoadingMode1 = + _registerName1("usesClassicLoadingMode"); + late final _sel_setUsesClassicLoadingMode_1 = + _registerName1("setUsesClassicLoadingMode:"); late final _sel_backgroundSessionConfiguration_1 = _registerName1("backgroundSessionConfiguration:"); late final _sel_sessionWithConfiguration_1 = _registerName1("sessionWithConfiguration:"); - ffi.Pointer _objc_msgSend_968( + ffi.Pointer _objc_msgSend_971( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer configuration, ) { - return __objc_msgSend_968( + return __objc_msgSend_971( obj, sel, configuration, ); } - late final __objc_msgSend_968Ptr = _lookup< + late final __objc_msgSend_971Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_968 = __objc_msgSend_968Ptr.asFunction< + late final __objc_msgSend_971 = __objc_msgSend_971Ptr.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_969( + ffi.Pointer _objc_msgSend_972( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer configuration, ffi.Pointer delegate, ffi.Pointer queue, ) { - return __objc_msgSend_969( + return __objc_msgSend_972( obj, sel, configuration, @@ -27628,7 +27738,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_969Ptr = _lookup< + late final __objc_msgSend_972Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -27636,7 +27746,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_969 = __objc_msgSend_969Ptr.asFunction< + late final __objc_msgSend_972 = __objc_msgSend_972Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -27658,88 +27768,88 @@ class SentryCocoa { _registerName1("flushWithCompletionHandler:"); late final _sel_getTasksWithCompletionHandler_1 = _registerName1("getTasksWithCompletionHandler:"); - void _objc_msgSend_970( + void _objc_msgSend_973( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_970( + return __objc_msgSend_973( obj, sel, completionHandler, ); } - late final __objc_msgSend_970Ptr = _lookup< + late final __objc_msgSend_973Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_970 = __objc_msgSend_970Ptr.asFunction< + late final __objc_msgSend_973 = __objc_msgSend_973Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_getAllTasksWithCompletionHandler_1 = _registerName1("getAllTasksWithCompletionHandler:"); - void _objc_msgSend_971( + void _objc_msgSend_974( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_971( + return __objc_msgSend_974( obj, sel, completionHandler, ); } - late final __objc_msgSend_971Ptr = _lookup< + late final __objc_msgSend_974Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_971 = __objc_msgSend_971Ptr.asFunction< + late final __objc_msgSend_974 = __objc_msgSend_974Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_dataTaskWithRequest_1 = _registerName1("dataTaskWithRequest:"); - ffi.Pointer _objc_msgSend_972( + ffi.Pointer _objc_msgSend_975( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_972( + return __objc_msgSend_975( obj, sel, request, ); } - late final __objc_msgSend_972Ptr = _lookup< + late final __objc_msgSend_975Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_972 = __objc_msgSend_972Ptr.asFunction< + late final __objc_msgSend_975 = __objc_msgSend_975Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dataTaskWithURL_1 = _registerName1("dataTaskWithURL:"); - ffi.Pointer _objc_msgSend_973( + ffi.Pointer _objc_msgSend_976( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_973( + return __objc_msgSend_976( obj, sel, url, ); } - late final __objc_msgSend_973Ptr = _lookup< + late final __objc_msgSend_976Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_973 = __objc_msgSend_973Ptr.asFunction< + late final __objc_msgSend_976 = __objc_msgSend_976Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -27747,35 +27857,35 @@ class SentryCocoa { _getClass1("NSURLSessionUploadTask"); late final _sel_cancelByProducingResumeData_1 = _registerName1("cancelByProducingResumeData:"); - void _objc_msgSend_974( + void _objc_msgSend_977( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_974( + return __objc_msgSend_977( obj, sel, completionHandler, ); } - late final __objc_msgSend_974Ptr = _lookup< + late final __objc_msgSend_977Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_974 = __objc_msgSend_974Ptr.asFunction< + late final __objc_msgSend_977 = __objc_msgSend_977Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_uploadTaskWithRequest_fromFile_1 = _registerName1("uploadTaskWithRequest:fromFile:"); - ffi.Pointer _objc_msgSend_975( + ffi.Pointer _objc_msgSend_978( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer fileURL, ) { - return __objc_msgSend_975( + return __objc_msgSend_978( obj, sel, request, @@ -27783,14 +27893,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_975Ptr = _lookup< + late final __objc_msgSend_978Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_975 = __objc_msgSend_975Ptr.asFunction< + late final __objc_msgSend_978 = __objc_msgSend_978Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -27799,13 +27909,13 @@ class SentryCocoa { late final _sel_uploadTaskWithRequest_fromData_1 = _registerName1("uploadTaskWithRequest:fromData:"); - ffi.Pointer _objc_msgSend_976( + ffi.Pointer _objc_msgSend_979( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer bodyData, ) { - return __objc_msgSend_976( + return __objc_msgSend_979( obj, sel, request, @@ -27813,14 +27923,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_976Ptr = _lookup< + late final __objc_msgSend_979Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_976 = __objc_msgSend_976Ptr.asFunction< + late final __objc_msgSend_979 = __objc_msgSend_979Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -27829,45 +27939,45 @@ class SentryCocoa { late final _sel_uploadTaskWithResumeData_1 = _registerName1("uploadTaskWithResumeData:"); - ffi.Pointer _objc_msgSend_977( + ffi.Pointer _objc_msgSend_980( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer resumeData, ) { - return __objc_msgSend_977( + return __objc_msgSend_980( obj, sel, resumeData, ); } - late final __objc_msgSend_977Ptr = _lookup< + late final __objc_msgSend_980Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_977 = __objc_msgSend_977Ptr.asFunction< + late final __objc_msgSend_980 = __objc_msgSend_980Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_uploadTaskWithStreamedRequest_1 = _registerName1("uploadTaskWithStreamedRequest:"); - ffi.Pointer _objc_msgSend_978( + ffi.Pointer _objc_msgSend_981( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_978( + return __objc_msgSend_981( obj, sel, request, ); } - late final __objc_msgSend_978Ptr = _lookup< + late final __objc_msgSend_981Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_978 = __objc_msgSend_978Ptr.asFunction< + late final __objc_msgSend_981 = __objc_msgSend_981Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -27875,67 +27985,67 @@ class SentryCocoa { _getClass1("NSURLSessionDownloadTask"); late final _sel_downloadTaskWithRequest_1 = _registerName1("downloadTaskWithRequest:"); - ffi.Pointer _objc_msgSend_979( + ffi.Pointer _objc_msgSend_982( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_979( + return __objc_msgSend_982( obj, sel, request, ); } - late final __objc_msgSend_979Ptr = _lookup< + late final __objc_msgSend_982Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_979 = __objc_msgSend_979Ptr.asFunction< + late final __objc_msgSend_982 = __objc_msgSend_982Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_downloadTaskWithURL_1 = _registerName1("downloadTaskWithURL:"); - ffi.Pointer _objc_msgSend_980( + ffi.Pointer _objc_msgSend_983( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_980( + return __objc_msgSend_983( obj, sel, url, ); } - late final __objc_msgSend_980Ptr = _lookup< + late final __objc_msgSend_983Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_980 = __objc_msgSend_980Ptr.asFunction< + late final __objc_msgSend_983 = __objc_msgSend_983Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_downloadTaskWithResumeData_1 = _registerName1("downloadTaskWithResumeData:"); - ffi.Pointer _objc_msgSend_981( + ffi.Pointer _objc_msgSend_984( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer resumeData, ) { - return __objc_msgSend_981( + return __objc_msgSend_984( obj, sel, resumeData, ); } - late final __objc_msgSend_981Ptr = _lookup< + late final __objc_msgSend_984Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_981 = __objc_msgSend_981Ptr.asFunction< + late final __objc_msgSend_984 = __objc_msgSend_984Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -27944,7 +28054,7 @@ class SentryCocoa { late final _sel_readDataOfMinLength_maxLength_timeout_completionHandler_1 = _registerName1( "readDataOfMinLength:maxLength:timeout:completionHandler:"); - void _objc_msgSend_982( + void _objc_msgSend_985( ffi.Pointer obj, ffi.Pointer sel, int minBytes, @@ -27952,7 +28062,7 @@ class SentryCocoa { double timeout, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_982( + return __objc_msgSend_985( obj, sel, minBytes, @@ -27962,7 +28072,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_982Ptr = _lookup< + late final __objc_msgSend_985Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -27971,20 +28081,20 @@ class SentryCocoa { ffi.UnsignedLong, ffi.Double, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_982 = __objc_msgSend_982Ptr.asFunction< + late final __objc_msgSend_985 = __objc_msgSend_985Ptr.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_983( + void _objc_msgSend_986( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, double timeout, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_983( + return __objc_msgSend_986( obj, sel, data, @@ -27993,7 +28103,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_983Ptr = _lookup< + late final __objc_msgSend_986Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -28001,7 +28111,7 @@ class SentryCocoa { ffi.Pointer, ffi.Double, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_983 = __objc_msgSend_983Ptr.asFunction< + late final __objc_msgSend_986 = __objc_msgSend_986Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, double, ffi.Pointer<_ObjCBlock>)>(); @@ -28014,13 +28124,13 @@ class SentryCocoa { _registerName1("stopSecureConnection"); late final _sel_streamTaskWithHostName_port_1 = _registerName1("streamTaskWithHostName:port:"); - ffi.Pointer _objc_msgSend_984( + ffi.Pointer _objc_msgSend_987( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer hostname, int port, ) { - return __objc_msgSend_984( + return __objc_msgSend_987( obj, sel, hostname, @@ -28028,21 +28138,21 @@ class SentryCocoa { ); } - late final __objc_msgSend_984Ptr = _lookup< + late final __objc_msgSend_987Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_984 = __objc_msgSend_984Ptr.asFunction< + late final __objc_msgSend_987 = __objc_msgSend_987Ptr.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_985( + instancetype _objc_msgSend_988( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer domain, @@ -28050,7 +28160,7 @@ class SentryCocoa { ffi.Pointer name, int port, ) { - return __objc_msgSend_985( + return __objc_msgSend_988( obj, sel, domain, @@ -28060,7 +28170,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_985Ptr = _lookup< + late final __objc_msgSend_988Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -28069,7 +28179,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Int)>>('objc_msgSend'); - late final __objc_msgSend_985 = __objc_msgSend_985Ptr.asFunction< + late final __objc_msgSend_988 = __objc_msgSend_988Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -28085,81 +28195,81 @@ class SentryCocoa { _registerName1("setIncludesPeerToPeer:"); late final _sel_type1 = _registerName1("type"); late final _sel_publishWithOptions_1 = _registerName1("publishWithOptions:"); - void _objc_msgSend_986( + void _objc_msgSend_989( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_986( + return __objc_msgSend_989( obj, sel, options, ); } - late final __objc_msgSend_986Ptr = _lookup< + late final __objc_msgSend_989Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_986 = __objc_msgSend_986Ptr.asFunction< + late final __objc_msgSend_989 = __objc_msgSend_989Ptr.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_987( + ffi.Pointer _objc_msgSend_990( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer txtData, ) { - return __objc_msgSend_987( + return __objc_msgSend_990( obj, sel, txtData, ); } - late final __objc_msgSend_987Ptr = _lookup< + late final __objc_msgSend_990Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_987 = __objc_msgSend_987Ptr.asFunction< + late final __objc_msgSend_990 = __objc_msgSend_990Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dataFromTXTRecordDictionary_1 = _registerName1("dataFromTXTRecordDictionary:"); - ffi.Pointer _objc_msgSend_988( + ffi.Pointer _objc_msgSend_991( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer txtDictionary, ) { - return __objc_msgSend_988( + return __objc_msgSend_991( obj, sel, txtDictionary, ); } - late final __objc_msgSend_988Ptr = _lookup< + late final __objc_msgSend_991Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_988 = __objc_msgSend_988Ptr.asFunction< + late final __objc_msgSend_991 = __objc_msgSend_991Ptr.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_989( + bool _objc_msgSend_992( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> inputStream, ffi.Pointer> outputStream, ) { - return __objc_msgSend_989( + return __objc_msgSend_992( obj, sel, inputStream, @@ -28167,14 +28277,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_989Ptr = _lookup< + late final __objc_msgSend_992Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_989 = __objc_msgSend_989Ptr.asFunction< + late final __objc_msgSend_992 = __objc_msgSend_992Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -28187,23 +28297,23 @@ class SentryCocoa { late final _sel_stopMonitoring1 = _registerName1("stopMonitoring"); late final _sel_streamTaskWithNetService_1 = _registerName1("streamTaskWithNetService:"); - ffi.Pointer _objc_msgSend_990( + ffi.Pointer _objc_msgSend_993( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer service, ) { - return __objc_msgSend_990( + return __objc_msgSend_993( obj, sel, service, ); } - late final __objc_msgSend_990Ptr = _lookup< + late final __objc_msgSend_993Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_990 = __objc_msgSend_990Ptr.asFunction< + late final __objc_msgSend_993 = __objc_msgSend_993Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -28211,32 +28321,32 @@ class SentryCocoa { _getClass1("NSURLSessionWebSocketTask"); late final _class_NSURLSessionWebSocketMessage1 = _getClass1("NSURLSessionWebSocketMessage"); - int _objc_msgSend_991( + int _objc_msgSend_994( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_991( + return __objc_msgSend_994( obj, sel, ); } - late final __objc_msgSend_991Ptr = _lookup< + late final __objc_msgSend_994Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_991 = __objc_msgSend_991Ptr.asFunction< + late final __objc_msgSend_994 = __objc_msgSend_994Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_sendMessage_completionHandler_1 = _registerName1("sendMessage:completionHandler:"); - void _objc_msgSend_992( + void _objc_msgSend_995( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer message, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_992( + return __objc_msgSend_995( obj, sel, message, @@ -28244,70 +28354,70 @@ class SentryCocoa { ); } - late final __objc_msgSend_992Ptr = _lookup< + late final __objc_msgSend_995Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_992 = __objc_msgSend_992Ptr.asFunction< + late final __objc_msgSend_995 = __objc_msgSend_995Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_receiveMessageWithCompletionHandler_1 = _registerName1("receiveMessageWithCompletionHandler:"); - void _objc_msgSend_993( + void _objc_msgSend_996( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_993( + return __objc_msgSend_996( obj, sel, completionHandler, ); } - late final __objc_msgSend_993Ptr = _lookup< + late final __objc_msgSend_996Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_993 = __objc_msgSend_993Ptr.asFunction< + late final __objc_msgSend_996 = __objc_msgSend_996Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_sendPingWithPongReceiveHandler_1 = _registerName1("sendPingWithPongReceiveHandler:"); - void _objc_msgSend_994( + void _objc_msgSend_997( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> pongReceiveHandler, ) { - return __objc_msgSend_994( + return __objc_msgSend_997( obj, sel, pongReceiveHandler, ); } - late final __objc_msgSend_994Ptr = _lookup< + late final __objc_msgSend_997Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_994 = __objc_msgSend_994Ptr.asFunction< + late final __objc_msgSend_997 = __objc_msgSend_997Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_cancelWithCloseCode_reason_1 = _registerName1("cancelWithCloseCode:reason:"); - void _objc_msgSend_995( + void _objc_msgSend_998( ffi.Pointer obj, ffi.Pointer sel, int closeCode, ffi.Pointer reason, ) { - return __objc_msgSend_995( + return __objc_msgSend_998( obj, sel, closeCode, @@ -28315,11 +28425,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_995Ptr = _lookup< + late final __objc_msgSend_998Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_995 = __objc_msgSend_995Ptr.asFunction< + late final __objc_msgSend_998 = __objc_msgSend_998Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); @@ -28327,55 +28437,55 @@ class SentryCocoa { late final _sel_setMaximumMessageSize_1 = _registerName1("setMaximumMessageSize:"); late final _sel_closeCode1 = _registerName1("closeCode"); - int _objc_msgSend_996( + int _objc_msgSend_999( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_996( + return __objc_msgSend_999( obj, sel, ); } - late final __objc_msgSend_996Ptr = _lookup< + late final __objc_msgSend_999Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_996 = __objc_msgSend_996Ptr.asFunction< + late final __objc_msgSend_999 = __objc_msgSend_999Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_closeReason1 = _registerName1("closeReason"); late final _sel_webSocketTaskWithURL_1 = _registerName1("webSocketTaskWithURL:"); - ffi.Pointer _objc_msgSend_997( + ffi.Pointer _objc_msgSend_1000( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_997( + return __objc_msgSend_1000( obj, sel, url, ); } - late final __objc_msgSend_997Ptr = _lookup< + late final __objc_msgSend_1000Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_997 = __objc_msgSend_997Ptr.asFunction< + late final __objc_msgSend_1000 = __objc_msgSend_1000Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_webSocketTaskWithURL_protocols_1 = _registerName1("webSocketTaskWithURL:protocols:"); - ffi.Pointer _objc_msgSend_998( + ffi.Pointer _objc_msgSend_1001( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer protocols, ) { - return __objc_msgSend_998( + return __objc_msgSend_1001( obj, sel, url, @@ -28383,14 +28493,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_998Ptr = _lookup< + late final __objc_msgSend_1001Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_998 = __objc_msgSend_998Ptr.asFunction< + late final __objc_msgSend_1001 = __objc_msgSend_1001Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -28399,35 +28509,35 @@ class SentryCocoa { late final _sel_webSocketTaskWithRequest_1 = _registerName1("webSocketTaskWithRequest:"); - ffi.Pointer _objc_msgSend_999( + ffi.Pointer _objc_msgSend_1002( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_999( + return __objc_msgSend_1002( obj, sel, request, ); } - late final __objc_msgSend_999Ptr = _lookup< + late final __objc_msgSend_1002Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_999 = __objc_msgSend_999Ptr.asFunction< + late final __objc_msgSend_1002 = __objc_msgSend_1002Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dataTaskWithRequest_completionHandler_1 = _registerName1("dataTaskWithRequest:completionHandler:"); - ffi.Pointer _objc_msgSend_1000( + ffi.Pointer _objc_msgSend_1003( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_1000( + return __objc_msgSend_1003( obj, sel, request, @@ -28435,14 +28545,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_1000Ptr = _lookup< + late final __objc_msgSend_1003Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_1000 = __objc_msgSend_1000Ptr.asFunction< + late final __objc_msgSend_1003 = __objc_msgSend_1003Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -28451,13 +28561,13 @@ class SentryCocoa { late final _sel_dataTaskWithURL_completionHandler_1 = _registerName1("dataTaskWithURL:completionHandler:"); - ffi.Pointer _objc_msgSend_1001( + ffi.Pointer _objc_msgSend_1004( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_1001( + return __objc_msgSend_1004( obj, sel, url, @@ -28465,14 +28575,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_1001Ptr = _lookup< + late final __objc_msgSend_1004Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_1001 = __objc_msgSend_1001Ptr.asFunction< + late final __objc_msgSend_1004 = __objc_msgSend_1004Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -28481,14 +28591,14 @@ class SentryCocoa { late final _sel_uploadTaskWithRequest_fromFile_completionHandler_1 = _registerName1("uploadTaskWithRequest:fromFile:completionHandler:"); - ffi.Pointer _objc_msgSend_1002( + ffi.Pointer _objc_msgSend_1005( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer fileURL, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_1002( + return __objc_msgSend_1005( obj, sel, request, @@ -28497,7 +28607,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_1002Ptr = _lookup< + late final __objc_msgSend_1005Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -28505,7 +28615,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_1002 = __objc_msgSend_1002Ptr.asFunction< + late final __objc_msgSend_1005 = __objc_msgSend_1005Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -28515,14 +28625,14 @@ class SentryCocoa { late final _sel_uploadTaskWithRequest_fromData_completionHandler_1 = _registerName1("uploadTaskWithRequest:fromData:completionHandler:"); - ffi.Pointer _objc_msgSend_1003( + ffi.Pointer _objc_msgSend_1006( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer bodyData, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_1003( + return __objc_msgSend_1006( obj, sel, request, @@ -28531,7 +28641,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_1003Ptr = _lookup< + late final __objc_msgSend_1006Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -28539,7 +28649,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_1003 = __objc_msgSend_1003Ptr.asFunction< + late final __objc_msgSend_1006 = __objc_msgSend_1006Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -28549,13 +28659,13 @@ class SentryCocoa { late final _sel_uploadTaskWithResumeData_completionHandler_1 = _registerName1("uploadTaskWithResumeData:completionHandler:"); - ffi.Pointer _objc_msgSend_1004( + ffi.Pointer _objc_msgSend_1007( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer resumeData, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_1004( + return __objc_msgSend_1007( obj, sel, resumeData, @@ -28563,14 +28673,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_1004Ptr = _lookup< + late final __objc_msgSend_1007Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_1004 = __objc_msgSend_1004Ptr.asFunction< + late final __objc_msgSend_1007 = __objc_msgSend_1007Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -28579,13 +28689,13 @@ class SentryCocoa { late final _sel_downloadTaskWithRequest_completionHandler_1 = _registerName1("downloadTaskWithRequest:completionHandler:"); - ffi.Pointer _objc_msgSend_1005( + ffi.Pointer _objc_msgSend_1008( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_1005( + return __objc_msgSend_1008( obj, sel, request, @@ -28593,14 +28703,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_1005Ptr = _lookup< + late final __objc_msgSend_1008Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_1005 = __objc_msgSend_1005Ptr.asFunction< + late final __objc_msgSend_1008 = __objc_msgSend_1008Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -28609,13 +28719,13 @@ class SentryCocoa { late final _sel_downloadTaskWithURL_completionHandler_1 = _registerName1("downloadTaskWithURL:completionHandler:"); - ffi.Pointer _objc_msgSend_1006( + ffi.Pointer _objc_msgSend_1009( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_1006( + return __objc_msgSend_1009( obj, sel, url, @@ -28623,14 +28733,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_1006Ptr = _lookup< + late final __objc_msgSend_1009Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_1006 = __objc_msgSend_1006Ptr.asFunction< + late final __objc_msgSend_1009 = __objc_msgSend_1009Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -28639,13 +28749,13 @@ class SentryCocoa { late final _sel_downloadTaskWithResumeData_completionHandler_1 = _registerName1("downloadTaskWithResumeData:completionHandler:"); - ffi.Pointer _objc_msgSend_1007( + ffi.Pointer _objc_msgSend_1010( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer resumeData, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_1007( + return __objc_msgSend_1010( obj, sel, resumeData, @@ -28653,14 +28763,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_1007Ptr = _lookup< + late final __objc_msgSend_1010Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_1007 = __objc_msgSend_1007Ptr.asFunction< + late final __objc_msgSend_1010 = __objc_msgSend_1010Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -28668,33 +28778,33 @@ class SentryCocoa { ffi.Pointer<_ObjCBlock>)>(); late final _class_NSProtocolChecker1 = _getClass1("NSProtocolChecker"); - ffi.Pointer _objc_msgSend_1008( + ffi.Pointer _objc_msgSend_1011( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1008( + return __objc_msgSend_1011( obj, sel, ); } - late final __objc_msgSend_1008Ptr = _lookup< + late final __objc_msgSend_1011Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1008 = __objc_msgSend_1008Ptr.asFunction< + late final __objc_msgSend_1011 = __objc_msgSend_1011Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_protocolCheckerWithTarget_protocol_1 = _registerName1("protocolCheckerWithTarget:protocol:"); - instancetype _objc_msgSend_1009( + instancetype _objc_msgSend_1012( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, ffi.Pointer aProtocol, ) { - return __objc_msgSend_1009( + return __objc_msgSend_1012( obj, sel, anObject, @@ -28702,14 +28812,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_1009Ptr = _lookup< + late final __objc_msgSend_1012Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1009 = __objc_msgSend_1009Ptr.asFunction< + late final __objc_msgSend_1012 = __objc_msgSend_1012Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -28738,68 +28848,68 @@ class SentryCocoa { late final _sel_isRunning1 = _registerName1("isRunning"); late final _sel_terminationStatus1 = _registerName1("terminationStatus"); late final _sel_terminationReason1 = _registerName1("terminationReason"); - int _objc_msgSend_1010( + int _objc_msgSend_1013( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1010( + return __objc_msgSend_1013( obj, sel, ); } - late final __objc_msgSend_1010Ptr = _lookup< + late final __objc_msgSend_1013Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1010 = __objc_msgSend_1010Ptr.asFunction< + late final __objc_msgSend_1013 = __objc_msgSend_1013Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_terminationHandler1 = _registerName1("terminationHandler"); - ffi.Pointer<_ObjCBlock> _objc_msgSend_1011( + ffi.Pointer<_ObjCBlock> _objc_msgSend_1014( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1011( + return __objc_msgSend_1014( obj, sel, ); } - late final __objc_msgSend_1011Ptr = _lookup< + late final __objc_msgSend_1014Ptr = _lookup< ffi.NativeFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1011 = __objc_msgSend_1011Ptr.asFunction< + late final __objc_msgSend_1014 = __objc_msgSend_1014Ptr.asFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setTerminationHandler_1 = _registerName1("setTerminationHandler:"); - void _objc_msgSend_1012( + void _objc_msgSend_1015( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> value, ) { - return __objc_msgSend_1012( + return __objc_msgSend_1015( obj, sel, value, ); } - late final __objc_msgSend_1012Ptr = _lookup< + late final __objc_msgSend_1015Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_1012 = __objc_msgSend_1012Ptr.asFunction< + late final __objc_msgSend_1015 = __objc_msgSend_1015Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_launchedTaskWithExecutableURL_arguments_error_terminationHandler_1 = _registerName1( "launchedTaskWithExecutableURL:arguments:error:terminationHandler:"); - ffi.Pointer _objc_msgSend_1013( + ffi.Pointer _objc_msgSend_1016( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, @@ -28807,7 +28917,7 @@ class SentryCocoa { ffi.Pointer> error, ffi.Pointer<_ObjCBlock> terminationHandler, ) { - return __objc_msgSend_1013( + return __objc_msgSend_1016( obj, sel, url, @@ -28817,7 +28927,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_1013Ptr = _lookup< + late final __objc_msgSend_1016Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -28826,7 +28936,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer>, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_1013 = __objc_msgSend_1013Ptr.asFunction< + late final __objc_msgSend_1016 = __objc_msgSend_1016Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -28843,13 +28953,13 @@ class SentryCocoa { late final _sel_launch1 = _registerName1("launch"); late final _sel_launchedTaskWithLaunchPath_arguments_1 = _registerName1("launchedTaskWithLaunchPath:arguments:"); - ffi.Pointer _objc_msgSend_1014( + ffi.Pointer _objc_msgSend_1017( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer arguments, ) { - return __objc_msgSend_1014( + return __objc_msgSend_1017( obj, sel, path, @@ -28857,14 +28967,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_1014Ptr = _lookup< + late final __objc_msgSend_1017Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1014 = __objc_msgSend_1014Ptr.asFunction< + late final __objc_msgSend_1017 = __objc_msgSend_1017Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -28874,35 +28984,35 @@ class SentryCocoa { late final _class_NSXMLElement1 = _getClass1("NSXMLElement"); late final _class_NSXMLNode1 = _getClass1("NSXMLNode"); late final _sel_initWithKind_1 = _registerName1("initWithKind:"); - instancetype _objc_msgSend_1015( + instancetype _objc_msgSend_1018( ffi.Pointer obj, ffi.Pointer sel, int kind, ) { - return __objc_msgSend_1015( + return __objc_msgSend_1018( obj, sel, kind, ); } - late final __objc_msgSend_1015Ptr = _lookup< + late final __objc_msgSend_1018Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_1015 = __objc_msgSend_1015Ptr.asFunction< + late final __objc_msgSend_1018 = __objc_msgSend_1018Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithKind_options_1 = _registerName1("initWithKind:options:"); - instancetype _objc_msgSend_1016( + instancetype _objc_msgSend_1019( ffi.Pointer obj, ffi.Pointer sel, int kind, int options, ) { - return __objc_msgSend_1016( + return __objc_msgSend_1019( obj, sel, kind, @@ -28910,34 +29020,34 @@ class SentryCocoa { ); } - late final __objc_msgSend_1016Ptr = _lookup< + late final __objc_msgSend_1019Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_1016 = __objc_msgSend_1016Ptr.asFunction< + late final __objc_msgSend_1019 = __objc_msgSend_1019Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, int, int)>(); late final _sel_document1 = _registerName1("document"); late final _sel_documentWithRootElement_1 = _registerName1("documentWithRootElement:"); - ffi.Pointer _objc_msgSend_1017( + ffi.Pointer _objc_msgSend_1020( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer element, ) { - return __objc_msgSend_1017( + return __objc_msgSend_1020( obj, sel, element, ); } - late final __objc_msgSend_1017Ptr = _lookup< + late final __objc_msgSend_1020Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1017 = __objc_msgSend_1017Ptr.asFunction< + late final __objc_msgSend_1020 = __objc_msgSend_1020Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -28948,14 +29058,14 @@ class SentryCocoa { _registerName1("elementWithName:stringValue:"); late final _sel_elementWithName_children_attributes_1 = _registerName1("elementWithName:children:attributes:"); - ffi.Pointer _objc_msgSend_1018( + ffi.Pointer _objc_msgSend_1021( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer children, ffi.Pointer attributes, ) { - return __objc_msgSend_1018( + return __objc_msgSend_1021( obj, sel, name, @@ -28964,7 +29074,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_1018Ptr = _lookup< + late final __objc_msgSend_1021Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -28972,7 +29082,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1018 = __objc_msgSend_1018Ptr.asFunction< + late final __objc_msgSend_1021 = __objc_msgSend_1021Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -28994,21 +29104,21 @@ class SentryCocoa { _registerName1("textWithStringValue:"); late final _sel_DTDNodeWithXMLString_1 = _registerName1("DTDNodeWithXMLString:"); - int _objc_msgSend_1019( + int _objc_msgSend_1022( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1019( + return __objc_msgSend_1022( obj, sel, ); } - late final __objc_msgSend_1019Ptr = _lookup< + late final __objc_msgSend_1022Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1019 = __objc_msgSend_1019Ptr.asFunction< + late final __objc_msgSend_1022 = __objc_msgSend_1022Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_objectValue1 = _registerName1("objectValue"); @@ -29016,13 +29126,13 @@ class SentryCocoa { late final _sel_setStringValue_1 = _registerName1("setStringValue:"); late final _sel_setStringValue_resolvingEntities_1 = _registerName1("setStringValue:resolvingEntities:"); - void _objc_msgSend_1020( + void _objc_msgSend_1023( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, bool resolve, ) { - return __objc_msgSend_1020( + return __objc_msgSend_1023( obj, sel, string, @@ -29030,11 +29140,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_1020Ptr = _lookup< + late final __objc_msgSend_1023Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_1020 = __objc_msgSend_1020Ptr.asFunction< + late final __objc_msgSend_1023 = __objc_msgSend_1023Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); @@ -29043,14 +29153,14 @@ class SentryCocoa { late final _class_NSXMLDocument1 = _getClass1("NSXMLDocument"); late final _sel_initWithXMLString_options_error_1 = _registerName1("initWithXMLString:options:error:"); - instancetype _objc_msgSend_1021( + instancetype _objc_msgSend_1024( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int mask, ffi.Pointer> error, ) { - return __objc_msgSend_1021( + return __objc_msgSend_1024( obj, sel, string, @@ -29059,7 +29169,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_1021Ptr = _lookup< + late final __objc_msgSend_1024Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -29067,7 +29177,7 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1021 = __objc_msgSend_1021Ptr.asFunction< + late final __objc_msgSend_1024 = __objc_msgSend_1024Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -29075,14 +29185,14 @@ class SentryCocoa { int, ffi.Pointer>)>(); - instancetype _objc_msgSend_1022( + instancetype _objc_msgSend_1025( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, int mask, ffi.Pointer> error, ) { - return __objc_msgSend_1022( + return __objc_msgSend_1025( obj, sel, url, @@ -29091,7 +29201,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_1022Ptr = _lookup< + late final __objc_msgSend_1025Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -29099,7 +29209,7 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1022 = __objc_msgSend_1022Ptr.asFunction< + late final __objc_msgSend_1025 = __objc_msgSend_1025Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -29109,14 +29219,14 @@ class SentryCocoa { late final _sel_initWithData_options_error_1 = _registerName1("initWithData:options:error:"); - instancetype _objc_msgSend_1023( + instancetype _objc_msgSend_1026( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, int mask, ffi.Pointer> error, ) { - return __objc_msgSend_1023( + return __objc_msgSend_1026( obj, sel, data, @@ -29125,7 +29235,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_1023Ptr = _lookup< + late final __objc_msgSend_1026Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -29133,7 +29243,7 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1023 = __objc_msgSend_1023Ptr.asFunction< + late final __objc_msgSend_1026 = __objc_msgSend_1026Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -29151,42 +29261,42 @@ class SentryCocoa { late final _sel_isStandalone1 = _registerName1("isStandalone"); late final _sel_setStandalone_1 = _registerName1("setStandalone:"); late final _sel_documentContentKind1 = _registerName1("documentContentKind"); - int _objc_msgSend_1024( + int _objc_msgSend_1027( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1024( + return __objc_msgSend_1027( obj, sel, ); } - late final __objc_msgSend_1024Ptr = _lookup< + late final __objc_msgSend_1027Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1024 = __objc_msgSend_1024Ptr.asFunction< + late final __objc_msgSend_1027 = __objc_msgSend_1027Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setDocumentContentKind_1 = _registerName1("setDocumentContentKind:"); - void _objc_msgSend_1025( + void _objc_msgSend_1028( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_1025( + return __objc_msgSend_1028( obj, sel, value, ); } - late final __objc_msgSend_1025Ptr = _lookup< + late final __objc_msgSend_1028Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_1025 = __objc_msgSend_1025Ptr.asFunction< + late final __objc_msgSend_1028 = __objc_msgSend_1028Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setMIMEType_1 = _registerName1("setMIMEType:"); @@ -29195,13 +29305,13 @@ class SentryCocoa { late final _sel_setSystemID_1 = _registerName1("setSystemID:"); late final _sel_insertChild_atIndex_1 = _registerName1("insertChild:atIndex:"); - void _objc_msgSend_1026( + void _objc_msgSend_1029( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer child, int index, ) { - return __objc_msgSend_1026( + return __objc_msgSend_1029( obj, sel, child, @@ -29209,23 +29319,23 @@ class SentryCocoa { ); } - late final __objc_msgSend_1026Ptr = _lookup< + late final __objc_msgSend_1029Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_1026 = __objc_msgSend_1026Ptr.asFunction< + late final __objc_msgSend_1029 = __objc_msgSend_1029Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_insertChildren_atIndex_1 = _registerName1("insertChildren:atIndex:"); - void _objc_msgSend_1027( + void _objc_msgSend_1030( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer children, int index, ) { - return __objc_msgSend_1027( + return __objc_msgSend_1030( obj, sel, children, @@ -29233,46 +29343,46 @@ class SentryCocoa { ); } - late final __objc_msgSend_1027Ptr = _lookup< + late final __objc_msgSend_1030Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_1027 = __objc_msgSend_1027Ptr.asFunction< + late final __objc_msgSend_1030 = __objc_msgSend_1030Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_removeChildAtIndex_1 = _registerName1("removeChildAtIndex:"); late final _sel_setChildren_1 = _registerName1("setChildren:"); late final _sel_addChild_1 = _registerName1("addChild:"); - void _objc_msgSend_1028( + void _objc_msgSend_1031( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer child, ) { - return __objc_msgSend_1028( + return __objc_msgSend_1031( obj, sel, child, ); } - late final __objc_msgSend_1028Ptr = _lookup< + late final __objc_msgSend_1031Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1028 = __objc_msgSend_1028Ptr.asFunction< + late final __objc_msgSend_1031 = __objc_msgSend_1031Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_replaceChildAtIndex_withNode_1 = _registerName1("replaceChildAtIndex:withNode:"); - void _objc_msgSend_1029( + void _objc_msgSend_1032( ffi.Pointer obj, ffi.Pointer sel, int index, ffi.Pointer node, ) { - return __objc_msgSend_1029( + return __objc_msgSend_1032( obj, sel, index, @@ -29280,52 +29390,52 @@ class SentryCocoa { ); } - late final __objc_msgSend_1029Ptr = _lookup< + late final __objc_msgSend_1032Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1029 = __objc_msgSend_1029Ptr.asFunction< + late final __objc_msgSend_1032 = __objc_msgSend_1032Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _class_NSXMLDTDNode1 = _getClass1("NSXMLDTDNode"); late final _sel_initWithXMLString_1 = _registerName1("initWithXMLString:"); late final _sel_DTDKind1 = _registerName1("DTDKind"); - int _objc_msgSend_1030( + int _objc_msgSend_1033( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1030( + return __objc_msgSend_1033( obj, sel, ); } - late final __objc_msgSend_1030Ptr = _lookup< + late final __objc_msgSend_1033Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1030 = __objc_msgSend_1030Ptr.asFunction< + late final __objc_msgSend_1033 = __objc_msgSend_1033Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setDTDKind_1 = _registerName1("setDTDKind:"); - void _objc_msgSend_1031( + void _objc_msgSend_1034( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_1031( + return __objc_msgSend_1034( obj, sel, value, ); } - late final __objc_msgSend_1031Ptr = _lookup< + late final __objc_msgSend_1034Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_1031 = __objc_msgSend_1031Ptr.asFunction< + late final __objc_msgSend_1034 = __objc_msgSend_1034Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_isExternal1 = _registerName1("isExternal"); @@ -29335,45 +29445,45 @@ class SentryCocoa { late final _sel_prefixForName_1 = _registerName1("prefixForName:"); late final _sel_predefinedNamespaceForPrefix_1 = _registerName1("predefinedNamespaceForPrefix:"); - ffi.Pointer _objc_msgSend_1032( + ffi.Pointer _objc_msgSend_1035( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ) { - return __objc_msgSend_1032( + return __objc_msgSend_1035( obj, sel, name, ); } - late final __objc_msgSend_1032Ptr = _lookup< + late final __objc_msgSend_1035Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1032 = __objc_msgSend_1032Ptr.asFunction< + late final __objc_msgSend_1035 = __objc_msgSend_1035Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_entityDeclarationForName_1 = _registerName1("entityDeclarationForName:"); - ffi.Pointer _objc_msgSend_1033( + ffi.Pointer _objc_msgSend_1036( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ) { - return __objc_msgSend_1033( + return __objc_msgSend_1036( obj, sel, name, ); } - late final __objc_msgSend_1033Ptr = _lookup< + late final __objc_msgSend_1036Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1033 = __objc_msgSend_1033Ptr.asFunction< + late final __objc_msgSend_1036 = __objc_msgSend_1036Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -29383,13 +29493,13 @@ class SentryCocoa { _registerName1("elementDeclarationForName:"); late final _sel_attributeDeclarationForName_elementName_1 = _registerName1("attributeDeclarationForName:elementName:"); - ffi.Pointer _objc_msgSend_1034( + ffi.Pointer _objc_msgSend_1037( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer elementName, ) { - return __objc_msgSend_1034( + return __objc_msgSend_1037( obj, sel, name, @@ -29397,14 +29507,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_1034Ptr = _lookup< + late final __objc_msgSend_1037Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1034 = __objc_msgSend_1034Ptr.asFunction< + late final __objc_msgSend_1037 = __objc_msgSend_1037Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -29414,117 +29524,117 @@ class SentryCocoa { late final _sel_predefinedEntityDeclarationForName_1 = _registerName1("predefinedEntityDeclarationForName:"); late final _sel_DTD1 = _registerName1("DTD"); - ffi.Pointer _objc_msgSend_1035( + ffi.Pointer _objc_msgSend_1038( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1035( + return __objc_msgSend_1038( obj, sel, ); } - late final __objc_msgSend_1035Ptr = _lookup< + late final __objc_msgSend_1038Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1035 = __objc_msgSend_1035Ptr.asFunction< + late final __objc_msgSend_1038 = __objc_msgSend_1038Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setDTD_1 = _registerName1("setDTD:"); - void _objc_msgSend_1036( + void _objc_msgSend_1039( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_1036( + return __objc_msgSend_1039( obj, sel, value, ); } - late final __objc_msgSend_1036Ptr = _lookup< + late final __objc_msgSend_1039Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1036 = __objc_msgSend_1036Ptr.asFunction< + late final __objc_msgSend_1039 = __objc_msgSend_1039Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_setRootElement_1 = _registerName1("setRootElement:"); - void _objc_msgSend_1037( + void _objc_msgSend_1040( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer root, ) { - return __objc_msgSend_1037( + return __objc_msgSend_1040( obj, sel, root, ); } - late final __objc_msgSend_1037Ptr = _lookup< + late final __objc_msgSend_1040Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1037 = __objc_msgSend_1037Ptr.asFunction< + late final __objc_msgSend_1040 = __objc_msgSend_1040Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_rootElement1 = _registerName1("rootElement"); - ffi.Pointer _objc_msgSend_1038( + ffi.Pointer _objc_msgSend_1041( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1038( + return __objc_msgSend_1041( obj, sel, ); } - late final __objc_msgSend_1038Ptr = _lookup< + late final __objc_msgSend_1041Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1038 = __objc_msgSend_1038Ptr.asFunction< + late final __objc_msgSend_1041 = __objc_msgSend_1041Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_XMLData1 = _registerName1("XMLData"); late final _sel_XMLDataWithOptions_1 = _registerName1("XMLDataWithOptions:"); - ffi.Pointer _objc_msgSend_1039( + ffi.Pointer _objc_msgSend_1042( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_1039( + return __objc_msgSend_1042( obj, sel, options, ); } - late final __objc_msgSend_1039Ptr = _lookup< + late final __objc_msgSend_1042Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_1039 = __objc_msgSend_1039Ptr.asFunction< + late final __objc_msgSend_1042 = __objc_msgSend_1042Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_objectByApplyingXSLT_arguments_error_1 = _registerName1("objectByApplyingXSLT:arguments:error:"); - ffi.Pointer _objc_msgSend_1040( + ffi.Pointer _objc_msgSend_1043( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer xslt, ffi.Pointer arguments, ffi.Pointer> error, ) { - return __objc_msgSend_1040( + return __objc_msgSend_1043( obj, sel, xslt, @@ -29533,7 +29643,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_1040Ptr = _lookup< + late final __objc_msgSend_1043Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -29541,7 +29651,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1040 = __objc_msgSend_1040Ptr.asFunction< + late final __objc_msgSend_1043 = __objc_msgSend_1043Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -29551,14 +29661,14 @@ class SentryCocoa { late final _sel_objectByApplyingXSLTString_arguments_error_1 = _registerName1("objectByApplyingXSLTString:arguments:error:"); - ffi.Pointer _objc_msgSend_1041( + ffi.Pointer _objc_msgSend_1044( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer xslt, ffi.Pointer arguments, ffi.Pointer> error, ) { - return __objc_msgSend_1041( + return __objc_msgSend_1044( obj, sel, xslt, @@ -29567,7 +29677,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_1041Ptr = _lookup< + late final __objc_msgSend_1044Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -29575,7 +29685,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1041 = __objc_msgSend_1041Ptr.asFunction< + late final __objc_msgSend_1044 = __objc_msgSend_1044Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -29585,14 +29695,14 @@ class SentryCocoa { late final _sel_objectByApplyingXSLTAtURL_arguments_error_1 = _registerName1("objectByApplyingXSLTAtURL:arguments:error:"); - ffi.Pointer _objc_msgSend_1042( + ffi.Pointer _objc_msgSend_1045( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer xsltURL, ffi.Pointer argument, ffi.Pointer> error, ) { - return __objc_msgSend_1042( + return __objc_msgSend_1045( obj, sel, xsltURL, @@ -29601,7 +29711,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_1042Ptr = _lookup< + late final __objc_msgSend_1045Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -29609,7 +29719,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1042 = __objc_msgSend_1042Ptr.asFunction< + late final __objc_msgSend_1045 = __objc_msgSend_1045Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -29620,63 +29730,63 @@ class SentryCocoa { late final _sel_validateAndReturnError_1 = _registerName1("validateAndReturnError:"); late final _sel_rootDocument1 = _registerName1("rootDocument"); - ffi.Pointer _objc_msgSend_1043( + ffi.Pointer _objc_msgSend_1046( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1043( + return __objc_msgSend_1046( obj, sel, ); } - late final __objc_msgSend_1043Ptr = _lookup< + late final __objc_msgSend_1046Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1043 = __objc_msgSend_1043Ptr.asFunction< + late final __objc_msgSend_1046 = __objc_msgSend_1046Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_parent1 = _registerName1("parent"); - ffi.Pointer _objc_msgSend_1044( + ffi.Pointer _objc_msgSend_1047( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1044( + return __objc_msgSend_1047( obj, sel, ); } - late final __objc_msgSend_1044Ptr = _lookup< + late final __objc_msgSend_1047Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1044 = __objc_msgSend_1044Ptr.asFunction< + late final __objc_msgSend_1047 = __objc_msgSend_1047Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_childCount1 = _registerName1("childCount"); late final _sel_children1 = _registerName1("children"); late final _sel_childAtIndex_1 = _registerName1("childAtIndex:"); - ffi.Pointer _objc_msgSend_1045( + ffi.Pointer _objc_msgSend_1048( ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_1045( + return __objc_msgSend_1048( obj, sel, index, ); } - late final __objc_msgSend_1045Ptr = _lookup< + late final __objc_msgSend_1048Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_1045 = __objc_msgSend_1045Ptr.asFunction< + late final __objc_msgSend_1048 = __objc_msgSend_1048Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -29693,45 +29803,45 @@ class SentryCocoa { late final _sel_XMLString1 = _registerName1("XMLString"); late final _sel_XMLStringWithOptions_1 = _registerName1("XMLStringWithOptions:"); - ffi.Pointer _objc_msgSend_1046( + ffi.Pointer _objc_msgSend_1049( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_1046( + return __objc_msgSend_1049( obj, sel, options, ); } - late final __objc_msgSend_1046Ptr = _lookup< + late final __objc_msgSend_1049Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_1046 = __objc_msgSend_1046Ptr.asFunction< + late final __objc_msgSend_1049 = __objc_msgSend_1049Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_canonicalXMLStringPreservingComments_1 = _registerName1("canonicalXMLStringPreservingComments:"); - ffi.Pointer _objc_msgSend_1047( + ffi.Pointer _objc_msgSend_1050( ffi.Pointer obj, ffi.Pointer sel, bool comments, ) { - return __objc_msgSend_1047( + return __objc_msgSend_1050( obj, sel, comments, ); } - late final __objc_msgSend_1047Ptr = _lookup< + late final __objc_msgSend_1050Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_1047 = __objc_msgSend_1047Ptr.asFunction< + late final __objc_msgSend_1050 = __objc_msgSend_1050Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, bool)>(); @@ -29739,14 +29849,14 @@ class SentryCocoa { _registerName1("nodesForXPath:error:"); late final _sel_objectsForXQuery_constants_error_1 = _registerName1("objectsForXQuery:constants:error:"); - ffi.Pointer _objc_msgSend_1048( + ffi.Pointer _objc_msgSend_1051( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer xquery, ffi.Pointer constants, ffi.Pointer> error, ) { - return __objc_msgSend_1048( + return __objc_msgSend_1051( obj, sel, xquery, @@ -29755,7 +29865,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_1048Ptr = _lookup< + late final __objc_msgSend_1051Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -29763,7 +29873,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1048 = __objc_msgSend_1048Ptr.asFunction< + late final __objc_msgSend_1051 = __objc_msgSend_1051Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -29791,13 +29901,13 @@ class SentryCocoa { late final _sel_attributeForName_1 = _registerName1("attributeForName:"); late final _sel_attributeForLocalName_URI_1 = _registerName1("attributeForLocalName:URI:"); - ffi.Pointer _objc_msgSend_1049( + ffi.Pointer _objc_msgSend_1052( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer localName, ffi.Pointer URI, ) { - return __objc_msgSend_1049( + return __objc_msgSend_1052( obj, sel, localName, @@ -29805,14 +29915,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_1049Ptr = _lookup< + late final __objc_msgSend_1052Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1049 = __objc_msgSend_1049Ptr.asFunction< + late final __objc_msgSend_1052 = __objc_msgSend_1052Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -29833,364 +29943,362 @@ class SentryCocoa { _registerName1("normalizeAdjacentTextNodesPreservingCDATA:"); late final _sel_setAttributesAsDictionary_1 = _registerName1("setAttributesAsDictionary:"); - late final _class_PrivateSentrySDKOnly1 = _getClass1("PrivateSentrySDKOnly"); - late final _class_SentryEnvelope1 = _getClass1("SentryEnvelope"); - late final _sel_storeEnvelope_1 = _registerName1("storeEnvelope:"); - void _objc_msgSend_1050( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer envelope, - ) { - return __objc_msgSend_1050( - obj, - sel, - envelope, - ); - } - - late final __objc_msgSend_1050Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1050 = __objc_msgSend_1050Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_captureEnvelope_1 = _registerName1("captureEnvelope:"); - late final _sel_envelopeWithData_1 = _registerName1("envelopeWithData:"); - ffi.Pointer _objc_msgSend_1051( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer data, - ) { - return __objc_msgSend_1051( - obj, - sel, - data, - ); - } - - late final __objc_msgSend_1051Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1051 = __objc_msgSend_1051Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_getDebugImages1 = _registerName1("getDebugImages"); - late final _sel_getDebugImagesCrashed_1 = - _registerName1("getDebugImagesCrashed:"); - ffi.Pointer _objc_msgSend_1052( - ffi.Pointer obj, - ffi.Pointer sel, - bool isCrash, - ) { - return __objc_msgSend_1052( - obj, - sel, - isCrash, - ); - } - - late final __objc_msgSend_1052Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_1052 = __objc_msgSend_1052Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, bool)>(); - - late final _sel_setSdkName_andVersionString_1 = - _registerName1("setSdkName:andVersionString:"); - late final _sel_setSdkName_1 = _registerName1("setSdkName:"); - late final _sel_getSdkName1 = _registerName1("getSdkName"); - late final _sel_getSdkVersionString1 = _registerName1("getSdkVersionString"); - late final _sel_addSdkPackage_version_1 = - _registerName1("addSdkPackage:version:"); - late final _sel_getExtraContext1 = _registerName1("getExtraContext"); - late final _class_SentryId2 = _getClass1("Sentry.SentryId"); - late final _class_SentrySpanId1 = _getClass1("SentrySpanId"); - late final _sel_setTrace_spanId_1 = _registerName1("setTrace:spanId:"); - void _objc_msgSend_1053( + late final _class_NSNotificationCenter1 = _getClass1("NSNotificationCenter"); + late final _sel_defaultCenter1 = _registerName1("defaultCenter"); + ffi.Pointer _objc_msgSend_1053( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer traceId, - ffi.Pointer spanId, ) { return __objc_msgSend_1053( obj, sel, - traceId, - spanId, ); } late final __objc_msgSend_1053Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1053 = __objc_msgSend_1053Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_startProfilerForTrace_1 = - _registerName1("startProfilerForTrace:"); - int _objc_msgSend_1054( + late final _sel_addObserver_selector_name_object_1 = + _registerName1("addObserver:selector:name:object:"); + void _objc_msgSend_1054( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer traceId, + ffi.Pointer observer, + ffi.Pointer aSelector, + ffi.Pointer aName, + ffi.Pointer anObject, ) { return __objc_msgSend_1054( obj, sel, - traceId, + observer, + aSelector, + aName, + anObject, ); } late final __objc_msgSend_1054Ptr = _lookup< ffi.NativeFunction< - ffi.Uint64 Function(ffi.Pointer, ffi.Pointer, + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1054 = __objc_msgSend_1054Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_collectProfileBetween_and_forTrace_1 = - _registerName1("collectProfileBetween:and:forTrace:"); - ffi.Pointer _objc_msgSend_1055( + late final _sel_postNotification_1 = _registerName1("postNotification:"); + void _objc_msgSend_1055( ffi.Pointer obj, ffi.Pointer sel, - int startSystemTime, - int endSystemTime, - ffi.Pointer traceId, + ffi.Pointer notification, ) { return __objc_msgSend_1055( obj, sel, - startSystemTime, - endSystemTime, - traceId, + notification, ); } late final __objc_msgSend_1055Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Uint64, - ffi.Uint64, + ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1055 = __objc_msgSend_1055Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, int, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_discardProfilerForTrace_1 = - _registerName1("discardProfilerForTrace:"); + late final _sel_postNotificationName_object_1 = + _registerName1("postNotificationName:object:"); + late final _sel_postNotificationName_object_userInfo_1 = + _registerName1("postNotificationName:object:userInfo:"); void _objc_msgSend_1056( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer traceId, + ffi.Pointer aName, + ffi.Pointer anObject, + ffi.Pointer aUserInfo, ) { return __objc_msgSend_1056( obj, sel, - traceId, + aName, + anObject, + aUserInfo, ); } late final __objc_msgSend_1056Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1056 = __objc_msgSend_1056Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _class_SentryAppStartMeasurement1 = - _getClass1("SentryAppStartMeasurement"); - late final _sel_onAppStartMeasurementAvailable1 = - _registerName1("onAppStartMeasurementAvailable"); - ffi.Pointer<_ObjCBlock> _objc_msgSend_1057( + late final _sel_removeObserver_1 = _registerName1("removeObserver:"); + late final _sel_removeObserver_name_object_1 = + _registerName1("removeObserver:name:object:"); + void _objc_msgSend_1057( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer observer, + ffi.Pointer aName, + ffi.Pointer anObject, ) { return __objc_msgSend_1057( obj, sel, + observer, + aName, + anObject, ); } late final __objc_msgSend_1057Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1057 = __objc_msgSend_1057Ptr.asFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer, ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - late final _sel_setOnAppStartMeasurementAvailable_1 = - _registerName1("setOnAppStartMeasurementAvailable:"); - void _objc_msgSend_1058( + late final _sel_addObserverForName_object_queue_usingBlock_1 = + _registerName1("addObserverForName:object:queue:usingBlock:"); + ffi.Pointer _objc_msgSend_1058( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> value, + ffi.Pointer name, + ffi.Pointer obj1, + ffi.Pointer queue, + ffi.Pointer<_ObjCBlock> block, ) { return __objc_msgSend_1058( obj, sel, - value, + name, + obj1, + queue, + block, ); } late final __objc_msgSend_1058Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_1058 = __objc_msgSend_1058Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - late final _sel_appStartMeasurement1 = _registerName1("appStartMeasurement"); - ffi.Pointer _objc_msgSend_1059( - ffi.Pointer obj, - ffi.Pointer sel, + late final _class_SentryBreadcrumbTracker1 = + _getClass1("SentryBreadcrumbTracker"); + late final _sel_connectivityChanged_typeDescription_1 = + _registerName1("connectivityChanged:typeDescription:"); + late final _class_SentryCrashWrapper1 = _getClass1("SentryCrashWrapper"); + late final _sel_systemInfo1 = _registerName1("systemInfo"); + late final _class_SentryCrashBridge1 = _getClass1("SentryCrashBridge"); + late final _sel_notificationCenterWrapper1 = + _registerName1("notificationCenterWrapper"); + late final _sel_dateProvider1 = _registerName1("dateProvider"); + late final _class_SentryCrashSwift1 = _getClass1("SentryCrashSwift"); + late final _sel_crashedLastLaunch1 = _registerName1("crashedLastLaunch"); + late final _sel_activeDurationSinceLastCrash1 = + _registerName1("activeDurationSinceLastCrash"); + late final _class_SentryCrashReportFilterSwift1 = + _getClass1("SentryCrashReportFilterSwift"); + late final _sel_initWithFilterReports_1 = + _registerName1("initWithFilterReports:"); + instancetype _objc_msgSend_1059( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> filter, ) { return __objc_msgSend_1059( obj, sel, + filter, ); } late final __objc_msgSend_1059Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_1059 = __objc_msgSend_1059Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_installationID1 = _registerName1("installationID"); - late final _class_SentryOptions1 = _getClass1("SentryOptions"); - ffi.Pointer _objc_msgSend_1060( + late final _sel_setSink_1 = _registerName1("setSink:"); + void _objc_msgSend_1060( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer newValue, ) { return __objc_msgSend_1060( obj, sel, + newValue, ); } late final __objc_msgSend_1060Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1060 = __objc_msgSend_1060Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_appStartMeasurementHybridSDKMode1 = - _registerName1("appStartMeasurementHybridSDKMode"); - late final _sel_setAppStartMeasurementHybridSDKMode_1 = - _registerName1("setAppStartMeasurementHybridSDKMode:"); - late final _sel_appStartMeasurementWithSpans1 = - _registerName1("appStartMeasurementWithSpans"); - late final _class_SentryUser1 = _getClass1("SentryUser"); - late final _sel_userWithDictionary_1 = _registerName1("userWithDictionary:"); - ffi.Pointer _objc_msgSend_1061( + late final _sel_setupOnCrash1 = _registerName1("setupOnCrash"); + late final _sel_removeOnCrash1 = _registerName1("removeOnCrash"); + late final _sel_uncaughtExceptionHandler1 = + _registerName1("uncaughtExceptionHandler"); + ffi.Pointer)>> + _objc_msgSend_1061( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer dictionary, ) { return __objc_msgSend_1061( obj, sel, - dictionary, ); } late final __objc_msgSend_1061Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.NativeFunction< + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer)>> + Function(ffi.Pointer, ffi.Pointer)>>( + 'objc_msgSend'); late final __objc_msgSend_1061 = __objc_msgSend_1061Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer< + ffi.NativeFunction)>> + Function(ffi.Pointer, ffi.Pointer)>(); - late final _class_SentryBreadcrumb1 = _getClass1("SentryBreadcrumb"); - late final _sel_breadcrumbWithDictionary_1 = - _registerName1("breadcrumbWithDictionary:"); - ffi.Pointer _objc_msgSend_1062( + late final _sel_setUncaughtExceptionHandler_1 = + _registerName1("setUncaughtExceptionHandler:"); + void _objc_msgSend_1062( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer dictionary, + ffi.Pointer)>> + value, ) { return __objc_msgSend_1062( obj, sel, - dictionary, + value, ); } late final __objc_msgSend_1062Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer)>>)>>('objc_msgSend'); late final __objc_msgSend_1062 = __objc_msgSend_1062Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi + .NativeFunction)>>)>(); - late final _class_SentryFeedback1 = _getClass1("SentryFeedback"); - late final _sel_email1 = _registerName1("email"); - late final _sel_setEmail_1 = _registerName1("setEmail:"); - late final _sel_message1 = _registerName1("message"); - late final _sel_setMessage_1 = _registerName1("setMessage:"); - late final _sel_source1 = _registerName1("source"); - int _objc_msgSend_1063( + late final _sel_setBridge_1 = _registerName1("setBridge:"); + void _objc_msgSend_1063( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer bridge, ) { return __objc_msgSend_1063( obj, sel, + bridge, ); } late final __objc_msgSend_1063Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1063 = __objc_msgSend_1063Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_setSource_1 = _registerName1("setSource:"); + late final _sel_basePath1 = _registerName1("basePath"); + late final _sel_setBasePath_1 = _registerName1("setBasePath:"); + late final _sel_install1 = _registerName1("install"); + late final _sel_uninstall1 = _registerName1("uninstall"); + late final _sel_setUserInfo_1 = _registerName1("setUserInfo:"); + late final _sel_sendAllReportsWithCompletion_1 = + _registerName1("sendAllReportsWithCompletion:"); void _objc_msgSend_1064( ffi.Pointer obj, ffi.Pointer sel, - int value, + ffi.Pointer<_ObjCBlock> completion, ) { return __objc_msgSend_1064( obj, sel, - value, + completion, ); } late final __objc_msgSend_1064Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_1064 = __objc_msgSend_1064Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - late final _class_SentryId11 = _getClass1("Sentry.SentryId"); - late final _sel_empty1 = _registerName1("empty"); - ffi.Pointer _objc_msgSend_1065( + late final _sel_monitoring1 = _registerName1("monitoring"); + int _objc_msgSend_1065( ffi.Pointer obj, ffi.Pointer sel, ) { @@ -30202,114 +30310,133 @@ class SentryCocoa { late final __objc_msgSend_1065Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Uint32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1065 = __objc_msgSend_1065Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_sentryIdString1 = _registerName1("sentryIdString"); - 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_1066( + late final _sel_hasOnCrash1 = _registerName1("hasOnCrash"); + late final _sel_crashReporter1 = _registerName1("crashReporter"); + ffi.Pointer _objc_msgSend_1066( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer bytes, ) { return __objc_msgSend_1066( obj, sel, - bytes, ); } late final __objc_msgSend_1066Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1066 = __objc_msgSend_1066Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_getUUIDBytes_1 = _registerName1("getUUIDBytes:"); - void _objc_msgSend_1067( + late final _sel_initWithNotificationCenterWrapper_dateProvider_crashReporter_1 = + _registerName1( + "initWithNotificationCenterWrapper:dateProvider:crashReporter:"); + instancetype _objc_msgSend_1067( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer uuid, + ffi.Pointer notificationCenterWrapper, + ffi.Pointer dateProvider, + ffi.Pointer crashReporter, ) { return __objc_msgSend_1067( obj, sel, - uuid, + notificationCenterWrapper, + dateProvider, + crashReporter, ); } late final __objc_msgSend_1067Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1067 = __objc_msgSend_1067Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - int _objc_msgSend_1068( + late final _sel_initWithProcessInfoWrapper_bridge_1 = + _registerName1("initWithProcessInfoWrapper:bridge:"); + instancetype _objc_msgSend_1068( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer otherUUID, + ffi.Pointer processInfoWrapper, + ffi.Pointer bridge, ) { return __objc_msgSend_1068( obj, sel, - otherUUID, + processInfoWrapper, + bridge, ); } late final __objc_msgSend_1068Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1068 = __objc_msgSend_1068Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_UUIDString1 = _registerName1("UUIDString"); - late final _sel_initWithUuid_1 = _registerName1("initWithUuid:"); - instancetype _objc_msgSend_1069( + late final _sel_startBinaryImageCache1 = + _registerName1("startBinaryImageCache"); + late final _sel_stopBinaryImageCache1 = + _registerName1("stopBinaryImageCache"); + late final _sel_durationFromCrashStateInitToLastCrash1 = + _registerName1("durationFromCrashStateInitToLastCrash"); + late final _sel_isBeingTraced1 = _registerName1("isBeingTraced"); + late final _sel_isSimulatorBuild1 = _registerName1("isSimulatorBuild"); + late final _sel_isApplicationInForeground1 = + _registerName1("isApplicationInForeground"); + late final _sel_freeMemorySize1 = _registerName1("freeMemorySize"); + int _objc_msgSend_1069( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer uuid, ) { return __objc_msgSend_1069( obj, sel, - uuid, ); } late final __objc_msgSend_1069Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Uint64 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1069 = __objc_msgSend_1069Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_isEqual_1 = _registerName1("isEqual:"); - late final _sel_eventId1 = _registerName1("eventId"); - late final _sel_associatedEventId1 = _registerName1("associatedEventId"); - late final _sel_setAssociatedEventId_1 = - _registerName1("setAssociatedEventId:"); + late final _sel_appMemorySize1 = _registerName1("appMemorySize"); + late final _class_SentryScope1 = _getClass1("SentryScope"); + late final _sel_enrichScope_1 = _registerName1("enrichScope:"); void _objc_msgSend_1070( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer value, + ffi.Pointer scope, ) { return __objc_msgSend_1070( obj, sel, - value, + scope, ); } @@ -30321,10 +30448,31 @@ class SentryCocoa { void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + late final _class_SentryFeedback1 = _getClass1("SentryFeedback"); + late final _class_SentryId1 = _getClass1("Sentry.SentryId"); + late final _sel_eventId1 = _registerName1("eventId"); + ffi.Pointer _objc_msgSend_1071( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1071( + obj, + sel, + ); + } + + late final __objc_msgSend_1071Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1071 = __objc_msgSend_1071Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_initWithMessage_name_email_source_associatedEventId_attachments_1 = _registerName1( "initWithMessage:name:email:source:associatedEventId:attachments:"); - instancetype _objc_msgSend_1071( + instancetype _objc_msgSend_1072( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer message, @@ -30334,7 +30482,7 @@ class SentryCocoa { ffi.Pointer associatedEventId, ffi.Pointer attachments, ) { - return __objc_msgSend_1071( + return __objc_msgSend_1072( obj, sel, message, @@ -30346,7 +30494,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_1071Ptr = _lookup< + late final __objc_msgSend_1072Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -30357,7 +30505,7 @@ class SentryCocoa { ffi.Int32, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1071 = __objc_msgSend_1071Ptr.asFunction< + late final __objc_msgSend_1072 = __objc_msgSend_1072Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -30369,1342 +30517,2544 @@ class SentryCocoa { ffi.Pointer)>(); late final _sel_serialize1 = _registerName1("serialize"); - late final _sel_dataDictionary1 = _registerName1("dataDictionary"); late final _sel_attachmentsForEnvelope1 = _registerName1("attachmentsForEnvelope"); -} + late final _class_SentryFileManager1 = _getClass1("SentryFileManager"); + late final _class_SentryEnvelopeItem1 = _getClass1("SentryEnvelopeItem"); + late final _sel_initWithType_data_contentType_itemCount_1 = + _registerName1("initWithType:data:contentType:itemCount:"); + instancetype _objc_msgSend_1073( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer type, + ffi.Pointer data, + ffi.Pointer contentType, + ffi.Pointer itemCount, + ) { + return __objc_msgSend_1073( + obj, + sel, + type, + data, + contentType, + itemCount, + ); + } -class _ObjCWrapper implements ffi.Finalizable { - final ffi.Pointer _id; - final SentryCocoa _lib; - bool _pendingRelease; + late final __objc_msgSend_1073Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1073 = __objc_msgSend_1073Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + 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_initWithType_data_addPlatform_1 = + _registerName1("initWithType:data:addPlatform:"); + instancetype _objc_msgSend_1074( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer type, + ffi.Pointer data, + bool addPlatform, + ) { + return __objc_msgSend_1074( + obj, + sel, + type, + data, + addPlatform, + ); } - /// 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_1074Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_1074 = __objc_msgSend_1074Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer, bool)>(); - @override - bool operator ==(Object other) { - return other is _ObjCWrapper && _id == other._id; + late final _sel_initWithEvent_1 = _registerName1("initWithEvent:"); + late final _class_SentrySession1 = _getClass1("SentrySession"); + late final _sel_initWithReleaseName_distinctId_1 = + _registerName1("initWithReleaseName:distinctId:"); + late final _sel_initWithJSONObject_1 = _registerName1("initWithJSONObject:"); + late final _sel_endSessionExitedWithTimestamp_1 = + _registerName1("endSessionExitedWithTimestamp:"); + late final _sel_endSessionCrashedWithTimestamp_1 = + _registerName1("endSessionCrashedWithTimestamp:"); + late final _sel_endSessionAbnormalWithTimestamp_1 = + _registerName1("endSessionAbnormalWithTimestamp:"); + late final _sel_incrementErrors1 = _registerName1("incrementErrors"); + late final _sel_setFlagInit1 = _registerName1("setFlagInit"); + 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_1075( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer bytes, + ) { + return __objc_msgSend_1075( + obj, + sel, + bytes, + ); } - @override - int get hashCode => _id.hashCode; + late final __objc_msgSend_1075Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1075 = __objc_msgSend_1075Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - /// Return a pointer to this object. - ffi.Pointer get pointer => _id; -} + late final _sel_getUUIDBytes_1 = _registerName1("getUUIDBytes:"); + void _objc_msgSend_1076( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer uuid, + ) { + return __objc_msgSend_1076( + obj, + sel, + uuid, + ); + } -class NSObject extends _ObjCWrapper { - NSObject._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + late final __objc_msgSend_1076Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1076 = __objc_msgSend_1076Ptr.asFunction< + void Function(ffi.Pointer, 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); + int _objc_msgSend_1077( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer otherUUID, + ) { + return __objc_msgSend_1077( + obj, + sel, + otherUUID, + ); } - /// Returns a [NSObject] that wraps the given raw object pointer. - static NSObject castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSObject._(other, lib, retain: retain, release: release); - } + late final __objc_msgSend_1077Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1077 = __objc_msgSend_1077Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - /// 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_UUIDString1 = _registerName1("UUIDString"); + late final _sel_sessionId1 = _registerName1("sessionId"); + ffi.Pointer _objc_msgSend_1078( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1078( + obj, + sel, + ); } - static void load(SentryCocoa _lib) { - _lib._objc_msgSend_1(_lib._class_NSObject1, _lib._sel_load1); - } + late final __objc_msgSend_1078Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1078 = __objc_msgSend_1078Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - static void initialize(SentryCocoa _lib) { - _lib._objc_msgSend_1(_lib._class_NSObject1, _lib._sel_initialize1); + late final _sel_started1 = _registerName1("started"); + late final _sel_errors1 = _registerName1("errors"); + late final _sel_setErrors_1 = _registerName1("setErrors:"); + late final _sel_sequence1 = _registerName1("sequence"); + late final _sel_distinctId1 = _registerName1("distinctId"); + late final _sel_flagInit1 = _registerName1("flagInit"); + late final _sel_timestamp1 = _registerName1("timestamp"); + late final _sel_releaseName1 = _registerName1("releaseName"); + late final _sel_abnormalMechanism1 = _registerName1("abnormalMechanism"); + late final _sel_setAbnormalMechanism_1 = + _registerName1("setAbnormalMechanism:"); + late final _sel_initWithSession_1 = _registerName1("initWithSession:"); + instancetype _objc_msgSend_1079( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer session, + ) { + return __objc_msgSend_1079( + obj, + sel, + session, + ); } - NSObject init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSObject._(_ret, _lib, retain: true, release: true); - } + late final __objc_msgSend_1079Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1079 = __objc_msgSend_1079Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - static NSObject new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_new1); - return NSObject._(_ret, _lib, retain: false, release: true); + late final _class_SentryAttachment1 = _getClass1("SentryAttachment"); + late final _sel_initWithAttachment_maxAttachmentSize_1 = + _registerName1("initWithAttachment:maxAttachmentSize:"); + instancetype _objc_msgSend_1080( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer attachment, + int maxAttachmentSize, + ) { + return __objc_msgSend_1080( + obj, + sel, + attachment, + maxAttachmentSize, + ); } - static NSObject allocWithZone_(SentryCocoa _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 __objc_msgSend_1080Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_1080 = __objc_msgSend_1080Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); - static NSObject alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_alloc1); - return NSObject._(_ret, _lib, retain: false, release: true); + late final _class_SentryClientReport1 = _getClass1("SentryClientReport"); + late final _sel_initWithDiscardedEvents_dateProvider_1 = + _registerName1("initWithDiscardedEvents:dateProvider:"); + instancetype _objc_msgSend_1081( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer discardedEvents, + ffi.Pointer dateProvider, + ) { + return __objc_msgSend_1081( + obj, + sel, + discardedEvents, + dateProvider, + ); } - void dealloc() { - _lib._objc_msgSend_1(_id, _lib._sel_dealloc1); - } + late final __objc_msgSend_1081Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1081 = __objc_msgSend_1081Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - void finalize() { - _lib._objc_msgSend_1(_id, _lib._sel_finalize1); + late final _sel_initWithClientReport_1 = + _registerName1("initWithClientReport:"); + instancetype _objc_msgSend_1082( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer clientReport, + ) { + return __objc_msgSend_1082( + obj, + sel, + clientReport, + ); } - NSObject copy() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_copy1); - return NSObject._(_ret, _lib, retain: false, release: true); - } + late final __objc_msgSend_1082Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1082 = __objc_msgSend_1082Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - NSObject mutableCopy() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_mutableCopy1); - return NSObject._(_ret, _lib, retain: false, release: true); + late final _class_SentryReplayEvent1 = _getClass1("SentryReplayEvent"); + late final _sel_replayStartTimestamp1 = + _registerName1("replayStartTimestamp"); + late final _sel_replayType1 = _registerName1("replayType"); + int _objc_msgSend_1083( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1083( + obj, + sel, + ); } - static NSObject copyWithZone_(SentryCocoa _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 __objc_msgSend_1083Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1083 = __objc_msgSend_1083Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); - static NSObject mutableCopyWithZone_( - SentryCocoa _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 _sel_segmentId1 = _registerName1("segmentId"); + late final _sel_urls1 = _registerName1("urls"); + late final _sel_setUrls_1 = _registerName1("setUrls:"); + late final _sel_initWithEventId_replayStartTimestamp_replayType_segmentId_1 = + _registerName1( + "initWithEventId:replayStartTimestamp:replayType:segmentId:"); + instancetype _objc_msgSend_1084( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer eventId, + ffi.Pointer replayStartTimestamp, + int replayType, + int segmentId, + ) { + return __objc_msgSend_1084( + obj, + sel, + eventId, + replayStartTimestamp, + replayType, + segmentId, + ); } - static bool instancesRespondToSelector_( - SentryCocoa _lib, ffi.Pointer aSelector) { - return _lib._objc_msgSend_4(_lib._class_NSObject1, - _lib._sel_instancesRespondToSelector_1, aSelector); - } + late final __objc_msgSend_1084Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_1084 = __objc_msgSend_1084Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer, int, int)>(); - static bool conformsToProtocol_(SentryCocoa _lib, Protocol? protocol) { - return _lib._objc_msgSend_5(_lib._class_NSObject1, - _lib._sel_conformsToProtocol_1, protocol?._id ?? ffi.nullptr); + late final _sel_initWithLevel_1 = _registerName1("initWithLevel:"); + late final _class_SentryReplayRecording1 = + _getClass1("SentryReplayRecording"); + late final _class_SentryVideoInfo1 = _getClass1("SentryVideoInfo"); + late final _sel_end1 = _registerName1("end"); + late final _sel_initWithSegmentId_video_extraEvents_1 = + _registerName1("initWithSegmentId:video:extraEvents:"); + instancetype _objc_msgSend_1085( + ffi.Pointer obj, + ffi.Pointer sel, + int segmentId, + ffi.Pointer video, + ffi.Pointer extraEvents, + ) { + return __objc_msgSend_1085( + obj, + sel, + segmentId, + video, + extraEvents, + ); } - ffi.Pointer> methodForSelector_( - ffi.Pointer aSelector) { - return _lib._objc_msgSend_6(_id, _lib._sel_methodForSelector_1, aSelector); - } + late final __objc_msgSend_1085Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1085 = __objc_msgSend_1085Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer, ffi.Pointer)>(); - static ffi.Pointer> - instanceMethodForSelector_( - SentryCocoa _lib, ffi.Pointer aSelector) { - return _lib._objc_msgSend_6(_lib._class_NSObject1, - _lib._sel_instanceMethodForSelector_1, aSelector); + late final _sel_initWithReplayEvent_replayRecording_video_1 = + _registerName1("initWithReplayEvent:replayRecording:video:"); + instancetype _objc_msgSend_1086( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer replayEvent, + ffi.Pointer replayRecording, + ffi.Pointer video, + ) { + return __objc_msgSend_1086( + obj, + sel, + replayEvent, + replayRecording, + video, + ); } - void doesNotRecognizeSelector_(ffi.Pointer aSelector) { - _lib._objc_msgSend_7(_id, _lib._sel_doesNotRecognizeSelector_1, aSelector); - } + late final __objc_msgSend_1086Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1086 = __objc_msgSend_1086Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - 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 _sel_envelopeDeletedCallback1 = + _registerName1("envelopeDeletedCallback"); + ffi.Pointer<_ObjCBlock> _objc_msgSend_1087( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1087( + obj, + sel, + ); } - void forwardInvocation_(NSInvocation? anInvocation) { - _lib._objc_msgSend_392( - _id, _lib._sel_forwardInvocation_1, anInvocation?._id ?? ffi.nullptr); - } + late final __objc_msgSend_1087Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1087 = __objc_msgSend_1087Ptr.asFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>(); - NSMethodSignature methodSignatureForSelector_( - ffi.Pointer aSelector) { - final _ret = _lib._objc_msgSend_393( - _id, _lib._sel_methodSignatureForSelector_1, aSelector); - return NSMethodSignature._(_ret, _lib, retain: true, release: true); + late final _sel_setEnvelopeDeletedCallback_1 = + _registerName1("setEnvelopeDeletedCallback:"); + void _objc_msgSend_1088( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> value, + ) { + return __objc_msgSend_1088( + obj, + sel, + value, + ); } - static NSMethodSignature instanceMethodSignatureForSelector_( - SentryCocoa _lib, ffi.Pointer aSelector) { - final _ret = _lib._objc_msgSend_393(_lib._class_NSObject1, - _lib._sel_instanceMethodSignatureForSelector_1, aSelector); - return NSMethodSignature._(_ret, _lib, retain: true, release: true); - } + late final __objc_msgSend_1088Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_1088 = __objc_msgSend_1088Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - bool allowsWeakReference() { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsWeakReference1); + late final _sel_sentryPath1 = _registerName1("sentryPath"); + late final _sel_breadcrumbsFilePathOne1 = + _registerName1("breadcrumbsFilePathOne"); + late final _sel_breadcrumbsFilePathTwo1 = + _registerName1("breadcrumbsFilePathTwo"); + late final _sel_previousBreadcrumbsFilePathOne1 = + _registerName1("previousBreadcrumbsFilePathOne"); + late final _sel_previousBreadcrumbsFilePathTwo1 = + _registerName1("previousBreadcrumbsFilePathTwo"); + late final _class_SentryOptions1 = _getClass1("SentryOptions"); + late final _sel_dsn1 = _registerName1("dsn"); + late final _sel_setDsn_1 = _registerName1("setDsn:"); + late final _class_SentryDsn1 = _getClass1("SentryDsn"); + late final _sel_url1 = _registerName1("url"); + late final _sel_initWithString_didFailWithError_1 = + _registerName1("initWithString:didFailWithError:"); + late final _sel_getHash1 = _registerName1("getHash"); + late final _sel_getEnvelopeEndpoint1 = _registerName1("getEnvelopeEndpoint"); + late final _sel_orgId1 = _registerName1("orgId"); + late final _sel_parsedDsn1 = _registerName1("parsedDsn"); + ffi.Pointer _objc_msgSend_1089( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1089( + obj, + sel, + ); } - bool retainWeakReference() { - return _lib._objc_msgSend_12(_id, _lib._sel_retainWeakReference1); - } + late final __objc_msgSend_1089Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1089 = __objc_msgSend_1089Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - static bool isSubclassOfClass_(SentryCocoa _lib, NSObject aClass) { - return _lib._objc_msgSend_0( - _lib._class_NSObject1, _lib._sel_isSubclassOfClass_1, aClass._id); + late final _sel_setParsedDsn_1 = _registerName1("setParsedDsn:"); + void _objc_msgSend_1090( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_1090( + obj, + sel, + value, + ); } - static bool resolveClassMethod_(SentryCocoa _lib, ffi.Pointer sel) { - return _lib._objc_msgSend_4( - _lib._class_NSObject1, _lib._sel_resolveClassMethod_1, sel); - } + late final __objc_msgSend_1090Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1090 = __objc_msgSend_1090Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - static bool resolveInstanceMethod_( - SentryCocoa _lib, ffi.Pointer sel) { - return _lib._objc_msgSend_4( - _lib._class_NSObject1, _lib._sel_resolveInstanceMethod_1, sel); + late final _sel_debug1 = _registerName1("debug"); + late final _sel_setDebug_1 = _registerName1("setDebug:"); + late final _sel_diagnosticLevel1 = _registerName1("diagnosticLevel"); + late final _sel_setDiagnosticLevel_1 = _registerName1("setDiagnosticLevel:"); + void _objc_msgSend_1091( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_1091( + obj, + sel, + value, + ); } - static int hash(SentryCocoa _lib) { - return _lib._objc_msgSend_10(_lib._class_NSObject1, _lib._sel_hash1); - } + late final __objc_msgSend_1091Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int)>>('objc_msgSend'); + late final __objc_msgSend_1091 = __objc_msgSend_1091Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); - static NSObject superclass(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_superclass1); - return NSObject._(_ret, _lib, retain: true, release: true); + late final _sel_setReleaseName_1 = _registerName1("setReleaseName:"); + late final _sel_dist1 = _registerName1("dist"); + late final _sel_setDist_1 = _registerName1("setDist:"); + late final _sel_enabled1 = _registerName1("enabled"); + late final _sel_setEnabled_1 = _registerName1("setEnabled:"); + late final _sel_shutdownTimeInterval1 = + _registerName1("shutdownTimeInterval"); + late final _sel_setShutdownTimeInterval_1 = + _registerName1("setShutdownTimeInterval:"); + late final _sel_enableCrashHandler1 = _registerName1("enableCrashHandler"); + late final _sel_setEnableCrashHandler_1 = + _registerName1("setEnableCrashHandler:"); + late final _sel_enableUncaughtNSExceptionReporting1 = + _registerName1("enableUncaughtNSExceptionReporting"); + late final _sel_setEnableUncaughtNSExceptionReporting_1 = + _registerName1("setEnableUncaughtNSExceptionReporting:"); + late final _sel_enableSigtermReporting1 = + _registerName1("enableSigtermReporting"); + late final _sel_setEnableSigtermReporting_1 = + _registerName1("setEnableSigtermReporting:"); + late final _sel_maxBreadcrumbs1 = _registerName1("maxBreadcrumbs"); + late final _sel_setMaxBreadcrumbs_1 = _registerName1("setMaxBreadcrumbs:"); + late final _sel_enableNetworkBreadcrumbs1 = + _registerName1("enableNetworkBreadcrumbs"); + late final _sel_setEnableNetworkBreadcrumbs_1 = + _registerName1("setEnableNetworkBreadcrumbs:"); + late final _sel_maxCacheItems1 = _registerName1("maxCacheItems"); + late final _sel_setMaxCacheItems_1 = _registerName1("setMaxCacheItems:"); + late final _sel_beforeSend1 = _registerName1("beforeSend"); + late final _sel_setBeforeSend_1 = _registerName1("setBeforeSend:"); + late final _sel_beforeSendSpan1 = _registerName1("beforeSendSpan"); + late final _sel_setBeforeSendSpan_1 = _registerName1("setBeforeSendSpan:"); + late final _sel_enableLogs1 = _registerName1("enableLogs"); + late final _sel_setEnableLogs_1 = _registerName1("setEnableLogs:"); + late final _class_SentryLog1 = _getClass1("SentryLog"); + late final _sel_setTimestamp_1 = _registerName1("setTimestamp:"); + late final _sel_traceId1 = _registerName1("traceId"); + late final _sel_setTraceId_1 = _registerName1("setTraceId:"); + void _objc_msgSend_1092( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_1092( + obj, + sel, + value, + ); } - static NSObject class1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_class1); - return NSObject._(_ret, _lib, retain: true, release: true); - } + late final __objc_msgSend_1092Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1092 = __objc_msgSend_1092Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - static NSString description(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_20(_lib._class_NSObject1, _lib._sel_description1); - return NSString._(_ret, _lib, retain: true, release: true); + late final _class_SentrySpanId1 = _getClass1("SentrySpanId"); + late final _sel_spanId1 = _registerName1("spanId"); + ffi.Pointer _objc_msgSend_1093( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1093( + obj, + sel, + ); } - static NSString debugDescription(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_20( - _lib._class_NSObject1, _lib._sel_debugDescription1); - return NSString._(_ret, _lib, retain: true, release: true); - } + late final __objc_msgSend_1093Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1093 = __objc_msgSend_1093Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - static int version(SentryCocoa _lib) { - return _lib._objc_msgSend_78(_lib._class_NSObject1, _lib._sel_version1); + late final _sel_setSpanId_1 = _registerName1("setSpanId:"); + void _objc_msgSend_1094( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_1094( + obj, + sel, + value, + ); } - static void setVersion_(SentryCocoa _lib, int aVersion) { - _lib._objc_msgSend_394( - _lib._class_NSObject1, _lib._sel_setVersion_1, aVersion); - } + late final __objc_msgSend_1094Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1094 = __objc_msgSend_1094Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - NSObject get classForCoder { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_classForCoder1); - return NSObject._(_ret, _lib, retain: true, release: true); + int _objc_msgSend_1095( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1095( + obj, + sel, + ); } - 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 __objc_msgSend_1095Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1095 = __objc_msgSend_1095Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); - 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 _sel_setLevel_1 = _registerName1("setLevel:"); + void _objc_msgSend_1096( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_1096( + obj, + sel, + value, + ); } - static void poseAsClass_(SentryCocoa _lib, NSObject aClass) { - _lib._objc_msgSend_15( - _lib._class_NSObject1, _lib._sel_poseAsClass_1, aClass._id); - } + late final __objc_msgSend_1096Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_1096 = __objc_msgSend_1096Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); - NSObject get autoContentAccessingProxy { - final _ret = - _lib._objc_msgSend_2(_id, _lib._sel_autoContentAccessingProxy1); - return NSObject._(_ret, _lib, retain: true, release: true); + late final _sel_body1 = _registerName1("body"); + late final _sel_setBody_1 = _registerName1("setBody:"); + late final _sel_severityNumber1 = _registerName1("severityNumber"); + late final _sel_setSeverityNumber_1 = _registerName1("setSeverityNumber:"); + late final _sel_initWithLevel_body_1 = _registerName1("initWithLevel:body:"); + instancetype _objc_msgSend_1097( + ffi.Pointer obj, + ffi.Pointer sel, + int level, + ffi.Pointer body, + ) { + return __objc_msgSend_1097( + obj, + sel, + level, + body, + ); } - void - attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_( - NSError? error, - int recoveryOptionIndex, - NSObject delegate, - ffi.Pointer didRecoverSelector, - ffi.Pointer contextInfo) { - _lib._objc_msgSend_395( - _id, - _lib._sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_1, - error?._id ?? ffi.nullptr, - recoveryOptionIndex, - delegate._id, - didRecoverSelector, - contextInfo); - } + late final __objc_msgSend_1097Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Int32, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1097 = __objc_msgSend_1097Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer)>(); - bool attemptRecoveryFromError_optionIndex_( - NSError? error, int recoveryOptionIndex) { - return _lib._objc_msgSend_396( - _id, - _lib._sel_attemptRecoveryFromError_optionIndex_1, - error?._id ?? ffi.nullptr, - recoveryOptionIndex); + late final _sel_initWithLevel_body_attributes_1 = + _registerName1("initWithLevel:body:attributes:"); + instancetype _objc_msgSend_1098( + ffi.Pointer obj, + ffi.Pointer sel, + int level, + ffi.Pointer body, + ffi.Pointer attributes, + ) { + return __objc_msgSend_1098( + obj, + sel, + level, + body, + attributes, + ); } - void performSelector_withObject_afterDelay_inModes_( - ffi.Pointer aSelector, - NSObject anArgument, - double delay, - NSArray? modes) { - _lib._objc_msgSend_397( - _id, - _lib._sel_performSelector_withObject_afterDelay_inModes_1, - aSelector, - anArgument._id, - delay, - modes?._id ?? ffi.nullptr); - } + late final __objc_msgSend_1098Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1098 = __objc_msgSend_1098Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer, ffi.Pointer)>(); - void performSelector_withObject_afterDelay_( - ffi.Pointer aSelector, NSObject anArgument, double delay) { - _lib._objc_msgSend_398( - _id, - _lib._sel_performSelector_withObject_afterDelay_1, - aSelector, - anArgument._id, - delay); + late final _class_SentryAttribute1 = _getClass1("SentryAttribute"); + late final _sel_initWithBoolean_1 = _registerName1("initWithBoolean:"); + instancetype _objc_msgSend_1099( + ffi.Pointer obj, + ffi.Pointer sel, + double value, + ) { + return __objc_msgSend_1099( + obj, + sel, + value, + ); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _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); - } + late final __objc_msgSend_1099Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Float)>>('objc_msgSend'); + late final __objc_msgSend_1099 = __objc_msgSend_1099Ptr.asFunction< + instancetype Function( + ffi.Pointer, ffi.Pointer, double)>(); - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSObject1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + late final _sel_initWithStringArray_1 = + _registerName1("initWithStringArray:"); + late final _sel_initWithBooleanArray_1 = + _registerName1("initWithBooleanArray:"); + late final _sel_initWithIntegerArray_1 = + _registerName1("initWithIntegerArray:"); + late final _sel_initWithDoubleArray_1 = + _registerName1("initWithDoubleArray:"); + late final _sel_initWithFloatArray_1 = _registerName1("initWithFloatArray:"); + late final _sel_setAttribute_forKey_1 = + _registerName1("setAttribute:forKey:"); + void _objc_msgSend_1100( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer attribute, + ffi.Pointer key, + ) { + return __objc_msgSend_1100( + obj, + sel, + attribute, + key, + ); } - void URL_resourceDataDidBecomeAvailable_(NSURL? sender, NSData? newBytes) { - _lib._objc_msgSend_399(_id, _lib._sel_URL_resourceDataDidBecomeAvailable_1, - sender?._id ?? ffi.nullptr, newBytes?._id ?? ffi.nullptr); - } + late final __objc_msgSend_1100Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1100 = __objc_msgSend_1100Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - void URLResourceDidFinishLoading_(NSURL? sender) { - _lib._objc_msgSend_400(_id, _lib._sel_URLResourceDidFinishLoading_1, - sender?._id ?? ffi.nullptr); + late final _sel_beforeSendLog1 = _registerName1("beforeSendLog"); + ffi.Pointer<_ObjCBlock> _objc_msgSend_1101( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1101( + obj, + sel, + ); } - void URLResourceDidCancelLoading_(NSURL? sender) { - _lib._objc_msgSend_400(_id, _lib._sel_URLResourceDidCancelLoading_1, - sender?._id ?? ffi.nullptr); - } + late final __objc_msgSend_1101Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1101 = __objc_msgSend_1101Ptr.asFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>(); - void URL_resourceDidFailLoadingWithReason_(NSURL? sender, NSString? reason) { - _lib._objc_msgSend_401( - _id, - _lib._sel_URL_resourceDidFailLoadingWithReason_1, - sender?._id ?? ffi.nullptr, - reason?._id ?? ffi.nullptr); + late final _sel_setBeforeSendLog_1 = _registerName1("setBeforeSendLog:"); + void _objc_msgSend_1102( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> value, + ) { + return __objc_msgSend_1102( + obj, + sel, + value, + ); } - bool fileManager_shouldProceedAfterError_( - NSFileManager? fm, NSDictionary? errorInfo) { - return _lib._objc_msgSend_436( - _id, - _lib._sel_fileManager_shouldProceedAfterError_1, - fm?._id ?? ffi.nullptr, - errorInfo?._id ?? ffi.nullptr); - } + late final __objc_msgSend_1102Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_1102 = __objc_msgSend_1102Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - void fileManager_willProcessPath_(NSFileManager? fm, NSString? path) { - _lib._objc_msgSend_437(_id, _lib._sel_fileManager_willProcessPath_1, - fm?._id ?? ffi.nullptr, path?._id ?? ffi.nullptr); + late final _sel_beforeBreadcrumb1 = _registerName1("beforeBreadcrumb"); + late final _sel_setBeforeBreadcrumb_1 = + _registerName1("setBeforeBreadcrumb:"); + late final _sel_beforeCaptureScreenshot1 = + _registerName1("beforeCaptureScreenshot"); + late final _sel_setBeforeCaptureScreenshot_1 = + _registerName1("setBeforeCaptureScreenshot:"); + late final _sel_beforeCaptureViewHierarchy1 = + _registerName1("beforeCaptureViewHierarchy"); + late final _sel_setBeforeCaptureViewHierarchy_1 = + _registerName1("setBeforeCaptureViewHierarchy:"); + late final _sel_onCrashedLastRun1 = _registerName1("onCrashedLastRun"); + late final _sel_setOnCrashedLastRun_1 = + _registerName1("setOnCrashedLastRun:"); + late final _sel_onLastRunStatusDetermined1 = + _registerName1("onLastRunStatusDetermined"); + ffi.Pointer<_ObjCBlock> _objc_msgSend_1103( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1103( + obj, + sel, + ); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSObject1, _lib._sel_accessInstanceVariablesDirectly1); - } + late final __objc_msgSend_1103Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1103 = __objc_msgSend_1103Ptr.asFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>(); - 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 _sel_setOnLastRunStatusDetermined_1 = + _registerName1("setOnLastRunStatusDetermined:"); + void _objc_msgSend_1104( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> value, + ) { + return __objc_msgSend_1104( + obj, + sel, + value, + ); } - void setValue_forKey_(NSObject value, NSString? key) { - _lib._objc_msgSend_126( - _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); - } + late final __objc_msgSend_1104Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_1104 = __objc_msgSend_1104Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - bool validateValue_forKey_error_(ffi.Pointer> ioValue, - NSString? inKey, ffi.Pointer> outError) { - return _lib._objc_msgSend_225(_id, _lib._sel_validateValue_forKey_error_1, - ioValue, inKey?._id ?? ffi.nullptr, outError); - } + late final _sel_sampleRate1 = _registerName1("sampleRate"); + late final _sel_setSampleRate_1 = _registerName1("setSampleRate:"); + late final _sel_enableAutoSessionTracking1 = + _registerName1("enableAutoSessionTracking"); + late final _sel_setEnableAutoSessionTracking_1 = + _registerName1("setEnableAutoSessionTracking:"); + late final _sel_enableGraphQLOperationTracking1 = + _registerName1("enableGraphQLOperationTracking"); + late final _sel_setEnableGraphQLOperationTracking_1 = + _registerName1("setEnableGraphQLOperationTracking:"); + late final _sel_enableWatchdogTerminationTracking1 = + _registerName1("enableWatchdogTerminationTracking"); + late final _sel_setEnableWatchdogTerminationTracking_1 = + _registerName1("setEnableWatchdogTerminationTracking:"); + late final _sel_sessionTrackingIntervalMillis1 = + _registerName1("sessionTrackingIntervalMillis"); + late final _sel_setSessionTrackingIntervalMillis_1 = + _registerName1("setSessionTrackingIntervalMillis:"); + late final _sel_attachStacktrace1 = _registerName1("attachStacktrace"); + late final _sel_setAttachStacktrace_1 = + _registerName1("setAttachStacktrace:"); + late final _sel_attachAllThreads1 = _registerName1("attachAllThreads"); + late final _sel_setAttachAllThreads_1 = + _registerName1("setAttachAllThreads:"); + late final _sel_maxAttachmentSize1 = _registerName1("maxAttachmentSize"); + late final _sel_setMaxAttachmentSize_1 = + _registerName1("setMaxAttachmentSize:"); + late final _sel_sendDefaultPii1 = _registerName1("sendDefaultPii"); + late final _sel_setSendDefaultPii_1 = _registerName1("setSendDefaultPii:"); + late final _sel_enableAutoPerformanceTracing1 = + _registerName1("enableAutoPerformanceTracing"); + late final _sel_setEnableAutoPerformanceTracing_1 = + _registerName1("setEnableAutoPerformanceTracing:"); + late final _sel_enablePersistingTracesWhenCrashing1 = + _registerName1("enablePersistingTracesWhenCrashing"); + late final _sel_setEnablePersistingTracesWhenCrashing_1 = + _registerName1("setEnablePersistingTracesWhenCrashing:"); + late final _sel_initialScope1 = _registerName1("initialScope"); + ffi.Pointer<_ObjCBlock> _objc_msgSend_1105( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1105( + obj, + sel, + ); + } + + late final __objc_msgSend_1105Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1105 = __objc_msgSend_1105Ptr.asFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>(); - NSMutableArray mutableArrayValueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_454( - _id, _lib._sel_mutableArrayValueForKey_1, key?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + late final _sel_setInitialScope_1 = _registerName1("setInitialScope:"); + void _objc_msgSend_1106( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> value, + ) { + return __objc_msgSend_1106( + obj, + sel, + value, + ); } - NSMutableOrderedSet mutableOrderedSetValueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_473( - _id, _lib._sel_mutableOrderedSetValueForKey_1, key?._id ?? ffi.nullptr); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); - } + late final __objc_msgSend_1106Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_1106 = __objc_msgSend_1106Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - NSMutableSet mutableSetValueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_474( - _id, _lib._sel_mutableSetValueForKey_1, key?._id ?? ffi.nullptr); - return NSMutableSet._(_ret, _lib, retain: true, release: true); + late final _sel_enableNetworkTracking1 = + _registerName1("enableNetworkTracking"); + late final _sel_setEnableNetworkTracking_1 = + _registerName1("setEnableNetworkTracking:"); + late final _sel_enableFileIOTracing1 = _registerName1("enableFileIOTracing"); + late final _sel_setEnableFileIOTracing_1 = + _registerName1("setEnableFileIOTracing:"); + late final _sel_enableDataSwizzling1 = _registerName1("enableDataSwizzling"); + late final _sel_setEnableDataSwizzling_1 = + _registerName1("setEnableDataSwizzling:"); + late final _sel_enableFileManagerSwizzling1 = + _registerName1("enableFileManagerSwizzling"); + late final _sel_setEnableFileManagerSwizzling_1 = + _registerName1("setEnableFileManagerSwizzling:"); + late final _sel_tracesSampleRate1 = _registerName1("tracesSampleRate"); + late final _sel_setTracesSampleRate_1 = + _registerName1("setTracesSampleRate:"); + late final _sel_tracesSampler1 = _registerName1("tracesSampler"); + late final _sel_setTracesSampler_1 = _registerName1("setTracesSampler:"); + late final _sel_isTracingEnabled1 = _registerName1("isTracingEnabled"); + late final _sel_inAppIncludes1 = _registerName1("inAppIncludes"); + late final _sel_addInAppInclude_1 = _registerName1("addInAppInclude:"); + late final _sel_urlSessionDelegate1 = _registerName1("urlSessionDelegate"); + late final _sel_setUrlSessionDelegate_1 = + _registerName1("setUrlSessionDelegate:"); + late final _sel_urlSession1 = _registerName1("urlSession"); + late final _sel_setUrlSession_1 = _registerName1("setUrlSession:"); + void _objc_msgSend_1107( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_1107( + obj, + sel, + value, + ); } - 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_1107Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1107 = __objc_msgSend_1107Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - void setValue_forKeyPath_(NSObject value, NSString? keyPath) { - _lib._objc_msgSend_126(_id, _lib._sel_setValue_forKeyPath_1, value._id, - keyPath?._id ?? ffi.nullptr); + late final _sel_enableSwizzling1 = _registerName1("enableSwizzling"); + late final _sel_setEnableSwizzling_1 = _registerName1("setEnableSwizzling:"); + late final _sel_swizzleClassNameExcludes1 = + _registerName1("swizzleClassNameExcludes"); + late final _sel_setSwizzleClassNameExcludes_1 = + _registerName1("setSwizzleClassNameExcludes:"); + late final _sel_enableCoreDataTracing1 = + _registerName1("enableCoreDataTracing"); + late final _sel_setEnableCoreDataTracing_1 = + _registerName1("setEnableCoreDataTracing:"); + late final _class_SentryProfileOptions1 = _getClass1("SentryProfileOptions"); + late final _sel_lifecycle1 = _registerName1("lifecycle"); + int _objc_msgSend_1108( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1108( + obj, + sel, + ); } - bool validateValue_forKeyPath_error_( - ffi.Pointer> ioValue, - NSString? inKeyPath, - ffi.Pointer> outError) { - return _lib._objc_msgSend_225( - _id, - _lib._sel_validateValue_forKeyPath_error_1, - ioValue, - inKeyPath?._id ?? ffi.nullptr, - outError); - } + late final __objc_msgSend_1108Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1108 = __objc_msgSend_1108Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); - NSMutableArray mutableArrayValueForKeyPath_(NSString? keyPath) { - final _ret = _lib._objc_msgSend_454(_id, - _lib._sel_mutableArrayValueForKeyPath_1, keyPath?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + late final _sel_setLifecycle_1 = _registerName1("setLifecycle:"); + void _objc_msgSend_1109( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_1109( + obj, + sel, + value, + ); } - NSMutableOrderedSet mutableOrderedSetValueForKeyPath_(NSString? keyPath) { - final _ret = _lib._objc_msgSend_473( - _id, - _lib._sel_mutableOrderedSetValueForKeyPath_1, - keyPath?._id ?? ffi.nullptr); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); - } + late final __objc_msgSend_1109Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_1109 = __objc_msgSend_1109Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); - NSMutableSet mutableSetValueForKeyPath_(NSString? keyPath) { - final _ret = _lib._objc_msgSend_474(_id, - _lib._sel_mutableSetValueForKeyPath_1, keyPath?._id ?? ffi.nullptr); - return NSMutableSet._(_ret, _lib, retain: true, release: true); + late final _sel_sessionSampleRate1 = _registerName1("sessionSampleRate"); + late final _sel_setSessionSampleRate_1 = + _registerName1("setSessionSampleRate:"); + late final _sel_profileAppStarts1 = _registerName1("profileAppStarts"); + late final _sel_setProfileAppStarts_1 = + _registerName1("setProfileAppStarts:"); + late final _sel_configureProfiling1 = _registerName1("configureProfiling"); + ffi.Pointer<_ObjCBlock> _objc_msgSend_1110( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1110( + obj, + sel, + ); } - 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_1110Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1110 = __objc_msgSend_1110Ptr.asFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>(); - void setValue_forUndefinedKey_(NSObject value, NSString? key) { - _lib._objc_msgSend_126(_id, _lib._sel_setValue_forUndefinedKey_1, value._id, - key?._id ?? ffi.nullptr); + late final _sel_setConfigureProfiling_1 = + _registerName1("setConfigureProfiling:"); + void _objc_msgSend_1111( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> value, + ) { + return __objc_msgSend_1111( + obj, + sel, + value, + ); } - void setNilValueForKey_(NSString? key) { - _lib._objc_msgSend_192( - _id, _lib._sel_setNilValueForKey_1, key?._id ?? ffi.nullptr); - } + late final __objc_msgSend_1111Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_1111 = __objc_msgSend_1111Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - NSDictionary dictionaryWithValuesForKeys_(NSArray? keys) { - final _ret = _lib._objc_msgSend_475( - _id, _lib._sel_dictionaryWithValuesForKeys_1, keys?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + late final _sel_profiling1 = _registerName1("profiling"); + ffi.Pointer _objc_msgSend_1112( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1112( + obj, + sel, + ); } - void setValuesForKeysWithDictionary_(NSDictionary? keyedValues) { - _lib._objc_msgSend_476(_id, _lib._sel_setValuesForKeysWithDictionary_1, - keyedValues?._id ?? ffi.nullptr); - } + late final __objc_msgSend_1112Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1112 = __objc_msgSend_1112Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSObject1, _lib._sel_useStoredAccessor1); + late final _sel_setProfiling_1 = _registerName1("setProfiling:"); + void _objc_msgSend_1113( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_1113( + obj, + sel, + value, + ); } - 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_1113Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1113 = __objc_msgSend_1113Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - void takeStoredValue_forKey_(NSObject value, NSString? key) { - _lib._objc_msgSend_126(_id, _lib._sel_takeStoredValue_forKey_1, value._id, - key?._id ?? ffi.nullptr); - } + late final _sel_isContinuousProfilingEnabled1 = + _registerName1("isContinuousProfilingEnabled"); + late final _sel_isProfilingCorrelatedToTraces1 = + _registerName1("isProfilingCorrelatedToTraces"); + late final _sel_sendClientReports1 = _registerName1("sendClientReports"); + late final _sel_setSendClientReports_1 = + _registerName1("setSendClientReports:"); + late final _sel_enableAppHangTracking1 = + _registerName1("enableAppHangTracking"); + late final _sel_setEnableAppHangTracking_1 = + _registerName1("setEnableAppHangTracking:"); + late final _sel_appHangTimeoutInterval1 = + _registerName1("appHangTimeoutInterval"); + late final _sel_setAppHangTimeoutInterval_1 = + _registerName1("setAppHangTimeoutInterval:"); + late final _sel_enableAutoBreadcrumbTracking1 = + _registerName1("enableAutoBreadcrumbTracking"); + late final _sel_setEnableAutoBreadcrumbTracking_1 = + _registerName1("setEnableAutoBreadcrumbTracking:"); + late final _sel_enablePropagateTraceparent1 = + _registerName1("enablePropagateTraceparent"); + late final _sel_setEnablePropagateTraceparent_1 = + _registerName1("setEnablePropagateTraceparent:"); + late final _sel_tracePropagationTargets1 = + _registerName1("tracePropagationTargets"); + late final _sel_setTracePropagationTargets_1 = + _registerName1("setTracePropagationTargets:"); + late final _sel_enableCaptureFailedRequests1 = + _registerName1("enableCaptureFailedRequests"); + late final _sel_setEnableCaptureFailedRequests_1 = + _registerName1("setEnableCaptureFailedRequests:"); + late final _sel_failedRequestStatusCodes1 = + _registerName1("failedRequestStatusCodes"); + late final _sel_setFailedRequestStatusCodes_1 = + _registerName1("setFailedRequestStatusCodes:"); + late final _sel_failedRequestTargets1 = + _registerName1("failedRequestTargets"); + late final _sel_setFailedRequestTargets_1 = + _registerName1("setFailedRequestTargets:"); + late final _sel_enableMetricKit1 = _registerName1("enableMetricKit"); + late final _sel_setEnableMetricKit_1 = _registerName1("setEnableMetricKit:"); + late final _sel_enableMetricKitRawPayload1 = + _registerName1("enableMetricKitRawPayload"); + late final _sel_setEnableMetricKitRawPayload_1 = + _registerName1("setEnableMetricKitRawPayload:"); + late final _sel_enableTimeToFullDisplayTracing1 = + _registerName1("enableTimeToFullDisplayTracing"); + late final _sel_setEnableTimeToFullDisplayTracing_1 = + _registerName1("setEnableTimeToFullDisplayTracing:"); + late final _sel_swiftAsyncStacktraces1 = + _registerName1("swiftAsyncStacktraces"); + late final _sel_setSwiftAsyncStacktraces_1 = + _registerName1("setSwiftAsyncStacktraces:"); + late final _sel_cacheDirectoryPath1 = _registerName1("cacheDirectoryPath"); + late final _sel_setCacheDirectoryPath_1 = + _registerName1("setCacheDirectoryPath:"); + late final _sel_enableSpotlight1 = _registerName1("enableSpotlight"); + late final _sel_setEnableSpotlight_1 = _registerName1("setEnableSpotlight:"); + late final _sel_spotlightUrl1 = _registerName1("spotlightUrl"); + late final _sel_setSpotlightUrl_1 = _registerName1("setSpotlightUrl:"); + late final _sel_strictTraceContinuation1 = + _registerName1("strictTraceContinuation"); + late final _sel_setStrictTraceContinuation_1 = + _registerName1("setStrictTraceContinuation:"); + late final _sel_setOrgId_1 = _registerName1("setOrgId:"); + late final _sel_effectiveOrgId1 = _registerName1("effectiveOrgId"); + late final _class_SentryExperimentalOptions1 = + _getClass1("SentryExperimentalOptions"); + late final _sel_enableUnhandledCPPExceptionsV21 = + _registerName1("enableUnhandledCPPExceptionsV2"); + late final _sel_setEnableUnhandledCPPExceptionsV2_1 = + _registerName1("setEnableUnhandledCPPExceptionsV2:"); + late final _sel_enableSessionReplayInUnreliableEnvironment1 = + _registerName1("enableSessionReplayInUnreliableEnvironment"); + late final _sel_setEnableSessionReplayInUnreliableEnvironment_1 = + _registerName1("setEnableSessionReplayInUnreliableEnvironment:"); + late final _sel_enableMetrics1 = _registerName1("enableMetrics"); + late final _sel_setEnableMetrics_1 = _registerName1("setEnableMetrics:"); + late final _sel_enableWatchdogTerminationsV21 = + _registerName1("enableWatchdogTerminationsV2"); + late final _sel_setEnableWatchdogTerminationsV2_1 = + _registerName1("setEnableWatchdogTerminationsV2:"); + late final _sel_validateOptions_1 = _registerName1("validateOptions:"); + late final _sel_experimental1 = _registerName1("experimental"); + ffi.Pointer _objc_msgSend_1114( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1114( + obj, + sel, + ); + } + + late final __objc_msgSend_1114Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1114 = __objc_msgSend_1114Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - void takeValue_forKey_(NSObject value, NSString? key) { - _lib._objc_msgSend_126( - _id, _lib._sel_takeValue_forKey_1, value._id, key?._id ?? ffi.nullptr); + late final _sel_setExperimental_1 = _registerName1("setExperimental:"); + void _objc_msgSend_1115( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_1115( + obj, + sel, + value, + ); } - void takeValue_forKeyPath_(NSObject value, NSString? keyPath) { - _lib._objc_msgSend_126(_id, _lib._sel_takeValue_forKeyPath_1, value._id, - keyPath?._id ?? ffi.nullptr); - } + late final __objc_msgSend_1115Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1115 = __objc_msgSend_1115Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - 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 _sel_isValidSampleRate_1 = _registerName1("isValidSampleRate:"); + late final _sel_defaultEnvironment1 = _registerName1("defaultEnvironment"); + late final _class_SentryDispatchQueueWrapper1 = + _getClass1("SentryDispatchQueueWrapper"); + late final _sel_initWithName_relativePriority_1 = + _registerName1("initWithName:relativePriority:"); + instancetype _objc_msgSend_1116( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + int relativePriority, + ) { + return __objc_msgSend_1116( + obj, + sel, + name, + relativePriority, + ); } - void handleTakeValue_forUnboundKey_(NSObject value, NSString? key) { - _lib._objc_msgSend_126(_id, _lib._sel_handleTakeValue_forUnboundKey_1, - value._id, key?._id ?? ffi.nullptr); - } + late final __objc_msgSend_1116Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_1116 = __objc_msgSend_1116Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); - void unableToSetNilForKey_(NSString? key) { - _lib._objc_msgSend_192( - _id, _lib._sel_unableToSetNilForKey_1, key?._id ?? ffi.nullptr); + late final _sel_initWithName_attributes_1 = + _registerName1("initWithName:attributes:"); + instancetype _objc_msgSend_1117( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ffi.Pointer attributes, + ) { + return __objc_msgSend_1117( + obj, + sel, + name, + attributes, + ); } - NSDictionary valuesForKeys_(NSArray? keys) { - final _ret = _lib._objc_msgSend_475( - _id, _lib._sel_valuesForKeys_1, keys?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + late final __objc_msgSend_1117Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1117 = __objc_msgSend_1117Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_initWithHighPriority_1 = + _registerName1("initWithHighPriority:"); + late final _sel_queue1 = _registerName1("queue"); + late final _sel_dispatchAsyncWithBlock_1 = + _registerName1("dispatchAsyncWithBlock:"); + late final _sel_dispatchAsyncOnMainQueueIfNotMainThread_1 = + _registerName1("dispatchAsyncOnMainQueueIfNotMainThread:"); + late final _sel_dispatchSyncOnMainQueue_1 = + _registerName1("dispatchSyncOnMainQueue:"); + late final _sel_dispatchSyncOnMainQueue_timeout_1 = + _registerName1("dispatchSyncOnMainQueue:timeout:"); + void _objc_msgSend_1118( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> block, + double timeout, + ) { + return __objc_msgSend_1118( + obj, + sel, + block, + timeout, + ); } - void takeValuesFromDictionary_(NSDictionary? properties) { - _lib._objc_msgSend_476(_id, _lib._sel_takeValuesFromDictionary_1, - properties?._id ?? ffi.nullptr); - } + late final __objc_msgSend_1118Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>, ffi.Double)>>('objc_msgSend'); + late final __objc_msgSend_1118 = __objc_msgSend_1118Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>, double)>(); - void observeValueForKeyPath_ofObject_change_context_(NSString? keyPath, - NSObject object, NSDictionary? change, ffi.Pointer context) { - _lib._objc_msgSend_477( - _id, - _lib._sel_observeValueForKeyPath_ofObject_change_context_1, - keyPath?._id ?? ffi.nullptr, - object._id, - change?._id ?? ffi.nullptr, - context); + late final _sel_dispatchAfter_block_1 = + _registerName1("dispatchAfter:block:"); + void _objc_msgSend_1119( + ffi.Pointer obj, + ffi.Pointer sel, + double interval, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_1119( + obj, + sel, + interval, + block, + ); } - 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, - options, - context); - } + late final __objc_msgSend_1119Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Double, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_1119 = __objc_msgSend_1119Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, double, + ffi.Pointer<_ObjCBlock>)>(); - void removeObserver_forKeyPath_context_( - NSObject? observer, NSString? keyPath, ffi.Pointer context) { - _lib._objc_msgSend_131(_id, _lib._sel_removeObserver_forKeyPath_context_1, - observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr, context); + late final _sel_dispatchOnce_block_1 = _registerName1("dispatchOnce:block:"); + void _objc_msgSend_1120( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer predicate, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_1120( + obj, + sel, + predicate, + block, + ); } - void removeObserver_forKeyPath_(NSObject? observer, NSString? keyPath) { - _lib._objc_msgSend_132(_id, _lib._sel_removeObserver_forKeyPath_1, - observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); - } + late final __objc_msgSend_1120Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_1120 = __objc_msgSend_1120Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - void willChangeValueForKey_(NSString? key) { - _lib._objc_msgSend_192( - _id, _lib._sel_willChangeValueForKey_1, key?._id ?? ffi.nullptr); + late final _sel_shouldDispatchCancel1 = + _registerName1("shouldDispatchCancel"); + late final _sel_shouldCreateDispatchBlock1 = + _registerName1("shouldCreateDispatchBlock"); + late final _sel_initWithOptions_dateProvider_dispatchQueueWrapper_error_1 = + _registerName1( + "initWithOptions:dateProvider:dispatchQueueWrapper:error:"); + instancetype _objc_msgSend_1121( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer options, + ffi.Pointer dateProvider, + ffi.Pointer dispatchQueueWrapper, + ffi.Pointer> error, + ) { + return __objc_msgSend_1121( + obj, + sel, + options, + dateProvider, + dispatchQueueWrapper, + error, + ); } - void didChangeValueForKey_(NSString? key) { - _lib._objc_msgSend_192( - _id, _lib._sel_didChangeValueForKey_1, key?._id ?? ffi.nullptr); - } + late final __objc_msgSend_1121Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_1121 = __objc_msgSend_1121Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); - void willChange_valuesAtIndexes_forKey_( - int changeKind, NSIndexSet? indexes, NSString? key) { - _lib._objc_msgSend_478(_id, _lib._sel_willChange_valuesAtIndexes_forKey_1, - changeKind, indexes?._id ?? ffi.nullptr, key?._id ?? ffi.nullptr); + late final _class_SentryEnvelope1 = _getClass1("SentryEnvelope"); + late final _sel_initWithId_singleItem_1 = + _registerName1("initWithId:singleItem:"); + instancetype _objc_msgSend_1122( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer id, + ffi.Pointer item, + ) { + return __objc_msgSend_1122( + obj, + sel, + id, + item, + ); } - void didChange_valuesAtIndexes_forKey_( - int changeKind, NSIndexSet? indexes, NSString? key) { - _lib._objc_msgSend_478(_id, _lib._sel_didChange_valuesAtIndexes_forKey_1, - changeKind, indexes?._id ?? ffi.nullptr, key?._id ?? ffi.nullptr); - } + late final __objc_msgSend_1122Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1122 = __objc_msgSend_1122Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - void willChangeValueForKey_withSetMutation_usingObjects_( - NSString? key, int mutationKind, NSSet? objects) { - _lib._objc_msgSend_479( - _id, - _lib._sel_willChangeValueForKey_withSetMutation_usingObjects_1, - key?._id ?? ffi.nullptr, - mutationKind, - objects?._id ?? ffi.nullptr); + late final _class_SentryEnvelopeHeader1 = _getClass1("SentryEnvelopeHeader"); + late final _class_SentryTraceContext1 = _getClass1("SentryTraceContext"); + late final _sel_initWithId_traceContext_1 = + _registerName1("initWithId:traceContext:"); + instancetype _objc_msgSend_1123( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer eventId, + ffi.Pointer traceContext, + ) { + return __objc_msgSend_1123( + obj, + sel, + eventId, + traceContext, + ); } - void didChangeValueForKey_withSetMutation_usingObjects_( - NSString? key, int mutationKind, NSSet? objects) { - _lib._objc_msgSend_479( - _id, - _lib._sel_didChangeValueForKey_withSetMutation_usingObjects_1, - key?._id ?? ffi.nullptr, - mutationKind, - objects?._id ?? ffi.nullptr); - } + late final __objc_msgSend_1123Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1123 = __objc_msgSend_1123Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSObject1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + late final _sel_initWithId_sdkInfo_1 = _registerName1("initWithId:sdkInfo:"); + instancetype _objc_msgSend_1124( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer eventId, + ffi.Pointer sdkInfo, + ) { + return __objc_msgSend_1124( + obj, + sel, + eventId, + sdkInfo, + ); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSObject1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } + late final __objc_msgSend_1124Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1124 = __objc_msgSend_1124Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer get observationInfo { - return _lib._objc_msgSend_19(_id, _lib._sel_observationInfo1); + late final _sel_empty1 = _registerName1("empty"); + late final _sel_traceContext1 = _registerName1("traceContext"); + ffi.Pointer _objc_msgSend_1125( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1125( + obj, + sel, + ); } - set observationInfo(ffi.Pointer value) { - return _lib._objc_msgSend_480(_id, _lib._sel_setObservationInfo_1, value); - } + late final __objc_msgSend_1125Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1125 = __objc_msgSend_1125Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSObject1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + late final _sel_sentAt1 = _registerName1("sentAt"); + late final _sel_setSentAt_1 = _registerName1("setSentAt:"); + late final _sel_initWithHeader_singleItem_1 = + _registerName1("initWithHeader:singleItem:"); + instancetype _objc_msgSend_1126( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer header, + ffi.Pointer item, + ) { + return __objc_msgSend_1126( + obj, + sel, + header, + item, + ); } - NSObject get classForKeyedArchiver { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_classForKeyedArchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } + late final __objc_msgSend_1126Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1126 = __objc_msgSend_1126Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - NSObject replacementObjectForKeyedArchiver_(NSKeyedArchiver? archiver) { - final _ret = _lib._objc_msgSend_493( - _id, - _lib._sel_replacementObjectForKeyedArchiver_1, - archiver?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + late final _sel_initWithId_items_1 = _registerName1("initWithId:items:"); + instancetype _objc_msgSend_1127( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer id, + ffi.Pointer items, + ) { + return __objc_msgSend_1127( + obj, + sel, + id, + items, + ); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSObject1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } + late final __objc_msgSend_1127Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1127 = __objc_msgSend_1127Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSObject1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + late final _sel_initWithHeader_items_1 = + _registerName1("initWithHeader:items:"); + instancetype _objc_msgSend_1128( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer header, + ffi.Pointer items, + ) { + return __objc_msgSend_1128( + obj, + sel, + header, + items, + ); } - void performSelectorOnMainThread_withObject_waitUntilDone_modes_( - ffi.Pointer aSelector, NSObject arg, bool wait, NSArray? array) { - _lib._objc_msgSend_494( - _id, - _lib._sel_performSelectorOnMainThread_withObject_waitUntilDone_modes_1, - aSelector, - arg._id, - wait, - array?._id ?? ffi.nullptr); - } + late final __objc_msgSend_1128Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1128 = __objc_msgSend_1128Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - void performSelectorOnMainThread_withObject_waitUntilDone_( - ffi.Pointer aSelector, NSObject arg, bool wait) { - _lib._objc_msgSend_495( - _id, - _lib._sel_performSelectorOnMainThread_withObject_waitUntilDone_1, - aSelector, - arg._id, - wait); + late final _sel_header1 = _registerName1("header"); + ffi.Pointer _objc_msgSend_1129( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1129( + obj, + sel, + ); } - void performSelector_onThread_withObject_waitUntilDone_modes_( - ffi.Pointer aSelector, - NSThread? thr, - NSObject arg, - bool wait, - NSArray? array) { - _lib._objc_msgSend_512( - _id, - _lib._sel_performSelector_onThread_withObject_waitUntilDone_modes_1, - aSelector, - thr?._id ?? ffi.nullptr, - arg._id, - wait, - array?._id ?? ffi.nullptr); - } + late final __objc_msgSend_1129Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1129 = __objc_msgSend_1129Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - void performSelector_onThread_withObject_waitUntilDone_( - ffi.Pointer aSelector, NSThread? thr, NSObject arg, bool wait) { - _lib._objc_msgSend_513( - _id, - _lib._sel_performSelector_onThread_withObject_waitUntilDone_1, - aSelector, - thr?._id ?? ffi.nullptr, - arg._id, - wait); + late final _sel_items1 = _registerName1("items"); + late final _sel_storeEnvelope_1 = _registerName1("storeEnvelope:"); + ffi.Pointer _objc_msgSend_1130( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer envelope, + ) { + return __objc_msgSend_1130( + obj, + sel, + envelope, + ); } - void performSelectorInBackground_withObject_( - ffi.Pointer aSelector, NSObject arg) { - _lib._objc_msgSend_84(_id, - _lib._sel_performSelectorInBackground_withObject_1, aSelector, arg._id); - } + late final __objc_msgSend_1130Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1130 = __objc_msgSend_1130Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - NSObject get classForArchiver { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_classForArchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + late final _sel_getEnvelopesPath_1 = _registerName1("getEnvelopesPath:"); + late final _sel_getAllEnvelopes1 = _registerName1("getAllEnvelopes"); + late final _class_SentryFileContents1 = _getClass1("SentryFileContents"); + late final _sel_contents1 = _registerName1("contents"); + late final _sel_initWithPath_contents_1 = + _registerName1("initWithPath:contents:"); + late final _sel_getOldestEnvelope1 = _registerName1("getOldestEnvelope"); + ffi.Pointer _objc_msgSend_1131( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1131( + obj, + sel, + ); } - NSObject replacementObjectForArchiver_(NSArchiver? archiver) { - final _ret = _lib._objc_msgSend_516(_id, - _lib._sel_replacementObjectForArchiver_1, archiver?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } + late final __objc_msgSend_1131Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1131 = __objc_msgSend_1131Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - NSObject get classForPortCoder { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_classForPortCoder1); - return NSObject._(_ret, _lib, retain: true, release: true); + late final _sel_deleteOldEnvelopeItems1 = + _registerName1("deleteOldEnvelopeItems"); + late final _sel_deleteAllEnvelopes1 = _registerName1("deleteAllEnvelopes"); + late final _sel_getSentryPathAsURL1 = _registerName1("getSentryPathAsURL"); + late final _sel_moveState_toPreviousState_1 = + _registerName1("moveState:toPreviousState:"); + late final _sel_storeCurrentSession_1 = + _registerName1("storeCurrentSession:"); + void _objc_msgSend_1132( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer session, + ) { + return __objc_msgSend_1132( + obj, + sel, + session, + ); } - NSObject replacementObjectForPortCoder_(NSPortCoder? coder) { - final _ret = _lib._objc_msgSend_554(_id, - _lib._sel_replacementObjectForPortCoder_1, coder?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + late final __objc_msgSend_1132Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1132 = __objc_msgSend_1132Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_readCurrentSession1 = _registerName1("readCurrentSession"); + ffi.Pointer _objc_msgSend_1133( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1133( + obj, + sel, + ); } - NSClassDescription? get classDescription { - final _ret = _lib._objc_msgSend_557(_id, _lib._sel_classDescription1); - return _ret.address == 0 - ? null - : NSClassDescription._(_ret, _lib, retain: true, release: true); + late final __objc_msgSend_1133Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1133 = __objc_msgSend_1133Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_deleteCurrentSession1 = + _registerName1("deleteCurrentSession"); + late final _sel_storeCrashedSession_1 = + _registerName1("storeCrashedSession:"); + late final _sel_readCrashedSession1 = _registerName1("readCrashedSession"); + late final _sel_deleteCrashedSession1 = + _registerName1("deleteCrashedSession"); + late final _sel_storeAbnormalSession_1 = + _registerName1("storeAbnormalSession:"); + late final _sel_readAbnormalSession1 = _registerName1("readAbnormalSession"); + late final _sel_deleteAbnormalSession1 = + _registerName1("deleteAbnormalSession"); + late final _sel_storeTimestampLastInForeground_1 = + _registerName1("storeTimestampLastInForeground:"); + late final _sel_readTimestampLastInForeground1 = + _registerName1("readTimestampLastInForeground"); + late final _sel_deleteTimestampLastInForeground1 = + _registerName1("deleteTimestampLastInForeground"); + late final _class_SentryAppState1 = _getClass1("SentryAppState"); + late final _sel_osVersion1 = _registerName1("osVersion"); + late final _sel_vendorId1 = _registerName1("vendorId"); + late final _sel_isDebugging1 = _registerName1("isDebugging"); + late final _sel_systemBootTimestamp1 = _registerName1("systemBootTimestamp"); + late final _sel_isActive1 = _registerName1("isActive"); + late final _sel_setIsActive_1 = _registerName1("setIsActive:"); + late final _sel_wasTerminated1 = _registerName1("wasTerminated"); + late final _sel_setWasTerminated_1 = _registerName1("setWasTerminated:"); + late final _sel_isANROngoing1 = _registerName1("isANROngoing"); + late final _sel_setIsANROngoing_1 = _registerName1("setIsANROngoing:"); + late final _sel_isSDKRunning1 = _registerName1("isSDKRunning"); + late final _sel_setIsSDKRunning_1 = _registerName1("setIsSDKRunning:"); + late final _sel_initWithReleaseName_osVersion_vendorId_isDebugging_systemBootTimestamp_1 = + _registerName1( + "initWithReleaseName:osVersion:vendorId:isDebugging:systemBootTimestamp:"); + instancetype _objc_msgSend_1134( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer releaseName, + ffi.Pointer osVersion, + ffi.Pointer vendorId, + bool isDebugging, + ffi.Pointer systemBootTimestamp, + ) { + return __objc_msgSend_1134( + obj, + sel, + releaseName, + osVersion, + vendorId, + isDebugging, + systemBootTimestamp, + ); } - NSArray? get attributeKeys { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_attributeKeys1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + late final __objc_msgSend_1134Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1134 = __objc_msgSend_1134Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ffi.Pointer)>(); + + late final _sel_storeAppState_1 = _registerName1("storeAppState:"); + void _objc_msgSend_1135( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer appState, + ) { + return __objc_msgSend_1135( + obj, + sel, + appState, + ); } - NSArray? get toOneRelationshipKeys { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_toOneRelationshipKeys1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + late final __objc_msgSend_1135Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1135 = __objc_msgSend_1135Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_moveAppStateToPreviousAppState1 = + _registerName1("moveAppStateToPreviousAppState"); + late final _sel_readAppState1 = _registerName1("readAppState"); + ffi.Pointer _objc_msgSend_1136( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1136( + obj, + sel, + ); } - NSArray? get toManyRelationshipKeys { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_toManyRelationshipKeys1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + late final __objc_msgSend_1136Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1136 = __objc_msgSend_1136Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_readPreviousAppState1 = + _registerName1("readPreviousAppState"); + late final _sel_deleteAppState1 = _registerName1("deleteAppState"); + late final _sel_moveBreadcrumbsToPreviousBreadcrumbs1 = + _registerName1("moveBreadcrumbsToPreviousBreadcrumbs"); + late final _sel_readPreviousBreadcrumbs1 = + _registerName1("readPreviousBreadcrumbs"); + late final _sel_readTimezoneOffset1 = _registerName1("readTimezoneOffset"); + late final _sel_storeTimezoneOffset_1 = + _registerName1("storeTimezoneOffset:"); + late final _sel_deleteTimezoneOffset1 = + _registerName1("deleteTimezoneOffset"); + late final _sel_storeAppHangEvent_1 = _registerName1("storeAppHangEvent:"); + late final _sel_readAppHangEvent1 = _registerName1("readAppHangEvent"); + late final _sel_appHangEventExists1 = _registerName1("appHangEventExists"); + late final _sel_deleteAppHangEvent1 = _registerName1("deleteAppHangEvent"); + late final _sel_createDirectoryAtPath_error_1 = + _registerName1("createDirectoryAtPath:error:"); + late final _sel_deleteAllFolders1 = _registerName1("deleteAllFolders"); + late final _sel_removeFileAtPath_1 = _registerName1("removeFileAtPath:"); + late final _sel_allFilesInFolder_1 = _registerName1("allFilesInFolder:"); + late final _sel_isDirectory_1 = _registerName1("isDirectory:"); + late final _sel_readDataFromPath_error_1 = + _registerName1("readDataFromPath:error:"); + ffi.Pointer _objc_msgSend_1137( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + ffi.Pointer> error, + ) { + return __objc_msgSend_1137( + obj, + sel, + path, + error, + ); } - NSString inverseForRelationshipKey_(NSString? relationshipKey) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_inverseForRelationshipKey_1, - relationshipKey?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + late final __objc_msgSend_1137Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_1137 = __objc_msgSend_1137Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_writeData_toPath_1 = _registerName1("writeData:toPath:"); + bool _objc_msgSend_1138( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer data, + ffi.Pointer toPath, + ) { + return __objc_msgSend_1138( + obj, + sel, + data, + toPath, + ); } - NSObject scriptingValueForSpecifier_( - NSScriptObjectSpecifier? objectSpecifier) { - final _ret = _lib._objc_msgSend_601( - _id, - _lib._sel_scriptingValueForSpecifier_1, - objectSpecifier?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + late final __objc_msgSend_1138Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1138 = __objc_msgSend_1138Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); +} + +class _ObjCWrapper implements ffi.Finalizable { + final ffi.Pointer _id; + final SentryCocoa _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); + } } - NSDictionary? get scriptingProperties { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_scriptingProperties1); - return _ret.address == 0 - ? null - : NSDictionary._(_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.'); + } } - set scriptingProperties(NSDictionary? value) { - return _lib._objc_msgSend_171( - _id, _lib._sel_setScriptingProperties_1, value?._id ?? ffi.nullptr); + @override + bool operator ==(Object other) { + return other is _ObjCWrapper && _id == other._id; } - NSObject copyScriptingValue_forKey_withProperties_( - NSObject value, NSString? key, NSDictionary? properties) { - final _ret = _lib._objc_msgSend_602( - _id, - _lib._sel_copyScriptingValue_forKey_withProperties_1, - value._id, - key?._id ?? ffi.nullptr, - properties?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: false, release: true); + @override + int get hashCode => _id.hashCode; + + /// Return a pointer to this object. + ffi.Pointer get pointer => _id; +} + +class NSObject extends _ObjCWrapper { + NSObject._(ffi.Pointer id, SentryCocoa 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); } - NSObject - newScriptingObjectOfClass_forValueForKey_withContentsValue_properties_( - NSObject objectClass, - NSString? key, - NSObject contentsValue, - NSDictionary? properties) { - final _ret = _lib._objc_msgSend_603( - _id, - _lib._sel_newScriptingObjectOfClass_forValueForKey_withContentsValue_properties_1, - objectClass._id, - key?._id ?? ffi.nullptr, - contentsValue._id, - properties?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: false, release: true); + /// Returns a [NSObject] that wraps the given raw object pointer. + static NSObject castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSObject._(other, lib, retain: retain, release: release); } - int get classCode { - return _lib._objc_msgSend_197(_id, _lib._sel_classCode1); + /// 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); } - NSString? get className { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_className1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static void load(SentryCocoa _lib) { + _lib._objc_msgSend_1(_lib._class_NSObject1, _lib._sel_load1); } - NSObject valueAtIndex_inPropertyWithKey_(int index, NSString? key) { - final _ret = _lib._objc_msgSend_604( - _id, - _lib._sel_valueAtIndex_inPropertyWithKey_1, - index, - key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static void initialize(SentryCocoa _lib) { + _lib._objc_msgSend_1(_lib._class_NSObject1, _lib._sel_initialize1); } - NSObject valueWithName_inPropertyWithKey_(NSString? name, NSString? key) { - final _ret = _lib._objc_msgSend_165( - _id, - _lib._sel_valueWithName_inPropertyWithKey_1, - name?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr); + NSObject init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); return NSObject._(_ret, _lib, retain: true, release: true); } - NSObject valueWithUniqueID_inPropertyWithKey_( - NSObject uniqueID, NSString? key) { - final _ret = _lib._objc_msgSend_287( - _id, - _lib._sel_valueWithUniqueID_inPropertyWithKey_1, - uniqueID._id, - key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_new1); + return NSObject._(_ret, _lib, retain: false, release: true); } - void insertValue_atIndex_inPropertyWithKey_( - NSObject value, int index, NSString? key) { - _lib._objc_msgSend_605( - _id, - _lib._sel_insertValue_atIndex_inPropertyWithKey_1, - value._id, - index, - key?._id ?? ffi.nullptr); + static NSObject allocWithZone_(SentryCocoa _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); } - void removeValueAtIndex_fromPropertyWithKey_(int index, NSString? key) { - _lib._objc_msgSend_606( - _id, - _lib._sel_removeValueAtIndex_fromPropertyWithKey_1, - index, - key?._id ?? ffi.nullptr); + static NSObject alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_alloc1); + return NSObject._(_ret, _lib, retain: false, release: true); } - void replaceValueAtIndex_inPropertyWithKey_withValue_( - int index, NSString? key, NSObject value) { - _lib._objc_msgSend_607( - _id, - _lib._sel_replaceValueAtIndex_inPropertyWithKey_withValue_1, - index, - key?._id ?? ffi.nullptr, - value._id); + void dealloc() { + _lib._objc_msgSend_1(_id, _lib._sel_dealloc1); } - void insertValue_inPropertyWithKey_(NSObject value, NSString? key) { - _lib._objc_msgSend_126(_id, _lib._sel_insertValue_inPropertyWithKey_1, - value._id, key?._id ?? ffi.nullptr); + void finalize() { + _lib._objc_msgSend_1(_id, _lib._sel_finalize1); } - NSObject coerceValue_forKey_(NSObject value, NSString? key) { - final _ret = _lib._objc_msgSend_287(_id, _lib._sel_coerceValue_forKey_1, - value._id, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject copy() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_copy1); + return NSObject._(_ret, _lib, retain: false, release: true); } - NSScriptObjectSpecifier? get objectSpecifier { - final _ret = _lib._objc_msgSend_588(_id, _lib._sel_objectSpecifier1); - return _ret.address == 0 - ? null - : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); + NSObject mutableCopy() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_mutableCopy1); + return NSObject._(_ret, _lib, retain: false, release: true); } - NSArray indicesOfObjectsByEvaluatingObjectSpecifier_( - NSScriptObjectSpecifier? specifier) { - final _ret = _lib._objc_msgSend_608( - _id, - _lib._sel_indicesOfObjectsByEvaluatingObjectSpecifier_1, - specifier?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + static NSObject copyWithZone_(SentryCocoa _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); } - bool isEqualTo_(NSObject object) { - return _lib._objc_msgSend_0(_id, _lib._sel_isEqualTo_1, object._id); + static NSObject mutableCopyWithZone_( + SentryCocoa _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); } - bool isLessThanOrEqualTo_(NSObject object) { - return _lib._objc_msgSend_0( - _id, _lib._sel_isLessThanOrEqualTo_1, object._id); + static bool instancesRespondToSelector_( + SentryCocoa _lib, ffi.Pointer aSelector) { + return _lib._objc_msgSend_4(_lib._class_NSObject1, + _lib._sel_instancesRespondToSelector_1, aSelector); } - bool isLessThan_(NSObject object) { - return _lib._objc_msgSend_0(_id, _lib._sel_isLessThan_1, object._id); + static bool conformsToProtocol_(SentryCocoa _lib, Protocol? protocol) { + return _lib._objc_msgSend_5(_lib._class_NSObject1, + _lib._sel_conformsToProtocol_1, protocol?._id ?? ffi.nullptr); } - bool isGreaterThanOrEqualTo_(NSObject object) { - return _lib._objc_msgSend_0( - _id, _lib._sel_isGreaterThanOrEqualTo_1, object._id); + ffi.Pointer> methodForSelector_( + ffi.Pointer aSelector) { + return _lib._objc_msgSend_6(_id, _lib._sel_methodForSelector_1, aSelector); } - bool isGreaterThan_(NSObject object) { - return _lib._objc_msgSend_0(_id, _lib._sel_isGreaterThan_1, object._id); + static ffi.Pointer> + instanceMethodForSelector_( + SentryCocoa _lib, ffi.Pointer aSelector) { + return _lib._objc_msgSend_6(_lib._class_NSObject1, + _lib._sel_instanceMethodForSelector_1, aSelector); } - bool isNotEqualTo_(NSObject object) { - return _lib._objc_msgSend_0(_id, _lib._sel_isNotEqualTo_1, object._id); + void doesNotRecognizeSelector_(ffi.Pointer aSelector) { + _lib._objc_msgSend_7(_id, _lib._sel_doesNotRecognizeSelector_1, aSelector); } - bool doesContain_(NSObject object) { - return _lib._objc_msgSend_0(_id, _lib._sel_doesContain_1, object._id); + 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); } - bool isLike_(NSString? object) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isLike_1, object?._id ?? ffi.nullptr); + void forwardInvocation_(NSInvocation? anInvocation) { + _lib._objc_msgSend_394( + _id, _lib._sel_forwardInvocation_1, anInvocation?._id ?? ffi.nullptr); } - bool isCaseInsensitiveLike_(NSString? object) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isCaseInsensitiveLike_1, object?._id ?? ffi.nullptr); + NSMethodSignature methodSignatureForSelector_( + ffi.Pointer aSelector) { + final _ret = _lib._objc_msgSend_395( + _id, _lib._sel_methodSignatureForSelector_1, aSelector); + return NSMethodSignature._(_ret, _lib, retain: true, release: true); } - bool scriptingIsEqualTo_(NSObject object) { - return _lib._objc_msgSend_0( - _id, _lib._sel_scriptingIsEqualTo_1, object._id); + static NSMethodSignature instanceMethodSignatureForSelector_( + SentryCocoa _lib, ffi.Pointer aSelector) { + final _ret = _lib._objc_msgSend_395(_lib._class_NSObject1, + _lib._sel_instanceMethodSignatureForSelector_1, aSelector); + return NSMethodSignature._(_ret, _lib, retain: true, release: true); } - bool scriptingIsLessThanOrEqualTo_(NSObject object) { - return _lib._objc_msgSend_0( - _id, _lib._sel_scriptingIsLessThanOrEqualTo_1, object._id); + bool allowsWeakReference() { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsWeakReference1); } - bool scriptingIsLessThan_(NSObject object) { - return _lib._objc_msgSend_0( - _id, _lib._sel_scriptingIsLessThan_1, object._id); + bool retainWeakReference() { + return _lib._objc_msgSend_12(_id, _lib._sel_retainWeakReference1); } - bool scriptingIsGreaterThanOrEqualTo_(NSObject object) { + static bool isSubclassOfClass_(SentryCocoa _lib, NSObject aClass) { return _lib._objc_msgSend_0( - _id, _lib._sel_scriptingIsGreaterThanOrEqualTo_1, object._id); + _lib._class_NSObject1, _lib._sel_isSubclassOfClass_1, aClass._id); } - bool scriptingIsGreaterThan_(NSObject object) { - return _lib._objc_msgSend_0( - _id, _lib._sel_scriptingIsGreaterThan_1, object._id); + static bool resolveClassMethod_(SentryCocoa _lib, ffi.Pointer sel) { + return _lib._objc_msgSend_4( + _lib._class_NSObject1, _lib._sel_resolveClassMethod_1, sel); } - bool scriptingBeginsWith_(NSObject object) { - return _lib._objc_msgSend_0( - _id, _lib._sel_scriptingBeginsWith_1, object._id); + static bool resolveInstanceMethod_( + SentryCocoa _lib, ffi.Pointer sel) { + return _lib._objc_msgSend_4( + _lib._class_NSObject1, _lib._sel_resolveInstanceMethod_1, sel); } - bool scriptingEndsWith_(NSObject object) { - return _lib._objc_msgSend_0(_id, _lib._sel_scriptingEndsWith_1, object._id); + static int hash(SentryCocoa _lib) { + return _lib._objc_msgSend_10(_lib._class_NSObject1, _lib._sel_hash1); } - bool scriptingContains_(NSObject object) { - return _lib._objc_msgSend_0(_id, _lib._sel_scriptingContains_1, object._id); + static NSObject superclass(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_superclass1); + return NSObject._(_ret, _lib, retain: true, release: true); } -} -final class ObjCSel extends ffi.Opaque {} + static NSObject class1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_class1); + return NSObject._(_ret, _lib, retain: true, release: true); + } -final class ObjCObject extends ffi.Opaque {} + static NSString description(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_20(_lib._class_NSObject1, _lib._sel_description1); + return NSString._(_ret, _lib, retain: true, release: true); + } -typedef instancetype = ffi.Pointer; + static NSString debugDescription(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_20( + _lib._class_NSObject1, _lib._sel_debugDescription1); + return NSString._(_ret, _lib, retain: true, release: true); + } -final class _NSZone extends ffi.Opaque {} + static int version(SentryCocoa _lib) { + return _lib._objc_msgSend_78(_lib._class_NSObject1, _lib._sel_version1); + } -class Protocol extends _ObjCWrapper { - Protocol._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + static void setVersion_(SentryCocoa _lib, int aVersion) { + _lib._objc_msgSend_396( + _lib._class_NSObject1, _lib._sel_setVersion_1, aVersion); + } - /// Returns a [Protocol] that points to the same underlying object as [other]. - static Protocol castFrom(T other) { - return Protocol._(other._id, other._lib, retain: true, release: true); + NSObject get classForCoder { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_classForCoder1); + return NSObject._(_ret, _lib, retain: true, release: true); } - /// Returns a [Protocol] that wraps the given raw object pointer. - static Protocol castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return Protocol._(other, lib, retain: retain, release: release); + 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); } - /// Returns whether [obj] is an instance of [Protocol]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_Protocol1); + 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); } -} -class NSInvocation extends NSObject { - NSInvocation._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + static void poseAsClass_(SentryCocoa _lib, NSObject aClass) { + _lib._objc_msgSend_15( + _lib._class_NSObject1, _lib._sel_poseAsClass_1, aClass._id); + } - /// Returns a [NSInvocation] that points to the same underlying object as [other]. - static NSInvocation castFrom(T other) { - return NSInvocation._(other._id, other._lib, retain: true, release: true); + NSObject get autoContentAccessingProxy { + final _ret = + _lib._objc_msgSend_2(_id, _lib._sel_autoContentAccessingProxy1); + return NSObject._(_ret, _lib, retain: true, release: true); } - /// Returns a [NSInvocation] that wraps the given raw object pointer. - static NSInvocation castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSInvocation._(other, lib, retain: retain, release: release); + void + attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_( + NSError? error, + int recoveryOptionIndex, + NSObject delegate, + ffi.Pointer didRecoverSelector, + ffi.Pointer contextInfo) { + _lib._objc_msgSend_397( + _id, + _lib._sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_1, + error?._id ?? ffi.nullptr, + recoveryOptionIndex, + delegate._id, + didRecoverSelector, + contextInfo); } - /// Returns whether [obj] is an instance of [NSInvocation]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSInvocation1); + bool attemptRecoveryFromError_optionIndex_( + NSError? error, int recoveryOptionIndex) { + return _lib._objc_msgSend_398( + _id, + _lib._sel_attemptRecoveryFromError_optionIndex_1, + error?._id ?? ffi.nullptr, + recoveryOptionIndex); } - static NSInvocation invocationWithMethodSignature_( - SentryCocoa _lib, NSMethodSignature? sig) { - final _ret = _lib._objc_msgSend_385(_lib._class_NSInvocation1, - _lib._sel_invocationWithMethodSignature_1, sig?._id ?? ffi.nullptr); - return NSInvocation._(_ret, _lib, retain: true, release: true); + void performSelector_withObject_afterDelay_inModes_( + ffi.Pointer aSelector, + NSObject anArgument, + double delay, + NSArray? modes) { + _lib._objc_msgSend_399( + _id, + _lib._sel_performSelector_withObject_afterDelay_inModes_1, + aSelector, + anArgument._id, + delay, + modes?._id ?? ffi.nullptr); } - NSMethodSignature? get methodSignature { - final _ret = _lib._objc_msgSend_386(_id, _lib._sel_methodSignature1); - return _ret.address == 0 - ? null - : NSMethodSignature._(_ret, _lib, retain: true, release: true); + void performSelector_withObject_afterDelay_( + ffi.Pointer aSelector, NSObject anArgument, double delay) { + _lib._objc_msgSend_400( + _id, + _lib._sel_performSelector_withObject_afterDelay_1, + aSelector, + anArgument._id, + delay); } - void retainArguments() { - _lib._objc_msgSend_1(_id, _lib._sel_retainArguments1); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _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); } - bool get argumentsRetained { - return _lib._objc_msgSend_12(_id, _lib._sel_argumentsRetained1); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSObject1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - NSObject get target { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_target1); - return NSObject._(_ret, _lib, retain: true, release: true); + void URL_resourceDataDidBecomeAvailable_(NSURL? sender, NSData? newBytes) { + _lib._objc_msgSend_401(_id, _lib._sel_URL_resourceDataDidBecomeAvailable_1, + sender?._id ?? ffi.nullptr, newBytes?._id ?? ffi.nullptr); } - set target(NSObject value) { - return _lib._objc_msgSend_387(_id, _lib._sel_setTarget_1, value._id); + void URLResourceDidFinishLoading_(NSURL? sender) { + _lib._objc_msgSend_402(_id, _lib._sel_URLResourceDidFinishLoading_1, + sender?._id ?? ffi.nullptr); } - ffi.Pointer get selector { - return _lib._objc_msgSend_388(_id, _lib._sel_selector1); + void URLResourceDidCancelLoading_(NSURL? sender) { + _lib._objc_msgSend_402(_id, _lib._sel_URLResourceDidCancelLoading_1, + sender?._id ?? ffi.nullptr); } - set selector(ffi.Pointer value) { - return _lib._objc_msgSend_389(_id, _lib._sel_setSelector_1, value); + void URL_resourceDidFailLoadingWithReason_(NSURL? sender, NSString? reason) { + _lib._objc_msgSend_403( + _id, + _lib._sel_URL_resourceDidFailLoadingWithReason_1, + sender?._id ?? ffi.nullptr, + reason?._id ?? ffi.nullptr); } - void getReturnValue_(ffi.Pointer retLoc) { - _lib._objc_msgSend_47(_id, _lib._sel_getReturnValue_1, retLoc); + bool fileManager_shouldProceedAfterError_( + NSFileManager? fm, NSDictionary? errorInfo) { + return _lib._objc_msgSend_438( + _id, + _lib._sel_fileManager_shouldProceedAfterError_1, + fm?._id ?? ffi.nullptr, + errorInfo?._id ?? ffi.nullptr); } - void setReturnValue_(ffi.Pointer retLoc) { - _lib._objc_msgSend_47(_id, _lib._sel_setReturnValue_1, retLoc); + void fileManager_willProcessPath_(NSFileManager? fm, NSString? path) { + _lib._objc_msgSend_439(_id, _lib._sel_fileManager_willProcessPath_1, + fm?._id ?? ffi.nullptr, path?._id ?? ffi.nullptr); } - void getArgument_atIndex_(ffi.Pointer argumentLocation, int idx) { - _lib._objc_msgSend_390( - _id, _lib._sel_getArgument_atIndex_1, argumentLocation, idx); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSObject1, _lib._sel_accessInstanceVariablesDirectly1); } - void setArgument_atIndex_(ffi.Pointer argumentLocation, int idx) { - _lib._objc_msgSend_390( - _id, _lib._sel_setArgument_atIndex_1, argumentLocation, idx); + 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); } - void invoke() { - _lib._objc_msgSend_1(_id, _lib._sel_invoke1); + void setValue_forKey_(NSObject value, NSString? key) { + _lib._objc_msgSend_126( + _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); } - void invokeWithTarget_(NSObject target) { - _lib._objc_msgSend_15(_id, _lib._sel_invokeWithTarget_1, target._id); + bool validateValue_forKey_error_(ffi.Pointer> ioValue, + NSString? inKey, ffi.Pointer> outError) { + return _lib._objc_msgSend_225(_id, _lib._sel_validateValue_forKey_error_1, + ioValue, inKey?._id ?? ffi.nullptr, outError); } - void invokeUsingIMP_( - ffi.Pointer> imp) { - _lib._objc_msgSend_391(_id, _lib._sel_invokeUsingIMP_1, imp); + NSMutableArray mutableArrayValueForKey_(NSString? key) { + final _ret = _lib._objc_msgSend_456( + _id, _lib._sel_mutableArrayValueForKey_1, key?._id ?? ffi.nullptr); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } - @override - NSInvocation init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSInvocation._(_ret, _lib, retain: true, release: true); + NSMutableOrderedSet mutableOrderedSetValueForKey_(NSString? key) { + final _ret = _lib._objc_msgSend_475( + _id, _lib._sel_mutableOrderedSetValueForKey_1, key?._id ?? ffi.nullptr); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - static NSInvocation new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSInvocation1, _lib._sel_new1); - return NSInvocation._(_ret, _lib, retain: false, release: true); + NSMutableSet mutableSetValueForKey_(NSString? key) { + final _ret = _lib._objc_msgSend_476( + _id, _lib._sel_mutableSetValueForKey_1, key?._id ?? ffi.nullptr); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - static NSInvocation allocWithZone_( - SentryCocoa _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); + 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); } - static NSInvocation alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSInvocation1, _lib._sel_alloc1); - return NSInvocation._(_ret, _lib, retain: false, release: true); + void setValue_forKeyPath_(NSObject value, NSString? keyPath) { + _lib._objc_msgSend_126(_id, _lib._sel_setValue_forKeyPath_1, value._id, + keyPath?._id ?? ffi.nullptr); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSInvocation1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + bool validateValue_forKeyPath_error_( + ffi.Pointer> ioValue, + NSString? inKeyPath, + ffi.Pointer> outError) { + return _lib._objc_msgSend_225( + _id, + _lib._sel_validateValue_forKeyPath_error_1, + ioValue, + inKeyPath?._id ?? ffi.nullptr, + outError); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSInvocation1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + NSMutableArray mutableArrayValueForKeyPath_(NSString? keyPath) { + final _ret = _lib._objc_msgSend_456(_id, + _lib._sel_mutableArrayValueForKeyPath_1, keyPath?._id ?? ffi.nullptr); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSInvocation1, _lib._sel_accessInstanceVariablesDirectly1); + NSMutableOrderedSet mutableOrderedSetValueForKeyPath_(NSString? keyPath) { + final _ret = _lib._objc_msgSend_475( + _id, + _lib._sel_mutableOrderedSetValueForKeyPath_1, + keyPath?._id ?? ffi.nullptr); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSInvocation1, _lib._sel_useStoredAccessor1); + NSMutableSet mutableSetValueForKeyPath_(NSString? keyPath) { + final _ret = _lib._objc_msgSend_476(_id, + _lib._sel_mutableSetValueForKeyPath_1, keyPath?._id ?? ffi.nullptr); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSInvocation1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + 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); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSInvocation1, - _lib._sel_automaticallyNotifiesObserversForKey_1, + void setValue_forUndefinedKey_(NSObject value, NSString? key) { + _lib._objc_msgSend_126(_id, _lib._sel_setValue_forUndefinedKey_1, value._id, key?._id ?? ffi.nullptr); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSInvocation1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + void setNilValueForKey_(NSString? key) { + _lib._objc_msgSend_192( + _id, _lib._sel_setNilValueForKey_1, key?._id ?? ffi.nullptr); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSInvocation1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + NSDictionary dictionaryWithValuesForKeys_(NSArray? keys) { + final _ret = _lib._objc_msgSend_477( + _id, _lib._sel_dictionaryWithValuesForKeys_1, keys?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSInvocation1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + void setValuesForKeysWithDictionary_(NSDictionary? keyedValues) { + _lib._objc_msgSend_478(_id, _lib._sel_setValuesForKeysWithDictionary_1, + keyedValues?._id ?? ffi.nullptr); } -} -class NSMethodSignature extends NSObject { - NSMethodSignature._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSObject1, _lib._sel_useStoredAccessor1); + } - /// Returns a [NSMethodSignature] that points to the same underlying object as [other]. - static NSMethodSignature castFrom(T other) { - return NSMethodSignature._(other._id, other._lib, - retain: true, release: true); + 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); } - /// Returns a [NSMethodSignature] that wraps the given raw object pointer. - static NSMethodSignature castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSMethodSignature._(other, lib, retain: retain, release: release); + void takeStoredValue_forKey_(NSObject value, NSString? key) { + _lib._objc_msgSend_126(_id, _lib._sel_takeStoredValue_forKey_1, value._id, + key?._id ?? ffi.nullptr); } - /// Returns whether [obj] is an instance of [NSMethodSignature]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMethodSignature1); + void takeValue_forKey_(NSObject value, NSString? key) { + _lib._objc_msgSend_126( + _id, _lib._sel_takeValue_forKey_1, value._id, key?._id ?? ffi.nullptr); } - static NSMethodSignature signatureWithObjCTypes_( - SentryCocoa _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); + void takeValue_forKeyPath_(NSObject value, NSString? keyPath) { + _lib._objc_msgSend_126(_id, _lib._sel_takeValue_forKeyPath_1, value._id, + keyPath?._id ?? ffi.nullptr); } - int get numberOfArguments { - return _lib._objc_msgSend_10(_id, _lib._sel_numberOfArguments1); + 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); } - ffi.Pointer getArgumentTypeAtIndex_(int idx) { - return _lib._objc_msgSend_11(_id, _lib._sel_getArgumentTypeAtIndex_1, idx); + void handleTakeValue_forUnboundKey_(NSObject value, NSString? key) { + _lib._objc_msgSend_126(_id, _lib._sel_handleTakeValue_forUnboundKey_1, + value._id, key?._id ?? ffi.nullptr); } - int get frameLength { - return _lib._objc_msgSend_10(_id, _lib._sel_frameLength1); + void unableToSetNilForKey_(NSString? key) { + _lib._objc_msgSend_192( + _id, _lib._sel_unableToSetNilForKey_1, key?._id ?? ffi.nullptr); } - bool isOneway() { - return _lib._objc_msgSend_12(_id, _lib._sel_isOneway1); + NSDictionary valuesForKeys_(NSArray? keys) { + final _ret = _lib._objc_msgSend_477( + _id, _lib._sel_valuesForKeys_1, keys?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - ffi.Pointer get methodReturnType { - return _lib._objc_msgSend_13(_id, _lib._sel_methodReturnType1); + void takeValuesFromDictionary_(NSDictionary? properties) { + _lib._objc_msgSend_478(_id, _lib._sel_takeValuesFromDictionary_1, + properties?._id ?? ffi.nullptr); } - int get methodReturnLength { - return _lib._objc_msgSend_10(_id, _lib._sel_methodReturnLength1); + void observeValueForKeyPath_ofObject_change_context_(NSString? keyPath, + NSObject object, NSDictionary? change, ffi.Pointer context) { + _lib._objc_msgSend_479( + _id, + _lib._sel_observeValueForKeyPath_ofObject_change_context_1, + keyPath?._id ?? ffi.nullptr, + object._id, + change?._id ?? ffi.nullptr, + context); } - @override - NSMethodSignature init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSMethodSignature._(_ret, _lib, retain: true, release: true); + 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, + options, + context); } - static NSMethodSignature new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMethodSignature1, _lib._sel_new1); - return NSMethodSignature._(_ret, _lib, retain: false, release: true); + void removeObserver_forKeyPath_context_( + NSObject? observer, NSString? keyPath, ffi.Pointer context) { + _lib._objc_msgSend_131(_id, _lib._sel_removeObserver_forKeyPath_context_1, + observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr, context); } - static NSMethodSignature allocWithZone_( - SentryCocoa _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); + void removeObserver_forKeyPath_(NSObject? observer, NSString? keyPath) { + _lib._objc_msgSend_132(_id, _lib._sel_removeObserver_forKeyPath_1, + observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); } - static NSMethodSignature alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMethodSignature1, _lib._sel_alloc1); - return NSMethodSignature._(_ret, _lib, retain: false, release: true); + void willChangeValueForKey_(NSString? key) { + _lib._objc_msgSend_192( + _id, _lib._sel_willChangeValueForKey_1, key?._id ?? ffi.nullptr); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSMethodSignature1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + void didChangeValueForKey_(NSString? key) { + _lib._objc_msgSend_192( + _id, _lib._sel_didChangeValueForKey_1, key?._id ?? ffi.nullptr); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSMethodSignature1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + void willChange_valuesAtIndexes_forKey_( + int changeKind, NSIndexSet? indexes, NSString? key) { + _lib._objc_msgSend_480(_id, _lib._sel_willChange_valuesAtIndexes_forKey_1, + changeKind, indexes?._id ?? ffi.nullptr, key?._id ?? ffi.nullptr); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSMethodSignature1, - _lib._sel_accessInstanceVariablesDirectly1); + void didChange_valuesAtIndexes_forKey_( + int changeKind, NSIndexSet? indexes, NSString? key) { + _lib._objc_msgSend_480(_id, _lib._sel_didChange_valuesAtIndexes_forKey_1, + changeKind, indexes?._id ?? ffi.nullptr, key?._id ?? ffi.nullptr); } - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMethodSignature1, _lib._sel_useStoredAccessor1); + void willChangeValueForKey_withSetMutation_usingObjects_( + NSString? key, int mutationKind, NSSet? objects) { + _lib._objc_msgSend_481( + _id, + _lib._sel_willChangeValueForKey_withSetMutation_usingObjects_1, + key?._id ?? ffi.nullptr, + mutationKind, + objects?._id ?? ffi.nullptr); + } + + void didChangeValueForKey_withSetMutation_usingObjects_( + NSString? key, int mutationKind, NSSet? objects) { + _lib._objc_msgSend_481( + _id, + _lib._sel_didChangeValueForKey_withSetMutation_usingObjects_1, + key?._id ?? ffi.nullptr, + mutationKind, + objects?._id ?? ffi.nullptr); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSMethodSignature1, + _lib._class_NSObject1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -31713,442 +33063,539 @@ class NSMethodSignature extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSMethodSignature1, + _lib._class_NSObject1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } + ffi.Pointer get observationInfo { + return _lib._objc_msgSend_19(_id, _lib._sel_observationInfo1); + } + + set observationInfo(ffi.Pointer value) { + return _lib._objc_msgSend_482(_id, _lib._sel_setObservationInfo_1, value); + } + static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSMethodSignature1, + _lib._class_NSObject1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } + void setSharedObservers_(NSKeyValueSharedObserversSnapshot? sharedObservers) { + _lib._objc_msgSend_483(_id, _lib._sel_setSharedObservers_1, + sharedObservers?._id ?? ffi.nullptr); + } + + NSObject get classForKeyedArchiver { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_classForKeyedArchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject replacementObjectForKeyedArchiver_(NSKeyedArchiver? archiver) { + final _ret = _lib._objc_msgSend_496( + _id, + _lib._sel_replacementObjectForKeyedArchiver_1, + archiver?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSMethodSignature1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79( + _lib._class_NSObject1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSMethodSignature1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSObject1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } -} - -class NSSet extends NSObject { - NSSet._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - /// Returns a [NSSet] that points to the same underlying object as [other]. - static NSSet castFrom(T other) { - return NSSet._(other._id, other._lib, retain: true, release: true); + void performSelectorOnMainThread_withObject_waitUntilDone_modes_( + ffi.Pointer aSelector, NSObject arg, bool wait, NSArray? array) { + _lib._objc_msgSend_497( + _id, + _lib._sel_performSelectorOnMainThread_withObject_waitUntilDone_modes_1, + aSelector, + arg._id, + wait, + array?._id ?? ffi.nullptr); } - /// Returns a [NSSet] that wraps the given raw object pointer. - static NSSet castFromPointer(SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSSet._(other, lib, retain: retain, release: release); + void performSelectorOnMainThread_withObject_waitUntilDone_( + ffi.Pointer aSelector, NSObject arg, bool wait) { + _lib._objc_msgSend_498( + _id, + _lib._sel_performSelectorOnMainThread_withObject_waitUntilDone_1, + aSelector, + arg._id, + wait); } - /// Returns whether [obj] is an instance of [NSSet]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSSet1); + void performSelector_onThread_withObject_waitUntilDone_modes_( + ffi.Pointer aSelector, + NSThread? thr, + NSObject arg, + bool wait, + NSArray? array) { + _lib._objc_msgSend_515( + _id, + _lib._sel_performSelector_onThread_withObject_waitUntilDone_modes_1, + aSelector, + thr?._id ?? ffi.nullptr, + arg._id, + wait, + array?._id ?? ffi.nullptr); } - int get count { - return _lib._objc_msgSend_10(_id, _lib._sel_count1); + void performSelector_onThread_withObject_waitUntilDone_( + ffi.Pointer aSelector, NSThread? thr, NSObject arg, bool wait) { + _lib._objc_msgSend_516( + _id, + _lib._sel_performSelector_onThread_withObject_waitUntilDone_1, + aSelector, + thr?._id ?? ffi.nullptr, + arg._id, + wait); } - 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); + void performSelectorInBackground_withObject_( + ffi.Pointer aSelector, NSObject arg) { + _lib._objc_msgSend_84(_id, + _lib._sel_performSelectorInBackground_withObject_1, aSelector, arg._id); } - NSEnumerator objectEnumerator() { - final _ret = _lib._objc_msgSend_72(_id, _lib._sel_objectEnumerator1); - return NSEnumerator._(_ret, _lib, retain: true, release: true); + NSObject get classForArchiver { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_classForArchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } - @override - NSSet init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSSet._(_ret, _lib, retain: true, release: true); + NSObject replacementObjectForArchiver_(NSArchiver? archiver) { + final _ret = _lib._objc_msgSend_519(_id, + _lib._sel_replacementObjectForArchiver_1, archiver?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSSet initWithObjects_count_( - ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61( - _id, _lib._sel_initWithObjects_count_1, objects, cnt); - return NSSet._(_ret, _lib, retain: true, release: true); + NSObject get classForPortCoder { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_classForPortCoder1); + return NSObject._(_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); + NSObject replacementObjectForPortCoder_(NSPortCoder? coder) { + final _ret = _lib._objc_msgSend_557(_id, + _lib._sel_replacementObjectForPortCoder_1, coder?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSArray? get allObjects { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_allObjects1); + NSClassDescription? get classDescription { + final _ret = _lib._objc_msgSend_560(_id, _lib._sel_classDescription1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSClassDescription._(_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 attributeKeys { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_attributeKeys1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - bool containsObject_(NSObject anObject) { - return _lib._objc_msgSend_0(_id, _lib._sel_containsObject_1, anObject._id); + NSArray? get toOneRelationshipKeys { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_toOneRelationshipKeys1); + 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? get toManyRelationshipKeys { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_toManyRelationshipKeys1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSArray._(_ret, _lib, retain: true, release: true); } - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_65( - _id, _lib._sel_descriptionWithLocale_1, locale._id); + NSString inverseForRelationshipKey_(NSString? relationshipKey) { + final _ret = _lib._objc_msgSend_64( + _id, + _lib._sel_inverseForRelationshipKey_1, + relationshipKey?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } - bool intersectsSet_(NSSet? otherSet) { - return _lib._objc_msgSend_374( - _id, _lib._sel_intersectsSet_1, otherSet?._id ?? ffi.nullptr); + NSObject scriptingValueForSpecifier_( + NSScriptObjectSpecifier? objectSpecifier) { + final _ret = _lib._objc_msgSend_604( + _id, + _lib._sel_scriptingValueForSpecifier_1, + objectSpecifier?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - bool isEqualToSet_(NSSet? otherSet) { - return _lib._objc_msgSend_374( - _id, _lib._sel_isEqualToSet_1, otherSet?._id ?? ffi.nullptr); + NSDictionary? get scriptingProperties { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_scriptingProperties1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - bool isSubsetOfSet_(NSSet? otherSet) { - return _lib._objc_msgSend_374( - _id, _lib._sel_isSubsetOfSet_1, otherSet?._id ?? ffi.nullptr); + set scriptingProperties(NSDictionary? value) { + return _lib._objc_msgSend_171( + _id, _lib._sel_setScriptingProperties_1, value?._id ?? ffi.nullptr); } - void makeObjectsPerformSelector_(ffi.Pointer aSelector) { - _lib._objc_msgSend_7( - _id, _lib._sel_makeObjectsPerformSelector_1, aSelector); + NSObject copyScriptingValue_forKey_withProperties_( + NSObject value, NSString? key, NSDictionary? properties) { + final _ret = _lib._objc_msgSend_605( + _id, + _lib._sel_copyScriptingValue_forKey_withProperties_1, + value._id, + key?._id ?? ffi.nullptr, + properties?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: false, release: true); } - void makeObjectsPerformSelector_withObject_( - ffi.Pointer aSelector, NSObject argument) { - _lib._objc_msgSend_84( + NSObject + newScriptingObjectOfClass_forValueForKey_withContentsValue_properties_( + NSObject objectClass, + NSString? key, + NSObject contentsValue, + NSDictionary? properties) { + final _ret = _lib._objc_msgSend_606( _id, - _lib._sel_makeObjectsPerformSelector_withObject_1, - aSelector, - argument._id); + _lib._sel_newScriptingObjectOfClass_forValueForKey_withContentsValue_properties_1, + objectClass._id, + key?._id ?? ffi.nullptr, + contentsValue._id, + properties?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: false, release: true); } - NSSet setByAddingObject_(NSObject anObject) { - final _ret = _lib._objc_msgSend_375( - _id, _lib._sel_setByAddingObject_1, anObject._id); - return NSSet._(_ret, _lib, retain: true, release: true); + int get classCode { + return _lib._objc_msgSend_197(_id, _lib._sel_classCode1); } - NSSet setByAddingObjectsFromSet_(NSSet? other) { - final _ret = _lib._objc_msgSend_376( - _id, _lib._sel_setByAddingObjectsFromSet_1, other?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + NSString? get className { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_className1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSSet setByAddingObjectsFromArray_(NSArray? other) { - final _ret = _lib._objc_msgSend_377(_id, - _lib._sel_setByAddingObjectsFromArray_1, other?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + NSObject valueAtIndex_inPropertyWithKey_(int index, NSString? key) { + final _ret = _lib._objc_msgSend_607( + _id, + _lib._sel_valueAtIndex_inPropertyWithKey_1, + index, + key?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - void enumerateObjectsUsingBlock_(ObjCBlock_ffiVoid_ObjCObject_bool block) { - _lib._objc_msgSend_378( - _id, _lib._sel_enumerateObjectsUsingBlock_1, block._id); + NSObject valueWithName_inPropertyWithKey_(NSString? name, NSString? key) { + final _ret = _lib._objc_msgSend_165( + _id, + _lib._sel_valueWithName_inPropertyWithKey_1, + name?._id ?? ffi.nullptr, + key?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - void enumerateObjectsWithOptions_usingBlock_( - int opts, ObjCBlock_ffiVoid_ObjCObject_bool block) { - _lib._objc_msgSend_379(_id, - _lib._sel_enumerateObjectsWithOptions_usingBlock_1, opts, block._id); + NSObject valueWithUniqueID_inPropertyWithKey_( + NSObject uniqueID, NSString? key) { + final _ret = _lib._objc_msgSend_289( + _id, + _lib._sel_valueWithUniqueID_inPropertyWithKey_1, + uniqueID._id, + key?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSSet objectsPassingTest_(ObjCBlock_bool_ObjCObject_bool predicate) { - final _ret = _lib._objc_msgSend_380( - _id, _lib._sel_objectsPassingTest_1, predicate._id); - return NSSet._(_ret, _lib, retain: true, release: true); + void insertValue_atIndex_inPropertyWithKey_( + NSObject value, int index, NSString? key) { + _lib._objc_msgSend_608( + _id, + _lib._sel_insertValue_atIndex_inPropertyWithKey_1, + value._id, + index, + key?._id ?? ffi.nullptr); } - NSSet objectsWithOptions_passingTest_( - int opts, ObjCBlock_bool_ObjCObject_bool predicate) { - final _ret = _lib._objc_msgSend_381( - _id, _lib._sel_objectsWithOptions_passingTest_1, opts, predicate._id); - return NSSet._(_ret, _lib, retain: true, release: true); + void removeValueAtIndex_fromPropertyWithKey_(int index, NSString? key) { + _lib._objc_msgSend_609( + _id, + _lib._sel_removeValueAtIndex_fromPropertyWithKey_1, + index, + key?._id ?? ffi.nullptr); } - static NSSet set1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSSet1, _lib._sel_set1); - return NSSet._(_ret, _lib, retain: true, release: true); + void replaceValueAtIndex_inPropertyWithKey_withValue_( + int index, NSString? key, NSObject value) { + _lib._objc_msgSend_610( + _id, + _lib._sel_replaceValueAtIndex_inPropertyWithKey_withValue_1, + index, + key?._id ?? ffi.nullptr, + value._id); } - static NSSet setWithObject_(SentryCocoa _lib, NSObject object) { - final _ret = _lib._objc_msgSend_16( - _lib._class_NSSet1, _lib._sel_setWithObject_1, object._id); - return NSSet._(_ret, _lib, retain: true, release: true); + void insertValue_inPropertyWithKey_(NSObject value, NSString? key) { + _lib._objc_msgSend_126(_id, _lib._sel_insertValue_inPropertyWithKey_1, + value._id, key?._id ?? ffi.nullptr); } - static NSSet setWithObjects_count_( - SentryCocoa _lib, ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61( - _lib._class_NSSet1, _lib._sel_setWithObjects_count_1, objects, cnt); - return NSSet._(_ret, _lib, retain: true, release: true); + NSObject coerceValue_forKey_(NSObject value, NSString? key) { + final _ret = _lib._objc_msgSend_289(_id, _lib._sel_coerceValue_forKey_1, + value._id, key?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSSet setWithObjects_(SentryCocoa _lib, NSObject firstObj) { - final _ret = _lib._objc_msgSend_16( - _lib._class_NSSet1, _lib._sel_setWithObjects_1, firstObj._id); - return NSSet._(_ret, _lib, retain: true, release: true); + NSScriptObjectSpecifier? get objectSpecifier { + final _ret = _lib._objc_msgSend_591(_id, _lib._sel_objectSpecifier1); + return _ret.address == 0 + ? null + : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } - static NSSet setWithSet_(SentryCocoa _lib, NSSet? set) { - final _ret = _lib._objc_msgSend_382( - _lib._class_NSSet1, _lib._sel_setWithSet_1, set?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + NSArray indicesOfObjectsByEvaluatingObjectSpecifier_( + NSScriptObjectSpecifier? specifier) { + final _ret = _lib._objc_msgSend_611( + _id, + _lib._sel_indicesOfObjectsByEvaluatingObjectSpecifier_1, + specifier?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSSet setWithArray_(SentryCocoa _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSSet1, - _lib._sel_setWithArray_1, array?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + bool isEqualTo_(NSObject object) { + return _lib._objc_msgSend_0(_id, _lib._sel_isEqualTo_1, object._id); } - NSSet initWithObjects_(NSObject firstObj) { - final _ret = - _lib._objc_msgSend_16(_id, _lib._sel_initWithObjects_1, firstObj._id); - return NSSet._(_ret, _lib, retain: true, release: true); + bool isLessThanOrEqualTo_(NSObject object) { + return _lib._objc_msgSend_0( + _id, _lib._sel_isLessThanOrEqualTo_1, object._id); } - NSSet initWithSet_(NSSet? set) { - final _ret = _lib._objc_msgSend_382( - _id, _lib._sel_initWithSet_1, set?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + bool isLessThan_(NSObject object) { + return _lib._objc_msgSend_0(_id, _lib._sel_isLessThan_1, object._id); } - NSSet initWithSet_copyItems_(NSSet? set, bool flag) { - final _ret = _lib._objc_msgSend_383( - _id, _lib._sel_initWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); - return NSSet._(_ret, _lib, retain: false, release: true); + bool isGreaterThanOrEqualTo_(NSObject object) { + return _lib._objc_msgSend_0( + _id, _lib._sel_isGreaterThanOrEqualTo_1, object._id); } - NSSet initWithArray_(NSArray? array) { - final _ret = _lib._objc_msgSend_67( - _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + bool isGreaterThan_(NSObject object) { + return _lib._objc_msgSend_0(_id, _lib._sel_isGreaterThan_1, object._id); } - @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); + bool isNotEqualTo_(NSObject object) { + return _lib._objc_msgSend_0(_id, _lib._sel_isNotEqualTo_1, object._id); } - @override - void setValue_forKey_(NSObject value, NSString? key) { - _lib._objc_msgSend_126( - _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); + bool doesContain_(NSObject object) { + return _lib._objc_msgSend_0(_id, _lib._sel_doesContain_1, object._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 ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, - options, - context); + bool isLike_(NSString? object) { + return _lib._objc_msgSend_59( + _id, _lib._sel_isLike_1, object?._id ?? ffi.nullptr); } - @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 ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr, context); + bool isCaseInsensitiveLike_(NSString? object) { + return _lib._objc_msgSend_59( + _id, _lib._sel_isCaseInsensitiveLike_1, object?._id ?? ffi.nullptr); } - @override - void removeObserver_forKeyPath_(NSObject? observer, NSString? keyPath) { - _lib._objc_msgSend_132(_id, _lib._sel_removeObserver_forKeyPath_1, - observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); + bool scriptingIsEqualTo_(NSObject object) { + return _lib._objc_msgSend_0( + _id, _lib._sel_scriptingIsEqualTo_1, object._id); } - NSArray sortedArrayUsingDescriptors_(NSArray? sortDescriptors) { - final _ret = _lib._objc_msgSend_63( - _id, - _lib._sel_sortedArrayUsingDescriptors_1, - sortDescriptors?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + bool scriptingIsLessThanOrEqualTo_(NSObject object) { + return _lib._objc_msgSend_0( + _id, _lib._sel_scriptingIsLessThanOrEqualTo_1, object._id); } - NSSet filteredSetUsingPredicate_(NSPredicate? predicate) { - final _ret = _lib._objc_msgSend_384(_id, - _lib._sel_filteredSetUsingPredicate_1, predicate?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + bool scriptingIsLessThan_(NSObject object) { + return _lib._objc_msgSend_0( + _id, _lib._sel_scriptingIsLessThan_1, object._id); } - static NSSet new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSSet1, _lib._sel_new1); - return NSSet._(_ret, _lib, retain: false, release: true); + bool scriptingIsGreaterThanOrEqualTo_(NSObject object) { + return _lib._objc_msgSend_0( + _id, _lib._sel_scriptingIsGreaterThanOrEqualTo_1, object._id); } - static NSSet allocWithZone_(SentryCocoa _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); + bool scriptingIsGreaterThan_(NSObject object) { + return _lib._objc_msgSend_0( + _id, _lib._sel_scriptingIsGreaterThan_1, object._id); } - static NSSet alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSSet1, _lib._sel_alloc1); - return NSSet._(_ret, _lib, retain: false, release: true); + bool scriptingBeginsWith_(NSObject object) { + return _lib._objc_msgSend_0( + _id, _lib._sel_scriptingBeginsWith_1, object._id); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSSet1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + bool scriptingEndsWith_(NSObject object) { + return _lib._objc_msgSend_0(_id, _lib._sel_scriptingEndsWith_1, object._id); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSSet1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + bool scriptingContains_(NSObject object) { + return _lib._objc_msgSend_0(_id, _lib._sel_scriptingContains_1, object._id); } +} - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSSet1, _lib._sel_accessInstanceVariablesDirectly1); - } +final class ObjCSel extends ffi.Opaque {} - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSSet1, _lib._sel_useStoredAccessor1); - } +final class ObjCObject extends ffi.Opaque {} - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSSet1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } +typedef instancetype = ffi.Pointer; - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSSet1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } +final class _NSZone extends ffi.Opaque {} - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSSet1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); +class Protocol extends _ObjCWrapper { + Protocol._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [Protocol] that points to the same underlying object as [other]. + static Protocol castFrom(T other) { + return Protocol._(other._id, other._lib, retain: true, release: true); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSSet1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + /// Returns a [Protocol] that wraps the given raw object pointer. + static Protocol castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return Protocol._(other, lib, retain: retain, release: release); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSSet1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [Protocol]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_Protocol1); } } -class NSEnumerator extends NSObject { - NSEnumerator._(ffi.Pointer id, SentryCocoa lib, +class NSInvocation extends NSObject { + NSInvocation._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSEnumerator] that points to the same underlying object as [other]. - static NSEnumerator castFrom(T other) { - return NSEnumerator._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSInvocation] that points to the same underlying object as [other]. + static NSInvocation castFrom(T other) { + return NSInvocation._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSEnumerator] that wraps the given raw object pointer. - static NSEnumerator castFromPointer( + /// Returns a [NSInvocation] that wraps the given raw object pointer. + static NSInvocation castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSEnumerator._(other, lib, retain: retain, release: release); + return NSInvocation._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSEnumerator]. + /// Returns whether [obj] is an instance of [NSInvocation]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSEnumerator1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSInvocation1); } - NSObject nextObject() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_nextObject1); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSInvocation invocationWithMethodSignature_( + SentryCocoa _lib, NSMethodSignature? sig) { + final _ret = _lib._objc_msgSend_387(_lib._class_NSInvocation1, + _lib._sel_invocationWithMethodSignature_1, sig?._id ?? ffi.nullptr); + return NSInvocation._(_ret, _lib, retain: true, release: true); } - NSObject? get allObjects { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_allObjects1); + NSMethodSignature? get methodSignature { + final _ret = _lib._objc_msgSend_388(_id, _lib._sel_methodSignature1); return _ret.address == 0 ? null - : NSObject._(_ret, _lib, retain: true, release: true); + : NSMethodSignature._(_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); + void retainArguments() { + _lib._objc_msgSend_1(_id, _lib._sel_retainArguments1); } - static NSEnumerator new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSEnumerator1, _lib._sel_new1); - return NSEnumerator._(_ret, _lib, retain: false, release: true); + bool get argumentsRetained { + return _lib._objc_msgSend_12(_id, _lib._sel_argumentsRetained1); } - static NSEnumerator allocWithZone_( - SentryCocoa _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); + NSObject get target { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_target1); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSEnumerator alloc(SentryCocoa _lib) { + set target(NSObject value) { + return _lib._objc_msgSend_389(_id, _lib._sel_setTarget_1, value._id); + } + + ffi.Pointer get selector { + return _lib._objc_msgSend_390(_id, _lib._sel_selector1); + } + + set selector(ffi.Pointer value) { + return _lib._objc_msgSend_391(_id, _lib._sel_setSelector_1, value); + } + + void getReturnValue_(ffi.Pointer retLoc) { + _lib._objc_msgSend_47(_id, _lib._sel_getReturnValue_1, retLoc); + } + + void setReturnValue_(ffi.Pointer retLoc) { + _lib._objc_msgSend_47(_id, _lib._sel_setReturnValue_1, retLoc); + } + + void getArgument_atIndex_(ffi.Pointer argumentLocation, int idx) { + _lib._objc_msgSend_392( + _id, _lib._sel_getArgument_atIndex_1, argumentLocation, idx); + } + + void setArgument_atIndex_(ffi.Pointer argumentLocation, int idx) { + _lib._objc_msgSend_392( + _id, _lib._sel_setArgument_atIndex_1, argumentLocation, idx); + } + + void invoke() { + _lib._objc_msgSend_1(_id, _lib._sel_invoke1); + } + + void invokeWithTarget_(NSObject target) { + _lib._objc_msgSend_15(_id, _lib._sel_invokeWithTarget_1, target._id); + } + + void invokeUsingIMP_( + ffi.Pointer> imp) { + _lib._objc_msgSend_393(_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(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSEnumerator1, _lib._sel_alloc1); - return NSEnumerator._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSInvocation1, _lib._sel_new1); + return NSInvocation._(_ret, _lib, retain: false, release: true); + } + + static NSInvocation allocWithZone_( + SentryCocoa _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(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSInvocation1, _lib._sel_alloc1); + return NSInvocation._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -32157,7 +33604,7 @@ class NSEnumerator extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSEnumerator1, + _lib._class_NSInvocation1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -32166,24 +33613,24 @@ class NSEnumerator extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSEnumerator1, + _lib._objc_msgSend_15(_lib._class_NSInvocation1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSEnumerator1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSInvocation1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSEnumerator1, _lib._sel_useStoredAccessor1); + _lib._class_NSInvocation1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSEnumerator1, + _lib._class_NSInvocation1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -32192,7 +33639,7 @@ class NSEnumerator extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSEnumerator1, + _lib._class_NSInvocation1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -32200,7 +33647,7 @@ class NSEnumerator extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSEnumerator1, + _lib._class_NSInvocation1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -32208,2270 +33655,1972 @@ class NSEnumerator extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSEnumerator1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSInvocation1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSEnumerator1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSInvocation1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSString extends NSObject { - NSString._(ffi.Pointer id, SentryCocoa lib, +class NSMethodSignature extends NSObject { + NSMethodSignature._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSString] that points to the same underlying object as [other]. - static NSString castFrom(T other) { - return NSString._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSMethodSignature] that points to the same underlying object as [other]. + static NSMethodSignature castFrom(T other) { + return NSMethodSignature._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSString] that wraps the given raw object pointer. - static NSString castFromPointer( + /// Returns a [NSMethodSignature] that wraps the given raw object pointer. + static NSMethodSignature castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSString._(other, lib, retain: retain, release: release); + return NSMethodSignature._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSString]. + /// Returns whether [obj] is an instance of [NSMethodSignature]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSString1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMethodSignature1); } - factory NSString(SentryCocoa _lib, String str) { - final cstr = str.toNativeUtf16(); - final nsstr = stringWithCharacters_length_(_lib, cstr.cast(), str.length); - pkg_ffi.calloc.free(cstr); - return nsstr; + static NSMethodSignature signatureWithObjCTypes_( + SentryCocoa _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); } - @override - String toString() { - final data = - dataUsingEncoding_(0x94000100 /* NSUTF16LittleEndianStringEncoding */); - return data.bytes.cast().toDartString(length: length); + int get numberOfArguments { + return _lib._objc_msgSend_10(_id, _lib._sel_numberOfArguments1); } - int get length { - return _lib._objc_msgSend_10(_id, _lib._sel_length1); + ffi.Pointer getArgumentTypeAtIndex_(int idx) { + return _lib._objc_msgSend_11(_id, _lib._sel_getArgumentTypeAtIndex_1, idx); } - int characterAtIndex_(int index) { - return _lib._objc_msgSend_17(_id, _lib._sel_characterAtIndex_1, index); + int get frameLength { + return _lib._objc_msgSend_10(_id, _lib._sel_frameLength1); } - @override - NSString init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSString._(_ret, _lib, retain: true, release: true); + bool isOneway() { + return _lib._objc_msgSend_12(_id, _lib._sel_isOneway1); } - 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); + ffi.Pointer get methodReturnType { + return _lib._objc_msgSend_13(_id, _lib._sel_methodReturnType1); } - NSString substringFromIndex_(int from) { - final _ret = - _lib._objc_msgSend_308(_id, _lib._sel_substringFromIndex_1, from); - return NSString._(_ret, _lib, retain: true, release: true); + int get methodReturnLength { + return _lib._objc_msgSend_10(_id, _lib._sel_methodReturnLength1); } - NSString substringToIndex_(int to) { - final _ret = _lib._objc_msgSend_308(_id, _lib._sel_substringToIndex_1, to); - return NSString._(_ret, _lib, retain: true, release: true); + @override + NSMethodSignature init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMethodSignature._(_ret, _lib, retain: true, release: true); } - NSString substringWithRange_(_NSRange range) { + static NSMethodSignature new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_309(_id, _lib._sel_substringWithRange_1, range); - return NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_2(_lib._class_NSMethodSignature1, _lib._sel_new1); + return NSMethodSignature._(_ret, _lib, retain: false, release: true); } - void getCharacters_range_( - ffi.Pointer buffer, _NSRange range) { - _lib._objc_msgSend_310(_id, _lib._sel_getCharacters_range_1, buffer, range); + static NSMethodSignature allocWithZone_( + SentryCocoa _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); } - int compare_(NSString? string) { - return _lib._objc_msgSend_311( - _id, _lib._sel_compare_1, string?._id ?? ffi.nullptr); + static NSMethodSignature alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMethodSignature1, _lib._sel_alloc1); + return NSMethodSignature._(_ret, _lib, retain: false, release: true); } - int compare_options_(NSString? string, int mask) { - return _lib._objc_msgSend_312( - _id, _lib._sel_compare_options_1, string?._id ?? ffi.nullptr, mask); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSMethodSignature1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - int compare_options_range_( - NSString? string, int mask, _NSRange rangeOfReceiverToCompare) { - return _lib._objc_msgSend_313(_id, _lib._sel_compare_options_range_1, - string?._id ?? ffi.nullptr, mask, rangeOfReceiverToCompare); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSMethodSignature1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - int compare_options_range_locale_(NSString? string, int mask, - _NSRange rangeOfReceiverToCompare, NSObject locale) { - return _lib._objc_msgSend_314(_id, _lib._sel_compare_options_range_locale_1, - string?._id ?? ffi.nullptr, mask, rangeOfReceiverToCompare, locale._id); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_NSMethodSignature1, + _lib._sel_accessInstanceVariablesDirectly1); } - int caseInsensitiveCompare_(NSString? string) { - return _lib._objc_msgSend_311( - _id, _lib._sel_caseInsensitiveCompare_1, string?._id ?? ffi.nullptr); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMethodSignature1, _lib._sel_useStoredAccessor1); } - int localizedCompare_(NSString? string) { - return _lib._objc_msgSend_311( - _id, _lib._sel_localizedCompare_1, string?._id ?? ffi.nullptr); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSMethodSignature1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - int localizedCaseInsensitiveCompare_(NSString? string) { - return _lib._objc_msgSend_311( - _id, - _lib._sel_localizedCaseInsensitiveCompare_1, - string?._id ?? ffi.nullptr); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSMethodSignature1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - int localizedStandardCompare_(NSString? string) { - return _lib._objc_msgSend_311( - _id, _lib._sel_localizedStandardCompare_1, string?._id ?? ffi.nullptr); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSMethodSignature1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - bool isEqualToString_(NSString? aString) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isEqualToString_1, aString?._id ?? ffi.nullptr); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSMethodSignature1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - bool hasPrefix_(NSString? str) { - return _lib._objc_msgSend_59( - _id, _lib._sel_hasPrefix_1, str?._id ?? ffi.nullptr); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMethodSignature1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - bool hasSuffix_(NSString? str) { - return _lib._objc_msgSend_59( - _id, _lib._sel_hasSuffix_1, str?._id ?? ffi.nullptr); - } +class NSSet extends NSObject { + NSSet._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - NSString commonPrefixWithString_options_(NSString? str, int mask) { - final _ret = _lib._objc_msgSend_315( - _id, - _lib._sel_commonPrefixWithString_options_1, - str?._id ?? ffi.nullptr, - mask); - return NSString._(_ret, _lib, retain: true, release: true); + /// Returns a [NSSet] that points to the same underlying object as [other]. + static NSSet castFrom(T other) { + return NSSet._(other._id, other._lib, retain: true, release: true); } - bool containsString_(NSString? str) { - return _lib._objc_msgSend_59( - _id, _lib._sel_containsString_1, str?._id ?? ffi.nullptr); + /// Returns a [NSSet] that wraps the given raw object pointer. + static NSSet castFromPointer(SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSSet._(other, lib, retain: retain, release: release); } - bool localizedCaseInsensitiveContainsString_(NSString? str) { - return _lib._objc_msgSend_59( - _id, - _lib._sel_localizedCaseInsensitiveContainsString_1, - str?._id ?? ffi.nullptr); + /// Returns whether [obj] is an instance of [NSSet]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSSet1); } - bool localizedStandardContainsString_(NSString? str) { - return _lib._objc_msgSend_59(_id, - _lib._sel_localizedStandardContainsString_1, str?._id ?? ffi.nullptr); + int get count { + return _lib._objc_msgSend_10(_id, _lib._sel_count1); } - void localizedStandardRangeOfString_( - ffi.Pointer<_NSRange> stret, NSString? str) { - _lib._objc_msgSend_316(stret, _id, - _lib._sel_localizedStandardRangeOfString_1, str?._id ?? ffi.nullptr); + 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); } - void rangeOfString_(ffi.Pointer<_NSRange> stret, NSString? searchString) { - _lib._objc_msgSend_316(stret, _id, _lib._sel_rangeOfString_1, - searchString?._id ?? ffi.nullptr); + NSEnumerator objectEnumerator() { + final _ret = _lib._objc_msgSend_72(_id, _lib._sel_objectEnumerator1); + return NSEnumerator._(_ret, _lib, retain: true, release: true); } - void rangeOfString_options_( - ffi.Pointer<_NSRange> stret, NSString? searchString, int mask) { - _lib._objc_msgSend_317(stret, _id, _lib._sel_rangeOfString_options_1, - searchString?._id ?? ffi.nullptr, mask); + @override + NSSet init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSSet._(_ret, _lib, retain: true, release: true); } - void rangeOfString_options_range_(ffi.Pointer<_NSRange> stret, - NSString? searchString, int mask, _NSRange rangeOfReceiverToSearch) { - _lib._objc_msgSend_318(stret, _id, _lib._sel_rangeOfString_options_range_1, - searchString?._id ?? ffi.nullptr, mask, rangeOfReceiverToSearch); + NSSet initWithObjects_count_( + ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_61( + _id, _lib._sel_initWithObjects_count_1, objects, cnt); + return NSSet._(_ret, _lib, retain: true, release: true); } - void rangeOfString_options_range_locale_( - ffi.Pointer<_NSRange> stret, - NSString? searchString, - int mask, - _NSRange rangeOfReceiverToSearch, - NSLocale? locale) { - _lib._objc_msgSend_319( - stret, - _id, - _lib._sel_rangeOfString_options_range_locale_1, - searchString?._id ?? ffi.nullptr, - mask, - rangeOfReceiverToSearch, - locale?._id ?? ffi.nullptr); + 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); } - void rangeOfCharacterFromSet_( - ffi.Pointer<_NSRange> stret, NSCharacterSet? searchSet) { - _lib._objc_msgSend_320(stret, _id, _lib._sel_rangeOfCharacterFromSet_1, - searchSet?._id ?? ffi.nullptr); + NSArray? get allObjects { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_allObjects1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - void rangeOfCharacterFromSet_options_( - ffi.Pointer<_NSRange> stret, NSCharacterSet? searchSet, int mask) { - _lib._objc_msgSend_321( - stret, - _id, - _lib._sel_rangeOfCharacterFromSet_options_1, - searchSet?._id ?? ffi.nullptr, - mask); + NSObject anyObject() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_anyObject1); + return NSObject._(_ret, _lib, retain: true, release: true); } - void rangeOfCharacterFromSet_options_range_(ffi.Pointer<_NSRange> stret, - NSCharacterSet? searchSet, int mask, _NSRange rangeOfReceiverToSearch) { - _lib._objc_msgSend_322( - stret, - _id, - _lib._sel_rangeOfCharacterFromSet_options_range_1, - searchSet?._id ?? ffi.nullptr, - mask, - rangeOfReceiverToSearch); + bool containsObject_(NSObject anObject) { + return _lib._objc_msgSend_0(_id, _lib._sel_containsObject_1, anObject._id); } - void rangeOfComposedCharacterSequenceAtIndex_( - ffi.Pointer<_NSRange> stret, int index) { - _lib._objc_msgSend_323( - stret, _id, _lib._sel_rangeOfComposedCharacterSequenceAtIndex_1, index); + 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 rangeOfComposedCharacterSequencesForRange_( - ffi.Pointer<_NSRange> stret, _NSRange range) { - _lib._objc_msgSend_324(stret, _id, - _lib._sel_rangeOfComposedCharacterSequencesForRange_1, range); + NSString descriptionWithLocale_(NSObject locale) { + final _ret = _lib._objc_msgSend_65( + _id, _lib._sel_descriptionWithLocale_1, locale._id); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString stringByAppendingString_(NSString? aString) { - final _ret = _lib._objc_msgSend_64( - _id, _lib._sel_stringByAppendingString_1, aString?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + bool intersectsSet_(NSSet? otherSet) { + return _lib._objc_msgSend_376( + _id, _lib._sel_intersectsSet_1, otherSet?._id ?? ffi.nullptr); } - NSString stringByAppendingFormat_(NSString? format) { - final _ret = _lib._objc_msgSend_64( - _id, _lib._sel_stringByAppendingFormat_1, format?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + bool isEqualToSet_(NSSet? otherSet) { + return _lib._objc_msgSend_376( + _id, _lib._sel_isEqualToSet_1, otherSet?._id ?? ffi.nullptr); } - double get doubleValue { - return _lib._objc_msgSend_155(_id, _lib._sel_doubleValue1); + bool isSubsetOfSet_(NSSet? otherSet) { + return _lib._objc_msgSend_376( + _id, _lib._sel_isSubsetOfSet_1, otherSet?._id ?? ffi.nullptr); } - double get floatValue { - return _lib._objc_msgSend_221(_id, _lib._sel_floatValue1); + void makeObjectsPerformSelector_(ffi.Pointer aSelector) { + _lib._objc_msgSend_7( + _id, _lib._sel_makeObjectsPerformSelector_1, aSelector); } - int get intValue { - return _lib._objc_msgSend_219(_id, _lib._sel_intValue1); + void makeObjectsPerformSelector_withObject_( + ffi.Pointer aSelector, NSObject argument) { + _lib._objc_msgSend_84( + _id, + _lib._sel_makeObjectsPerformSelector_withObject_1, + aSelector, + argument._id); } - int get integerValue { - return _lib._objc_msgSend_78(_id, _lib._sel_integerValue1); + NSSet setByAddingObject_(NSObject anObject) { + final _ret = _lib._objc_msgSend_377( + _id, _lib._sel_setByAddingObject_1, anObject._id); + return NSSet._(_ret, _lib, retain: true, release: true); } - int get longLongValue { - return _lib._objc_msgSend_220(_id, _lib._sel_longLongValue1); + NSSet setByAddingObjectsFromSet_(NSSet? other) { + final _ret = _lib._objc_msgSend_378( + _id, _lib._sel_setByAddingObjectsFromSet_1, other?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - bool get boolValue { - return _lib._objc_msgSend_12(_id, _lib._sel_boolValue1); + NSSet setByAddingObjectsFromArray_(NSArray? other) { + final _ret = _lib._objc_msgSend_379(_id, + _lib._sel_setByAddingObjectsFromArray_1, other?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - 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); + void enumerateObjectsUsingBlock_(ObjCBlock_ffiVoid_ObjCObject_bool block) { + _lib._objc_msgSend_380( + _id, _lib._sel_enumerateObjectsUsingBlock_1, block._id); } - 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); + void enumerateObjectsWithOptions_usingBlock_( + int opts, ObjCBlock_ffiVoid_ObjCObject_bool block) { + _lib._objc_msgSend_381(_id, + _lib._sel_enumerateObjectsWithOptions_usingBlock_1, opts, block._id); } - 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); + NSSet objectsPassingTest_(ObjCBlock_bool_ObjCObject_bool predicate) { + final _ret = _lib._objc_msgSend_382( + _id, _lib._sel_objectsPassingTest_1, predicate._id); + return NSSet._(_ret, _lib, retain: true, release: true); } - 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); + NSSet objectsWithOptions_passingTest_( + int opts, ObjCBlock_bool_ObjCObject_bool predicate) { + final _ret = _lib._objc_msgSend_383( + _id, _lib._sel_objectsWithOptions_passingTest_1, opts, predicate._id); + return NSSet._(_ret, _lib, retain: true, release: true); } - 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); + static NSSet set1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSSet1, _lib._sel_set1); + return NSSet._(_ret, _lib, retain: true, release: true); } - 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); + static NSSet setWithObject_(SentryCocoa _lib, NSObject object) { + final _ret = _lib._objc_msgSend_16( + _lib._class_NSSet1, _lib._sel_setWithObject_1, object._id); + return NSSet._(_ret, _lib, retain: true, release: true); } - NSString uppercaseStringWithLocale_(NSLocale? locale) { - final _ret = _lib._objc_msgSend_325( - _id, _lib._sel_uppercaseStringWithLocale_1, locale?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static NSSet setWithObjects_count_( + SentryCocoa _lib, ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_61( + _lib._class_NSSet1, _lib._sel_setWithObjects_count_1, objects, cnt); + return NSSet._(_ret, _lib, retain: true, release: true); } - NSString lowercaseStringWithLocale_(NSLocale? locale) { - final _ret = _lib._objc_msgSend_325( - _id, _lib._sel_lowercaseStringWithLocale_1, locale?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static NSSet setWithObjects_(SentryCocoa _lib, NSObject firstObj) { + final _ret = _lib._objc_msgSend_16( + _lib._class_NSSet1, _lib._sel_setWithObjects_1, firstObj._id); + return NSSet._(_ret, _lib, retain: true, release: true); } - NSString capitalizedStringWithLocale_(NSLocale? locale) { - final _ret = _lib._objc_msgSend_325(_id, - _lib._sel_capitalizedStringWithLocale_1, locale?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static NSSet setWithSet_(SentryCocoa _lib, NSSet? set) { + final _ret = _lib._objc_msgSend_384( + _lib._class_NSSet1, _lib._sel_setWithSet_1, set?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - void getLineStart_end_contentsEnd_forRange_( - ffi.Pointer startPtr, - ffi.Pointer lineEndPtr, - ffi.Pointer contentsEndPtr, - _NSRange range) { - _lib._objc_msgSend_326( - _id, - _lib._sel_getLineStart_end_contentsEnd_forRange_1, - startPtr, - lineEndPtr, - contentsEndPtr, - range); + static NSSet setWithArray_(SentryCocoa _lib, NSArray? array) { + final _ret = _lib._objc_msgSend_67(_lib._class_NSSet1, + _lib._sel_setWithArray_1, array?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - void lineRangeForRange_(ffi.Pointer<_NSRange> stret, _NSRange range) { - _lib._objc_msgSend_324(stret, _id, _lib._sel_lineRangeForRange_1, range); + NSSet initWithObjects_(NSObject firstObj) { + final _ret = + _lib._objc_msgSend_16(_id, _lib._sel_initWithObjects_1, firstObj._id); + return NSSet._(_ret, _lib, retain: true, release: true); } - void getParagraphStart_end_contentsEnd_forRange_( - ffi.Pointer startPtr, - ffi.Pointer parEndPtr, - ffi.Pointer contentsEndPtr, - _NSRange range) { - _lib._objc_msgSend_326( + NSSet initWithSet_(NSSet? set) { + final _ret = _lib._objc_msgSend_384( + _id, _lib._sel_initWithSet_1, set?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + NSSet initWithSet_copyItems_(NSSet? set, bool flag) { + final _ret = _lib._objc_msgSend_385( + _id, _lib._sel_initWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); + return NSSet._(_ret, _lib, retain: false, release: true); + } + + NSSet initWithArray_(NSArray? array) { + final _ret = _lib._objc_msgSend_67( + _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); + 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); + 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, key?._id ?? ffi.nullptr); + } + + @override + void addObserver_forKeyPath_options_context_(NSObject? observer, + NSString? keyPath, int options, ffi.Pointer context) { + _lib._objc_msgSend_130( _id, - _lib._sel_getParagraphStart_end_contentsEnd_forRange_1, - startPtr, - parEndPtr, - contentsEndPtr, - range); + _lib._sel_addObserver_forKeyPath_options_context_1, + observer?._id ?? ffi.nullptr, + keyPath?._id ?? ffi.nullptr, + options, + context); } - void paragraphRangeForRange_(ffi.Pointer<_NSRange> stret, _NSRange range) { - _lib._objc_msgSend_324( - stret, _id, _lib._sel_paragraphRangeForRange_1, range); + @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 ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr, context); } - void enumerateSubstringsInRange_options_usingBlock_(_NSRange range, int opts, - ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool block) { - _lib._objc_msgSend_327( + @override + void removeObserver_forKeyPath_(NSObject? observer, NSString? keyPath) { + _lib._objc_msgSend_132(_id, _lib._sel_removeObserver_forKeyPath_1, + observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); + } + + NSArray sortedArrayUsingDescriptors_(NSArray? sortDescriptors) { + final _ret = _lib._objc_msgSend_63( _id, - _lib._sel_enumerateSubstringsInRange_options_usingBlock_1, - range, - opts, - block._id); + _lib._sel_sortedArrayUsingDescriptors_1, + sortDescriptors?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - void enumerateLinesUsingBlock_(ObjCBlock_ffiVoid_NSString_bool block) { - _lib._objc_msgSend_328( - _id, _lib._sel_enumerateLinesUsingBlock_1, block._id); + NSSet filteredSetUsingPredicate_(NSPredicate? predicate) { + final _ret = _lib._objc_msgSend_386(_id, + _lib._sel_filteredSetUsingPredicate_1, predicate?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - ffi.Pointer get UTF8String { - return _lib._objc_msgSend_13(_id, _lib._sel_UTF8String1); + static NSSet new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSSet1, _lib._sel_new1); + return NSSet._(_ret, _lib, retain: false, release: true); } - int get fastestEncoding { - return _lib._objc_msgSend_10(_id, _lib._sel_fastestEncoding1); + static NSSet allocWithZone_(SentryCocoa _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); } - int get smallestEncoding { - return _lib._objc_msgSend_10(_id, _lib._sel_smallestEncoding1); + static NSSet alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSSet1, _lib._sel_alloc1); + return NSSet._(_ret, _lib, retain: false, release: true); } - NSData dataUsingEncoding_allowLossyConversion_(int encoding, bool lossy) { - final _ret = _lib._objc_msgSend_329(_id, - _lib._sel_dataUsingEncoding_allowLossyConversion_1, encoding, lossy); - return NSData._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSSet1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - NSData dataUsingEncoding_(int encoding) { - final _ret = - _lib._objc_msgSend_330(_id, _lib._sel_dataUsingEncoding_1, encoding); - return NSData._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSSet1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - bool canBeConvertedToEncoding_(int encoding) { - return _lib._objc_msgSend_91( - _id, _lib._sel_canBeConvertedToEncoding_1, encoding); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSSet1, _lib._sel_accessInstanceVariablesDirectly1); } - ffi.Pointer cStringUsingEncoding_(int encoding) { - return _lib._objc_msgSend_11( - _id, _lib._sel_cStringUsingEncoding_1, encoding); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSSet1, _lib._sel_useStoredAccessor1); } - bool getCString_maxLength_encoding_( - ffi.Pointer buffer, int maxBufferCount, int encoding) { - return _lib._objc_msgSend_331( - _id, - _lib._sel_getCString_maxLength_encoding_1, - buffer, - maxBufferCount, - encoding); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSSet1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - bool getBytes_maxLength_usedLength_encoding_options_range_remainingRange_( - ffi.Pointer buffer, - int maxBufferCount, - ffi.Pointer usedBufferCount, - int encoding, - int options, - _NSRange range, - ffi.Pointer<_NSRange> leftover) { - return _lib._objc_msgSend_332( - _id, - _lib._sel_getBytes_maxLength_usedLength_encoding_options_range_remainingRange_1, - buffer, - maxBufferCount, - usedBufferCount, - encoding, - options, - range, - leftover); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSSet1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - int maximumLengthOfBytesUsingEncoding_(int enc) { - return _lib._objc_msgSend_88( - _id, _lib._sel_maximumLengthOfBytesUsingEncoding_1, enc); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSSet1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - int lengthOfBytesUsingEncoding_(int enc) { - return _lib._objc_msgSend_88( - _id, _lib._sel_lengthOfBytesUsingEncoding_1, enc); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSSet1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - static ffi.Pointer getAvailableStringEncodings( - SentryCocoa _lib) { - return _lib._objc_msgSend_333( - _lib._class_NSString1, _lib._sel_availableStringEncodings1); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSSet1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - static NSString localizedNameOfStringEncoding_( - SentryCocoa _lib, int encoding) { - final _ret = _lib._objc_msgSend_308(_lib._class_NSString1, - _lib._sel_localizedNameOfStringEncoding_1, encoding); - return NSString._(_ret, _lib, retain: true, release: true); +class NSEnumerator extends NSObject { + NSEnumerator._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSEnumerator] that points to the same underlying object as [other]. + static NSEnumerator castFrom(T other) { + return NSEnumerator._(other._id, other._lib, retain: true, release: true); } - static int getDefaultCStringEncoding(SentryCocoa _lib) { - return _lib._objc_msgSend_10( - _lib._class_NSString1, _lib._sel_defaultCStringEncoding1); + /// Returns a [NSEnumerator] that wraps the given raw object pointer. + static NSEnumerator castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSEnumerator._(other, lib, retain: retain, release: release); } - NSString? get decomposedStringWithCanonicalMapping { - final _ret = _lib._objc_msgSend_20( - _id, _lib._sel_decomposedStringWithCanonicalMapping1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [NSEnumerator]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSEnumerator1); } - NSString? get precomposedStringWithCanonicalMapping { - final _ret = _lib._objc_msgSend_20( - _id, _lib._sel_precomposedStringWithCanonicalMapping1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSObject nextObject() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_nextObject1); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSString? get decomposedStringWithCompatibilityMapping { - final _ret = _lib._objc_msgSend_20( - _id, _lib._sel_decomposedStringWithCompatibilityMapping1); + NSObject? get allObjects { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_allObjects1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSObject._(_ret, _lib, retain: true, release: true); } - NSString? get precomposedStringWithCompatibilityMapping { - final _ret = _lib._objc_msgSend_20( - _id, _lib._sel_precomposedStringWithCompatibilityMapping1); - return _ret.address == 0 - ? null - : NSString._(_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); } - NSArray componentsSeparatedByString_(NSString? separator) { - final _ret = _lib._objc_msgSend_123(_id, - _lib._sel_componentsSeparatedByString_1, separator?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + static NSEnumerator new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSEnumerator1, _lib._sel_new1); + return NSEnumerator._(_ret, _lib, retain: false, release: true); } - NSArray componentsSeparatedByCharactersInSet_(NSCharacterSet? separator) { - final _ret = _lib._objc_msgSend_334( - _id, - _lib._sel_componentsSeparatedByCharactersInSet_1, - separator?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + static NSEnumerator allocWithZone_( + SentryCocoa _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); } - NSString stringByTrimmingCharactersInSet_(NSCharacterSet? set) { - final _ret = _lib._objc_msgSend_335(_id, - _lib._sel_stringByTrimmingCharactersInSet_1, set?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static NSEnumerator alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSEnumerator1, _lib._sel_alloc1); + return NSEnumerator._(_ret, _lib, retain: false, release: true); } - NSString stringByPaddingToLength_withString_startingAtIndex_( - int newLength, NSString? padString, int padIndex) { - final _ret = _lib._objc_msgSend_336( - _id, - _lib._sel_stringByPaddingToLength_withString_startingAtIndex_1, - newLength, - padString?._id ?? ffi.nullptr, - padIndex); - return NSString._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSEnumerator1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - NSString stringByFoldingWithOptions_locale_(int options, NSLocale? locale) { - final _ret = _lib._objc_msgSend_337( - _id, - _lib._sel_stringByFoldingWithOptions_locale_1, - options, - locale?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSEnumerator1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - NSString stringByReplacingOccurrencesOfString_withString_options_range_( - NSString? target, - NSString? replacement, - int options, - _NSRange searchRange) { - final _ret = _lib._objc_msgSend_338( - _id, - _lib._sel_stringByReplacingOccurrencesOfString_withString_options_range_1, - target?._id ?? ffi.nullptr, - replacement?._id ?? ffi.nullptr, - options, - searchRange); - return NSString._(_ret, _lib, retain: true, release: true); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSEnumerator1, _lib._sel_accessInstanceVariablesDirectly1); } - NSString stringByReplacingOccurrencesOfString_withString_( - NSString? target, NSString? replacement) { - final _ret = _lib._objc_msgSend_339( - _id, - _lib._sel_stringByReplacingOccurrencesOfString_withString_1, - target?._id ?? ffi.nullptr, - replacement?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSEnumerator1, _lib._sel_useStoredAccessor1); } - NSString stringByReplacingCharactersInRange_withString_( - _NSRange range, NSString? replacement) { - final _ret = _lib._objc_msgSend_340( - _id, - _lib._sel_stringByReplacingCharactersInRange_withString_1, - range, - replacement?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSEnumerator1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - NSString stringByApplyingTransform_reverse_( - NSString transform, bool reverse) { - final _ret = _lib._objc_msgSend_341(_id, - _lib._sel_stringByApplyingTransform_reverse_1, transform._id, reverse); - return NSString._(_ret, _lib, retain: true, release: true); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSEnumerator1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - bool writeToURL_atomically_encoding_error_(NSURL? url, bool useAuxiliaryFile, - int enc, ffi.Pointer> error) { - return _lib._objc_msgSend_342( - _id, - _lib._sel_writeToURL_atomically_encoding_error_1, - url?._id ?? ffi.nullptr, - useAuxiliaryFile, - enc, - error); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSEnumerator1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - bool writeToFile_atomically_encoding_error_( - NSString? path, - bool useAuxiliaryFile, - int enc, - ffi.Pointer> error) { - return _lib._objc_msgSend_343( - _id, - _lib._sel_writeToFile_atomically_encoding_error_1, - path?._id ?? ffi.nullptr, - useAuxiliaryFile, - enc, - error); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSEnumerator1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_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 NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSEnumerator1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - int get hash { - return _lib._objc_msgSend_10(_id, _lib._sel_hash1); +class NSString extends NSObject { + NSString._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSString] that points to the same underlying object as [other]. + static NSString castFrom(T other) { + return NSString._(other._id, other._lib, retain: true, release: true); } - NSString initWithCharactersNoCopy_length_freeWhenDone_( - ffi.Pointer characters, int length, bool freeBuffer) { - final _ret = _lib._objc_msgSend_344( - _id, - _lib._sel_initWithCharactersNoCopy_length_freeWhenDone_1, - characters, - length, - freeBuffer); - return NSString._(_ret, _lib, retain: false, release: true); + /// Returns a [NSString] that wraps the given raw object pointer. + static NSString castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSString._(other, lib, retain: retain, release: release); } - NSString initWithCharactersNoCopy_length_deallocator_( - ffi.Pointer chars, - int len, - ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong deallocator) { - final _ret = _lib._objc_msgSend_345( - _id, - _lib._sel_initWithCharactersNoCopy_length_deallocator_1, - chars, - len, - deallocator._id); - return NSString._(_ret, _lib, retain: false, release: true); + /// Returns whether [obj] is an instance of [NSString]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSString1); } - NSString initWithCharacters_length_( - ffi.Pointer characters, int length) { - final _ret = _lib._objc_msgSend_346( - _id, _lib._sel_initWithCharacters_length_1, characters, length); - return NSString._(_ret, _lib, retain: true, release: true); + factory NSString(SentryCocoa _lib, String str) { + final cstr = str.toNativeUtf16(); + final nsstr = stringWithCharacters_length_(_lib, cstr.cast(), str.length); + pkg_ffi.calloc.free(cstr); + return nsstr; } - NSString initWithUTF8String_(ffi.Pointer nullTerminatedCString) { - final _ret = _lib._objc_msgSend_347( - _id, _lib._sel_initWithUTF8String_1, nullTerminatedCString); - return NSString._(_ret, _lib, retain: true, release: true); + @override + String toString() { + final data = + dataUsingEncoding_(0x94000100 /* NSUTF16LittleEndianStringEncoding */); + return data.bytes.cast().toDartString(length: length); } - NSString initWithString_(NSString? aString) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, aString?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + int get length { + return _lib._objc_msgSend_10(_id, _lib._sel_length1); } - NSString initWithFormat_(NSString? format) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithFormat_1, format?._id ?? ffi.nullptr); + int characterAtIndex_(int index) { + return _lib._objc_msgSend_17(_id, _lib._sel_characterAtIndex_1, index); + } + + @override + NSString init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); return NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithFormat_arguments_( - NSString? format, ffi.Pointer<__va_list_tag> argList) { - final _ret = _lib._objc_msgSend_348( - _id, - _lib._sel_initWithFormat_arguments_1, - format?._id ?? ffi.nullptr, - argList); + 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 initWithFormat_locale_(NSString? format, NSObject locale) { - final _ret = _lib._objc_msgSend_163(_id, _lib._sel_initWithFormat_locale_1, - format?._id ?? ffi.nullptr, locale._id); + NSString substringFromIndex_(int from) { + final _ret = + _lib._objc_msgSend_310(_id, _lib._sel_substringFromIndex_1, from); return NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithFormat_locale_arguments_( - NSString? format, NSObject locale, ffi.Pointer<__va_list_tag> argList) { - final _ret = _lib._objc_msgSend_349( - _id, - _lib._sel_initWithFormat_locale_arguments_1, - format?._id ?? ffi.nullptr, - locale._id, - argList); + NSString substringToIndex_(int to) { + final _ret = _lib._objc_msgSend_310(_id, _lib._sel_substringToIndex_1, to); return NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithValidatedFormat_validFormatSpecifiers_error_( - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_350( - _id, - _lib._sel_initWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - error); + NSString substringWithRange_(_NSRange range) { + final _ret = + _lib._objc_msgSend_311(_id, _lib._sel_substringWithRange_1, range); return NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithValidatedFormat_validFormatSpecifiers_locale_error_( - NSString? format, - NSString? validFormatSpecifiers, - NSObject locale, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_351( - _id, - _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - locale._id, - error); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString initWithValidatedFormat_validFormatSpecifiers_arguments_error_( - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer<__va_list_tag> argList, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_352( - _id, - _lib._sel_initWithValidatedFormat_validFormatSpecifiers_arguments_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - argList, - error); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString - 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_353( - _id, - _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - locale._id, - argList, - error); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString initWithData_encoding_(NSData? data, int encoding) { - final _ret = _lib._objc_msgSend_354(_id, _lib._sel_initWithData_encoding_1, - data?._id ?? ffi.nullptr, encoding); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString initWithBytes_length_encoding_( - ffi.Pointer bytes, int len, int encoding) { - final _ret = _lib._objc_msgSend_355( - _id, _lib._sel_initWithBytes_length_encoding_1, bytes, len, encoding); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString initWithBytesNoCopy_length_encoding_freeWhenDone_( - ffi.Pointer bytes, int len, int encoding, bool freeBuffer) { - final _ret = _lib._objc_msgSend_356( - _id, - _lib._sel_initWithBytesNoCopy_length_encoding_freeWhenDone_1, - bytes, - len, - encoding, - freeBuffer); - return NSString._(_ret, _lib, retain: false, release: true); - } - - NSString initWithBytesNoCopy_length_encoding_deallocator_( - ffi.Pointer bytes, - int len, - int encoding, - ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong deallocator) { - final _ret = _lib._objc_msgSend_357( - _id, - _lib._sel_initWithBytesNoCopy_length_encoding_deallocator_1, - bytes, - len, - encoding, - deallocator._id); - return NSString._(_ret, _lib, retain: false, release: true); - } - - static NSString string(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSString1, _lib._sel_string1); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSString stringWithString_(SentryCocoa _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSString1, - _lib._sel_stringWithString_1, string?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSString stringWithCharacters_length_( - SentryCocoa _lib, ffi.Pointer characters, int length) { - final _ret = _lib._objc_msgSend_346(_lib._class_NSString1, - _lib._sel_stringWithCharacters_length_1, characters, length); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSString stringWithUTF8String_( - SentryCocoa _lib, ffi.Pointer nullTerminatedCString) { - final _ret = _lib._objc_msgSend_347(_lib._class_NSString1, - _lib._sel_stringWithUTF8String_1, nullTerminatedCString); - return NSString._(_ret, _lib, retain: true, release: true); + void getCharacters_range_( + ffi.Pointer buffer, _NSRange range) { + _lib._objc_msgSend_312(_id, _lib._sel_getCharacters_range_1, buffer, range); } - static NSString stringWithFormat_(SentryCocoa _lib, NSString? format) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSString1, - _lib._sel_stringWithFormat_1, format?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + int compare_(NSString? string) { + return _lib._objc_msgSend_313( + _id, _lib._sel_compare_1, string?._id ?? ffi.nullptr); } - static NSString localizedStringWithFormat_( - SentryCocoa _lib, NSString? format) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSString1, - _lib._sel_localizedStringWithFormat_1, format?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + int compare_options_(NSString? string, int mask) { + return _lib._objc_msgSend_314( + _id, _lib._sel_compare_options_1, string?._id ?? ffi.nullptr, mask); } - static NSString stringWithValidatedFormat_validFormatSpecifiers_error_( - SentryCocoa _lib, - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_350( - _lib._class_NSString1, - _lib._sel_stringWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - error); - return NSString._(_ret, _lib, retain: true, release: true); + int compare_options_range_( + NSString? string, int mask, _NSRange rangeOfReceiverToCompare) { + return _lib._objc_msgSend_315(_id, _lib._sel_compare_options_range_1, + string?._id ?? ffi.nullptr, mask, rangeOfReceiverToCompare); } - static NSString - localizedStringWithValidatedFormat_validFormatSpecifiers_error_( - SentryCocoa _lib, - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_350( - _lib._class_NSString1, - _lib._sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - error); - return NSString._(_ret, _lib, retain: true, release: true); + int compare_options_range_locale_(NSString? string, int mask, + _NSRange rangeOfReceiverToCompare, NSObject locale) { + return _lib._objc_msgSend_316(_id, _lib._sel_compare_options_range_locale_1, + string?._id ?? ffi.nullptr, mask, rangeOfReceiverToCompare, locale._id); } - NSString initWithCString_encoding_( - ffi.Pointer nullTerminatedCString, int encoding) { - final _ret = _lib._objc_msgSend_358(_id, - _lib._sel_initWithCString_encoding_1, nullTerminatedCString, encoding); - return NSString._(_ret, _lib, retain: true, release: true); + int caseInsensitiveCompare_(NSString? string) { + return _lib._objc_msgSend_313( + _id, _lib._sel_caseInsensitiveCompare_1, string?._id ?? ffi.nullptr); } - static NSString stringWithCString_encoding_( - SentryCocoa _lib, ffi.Pointer cString, int enc) { - final _ret = _lib._objc_msgSend_358(_lib._class_NSString1, - _lib._sel_stringWithCString_encoding_1, cString, enc); - return NSString._(_ret, _lib, retain: true, release: true); + int localizedCompare_(NSString? string) { + return _lib._objc_msgSend_313( + _id, _lib._sel_localizedCompare_1, string?._id ?? ffi.nullptr); } - NSString initWithContentsOfURL_encoding_error_( - NSURL? url, int enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_359( + int localizedCaseInsensitiveCompare_(NSString? string) { + return _lib._objc_msgSend_313( _id, - _lib._sel_initWithContentsOfURL_encoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); - return NSString._(_ret, _lib, retain: true, release: true); + _lib._sel_localizedCaseInsensitiveCompare_1, + string?._id ?? ffi.nullptr); } - NSString initWithContentsOfFile_encoding_error_( - NSString? path, int enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_360( - _id, - _lib._sel_initWithContentsOfFile_encoding_error_1, - path?._id ?? ffi.nullptr, - enc, - error); - return NSString._(_ret, _lib, retain: true, release: true); + int localizedStandardCompare_(NSString? string) { + return _lib._objc_msgSend_313( + _id, _lib._sel_localizedStandardCompare_1, string?._id ?? ffi.nullptr); } - static NSString stringWithContentsOfURL_encoding_error_(SentryCocoa _lib, - NSURL? url, int enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_359( - _lib._class_NSString1, - _lib._sel_stringWithContentsOfURL_encoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); - return NSString._(_ret, _lib, retain: true, release: true); + bool isEqualToString_(NSString? aString) { + return _lib._objc_msgSend_59( + _id, _lib._sel_isEqualToString_1, aString?._id ?? ffi.nullptr); } - static NSString stringWithContentsOfFile_encoding_error_(SentryCocoa _lib, - NSString? path, int enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_360( - _lib._class_NSString1, - _lib._sel_stringWithContentsOfFile_encoding_error_1, - path?._id ?? ffi.nullptr, - enc, - error); - return NSString._(_ret, _lib, retain: true, release: true); + bool hasPrefix_(NSString? str) { + return _lib._objc_msgSend_59( + _id, _lib._sel_hasPrefix_1, str?._id ?? ffi.nullptr); } - NSString initWithContentsOfURL_usedEncoding_error_( - NSURL? url, - ffi.Pointer enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_361( - _id, - _lib._sel_initWithContentsOfURL_usedEncoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); - return NSString._(_ret, _lib, retain: true, release: true); + bool hasSuffix_(NSString? str) { + return _lib._objc_msgSend_59( + _id, _lib._sel_hasSuffix_1, str?._id ?? ffi.nullptr); } - NSString initWithContentsOfFile_usedEncoding_error_( - NSString? path, - ffi.Pointer enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_362( + NSString commonPrefixWithString_options_(NSString? str, int mask) { + final _ret = _lib._objc_msgSend_317( _id, - _lib._sel_initWithContentsOfFile_usedEncoding_error_1, - path?._id ?? ffi.nullptr, - enc, - error); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSString stringWithContentsOfURL_usedEncoding_error_( - SentryCocoa _lib, - NSURL? url, - ffi.Pointer enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_361( - _lib._class_NSString1, - _lib._sel_stringWithContentsOfURL_usedEncoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSString stringWithContentsOfFile_usedEncoding_error_( - SentryCocoa _lib, - NSString? path, - ffi.Pointer enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_362( - _lib._class_NSString1, - _lib._sel_stringWithContentsOfFile_usedEncoding_error_1, - path?._id ?? ffi.nullptr, - enc, - error); + _lib._sel_commonPrefixWithString_options_1, + str?._id ?? ffi.nullptr, + mask); return NSString._(_ret, _lib, retain: true, release: true); } - static int - stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_( - SentryCocoa _lib, - NSData? data, - NSDictionary? opts, - ffi.Pointer> string, - ffi.Pointer usedLossyConversion) { - return _lib._objc_msgSend_363( - _lib._class_NSString1, - _lib._sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1, - data?._id ?? ffi.nullptr, - opts?._id ?? ffi.nullptr, - string, - usedLossyConversion); - } - - NSObject propertyList() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_propertyList1); - return NSObject._(_ret, _lib, retain: true, release: true); + bool containsString_(NSString? str) { + return _lib._objc_msgSend_59( + _id, _lib._sel_containsString_1, str?._id ?? ffi.nullptr); } - NSDictionary propertyListFromStringsFileFormat() { - final _ret = _lib._objc_msgSend_170( - _id, _lib._sel_propertyListFromStringsFileFormat1); - return NSDictionary._(_ret, _lib, retain: true, release: true); + bool localizedCaseInsensitiveContainsString_(NSString? str) { + return _lib._objc_msgSend_59( + _id, + _lib._sel_localizedCaseInsensitiveContainsString_1, + str?._id ?? ffi.nullptr); } - ffi.Pointer cString() { - return _lib._objc_msgSend_13(_id, _lib._sel_cString1); + bool localizedStandardContainsString_(NSString? str) { + return _lib._objc_msgSend_59(_id, + _lib._sel_localizedStandardContainsString_1, str?._id ?? ffi.nullptr); } - ffi.Pointer lossyCString() { - return _lib._objc_msgSend_13(_id, _lib._sel_lossyCString1); + void localizedStandardRangeOfString_( + ffi.Pointer<_NSRange> stret, NSString? str) { + _lib._objc_msgSend_318(stret, _id, + _lib._sel_localizedStandardRangeOfString_1, str?._id ?? ffi.nullptr); } - int cStringLength() { - return _lib._objc_msgSend_10(_id, _lib._sel_cStringLength1); + void rangeOfString_(ffi.Pointer<_NSRange> stret, NSString? searchString) { + _lib._objc_msgSend_318(stret, _id, _lib._sel_rangeOfString_1, + searchString?._id ?? ffi.nullptr); } - void getCString_(ffi.Pointer bytes) { - _lib._objc_msgSend_266(_id, _lib._sel_getCString_1, bytes); + void rangeOfString_options_( + ffi.Pointer<_NSRange> stret, NSString? searchString, int mask) { + _lib._objc_msgSend_319(stret, _id, _lib._sel_rangeOfString_options_1, + searchString?._id ?? ffi.nullptr, mask); } - void getCString_maxLength_(ffi.Pointer bytes, int maxLength) { - _lib._objc_msgSend_364( - _id, _lib._sel_getCString_maxLength_1, bytes, maxLength); + void rangeOfString_options_range_(ffi.Pointer<_NSRange> stret, + NSString? searchString, int mask, _NSRange rangeOfReceiverToSearch) { + _lib._objc_msgSend_320(stret, _id, _lib._sel_rangeOfString_options_range_1, + searchString?._id ?? ffi.nullptr, mask, rangeOfReceiverToSearch); } - void getCString_maxLength_range_remainingRange_(ffi.Pointer bytes, - int maxLength, _NSRange aRange, ffi.Pointer<_NSRange> leftoverRange) { - _lib._objc_msgSend_365( + void rangeOfString_options_range_locale_( + ffi.Pointer<_NSRange> stret, + NSString? searchString, + int mask, + _NSRange rangeOfReceiverToSearch, + NSLocale? locale) { + _lib._objc_msgSend_321( + stret, _id, - _lib._sel_getCString_maxLength_range_remainingRange_1, - bytes, - maxLength, - aRange, - 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 writeToURL_atomically_(NSURL? url, bool atomically) { - return _lib._objc_msgSend_125(_id, _lib._sel_writeToURL_atomically_1, - url?._id ?? ffi.nullptr, 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); + _lib._sel_rangeOfString_options_range_locale_1, + searchString?._id ?? ffi.nullptr, + mask, + rangeOfReceiverToSearch, + locale?._id ?? ffi.nullptr); } - NSObject initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_241( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + void rangeOfCharacterFromSet_( + ffi.Pointer<_NSRange> stret, NSCharacterSet? searchSet) { + _lib._objc_msgSend_322(stret, _id, _lib._sel_rangeOfCharacterFromSet_1, + searchSet?._id ?? ffi.nullptr); } - static NSObject stringWithContentsOfFile_(SentryCocoa _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); + void rangeOfCharacterFromSet_options_( + ffi.Pointer<_NSRange> stret, NSCharacterSet? searchSet, int mask) { + _lib._objc_msgSend_323( + stret, + _id, + _lib._sel_rangeOfCharacterFromSet_options_1, + searchSet?._id ?? ffi.nullptr, + mask); } - static NSObject stringWithContentsOfURL_(SentryCocoa _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_241(_lib._class_NSString1, - _lib._sel_stringWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + void rangeOfCharacterFromSet_options_range_(ffi.Pointer<_NSRange> stret, + NSCharacterSet? searchSet, int mask, _NSRange rangeOfReceiverToSearch) { + _lib._objc_msgSend_324( + stret, + _id, + _lib._sel_rangeOfCharacterFromSet_options_range_1, + searchSet?._id ?? ffi.nullptr, + mask, + rangeOfReceiverToSearch); } - NSObject initWithCStringNoCopy_length_freeWhenDone_( - ffi.Pointer bytes, int length, bool freeBuffer) { - final _ret = _lib._objc_msgSend_366( - _id, - _lib._sel_initWithCStringNoCopy_length_freeWhenDone_1, - bytes, - length, - freeBuffer); - return NSObject._(_ret, _lib, retain: false, release: true); + void rangeOfComposedCharacterSequenceAtIndex_( + ffi.Pointer<_NSRange> stret, int index) { + _lib._objc_msgSend_325( + stret, _id, _lib._sel_rangeOfComposedCharacterSequenceAtIndex_1, index); } - NSObject initWithCString_length_(ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_358( - _id, _lib._sel_initWithCString_length_1, bytes, length); - return NSObject._(_ret, _lib, retain: true, release: true); + void rangeOfComposedCharacterSequencesForRange_( + ffi.Pointer<_NSRange> stret, _NSRange range) { + _lib._objc_msgSend_326(stret, _id, + _lib._sel_rangeOfComposedCharacterSequencesForRange_1, range); } - NSObject initWithCString_(ffi.Pointer bytes) { - final _ret = - _lib._objc_msgSend_347(_id, _lib._sel_initWithCString_1, bytes); - return NSObject._(_ret, _lib, retain: true, release: true); + NSString stringByAppendingString_(NSString? aString) { + final _ret = _lib._objc_msgSend_64( + _id, _lib._sel_stringByAppendingString_1, aString?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithCString_length_( - SentryCocoa _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_358(_lib._class_NSString1, - _lib._sel_stringWithCString_length_1, bytes, length); - return NSObject._(_ret, _lib, retain: true, release: true); + NSString stringByAppendingFormat_(NSString? format) { + final _ret = _lib._objc_msgSend_64( + _id, _lib._sel_stringByAppendingFormat_1, format?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithCString_( - SentryCocoa _lib, ffi.Pointer bytes) { - final _ret = _lib._objc_msgSend_347( - _lib._class_NSString1, _lib._sel_stringWithCString_1, bytes); - return NSObject._(_ret, _lib, retain: true, release: true); + double get doubleValue { + return _lib._objc_msgSend_155(_id, _lib._sel_doubleValue1); } - void getCharacters_(ffi.Pointer buffer) { - _lib._objc_msgSend_367(_id, _lib._sel_getCharacters_1, buffer); + double get floatValue { + return _lib._objc_msgSend_221(_id, _lib._sel_floatValue1); } - NSString variantFittingPresentationWidth_(int width) { - final _ret = _lib._objc_msgSend_368( - _id, _lib._sel_variantFittingPresentationWidth_1, width); - return NSString._(_ret, _lib, retain: true, release: true); + int get intValue { + return _lib._objc_msgSend_219(_id, _lib._sel_intValue1); } - static NSString pathWithComponents_(SentryCocoa _lib, NSArray? components) { - final _ret = _lib._objc_msgSend_369(_lib._class_NSString1, - _lib._sel_pathWithComponents_1, components?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + int get integerValue { + return _lib._objc_msgSend_78(_id, _lib._sel_integerValue1); } - NSArray? get pathComponents { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_pathComponents1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + int get longLongValue { + return _lib._objc_msgSend_220(_id, _lib._sel_longLongValue1); } - bool get absolutePath { - return _lib._objc_msgSend_12(_id, _lib._sel_isAbsolutePath1); + bool get boolValue { + return _lib._objc_msgSend_12(_id, _lib._sel_boolValue1); } - NSString? get lastPathComponent { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_lastPathComponent1); + 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 stringByDeletingLastPathComponent { - final _ret = _lib._objc_msgSend_20( - _id, _lib._sel_stringByDeletingLastPathComponent1); + 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 stringByAppendingPathComponent_(NSString? str) { - final _ret = _lib._objc_msgSend_64(_id, - _lib._sel_stringByAppendingPathComponent_1, str?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get pathExtension { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_pathExtension1); + 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 stringByDeletingPathExtension { + NSString? get localizedUppercaseString { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_stringByDeletingPathExtension1); + _lib._objc_msgSend_20(_id, _lib._sel_localizedUppercaseString1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString stringByAppendingPathExtension_(NSString? str) { - final _ret = _lib._objc_msgSend_64(_id, - _lib._sel_stringByAppendingPathExtension_1, str?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get stringByAbbreviatingWithTildeInPath { - final _ret = _lib._objc_msgSend_20( - _id, _lib._sel_stringByAbbreviatingWithTildeInPath1); + 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); } - NSString? get stringByExpandingTildeInPath { + NSString? get localizedCapitalizedString { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_stringByExpandingTildeInPath1); + _lib._objc_msgSend_20(_id, _lib._sel_localizedCapitalizedString1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - 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); + NSString uppercaseStringWithLocale_(NSLocale? locale) { + final _ret = _lib._objc_msgSend_327( + _id, _lib._sel_uppercaseStringWithLocale_1, locale?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - 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); + NSString lowercaseStringWithLocale_(NSLocale? locale) { + final _ret = _lib._objc_msgSend_327( + _id, _lib._sel_lowercaseStringWithLocale_1, locale?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - NSArray stringsByAppendingPaths_(NSArray? paths) { - final _ret = _lib._objc_msgSend_63( - _id, _lib._sel_stringsByAppendingPaths_1, paths?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSString capitalizedStringWithLocale_(NSLocale? locale) { + final _ret = _lib._objc_msgSend_327(_id, + _lib._sel_capitalizedStringWithLocale_1, locale?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - int completePathIntoString_caseSensitive_matchesIntoArray_filterTypes_( - ffi.Pointer> outputName, - bool flag, - ffi.Pointer> outputArray, - NSArray? filterTypes) { - return _lib._objc_msgSend_370( + void getLineStart_end_contentsEnd_forRange_( + ffi.Pointer startPtr, + ffi.Pointer lineEndPtr, + ffi.Pointer contentsEndPtr, + _NSRange range) { + _lib._objc_msgSend_328( _id, - _lib._sel_completePathIntoString_caseSensitive_matchesIntoArray_filterTypes_1, - outputName, - flag, - outputArray, - filterTypes?._id ?? ffi.nullptr); - } - - ffi.Pointer get fileSystemRepresentation { - return _lib._objc_msgSend_13(_id, _lib._sel_fileSystemRepresentation1); + _lib._sel_getLineStart_end_contentsEnd_forRange_1, + startPtr, + lineEndPtr, + contentsEndPtr, + range); } - bool getFileSystemRepresentation_maxLength_( - ffi.Pointer cname, int max) { - return _lib._objc_msgSend_224( - _id, _lib._sel_getFileSystemRepresentation_maxLength_1, cname, max); + void lineRangeForRange_(ffi.Pointer<_NSRange> stret, _NSRange range) { + _lib._objc_msgSend_326(stret, _id, _lib._sel_lineRangeForRange_1, range); } - NSString stringByAddingPercentEncodingWithAllowedCharacters_( - NSCharacterSet? allowedCharacters) { - final _ret = _lib._objc_msgSend_335( + void getParagraphStart_end_contentsEnd_forRange_( + ffi.Pointer startPtr, + ffi.Pointer parEndPtr, + ffi.Pointer contentsEndPtr, + _NSRange range) { + _lib._objc_msgSend_328( _id, - _lib._sel_stringByAddingPercentEncodingWithAllowedCharacters_1, - allowedCharacters?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get stringByRemovingPercentEncoding { - final _ret = - _lib._objc_msgSend_20(_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_308( - _id, _lib._sel_stringByAddingPercentEscapesUsingEncoding_1, enc); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString stringByReplacingPercentEscapesUsingEncoding_(int enc) { - final _ret = _lib._objc_msgSend_308( - _id, _lib._sel_stringByReplacingPercentEscapesUsingEncoding_1, enc); - return NSString._(_ret, _lib, retain: true, release: true); + _lib._sel_getParagraphStart_end_contentsEnd_forRange_1, + startPtr, + parEndPtr, + contentsEndPtr, + range); } - NSArray linguisticTagsInRange_scheme_options_orthography_tokenRanges_( - _NSRange range, - NSString scheme, - int options, - NSOrthography? orthography, - ffi.Pointer> tokenRanges) { - final _ret = _lib._objc_msgSend_372( - _id, - _lib._sel_linguisticTagsInRange_scheme_options_orthography_tokenRanges_1, - range, - scheme._id, - options, - orthography?._id ?? ffi.nullptr, - tokenRanges); - return NSArray._(_ret, _lib, retain: true, release: true); + void paragraphRangeForRange_(ffi.Pointer<_NSRange> stret, _NSRange range) { + _lib._objc_msgSend_326( + stret, _id, _lib._sel_paragraphRangeForRange_1, range); } - void enumerateLinguisticTagsInRange_scheme_options_orthography_usingBlock_( - _NSRange range, - NSString scheme, - int options, - NSOrthography? orthography, + void enumerateSubstringsInRange_options_usingBlock_(_NSRange range, int opts, ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool block) { - _lib._objc_msgSend_373( + _lib._objc_msgSend_329( _id, - _lib._sel_enumerateLinguisticTagsInRange_scheme_options_orthography_usingBlock_1, + _lib._sel_enumerateSubstringsInRange_options_usingBlock_1, range, - scheme._id, - options, - orthography?._id ?? ffi.nullptr, + opts, block._id); } - static NSString new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSString1, _lib._sel_new1); - return NSString._(_ret, _lib, retain: false, release: true); + void enumerateLinesUsingBlock_(ObjCBlock_ffiVoid_NSString_bool block) { + _lib._objc_msgSend_330( + _id, _lib._sel_enumerateLinesUsingBlock_1, block._id); } - static NSString allocWithZone_(SentryCocoa _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); + ffi.Pointer get UTF8String { + return _lib._objc_msgSend_13(_id, _lib._sel_UTF8String1); } - static NSString alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSString1, _lib._sel_alloc1); - return NSString._(_ret, _lib, retain: false, release: true); + int get fastestEncoding { + return _lib._objc_msgSend_10(_id, _lib._sel_fastestEncoding1); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSString1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + int get smallestEncoding { + return _lib._objc_msgSend_10(_id, _lib._sel_smallestEncoding1); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSString1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + NSData dataUsingEncoding_allowLossyConversion_(int encoding, bool lossy) { + final _ret = _lib._objc_msgSend_331(_id, + _lib._sel_dataUsingEncoding_allowLossyConversion_1, encoding, lossy); + return NSData._(_ret, _lib, retain: true, release: true); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSString1, _lib._sel_accessInstanceVariablesDirectly1); + NSData dataUsingEncoding_(int encoding) { + final _ret = + _lib._objc_msgSend_332(_id, _lib._sel_dataUsingEncoding_1, encoding); + return NSData._(_ret, _lib, retain: true, release: true); } - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSString1, _lib._sel_useStoredAccessor1); + bool canBeConvertedToEncoding_(int encoding) { + return _lib._objc_msgSend_91( + _id, _lib._sel_canBeConvertedToEncoding_1, encoding); } - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSString1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + ffi.Pointer cStringUsingEncoding_(int encoding) { + return _lib._objc_msgSend_11( + _id, _lib._sel_cStringUsingEncoding_1, encoding); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSString1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + bool getCString_maxLength_encoding_( + ffi.Pointer buffer, int maxBufferCount, int encoding) { + return _lib._objc_msgSend_333( + _id, + _lib._sel_getCString_maxLength_encoding_1, + buffer, + maxBufferCount, + encoding); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSString1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + bool getBytes_maxLength_usedLength_encoding_options_range_remainingRange_( + ffi.Pointer buffer, + int maxBufferCount, + ffi.Pointer usedBufferCount, + int encoding, + int options, + _NSRange range, + ffi.Pointer<_NSRange> leftover) { + return _lib._objc_msgSend_334( + _id, + _lib._sel_getBytes_maxLength_usedLength_encoding_options_range_remainingRange_1, + buffer, + maxBufferCount, + usedBufferCount, + encoding, + options, + range, + leftover); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSString1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + int maximumLengthOfBytesUsingEncoding_(int enc) { + return _lib._objc_msgSend_88( + _id, _lib._sel_maximumLengthOfBytesUsingEncoding_1, enc); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSString1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + int lengthOfBytesUsingEncoding_(int enc) { + return _lib._objc_msgSend_88( + _id, _lib._sel_lengthOfBytesUsingEncoding_1, enc); } -} - -extension StringToNSString on String { - NSString toNSString(SentryCocoa lib) => NSString(lib, this); -} - -class NSCoder extends NSObject { - NSCoder._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - /// Returns a [NSCoder] that points to the same underlying object as [other]. - static NSCoder castFrom(T other) { - return NSCoder._(other._id, other._lib, retain: true, release: true); + static ffi.Pointer getAvailableStringEncodings( + SentryCocoa _lib) { + return _lib._objc_msgSend_335( + _lib._class_NSString1, _lib._sel_availableStringEncodings1); } - /// Returns a [NSCoder] that wraps the given raw object pointer. - static NSCoder castFromPointer(SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSCoder._(other, lib, retain: retain, release: release); + static NSString localizedNameOfStringEncoding_( + SentryCocoa _lib, int encoding) { + final _ret = _lib._objc_msgSend_310(_lib._class_NSString1, + _lib._sel_localizedNameOfStringEncoding_1, encoding); + return NSString._(_ret, _lib, retain: true, release: true); } - /// Returns whether [obj] is an instance of [NSCoder]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSCoder1); + static int getDefaultCStringEncoding(SentryCocoa _lib) { + return _lib._objc_msgSend_10( + _lib._class_NSString1, _lib._sel_defaultCStringEncoding1); } - void encodeValueOfObjCType_at_( - ffi.Pointer type, ffi.Pointer addr) { - _lib._objc_msgSend_18( - _id, _lib._sel_encodeValueOfObjCType_at_1, type, addr); + NSString? get decomposedStringWithCanonicalMapping { + final _ret = _lib._objc_msgSend_20( + _id, _lib._sel_decomposedStringWithCanonicalMapping1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void encodeDataObject_(NSData? data) { - _lib._objc_msgSend_263( - _id, _lib._sel_encodeDataObject_1, data?._id ?? ffi.nullptr); + NSString? get precomposedStringWithCanonicalMapping { + final _ret = _lib._objc_msgSend_20( + _id, _lib._sel_precomposedStringWithCanonicalMapping1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSData decodeDataObject() { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_decodeDataObject1); - return NSData._(_ret, _lib, retain: true, release: true); + NSString? get decomposedStringWithCompatibilityMapping { + final _ret = _lib._objc_msgSend_20( + _id, _lib._sel_decomposedStringWithCompatibilityMapping1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void decodeValueOfObjCType_at_size_( - ffi.Pointer type, ffi.Pointer data, int size) { - _lib._objc_msgSend_264( - _id, _lib._sel_decodeValueOfObjCType_at_size_1, type, data, size); + NSString? get precomposedStringWithCompatibilityMapping { + final _ret = _lib._objc_msgSend_20( + _id, _lib._sel_precomposedStringWithCompatibilityMapping1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - int versionForClassName_(NSString? className) { - return _lib._objc_msgSend_265( - _id, _lib._sel_versionForClassName_1, className?._id ?? ffi.nullptr); + NSArray componentsSeparatedByString_(NSString? separator) { + final _ret = _lib._objc_msgSend_123(_id, + _lib._sel_componentsSeparatedByString_1, separator?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - void encodeObject_(NSObject object) { - _lib._objc_msgSend_15(_id, _lib._sel_encodeObject_1, object._id); + NSArray componentsSeparatedByCharactersInSet_(NSCharacterSet? separator) { + final _ret = _lib._objc_msgSend_336( + _id, + _lib._sel_componentsSeparatedByCharactersInSet_1, + separator?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - void encodeRootObject_(NSObject rootObject) { - _lib._objc_msgSend_15(_id, _lib._sel_encodeRootObject_1, rootObject._id); + NSString stringByTrimmingCharactersInSet_(NSCharacterSet? set) { + final _ret = _lib._objc_msgSend_337(_id, + _lib._sel_stringByTrimmingCharactersInSet_1, set?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - void encodeBycopyObject_(NSObject anObject) { - _lib._objc_msgSend_15(_id, _lib._sel_encodeBycopyObject_1, anObject._id); + NSString stringByPaddingToLength_withString_startingAtIndex_( + int newLength, NSString? padString, int padIndex) { + final _ret = _lib._objc_msgSend_338( + _id, + _lib._sel_stringByPaddingToLength_withString_startingAtIndex_1, + newLength, + padString?._id ?? ffi.nullptr, + padIndex); + return NSString._(_ret, _lib, retain: true, release: true); } - void encodeByrefObject_(NSObject anObject) { - _lib._objc_msgSend_15(_id, _lib._sel_encodeByrefObject_1, anObject._id); + NSString stringByFoldingWithOptions_locale_(int options, NSLocale? locale) { + final _ret = _lib._objc_msgSend_339( + _id, + _lib._sel_stringByFoldingWithOptions_locale_1, + options, + locale?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - void encodeConditionalObject_(NSObject object) { - _lib._objc_msgSend_15(_id, _lib._sel_encodeConditionalObject_1, object._id); + NSString stringByReplacingOccurrencesOfString_withString_options_range_( + NSString? target, + NSString? replacement, + int options, + _NSRange searchRange) { + final _ret = _lib._objc_msgSend_340( + _id, + _lib._sel_stringByReplacingOccurrencesOfString_withString_options_range_1, + target?._id ?? ffi.nullptr, + replacement?._id ?? ffi.nullptr, + options, + searchRange); + return NSString._(_ret, _lib, retain: true, release: true); } - void encodeValuesOfObjCTypes_(ffi.Pointer types) { - _lib._objc_msgSend_266(_id, _lib._sel_encodeValuesOfObjCTypes_1, types); + NSString stringByReplacingOccurrencesOfString_withString_( + NSString? target, NSString? replacement) { + final _ret = _lib._objc_msgSend_341( + _id, + _lib._sel_stringByReplacingOccurrencesOfString_withString_1, + target?._id ?? ffi.nullptr, + replacement?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - void encodeArrayOfObjCType_count_at_( - ffi.Pointer type, int count, ffi.Pointer array) { - _lib._objc_msgSend_267( - _id, _lib._sel_encodeArrayOfObjCType_count_at_1, type, count, array); + NSString stringByReplacingCharactersInRange_withString_( + _NSRange range, NSString? replacement) { + final _ret = _lib._objc_msgSend_342( + _id, + _lib._sel_stringByReplacingCharactersInRange_withString_1, + range, + replacement?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - void encodeBytes_length_(ffi.Pointer byteaddr, int length) { - _lib._objc_msgSend_21( - _id, _lib._sel_encodeBytes_length_1, byteaddr, length); + NSString stringByApplyingTransform_reverse_( + NSString transform, bool reverse) { + final _ret = _lib._objc_msgSend_343(_id, + _lib._sel_stringByApplyingTransform_reverse_1, transform._id, reverse); + return NSString._(_ret, _lib, retain: true, release: true); } - NSObject decodeObject() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_decodeObject1); - return NSObject._(_ret, _lib, retain: true, release: true); + bool writeToURL_atomically_encoding_error_(NSURL? url, bool useAuxiliaryFile, + int enc, ffi.Pointer> error) { + return _lib._objc_msgSend_344( + _id, + _lib._sel_writeToURL_atomically_encoding_error_1, + url?._id ?? ffi.nullptr, + useAuxiliaryFile, + enc, + error); } - NSObject decodeTopLevelObjectAndReturnError_( + bool writeToFile_atomically_encoding_error_( + NSString? path, + bool useAuxiliaryFile, + int enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_268( - _id, _lib._sel_decodeTopLevelObjectAndReturnError_1, error); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - void decodeValuesOfObjCTypes_(ffi.Pointer types) { - _lib._objc_msgSend_266(_id, _lib._sel_decodeValuesOfObjCTypes_1, types); - } - - void decodeArrayOfObjCType_count_at_( - ffi.Pointer itemType, int count, ffi.Pointer array) { - _lib._objc_msgSend_267(_id, _lib._sel_decodeArrayOfObjCType_count_at_1, - itemType, count, array); + return _lib._objc_msgSend_345( + _id, + _lib._sel_writeToFile_atomically_encoding_error_1, + path?._id ?? ffi.nullptr, + useAuxiliaryFile, + enc, + error); } - ffi.Pointer decodeBytesWithReturnedLength_( - ffi.Pointer lengthp) { - return _lib._objc_msgSend_269( - _id, _lib._sel_decodeBytesWithReturnedLength_1, lengthp); + 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 encodePropertyList_(NSObject aPropertyList) { - _lib._objc_msgSend_15( - _id, _lib._sel_encodePropertyList_1, aPropertyList._id); + int get hash { + return _lib._objc_msgSend_10(_id, _lib._sel_hash1); } - NSObject decodePropertyList() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_decodePropertyList1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSString initWithCharactersNoCopy_length_freeWhenDone_( + ffi.Pointer characters, int length, bool freeBuffer) { + final _ret = _lib._objc_msgSend_346( + _id, + _lib._sel_initWithCharactersNoCopy_length_freeWhenDone_1, + characters, + length, + freeBuffer); + return NSString._(_ret, _lib, retain: false, release: true); } - void setObjectZone_(ffi.Pointer<_NSZone> zone) { - _lib._objc_msgSend_270(_id, _lib._sel_setObjectZone_1, zone); + NSString initWithCharactersNoCopy_length_deallocator_( + ffi.Pointer chars, + int len, + ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong deallocator) { + final _ret = _lib._objc_msgSend_347( + _id, + _lib._sel_initWithCharactersNoCopy_length_deallocator_1, + chars, + len, + deallocator._id); + return NSString._(_ret, _lib, retain: false, release: true); } - ffi.Pointer<_NSZone> objectZone() { - return _lib._objc_msgSend_271(_id, _lib._sel_objectZone1); + NSString initWithCharacters_length_( + ffi.Pointer characters, int length) { + final _ret = _lib._objc_msgSend_348( + _id, _lib._sel_initWithCharacters_length_1, characters, length); + return NSString._(_ret, _lib, retain: true, release: true); } - int get systemVersion { - return _lib._objc_msgSend_197(_id, _lib._sel_systemVersion1); + NSString initWithUTF8String_(ffi.Pointer nullTerminatedCString) { + final _ret = _lib._objc_msgSend_349( + _id, _lib._sel_initWithUTF8String_1, nullTerminatedCString); + return NSString._(_ret, _lib, retain: true, release: true); } - bool get allowsKeyedCoding { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsKeyedCoding1); + NSString initWithString_(NSString? aString) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithString_1, aString?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - void encodeObject_forKey_(NSObject object, NSString? key) { - _lib._objc_msgSend_126(_id, _lib._sel_encodeObject_forKey_1, object._id, - key?._id ?? ffi.nullptr); + NSString initWithFormat_(NSString? format) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithFormat_1, format?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - void encodeConditionalObject_forKey_(NSObject object, NSString? key) { - _lib._objc_msgSend_126(_id, _lib._sel_encodeConditionalObject_forKey_1, - object._id, key?._id ?? ffi.nullptr); + NSString initWithFormat_arguments_( + NSString? format, ffi.Pointer<__va_list_tag> argList) { + final _ret = _lib._objc_msgSend_350( + _id, + _lib._sel_initWithFormat_arguments_1, + format?._id ?? ffi.nullptr, + argList); + return NSString._(_ret, _lib, retain: true, release: true); } - void encodeBool_forKey_(bool value, NSString? key) { - _lib._objc_msgSend_272( - _id, _lib._sel_encodeBool_forKey_1, value, key?._id ?? ffi.nullptr); + NSString initWithFormat_locale_(NSString? format, NSObject locale) { + final _ret = _lib._objc_msgSend_163(_id, _lib._sel_initWithFormat_locale_1, + format?._id ?? ffi.nullptr, locale._id); + return NSString._(_ret, _lib, retain: true, release: true); } - void encodeInt_forKey_(int value, NSString? key) { - _lib._objc_msgSend_273( - _id, _lib._sel_encodeInt_forKey_1, value, key?._id ?? ffi.nullptr); + NSString initWithFormat_locale_arguments_( + NSString? format, NSObject locale, ffi.Pointer<__va_list_tag> argList) { + final _ret = _lib._objc_msgSend_351( + _id, + _lib._sel_initWithFormat_locale_arguments_1, + format?._id ?? ffi.nullptr, + locale._id, + argList); + return NSString._(_ret, _lib, retain: true, release: true); } - void encodeInt32_forKey_(int value, NSString? key) { - _lib._objc_msgSend_274( - _id, _lib._sel_encodeInt32_forKey_1, value, key?._id ?? ffi.nullptr); + NSString initWithValidatedFormat_validFormatSpecifiers_error_( + NSString? format, + NSString? validFormatSpecifiers, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_352( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_error_1, + format?._id ?? ffi.nullptr, + validFormatSpecifiers?._id ?? ffi.nullptr, + error); + return NSString._(_ret, _lib, retain: true, release: true); } - void encodeInt64_forKey_(int value, NSString? key) { - _lib._objc_msgSend_275( - _id, _lib._sel_encodeInt64_forKey_1, value, key?._id ?? ffi.nullptr); + NSString initWithValidatedFormat_validFormatSpecifiers_locale_error_( + NSString? format, + NSString? validFormatSpecifiers, + NSObject locale, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_353( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_1, + format?._id ?? ffi.nullptr, + validFormatSpecifiers?._id ?? ffi.nullptr, + locale._id, + error); + return NSString._(_ret, _lib, retain: true, release: true); } - void encodeFloat_forKey_(double value, NSString? key) { - _lib._objc_msgSend_276( - _id, _lib._sel_encodeFloat_forKey_1, value, key?._id ?? ffi.nullptr); + NSString initWithValidatedFormat_validFormatSpecifiers_arguments_error_( + NSString? format, + NSString? validFormatSpecifiers, + ffi.Pointer<__va_list_tag> argList, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_354( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_arguments_error_1, + format?._id ?? ffi.nullptr, + validFormatSpecifiers?._id ?? ffi.nullptr, + argList, + error); + return NSString._(_ret, _lib, retain: true, release: true); } - void encodeDouble_forKey_(double value, NSString? key) { - _lib._objc_msgSend_277( - _id, _lib._sel_encodeDouble_forKey_1, value, key?._id ?? ffi.nullptr); + NSString + 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_355( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_1, + format?._id ?? ffi.nullptr, + validFormatSpecifiers?._id ?? ffi.nullptr, + locale._id, + argList, + error); + return NSString._(_ret, _lib, retain: true, release: true); } - void encodeBytes_length_forKey_( - ffi.Pointer bytes, int length, NSString? key) { - _lib._objc_msgSend_278(_id, _lib._sel_encodeBytes_length_forKey_1, bytes, - length, key?._id ?? ffi.nullptr); + NSString initWithData_encoding_(NSData? data, int encoding) { + final _ret = _lib._objc_msgSend_356(_id, _lib._sel_initWithData_encoding_1, + data?._id ?? ffi.nullptr, encoding); + return NSString._(_ret, _lib, retain: true, release: true); } - bool containsValueForKey_(NSString? key) { - return _lib._objc_msgSend_59( - _id, _lib._sel_containsValueForKey_1, key?._id ?? ffi.nullptr); + NSString initWithBytes_length_encoding_( + ffi.Pointer bytes, int len, int encoding) { + final _ret = _lib._objc_msgSend_357( + _id, _lib._sel_initWithBytes_length_encoding_1, bytes, len, encoding); + return NSString._(_ret, _lib, retain: true, release: true); } - 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); + NSString initWithBytesNoCopy_length_encoding_freeWhenDone_( + ffi.Pointer bytes, int len, int encoding, bool freeBuffer) { + final _ret = _lib._objc_msgSend_358( + _id, + _lib._sel_initWithBytesNoCopy_length_encoding_freeWhenDone_1, + bytes, + len, + encoding, + freeBuffer); + return NSString._(_ret, _lib, retain: false, release: true); } - NSObject decodeTopLevelObjectForKey_error_( - NSString? key, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_279( + NSString initWithBytesNoCopy_length_encoding_deallocator_( + ffi.Pointer bytes, + int len, + int encoding, + ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong deallocator) { + final _ret = _lib._objc_msgSend_359( _id, - _lib._sel_decodeTopLevelObjectForKey_error_1, - key?._id ?? ffi.nullptr, - error); - return NSObject._(_ret, _lib, retain: true, release: true); + _lib._sel_initWithBytesNoCopy_length_encoding_deallocator_1, + bytes, + len, + encoding, + deallocator._id); + return NSString._(_ret, _lib, retain: false, release: true); } - bool decodeBoolForKey_(NSString? key) { - return _lib._objc_msgSend_59( - _id, _lib._sel_decodeBoolForKey_1, key?._id ?? ffi.nullptr); + static NSString string(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSString1, _lib._sel_string1); + return NSString._(_ret, _lib, retain: true, release: true); } - int decodeIntForKey_(NSString? key) { - return _lib._objc_msgSend_280( - _id, _lib._sel_decodeIntForKey_1, key?._id ?? ffi.nullptr); + static NSString stringWithString_(SentryCocoa _lib, NSString? string) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSString1, + _lib._sel_stringWithString_1, string?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - int decodeInt32ForKey_(NSString? key) { - return _lib._objc_msgSend_281( - _id, _lib._sel_decodeInt32ForKey_1, key?._id ?? ffi.nullptr); + static NSString stringWithCharacters_length_( + SentryCocoa _lib, ffi.Pointer characters, int length) { + final _ret = _lib._objc_msgSend_348(_lib._class_NSString1, + _lib._sel_stringWithCharacters_length_1, characters, length); + return NSString._(_ret, _lib, retain: true, release: true); } - int decodeInt64ForKey_(NSString? key) { - return _lib._objc_msgSend_282( - _id, _lib._sel_decodeInt64ForKey_1, key?._id ?? ffi.nullptr); + static NSString stringWithUTF8String_( + SentryCocoa _lib, ffi.Pointer nullTerminatedCString) { + final _ret = _lib._objc_msgSend_349(_lib._class_NSString1, + _lib._sel_stringWithUTF8String_1, nullTerminatedCString); + return NSString._(_ret, _lib, retain: true, release: true); } - double decodeFloatForKey_(NSString? key) { - return _lib._objc_msgSend_283( - _id, _lib._sel_decodeFloatForKey_1, key?._id ?? ffi.nullptr); + static NSString stringWithFormat_(SentryCocoa _lib, NSString? format) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSString1, + _lib._sel_stringWithFormat_1, format?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - double decodeDoubleForKey_(NSString? key) { - return _lib._objc_msgSend_284( - _id, _lib._sel_decodeDoubleForKey_1, key?._id ?? ffi.nullptr); + static NSString localizedStringWithFormat_( + SentryCocoa _lib, NSString? format) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSString1, + _lib._sel_localizedStringWithFormat_1, format?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - ffi.Pointer decodeBytesForKey_returnedLength_( - NSString? key, ffi.Pointer lengthp) { - return _lib._objc_msgSend_285( - _id, - _lib._sel_decodeBytesForKey_returnedLength_1, - key?._id ?? ffi.nullptr, - lengthp); + static NSString stringWithValidatedFormat_validFormatSpecifiers_error_( + SentryCocoa _lib, + NSString? format, + NSString? validFormatSpecifiers, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_352( + _lib._class_NSString1, + _lib._sel_stringWithValidatedFormat_validFormatSpecifiers_error_1, + format?._id ?? ffi.nullptr, + validFormatSpecifiers?._id ?? ffi.nullptr, + error); + return NSString._(_ret, _lib, retain: true, release: true); } - void encodeInteger_forKey_(int value, NSString? key) { - _lib._objc_msgSend_286( - _id, _lib._sel_encodeInteger_forKey_1, value, key?._id ?? ffi.nullptr); + static NSString + localizedStringWithValidatedFormat_validFormatSpecifiers_error_( + SentryCocoa _lib, + NSString? format, + NSString? validFormatSpecifiers, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_352( + _lib._class_NSString1, + _lib._sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_1, + format?._id ?? ffi.nullptr, + validFormatSpecifiers?._id ?? ffi.nullptr, + error); + return NSString._(_ret, _lib, retain: true, release: true); } - int decodeIntegerForKey_(NSString? key) { - return _lib._objc_msgSend_265( - _id, _lib._sel_decodeIntegerForKey_1, key?._id ?? ffi.nullptr); + NSString initWithCString_encoding_( + ffi.Pointer nullTerminatedCString, int encoding) { + final _ret = _lib._objc_msgSend_360(_id, + _lib._sel_initWithCString_encoding_1, nullTerminatedCString, encoding); + return NSString._(_ret, _lib, retain: true, release: true); } - bool get requiresSecureCoding { - return _lib._objc_msgSend_12(_id, _lib._sel_requiresSecureCoding1); + static NSString stringWithCString_encoding_( + SentryCocoa _lib, ffi.Pointer cString, int enc) { + final _ret = _lib._objc_msgSend_360(_lib._class_NSString1, + _lib._sel_stringWithCString_encoding_1, cString, enc); + return NSString._(_ret, _lib, retain: true, release: true); } - NSObject decodeObjectOfClass_forKey_(NSObject aClass, NSString? key) { - final _ret = _lib._objc_msgSend_287( + NSString initWithContentsOfURL_encoding_error_( + NSURL? url, int enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_361( _id, - _lib._sel_decodeObjectOfClass_forKey_1, - aClass._id, - key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + _lib._sel_initWithContentsOfURL_encoding_error_1, + url?._id ?? ffi.nullptr, + enc, + error); + return NSString._(_ret, _lib, retain: true, release: true); } - NSObject decodeTopLevelObjectOfClass_forKey_error_(NSObject aClass, - NSString? key, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_288( + NSString initWithContentsOfFile_encoding_error_( + NSString? path, int enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_362( _id, - _lib._sel_decodeTopLevelObjectOfClass_forKey_error_1, - aClass._id, - key?._id ?? ffi.nullptr, + _lib._sel_initWithContentsOfFile_encoding_error_1, + path?._id ?? ffi.nullptr, + enc, error); - return NSObject._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } - NSArray decodeArrayOfObjectsOfClass_forKey_(NSObject cls, NSString? key) { - final _ret = _lib._objc_msgSend_289( - _id, - _lib._sel_decodeArrayOfObjectsOfClass_forKey_1, - cls._id, - key?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + static NSString stringWithContentsOfURL_encoding_error_(SentryCocoa _lib, + NSURL? url, int enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_361( + _lib._class_NSString1, + _lib._sel_stringWithContentsOfURL_encoding_error_1, + url?._id ?? ffi.nullptr, + enc, + error); + return NSString._(_ret, _lib, retain: true, release: true); } - NSDictionary decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_( - NSObject keyCls, NSObject objectCls, NSString? key) { - final _ret = _lib._objc_msgSend_290( - _id, - _lib._sel_decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_1, - keyCls._id, - objectCls._id, - key?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + static NSString stringWithContentsOfFile_encoding_error_(SentryCocoa _lib, + NSString? path, int enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_362( + _lib._class_NSString1, + _lib._sel_stringWithContentsOfFile_encoding_error_1, + path?._id ?? ffi.nullptr, + enc, + error); + return NSString._(_ret, _lib, retain: true, release: true); } - NSObject decodeObjectOfClasses_forKey_(NSSet? classes, NSString? key) { - final _ret = _lib._objc_msgSend_291( + NSString initWithContentsOfURL_usedEncoding_error_( + NSURL? url, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_363( _id, - _lib._sel_decodeObjectOfClasses_forKey_1, - classes?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + _lib._sel_initWithContentsOfURL_usedEncoding_error_1, + url?._id ?? ffi.nullptr, + enc, + error); + return NSString._(_ret, _lib, retain: true, release: true); } - NSObject decodeTopLevelObjectOfClasses_forKey_error_(NSSet? classes, - NSString? key, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_292( + NSString initWithContentsOfFile_usedEncoding_error_( + NSString? path, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_364( _id, - _lib._sel_decodeTopLevelObjectOfClasses_forKey_error_1, - classes?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr, + _lib._sel_initWithContentsOfFile_usedEncoding_error_1, + path?._id ?? ffi.nullptr, + enc, error); - return NSObject._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } - NSArray decodeArrayOfObjectsOfClasses_forKey_(NSSet? classes, NSString? key) { - final _ret = _lib._objc_msgSend_293( - _id, - _lib._sel_decodeArrayOfObjectsOfClasses_forKey_1, - classes?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + static NSString stringWithContentsOfURL_usedEncoding_error_( + SentryCocoa _lib, + NSURL? url, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_363( + _lib._class_NSString1, + _lib._sel_stringWithContentsOfURL_usedEncoding_error_1, + url?._id ?? ffi.nullptr, + enc, + error); + return NSString._(_ret, _lib, retain: true, release: true); } - NSDictionary decodeDictionaryWithKeysOfClasses_objectsOfClasses_forKey_( - NSSet? keyClasses, NSSet? objectClasses, NSString? key) { - final _ret = _lib._objc_msgSend_294( - _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); + static NSString stringWithContentsOfFile_usedEncoding_error_( + SentryCocoa _lib, + NSString? path, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_364( + _lib._class_NSString1, + _lib._sel_stringWithContentsOfFile_usedEncoding_error_1, + path?._id ?? ffi.nullptr, + enc, + error); + return NSString._(_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); + static int + stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_( + SentryCocoa _lib, + NSData? data, + NSDictionary? opts, + ffi.Pointer> string, + ffi.Pointer usedLossyConversion) { + return _lib._objc_msgSend_365( + _lib._class_NSString1, + _lib._sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1, + data?._id ?? ffi.nullptr, + opts?._id ?? ffi.nullptr, + string, + usedLossyConversion); } - NSSet? get allowedClasses { - final _ret = _lib._objc_msgSend_295(_id, _lib._sel_allowedClasses1); - return _ret.address == 0 - ? null - : NSSet._(_ret, _lib, retain: true, release: true); + NSObject propertyList() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_propertyList1); + return NSObject._(_ret, _lib, retain: true, release: true); } - void failWithError_(NSError? error) { - _lib._objc_msgSend_296( - _id, _lib._sel_failWithError_1, error?._id ?? ffi.nullptr); + NSDictionary propertyListFromStringsFileFormat() { + final _ret = _lib._objc_msgSend_170( + _id, _lib._sel_propertyListFromStringsFileFormat1); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - int get decodingFailurePolicy { - return _lib._objc_msgSend_297(_id, _lib._sel_decodingFailurePolicy1); + ffi.Pointer cString() { + return _lib._objc_msgSend_13(_id, _lib._sel_cString1); } - NSError? get error { - final _ret = _lib._objc_msgSend_298(_id, _lib._sel_error1); - return _ret.address == 0 - ? null - : NSError._(_ret, _lib, retain: true, release: true); + ffi.Pointer lossyCString() { + return _lib._objc_msgSend_13(_id, _lib._sel_lossyCString1); } - void encodeNXObject_(NSObject object) { - _lib._objc_msgSend_15(_id, _lib._sel_encodeNXObject_1, object._id); + int cStringLength() { + return _lib._objc_msgSend_10(_id, _lib._sel_cStringLength1); } - NSObject decodeNXObject() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_decodeNXObject1); - return NSObject._(_ret, _lib, retain: true, release: true); + void getCString_(ffi.Pointer bytes) { + _lib._objc_msgSend_266(_id, _lib._sel_getCString_1, bytes); } - void decodeValueOfObjCType_at_( - ffi.Pointer type, ffi.Pointer data) { - _lib._objc_msgSend_18( - _id, _lib._sel_decodeValueOfObjCType_at_1, type, data); + void getCString_maxLength_(ffi.Pointer bytes, int maxLength) { + _lib._objc_msgSend_366( + _id, _lib._sel_getCString_maxLength_1, bytes, maxLength); } - void encodePoint_(CGPoint point) { - _lib._objc_msgSend_299(_id, _lib._sel_encodePoint_1, point); + void getCString_maxLength_range_remainingRange_(ffi.Pointer bytes, + int maxLength, _NSRange aRange, ffi.Pointer<_NSRange> leftoverRange) { + _lib._objc_msgSend_367( + _id, + _lib._sel_getCString_maxLength_range_remainingRange_1, + bytes, + maxLength, + aRange, + leftoverRange); } - void decodePoint(ffi.Pointer stret) { - _lib._objc_msgSend_54(stret, _id, _lib._sel_decodePoint1); + bool writeToFile_atomically_(NSString? path, bool useAuxiliaryFile) { + return _lib._objc_msgSend_25(_id, _lib._sel_writeToFile_atomically_1, + path?._id ?? ffi.nullptr, useAuxiliaryFile); } - void encodeSize_(CGSize size) { - _lib._objc_msgSend_300(_id, _lib._sel_encodeSize_1, size); + bool writeToURL_atomically_(NSURL? url, bool atomically) { + return _lib._objc_msgSend_125(_id, _lib._sel_writeToURL_atomically_1, + url?._id ?? ffi.nullptr, atomically); } - void decodeSize(ffi.Pointer stret) { - _lib._objc_msgSend_55(stret, _id, _lib._sel_decodeSize1); + 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); } - void encodeRect_(CGRect rect) { - _lib._objc_msgSend_301(_id, _lib._sel_encodeRect_1, rect); + NSObject initWithContentsOfURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_241( + _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - void decodeRect(ffi.Pointer stret) { - _lib._objc_msgSend_56(stret, _id, _lib._sel_decodeRect1); + static NSObject stringWithContentsOfFile_(SentryCocoa _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); } - void encodePoint_forKey_(CGPoint point, NSString? key) { - _lib._objc_msgSend_302( - _id, _lib._sel_encodePoint_forKey_1, point, key?._id ?? ffi.nullptr); + static NSObject stringWithContentsOfURL_(SentryCocoa _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_241(_lib._class_NSString1, + _lib._sel_stringWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - void encodeSize_forKey_(CGSize size, NSString? key) { - _lib._objc_msgSend_303( - _id, _lib._sel_encodeSize_forKey_1, size, key?._id ?? ffi.nullptr); + NSObject initWithCStringNoCopy_length_freeWhenDone_( + ffi.Pointer bytes, int length, bool freeBuffer) { + final _ret = _lib._objc_msgSend_368( + _id, + _lib._sel_initWithCStringNoCopy_length_freeWhenDone_1, + bytes, + length, + freeBuffer); + return NSObject._(_ret, _lib, retain: false, release: true); } - void encodeRect_forKey_(CGRect rect, NSString? key) { - _lib._objc_msgSend_304( - _id, _lib._sel_encodeRect_forKey_1, rect, key?._id ?? ffi.nullptr); + NSObject initWithCString_length_(ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_360( + _id, _lib._sel_initWithCString_length_1, bytes, length); + return NSObject._(_ret, _lib, retain: true, release: true); } - void decodePointForKey_(ffi.Pointer stret, NSString? key) { - _lib._objc_msgSend_305( - stret, _id, _lib._sel_decodePointForKey_1, key?._id ?? ffi.nullptr); + NSObject initWithCString_(ffi.Pointer bytes) { + final _ret = + _lib._objc_msgSend_349(_id, _lib._sel_initWithCString_1, bytes); + return NSObject._(_ret, _lib, retain: true, release: true); } - void decodeSizeForKey_(ffi.Pointer stret, NSString? key) { - _lib._objc_msgSend_306( - stret, _id, _lib._sel_decodeSizeForKey_1, key?._id ?? ffi.nullptr); + static NSObject stringWithCString_length_( + SentryCocoa _lib, ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_360(_lib._class_NSString1, + _lib._sel_stringWithCString_length_1, bytes, length); + return NSObject._(_ret, _lib, retain: true, release: true); } - void decodeRectForKey_(ffi.Pointer stret, NSString? key) { - _lib._objc_msgSend_307( - stret, _id, _lib._sel_decodeRectForKey_1, key?._id ?? ffi.nullptr); + static NSObject stringWithCString_( + SentryCocoa _lib, ffi.Pointer bytes) { + final _ret = _lib._objc_msgSend_349( + _lib._class_NSString1, _lib._sel_stringWithCString_1, bytes); + return NSObject._(_ret, _lib, retain: true, release: true); } - @override - NSCoder init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSCoder._(_ret, _lib, retain: true, release: true); + void getCharacters_(ffi.Pointer buffer) { + _lib._objc_msgSend_369(_id, _lib._sel_getCharacters_1, buffer); } - static NSCoder new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSCoder1, _lib._sel_new1); - return NSCoder._(_ret, _lib, retain: false, release: true); + NSString variantFittingPresentationWidth_(int width) { + final _ret = _lib._objc_msgSend_370( + _id, _lib._sel_variantFittingPresentationWidth_1, width); + return NSString._(_ret, _lib, retain: true, release: true); } - static NSCoder allocWithZone_(SentryCocoa _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 NSString pathWithComponents_(SentryCocoa _lib, NSArray? components) { + final _ret = _lib._objc_msgSend_371(_lib._class_NSString1, + _lib._sel_pathWithComponents_1, components?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - static NSCoder alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSCoder1, _lib._sel_alloc1); - return NSCoder._(_ret, _lib, retain: false, release: true); + NSArray? get pathComponents { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_pathComponents1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSCoder1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + bool get absolutePath { + return _lib._objc_msgSend_12(_id, _lib._sel_isAbsolutePath1); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSCoder1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + 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); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSCoder1, _lib._sel_accessInstanceVariablesDirectly1); + NSString? get stringByDeletingLastPathComponent { + final _ret = _lib._objc_msgSend_20( + _id, _lib._sel_stringByDeletingLastPathComponent1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSCoder1, _lib._sel_useStoredAccessor1); + NSString stringByAppendingPathComponent_(NSString? str) { + final _ret = _lib._objc_msgSend_64(_id, + _lib._sel_stringByAppendingPathComponent_1, str?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSCoder1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_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); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSCoder1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSCoder1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSCoder1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSCoder1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSData extends NSObject { - NSData._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSData] that points to the same underlying object as [other]. - static NSData castFrom(T other) { - return NSData._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSData] that wraps the given raw object pointer. - static NSData castFromPointer(SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSData._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSData]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSData1); - } - - int get length { - return _lib._objc_msgSend_10(_id, _lib._sel_length1); - } - - ffi.Pointer get bytes { - return _lib._objc_msgSend_19(_id, _lib._sel_bytes1); - } - - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); + 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); } - void getBytes_length_(ffi.Pointer buffer, int length) { - _lib._objc_msgSend_21(_id, _lib._sel_getBytes_length_1, buffer, length); - } - - void getBytes_range_(ffi.Pointer buffer, _NSRange range) { - _lib._objc_msgSend_22(_id, _lib._sel_getBytes_range_1, buffer, range); + NSString stringByAppendingPathExtension_(NSString? str) { + final _ret = _lib._objc_msgSend_64(_id, + _lib._sel_stringByAppendingPathExtension_1, str?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - bool isEqualToData_(NSData? other) { - return _lib._objc_msgSend_23( - _id, _lib._sel_isEqualToData_1, other?._id ?? ffi.nullptr); + NSString? get stringByAbbreviatingWithTildeInPath { + final _ret = _lib._objc_msgSend_20( + _id, _lib._sel_stringByAbbreviatingWithTildeInPath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSData subdataWithRange_(_NSRange range) { + NSString? get stringByExpandingTildeInPath { final _ret = - _lib._objc_msgSend_24(_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 writeToURL_atomically_(NSURL? url, bool atomically) { - return _lib._objc_msgSend_125(_id, _lib._sel_writeToURL_atomically_1, - url?._id ?? ffi.nullptr, atomically); - } - - bool writeToFile_options_error_(NSString? path, int writeOptionsMask, - ffi.Pointer> errorPtr) { - return _lib._objc_msgSend_248(_id, _lib._sel_writeToFile_options_error_1, - path?._id ?? ffi.nullptr, writeOptionsMask, errorPtr); - } - - bool writeToURL_options_error_(NSURL? url, int writeOptionsMask, - ffi.Pointer> errorPtr) { - return _lib._objc_msgSend_249(_id, _lib._sel_writeToURL_options_error_1, - url?._id ?? ffi.nullptr, writeOptionsMask, errorPtr); - } - - void rangeOfData_options_range_(ffi.Pointer<_NSRange> stret, - NSData? dataToFind, int mask, _NSRange searchRange) { - _lib._objc_msgSend_250(stret, _id, _lib._sel_rangeOfData_options_range_1, - dataToFind?._id ?? ffi.nullptr, mask, searchRange); - } - - void enumerateByteRangesUsingBlock_( - ObjCBlock_ffiVoid_ffiVoid_NSRange_bool block) { - _lib._objc_msgSend_251( - _id, _lib._sel_enumerateByteRangesUsingBlock_1, block._id); - } - - static NSData data(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSData1, _lib._sel_data1); - return NSData._(_ret, _lib, retain: true, release: true); - } - - static NSData dataWithBytes_length_( - SentryCocoa _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_252( - _lib._class_NSData1, _lib._sel_dataWithBytes_length_1, bytes, length); - return NSData._(_ret, _lib, retain: true, release: true); - } - - static NSData dataWithBytesNoCopy_length_( - SentryCocoa _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_252(_lib._class_NSData1, - _lib._sel_dataWithBytesNoCopy_length_1, bytes, length); - return NSData._(_ret, _lib, retain: false, release: true); - } - - static NSData dataWithBytesNoCopy_length_freeWhenDone_( - SentryCocoa _lib, ffi.Pointer bytes, int length, bool b) { - final _ret = _lib._objc_msgSend_253(_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_( - SentryCocoa _lib, - NSString? path, - int readOptionsMask, - ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_254( - _lib._class_NSData1, - _lib._sel_dataWithContentsOfFile_options_error_1, - path?._id ?? ffi.nullptr, - readOptionsMask, - errorPtr); - return NSData._(_ret, _lib, retain: true, release: true); - } - - static NSData dataWithContentsOfURL_options_error_( - SentryCocoa _lib, - NSURL? url, - int readOptionsMask, - ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_255( - _lib._class_NSData1, - _lib._sel_dataWithContentsOfURL_options_error_1, - url?._id ?? ffi.nullptr, - readOptionsMask, - errorPtr); - return NSData._(_ret, _lib, retain: true, release: true); - } - - static NSData dataWithContentsOfFile_(SentryCocoa _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 dataWithContentsOfURL_(SentryCocoa _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_241(_lib._class_NSData1, - _lib._sel_dataWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); - } - - NSData initWithBytes_length_(ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_252( - _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_252( - _id, _lib._sel_initWithBytesNoCopy_length_1, bytes, length); - return NSData._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_20(_id, _lib._sel_stringByExpandingTildeInPath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSData initWithBytesNoCopy_length_freeWhenDone_( - ffi.Pointer bytes, int length, bool b) { - final _ret = _lib._objc_msgSend_253(_id, - _lib._sel_initWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); - return NSData._(_ret, _lib, retain: false, release: true); + 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); } - NSData initWithBytesNoCopy_length_deallocator_(ffi.Pointer bytes, - int length, ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong deallocator) { - final _ret = _lib._objc_msgSend_256( - _id, - _lib._sel_initWithBytesNoCopy_length_deallocator_1, - bytes, - length, - deallocator._id); - return NSData._(_ret, _lib, retain: false, release: true); + 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); } - NSData initWithContentsOfFile_options_error_(NSString? path, - int readOptionsMask, ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_254( - _id, - _lib._sel_initWithContentsOfFile_options_error_1, - path?._id ?? ffi.nullptr, - readOptionsMask, - errorPtr); - return NSData._(_ret, _lib, retain: true, release: true); + NSArray stringsByAppendingPaths_(NSArray? paths) { + final _ret = _lib._objc_msgSend_63( + _id, _lib._sel_stringsByAppendingPaths_1, paths?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSData initWithContentsOfURL_options_error_(NSURL? url, int readOptionsMask, - ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_255( + int completePathIntoString_caseSensitive_matchesIntoArray_filterTypes_( + ffi.Pointer> outputName, + bool flag, + ffi.Pointer> outputArray, + NSArray? filterTypes) { + return _lib._objc_msgSend_372( _id, - _lib._sel_initWithContentsOfURL_options_error_1, - url?._id ?? ffi.nullptr, - readOptionsMask, - errorPtr); - return 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 initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_241( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); + _lib._sel_completePathIntoString_caseSensitive_matchesIntoArray_filterTypes_1, + outputName, + flag, + outputArray, + filterTypes?._id ?? ffi.nullptr); } - NSData initWithData_(NSData? data) { - final _ret = _lib._objc_msgSend_257( - _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); + ffi.Pointer get fileSystemRepresentation { + return _lib._objc_msgSend_13(_id, _lib._sel_fileSystemRepresentation1); } - static NSData dataWithData_(SentryCocoa _lib, NSData? data) { - final _ret = _lib._objc_msgSend_257(_lib._class_NSData1, - _lib._sel_dataWithData_1, data?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); + bool getFileSystemRepresentation_maxLength_( + ffi.Pointer cname, int max) { + return _lib._objc_msgSend_224( + _id, _lib._sel_getFileSystemRepresentation_maxLength_1, cname, max); } - NSData initWithBase64EncodedString_options_( - NSString? base64String, int options) { - final _ret = _lib._objc_msgSend_258( + NSString stringByAddingPercentEncodingWithAllowedCharacters_( + NSCharacterSet? allowedCharacters) { + final _ret = _lib._objc_msgSend_337( _id, - _lib._sel_initWithBase64EncodedString_options_1, - base64String?._id ?? ffi.nullptr, - options); - return NSData._(_ret, _lib, retain: true, release: true); - } - - NSString base64EncodedStringWithOptions_(int options) { - final _ret = _lib._objc_msgSend_259( - _id, _lib._sel_base64EncodedStringWithOptions_1, options); + _lib._sel_stringByAddingPercentEncodingWithAllowedCharacters_1, + allowedCharacters?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } - NSData initWithBase64EncodedData_options_(NSData? base64Data, int options) { - final _ret = _lib._objc_msgSend_260( - _id, - _lib._sel_initWithBase64EncodedData_options_1, - base64Data?._id ?? ffi.nullptr, - options); - return NSData._(_ret, _lib, retain: true, release: true); - } - - NSData base64EncodedDataWithOptions_(int options) { - final _ret = _lib._objc_msgSend_261( - _id, _lib._sel_base64EncodedDataWithOptions_1, options); - return NSData._(_ret, _lib, retain: true, release: true); - } - - NSData decompressedDataUsingAlgorithm_error_( - int algorithm, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_262(_id, - _lib._sel_decompressedDataUsingAlgorithm_error_1, algorithm, error); - return NSData._(_ret, _lib, retain: true, release: true); - } - - NSData compressedDataUsingAlgorithm_error_( - int algorithm, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_262( - _id, _lib._sel_compressedDataUsingAlgorithm_error_1, algorithm, error); - return NSData._(_ret, _lib, retain: true, release: true); - } - - void getBytes_(ffi.Pointer buffer) { - _lib._objc_msgSend_47(_id, _lib._sel_getBytes_1, buffer); - } - - static NSObject dataWithContentsOfMappedFile_( - SentryCocoa _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); + NSString? get stringByRemovingPercentEncoding { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_stringByRemovingPercentEncoding1); + return _ret.address == 0 + ? null + : NSString._(_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); + NSString stringByAddingPercentEscapesUsingEncoding_(int enc) { + final _ret = _lib._objc_msgSend_310( + _id, _lib._sel_stringByAddingPercentEscapesUsingEncoding_1, enc); + return NSString._(_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); + NSString stringByReplacingPercentEscapesUsingEncoding_(int enc) { + final _ret = _lib._objc_msgSend_310( + _id, _lib._sel_stringByReplacingPercentEscapesUsingEncoding_1, enc); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString base64Encoding() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_base64Encoding1); - return NSString._(_ret, _lib, retain: true, release: true); + NSArray linguisticTagsInRange_scheme_options_orthography_tokenRanges_( + _NSRange range, + NSString scheme, + int options, + NSOrthography? orthography, + ffi.Pointer> tokenRanges) { + final _ret = _lib._objc_msgSend_374( + _id, + _lib._sel_linguisticTagsInRange_scheme_options_orthography_tokenRanges_1, + range, + scheme._id, + options, + orthography?._id ?? ffi.nullptr, + tokenRanges); + return NSArray._(_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); + void enumerateLinguisticTagsInRange_scheme_options_orthography_usingBlock_( + _NSRange range, + NSString scheme, + int options, + NSOrthography? orthography, + ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool block) { + _lib._objc_msgSend_375( + _id, + _lib._sel_enumerateLinguisticTagsInRange_scheme_options_orthography_usingBlock_1, + range, + scheme._id, + options, + orthography?._id ?? ffi.nullptr, + block._id); } - static NSData new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSData1, _lib._sel_new1); - return NSData._(_ret, _lib, retain: false, release: true); + static NSString new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSString1, _lib._sel_new1); + return NSString._(_ret, _lib, retain: false, release: true); } - static NSData allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static NSString allocWithZone_(SentryCocoa _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); + _lib._class_NSString1, _lib._sel_allocWithZone_1, zone); + return NSString._(_ret, _lib, retain: false, release: true); } - static NSData alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSData1, _lib._sel_alloc1); - return NSData._(_ret, _lib, retain: false, release: true); + static NSString alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSString1, _lib._sel_alloc1); + return NSString._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -34480,7 +35629,7 @@ class NSData extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSData1, + _lib._class_NSString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -34489,24 +35638,24 @@ class NSData extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSData1, + _lib._objc_msgSend_15(_lib._class_NSString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSData1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSString1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSData1, _lib._sel_useStoredAccessor1); + _lib._class_NSString1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSData1, + _lib._class_NSString1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -34515,7 +35664,7 @@ class NSData extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSData1, + _lib._class_NSString1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -34523,7 +35672,7 @@ class NSData extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSData1, + _lib._class_NSString1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -34531,730 +35680,491 @@ class NSData extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSData1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSString1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSData1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSString1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -final class _NSRange extends ffi.Struct { - @ffi.UnsignedLong() - external int location; - - @ffi.UnsignedLong() - external int length; +extension StringToNSString on String { + NSString toNSString(SentryCocoa lib) => NSString(lib, this); } -class NSURL extends NSObject { - NSURL._(ffi.Pointer id, SentryCocoa lib, +class NSCoder extends NSObject { + NSCoder._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSURL] that points to the same underlying object as [other]. - static NSURL castFrom(T other) { - return NSURL._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSCoder] that points to the same underlying object as [other]. + static NSCoder castFrom(T other) { + return NSCoder._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSURL] that wraps the given raw object pointer. - static NSURL castFromPointer(SentryCocoa lib, ffi.Pointer other, + /// Returns a [NSCoder] that wraps the given raw object pointer. + static NSCoder castFromPointer(SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURL._(other, lib, retain: retain, release: release); + return NSCoder._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURL]. + /// Returns whether [obj] is an instance of [NSCoder]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURL1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSCoder1); } - NSURL initWithScheme_host_path_( - NSString? scheme, NSString? host, NSString? path) { - final _ret = _lib._objc_msgSend_26( - _id, - _lib._sel_initWithScheme_host_path_1, - scheme?._id ?? ffi.nullptr, - host?._id ?? ffi.nullptr, - path?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + void encodeValueOfObjCType_at_( + ffi.Pointer type, ffi.Pointer addr) { + _lib._objc_msgSend_18( + _id, _lib._sel_encodeValueOfObjCType_at_1, type, addr); } - NSURL initFileURLWithPath_isDirectory_relativeToURL_( - NSString? path, bool isDir, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_27( - _id, - _lib._sel_initFileURLWithPath_isDirectory_relativeToURL_1, - path?._id ?? ffi.nullptr, - isDir, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + void encodeDataObject_(NSData? data) { + _lib._objc_msgSend_263( + _id, _lib._sel_encodeDataObject_1, data?._id ?? ffi.nullptr); } - NSURL initFileURLWithPath_relativeToURL_(NSString? path, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_28( - _id, - _lib._sel_initFileURLWithPath_relativeToURL_1, - path?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + NSData decodeDataObject() { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_decodeDataObject1); + return NSData._(_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); - return NSURL._(_ret, _lib, retain: true, release: true); + void decodeValueOfObjCType_at_size_( + ffi.Pointer type, ffi.Pointer data, int size) { + _lib._objc_msgSend_264( + _id, _lib._sel_decodeValueOfObjCType_at_size_1, type, data, size); } - NSURL initFileURLWithPath_(NSString? path) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initFileURLWithPath_1, path?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + int versionForClassName_(NSString? className) { + return _lib._objc_msgSend_265( + _id, _lib._sel_versionForClassName_1, className?._id ?? ffi.nullptr); } - static NSURL fileURLWithPath_isDirectory_relativeToURL_( - SentryCocoa _lib, NSString? path, bool isDir, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_31( - _lib._class_NSURL1, - _lib._sel_fileURLWithPath_isDirectory_relativeToURL_1, - path?._id ?? ffi.nullptr, - isDir, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + void encodeObject_(NSObject object) { + _lib._objc_msgSend_15(_id, _lib._sel_encodeObject_1, object._id); } - static NSURL fileURLWithPath_relativeToURL_( - SentryCocoa _lib, NSString? path, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_32( - _lib._class_NSURL1, - _lib._sel_fileURLWithPath_relativeToURL_1, - path?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + void encodeRootObject_(NSObject rootObject) { + _lib._objc_msgSend_15(_id, _lib._sel_encodeRootObject_1, rootObject._id); } - static NSURL fileURLWithPath_isDirectory_( - SentryCocoa _lib, NSString? path, bool isDir) { - final _ret = _lib._objc_msgSend_33( - _lib._class_NSURL1, - _lib._sel_fileURLWithPath_isDirectory_1, - path?._id ?? ffi.nullptr, - isDir); - return NSURL._(_ret, _lib, retain: true, release: true); + void encodeBycopyObject_(NSObject anObject) { + _lib._objc_msgSend_15(_id, _lib._sel_encodeBycopyObject_1, anObject._id); } - static NSURL fileURLWithPath_(SentryCocoa _lib, NSString? path) { - final _ret = _lib._objc_msgSend_34(_lib._class_NSURL1, - _lib._sel_fileURLWithPath_1, path?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + void encodeByrefObject_(NSObject anObject) { + _lib._objc_msgSend_15(_id, _lib._sel_encodeByrefObject_1, anObject._id); } - NSURL initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_( - ffi.Pointer path, bool isDir, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_35( - _id, - _lib._sel_initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_1, - path, - isDir, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + void encodeConditionalObject_(NSObject object) { + _lib._objc_msgSend_15(_id, _lib._sel_encodeConditionalObject_1, object._id); } - static NSURL fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_( - SentryCocoa _lib, - ffi.Pointer path, - bool isDir, - NSURL? baseURL) { - final _ret = _lib._objc_msgSend_36( - _lib._class_NSURL1, - _lib._sel_fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_1, - path, - isDir, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + void encodeValuesOfObjCTypes_(ffi.Pointer types) { + _lib._objc_msgSend_266(_id, _lib._sel_encodeValuesOfObjCTypes_1, types); } - 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); + void encodeArrayOfObjCType_count_at_( + ffi.Pointer type, int count, ffi.Pointer array) { + _lib._objc_msgSend_267( + _id, _lib._sel_encodeArrayOfObjCType_count_at_1, type, count, array); } - NSURL initWithString_relativeToURL_(NSString? URLString, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_28( - _id, - _lib._sel_initWithString_relativeToURL_1, - URLString?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + void encodeBytes_length_(ffi.Pointer byteaddr, int length) { + _lib._objc_msgSend_21( + _id, _lib._sel_encodeBytes_length_1, byteaddr, length); } - static NSURL URLWithString_(SentryCocoa _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); + NSObject decodeObject() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_decodeObject1); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSURL URLWithString_relativeToURL_( - SentryCocoa _lib, NSString? URLString, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_28( - _lib._class_NSURL1, - _lib._sel_URLWithString_relativeToURL_1, - URLString?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + NSObject decodeTopLevelObjectAndReturnError_( + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_268( + _id, _lib._sel_decodeTopLevelObjectAndReturnError_1, error); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSURL initWithString_encodingInvalidCharacters_( - NSString? URLString, bool encodingInvalidCharacters) { - final _ret = _lib._objc_msgSend_29( - _id, - _lib._sel_initWithString_encodingInvalidCharacters_1, - URLString?._id ?? ffi.nullptr, - encodingInvalidCharacters); - return NSURL._(_ret, _lib, retain: true, release: true); + void decodeValuesOfObjCTypes_(ffi.Pointer types) { + _lib._objc_msgSend_266(_id, _lib._sel_decodeValuesOfObjCTypes_1, types); } - static NSURL URLWithString_encodingInvalidCharacters_( - SentryCocoa _lib, NSString? URLString, bool encodingInvalidCharacters) { - final _ret = _lib._objc_msgSend_29( - _lib._class_NSURL1, - _lib._sel_URLWithString_encodingInvalidCharacters_1, - URLString?._id ?? ffi.nullptr, - encodingInvalidCharacters); - return NSURL._(_ret, _lib, retain: true, release: true); + void decodeArrayOfObjCType_count_at_( + ffi.Pointer itemType, int count, ffi.Pointer array) { + _lib._objc_msgSend_267(_id, _lib._sel_decodeArrayOfObjCType_count_at_1, + itemType, count, array); } - NSURL initWithDataRepresentation_relativeToURL_( - NSData? data, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_37( - _id, - _lib._sel_initWithDataRepresentation_relativeToURL_1, - data?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + ffi.Pointer decodeBytesWithReturnedLength_( + ffi.Pointer lengthp) { + return _lib._objc_msgSend_269( + _id, _lib._sel_decodeBytesWithReturnedLength_1, lengthp); } - static NSURL URLWithDataRepresentation_relativeToURL_( - SentryCocoa _lib, NSData? data, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_38( - _lib._class_NSURL1, - _lib._sel_URLWithDataRepresentation_relativeToURL_1, - data?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + void encodePropertyList_(NSObject aPropertyList) { + _lib._objc_msgSend_15( + _id, _lib._sel_encodePropertyList_1, aPropertyList._id); } - NSURL initAbsoluteURLWithDataRepresentation_relativeToURL_( - NSData? data, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_37( - _id, - _lib._sel_initAbsoluteURLWithDataRepresentation_relativeToURL_1, - data?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + NSObject decodePropertyList() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_decodePropertyList1); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSURL absoluteURLWithDataRepresentation_relativeToURL_( - SentryCocoa _lib, NSData? data, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_38( - _lib._class_NSURL1, - _lib._sel_absoluteURLWithDataRepresentation_relativeToURL_1, - data?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + void setObjectZone_(ffi.Pointer<_NSZone> zone) { + _lib._objc_msgSend_270(_id, _lib._sel_setObjectZone_1, zone); } - 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); + ffi.Pointer<_NSZone> objectZone() { + return _lib._objc_msgSend_271(_id, _lib._sel_objectZone1); } - NSString? get absoluteString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_absoluteString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + int get systemVersion { + return _lib._objc_msgSend_197(_id, _lib._sel_systemVersion1); } - 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); + bool get allowsKeyedCoding { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsKeyedCoding1); } - NSURL? get baseURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_baseURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + void encodeObject_forKey_(NSObject object, NSString? key) { + _lib._objc_msgSend_126(_id, _lib._sel_encodeObject_forKey_1, object._id, + key?._id ?? ffi.nullptr); } - NSURL? get absoluteURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_absoluteURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + void encodeConditionalObject_forKey_(NSObject object, NSString? key) { + _lib._objc_msgSend_126(_id, _lib._sel_encodeConditionalObject_forKey_1, + object._id, key?._id ?? ffi.nullptr); } - NSString? get scheme { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_scheme1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + void encodeBool_forKey_(bool value, NSString? key) { + _lib._objc_msgSend_272( + _id, _lib._sel_encodeBool_forKey_1, value, key?._id ?? ffi.nullptr); } - NSString? get resourceSpecifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_resourceSpecifier1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + void encodeInt_forKey_(int value, NSString? key) { + _lib._objc_msgSend_273( + _id, _lib._sel_encodeInt_forKey_1, value, key?._id ?? ffi.nullptr); } - 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); + void encodeInt32_forKey_(int value, NSString? key) { + _lib._objc_msgSend_274( + _id, _lib._sel_encodeInt32_forKey_1, value, key?._id ?? ffi.nullptr); } - NSNumber? get port { - final _ret = _lib._objc_msgSend_198(_id, _lib._sel_port1); - return _ret.address == 0 - ? null - : NSNumber._(_ret, _lib, retain: true, release: true); + void encodeInt64_forKey_(int value, NSString? key) { + _lib._objc_msgSend_275( + _id, _lib._sel_encodeInt64_forKey_1, value, key?._id ?? ffi.nullptr); } - 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); + void encodeFloat_forKey_(double value, NSString? key) { + _lib._objc_msgSend_276( + _id, _lib._sel_encodeFloat_forKey_1, value, key?._id ?? ffi.nullptr); } - 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); + void encodeDouble_forKey_(double value, NSString? key) { + _lib._objc_msgSend_277( + _id, _lib._sel_encodeDouble_forKey_1, value, key?._id ?? ffi.nullptr); } - NSString? get path { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_path1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + void encodeBytes_length_forKey_( + ffi.Pointer bytes, int length, NSString? key) { + _lib._objc_msgSend_278(_id, _lib._sel_encodeBytes_length_forKey_1, bytes, + length, key?._id ?? ffi.nullptr); } - NSString? get fragment { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fragment1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + bool containsValueForKey_(NSString? key) { + return _lib._objc_msgSend_59( + _id, _lib._sel_containsValueForKey_1, key?._id ?? ffi.nullptr); } - NSString? get parameterString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_parameterString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + 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); } - NSString? get query { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_query1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSObject decodeTopLevelObjectForKey_error_( + NSString? key, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_279( + _id, + _lib._sel_decodeTopLevelObjectForKey_error_1, + key?._id ?? ffi.nullptr, + error); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSString? get relativePath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_relativePath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + bool decodeBoolForKey_(NSString? key) { + return _lib._objc_msgSend_59( + _id, _lib._sel_decodeBoolForKey_1, key?._id ?? ffi.nullptr); } - bool get hasDirectoryPath { - return _lib._objc_msgSend_12(_id, _lib._sel_hasDirectoryPath1); + int decodeIntForKey_(NSString? key) { + return _lib._objc_msgSend_280( + _id, _lib._sel_decodeIntForKey_1, key?._id ?? ffi.nullptr); } - bool getFileSystemRepresentation_maxLength_( - ffi.Pointer buffer, int maxBufferLength) { - return _lib._objc_msgSend_224( - _id, - _lib._sel_getFileSystemRepresentation_maxLength_1, - buffer, - maxBufferLength); + int decodeInt32ForKey_(NSString? key) { + return _lib._objc_msgSend_281( + _id, _lib._sel_decodeInt32ForKey_1, key?._id ?? ffi.nullptr); } - ffi.Pointer get fileSystemRepresentation { - return _lib._objc_msgSend_13(_id, _lib._sel_fileSystemRepresentation1); + int decodeInt64ForKey_(NSString? key) { + return _lib._objc_msgSend_282( + _id, _lib._sel_decodeInt64ForKey_1, key?._id ?? ffi.nullptr); } - bool get fileURL { - return _lib._objc_msgSend_12(_id, _lib._sel_isFileURL1); + double decodeFloatForKey_(NSString? key) { + return _lib._objc_msgSend_283( + _id, _lib._sel_decodeFloatForKey_1, key?._id ?? ffi.nullptr); } - NSURL? get standardizedURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_standardizedURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + double decodeDoubleForKey_(NSString? key) { + return _lib._objc_msgSend_284( + _id, _lib._sel_decodeDoubleForKey_1, key?._id ?? ffi.nullptr); } - bool isFileReferenceURL() { - return _lib._objc_msgSend_12(_id, _lib._sel_isFileReferenceURL1); + ffi.Pointer decodeBytesForKey_returnedLength_( + NSString? key, ffi.Pointer lengthp) { + return _lib._objc_msgSend_285( + _id, + _lib._sel_decodeBytesForKey_returnedLength_1, + key?._id ?? ffi.nullptr, + lengthp); } - NSURL fileReferenceURL() { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_fileReferenceURL1); - return NSURL._(_ret, _lib, retain: true, release: true); + ffi.Pointer decodeBytesWithMinimumLength_(int length) { + return _lib._objc_msgSend_286( + _id, _lib._sel_decodeBytesWithMinimumLength_1, length); } - NSURL? get filePathURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_filePathURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + ffi.Pointer decodeBytesForKey_minimumLength_( + NSString? key, int length) { + return _lib._objc_msgSend_287( + _id, + _lib._sel_decodeBytesForKey_minimumLength_1, + key?._id ?? ffi.nullptr, + length); } - bool getResourceValue_forKey_error_( - ffi.Pointer> value, - NSString key, - ffi.Pointer> error) { - return _lib._objc_msgSend_225( - _id, _lib._sel_getResourceValue_forKey_error_1, value, key._id, error); + void encodeInteger_forKey_(int value, NSString? key) { + _lib._objc_msgSend_288( + _id, _lib._sel_encodeInteger_forKey_1, value, key?._id ?? ffi.nullptr); } - NSObject resourceValuesForKeys_error_( - NSArray? keys, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_226( - _id, - _lib._sel_resourceValuesForKeys_error_1, - keys?._id ?? ffi.nullptr, - error); - return NSObject._(_ret, _lib, retain: true, release: true); + int decodeIntegerForKey_(NSString? key) { + return _lib._objc_msgSend_265( + _id, _lib._sel_decodeIntegerForKey_1, key?._id ?? ffi.nullptr); } - bool setResourceValue_forKey_error_(NSObject value, NSString key, - ffi.Pointer> error) { - return _lib._objc_msgSend_227(_id, - _lib._sel_setResourceValue_forKey_error_1, value._id, key._id, error); + bool get requiresSecureCoding { + return _lib._objc_msgSend_12(_id, _lib._sel_requiresSecureCoding1); } - bool setResourceValues_error_( - NSObject? keyedValues, ffi.Pointer> error) { - return _lib._objc_msgSend_228(_id, _lib._sel_setResourceValues_error_1, - keyedValues?._id ?? ffi.nullptr, error); + NSObject decodeObjectOfClass_forKey_(NSObject aClass, NSString? key) { + final _ret = _lib._objc_msgSend_289( + _id, + _lib._sel_decodeObjectOfClass_forKey_1, + aClass._id, + key?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - void removeCachedResourceValueForKey_(NSString key) { - _lib._objc_msgSend_192( - _id, _lib._sel_removeCachedResourceValueForKey_1, key._id); + NSObject decodeTopLevelObjectOfClass_forKey_error_(NSObject aClass, + NSString? key, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_290( + _id, + _lib._sel_decodeTopLevelObjectOfClass_forKey_error_1, + aClass._id, + key?._id ?? ffi.nullptr, + error); + return NSObject._(_ret, _lib, retain: true, release: true); } - void removeAllCachedResourceValues() { - _lib._objc_msgSend_1(_id, _lib._sel_removeAllCachedResourceValues1); + NSArray decodeArrayOfObjectsOfClass_forKey_(NSObject cls, NSString? key) { + final _ret = _lib._objc_msgSend_291( + _id, + _lib._sel_decodeArrayOfObjectsOfClass_forKey_1, + cls._id, + key?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - void setTemporaryResourceValue_forKey_(NSObject value, NSString key) { - _lib._objc_msgSend_126( - _id, _lib._sel_setTemporaryResourceValue_forKey_1, value._id, key._id); + NSDictionary decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_( + NSObject keyCls, NSObject objectCls, NSString? key) { + final _ret = _lib._objc_msgSend_292( + _id, + _lib._sel_decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_1, + keyCls._id, + objectCls._id, + key?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - NSData - bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_( - int options, - NSArray? keys, - NSURL? relativeURL, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_229( + NSObject decodeObjectOfClasses_forKey_(NSSet? classes, NSString? key) { + final _ret = _lib._objc_msgSend_293( _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); + _lib._sel_decodeObjectOfClasses_forKey_1, + classes?._id ?? ffi.nullptr, + key?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSURL - initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_( - NSData? bookmarkData, - int options, - NSURL? relativeURL, - ffi.Pointer isStale, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_230( + NSObject decodeTopLevelObjectOfClasses_forKey_error_(NSSet? classes, + NSString? key, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_294( _id, - _lib._sel_initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1, - bookmarkData?._id ?? ffi.nullptr, - options, - relativeURL?._id ?? ffi.nullptr, - isStale, + _lib._sel_decodeTopLevelObjectOfClasses_forKey_error_1, + classes?._id ?? ffi.nullptr, + key?._id ?? ffi.nullptr, error); - return NSURL._(_ret, _lib, retain: true, release: true); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSURL - URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_( - SentryCocoa _lib, - NSData? bookmarkData, - int options, - NSURL? relativeURL, - ffi.Pointer isStale, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_230( - _lib._class_NSURL1, - _lib._sel_URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1, - bookmarkData?._id ?? ffi.nullptr, - options, - relativeURL?._id ?? ffi.nullptr, - isStale, - error); - return NSURL._(_ret, _lib, retain: true, release: true); + NSArray decodeArrayOfObjectsOfClasses_forKey_(NSSet? classes, NSString? key) { + final _ret = _lib._objc_msgSend_295( + _id, + _lib._sel_decodeArrayOfObjectsOfClasses_forKey_1, + classes?._id ?? ffi.nullptr, + key?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSObject resourceValuesForKeys_fromBookmarkData_( - SentryCocoa _lib, NSArray? keys, NSData? bookmarkData) { - final _ret = _lib._objc_msgSend_231( - _lib._class_NSURL1, - _lib._sel_resourceValuesForKeys_fromBookmarkData_1, - keys?._id ?? ffi.nullptr, - bookmarkData?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSDictionary decodeDictionaryWithKeysOfClasses_objectsOfClasses_forKey_( + NSSet? keyClasses, NSSet? objectClasses, NSString? key) { + final _ret = _lib._objc_msgSend_296( + _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); } - static bool writeBookmarkData_toURL_options_error_( - SentryCocoa _lib, - NSData? bookmarkData, - NSURL? bookmarkFileURL, - int options, - ffi.Pointer> error) { - return _lib._objc_msgSend_232( - _lib._class_NSURL1, - _lib._sel_writeBookmarkData_toURL_options_error_1, - bookmarkData?._id ?? ffi.nullptr, - bookmarkFileURL?._id ?? ffi.nullptr, - options, - error); + 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); } - static NSData bookmarkDataWithContentsOfURL_error_(SentryCocoa _lib, - NSURL? bookmarkFileURL, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_233( - _lib._class_NSURL1, - _lib._sel_bookmarkDataWithContentsOfURL_error_1, - bookmarkFileURL?._id ?? ffi.nullptr, - error); - return NSData._(_ret, _lib, retain: true, release: true); - } - - static NSURL URLByResolvingAliasFileAtURL_options_error_(SentryCocoa _lib, - NSURL? url, int options, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_234( - _lib._class_NSURL1, - _lib._sel_URLByResolvingAliasFileAtURL_options_error_1, - url?._id ?? ffi.nullptr, - options, - error); - return 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_225( - _id, - _lib._sel_getPromisedItemResourceValue_forKey_error_1, - value, - key._id, - error); - } - - NSDictionary promisedItemResourceValuesForKeys_error_( - NSArray? keys, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_235( - _id, - _lib._sel_promisedItemResourceValuesForKeys_error_1, - keys?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - bool checkPromisedItemIsReachableAndReturnError_( - ffi.Pointer> error) { - return _lib._objc_msgSend_236( - _id, _lib._sel_checkPromisedItemIsReachableAndReturnError_1, error); + NSSet? get allowedClasses { + final _ret = _lib._objc_msgSend_297(_id, _lib._sel_allowedClasses1); + return _ret.address == 0 + ? null + : NSSet._(_ret, _lib, retain: true, release: true); } - static NSURL fileURLWithPathComponents_( - SentryCocoa _lib, NSArray? components) { - final _ret = _lib._objc_msgSend_237(_lib._class_NSURL1, - _lib._sel_fileURLWithPathComponents_1, components?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + void failWithError_(NSError? error) { + _lib._objc_msgSend_298( + _id, _lib._sel_failWithError_1, error?._id ?? ffi.nullptr); } - NSArray? get pathComponents { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_pathComponents1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + int get decodingFailurePolicy { + return _lib._objc_msgSend_299(_id, _lib._sel_decodingFailurePolicy1); } - NSString? get lastPathComponent { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_lastPathComponent1); + NSError? get error { + final _ret = _lib._objc_msgSend_300(_id, _lib._sel_error1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSError._(_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); + void encodeNXObject_(NSObject object) { + _lib._objc_msgSend_15(_id, _lib._sel_encodeNXObject_1, object._id); } - 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); + NSObject decodeNXObject() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_decodeNXObject1); + return NSObject._(_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); + void decodeValueOfObjCType_at_( + ffi.Pointer type, ffi.Pointer data) { + _lib._objc_msgSend_18( + _id, _lib._sel_decodeValueOfObjCType_at_1, type, data); } - NSURL? get URLByDeletingLastPathComponent { - final _ret = - _lib._objc_msgSend_40(_id, _lib._sel_URLByDeletingLastPathComponent1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + void encodePoint_(CGPoint point) { + _lib._objc_msgSend_301(_id, _lib._sel_encodePoint_1, point); } - 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); + void decodePoint(ffi.Pointer stret) { + _lib._objc_msgSend_54(stret, _id, _lib._sel_decodePoint1); } - 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); + void encodeSize_(CGSize size) { + _lib._objc_msgSend_302(_id, _lib._sel_encodeSize_1, size); } - bool checkResourceIsReachableAndReturnError_( - ffi.Pointer> error) { - return _lib._objc_msgSend_236( - _id, _lib._sel_checkResourceIsReachableAndReturnError_1, error); + void decodeSize(ffi.Pointer stret) { + _lib._objc_msgSend_55(stret, _id, _lib._sel_decodeSize1); } - 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); + void encodeRect_(CGRect rect) { + _lib._objc_msgSend_303(_id, _lib._sel_encodeRect_1, rect); } - 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); + void decodeRect(ffi.Pointer stret) { + _lib._objc_msgSend_56(stret, _id, _lib._sel_decodeRect1); } - NSData resourceDataUsingCache_(bool shouldUseCache) { - final _ret = _lib._objc_msgSend_238( - _id, _lib._sel_resourceDataUsingCache_1, shouldUseCache); - return NSData._(_ret, _lib, retain: true, release: true); + void encodePoint_forKey_(CGPoint point, NSString? key) { + _lib._objc_msgSend_304( + _id, _lib._sel_encodePoint_forKey_1, point, key?._id ?? ffi.nullptr); } - void loadResourceDataNotifyingClient_usingCache_( - NSObject client, bool shouldUseCache) { - _lib._objc_msgSend_239( - _id, - _lib._sel_loadResourceDataNotifyingClient_usingCache_1, - client._id, - shouldUseCache); + void encodeSize_forKey_(CGSize size, NSString? key) { + _lib._objc_msgSend_305( + _id, _lib._sel_encodeSize_forKey_1, size, key?._id ?? ffi.nullptr); } - 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); + void encodeRect_forKey_(CGRect rect, NSString? key) { + _lib._objc_msgSend_306( + _id, _lib._sel_encodeRect_forKey_1, rect, key?._id ?? ffi.nullptr); } - bool setResourceData_(NSData? data) { - return _lib._objc_msgSend_23( - _id, _lib._sel_setResourceData_1, data?._id ?? ffi.nullptr); + void decodePointForKey_(ffi.Pointer stret, NSString? key) { + _lib._objc_msgSend_307( + stret, _id, _lib._sel_decodePointForKey_1, key?._id ?? ffi.nullptr); } - bool setProperty_forKey_(NSObject property, NSString? propertyKey) { - return _lib._objc_msgSend_240(_id, _lib._sel_setProperty_forKey_1, - property._id, propertyKey?._id ?? ffi.nullptr); + void decodeSizeForKey_(ffi.Pointer stret, NSString? key) { + _lib._objc_msgSend_308( + stret, _id, _lib._sel_decodeSizeForKey_1, key?._id ?? ffi.nullptr); } - NSURLHandle URLHandleUsingCache_(bool shouldUseCache) { - final _ret = _lib._objc_msgSend_247( - _id, _lib._sel_URLHandleUsingCache_1, shouldUseCache); - return NSURLHandle._(_ret, _lib, retain: true, release: true); + void decodeRectForKey_(ffi.Pointer stret, NSString? key) { + _lib._objc_msgSend_309( + stret, _id, _lib._sel_decodeRectForKey_1, key?._id ?? ffi.nullptr); } @override - NSURL init() { + NSCoder init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURL._(_ret, _lib, retain: true, release: true); + return NSCoder._(_ret, _lib, retain: true, release: true); } - static NSURL new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURL1, _lib._sel_new1); - return NSURL._(_ret, _lib, retain: false, release: true); + static NSCoder new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSCoder1, _lib._sel_new1); + return NSCoder._(_ret, _lib, retain: false, release: true); } - static NSURL allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static NSCoder allocWithZone_(SentryCocoa _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); + _lib._class_NSCoder1, _lib._sel_allocWithZone_1, zone); + return NSCoder._(_ret, _lib, retain: false, release: true); } - static NSURL alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURL1, _lib._sel_alloc1); - return NSURL._(_ret, _lib, retain: false, release: true); + static NSCoder alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSCoder1, _lib._sel_alloc1); + return NSCoder._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -35263,7 +36173,7 @@ class NSURL extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSURL1, + _lib._class_NSCoder1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -35272,24 +36182,24 @@ class NSURL extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURL1, + _lib._objc_msgSend_15(_lib._class_NSCoder1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURL1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSCoder1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURL1, _lib._sel_useStoredAccessor1); + _lib._class_NSCoder1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURL1, + _lib._class_NSCoder1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -35298,7 +36208,7 @@ class NSURL extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURL1, + _lib._class_NSCoder1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -35306,7 +36216,7 @@ class NSURL extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSURL1, + _lib._class_NSCoder1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -35314,389 +36224,342 @@ class NSURL extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSURL1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSCoder1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSURL1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSCoder1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSNumber extends NSValue { - NSNumber._(ffi.Pointer id, SentryCocoa lib, +class NSData extends NSObject { + NSData._(ffi.Pointer id, SentryCocoa 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 [NSData] that points to the same underlying object as [other]. + static NSData castFrom(T other) { + return NSData._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSNumber] that wraps the given raw object pointer. - static NSNumber castFromPointer( - SentryCocoa lib, ffi.Pointer other, + /// Returns a [NSData] that wraps the given raw object pointer. + static NSData castFromPointer(SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSNumber._(other, lib, retain: retain, release: release); + return NSData._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSNumber]. + /// Returns whether [obj] is an instance of [NSData]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSNumber1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSData1); } - @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); + int get length { + return _lib._objc_msgSend_10(_id, _lib._sel_length1); } - NSNumber initWithChar_(int value) { - final _ret = _lib._objc_msgSend_202(_id, _lib._sel_initWithChar_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + ffi.Pointer get bytes { + return _lib._objc_msgSend_19(_id, _lib._sel_bytes1); } - NSNumber initWithUnsignedChar_(int value) { - final _ret = - _lib._objc_msgSend_203(_id, _lib._sel_initWithUnsignedChar_1, value); - return NSNumber._(_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); } - NSNumber initWithShort_(int value) { - final _ret = _lib._objc_msgSend_204(_id, _lib._sel_initWithShort_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + void getBytes_length_(ffi.Pointer buffer, int length) { + _lib._objc_msgSend_21(_id, _lib._sel_getBytes_length_1, buffer, length); } - NSNumber initWithUnsignedShort_(int value) { - final _ret = - _lib._objc_msgSend_205(_id, _lib._sel_initWithUnsignedShort_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + void getBytes_range_(ffi.Pointer buffer, _NSRange range) { + _lib._objc_msgSend_22(_id, _lib._sel_getBytes_range_1, buffer, range); } - NSNumber initWithInt_(int value) { - final _ret = _lib._objc_msgSend_206(_id, _lib._sel_initWithInt_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + bool isEqualToData_(NSData? other) { + return _lib._objc_msgSend_23( + _id, _lib._sel_isEqualToData_1, other?._id ?? ffi.nullptr); } - NSNumber initWithUnsignedInt_(int value) { + NSData subdataWithRange_(_NSRange range) { final _ret = - _lib._objc_msgSend_207(_id, _lib._sel_initWithUnsignedInt_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - NSNumber initWithLong_(int value) { - final _ret = _lib._objc_msgSend_208(_id, _lib._sel_initWithLong_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_24(_id, _lib._sel_subdataWithRange_1, range); + return NSData._(_ret, _lib, retain: true, release: true); } - NSNumber initWithUnsignedLong_(int value) { - final _ret = - _lib._objc_msgSend_209(_id, _lib._sel_initWithUnsignedLong_1, value); - return NSNumber._(_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); } - NSNumber initWithLongLong_(int value) { - final _ret = - _lib._objc_msgSend_210(_id, _lib._sel_initWithLongLong_1, value); - return NSNumber._(_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 ?? ffi.nullptr, atomically); } - NSNumber initWithUnsignedLongLong_(int value) { - final _ret = _lib._objc_msgSend_211( - _id, _lib._sel_initWithUnsignedLongLong_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + bool writeToFile_options_error_(NSString? path, int writeOptionsMask, + ffi.Pointer> errorPtr) { + return _lib._objc_msgSend_248(_id, _lib._sel_writeToFile_options_error_1, + path?._id ?? ffi.nullptr, writeOptionsMask, errorPtr); } - NSNumber initWithFloat_(double value) { - final _ret = _lib._objc_msgSend_212(_id, _lib._sel_initWithFloat_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + bool writeToURL_options_error_(NSURL? url, int writeOptionsMask, + ffi.Pointer> errorPtr) { + return _lib._objc_msgSend_249(_id, _lib._sel_writeToURL_options_error_1, + url?._id ?? ffi.nullptr, writeOptionsMask, errorPtr); } - NSNumber initWithDouble_(double value) { - final _ret = _lib._objc_msgSend_213(_id, _lib._sel_initWithDouble_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + void rangeOfData_options_range_(ffi.Pointer<_NSRange> stret, + NSData? dataToFind, int mask, _NSRange searchRange) { + _lib._objc_msgSend_250(stret, _id, _lib._sel_rangeOfData_options_range_1, + dataToFind?._id ?? ffi.nullptr, mask, searchRange); } - NSNumber initWithBool_(bool value) { - final _ret = _lib._objc_msgSend_214(_id, _lib._sel_initWithBool_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + void enumerateByteRangesUsingBlock_( + ObjCBlock_ffiVoid_ffiVoid_NSRange_bool block) { + _lib._objc_msgSend_251( + _id, _lib._sel_enumerateByteRangesUsingBlock_1, block._id); } - NSNumber initWithInteger_(int value) { - final _ret = - _lib._objc_msgSend_208(_id, _lib._sel_initWithInteger_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + static NSData data(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSData1, _lib._sel_data1); + return NSData._(_ret, _lib, retain: true, release: true); } - NSNumber initWithUnsignedInteger_(int value) { - final _ret = - _lib._objc_msgSend_209(_id, _lib._sel_initWithUnsignedInteger_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + static NSData dataWithBytes_length_( + SentryCocoa _lib, ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_252( + _lib._class_NSData1, _lib._sel_dataWithBytes_length_1, bytes, length); + return NSData._(_ret, _lib, retain: true, release: true); } - int get charValue { - return _lib._objc_msgSend_215(_id, _lib._sel_charValue1); + static NSData dataWithBytesNoCopy_length_( + SentryCocoa _lib, ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_252(_lib._class_NSData1, + _lib._sel_dataWithBytesNoCopy_length_1, bytes, length); + return NSData._(_ret, _lib, retain: false, release: true); } - int get unsignedCharValue { - return _lib._objc_msgSend_216(_id, _lib._sel_unsignedCharValue1); + static NSData dataWithBytesNoCopy_length_freeWhenDone_( + SentryCocoa _lib, ffi.Pointer bytes, int length, bool b) { + final _ret = _lib._objc_msgSend_253(_lib._class_NSData1, + _lib._sel_dataWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); + return NSData._(_ret, _lib, retain: false, release: true); } - int get shortValue { - return _lib._objc_msgSend_217(_id, _lib._sel_shortValue1); + static NSData dataWithContentsOfFile_options_error_( + SentryCocoa _lib, + NSString? path, + int readOptionsMask, + ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_254( + _lib._class_NSData1, + _lib._sel_dataWithContentsOfFile_options_error_1, + path?._id ?? ffi.nullptr, + readOptionsMask, + errorPtr); + return NSData._(_ret, _lib, retain: true, release: true); } - int get unsignedShortValue { - return _lib._objc_msgSend_218(_id, _lib._sel_unsignedShortValue1); + static NSData dataWithContentsOfURL_options_error_( + SentryCocoa _lib, + NSURL? url, + int readOptionsMask, + ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_255( + _lib._class_NSData1, + _lib._sel_dataWithContentsOfURL_options_error_1, + url?._id ?? ffi.nullptr, + readOptionsMask, + errorPtr); + return NSData._(_ret, _lib, retain: true, release: true); } - int get intValue { - return _lib._objc_msgSend_219(_id, _lib._sel_intValue1); + static NSData dataWithContentsOfFile_(SentryCocoa _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); } - int get unsignedIntValue { - return _lib._objc_msgSend_197(_id, _lib._sel_unsignedIntValue1); + static NSData dataWithContentsOfURL_(SentryCocoa _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_241(_lib._class_NSData1, + _lib._sel_dataWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSData._(_ret, _lib, retain: true, release: true); } - int get longValue { - return _lib._objc_msgSend_78(_id, _lib._sel_longValue1); + NSData initWithBytes_length_(ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_252( + _id, _lib._sel_initWithBytes_length_1, bytes, length); + return NSData._(_ret, _lib, retain: true, release: true); } - int get unsignedLongValue { - return _lib._objc_msgSend_10(_id, _lib._sel_unsignedLongValue1); + NSData initWithBytesNoCopy_length_(ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_252( + _id, _lib._sel_initWithBytesNoCopy_length_1, bytes, length); + return NSData._(_ret, _lib, retain: false, release: true); } - int get longLongValue { - return _lib._objc_msgSend_220(_id, _lib._sel_longLongValue1); + NSData initWithBytesNoCopy_length_freeWhenDone_( + ffi.Pointer bytes, int length, bool b) { + final _ret = _lib._objc_msgSend_253(_id, + _lib._sel_initWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); + return NSData._(_ret, _lib, retain: false, release: true); } - int get unsignedLongLongValue { - return _lib._objc_msgSend_154(_id, _lib._sel_unsignedLongLongValue1); + NSData initWithBytesNoCopy_length_deallocator_(ffi.Pointer bytes, + int length, ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong deallocator) { + final _ret = _lib._objc_msgSend_256( + _id, + _lib._sel_initWithBytesNoCopy_length_deallocator_1, + bytes, + length, + deallocator._id); + return NSData._(_ret, _lib, retain: false, release: true); } - double get floatValue { - return _lib._objc_msgSend_221(_id, _lib._sel_floatValue1); + NSData initWithContentsOfFile_options_error_(NSString? path, + int readOptionsMask, ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_254( + _id, + _lib._sel_initWithContentsOfFile_options_error_1, + path?._id ?? ffi.nullptr, + readOptionsMask, + errorPtr); + return NSData._(_ret, _lib, retain: true, release: true); } - double get doubleValue { - return _lib._objc_msgSend_155(_id, _lib._sel_doubleValue1); + NSData initWithContentsOfURL_options_error_(NSURL? url, int readOptionsMask, + ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_255( + _id, + _lib._sel_initWithContentsOfURL_options_error_1, + url?._id ?? ffi.nullptr, + readOptionsMask, + errorPtr); + return NSData._(_ret, _lib, retain: true, release: true); } - bool get boolValue { - return _lib._objc_msgSend_12(_id, _lib._sel_boolValue1); + 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); } - int get integerValue { - return _lib._objc_msgSend_78(_id, _lib._sel_integerValue1); + NSData initWithContentsOfURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_241( + _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSData._(_ret, _lib, retain: true, release: true); } - int get unsignedIntegerValue { - return _lib._objc_msgSend_10(_id, _lib._sel_unsignedIntegerValue1); + NSData initWithData_(NSData? data) { + final _ret = _lib._objc_msgSend_257( + _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); + return NSData._(_ret, _lib, retain: true, release: true); } - NSString? get stringValue { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_stringValue1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSData dataWithData_(SentryCocoa _lib, NSData? data) { + final _ret = _lib._objc_msgSend_257(_lib._class_NSData1, + _lib._sel_dataWithData_1, data?._id ?? ffi.nullptr); + return NSData._(_ret, _lib, retain: true, release: true); } - int compare_(NSNumber? otherNumber) { - return _lib._objc_msgSend_222( - _id, _lib._sel_compare_1, otherNumber?._id ?? ffi.nullptr); + NSData initWithBase64EncodedString_options_( + NSString? base64String, int options) { + final _ret = _lib._objc_msgSend_258( + _id, + _lib._sel_initWithBase64EncodedString_options_1, + base64String?._id ?? ffi.nullptr, + options); + return NSData._(_ret, _lib, retain: true, release: true); } - bool isEqualToNumber_(NSNumber? number) { - return _lib._objc_msgSend_223( - _id, _lib._sel_isEqualToNumber_1, number?._id ?? ffi.nullptr); + NSString base64EncodedStringWithOptions_(int options) { + final _ret = _lib._objc_msgSend_259( + _id, _lib._sel_base64EncodedStringWithOptions_1, options); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_65( - _id, _lib._sel_descriptionWithLocale_1, locale._id); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSNumber numberWithChar_(SentryCocoa _lib, int value) { - final _ret = _lib._objc_msgSend_202( - _lib._class_NSNumber1, _lib._sel_numberWithChar_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSNumber numberWithUnsignedChar_(SentryCocoa _lib, int value) { - final _ret = _lib._objc_msgSend_203( - _lib._class_NSNumber1, _lib._sel_numberWithUnsignedChar_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSNumber numberWithShort_(SentryCocoa _lib, int value) { - final _ret = _lib._objc_msgSend_204( - _lib._class_NSNumber1, _lib._sel_numberWithShort_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSNumber numberWithUnsignedShort_(SentryCocoa _lib, int value) { - final _ret = _lib._objc_msgSend_205( - _lib._class_NSNumber1, _lib._sel_numberWithUnsignedShort_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSNumber numberWithInt_(SentryCocoa _lib, int value) { - final _ret = _lib._objc_msgSend_206( - _lib._class_NSNumber1, _lib._sel_numberWithInt_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSNumber numberWithUnsignedInt_(SentryCocoa _lib, int value) { - final _ret = _lib._objc_msgSend_207( - _lib._class_NSNumber1, _lib._sel_numberWithUnsignedInt_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSNumber numberWithLong_(SentryCocoa _lib, int value) { - final _ret = _lib._objc_msgSend_208( - _lib._class_NSNumber1, _lib._sel_numberWithLong_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSNumber numberWithUnsignedLong_(SentryCocoa _lib, int value) { - final _ret = _lib._objc_msgSend_209( - _lib._class_NSNumber1, _lib._sel_numberWithUnsignedLong_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSNumber numberWithLongLong_(SentryCocoa _lib, int value) { - final _ret = _lib._objc_msgSend_210( - _lib._class_NSNumber1, _lib._sel_numberWithLongLong_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSNumber numberWithUnsignedLongLong_(SentryCocoa _lib, int value) { - final _ret = _lib._objc_msgSend_211( - _lib._class_NSNumber1, _lib._sel_numberWithUnsignedLongLong_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSNumber numberWithFloat_(SentryCocoa _lib, double value) { - final _ret = _lib._objc_msgSend_212( - _lib._class_NSNumber1, _lib._sel_numberWithFloat_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSNumber numberWithDouble_(SentryCocoa _lib, double value) { - final _ret = _lib._objc_msgSend_213( - _lib._class_NSNumber1, _lib._sel_numberWithDouble_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSNumber numberWithBool_(SentryCocoa _lib, bool value) { - final _ret = _lib._objc_msgSend_214( - _lib._class_NSNumber1, _lib._sel_numberWithBool_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSNumber numberWithInteger_(SentryCocoa _lib, int value) { - final _ret = _lib._objc_msgSend_208( - _lib._class_NSNumber1, _lib._sel_numberWithInteger_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSNumber numberWithUnsignedInteger_(SentryCocoa _lib, int value) { - final _ret = _lib._objc_msgSend_209( - _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_41( - _id, _lib._sel_initWithBytes_objCType_1, value, type); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSValue valueWithBytes_objCType_(SentryCocoa _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); + NSData initWithBase64EncodedData_options_(NSData? base64Data, int options) { + final _ret = _lib._objc_msgSend_260( + _id, + _lib._sel_initWithBase64EncodedData_options_1, + base64Data?._id ?? ffi.nullptr, + options); + return NSData._(_ret, _lib, retain: true, release: true); } - static NSValue value_withObjCType_(SentryCocoa _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); + NSData base64EncodedDataWithOptions_(int options) { + final _ret = _lib._objc_msgSend_261( + _id, _lib._sel_base64EncodedDataWithOptions_1, options); + return NSData._(_ret, _lib, retain: true, release: true); } - static NSValue valueWithNonretainedObject_( - SentryCocoa _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); + NSData decompressedDataUsingAlgorithm_error_( + int algorithm, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_262(_id, + _lib._sel_decompressedDataUsingAlgorithm_error_1, algorithm, error); + return NSData._(_ret, _lib, retain: true, release: true); } - static NSValue valueWithPointer_( - SentryCocoa _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); + NSData compressedDataUsingAlgorithm_error_( + int algorithm, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_262( + _id, _lib._sel_compressedDataUsingAlgorithm_error_1, algorithm, error); + return NSData._(_ret, _lib, retain: true, release: true); } - static NSValue valueWithRange_(SentryCocoa _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); + void getBytes_(ffi.Pointer buffer) { + _lib._objc_msgSend_47(_id, _lib._sel_getBytes_1, buffer); } - static NSValue valueWithPoint_(SentryCocoa _lib, CGPoint point) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSNumber1, _lib._sel_valueWithPoint_1, point); - return NSValue._(_ret, _lib, retain: true, release: true); + static NSObject dataWithContentsOfMappedFile_( + SentryCocoa _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 NSValue valueWithSize_(SentryCocoa _lib, CGSize size) { - final _ret = _lib._objc_msgSend_51( - _lib._class_NSNumber1, _lib._sel_valueWithSize_1, size); - return NSValue._(_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); } - static NSValue valueWithRect_(SentryCocoa _lib, CGRect rect) { - final _ret = _lib._objc_msgSend_52( - _lib._class_NSNumber1, _lib._sel_valueWithRect_1, rect); - return NSValue._(_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); } - static NSValue valueWithEdgeInsets_(SentryCocoa _lib, NSEdgeInsets insets) { - final _ret = _lib._objc_msgSend_53( - _lib._class_NSNumber1, _lib._sel_valueWithEdgeInsets_1, insets); - return NSValue._(_ret, _lib, retain: true, release: true); + NSString base64Encoding() { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_base64Encoding1); + return NSString._(_ret, _lib, retain: true, release: true); } @override - NSNumber init() { + NSData init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSNumber._(_ret, _lib, retain: true, release: true); + return NSData._(_ret, _lib, retain: true, release: true); } - static NSNumber new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSNumber1, _lib._sel_new1); - return NSNumber._(_ret, _lib, retain: false, release: true); + static NSData new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSData1, _lib._sel_new1); + return NSData._(_ret, _lib, retain: false, release: true); } - static NSNumber allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static NSData allocWithZone_(SentryCocoa _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); + _lib._class_NSData1, _lib._sel_allocWithZone_1, zone); + return NSData._(_ret, _lib, retain: false, release: true); } - static NSNumber alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSNumber1, _lib._sel_alloc1); - return NSNumber._(_ret, _lib, retain: false, release: true); + static NSData alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSData1, _lib._sel_alloc1); + return NSData._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -35705,7 +36568,7 @@ class NSNumber extends NSValue { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSNumber1, + _lib._class_NSData1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -35714,24 +36577,24 @@ class NSNumber extends NSValue { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSNumber1, + _lib._objc_msgSend_15(_lib._class_NSData1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSNumber1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSData1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSNumber1, _lib._sel_useStoredAccessor1); + _lib._class_NSData1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSNumber1, + _lib._class_NSData1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -35740,7 +36603,7 @@ class NSNumber extends NSValue { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSNumber1, + _lib._class_NSData1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -35748,7 +36611,7 @@ class NSNumber extends NSValue { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSNumber1, + _lib._class_NSData1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -35756,860 +36619,730 @@ class NSNumber extends NSValue { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSNumber1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSData1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSNumber1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSData1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSValue extends NSObject { - NSValue._(ffi.Pointer id, SentryCocoa lib, +final class _NSRange extends ffi.Struct { + @ffi.UnsignedLong() + external int location; + + @ffi.UnsignedLong() + external int length; +} + +class NSURL extends NSObject { + NSURL._(ffi.Pointer id, SentryCocoa 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 [NSURL] that points to the same underlying object as [other]. + static NSURL castFrom(T other) { + return NSURL._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSValue] that wraps the given raw object pointer. - static NSValue castFromPointer(SentryCocoa lib, ffi.Pointer other, + /// Returns a [NSURL] that wraps the given raw object pointer. + static NSURL castFromPointer(SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSValue._(other, lib, retain: retain, release: release); + return NSURL._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSValue]. + /// Returns whether [obj] is an instance of [NSURL]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSValue1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURL1); } - void getValue_size_(ffi.Pointer value, int size) { - _lib._objc_msgSend_21(_id, _lib._sel_getValue_size_1, value, size); + NSURL initWithScheme_host_path_( + NSString? scheme, NSString? host, NSString? path) { + final _ret = _lib._objc_msgSend_26( + _id, + _lib._sel_initWithScheme_host_path_1, + scheme?._id ?? ffi.nullptr, + host?._id ?? ffi.nullptr, + path?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - ffi.Pointer get objCType { - return _lib._objc_msgSend_13(_id, _lib._sel_objCType1); + NSURL initFileURLWithPath_isDirectory_relativeToURL_( + NSString? path, bool isDir, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_27( + _id, + _lib._sel_initFileURLWithPath_isDirectory_relativeToURL_1, + path?._id ?? ffi.nullptr, + isDir, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_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); + NSURL initFileURLWithPath_relativeToURL_(NSString? path, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_28( + _id, + _lib._sel_initFileURLWithPath_relativeToURL_1, + path?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_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); + NSURL initFileURLWithPath_isDirectory_(NSString? path, bool isDir) { + final _ret = _lib._objc_msgSend_29( + _id, + _lib._sel_initFileURLWithPath_isDirectory_1, + path?._id ?? ffi.nullptr, + isDir); + return NSURL._(_ret, _lib, retain: true, release: true); } - static NSValue valueWithBytes_objCType_(SentryCocoa _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); + NSURL initFileURLWithPath_(NSString? path) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initFileURLWithPath_1, path?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - static NSValue value_withObjCType_(SentryCocoa _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); + static NSURL fileURLWithPath_isDirectory_relativeToURL_( + SentryCocoa _lib, NSString? path, bool isDir, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_31( + _lib._class_NSURL1, + _lib._sel_fileURLWithPath_isDirectory_relativeToURL_1, + path?._id ?? ffi.nullptr, + isDir, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - static NSValue valueWithNonretainedObject_( - SentryCocoa _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); + static NSURL fileURLWithPath_relativeToURL_( + SentryCocoa _lib, NSString? path, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_32( + _lib._class_NSURL1, + _lib._sel_fileURLWithPath_relativeToURL_1, + path?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - NSObject get nonretainedObjectValue { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_nonretainedObjectValue1); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSURL fileURLWithPath_isDirectory_( + SentryCocoa _lib, NSString? path, bool isDir) { + final _ret = _lib._objc_msgSend_33( + _lib._class_NSURL1, + _lib._sel_fileURLWithPath_isDirectory_1, + path?._id ?? ffi.nullptr, + isDir); + return NSURL._(_ret, _lib, retain: true, release: true); } - static NSValue valueWithPointer_( - SentryCocoa _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); + static NSURL fileURLWithPath_(SentryCocoa _lib, NSString? path) { + final _ret = _lib._objc_msgSend_34(_lib._class_NSURL1, + _lib._sel_fileURLWithPath_1, path?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - ffi.Pointer get pointerValue { - return _lib._objc_msgSend_19(_id, _lib._sel_pointerValue1); + NSURL initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_( + ffi.Pointer path, bool isDir, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_35( + _id, + _lib._sel_initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_1, + path, + isDir, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - bool isEqualToValue_(NSValue? value) { - return _lib._objc_msgSend_46( - _id, _lib._sel_isEqualToValue_1, value?._id ?? ffi.nullptr); + static NSURL fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_( + SentryCocoa _lib, + ffi.Pointer path, + bool isDir, + NSURL? baseURL) { + final _ret = _lib._objc_msgSend_36( + _lib._class_NSURL1, + _lib._sel_fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_1, + path, + isDir, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - void getValue_(ffi.Pointer value) { - _lib._objc_msgSend_47(_id, _lib._sel_getValue_1, value); + 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); } - static NSValue valueWithRange_(SentryCocoa _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); + NSURL initWithString_relativeToURL_(NSString? URLString, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_28( + _id, + _lib._sel_initWithString_relativeToURL_1, + URLString?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - void getRangeValue(ffi.Pointer<_NSRange> stret) { - _lib._objc_msgSend_49(stret, _id, _lib._sel_rangeValue1); + static NSURL URLWithString_(SentryCocoa _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 NSValue valueWithPoint_(SentryCocoa _lib, CGPoint point) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSValue1, _lib._sel_valueWithPoint_1, point); - return NSValue._(_ret, _lib, retain: true, release: true); + static NSURL URLWithString_relativeToURL_( + SentryCocoa _lib, NSString? URLString, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_28( + _lib._class_NSURL1, + _lib._sel_URLWithString_relativeToURL_1, + URLString?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - static NSValue valueWithSize_(SentryCocoa _lib, CGSize size) { - final _ret = _lib._objc_msgSend_51( - _lib._class_NSValue1, _lib._sel_valueWithSize_1, size); - return NSValue._(_ret, _lib, retain: true, release: true); + NSURL initWithString_encodingInvalidCharacters_( + NSString? URLString, bool encodingInvalidCharacters) { + final _ret = _lib._objc_msgSend_29( + _id, + _lib._sel_initWithString_encodingInvalidCharacters_1, + URLString?._id ?? ffi.nullptr, + encodingInvalidCharacters); + return NSURL._(_ret, _lib, retain: true, release: true); } - static NSValue valueWithRect_(SentryCocoa _lib, CGRect rect) { - final _ret = _lib._objc_msgSend_52( - _lib._class_NSValue1, _lib._sel_valueWithRect_1, rect); - return NSValue._(_ret, _lib, retain: true, release: true); + static NSURL URLWithString_encodingInvalidCharacters_( + SentryCocoa _lib, NSString? URLString, bool encodingInvalidCharacters) { + final _ret = _lib._objc_msgSend_29( + _lib._class_NSURL1, + _lib._sel_URLWithString_encodingInvalidCharacters_1, + URLString?._id ?? ffi.nullptr, + encodingInvalidCharacters); + return NSURL._(_ret, _lib, retain: true, release: true); } - static NSValue valueWithEdgeInsets_(SentryCocoa _lib, NSEdgeInsets insets) { - final _ret = _lib._objc_msgSend_53( - _lib._class_NSValue1, _lib._sel_valueWithEdgeInsets_1, insets); - return NSValue._(_ret, _lib, retain: true, release: true); + NSURL initWithDataRepresentation_relativeToURL_( + NSData? data, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_37( + _id, + _lib._sel_initWithDataRepresentation_relativeToURL_1, + data?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - void getPointValue(ffi.Pointer stret) { - _lib._objc_msgSend_54(stret, _id, _lib._sel_pointValue1); + static NSURL URLWithDataRepresentation_relativeToURL_( + SentryCocoa _lib, NSData? data, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_38( + _lib._class_NSURL1, + _lib._sel_URLWithDataRepresentation_relativeToURL_1, + data?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - void getSizeValue(ffi.Pointer stret) { - _lib._objc_msgSend_55(stret, _id, _lib._sel_sizeValue1); + NSURL initAbsoluteURLWithDataRepresentation_relativeToURL_( + NSData? data, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_37( + _id, + _lib._sel_initAbsoluteURLWithDataRepresentation_relativeToURL_1, + data?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - void getRectValue(ffi.Pointer stret) { - _lib._objc_msgSend_56(stret, _id, _lib._sel_rectValue1); + static NSURL absoluteURLWithDataRepresentation_relativeToURL_( + SentryCocoa _lib, NSData? data, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_38( + _lib._class_NSURL1, + _lib._sel_absoluteURLWithDataRepresentation_relativeToURL_1, + data?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - void getEdgeInsetsValue(ffi.Pointer stret) { - _lib._objc_msgSend_57(stret, _id, _lib._sel_edgeInsetsValue1); + 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); } - @override - NSValue init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSValue._(_ret, _lib, retain: true, release: true); + NSString? get absoluteString { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_absoluteString1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSValue new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSValue1, _lib._sel_new1); - return NSValue._(_ret, _lib, retain: false, 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); } - static NSValue allocWithZone_(SentryCocoa _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); + NSURL? get baseURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_baseURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - static NSValue alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSValue1, _lib._sel_alloc1); - return NSValue._(_ret, _lib, retain: false, release: true); + NSURL? get absoluteURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_absoluteURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _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); + NSString? get scheme { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_scheme1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSValue1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + NSString? get resourceSpecifier { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_resourceSpecifier1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSValue1, _lib._sel_accessInstanceVariablesDirectly1); + 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); } - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSValue1, _lib._sel_useStoredAccessor1); + NSNumber? get port { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_port1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSValue1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + 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); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSValue1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + 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); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSValue1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + NSString? get path { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_path1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSValue1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + NSString? get fragment { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fragment1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSValue1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSString? get parameterString { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_parameterString1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } -} - -final class CGPoint extends ffi.Struct { - @ffi.Double() - external double x; - - @ffi.Double() - external double y; -} - -final class CGSize extends ffi.Struct { - @ffi.Double() - external double width; - @ffi.Double() - external double height; -} - -final class CGRect extends ffi.Struct { - external CGPoint origin; - - external CGSize size; -} - -final class NSEdgeInsets extends ffi.Struct { - @ffi.Double() - external double top; + NSString? get query { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_query1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Double() - external double left; + NSString? get relativePath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_relativePath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Double() - external double bottom; + bool get hasDirectoryPath { + return _lib._objc_msgSend_12(_id, _lib._sel_hasDirectoryPath1); + } - @ffi.Double() - external double right; -} + bool getFileSystemRepresentation_maxLength_( + ffi.Pointer buffer, int maxBufferLength) { + return _lib._objc_msgSend_224( + _id, + _lib._sel_getFileSystemRepresentation_maxLength_1, + buffer, + maxBufferLength); + } -class NSArray extends NSObject { - NSArray._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + ffi.Pointer get fileSystemRepresentation { + return _lib._objc_msgSend_13(_id, _lib._sel_fileSystemRepresentation1); + } - /// 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); + bool get fileURL { + return _lib._objc_msgSend_12(_id, _lib._sel_isFileURL1); } - /// Returns a [NSArray] that wraps the given raw object pointer. - static NSArray castFromPointer(SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSArray._(other, lib, retain: retain, release: release); + NSURL? get standardizedURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_standardizedURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - /// 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); + bool isFileReferenceURL() { + return _lib._objc_msgSend_12(_id, _lib._sel_isFileReferenceURL1); } - int get count { - return _lib._objc_msgSend_10(_id, _lib._sel_count1); + NSURL fileReferenceURL() { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_fileReferenceURL1); + return NSURL._(_ret, _lib, retain: true, release: true); } - NSObject objectAtIndex_(int index) { - final _ret = _lib._objc_msgSend_60(_id, _lib._sel_objectAtIndex_1, index); - return NSObject._(_ret, _lib, retain: true, release: true); + NSURL? get filePathURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_filePathURL1); + return _ret.address == 0 + ? null + : NSURL._(_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); + bool getResourceValue_forKey_error_( + ffi.Pointer> value, + NSString key, + ffi.Pointer> error) { + return _lib._objc_msgSend_225( + _id, _lib._sel_getResourceValue_forKey_error_1, value, key._id, error); } - NSArray initWithObjects_count_( - ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61( - _id, _lib._sel_initWithObjects_count_1, objects, cnt); - return NSArray._(_ret, _lib, retain: true, release: true); + NSObject resourceValuesForKeys_error_( + NSArray? keys, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_226( + _id, + _lib._sel_resourceValuesForKeys_error_1, + keys?._id ?? ffi.nullptr, + error); + return NSObject._(_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); + bool setResourceValue_forKey_error_(NSObject value, NSString key, + ffi.Pointer> error) { + return _lib._objc_msgSend_227(_id, + _lib._sel_setResourceValue_forKey_error_1, value._id, key._id, error); } - NSArray arrayByAddingObject_(NSObject anObject) { - final _ret = _lib._objc_msgSend_62( - _id, _lib._sel_arrayByAddingObject_1, anObject._id); - return NSArray._(_ret, _lib, retain: true, release: true); + bool setResourceValues_error_( + NSObject? keyedValues, ffi.Pointer> error) { + return _lib._objc_msgSend_228(_id, _lib._sel_setResourceValues_error_1, + keyedValues?._id ?? ffi.nullptr, error); } - NSArray arrayByAddingObjectsFromArray_(NSArray? otherArray) { - final _ret = _lib._objc_msgSend_63( - _id, - _lib._sel_arrayByAddingObjectsFromArray_1, - otherArray?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + void removeCachedResourceValueForKey_(NSString key) { + _lib._objc_msgSend_192( + _id, _lib._sel_removeCachedResourceValueForKey_1, key._id); } - NSString componentsJoinedByString_(NSString? separator) { - final _ret = _lib._objc_msgSend_64(_id, - _lib._sel_componentsJoinedByString_1, separator?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + void removeAllCachedResourceValues() { + _lib._objc_msgSend_1(_id, _lib._sel_removeAllCachedResourceValues1); } - bool containsObject_(NSObject anObject) { - return _lib._objc_msgSend_0(_id, _lib._sel_containsObject_1, anObject._id); + void setTemporaryResourceValue_forKey_(NSObject value, NSString key) { + _lib._objc_msgSend_126( + _id, _lib._sel_setTemporaryResourceValue_forKey_1, value._id, key._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); + NSData + bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_( + int options, + NSArray? keys, + NSURL? relativeURL, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_229( + _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); } - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_65( - _id, _lib._sel_descriptionWithLocale_1, locale._id); - return NSString._(_ret, _lib, retain: true, release: true); + NSURL + initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_( + NSData? bookmarkData, + int options, + NSURL? relativeURL, + ffi.Pointer isStale, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_230( + _id, + _lib._sel_initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1, + bookmarkData?._id ?? ffi.nullptr, + options, + relativeURL?._id ?? ffi.nullptr, + isStale, + error); + return NSURL._(_ret, _lib, retain: true, release: true); } - NSString descriptionWithLocale_indent_(NSObject locale, int level) { - final _ret = _lib._objc_msgSend_66( - _id, _lib._sel_descriptionWithLocale_indent_1, locale._id, level); - return NSString._(_ret, _lib, retain: true, release: true); + static NSURL + URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_( + SentryCocoa _lib, + NSData? bookmarkData, + int options, + NSURL? relativeURL, + ffi.Pointer isStale, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_230( + _lib._class_NSURL1, + _lib._sel_URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1, + bookmarkData?._id ?? ffi.nullptr, + options, + relativeURL?._id ?? ffi.nullptr, + isStale, + error); + return NSURL._(_ret, _lib, retain: true, release: true); } - NSObject firstObjectCommonWithArray_(NSArray? otherArray) { - final _ret = _lib._objc_msgSend_67(_id, - _lib._sel_firstObjectCommonWithArray_1, otherArray?._id ?? ffi.nullptr); + static NSObject resourceValuesForKeys_fromBookmarkData_( + SentryCocoa _lib, NSArray? keys, NSData? bookmarkData) { + final _ret = _lib._objc_msgSend_231( + _lib._class_NSURL1, + _lib._sel_resourceValuesForKeys_fromBookmarkData_1, + keys?._id ?? ffi.nullptr, + bookmarkData?._id ?? ffi.nullptr); return NSObject._(_ret, _lib, retain: true, release: true); } - void getObjects_range_( - ffi.Pointer> objects, _NSRange range) { - _lib._objc_msgSend_68(_id, _lib._sel_getObjects_range_1, objects, range); + static bool writeBookmarkData_toURL_options_error_( + SentryCocoa _lib, + NSData? bookmarkData, + NSURL? bookmarkFileURL, + int options, + ffi.Pointer> error) { + return _lib._objc_msgSend_232( + _lib._class_NSURL1, + _lib._sel_writeBookmarkData_toURL_options_error_1, + bookmarkData?._id ?? ffi.nullptr, + bookmarkFileURL?._id ?? ffi.nullptr, + options, + error); } - int indexOfObject_(NSObject anObject) { - return _lib._objc_msgSend_69(_id, _lib._sel_indexOfObject_1, anObject._id); + static NSData bookmarkDataWithContentsOfURL_error_(SentryCocoa _lib, + NSURL? bookmarkFileURL, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_233( + _lib._class_NSURL1, + _lib._sel_bookmarkDataWithContentsOfURL_error_1, + bookmarkFileURL?._id ?? ffi.nullptr, + error); + return NSData._(_ret, _lib, retain: true, release: true); } - int indexOfObject_inRange_(NSObject anObject, _NSRange range) { - return _lib._objc_msgSend_70( - _id, _lib._sel_indexOfObject_inRange_1, anObject._id, range); + static NSURL URLByResolvingAliasFileAtURL_options_error_(SentryCocoa _lib, + NSURL? url, int options, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_234( + _lib._class_NSURL1, + _lib._sel_URLByResolvingAliasFileAtURL_options_error_1, + url?._id ?? ffi.nullptr, + options, + error); + return NSURL._(_ret, _lib, retain: true, release: true); } - int indexOfObjectIdenticalTo_(NSObject anObject) { - return _lib._objc_msgSend_69( - _id, _lib._sel_indexOfObjectIdenticalTo_1, anObject._id); + bool startAccessingSecurityScopedResource() { + return _lib._objc_msgSend_12( + _id, _lib._sel_startAccessingSecurityScopedResource1); } - int indexOfObjectIdenticalTo_inRange_(NSObject anObject, _NSRange range) { - return _lib._objc_msgSend_70( - _id, _lib._sel_indexOfObjectIdenticalTo_inRange_1, anObject._id, range); + void stopAccessingSecurityScopedResource() { + _lib._objc_msgSend_1(_id, _lib._sel_stopAccessingSecurityScopedResource1); } - bool isEqualToArray_(NSArray? otherArray) { - return _lib._objc_msgSend_71( - _id, _lib._sel_isEqualToArray_1, otherArray?._id ?? ffi.nullptr); + bool getPromisedItemResourceValue_forKey_error_( + ffi.Pointer> value, + NSString key, + ffi.Pointer> error) { + return _lib._objc_msgSend_225( + _id, + _lib._sel_getPromisedItemResourceValue_forKey_error_1, + value, + key._id, + error); } - NSObject get firstObject { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_firstObject1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSDictionary promisedItemResourceValuesForKeys_error_( + NSArray? keys, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_235( + _id, + _lib._sel_promisedItemResourceValuesForKeys_error_1, + keys?._id ?? ffi.nullptr, + error); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - NSObject get lastObject { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_lastObject1); - return NSObject._(_ret, _lib, retain: true, release: true); + bool checkPromisedItemIsReachableAndReturnError_( + ffi.Pointer> error) { + return _lib._objc_msgSend_236( + _id, _lib._sel_checkPromisedItemIsReachableAndReturnError_1, error); } - NSEnumerator objectEnumerator() { - final _ret = _lib._objc_msgSend_72(_id, _lib._sel_objectEnumerator1); - return NSEnumerator._(_ret, _lib, retain: true, release: true); + static NSURL fileURLWithPathComponents_( + SentryCocoa _lib, NSArray? components) { + final _ret = _lib._objc_msgSend_237(_lib._class_NSURL1, + _lib._sel_fileURLWithPathComponents_1, components?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - NSEnumerator reverseObjectEnumerator() { - final _ret = _lib._objc_msgSend_72(_id, _lib._sel_reverseObjectEnumerator1); - return NSEnumerator._(_ret, _lib, retain: true, release: true); + NSArray? get pathComponents { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_pathComponents1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSData? get sortedArrayHint { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_sortedArrayHint1); + NSString? get lastPathComponent { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_lastPathComponent1); return _ret.address == 0 ? null - : NSData._(_ret, _lib, retain: true, release: true); + : NSString._(_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_73( - _id, _lib._sel_sortedArrayUsingFunction_context_1, comparator, context); - return NSArray._(_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); } - 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_74( + NSURL URLByAppendingPathComponent_(NSString? pathComponent) { + final _ret = _lib._objc_msgSend_34( _id, - _lib._sel_sortedArrayUsingFunction_context_hint_1, - comparator, - context, - hint?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + _lib._sel_URLByAppendingPathComponent_1, + pathComponent?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - NSArray sortedArrayUsingSelector_(ffi.Pointer comparator) { - final _ret = _lib._objc_msgSend_75( - _id, _lib._sel_sortedArrayUsingSelector_1, comparator); - return NSArray._(_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); } - NSArray subarrayWithRange_(_NSRange range) { + NSURL? get URLByDeletingLastPathComponent { final _ret = - _lib._objc_msgSend_76(_id, _lib._sel_subarrayWithRange_1, range); - return NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_40(_id, _lib._sel_URLByDeletingLastPathComponent1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - bool writeToURL_error_( - NSURL? url, ffi.Pointer> error) { - return _lib._objc_msgSend_83( - _id, _lib._sel_writeToURL_error_1, url?._id ?? ffi.nullptr, error); + 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); } - void makeObjectsPerformSelector_(ffi.Pointer aSelector) { - _lib._objc_msgSend_7( - _id, _lib._sel_makeObjectsPerformSelector_1, aSelector); + 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); } - void makeObjectsPerformSelector_withObject_( - ffi.Pointer aSelector, NSObject argument) { - _lib._objc_msgSend_84( - _id, - _lib._sel_makeObjectsPerformSelector_withObject_1, - aSelector, - argument._id); + bool checkResourceIsReachableAndReturnError_( + ffi.Pointer> error) { + return _lib._objc_msgSend_236( + _id, _lib._sel_checkResourceIsReachableAndReturnError_1, error); } - NSArray objectsAtIndexes_(NSIndexSet? indexes) { - final _ret = _lib._objc_msgSend_105( - _id, _lib._sel_objectsAtIndexes_1, indexes?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSObject objectAtIndexedSubscript_(int idx) { - final _ret = - _lib._objc_msgSend_60(_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_106( - _id, _lib._sel_enumerateObjectsUsingBlock_1, block._id); - } - - void enumerateObjectsWithOptions_usingBlock_( - int opts, ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool block) { - _lib._objc_msgSend_107(_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_108( - _id, - _lib._sel_enumerateObjectsAtIndexes_options_usingBlock_1, - s?._id ?? ffi.nullptr, - opts, - block._id); - } - - int indexOfObjectPassingTest_( - ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { - return _lib._objc_msgSend_109( - _id, _lib._sel_indexOfObjectPassingTest_1, predicate._id); - } - - int indexOfObjectWithOptions_passingTest_( - int opts, ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { - return _lib._objc_msgSend_110(_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_111( - _id, - _lib._sel_indexOfObjectAtIndexes_options_passingTest_1, - s?._id ?? ffi.nullptr, - opts, - predicate._id); - } - - NSIndexSet indexesOfObjectsPassingTest_( - ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { - final _ret = _lib._objc_msgSend_112( - _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_113( - _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_114( - _id, - _lib._sel_indexesOfObjectsAtIndexes_options_passingTest_1, - s?._id ?? ffi.nullptr, - opts, - predicate._id); - return NSIndexSet._(_ret, _lib, retain: true, release: true); - } - - NSArray sortedArrayUsingComparator_( - ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { - final _ret = _lib._objc_msgSend_115( - _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_116(_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_117( - _id, - _lib._sel_indexOfObject_inSortedRange_options_usingComparator_1, - obj._id, - r, - opts, - cmp._id); - } - - static NSArray array(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSArray1, _lib._sel_array1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSArray arrayWithObject_(SentryCocoa _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); - } - - static NSArray arrayWithObjects_count_( - SentryCocoa _lib, ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61( - _lib._class_NSArray1, _lib._sel_arrayWithObjects_count_1, objects, cnt); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSArray arrayWithObjects_(SentryCocoa _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); - } - - static NSArray arrayWithArray_(SentryCocoa _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSArray1, - _lib._sel_arrayWithArray_1, array?._id ?? ffi.nullptr); - return NSArray._(_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); } - NSArray initWithObjects_(NSObject firstObj) { + NSURL? get URLByResolvingSymlinksInPath { final _ret = - _lib._objc_msgSend_16(_id, _lib._sel_initWithObjects_1, firstObj._id); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray initWithArray_(NSArray? array) { - final _ret = _lib._objc_msgSend_67( - _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray initWithArray_copyItems_(NSArray? array, bool flag) { - final _ret = _lib._objc_msgSend_118(_id, - _lib._sel_initWithArray_copyItems_1, array?._id ?? ffi.nullptr, flag); - return NSArray._(_ret, _lib, retain: false, release: true); - } - - NSArray initWithContentsOfURL_error_( - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_119( - _id, - _lib._sel_initWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSArray arrayWithContentsOfURL_error_(SentryCocoa _lib, NSURL? url, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_119( - _lib._class_NSArray1, - _lib._sel_arrayWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_40(_id, _lib._sel_URLByResolvingSymlinksInPath1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - NSObject differenceFromArray_withOptions_usingEquivalenceTest_( - NSArray? other, int options, ObjCBlock_bool_ObjCObject_ObjCObject block) { - final _ret = _lib._objc_msgSend_120( - _id, - _lib._sel_differenceFromArray_withOptions_usingEquivalenceTest_1, - other?._id ?? ffi.nullptr, - options, - block._id); - return NSObject._(_ret, _lib, retain: true, release: true); + NSData resourceDataUsingCache_(bool shouldUseCache) { + final _ret = _lib._objc_msgSend_238( + _id, _lib._sel_resourceDataUsingCache_1, shouldUseCache); + return NSData._(_ret, _lib, retain: true, release: true); } - NSObject differenceFromArray_withOptions_(NSArray? other, int options) { - final _ret = _lib._objc_msgSend_121( + void loadResourceDataNotifyingClient_usingCache_( + NSObject client, bool shouldUseCache) { + _lib._objc_msgSend_239( _id, - _lib._sel_differenceFromArray_withOptions_1, - other?._id ?? ffi.nullptr, - options); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject differenceFromArray_(NSArray? other) { - final _ret = _lib._objc_msgSend_67( - _id, _lib._sel_differenceFromArray_1, other?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSArray arrayByApplyingDifference_(NSObject? difference) { - final _ret = _lib._objc_msgSend_62(_id, - _lib._sel_arrayByApplyingDifference_1, difference?._id ?? ffi.nullptr); - return 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_(SentryCocoa _lib, NSString? path) { - final _ret = _lib._objc_msgSend_123(_lib._class_NSArray1, - _lib._sel_arrayWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSArray arrayWithContentsOfURL_(SentryCocoa _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_124(_lib._class_NSArray1, - _lib._sel_arrayWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_123( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_124( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSArray._(_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 writeToURL_atomically_(NSURL? url, bool atomically) { - return _lib._objc_msgSend_125(_id, _lib._sel_writeToURL_atomically_1, - url?._id ?? ffi.nullptr, atomically); - } - - NSArray pathsMatchingExtensions_(NSArray? filterTypes) { - final _ret = _lib._objc_msgSend_63(_id, _lib._sel_pathsMatchingExtensions_1, - filterTypes?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + _lib._sel_loadResourceDataNotifyingClient_usingCache_1, + client._id, + shouldUseCache); } - @override - NSObject valueForKey_(NSString? key) { + NSObject propertyForKey_(NSString? propertyKey) { final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_valueForKey_1, key?._id ?? ffi.nullptr); + _id, _lib._sel_propertyForKey_1, propertyKey?._id ?? ffi.nullptr); 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, key?._id ?? ffi.nullptr); - } - - 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 ?? ffi.nullptr, - indexes?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, - 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 ?? ffi.nullptr, - indexes?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, - context); - } - - void removeObserver_fromObjectsAtIndexes_forKeyPath_( - NSObject? observer, NSIndexSet? indexes, NSString? keyPath) { - _lib._objc_msgSend_129( - _id, - _lib._sel_removeObserver_fromObjectsAtIndexes_forKeyPath_1, - observer?._id ?? ffi.nullptr, - indexes?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr); + bool setResourceData_(NSData? data) { + return _lib._objc_msgSend_23( + _id, _lib._sel_setResourceData_1, data?._id ?? ffi.nullptr); } - @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 ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, - options, - context); + bool setProperty_forKey_(NSObject property, NSString? propertyKey) { + return _lib._objc_msgSend_240(_id, _lib._sel_setProperty_forKey_1, + property._id, propertyKey?._id ?? ffi.nullptr); } - @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 ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr, context); + NSURLHandle URLHandleUsingCache_(bool shouldUseCache) { + final _ret = _lib._objc_msgSend_247( + _id, _lib._sel_URLHandleUsingCache_1, shouldUseCache); + return NSURLHandle._(_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 ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); - } - - NSArray sortedArrayUsingDescriptors_(NSArray? sortDescriptors) { - final _ret = _lib._objc_msgSend_63( - _id, - _lib._sel_sortedArrayUsingDescriptors_1, - sortDescriptors?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray filteredArrayUsingPredicate_(NSPredicate? predicate) { - final _ret = _lib._objc_msgSend_201(_id, - _lib._sel_filteredArrayUsingPredicate_1, predicate?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSURL init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURL._(_ret, _lib, retain: true, release: true); } - static NSArray new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSArray1, _lib._sel_new1); - return NSArray._(_ret, _lib, retain: false, release: true); + static NSURL new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSURL1, _lib._sel_new1); + return NSURL._(_ret, _lib, retain: false, release: true); } - static NSArray allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static NSURL allocWithZone_(SentryCocoa _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); + _lib._class_NSURL1, _lib._sel_allocWithZone_1, zone); + return NSURL._(_ret, _lib, retain: false, release: true); } - static NSArray alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSArray1, _lib._sel_alloc1); - return NSArray._(_ret, _lib, retain: false, release: true); + static NSURL alloc(SentryCocoa _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_( @@ -36618,7 +37351,7 @@ class NSArray extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSArray1, + _lib._class_NSURL1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -36627,24 +37360,24 @@ class NSArray extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSArray1, + _lib._objc_msgSend_15(_lib._class_NSURL1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSArray1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSURL1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSArray1, _lib._sel_useStoredAccessor1); + _lib._class_NSURL1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSArray1, + _lib._class_NSURL1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -36653,7 +37386,7 @@ class NSArray extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSArray1, + _lib._class_NSURL1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -36661,7 +37394,7 @@ class NSArray extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSArray1, + _lib._class_NSURL1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -36669,646 +37402,618 @@ class NSArray extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSArray1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSURL1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSArray1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSURL1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSError extends NSObject { - NSError._(ffi.Pointer id, SentryCocoa lib, +class NSNumber extends NSValue { + NSNumber._(ffi.Pointer id, SentryCocoa 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 [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 [NSError] that wraps the given raw object pointer. - static NSError castFromPointer(SentryCocoa lib, ffi.Pointer other, + /// Returns a [NSNumber] that wraps the given raw object pointer. + static NSNumber castFromPointer( + SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSError._(other, lib, retain: retain, release: release); + return NSNumber._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSError]. + /// 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_NSError1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSNumber1); } - NSError initWithDomain_code_userInfo_( - NSString domain, int code, NSObject? dict) { - final _ret = _lib._objc_msgSend_77( - _id, - _lib._sel_initWithDomain_code_userInfo_1, - domain._id, - code, - dict?._id ?? ffi.nullptr); - return NSError._(_ret, _lib, retain: true, release: true); + @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); } - static NSError errorWithDomain_code_userInfo_( - SentryCocoa _lib, NSString domain, int code, NSObject? dict) { - final _ret = _lib._objc_msgSend_77( - _lib._class_NSError1, - _lib._sel_errorWithDomain_code_userInfo_1, - domain._id, - code, - dict?._id ?? ffi.nullptr); - return NSError._(_ret, _lib, retain: true, release: true); + NSNumber initWithChar_(int value) { + final _ret = _lib._objc_msgSend_202(_id, _lib._sel_initWithChar_1, value); + return NSNumber._(_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); + NSNumber initWithUnsignedChar_(int value) { + final _ret = + _lib._objc_msgSend_203(_id, _lib._sel_initWithUnsignedChar_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - int get code { - return _lib._objc_msgSend_78(_id, _lib._sel_code1); + NSNumber initWithShort_(int value) { + final _ret = _lib._objc_msgSend_204(_id, _lib._sel_initWithShort_1, value); + return NSNumber._(_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); + NSNumber initWithUnsignedShort_(int value) { + final _ret = + _lib._objc_msgSend_205(_id, _lib._sel_initWithUnsignedShort_1, value); + return NSNumber._(_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); + NSNumber initWithInt_(int value) { + final _ret = _lib._objc_msgSend_206(_id, _lib._sel_initWithInt_1, value); + return NSNumber._(_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); + NSNumber initWithUnsignedInt_(int value) { + final _ret = + _lib._objc_msgSend_207(_id, _lib._sel_initWithUnsignedInt_1, value); + return NSNumber._(_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); + NSNumber initWithLong_(int value) { + final _ret = _lib._objc_msgSend_208(_id, _lib._sel_initWithLong_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - NSArray? get localizedRecoveryOptions { + NSNumber initWithUnsignedLong_(int value) { final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_localizedRecoveryOptions1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_209(_id, _lib._sel_initWithUnsignedLong_1, value); + return NSNumber._(_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); + NSNumber initWithLongLong_(int value) { + final _ret = + _lib._objc_msgSend_210(_id, _lib._sel_initWithLongLong_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - NSString? get helpAnchor { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_helpAnchor1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSNumber initWithUnsignedLongLong_(int value) { + final _ret = _lib._objc_msgSend_211( + _id, _lib._sel_initWithUnsignedLongLong_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - NSArray? get underlyingErrors { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_underlyingErrors1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSNumber initWithFloat_(double value) { + final _ret = _lib._objc_msgSend_212(_id, _lib._sel_initWithFloat_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - static void setUserInfoValueProviderForDomain_provider_(SentryCocoa _lib, - NSString errorDomain, ObjCBlock_ObjCObject_NSError_NSString provider) { - _lib._objc_msgSend_80( - _lib._class_NSError1, - _lib._sel_setUserInfoValueProviderForDomain_provider_1, - errorDomain._id, - provider._id); + NSNumber initWithDouble_(double value) { + final _ret = _lib._objc_msgSend_213(_id, _lib._sel_initWithDouble_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - static ObjCBlock_ObjCObject_NSError_NSString userInfoValueProviderForDomain_( - SentryCocoa _lib, - NSError? err, - NSString userInfoKey, - NSString errorDomain) { - final _ret = _lib._objc_msgSend_81( - _lib._class_NSError1, - _lib._sel_userInfoValueProviderForDomain_1, - err?._id ?? ffi.nullptr, - userInfoKey._id, - errorDomain._id); - return ObjCBlock_ObjCObject_NSError_NSString._(_ret, _lib); + NSNumber initWithBool_(bool value) { + final _ret = _lib._objc_msgSend_214(_id, _lib._sel_initWithBool_1, value); + return NSNumber._(_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); + NSNumber initWithInteger_(int value) { + final _ret = + _lib._objc_msgSend_208(_id, _lib._sel_initWithInteger_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - static NSError new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSError1, _lib._sel_new1); - return NSError._(_ret, _lib, retain: false, release: true); + NSNumber initWithUnsignedInteger_(int value) { + final _ret = + _lib._objc_msgSend_209(_id, _lib._sel_initWithUnsignedInteger_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - static NSError allocWithZone_(SentryCocoa _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); + int get charValue { + return _lib._objc_msgSend_215(_id, _lib._sel_charValue1); } - static NSError alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSError1, _lib._sel_alloc1); - return NSError._(_ret, _lib, retain: false, release: true); + int get unsignedCharValue { + return _lib._objc_msgSend_216(_id, _lib._sel_unsignedCharValue1); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _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); + int get shortValue { + return _lib._objc_msgSend_217(_id, _lib._sel_shortValue1); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSError1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + int get unsignedShortValue { + return _lib._objc_msgSend_218(_id, _lib._sel_unsignedShortValue1); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSError1, _lib._sel_accessInstanceVariablesDirectly1); + int get intValue { + return _lib._objc_msgSend_219(_id, _lib._sel_intValue1); } - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSError1, _lib._sel_useStoredAccessor1); + int get unsignedIntValue { + return _lib._objc_msgSend_197(_id, _lib._sel_unsignedIntValue1); } - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSError1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + int get longValue { + return _lib._objc_msgSend_78(_id, _lib._sel_longValue1); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSError1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + int get unsignedLongValue { + return _lib._objc_msgSend_10(_id, _lib._sel_unsignedLongValue1); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSError1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + int get longLongValue { + return _lib._objc_msgSend_220(_id, _lib._sel_longLongValue1); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSError1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + int get unsignedLongLongValue { + return _lib._objc_msgSend_154(_id, _lib._sel_unsignedLongLongValue1); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSError1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + double get floatValue { + return _lib._objc_msgSend_221(_id, _lib._sel_floatValue1); } -} - -class _ObjCBlockBase implements ffi.Finalizable { - final ffi.Pointer<_ObjCBlock> _id; - final SentryCocoa _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); - } + double get doubleValue { + return _lib._objc_msgSend_155(_id, _lib._sel_doubleValue1); } - /// 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.'); - } + bool get boolValue { + return _lib._objc_msgSend_12(_id, _lib._sel_boolValue1); } - @override - bool operator ==(Object other) { - return other is _ObjCBlockBase && _id == other._id; + int get integerValue { + return _lib._objc_msgSend_78(_id, _lib._sel_integerValue1); } - @override - int get hashCode => _id.hashCode; - - /// Return a pointer to this object. - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -ffi.Pointer _ObjCBlock_ObjCObject_NSError_NSString_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_ObjCObject_NSError_NSString_closureRegistry = - {}; -int _ObjCBlock_ObjCObject_NSError_NSString_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ObjCObject_NSError_NSString_registerClosure( - Function 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) { - return (_ObjCBlock_ObjCObject_NSError_NSString_closureRegistry[ - block.ref.target.address] - as ffi.Pointer Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); -} - -class ObjCBlock_ObjCObject_NSError_NSString extends _ObjCBlockBase { - ObjCBlock_ObjCObject_NSError_NSString._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock_ObjCObject_NSError_NSString.fromFunctionPointer( - SentryCocoa 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_ObjCObject_NSError_NSString_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock_ObjCObject_NSError_NSString.fromFunction( - SentryCocoa 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_ObjCObject_NSError_NSString_closureTrampoline) - .cast(), - _ObjCBlock_ObjCObject_NSError_NSString_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); + int get unsignedIntegerValue { + return _lib._objc_msgSend_10(_id, _lib._sel_unsignedIntegerValue1); } -} -final class _ObjCBlockDesc extends ffi.Struct { - @ffi.UnsignedLong() - external int reserved; - - @ffi.UnsignedLong() - external int size; - - external ffi.Pointer copy_helper; + NSString? get stringValue { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_stringValue1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } - external ffi.Pointer dispose_helper; + int compare_(NSNumber? otherNumber) { + return _lib._objc_msgSend_222( + _id, _lib._sel_compare_1, otherNumber?._id ?? ffi.nullptr); + } - external ffi.Pointer signature; -} + bool isEqualToNumber_(NSNumber? number) { + return _lib._objc_msgSend_223( + _id, _lib._sel_isEqualToNumber_1, number?._id ?? ffi.nullptr); + } -final class _ObjCBlock extends ffi.Struct { - external ffi.Pointer isa; + NSString descriptionWithLocale_(NSObject locale) { + final _ret = _lib._objc_msgSend_65( + _id, _lib._sel_descriptionWithLocale_1, locale._id); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Int() - external int flags; + static NSNumber numberWithChar_(SentryCocoa _lib, int value) { + final _ret = _lib._objc_msgSend_202( + _lib._class_NSNumber1, _lib._sel_numberWithChar_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } - @ffi.Int() - external int reserved; + static NSNumber numberWithUnsignedChar_(SentryCocoa _lib, int value) { + final _ret = _lib._objc_msgSend_203( + _lib._class_NSNumber1, _lib._sel_numberWithUnsignedChar_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } - external ffi.Pointer invoke; + static NSNumber numberWithShort_(SentryCocoa _lib, int value) { + final _ret = _lib._objc_msgSend_204( + _lib._class_NSNumber1, _lib._sel_numberWithShort_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } - external ffi.Pointer<_ObjCBlockDesc> descriptor; + static NSNumber numberWithUnsignedShort_(SentryCocoa _lib, int value) { + final _ret = _lib._objc_msgSend_205( + _lib._class_NSNumber1, _lib._sel_numberWithUnsignedShort_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } - external ffi.Pointer target; -} + static NSNumber numberWithInt_(SentryCocoa _lib, int value) { + final _ret = _lib._objc_msgSend_206( + _lib._class_NSNumber1, _lib._sel_numberWithInt_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } -class NSIndexSet extends NSObject { - NSIndexSet._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + static NSNumber numberWithUnsignedInt_(SentryCocoa _lib, int value) { + final _ret = _lib._objc_msgSend_207( + _lib._class_NSNumber1, _lib._sel_numberWithUnsignedInt_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } - /// 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); + static NSNumber numberWithLong_(SentryCocoa _lib, int value) { + final _ret = _lib._objc_msgSend_208( + _lib._class_NSNumber1, _lib._sel_numberWithLong_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - /// Returns a [NSIndexSet] that wraps the given raw object pointer. - static NSIndexSet castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSIndexSet._(other, lib, retain: retain, release: release); + static NSNumber numberWithUnsignedLong_(SentryCocoa _lib, int value) { + final _ret = _lib._objc_msgSend_209( + _lib._class_NSNumber1, _lib._sel_numberWithUnsignedLong_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - /// 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 NSNumber numberWithLongLong_(SentryCocoa _lib, int value) { + final _ret = _lib._objc_msgSend_210( + _lib._class_NSNumber1, _lib._sel_numberWithLongLong_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - static NSIndexSet indexSet(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSIndexSet1, _lib._sel_indexSet1); - return NSIndexSet._(_ret, _lib, retain: true, release: true); + static NSNumber numberWithUnsignedLongLong_(SentryCocoa _lib, int value) { + final _ret = _lib._objc_msgSend_211( + _lib._class_NSNumber1, _lib._sel_numberWithUnsignedLongLong_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - static NSIndexSet indexSetWithIndex_(SentryCocoa _lib, int value) { - final _ret = _lib._objc_msgSend_60( - _lib._class_NSIndexSet1, _lib._sel_indexSetWithIndex_1, value); - return NSIndexSet._(_ret, _lib, retain: true, release: true); + static NSNumber numberWithFloat_(SentryCocoa _lib, double value) { + final _ret = _lib._objc_msgSend_212( + _lib._class_NSNumber1, _lib._sel_numberWithFloat_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - static NSIndexSet indexSetWithIndexesInRange_( - SentryCocoa _lib, _NSRange range) { - final _ret = _lib._objc_msgSend_85( - _lib._class_NSIndexSet1, _lib._sel_indexSetWithIndexesInRange_1, range); - return NSIndexSet._(_ret, _lib, retain: true, release: true); + static NSNumber numberWithDouble_(SentryCocoa _lib, double value) { + final _ret = _lib._objc_msgSend_213( + _lib._class_NSNumber1, _lib._sel_numberWithDouble_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - NSIndexSet initWithIndexesInRange_(_NSRange range) { - final _ret = - _lib._objc_msgSend_85(_id, _lib._sel_initWithIndexesInRange_1, range); - return NSIndexSet._(_ret, _lib, retain: true, release: true); + static NSNumber numberWithBool_(SentryCocoa _lib, bool value) { + final _ret = _lib._objc_msgSend_214( + _lib._class_NSNumber1, _lib._sel_numberWithBool_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - NSIndexSet initWithIndexSet_(NSIndexSet? indexSet) { - final _ret = _lib._objc_msgSend_86( - _id, _lib._sel_initWithIndexSet_1, indexSet?._id ?? ffi.nullptr); - return NSIndexSet._(_ret, _lib, retain: true, release: true); + static NSNumber numberWithInteger_(SentryCocoa _lib, int value) { + final _ret = _lib._objc_msgSend_208( + _lib._class_NSNumber1, _lib._sel_numberWithInteger_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - NSIndexSet initWithIndex_(int value) { - final _ret = _lib._objc_msgSend_60(_id, _lib._sel_initWithIndex_1, value); - return NSIndexSet._(_ret, _lib, retain: true, release: true); + static NSNumber numberWithUnsignedInteger_(SentryCocoa _lib, int value) { + final _ret = _lib._objc_msgSend_209( + _lib._class_NSNumber1, _lib._sel_numberWithUnsignedInteger_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - bool isEqualToIndexSet_(NSIndexSet? indexSet) { - return _lib._objc_msgSend_87( - _id, _lib._sel_isEqualToIndexSet_1, indexSet?._id ?? ffi.nullptr); + @override + NSNumber initWithBytes_objCType_( + ffi.Pointer value, ffi.Pointer type) { + final _ret = _lib._objc_msgSend_41( + _id, _lib._sel_initWithBytes_objCType_1, value, type); + return NSNumber._(_ret, _lib, retain: true, release: true); } - int get count { - return _lib._objc_msgSend_10(_id, _lib._sel_count1); + static NSValue valueWithBytes_objCType_(SentryCocoa _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); } - int get firstIndex { - return _lib._objc_msgSend_10(_id, _lib._sel_firstIndex1); + static NSValue value_withObjCType_(SentryCocoa _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); } - int get lastIndex { - return _lib._objc_msgSend_10(_id, _lib._sel_lastIndex1); + static NSValue valueWithNonretainedObject_( + SentryCocoa _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); } - int indexGreaterThanIndex_(int value) { - return _lib._objc_msgSend_88(_id, _lib._sel_indexGreaterThanIndex_1, value); + static NSValue valueWithPointer_( + SentryCocoa _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); } - int indexLessThanIndex_(int value) { - return _lib._objc_msgSend_88(_id, _lib._sel_indexLessThanIndex_1, value); + static NSValue valueWithRange_(SentryCocoa _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); } - int indexGreaterThanOrEqualToIndex_(int value) { - return _lib._objc_msgSend_88( - _id, _lib._sel_indexGreaterThanOrEqualToIndex_1, value); + static NSValue valueWithPoint_(SentryCocoa _lib, CGPoint point) { + final _ret = _lib._objc_msgSend_50( + _lib._class_NSNumber1, _lib._sel_valueWithPoint_1, point); + return NSValue._(_ret, _lib, retain: true, release: true); } - int indexLessThanOrEqualToIndex_(int value) { - return _lib._objc_msgSend_88( - _id, _lib._sel_indexLessThanOrEqualToIndex_1, value); + static NSValue valueWithSize_(SentryCocoa _lib, CGSize size) { + final _ret = _lib._objc_msgSend_51( + _lib._class_NSNumber1, _lib._sel_valueWithSize_1, size); + return NSValue._(_ret, _lib, retain: true, release: true); } - int getIndexes_maxCount_inIndexRange_( - ffi.Pointer indexBuffer, - int bufferSize, - ffi.Pointer<_NSRange> range) { - return _lib._objc_msgSend_89( - _id, - _lib._sel_getIndexes_maxCount_inIndexRange_1, - indexBuffer, - bufferSize, - range); + static NSValue valueWithRect_(SentryCocoa _lib, CGRect rect) { + final _ret = _lib._objc_msgSend_52( + _lib._class_NSNumber1, _lib._sel_valueWithRect_1, rect); + return NSValue._(_ret, _lib, retain: true, release: true); } - int countOfIndexesInRange_(_NSRange range) { - return _lib._objc_msgSend_90(_id, _lib._sel_countOfIndexesInRange_1, range); + static NSValue valueWithEdgeInsets_(SentryCocoa _lib, NSEdgeInsets insets) { + final _ret = _lib._objc_msgSend_53( + _lib._class_NSNumber1, _lib._sel_valueWithEdgeInsets_1, insets); + return NSValue._(_ret, _lib, retain: true, release: true); } - bool containsIndex_(int value) { - return _lib._objc_msgSend_91(_id, _lib._sel_containsIndex_1, value); + @override + NSNumber init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSNumber._(_ret, _lib, retain: true, release: true); } - bool containsIndexesInRange_(_NSRange range) { - return _lib._objc_msgSend_92( - _id, _lib._sel_containsIndexesInRange_1, range); + static NSNumber new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSNumber1, _lib._sel_new1); + return NSNumber._(_ret, _lib, retain: false, release: true); } - bool containsIndexes_(NSIndexSet? indexSet) { - return _lib._objc_msgSend_87( - _id, _lib._sel_containsIndexes_1, indexSet?._id ?? ffi.nullptr); + static NSNumber allocWithZone_(SentryCocoa _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); } - bool intersectsIndexesInRange_(_NSRange range) { - return _lib._objc_msgSend_92( - _id, _lib._sel_intersectsIndexesInRange_1, range); + static NSNumber alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSNumber1, _lib._sel_alloc1); + return NSNumber._(_ret, _lib, retain: false, release: true); } - void enumerateIndexesUsingBlock_( - ObjCBlock_ffiVoid_ffiUnsignedLong_bool block) { - _lib._objc_msgSend_93( - _id, _lib._sel_enumerateIndexesUsingBlock_1, block._id); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _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); } - void enumerateIndexesWithOptions_usingBlock_( - int opts, ObjCBlock_ffiVoid_ffiUnsignedLong_bool block) { - _lib._objc_msgSend_94(_id, - _lib._sel_enumerateIndexesWithOptions_usingBlock_1, opts, block._id); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSNumber1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - void enumerateIndexesInRange_options_usingBlock_( - _NSRange range, int opts, ObjCBlock_ffiVoid_ffiUnsignedLong_bool block) { - _lib._objc_msgSend_95( - _id, - _lib._sel_enumerateIndexesInRange_options_usingBlock_1, - range, - opts, - block._id); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSNumber1, _lib._sel_accessInstanceVariablesDirectly1); } - int indexPassingTest_(ObjCBlock_bool_ffiUnsignedLong_bool predicate) { - return _lib._objc_msgSend_96( - _id, _lib._sel_indexPassingTest_1, predicate._id); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSNumber1, _lib._sel_useStoredAccessor1); } - int indexWithOptions_passingTest_( - int opts, ObjCBlock_bool_ffiUnsignedLong_bool predicate) { - return _lib._objc_msgSend_97( - _id, _lib._sel_indexWithOptions_passingTest_1, opts, predicate._id); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSNumber1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - int indexInRange_options_passingTest_( - _NSRange range, int opts, ObjCBlock_bool_ffiUnsignedLong_bool predicate) { - return _lib._objc_msgSend_98( - _id, - _lib._sel_indexInRange_options_passingTest_1, - range, - opts, - predicate._id); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSNumber1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - NSIndexSet indexesPassingTest_( - ObjCBlock_bool_ffiUnsignedLong_bool predicate) { - final _ret = _lib._objc_msgSend_99( - _id, _lib._sel_indexesPassingTest_1, predicate._id); - return NSIndexSet._(_ret, _lib, retain: true, release: true); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSNumber1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - NSIndexSet indexesWithOptions_passingTest_( - int opts, ObjCBlock_bool_ffiUnsignedLong_bool predicate) { - final _ret = _lib._objc_msgSend_100( - _id, _lib._sel_indexesWithOptions_passingTest_1, opts, predicate._id); - return NSIndexSet._(_ret, _lib, retain: true, release: true); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSNumber1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSIndexSet indexesInRange_options_passingTest_( - _NSRange range, int opts, ObjCBlock_bool_ffiUnsignedLong_bool predicate) { - final _ret = _lib._objc_msgSend_101( - _id, - _lib._sel_indexesInRange_options_passingTest_1, - range, - opts, - predicate._id); - return NSIndexSet._(_ret, _lib, retain: true, release: true); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSNumber1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - void enumerateRangesUsingBlock_(ObjCBlock_ffiVoid_NSRange_bool block) { - _lib._objc_msgSend_102( - _id, _lib._sel_enumerateRangesUsingBlock_1, block._id); +class NSValue extends NSObject { + NSValue._(ffi.Pointer id, SentryCocoa 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); } - void enumerateRangesWithOptions_usingBlock_( - int opts, ObjCBlock_ffiVoid_NSRange_bool block) { - _lib._objc_msgSend_103(_id, - _lib._sel_enumerateRangesWithOptions_usingBlock_1, opts, block._id); + /// Returns a [NSValue] that wraps the given raw object pointer. + static NSValue castFromPointer(SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSValue._(other, lib, retain: retain, release: release); } - void enumerateRangesInRange_options_usingBlock_( - _NSRange range, int opts, ObjCBlock_ffiVoid_NSRange_bool block) { - _lib._objc_msgSend_104( - _id, - _lib._sel_enumerateRangesInRange_options_usingBlock_1, - range, - opts, - block._id); + /// 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_21(_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_41( + _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_42( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + static NSValue valueWithBytes_objCType_(SentryCocoa _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); + } + + static NSValue value_withObjCType_(SentryCocoa _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); + } + + static NSValue valueWithNonretainedObject_( + SentryCocoa _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); + } + + NSObject get nonretainedObjectValue { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_nonretainedObjectValue1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSValue valueWithPointer_( + SentryCocoa _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); + } + + ffi.Pointer get pointerValue { + return _lib._objc_msgSend_19(_id, _lib._sel_pointerValue1); + } + + bool isEqualToValue_(NSValue? value) { + return _lib._objc_msgSend_46( + _id, _lib._sel_isEqualToValue_1, value?._id ?? ffi.nullptr); + } + + void getValue_(ffi.Pointer value) { + _lib._objc_msgSend_47(_id, _lib._sel_getValue_1, value); + } + + static NSValue valueWithRange_(SentryCocoa _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); + } + + void getRangeValue(ffi.Pointer<_NSRange> stret) { + _lib._objc_msgSend_49(stret, _id, _lib._sel_rangeValue1); + } + + static NSValue valueWithPoint_(SentryCocoa _lib, CGPoint point) { + final _ret = _lib._objc_msgSend_50( + _lib._class_NSValue1, _lib._sel_valueWithPoint_1, point); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + static NSValue valueWithSize_(SentryCocoa _lib, CGSize size) { + final _ret = _lib._objc_msgSend_51( + _lib._class_NSValue1, _lib._sel_valueWithSize_1, size); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + static NSValue valueWithRect_(SentryCocoa _lib, CGRect rect) { + final _ret = _lib._objc_msgSend_52( + _lib._class_NSValue1, _lib._sel_valueWithRect_1, rect); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + static NSValue valueWithEdgeInsets_(SentryCocoa _lib, NSEdgeInsets insets) { + final _ret = _lib._objc_msgSend_53( + _lib._class_NSValue1, _lib._sel_valueWithEdgeInsets_1, insets); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + void getPointValue(ffi.Pointer stret) { + _lib._objc_msgSend_54(stret, _id, _lib._sel_pointValue1); + } + + void getSizeValue(ffi.Pointer stret) { + _lib._objc_msgSend_55(stret, _id, _lib._sel_sizeValue1); + } + + void getRectValue(ffi.Pointer stret) { + _lib._objc_msgSend_56(stret, _id, _lib._sel_rectValue1); + } + + void getEdgeInsetsValue(ffi.Pointer stret) { + _lib._objc_msgSend_57(stret, _id, _lib._sel_edgeInsetsValue1); } @override - NSIndexSet init() { + NSValue init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSIndexSet._(_ret, _lib, retain: true, release: true); + return NSValue._(_ret, _lib, retain: true, release: true); } - static NSIndexSet new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSIndexSet1, _lib._sel_new1); - return NSIndexSet._(_ret, _lib, retain: false, release: true); + static NSValue new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSValue1, _lib._sel_new1); + return NSValue._(_ret, _lib, retain: false, release: true); } - static NSIndexSet allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static NSValue allocWithZone_(SentryCocoa _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); + _lib._class_NSValue1, _lib._sel_allocWithZone_1, zone); + return NSValue._(_ret, _lib, retain: false, release: true); } - static NSIndexSet alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSIndexSet1, _lib._sel_alloc1); - return NSIndexSet._(_ret, _lib, retain: false, release: true); + static NSValue alloc(SentryCocoa _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_( @@ -37317,7 +38022,7 @@ class NSIndexSet extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSIndexSet1, + _lib._class_NSValue1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -37326,24 +38031,24 @@ class NSIndexSet extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSIndexSet1, + _lib._objc_msgSend_15(_lib._class_NSValue1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSIndexSet1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSValue1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSIndexSet1, _lib._sel_useStoredAccessor1); + _lib._class_NSValue1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSIndexSet1, + _lib._class_NSValue1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -37352,7 +38057,7 @@ class NSIndexSet extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSIndexSet1, + _lib._class_NSValue1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -37360,7 +38065,7 @@ class NSIndexSet extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSIndexSet1, + _lib._class_NSValue1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -37368,821 +38073,6028 @@ class NSIndexSet extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSIndexSet1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSValue1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSIndexSet1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSValue1, _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) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.UnsignedLong arg0, ffi.Pointer arg1)>>() - .asFunction arg1)>()( - arg0, arg1); -} +final class CGPoint extends ffi.Struct { + @ffi.Double() + external double x; -final _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureRegistry = - {}; -int _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_registerClosure( - Function fn) { - final id = ++_ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureRegistryIndex; - _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); + @ffi.Double() + external double y; } -void _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { - return (_ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureRegistry[block - .ref - .target - .address] as void Function(int, ffi.Pointer))(arg0, arg1); -} +final class CGSize extends ffi.Struct { + @ffi.Double() + external double width; -class ObjCBlock_ffiVoid_ffiUnsignedLong_bool extends _ObjCBlockBase { - ObjCBlock_ffiVoid_ffiUnsignedLong_bool._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); + @ffi.Double() + external double height; +} - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_ffiUnsignedLong_bool.fromFunctionPointer( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; +final class CGRect extends ffi.Struct { + external CGPoint origin; - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_ffiUnsignedLong_bool.fromFunction( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(int arg0, ffi.Pointer arg1) { - return _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> block, int arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } + external CGSize size; } -abstract class NSEnumerationOptions { - static const int NSEnumerationConcurrent = 1; - static const int NSEnumerationReverse = 2; -} +final class NSEdgeInsets extends ffi.Struct { + @ffi.Double() + external double top; -bool _ObjCBlock_bool_ffiUnsignedLong_bool_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); -} + @ffi.Double() + external double left; -final _ObjCBlock_bool_ffiUnsignedLong_bool_closureRegistry = {}; -int _ObjCBlock_bool_ffiUnsignedLong_bool_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_bool_ffiUnsignedLong_bool_registerClosure( - Function fn) { - final id = ++_ObjCBlock_bool_ffiUnsignedLong_bool_closureRegistryIndex; - _ObjCBlock_bool_ffiUnsignedLong_bool_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + @ffi.Double() + external double bottom; -bool _ObjCBlock_bool_ffiUnsignedLong_bool_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { - return (_ObjCBlock_bool_ffiUnsignedLong_bool_closureRegistry[block.ref.target - .address] as bool Function(int, ffi.Pointer))(arg0, arg1); + @ffi.Double() + external double right; } -class ObjCBlock_bool_ffiUnsignedLong_bool extends _ObjCBlockBase { - ObjCBlock_bool_ffiUnsignedLong_bool._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); +class NSArray extends NSObject { + NSArray._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - /// Creates a block from a C function pointer. - ObjCBlock_bool_ffiUnsignedLong_bool.fromFunctionPointer( - SentryCocoa 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> block, - ffi.UnsignedLong arg0, - ffi.Pointer arg1)>( - _ObjCBlock_bool_ffiUnsignedLong_bool_fnPtrTrampoline, - false) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + /// 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); + } - /// Creates a block from a Dart function. - ObjCBlock_bool_ffiUnsignedLong_bool.fromFunction( - SentryCocoa lib, bool Function(int arg0, ffi.Pointer arg1) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.UnsignedLong arg0, - ffi.Pointer arg1)>( - _ObjCBlock_bool_ffiUnsignedLong_bool_closureTrampoline, - false) - .cast(), - _ObjCBlock_bool_ffiUnsignedLong_bool_registerClosure(fn)), - 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); + /// Returns a [NSArray] that wraps the given raw object pointer. + static NSArray castFromPointer(SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSArray._(other, lib, retain: retain, release: release); } -} -void _ObjCBlock_ffiVoid_NSRange_bool_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); -} + /// 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); + } -final _ObjCBlock_ffiVoid_NSRange_bool_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSRange_bool_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSRange_bool_registerClosure( - Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSRange_bool_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSRange_bool_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + int get count { + return _lib._objc_msgSend_10(_id, _lib._sel_count1); + } -void _ObjCBlock_ffiVoid_NSRange_bool_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, _NSRange arg0, ffi.Pointer arg1) { - return (_ObjCBlock_ffiVoid_NSRange_bool_closureRegistry[block.ref.target - .address] as void Function(_NSRange, ffi.Pointer))(arg0, arg1); -} + NSObject objectAtIndex_(int index) { + final _ret = _lib._objc_msgSend_60(_id, _lib._sel_objectAtIndex_1, index); + return NSObject._(_ret, _lib, retain: true, release: true); + } -class ObjCBlock_ffiVoid_NSRange_bool extends _ObjCBlockBase { + @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_61( + _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_42( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray arrayByAddingObject_(NSObject anObject) { + final _ret = _lib._objc_msgSend_62( + _id, _lib._sel_arrayByAddingObject_1, anObject._id); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray arrayByAddingObjectsFromArray_(NSArray? otherArray) { + final _ret = _lib._objc_msgSend_63( + _id, + _lib._sel_arrayByAddingObjectsFromArray_1, + otherArray?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSString componentsJoinedByString_(NSString? separator) { + final _ret = _lib._objc_msgSend_64(_id, + _lib._sel_componentsJoinedByString_1, separator?._id ?? ffi.nullptr); + 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_20(_id, _lib._sel_description1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString descriptionWithLocale_(NSObject locale) { + final _ret = _lib._objc_msgSend_65( + _id, _lib._sel_descriptionWithLocale_1, locale._id); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString descriptionWithLocale_indent_(NSObject locale, int level) { + final _ret = _lib._objc_msgSend_66( + _id, _lib._sel_descriptionWithLocale_indent_1, locale._id, level); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSObject firstObjectCommonWithArray_(NSArray? otherArray) { + final _ret = _lib._objc_msgSend_67(_id, + _lib._sel_firstObjectCommonWithArray_1, otherArray?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + void getObjects_range_( + ffi.Pointer> objects, _NSRange range) { + _lib._objc_msgSend_68(_id, _lib._sel_getObjects_range_1, objects, range); + } + + int indexOfObject_(NSObject anObject) { + return _lib._objc_msgSend_69(_id, _lib._sel_indexOfObject_1, anObject._id); + } + + int indexOfObject_inRange_(NSObject anObject, _NSRange range) { + return _lib._objc_msgSend_70( + _id, _lib._sel_indexOfObject_inRange_1, anObject._id, range); + } + + int indexOfObjectIdenticalTo_(NSObject anObject) { + return _lib._objc_msgSend_69( + _id, _lib._sel_indexOfObjectIdenticalTo_1, anObject._id); + } + + int indexOfObjectIdenticalTo_inRange_(NSObject anObject, _NSRange range) { + return _lib._objc_msgSend_70( + _id, _lib._sel_indexOfObjectIdenticalTo_inRange_1, anObject._id, range); + } + + bool isEqualToArray_(NSArray? otherArray) { + return _lib._objc_msgSend_71( + _id, _lib._sel_isEqualToArray_1, otherArray?._id ?? ffi.nullptr); + } + + NSObject get firstObject { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_firstObject1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject get lastObject { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_lastObject1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSEnumerator objectEnumerator() { + final _ret = _lib._objc_msgSend_72(_id, _lib._sel_objectEnumerator1); + return NSEnumerator._(_ret, _lib, retain: true, release: true); + } + + NSEnumerator reverseObjectEnumerator() { + final _ret = _lib._objc_msgSend_72(_id, _lib._sel_reverseObjectEnumerator1); + return NSEnumerator._(_ret, _lib, retain: true, release: true); + } + + 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); + } + + 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_73( + _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_74( + _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_75( + _id, _lib._sel_sortedArrayUsingSelector_1, comparator); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray subarrayWithRange_(_NSRange range) { + final _ret = + _lib._objc_msgSend_76(_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_83( + _id, _lib._sel_writeToURL_error_1, url?._id ?? ffi.nullptr, 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_84( + _id, + _lib._sel_makeObjectsPerformSelector_withObject_1, + aSelector, + argument._id); + } + + NSArray objectsAtIndexes_(NSIndexSet? indexes) { + final _ret = _lib._objc_msgSend_105( + _id, _lib._sel_objectsAtIndexes_1, indexes?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSObject objectAtIndexedSubscript_(int idx) { + final _ret = + _lib._objc_msgSend_60(_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_106( + _id, _lib._sel_enumerateObjectsUsingBlock_1, block._id); + } + + void enumerateObjectsWithOptions_usingBlock_( + int opts, ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool block) { + _lib._objc_msgSend_107(_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_108( + _id, + _lib._sel_enumerateObjectsAtIndexes_options_usingBlock_1, + s?._id ?? ffi.nullptr, + opts, + block._id); + } + + int indexOfObjectPassingTest_( + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_109( + _id, _lib._sel_indexOfObjectPassingTest_1, predicate._id); + } + + int indexOfObjectWithOptions_passingTest_( + int opts, ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_110(_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_111( + _id, + _lib._sel_indexOfObjectAtIndexes_options_passingTest_1, + s?._id ?? ffi.nullptr, + opts, + predicate._id); + } + + NSIndexSet indexesOfObjectsPassingTest_( + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + final _ret = _lib._objc_msgSend_112( + _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_113( + _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_114( + _id, + _lib._sel_indexesOfObjectsAtIndexes_options_passingTest_1, + s?._id ?? ffi.nullptr, + opts, + predicate._id); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + NSArray sortedArrayUsingComparator_( + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + final _ret = _lib._objc_msgSend_115( + _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_116(_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_117( + _id, + _lib._sel_indexOfObject_inSortedRange_options_usingComparator_1, + obj._id, + r, + opts, + cmp._id); + } + + static NSArray array(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSArray1, _lib._sel_array1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray arrayWithObject_(SentryCocoa _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); + } + + static NSArray arrayWithObjects_count_( + SentryCocoa _lib, ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_61( + _lib._class_NSArray1, _lib._sel_arrayWithObjects_count_1, objects, cnt); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray arrayWithObjects_(SentryCocoa _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); + } + + static NSArray arrayWithArray_(SentryCocoa _lib, NSArray? array) { + final _ret = _lib._objc_msgSend_67(_lib._class_NSArray1, + _lib._sel_arrayWithArray_1, array?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + 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); + } + + NSArray initWithArray_(NSArray? array) { + final _ret = _lib._objc_msgSend_67( + _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray initWithArray_copyItems_(NSArray? array, bool flag) { + final _ret = _lib._objc_msgSend_118(_id, + _lib._sel_initWithArray_copyItems_1, array?._id ?? ffi.nullptr, flag); + return NSArray._(_ret, _lib, retain: false, release: true); + } + + NSArray initWithContentsOfURL_error_( + NSURL? url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_119( + _id, + _lib._sel_initWithContentsOfURL_error_1, + url?._id ?? ffi.nullptr, + error); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray arrayWithContentsOfURL_error_(SentryCocoa _lib, NSURL? url, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_119( + _lib._class_NSArray1, + _lib._sel_arrayWithContentsOfURL_error_1, + url?._id ?? ffi.nullptr, + error); + return 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_120( + _id, + _lib._sel_differenceFromArray_withOptions_usingEquivalenceTest_1, + other?._id ?? ffi.nullptr, + options, + block._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject differenceFromArray_withOptions_(NSArray? other, int options) { + final _ret = _lib._objc_msgSend_121( + _id, + _lib._sel_differenceFromArray_withOptions_1, + other?._id ?? ffi.nullptr, + options); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject differenceFromArray_(NSArray? other) { + final _ret = _lib._objc_msgSend_67( + _id, _lib._sel_differenceFromArray_1, other?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSArray arrayByApplyingDifference_(NSObject? difference) { + final _ret = _lib._objc_msgSend_62(_id, + _lib._sel_arrayByApplyingDifference_1, difference?._id ?? ffi.nullptr); + return 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_(SentryCocoa _lib, NSString? path) { + final _ret = _lib._objc_msgSend_123(_lib._class_NSArray1, + _lib._sel_arrayWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray arrayWithContentsOfURL_(SentryCocoa _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_124(_lib._class_NSArray1, + _lib._sel_arrayWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray initWithContentsOfFile_(NSString? path) { + final _ret = _lib._objc_msgSend_123( + _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray initWithContentsOfURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_124( + _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSArray._(_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 writeToURL_atomically_(NSURL? url, bool atomically) { + return _lib._objc_msgSend_125(_id, _lib._sel_writeToURL_atomically_1, + url?._id ?? ffi.nullptr, atomically); + } + + NSArray pathsMatchingExtensions_(NSArray? filterTypes) { + final _ret = _lib._objc_msgSend_63(_id, _lib._sel_pathsMatchingExtensions_1, + filterTypes?._id ?? ffi.nullptr); + return NSArray._(_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); + } + + @override + void setValue_forKey_(NSObject value, NSString? key) { + _lib._objc_msgSend_126( + _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); + } + + 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 ?? ffi.nullptr, + indexes?._id ?? ffi.nullptr, + keyPath?._id ?? ffi.nullptr, + 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 ?? ffi.nullptr, + indexes?._id ?? ffi.nullptr, + keyPath?._id ?? ffi.nullptr, + context); + } + + void removeObserver_fromObjectsAtIndexes_forKeyPath_( + NSObject? observer, NSIndexSet? indexes, NSString? keyPath) { + _lib._objc_msgSend_129( + _id, + _lib._sel_removeObserver_fromObjectsAtIndexes_forKeyPath_1, + observer?._id ?? ffi.nullptr, + indexes?._id ?? ffi.nullptr, + keyPath?._id ?? ffi.nullptr); + } + + @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 ?? ffi.nullptr, + keyPath?._id ?? ffi.nullptr, + 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 ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr, context); + } + + @override + void removeObserver_forKeyPath_(NSObject? observer, NSString? keyPath) { + _lib._objc_msgSend_132(_id, _lib._sel_removeObserver_forKeyPath_1, + observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); + } + + NSArray sortedArrayUsingDescriptors_(NSArray? sortDescriptors) { + final _ret = _lib._objc_msgSend_63( + _id, + _lib._sel_sortedArrayUsingDescriptors_1, + sortDescriptors?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray filteredArrayUsingPredicate_(NSPredicate? predicate) { + final _ret = _lib._objc_msgSend_201(_id, + _lib._sel_filteredArrayUsingPredicate_1, predicate?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSArray1, _lib._sel_new1); + return NSArray._(_ret, _lib, retain: false, release: true); + } + + static NSArray allocWithZone_(SentryCocoa _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(SentryCocoa _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_( + SentryCocoa _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); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSArray1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSArray1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSArray1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSArray1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSArray1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSArray1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSArray1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _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, SentryCocoa 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(SentryCocoa 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_77( + _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_( + SentryCocoa _lib, NSString domain, int code, NSObject? dict) { + final _ret = _lib._objc_msgSend_77( + _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_20(_id, _lib._sel_domain1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + int get code { + return _lib._objc_msgSend_78(_id, _lib._sel_code1); + } + + 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); + } + + 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); + } + + 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); + } + + 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); + } + + NSArray? get localizedRecoveryOptions { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_localizedRecoveryOptions1); + return _ret.address == 0 + ? null + : NSArray._(_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); + } + + NSString? get helpAnchor { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_helpAnchor1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSArray? get underlyingErrors { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_underlyingErrors1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + static void setUserInfoValueProviderForDomain_provider_(SentryCocoa _lib, + NSString errorDomain, ObjCBlock_ObjCObject_NSError_NSString provider) { + _lib._objc_msgSend_80( + _lib._class_NSError1, + _lib._sel_setUserInfoValueProviderForDomain_provider_1, + errorDomain._id, + provider._id); + } + + static ObjCBlock_ObjCObject_NSError_NSString userInfoValueProviderForDomain_( + SentryCocoa _lib, + NSError? err, + NSString userInfoKey, + NSString errorDomain) { + final _ret = _lib._objc_msgSend_81( + _lib._class_NSError1, + _lib._sel_userInfoValueProviderForDomain_1, + err?._id ?? ffi.nullptr, + userInfoKey._id, + errorDomain._id); + return ObjCBlock_ObjCObject_NSError_NSString._(_ret, _lib); + } + + @override + NSError init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSError._(_ret, _lib, retain: true, release: true); + } + + static NSError new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSError1, _lib._sel_new1); + return NSError._(_ret, _lib, retain: false, release: true); + } + + static NSError allocWithZone_(SentryCocoa _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(SentryCocoa _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_( + SentryCocoa _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); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSError1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSError1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSError1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSError1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSError1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSError1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSError1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _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 SentryCocoa _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_ObjCObject_NSError_NSString_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_ObjCObject_NSError_NSString_closureRegistry = + {}; +int _ObjCBlock_ObjCObject_NSError_NSString_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ObjCObject_NSError_NSString_registerClosure( + Function 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) { + return (_ObjCBlock_ObjCObject_NSError_NSString_closureRegistry[ + block.ref.target.address] + as ffi.Pointer Function( + ffi.Pointer, ffi.Pointer))(arg0, arg1); +} + +class ObjCBlock_ObjCObject_NSError_NSString extends _ObjCBlockBase { + ObjCBlock_ObjCObject_NSError_NSString._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ObjCObject_NSError_NSString.fromFunctionPointer( + SentryCocoa 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_ObjCObject_NSError_NSString_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ObjCObject_NSError_NSString.fromFunction( + SentryCocoa 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_ObjCObject_NSError_NSString_closureTrampoline) + .cast(), + _ObjCBlock_ObjCObject_NSError_NSString_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); + } +} + +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, SentryCocoa 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( + SentryCocoa 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(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSIndexSet1, _lib._sel_indexSet1); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + static NSIndexSet indexSetWithIndex_(SentryCocoa _lib, int value) { + final _ret = _lib._objc_msgSend_60( + _lib._class_NSIndexSet1, _lib._sel_indexSetWithIndex_1, value); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + static NSIndexSet indexSetWithIndexesInRange_( + SentryCocoa _lib, _NSRange range) { + final _ret = _lib._objc_msgSend_85( + _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_85(_id, _lib._sel_initWithIndexesInRange_1, range); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + NSIndexSet initWithIndexSet_(NSIndexSet? indexSet) { + final _ret = _lib._objc_msgSend_86( + _id, _lib._sel_initWithIndexSet_1, indexSet?._id ?? ffi.nullptr); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + NSIndexSet initWithIndex_(int value) { + final _ret = _lib._objc_msgSend_60(_id, _lib._sel_initWithIndex_1, value); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + bool isEqualToIndexSet_(NSIndexSet? indexSet) { + return _lib._objc_msgSend_87( + _id, _lib._sel_isEqualToIndexSet_1, indexSet?._id ?? ffi.nullptr); + } + + 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_88(_id, _lib._sel_indexGreaterThanIndex_1, value); + } + + int indexLessThanIndex_(int value) { + return _lib._objc_msgSend_88(_id, _lib._sel_indexLessThanIndex_1, value); + } + + int indexGreaterThanOrEqualToIndex_(int value) { + return _lib._objc_msgSend_88( + _id, _lib._sel_indexGreaterThanOrEqualToIndex_1, value); + } + + int indexLessThanOrEqualToIndex_(int value) { + return _lib._objc_msgSend_88( + _id, _lib._sel_indexLessThanOrEqualToIndex_1, value); + } + + int getIndexes_maxCount_inIndexRange_( + ffi.Pointer indexBuffer, + int bufferSize, + ffi.Pointer<_NSRange> range) { + return _lib._objc_msgSend_89( + _id, + _lib._sel_getIndexes_maxCount_inIndexRange_1, + indexBuffer, + bufferSize, + range); + } + + int countOfIndexesInRange_(_NSRange range) { + return _lib._objc_msgSend_90(_id, _lib._sel_countOfIndexesInRange_1, range); + } + + bool containsIndex_(int value) { + return _lib._objc_msgSend_91(_id, _lib._sel_containsIndex_1, value); + } + + bool containsIndexesInRange_(_NSRange range) { + return _lib._objc_msgSend_92( + _id, _lib._sel_containsIndexesInRange_1, range); + } + + bool containsIndexes_(NSIndexSet? indexSet) { + return _lib._objc_msgSend_87( + _id, _lib._sel_containsIndexes_1, indexSet?._id ?? ffi.nullptr); + } + + bool intersectsIndexesInRange_(_NSRange range) { + return _lib._objc_msgSend_92( + _id, _lib._sel_intersectsIndexesInRange_1, range); + } + + void enumerateIndexesUsingBlock_( + ObjCBlock_ffiVoid_ffiUnsignedLong_bool block) { + _lib._objc_msgSend_93( + _id, _lib._sel_enumerateIndexesUsingBlock_1, block._id); + } + + void enumerateIndexesWithOptions_usingBlock_( + int opts, ObjCBlock_ffiVoid_ffiUnsignedLong_bool block) { + _lib._objc_msgSend_94(_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_95( + _id, + _lib._sel_enumerateIndexesInRange_options_usingBlock_1, + range, + opts, + block._id); + } + + int indexPassingTest_(ObjCBlock_bool_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_96( + _id, _lib._sel_indexPassingTest_1, predicate._id); + } + + int indexWithOptions_passingTest_( + int opts, ObjCBlock_bool_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_97( + _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_98( + _id, + _lib._sel_indexInRange_options_passingTest_1, + range, + opts, + predicate._id); + } + + NSIndexSet indexesPassingTest_( + ObjCBlock_bool_ffiUnsignedLong_bool predicate) { + final _ret = _lib._objc_msgSend_99( + _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_100( + _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_101( + _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_102( + _id, _lib._sel_enumerateRangesUsingBlock_1, block._id); + } + + void enumerateRangesWithOptions_usingBlock_( + int opts, ObjCBlock_ffiVoid_NSRange_bool block) { + _lib._objc_msgSend_103(_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_104( + _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(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSIndexSet1, _lib._sel_new1); + return NSIndexSet._(_ret, _lib, retain: false, release: true); + } + + static NSIndexSet allocWithZone_( + SentryCocoa _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(SentryCocoa _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_( + SentryCocoa _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); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSIndexSet1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSIndexSet1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSIndexSet1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSIndexSet1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSIndexSet1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSIndexSet1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSIndexSet1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _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) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.UnsignedLong arg0, ffi.Pointer arg1)>>() + .asFunction arg1)>()( + arg0, arg1); +} + +final _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_registerClosure( + Function 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) { + return (_ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureRegistry[block + .ref + .target + .address] as void Function(int, ffi.Pointer))(arg0, arg1); +} + +class ObjCBlock_ffiVoid_ffiUnsignedLong_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ffiUnsignedLong_bool._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_ffiUnsignedLong_bool.fromFunctionPointer( + SentryCocoa 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)>( + _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_ffiUnsignedLong_bool.fromFunction( + SentryCocoa 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)>( + _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(int arg0, ffi.Pointer arg1) { + return _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> block, int arg0, + ffi.Pointer arg1)>()(_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) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.UnsignedLong arg0, ffi.Pointer arg1)>>() + .asFunction arg1)>()( + arg0, arg1); +} + +final _ObjCBlock_bool_ffiUnsignedLong_bool_closureRegistry = {}; +int _ObjCBlock_bool_ffiUnsignedLong_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_bool_ffiUnsignedLong_bool_registerClosure( + Function 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) { + return (_ObjCBlock_bool_ffiUnsignedLong_bool_closureRegistry[block.ref.target + .address] as bool Function(int, ffi.Pointer))(arg0, arg1); +} + +class ObjCBlock_bool_ffiUnsignedLong_bool extends _ObjCBlockBase { + ObjCBlock_bool_ffiUnsignedLong_bool._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_bool_ffiUnsignedLong_bool.fromFunctionPointer( + SentryCocoa 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> block, + ffi.UnsignedLong arg0, + ffi.Pointer arg1)>( + _ObjCBlock_bool_ffiUnsignedLong_bool_fnPtrTrampoline, + false) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_bool_ffiUnsignedLong_bool.fromFunction( + SentryCocoa lib, bool Function(int arg0, ffi.Pointer arg1) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.UnsignedLong arg0, + ffi.Pointer arg1)>( + _ObjCBlock_bool_ffiUnsignedLong_bool_closureTrampoline, + false) + .cast(), + _ObjCBlock_bool_ffiUnsignedLong_bool_registerClosure(fn)), + 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); + } +} + +void _ObjCBlock_ffiVoid_NSRange_bool_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 _ObjCBlock_ffiVoid_NSRange_bool_closureRegistry = {}; +int _ObjCBlock_ffiVoid_NSRange_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSRange_bool_registerClosure( + Function 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) { + return (_ObjCBlock_ffiVoid_NSRange_bool_closureRegistry[block.ref.target + .address] as void Function(_NSRange, ffi.Pointer))(arg0, arg1); +} + +class ObjCBlock_ffiVoid_NSRange_bool extends _ObjCBlockBase { ObjCBlock_ffiVoid_NSRange_bool._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSRange_bool.fromFunctionPointer( + ObjCBlock_ffiVoid_NSRange_bool.fromFunctionPointer( + SentryCocoa 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> block, + _NSRange arg0, ffi.Pointer arg1)>( + _ObjCBlock_ffiVoid_NSRange_bool_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_NSRange_bool.fromFunction(SentryCocoa 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)>( + _ObjCBlock_ffiVoid_NSRange_bool_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSRange_bool_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(_NSRange arg0, ffi.Pointer arg1) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, _NSRange arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock> block, _NSRange arg0, + ffi.Pointer arg1)>()(_id, arg0, arg1); + } +} + +void _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_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 _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_registerClosure( + Function 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) { + return (_ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureRegistry[ + block.ref.target.address] + as void Function(ffi.Pointer, int, + ffi.Pointer))(arg0, arg1, arg2); +} + +class ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool.fromFunctionPointer( + SentryCocoa 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> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2)>( + _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool.fromFunction( + SentryCocoa 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.UnsignedLong arg1, + ffi.Pointer arg2)>( + _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_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.UnsignedLong arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + } +} + +bool _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_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 _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureRegistry = + {}; +int _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_registerClosure( + Function 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) { + return (_ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureRegistry[ + block.ref.target.address] + as bool Function(ffi.Pointer, int, + ffi.Pointer))(arg0, arg1, arg2); +} + +class ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool extends _ObjCBlockBase { + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool.fromFunctionPointer( + SentryCocoa 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)>( + _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_fnPtrTrampoline, + false) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool.fromFunction( + SentryCocoa lib, + bool Function(ffi.Pointer arg0, int arg1, + ffi.Pointer arg2) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2)>( + _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureTrampoline, + false) + .cast(), + _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_registerClosure( + fn)), + 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); + } +} + +int _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + int Function(ffi.Pointer arg0, + ffi.Pointer arg1)>()(arg0, arg1); +} + +final _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureRegistry = + {}; +int _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureRegistryIndex = + 0; +ffi.Pointer + _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_registerClosure( + Function 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) { + return (_ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureRegistry[ + block.ref.target.address] + as int Function( + ffi.Pointer, ffi.Pointer))(arg0, arg1); +} + +class ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject + extends _ObjCBlockBase { + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject.fromFunctionPointer( + SentryCocoa 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> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_fnPtrTrampoline, + 0) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject.fromFunction( + SentryCocoa lib, + int Function(ffi.Pointer arg0, ffi.Pointer arg1) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Int32 Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureTrampoline, + 0) + .cast(), + _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_registerClosure( + fn)), + 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); + } +} + +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; +} + +abstract class NSOrderedCollectionDifferenceCalculationOptions { + static const int NSOrderedCollectionDifferenceCalculationOmitInsertedObjects = + 1; + static const int NSOrderedCollectionDifferenceCalculationOmitRemovedObjects = + 2; + static const int NSOrderedCollectionDifferenceCalculationInferMoves = 4; +} + +bool _ObjCBlock_bool_ObjCObject_ObjCObject_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 _ObjCBlock_bool_ObjCObject_ObjCObject_closureRegistry = {}; +int _ObjCBlock_bool_ObjCObject_ObjCObject_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_bool_ObjCObject_ObjCObject_registerClosure( + Function fn) { + final id = ++_ObjCBlock_bool_ObjCObject_ObjCObject_closureRegistryIndex; + _ObjCBlock_bool_ObjCObject_ObjCObject_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +bool _ObjCBlock_bool_ObjCObject_ObjCObject_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) { + return (_ObjCBlock_bool_ObjCObject_ObjCObject_closureRegistry[ + block.ref.target.address] + as bool Function( + ffi.Pointer, ffi.Pointer))(arg0, arg1); +} + +class ObjCBlock_bool_ObjCObject_ObjCObject extends _ObjCBlockBase { + ObjCBlock_bool_ObjCObject_ObjCObject._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_bool_ObjCObject_ObjCObject.fromFunctionPointer( + SentryCocoa 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)>( + _ObjCBlock_bool_ObjCObject_ObjCObject_fnPtrTrampoline, + false) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_bool_ObjCObject_ObjCObject.fromFunction( + SentryCocoa 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)>( + _ObjCBlock_bool_ObjCObject_ObjCObject_closureTrampoline, + false) + .cast(), + _ObjCBlock_bool_ObjCObject_ObjCObject_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); + } +} + +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, SentryCocoa 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 [NSPredicate] that wraps the given raw object pointer. + static NSPredicate castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSPredicate._(other, lib, retain: retain, release: release); + } + + /// 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); + } + + static NSPredicate predicateWithFormat_argumentArray_( + SentryCocoa _lib, NSString? predicateFormat, NSArray? arguments) { + final _ret = _lib._objc_msgSend_133( + _lib._class_NSPredicate1, + _lib._sel_predicateWithFormat_argumentArray_1, + predicateFormat?._id ?? ffi.nullptr, + arguments?._id ?? ffi.nullptr); + return NSPredicate._(_ret, _lib, retain: true, release: true); + } + + static NSPredicate predicateWithFormat_( + SentryCocoa _lib, NSString? predicateFormat) { + final _ret = _lib._objc_msgSend_134(_lib._class_NSPredicate1, + _lib._sel_predicateWithFormat_1, predicateFormat?._id ?? ffi.nullptr); + return NSPredicate._(_ret, _lib, retain: true, release: true); + } + + static NSPredicate predicateWithFormat_arguments_(SentryCocoa _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 ?? ffi.nullptr, + argList); + return NSPredicate._(_ret, _lib, retain: true, release: true); + } + + static NSPredicate predicateFromMetadataQueryString_( + SentryCocoa _lib, NSString? queryString) { + final _ret = _lib._objc_msgSend_134( + _lib._class_NSPredicate1, + _lib._sel_predicateFromMetadataQueryString_1, + queryString?._id ?? ffi.nullptr); + return NSPredicate._(_ret, _lib, retain: true, release: true); + } + + static NSPredicate predicateWithValue_(SentryCocoa _lib, bool value) { + final _ret = _lib._objc_msgSend_136( + _lib._class_NSPredicate1, _lib._sel_predicateWithValue_1, value); + return NSPredicate._(_ret, _lib, retain: true, release: true); + } + + static NSPredicate predicateWithBlock_( + SentryCocoa _lib, ObjCBlock_bool_ObjCObject_NSDictionary block) { + final _ret = _lib._objc_msgSend_199( + _lib._class_NSPredicate1, _lib._sel_predicateWithBlock_1, block._id); + return NSPredicate._(_ret, _lib, retain: true, release: true); + } + + NSString? get predicateFormat { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_predicateFormat1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSPredicate predicateWithSubstitutionVariables_(NSDictionary? variables) { + final _ret = _lib._objc_msgSend_149( + _id, + _lib._sel_predicateWithSubstitutionVariables_1, + variables?._id ?? ffi.nullptr); + return NSPredicate._(_ret, _lib, retain: true, release: true); + } + + bool evaluateWithObject_(NSObject object) { + return _lib._objc_msgSend_0( + _id, _lib._sel_evaluateWithObject_1, object._id); + } + + bool evaluateWithObject_substitutionVariables_( + NSObject object, NSDictionary? bindings) { + return _lib._objc_msgSend_200( + _id, + _lib._sel_evaluateWithObject_substitutionVariables_1, + object._id, + bindings?._id ?? ffi.nullptr); + } + + void allowEvaluation() { + _lib._objc_msgSend_1(_id, _lib._sel_allowEvaluation1); + } + + @override + NSPredicate init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSPredicate._(_ret, _lib, retain: true, release: true); + } + + static NSPredicate new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSPredicate1, _lib._sel_new1); + return NSPredicate._(_ret, _lib, retain: false, release: true); + } + + static NSPredicate allocWithZone_( + SentryCocoa _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 NSPredicate alloc(SentryCocoa _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_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSPredicate1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSPredicate1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSPredicate1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSPredicate1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSPredicate1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSPredicate1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSPredicate1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSPredicate1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSPredicate1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +final class __va_list_tag extends ffi.Struct { + @ffi.UnsignedInt() + external int gp_offset; + + @ffi.UnsignedInt() + external int fp_offset; + + external ffi.Pointer overflow_arg_area; + + external ffi.Pointer reg_save_area; +} + +bool _ObjCBlock_bool_ObjCObject_NSDictionary_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 _ObjCBlock_bool_ObjCObject_NSDictionary_closureRegistry = + {}; +int _ObjCBlock_bool_ObjCObject_NSDictionary_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_bool_ObjCObject_NSDictionary_registerClosure( + Function fn) { + final id = ++_ObjCBlock_bool_ObjCObject_NSDictionary_closureRegistryIndex; + _ObjCBlock_bool_ObjCObject_NSDictionary_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +bool _ObjCBlock_bool_ObjCObject_NSDictionary_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) { + return (_ObjCBlock_bool_ObjCObject_NSDictionary_closureRegistry[ + block.ref.target.address] + as bool Function( + ffi.Pointer, ffi.Pointer))(arg0, arg1); +} + +class ObjCBlock_bool_ObjCObject_NSDictionary extends _ObjCBlockBase { + ObjCBlock_bool_ObjCObject_NSDictionary._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_bool_ObjCObject_NSDictionary.fromFunctionPointer( + SentryCocoa 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)>( + _ObjCBlock_bool_ObjCObject_NSDictionary_fnPtrTrampoline, + false) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_bool_ObjCObject_NSDictionary.fromFunction( + SentryCocoa 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)>( + _ObjCBlock_bool_ObjCObject_NSDictionary_closureTrampoline, + false) + .cast(), + _ObjCBlock_bool_ObjCObject_NSDictionary_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); + } +} + +class NSDictionary extends NSObject { + NSDictionary._(ffi.Pointer id, SentryCocoa 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 [NSDictionary] that wraps the given raw object pointer. + static NSDictionary castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSDictionary._(other, lib, retain: retain, release: release); + } + + /// 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); + } + + int get count { + return _lib._objc_msgSend_10(_id, _lib._sel_count1); + } + + 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); + } + + NSEnumerator keyEnumerator() { + final _ret = _lib._objc_msgSend_72(_id, _lib._sel_keyEnumerator1); + return NSEnumerator._(_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); + } + + NSDictionary initWithObjects_forKeys_count_( + ffi.Pointer> objects, + ffi.Pointer> keys, + int cnt) { + final _ret = _lib._objc_msgSend_137( + _id, _lib._sel_initWithObjects_forKeys_count_1, objects, keys, cnt); + return NSDictionary._(_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); + } + + NSArray? get allKeys { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_allKeys1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray allKeysForObject_(NSObject anObject) { + final _ret = + _lib._objc_msgSend_62(_id, _lib._sel_allKeysForObject_1, anObject._id); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get allValues { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_allValues1); + 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); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get descriptionInStringsFileFormat { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_descriptionInStringsFileFormat1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString descriptionWithLocale_(NSObject locale) { + final _ret = _lib._objc_msgSend_65( + _id, _lib._sel_descriptionWithLocale_1, locale._id); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString descriptionWithLocale_indent_(NSObject locale, int level) { + final _ret = _lib._objc_msgSend_66( + _id, _lib._sel_descriptionWithLocale_indent_1, locale._id, level); + return NSString._(_ret, _lib, retain: true, release: true); + } + + bool isEqualToDictionary_(NSDictionary? otherDictionary) { + return _lib._objc_msgSend_138(_id, _lib._sel_isEqualToDictionary_1, + otherDictionary?._id ?? ffi.nullptr); + } + + NSEnumerator objectEnumerator() { + final _ret = _lib._objc_msgSend_72(_id, _lib._sel_objectEnumerator1); + return NSEnumerator._(_ret, _lib, retain: true, release: true); + } + + NSArray objectsForKeys_notFoundMarker_(NSArray? keys, NSObject marker) { + final _ret = _lib._objc_msgSend_139( + _id, + _lib._sel_objectsForKeys_notFoundMarker_1, + keys?._id ?? ffi.nullptr, + marker._id); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + bool writeToURL_error_( + NSURL? url, ffi.Pointer> error) { + return _lib._objc_msgSend_83( + _id, _lib._sel_writeToURL_error_1, url?._id ?? ffi.nullptr, error); + } + + NSArray keysSortedByValueUsingSelector_(ffi.Pointer comparator) { + final _ret = _lib._objc_msgSend_75( + _id, _lib._sel_keysSortedByValueUsingSelector_1, comparator); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + void getObjects_andKeys_count_(ffi.Pointer> objects, + ffi.Pointer> keys, int count) { + _lib._objc_msgSend_140( + _id, _lib._sel_getObjects_andKeys_count_1, objects, keys, count); + } + + 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); + } + + void enumerateKeysAndObjectsUsingBlock_( + ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool block) { + _lib._objc_msgSend_141( + _id, _lib._sel_enumerateKeysAndObjectsUsingBlock_1, block._id); + } + + void enumerateKeysAndObjectsWithOptions_usingBlock_( + int opts, ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool block) { + _lib._objc_msgSend_142( + _id, + _lib._sel_enumerateKeysAndObjectsWithOptions_usingBlock_1, + opts, + block._id); + } + + NSArray keysSortedByValueUsingComparator_( + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + final _ret = _lib._objc_msgSend_115( + _id, _lib._sel_keysSortedByValueUsingComparator_1, cmptr._id); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray keysSortedByValueWithOptions_usingComparator_( + int opts, ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + final _ret = _lib._objc_msgSend_116( + _id, + _lib._sel_keysSortedByValueWithOptions_usingComparator_1, + opts, + cmptr._id); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSObject keysOfEntriesPassingTest_( + ObjCBlock_bool_ObjCObject_ObjCObject_bool predicate) { + final _ret = _lib._objc_msgSend_143( + _id, _lib._sel_keysOfEntriesPassingTest_1, predicate._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject keysOfEntriesWithOptions_passingTest_( + int opts, ObjCBlock_bool_ObjCObject_ObjCObject_bool predicate) { + final _ret = _lib._objc_msgSend_144(_id, + _lib._sel_keysOfEntriesWithOptions_passingTest_1, opts, predicate._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + void getObjects_andKeys_(ffi.Pointer> objects, + ffi.Pointer> keys) { + _lib._objc_msgSend_145(_id, _lib._sel_getObjects_andKeys_1, objects, keys); + } + + static NSDictionary dictionaryWithContentsOfFile_( + SentryCocoa _lib, NSString? path) { + final _ret = _lib._objc_msgSend_146(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSDictionary dictionaryWithContentsOfURL_( + SentryCocoa _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_147(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSDictionary initWithContentsOfFile_(NSString? path) { + final _ret = _lib._objc_msgSend_146( + _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSDictionary initWithContentsOfURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_147( + _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSDictionary._(_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 writeToURL_atomically_(NSURL? url, bool atomically) { + return _lib._objc_msgSend_125(_id, _lib._sel_writeToURL_atomically_1, + url?._id ?? ffi.nullptr, atomically); + } + + static NSDictionary dictionary(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSDictionary1, _lib._sel_dictionary1); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSDictionary dictionaryWithObject_forKey_( + SentryCocoa _lib, NSObject object, NSObject? key) { + final _ret = _lib._objc_msgSend_148( + _lib._class_NSDictionary1, + _lib._sel_dictionaryWithObject_forKey_1, + object._id, + key?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSDictionary dictionaryWithObjects_forKeys_count_( + SentryCocoa _lib, + ffi.Pointer> objects, + ffi.Pointer> keys, + int cnt) { + final _ret = _lib._objc_msgSend_137(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithObjects_forKeys_count_1, objects, keys, cnt); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSDictionary dictionaryWithObjectsAndKeys_( + SentryCocoa _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); + } + + static NSDictionary dictionaryWithDictionary_( + SentryCocoa _lib, NSDictionary? dict) { + final _ret = _lib._objc_msgSend_149(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithDictionary_1, dict?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSDictionary dictionaryWithObjects_forKeys_( + SentryCocoa _lib, NSArray? objects, NSArray? keys) { + final _ret = _lib._objc_msgSend_150( + _lib._class_NSDictionary1, + _lib._sel_dictionaryWithObjects_forKeys_1, + objects?._id ?? ffi.nullptr, + keys?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + 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); + } + + NSDictionary initWithDictionary_(NSDictionary? otherDictionary) { + final _ret = _lib._objc_msgSend_149(_id, _lib._sel_initWithDictionary_1, + otherDictionary?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSDictionary initWithDictionary_copyItems_( + NSDictionary? otherDictionary, bool flag) { + final _ret = _lib._objc_msgSend_151( + _id, + _lib._sel_initWithDictionary_copyItems_1, + otherDictionary?._id ?? ffi.nullptr, + flag); + return NSDictionary._(_ret, _lib, retain: false, release: true); + } + + NSDictionary initWithObjects_forKeys_(NSArray? objects, NSArray? keys) { + final _ret = _lib._objc_msgSend_150( + _id, + _lib._sel_initWithObjects_forKeys_1, + objects?._id ?? ffi.nullptr, + keys?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSDictionary initWithContentsOfURL_error_( + NSURL? url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_152( + _id, + _lib._sel_initWithContentsOfURL_error_1, + url?._id ?? ffi.nullptr, + error); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSDictionary dictionaryWithContentsOfURL_error_(SentryCocoa _lib, + NSURL? url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_152( + _lib._class_NSDictionary1, + _lib._sel_dictionaryWithContentsOfURL_error_1, + url?._id ?? ffi.nullptr, + error); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSObject sharedKeySetForKeys_(SentryCocoa _lib, NSArray? keys) { + final _ret = _lib._objc_msgSend_67(_lib._class_NSDictionary1, + _lib._sel_sharedKeySetForKeys_1, keys?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + int countByEnumeratingWithState_objects_count_( + ffi.Pointer state, + ffi.Pointer> buffer, + int len) { + return _lib._objc_msgSend_153( + _id, + _lib._sel_countByEnumeratingWithState_objects_count_1, + state, + buffer, + len); + } + + int fileSize() { + return _lib._objc_msgSend_154(_id, _lib._sel_fileSize1); + } + + NSDate fileModificationDate() { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_fileModificationDate1); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + NSString fileType() { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fileType1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + int filePosixPermissions() { + return _lib._objc_msgSend_10(_id, _lib._sel_filePosixPermissions1); + } + + NSString fileOwnerAccountName() { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fileOwnerAccountName1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString fileGroupOwnerAccountName() { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_fileGroupOwnerAccountName1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + int fileSystemNumber() { + return _lib._objc_msgSend_78(_id, _lib._sel_fileSystemNumber1); + } + + int fileSystemFileNumber() { + return _lib._objc_msgSend_10(_id, _lib._sel_fileSystemFileNumber1); + } + + bool fileExtensionHidden() { + return _lib._objc_msgSend_12(_id, _lib._sel_fileExtensionHidden1); + } + + int fileHFSCreatorCode() { + return _lib._objc_msgSend_197(_id, _lib._sel_fileHFSCreatorCode1); + } + + int fileHFSTypeCode() { + return _lib._objc_msgSend_197(_id, _lib._sel_fileHFSTypeCode1); + } + + bool fileIsImmutable() { + return _lib._objc_msgSend_12(_id, _lib._sel_fileIsImmutable1); + } + + bool fileIsAppendOnly() { + return _lib._objc_msgSend_12(_id, _lib._sel_fileIsAppendOnly1); + } + + NSDate fileCreationDate() { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_fileCreationDate1); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + NSNumber fileOwnerAccountID() { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_fileOwnerAccountID1); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + NSNumber fileGroupOwnerAccountID() { + final _ret = + _lib._objc_msgSend_198(_id, _lib._sel_fileGroupOwnerAccountID1); + return NSNumber._(_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); + } + + static NSDictionary new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSDictionary1, _lib._sel_new1); + return NSDictionary._(_ret, _lib, retain: false, release: true); + } + + static NSDictionary allocWithZone_( + SentryCocoa _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 NSDictionary alloc(SentryCocoa _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_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSDictionary1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSDictionary1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSDictionary1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSDictionary1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSDictionary1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSDictionary1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSDictionary1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSDictionary1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSDictionary1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +void _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_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 _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_registerClosure(Function 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) { + return (_ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureRegistry[ + block.ref.target.address] + as void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer))(arg0, arg1, arg2); +} + +class ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool.fromFunctionPointer( + SentryCocoa 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)>( + _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool.fromFunction( + SentryCocoa 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)>( + _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_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); + } +} + +bool _ObjCBlock_bool_ObjCObject_ObjCObject_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer arg0, + ffi.Pointer arg1, ffi.Pointer arg2)>>() + .asFunction< + bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>()(arg0, arg1, arg2); +} + +final _ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureRegistry = + {}; +int _ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_bool_ObjCObject_ObjCObject_bool_registerClosure(Function 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) { + return (_ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureRegistry[ + block.ref.target.address] + as bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer))(arg0, arg1, arg2); +} + +class ObjCBlock_bool_ObjCObject_ObjCObject_bool extends _ObjCBlockBase { + ObjCBlock_bool_ObjCObject_ObjCObject_bool._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_bool_ObjCObject_ObjCObject_bool.fromFunctionPointer( + SentryCocoa 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> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>( + _ObjCBlock_bool_ObjCObject_ObjCObject_bool_fnPtrTrampoline, + false) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_bool_ObjCObject_ObjCObject_bool.fromFunction( + SentryCocoa lib, + bool Function(ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>( + _ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureTrampoline, + false) + .cast(), + _ObjCBlock_bool_ObjCObject_ObjCObject_bool_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + bool call(ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) { + return _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> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>()(_id, arg0, arg1, 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, SentryCocoa 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 [NSDate] that wraps the given raw object pointer. + static NSDate castFromPointer(SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSDate._(other, lib, retain: retain, release: release); + } + + /// 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_NSDate1); + } + + double get timeIntervalSinceReferenceDate { + return _lib._objc_msgSend_155( + _id, _lib._sel_timeIntervalSinceReferenceDate1); + } + + @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_156( + _id, _lib._sel_initWithTimeIntervalSinceReferenceDate_1, ti); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + 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); + } + + double timeIntervalSinceDate_(NSDate? anotherDate) { + return _lib._objc_msgSend_157(_id, _lib._sel_timeIntervalSinceDate_1, + anotherDate?._id ?? ffi.nullptr); + } + + double get timeIntervalSinceNow { + return _lib._objc_msgSend_155(_id, _lib._sel_timeIntervalSinceNow1); + } + + double get timeIntervalSince1970 { + return _lib._objc_msgSend_155(_id, _lib._sel_timeIntervalSince19701); + } + + NSObject addTimeInterval_(double seconds) { + final _ret = + _lib._objc_msgSend_156(_id, _lib._sel_addTimeInterval_1, seconds); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSDate dateByAddingTimeInterval_(double ti) { + final _ret = + _lib._objc_msgSend_156(_id, _lib._sel_dateByAddingTimeInterval_1, ti); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + NSDate earlierDate_(NSDate? anotherDate) { + final _ret = _lib._objc_msgSend_158( + _id, _lib._sel_earlierDate_1, anotherDate?._id ?? ffi.nullptr); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + NSDate laterDate_(NSDate? anotherDate) { + final _ret = _lib._objc_msgSend_158( + _id, _lib._sel_laterDate_1, anotherDate?._id ?? ffi.nullptr); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + int compare_(NSDate? other) { + return _lib._objc_msgSend_159( + _id, _lib._sel_compare_1, other?._id ?? ffi.nullptr); + } + + bool isEqualToDate_(NSDate? otherDate) { + return _lib._objc_msgSend_160( + _id, _lib._sel_isEqualToDate_1, otherDate?._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); + } + + NSString descriptionWithLocale_(NSObject locale) { + final _ret = _lib._objc_msgSend_65( + _id, _lib._sel_descriptionWithLocale_1, locale._id); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSDate date(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSDate1, _lib._sel_date1); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + static NSDate dateWithTimeIntervalSinceNow_(SentryCocoa _lib, double secs) { + final _ret = _lib._objc_msgSend_156( + _lib._class_NSDate1, _lib._sel_dateWithTimeIntervalSinceNow_1, secs); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + static NSDate dateWithTimeIntervalSinceReferenceDate_( + SentryCocoa _lib, double ti) { + final _ret = _lib._objc_msgSend_156(_lib._class_NSDate1, + _lib._sel_dateWithTimeIntervalSinceReferenceDate_1, ti); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + static NSDate dateWithTimeIntervalSince1970_(SentryCocoa _lib, double secs) { + final _ret = _lib._objc_msgSend_156( + _lib._class_NSDate1, _lib._sel_dateWithTimeIntervalSince1970_1, secs); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + static NSDate dateWithTimeInterval_sinceDate_( + SentryCocoa _lib, double secsToBeAdded, NSDate? date) { + final _ret = _lib._objc_msgSend_161( + _lib._class_NSDate1, + _lib._sel_dateWithTimeInterval_sinceDate_1, + secsToBeAdded, + date?._id ?? ffi.nullptr); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + static NSDate? getDistantFuture(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_162(_lib._class_NSDate1, _lib._sel_distantFuture1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); + } + + static NSDate? getDistantPast(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_162(_lib._class_NSDate1, _lib._sel_distantPast1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); + } + + static NSDate? getNow(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_162(_lib._class_NSDate1, _lib._sel_now1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); + } + + NSDate initWithTimeIntervalSinceNow_(double secs) { + final _ret = _lib._objc_msgSend_156( + _id, _lib._sel_initWithTimeIntervalSinceNow_1, secs); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + NSDate initWithTimeIntervalSince1970_(double secs) { + final _ret = _lib._objc_msgSend_156( + _id, _lib._sel_initWithTimeIntervalSince1970_1, secs); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + NSDate initWithTimeInterval_sinceDate_(double secsToBeAdded, NSDate? date) { + final _ret = _lib._objc_msgSend_161( + _id, + _lib._sel_initWithTimeInterval_sinceDate_1, + secsToBeAdded, + date?._id ?? ffi.nullptr); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + static NSObject dateWithNaturalLanguageString_locale_( + SentryCocoa _lib, NSString? string, NSObject locale) { + final _ret = _lib._objc_msgSend_163( + _lib._class_NSDate1, + _lib._sel_dateWithNaturalLanguageString_locale_1, + string?._id ?? ffi.nullptr, + locale._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject dateWithNaturalLanguageString_( + SentryCocoa _lib, NSString? string) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSDate1, + _lib._sel_dateWithNaturalLanguageString_1, string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject dateWithString_(SentryCocoa _lib, NSString? aString) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSDate1, + _lib._sel_dateWithString_1, aString?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSCalendarDate dateWithCalendarFormat_timeZone_( + NSString? format, NSTimeZone? aTimeZone) { + final _ret = _lib._objc_msgSend_195( + _id, + _lib._sel_dateWithCalendarFormat_timeZone_1, + format?._id ?? ffi.nullptr, + aTimeZone?._id ?? ffi.nullptr); + return NSCalendarDate._(_ret, _lib, retain: true, release: true); + } + + NSString descriptionWithCalendarFormat_timeZone_locale_( + NSString? format, NSTimeZone? aTimeZone, NSObject locale) { + final _ret = _lib._objc_msgSend_196( + _id, + _lib._sel_descriptionWithCalendarFormat_timeZone_locale_1, + format?._id ?? ffi.nullptr, + aTimeZone?._id ?? ffi.nullptr, + locale._id); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSObject initWithString_(NSString? description) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithString_1, description?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSDate new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSDate1, _lib._sel_new1); + return NSDate._(_ret, _lib, retain: false, release: true); + } + + static NSDate allocWithZone_(SentryCocoa _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); + } + + static NSDate alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSDate1, _lib._sel_alloc1); + return NSDate._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _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); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSDate1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSDate1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSDate1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSDate1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSDate1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSDate1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSDate1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSDate1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSCalendarDate extends NSDate { + NSCalendarDate._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSCalendarDate] that points to the same underlying object as [other]. + static NSCalendarDate castFrom(T other) { + return NSCalendarDate._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSCalendarDate] that wraps the given raw object pointer. + static NSCalendarDate castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSCalendarDate._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSCalendarDate]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSCalendarDate1); + } + + static NSObject calendarDate(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSCalendarDate1, _lib._sel_calendarDate1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject dateWithString_calendarFormat_locale_(SentryCocoa _lib, + NSString? description, NSString? format, NSObject locale) { + final _ret = _lib._objc_msgSend_164( + _lib._class_NSCalendarDate1, + _lib._sel_dateWithString_calendarFormat_locale_1, + description?._id ?? ffi.nullptr, + format?._id ?? ffi.nullptr, + locale._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject dateWithString_calendarFormat_( + SentryCocoa _lib, NSString? description, NSString? format) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSCalendarDate1, + _lib._sel_dateWithString_calendarFormat_1, + description?._id ?? ffi.nullptr, + format?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject dateWithYear_month_day_hour_minute_second_timeZone_( + SentryCocoa _lib, + int year, + int month, + int day, + int hour, + int minute, + int second, + NSTimeZone? aTimeZone) { + final _ret = _lib._objc_msgSend_190( + _lib._class_NSCalendarDate1, + _lib._sel_dateWithYear_month_day_hour_minute_second_timeZone_1, + year, + month, + day, + hour, + minute, + second, + aTimeZone?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSCalendarDate dateByAddingYears_months_days_hours_minutes_seconds_( + int year, int month, int day, int hour, int minute, int second) { + final _ret = _lib._objc_msgSend_191( + _id, + _lib._sel_dateByAddingYears_months_days_hours_minutes_seconds_1, + year, + month, + day, + hour, + minute, + second); + return NSCalendarDate._(_ret, _lib, retain: true, release: true); + } + + int dayOfCommonEra() { + return _lib._objc_msgSend_78(_id, _lib._sel_dayOfCommonEra1); + } + + int dayOfMonth() { + return _lib._objc_msgSend_78(_id, _lib._sel_dayOfMonth1); + } + + int dayOfWeek() { + return _lib._objc_msgSend_78(_id, _lib._sel_dayOfWeek1); + } + + int dayOfYear() { + return _lib._objc_msgSend_78(_id, _lib._sel_dayOfYear1); + } + + int hourOfDay() { + return _lib._objc_msgSend_78(_id, _lib._sel_hourOfDay1); + } + + int minuteOfHour() { + return _lib._objc_msgSend_78(_id, _lib._sel_minuteOfHour1); + } + + int monthOfYear() { + return _lib._objc_msgSend_78(_id, _lib._sel_monthOfYear1); + } + + int secondOfMinute() { + return _lib._objc_msgSend_78(_id, _lib._sel_secondOfMinute1); + } + + int yearOfCommonEra() { + return _lib._objc_msgSend_78(_id, _lib._sel_yearOfCommonEra1); + } + + NSString calendarFormat() { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_calendarFormat1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString descriptionWithCalendarFormat_locale_( + NSString? format, NSObject locale) { + final _ret = _lib._objc_msgSend_173( + _id, + _lib._sel_descriptionWithCalendarFormat_locale_1, + format?._id ?? ffi.nullptr, + locale._id); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString descriptionWithCalendarFormat_(NSString? format) { + final _ret = _lib._objc_msgSend_64(_id, + _lib._sel_descriptionWithCalendarFormat_1, format?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + @override + NSString descriptionWithLocale_(NSObject locale) { + final _ret = _lib._objc_msgSend_65( + _id, _lib._sel_descriptionWithLocale_1, locale._id); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSTimeZone timeZone() { + final _ret = _lib._objc_msgSend_168(_id, _lib._sel_timeZone1); + return NSTimeZone._(_ret, _lib, retain: true, release: true); + } + + NSObject initWithString_calendarFormat_locale_( + NSString? description, NSString? format, NSObject locale) { + final _ret = _lib._objc_msgSend_164( + _id, + _lib._sel_initWithString_calendarFormat_locale_1, + description?._id ?? ffi.nullptr, + format?._id ?? ffi.nullptr, + locale._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject initWithString_calendarFormat_( + NSString? description, NSString? format) { + final _ret = _lib._objc_msgSend_165( + _id, + _lib._sel_initWithString_calendarFormat_1, + description?._id ?? ffi.nullptr, + format?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + @override + NSObject initWithString_(NSString? description) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithString_1, description?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject initWithYear_month_day_hour_minute_second_timeZone_( + int year, + int month, + int day, + int hour, + int minute, + int second, + NSTimeZone? aTimeZone) { + final _ret = _lib._objc_msgSend_190( + _id, + _lib._sel_initWithYear_month_day_hour_minute_second_timeZone_1, + year, + month, + day, + hour, + minute, + second, + aTimeZone?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + void setCalendarFormat_(NSString? format) { + _lib._objc_msgSend_192( + _id, _lib._sel_setCalendarFormat_1, format?._id ?? ffi.nullptr); + } + + void setTimeZone_(NSTimeZone? aTimeZone) { + _lib._objc_msgSend_193( + _id, _lib._sel_setTimeZone_1, aTimeZone?._id ?? ffi.nullptr); + } + + void years_months_days_hours_minutes_seconds_sinceDate_( + ffi.Pointer yp, + ffi.Pointer mop, + ffi.Pointer dp, + ffi.Pointer hp, + ffi.Pointer mip, + ffi.Pointer sp, + NSCalendarDate? date) { + _lib._objc_msgSend_194( + _id, + _lib._sel_years_months_days_hours_minutes_seconds_sinceDate_1, + yp, + mop, + dp, + hp, + mip, + sp, + date?._id ?? ffi.nullptr); + } + + static NSDate? getDistantFuture(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_162( + _lib._class_NSCalendarDate1, _lib._sel_distantFuture1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); + } + + static NSDate? getDistantPast(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_162( + _lib._class_NSCalendarDate1, _lib._sel_distantPast1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); + } + + @override + NSCalendarDate init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSCalendarDate._(_ret, _lib, retain: true, release: true); + } + + @override + NSCalendarDate initWithTimeIntervalSinceReferenceDate_(double ti) { + final _ret = _lib._objc_msgSend_156( + _id, _lib._sel_initWithTimeIntervalSinceReferenceDate_1, ti); + return NSCalendarDate._(_ret, _lib, retain: true, release: true); + } + + @override + NSCalendarDate initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSCalendarDate._(_ret, _lib, retain: true, release: true); + } + + @override + NSCalendarDate dateByAddingTimeInterval_(double ti) { + final _ret = + _lib._objc_msgSend_156(_id, _lib._sel_dateByAddingTimeInterval_1, ti); + return NSCalendarDate._(_ret, _lib, retain: true, release: true); + } + + static NSCalendarDate date(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSCalendarDate1, _lib._sel_date1); + return NSCalendarDate._(_ret, _lib, retain: true, release: true); + } + + static NSCalendarDate dateWithTimeIntervalSinceNow_( + SentryCocoa _lib, double secs) { + final _ret = _lib._objc_msgSend_156(_lib._class_NSCalendarDate1, + _lib._sel_dateWithTimeIntervalSinceNow_1, secs); + return NSCalendarDate._(_ret, _lib, retain: true, release: true); + } + + static NSCalendarDate dateWithTimeIntervalSinceReferenceDate_( + SentryCocoa _lib, double ti) { + final _ret = _lib._objc_msgSend_156(_lib._class_NSCalendarDate1, + _lib._sel_dateWithTimeIntervalSinceReferenceDate_1, ti); + return NSCalendarDate._(_ret, _lib, retain: true, release: true); + } + + static NSCalendarDate dateWithTimeIntervalSince1970_( + SentryCocoa _lib, double secs) { + final _ret = _lib._objc_msgSend_156(_lib._class_NSCalendarDate1, + _lib._sel_dateWithTimeIntervalSince1970_1, secs); + return NSCalendarDate._(_ret, _lib, retain: true, release: true); + } + + static NSCalendarDate dateWithTimeInterval_sinceDate_( + SentryCocoa _lib, double secsToBeAdded, NSDate? date) { + final _ret = _lib._objc_msgSend_161( + _lib._class_NSCalendarDate1, + _lib._sel_dateWithTimeInterval_sinceDate_1, + secsToBeAdded, + date?._id ?? ffi.nullptr); + return NSCalendarDate._(_ret, _lib, retain: true, release: true); + } + + static NSDate? getNow(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_162(_lib._class_NSCalendarDate1, _lib._sel_now1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); + } + + @override + NSCalendarDate initWithTimeIntervalSinceNow_(double secs) { + final _ret = _lib._objc_msgSend_156( + _id, _lib._sel_initWithTimeIntervalSinceNow_1, secs); + return NSCalendarDate._(_ret, _lib, retain: true, release: true); + } + + @override + NSCalendarDate initWithTimeIntervalSince1970_(double secs) { + final _ret = _lib._objc_msgSend_156( + _id, _lib._sel_initWithTimeIntervalSince1970_1, secs); + return NSCalendarDate._(_ret, _lib, retain: true, release: true); + } + + @override + NSCalendarDate initWithTimeInterval_sinceDate_( + double secsToBeAdded, NSDate? date) { + final _ret = _lib._objc_msgSend_161( + _id, + _lib._sel_initWithTimeInterval_sinceDate_1, + secsToBeAdded, + date?._id ?? ffi.nullptr); + return NSCalendarDate._(_ret, _lib, retain: true, release: true); + } + + static NSObject dateWithNaturalLanguageString_locale_( + SentryCocoa _lib, NSString? string, NSObject locale) { + final _ret = _lib._objc_msgSend_163( + _lib._class_NSCalendarDate1, + _lib._sel_dateWithNaturalLanguageString_locale_1, + string?._id ?? ffi.nullptr, + locale._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject dateWithNaturalLanguageString_( + SentryCocoa _lib, NSString? string) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSCalendarDate1, + _lib._sel_dateWithNaturalLanguageString_1, string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject dateWithString_(SentryCocoa _lib, NSString? aString) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSCalendarDate1, + _lib._sel_dateWithString_1, aString?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSCalendarDate new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSCalendarDate1, _lib._sel_new1); + return NSCalendarDate._(_ret, _lib, retain: false, release: true); + } + + static NSCalendarDate allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSCalendarDate1, _lib._sel_allocWithZone_1, zone); + return NSCalendarDate._(_ret, _lib, retain: false, release: true); + } + + static NSCalendarDate alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSCalendarDate1, _lib._sel_alloc1); + return NSCalendarDate._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSCalendarDate1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSCalendarDate1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_NSCalendarDate1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSCalendarDate1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSCalendarDate1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSCalendarDate1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSCalendarDate1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSCalendarDate1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSCalendarDate1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSTimeZone extends NSObject { + NSTimeZone._(ffi.Pointer id, SentryCocoa 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 [NSTimeZone] that wraps the given raw object pointer. + static NSTimeZone castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSTimeZone._(other, lib, retain: retain, release: release); + } + + /// 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_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_166( + _id, _lib._sel_secondsFromGMTForDate_1, aDate?._id ?? ffi.nullptr); + } + + NSString abbreviationForDate_(NSDate? aDate) { + final _ret = _lib._objc_msgSend_167( + _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_160(_id, _lib._sel_isDaylightSavingTimeForDate_1, + aDate?._id ?? ffi.nullptr); + } + + double daylightSavingTimeOffsetForDate_(NSDate? aDate) { + return _lib._objc_msgSend_157(_id, + _lib._sel_daylightSavingTimeOffsetForDate_1, aDate?._id ?? ffi.nullptr); + } + + NSDate nextDaylightSavingTimeTransitionAfterDate_(NSDate? aDate) { + final _ret = _lib._objc_msgSend_158( + _id, + _lib._sel_nextDaylightSavingTimeTransitionAfterDate_1, + aDate?._id ?? ffi.nullptr); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + static NSTimeZone? getSystemTimeZone(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_168( + _lib._class_NSTimeZone1, _lib._sel_systemTimeZone1); + return _ret.address == 0 + ? null + : NSTimeZone._(_ret, _lib, retain: true, release: true); + } + + static void resetSystemTimeZone(SentryCocoa _lib) { + _lib._objc_msgSend_1( + _lib._class_NSTimeZone1, _lib._sel_resetSystemTimeZone1); + } + + static NSTimeZone? getDefaultTimeZone(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_168( + _lib._class_NSTimeZone1, _lib._sel_defaultTimeZone1); + return _ret.address == 0 + ? null + : NSTimeZone._(_ret, _lib, retain: true, release: true); + } + + static void setDefaultTimeZone(SentryCocoa _lib, NSTimeZone? value) { + return _lib._objc_msgSend_169(_lib._class_NSTimeZone1, + _lib._sel_setDefaultTimeZone_1, value?._id ?? ffi.nullptr); + } + + static NSTimeZone? getLocalTimeZone(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_168( + _lib._class_NSTimeZone1, _lib._sel_localTimeZone1); + return _ret.address == 0 + ? null + : NSTimeZone._(_ret, _lib, retain: true, release: true); + } + + static NSArray? getKnownTimeZoneNames(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSTimeZone1, _lib._sel_knownTimeZoneNames1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSDictionary? getAbbreviationDictionary(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_170( + _lib._class_NSTimeZone1, _lib._sel_abbreviationDictionary1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + static void setAbbreviationDictionary(SentryCocoa _lib, NSDictionary? value) { + return _lib._objc_msgSend_171(_lib._class_NSTimeZone1, + _lib._sel_setAbbreviationDictionary_1, value?._id ?? ffi.nullptr); + } + + static NSString? getTimeZoneDataVersion(SentryCocoa _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); + } + + int get secondsFromGMT { + return _lib._objc_msgSend_78(_id, _lib._sel_secondsFromGMT1); + } + + NSString? get abbreviation { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_abbreviation1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + bool get daylightSavingTime { + return _lib._objc_msgSend_12(_id, _lib._sel_isDaylightSavingTime1); + } + + double get daylightSavingTimeOffset { + return _lib._objc_msgSend_155(_id, _lib._sel_daylightSavingTimeOffset1); + } + + NSDate? get nextDaylightSavingTimeTransition { + final _ret = _lib._objc_msgSend_162( + _id, _lib._sel_nextDaylightSavingTimeTransition1); + return _ret.address == 0 + ? null + : NSDate._(_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); + } + + bool isEqualToTimeZone_(NSTimeZone? aTimeZone) { + return _lib._objc_msgSend_172( + _id, _lib._sel_isEqualToTimeZone_1, aTimeZone?._id ?? ffi.nullptr); + } + + NSString localizedName_locale_(int style, NSLocale? locale) { + final _ret = _lib._objc_msgSend_187(_id, _lib._sel_localizedName_locale_1, + style, locale?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSTimeZone timeZoneWithName_(SentryCocoa _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); + } + + static NSTimeZone timeZoneWithName_data_( + SentryCocoa _lib, NSString? tzName, NSData? aData) { + final _ret = _lib._objc_msgSend_188( + _lib._class_NSTimeZone1, + _lib._sel_timeZoneWithName_data_1, + tzName?._id ?? ffi.nullptr, + aData?._id ?? ffi.nullptr); + return NSTimeZone._(_ret, _lib, retain: true, release: true); + } + + 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); + } + + NSTimeZone initWithName_data_(NSString? tzName, NSData? aData) { + final _ret = _lib._objc_msgSend_188(_id, _lib._sel_initWithName_data_1, + tzName?._id ?? ffi.nullptr, aData?._id ?? ffi.nullptr); + return NSTimeZone._(_ret, _lib, retain: true, release: true); + } + + static NSTimeZone timeZoneForSecondsFromGMT_(SentryCocoa _lib, int seconds) { + final _ret = _lib._objc_msgSend_189(_lib._class_NSTimeZone1, + _lib._sel_timeZoneForSecondsFromGMT_1, seconds); + return NSTimeZone._(_ret, _lib, retain: true, release: true); + } + + static NSTimeZone timeZoneWithAbbreviation_( + SentryCocoa _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); + } + + @override + NSTimeZone init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSTimeZone._(_ret, _lib, retain: true, release: true); + } + + static NSTimeZone new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSTimeZone1, _lib._sel_new1); + return NSTimeZone._(_ret, _lib, retain: false, release: true); + } + + static NSTimeZone allocWithZone_( + SentryCocoa _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(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSTimeZone1, _lib._sel_alloc1); + return NSTimeZone._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSTimeZone1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSTimeZone1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSTimeZone1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSTimeZone1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSTimeZone1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSTimeZone1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSTimeZone1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSTimeZone1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _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 NSLocale extends NSObject { + NSLocale._(ffi.Pointer id, SentryCocoa 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 [NSLocale] that wraps the given raw object pointer. + static NSLocale castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSLocale._(other, lib, retain: retain, release: release); + } + + /// 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); + } + + 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); + } + + NSString displayNameForKey_value_(NSString key, NSObject value) { + final _ret = _lib._objc_msgSend_173( + _id, _lib._sel_displayNameForKey_value_1, key._id, value._id); + return NSString._(_ret, _lib, retain: true, release: true); + } + + 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); + } + + 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); + } + + NSString? get localeIdentifier { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localeIdentifier1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString localizedStringForLocaleIdentifier_(NSString? localeIdentifier) { + final _ret = _lib._objc_msgSend_64( + _id, + _lib._sel_localizedStringForLocaleIdentifier_1, + localeIdentifier?._id ?? ffi.nullptr); + return NSString._(_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 localizedStringForLanguageCode_(NSString? languageCode) { + final _ret = _lib._objc_msgSend_64( + _id, + _lib._sel_localizedStringForLanguageCode_1, + languageCode?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get languageIdentifier { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_languageIdentifier1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + 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); + } + + NSString localizedStringForCountryCode_(NSString? countryCode) { + final _ret = _lib._objc_msgSend_64( + _id, + _lib._sel_localizedStringForCountryCode_1, + countryCode?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get regionCode { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_regionCode1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + 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); + } + + NSString localizedStringForScriptCode_(NSString? scriptCode) { + final _ret = _lib._objc_msgSend_64( + _id, + _lib._sel_localizedStringForScriptCode_1, + scriptCode?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + 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); + } + + NSString localizedStringForVariantCode_(NSString? variantCode) { + final _ret = _lib._objc_msgSend_64( + _id, + _lib._sel_localizedStringForVariantCode_1, + variantCode?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSCharacterSet? get exemplarCharacterSet { + final _ret = _lib._objc_msgSend_174(_id, _lib._sel_exemplarCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + 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); + } + + NSString localizedStringForCalendarIdentifier_(NSString? calendarIdentifier) { + final _ret = _lib._objc_msgSend_64( + _id, + _lib._sel_localizedStringForCalendarIdentifier_1, + calendarIdentifier?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + 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); + } + + NSString localizedStringForCollationIdentifier_( + NSString? collationIdentifier) { + final _ret = _lib._objc_msgSend_64( + _id, + _lib._sel_localizedStringForCollationIdentifier_1, + collationIdentifier?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + bool get usesMetricSystem { + return _lib._objc_msgSend_12(_id, _lib._sel_usesMetricSystem1); + } + + 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); + } + + 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); + } + + 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); + } + + 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); + } + + NSString localizedStringForCurrencyCode_(NSString? currencyCode) { + final _ret = _lib._objc_msgSend_64( + _id, + _lib._sel_localizedStringForCurrencyCode_1, + currencyCode?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + 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); + } + + NSString localizedStringForCollatorIdentifier_(NSString? collatorIdentifier) { + final _ret = _lib._objc_msgSend_64( + _id, + _lib._sel_localizedStringForCollatorIdentifier_1, + collatorIdentifier?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + 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); + } + + 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); + } + + 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); + } + + 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); + } + + static NSLocale? getAutoupdatingCurrentLocale(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_182( + _lib._class_NSLocale1, _lib._sel_autoupdatingCurrentLocale1); + return _ret.address == 0 + ? null + : NSLocale._(_ret, _lib, retain: true, release: true); + } + + static NSLocale? getCurrentLocale(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_182(_lib._class_NSLocale1, _lib._sel_currentLocale1); + return _ret.address == 0 + ? null + : NSLocale._(_ret, _lib, retain: true, release: true); + } + + static NSLocale? getSystemLocale(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_182(_lib._class_NSLocale1, _lib._sel_systemLocale1); + return _ret.address == 0 + ? null + : NSLocale._(_ret, _lib, retain: true, release: true); + } + + static NSLocale localeWithLocaleIdentifier_( + SentryCocoa _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); + } + + @override + NSLocale init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSLocale._(_ret, _lib, retain: true, release: true); + } + + static NSArray? getAvailableLocaleIdentifiers(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSLocale1, _lib._sel_availableLocaleIdentifiers1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray? getISOLanguageCodes(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSLocale1, _lib._sel_ISOLanguageCodes1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray? getISOCountryCodes(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSLocale1, _lib._sel_ISOCountryCodes1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray? getISOCurrencyCodes(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSLocale1, _lib._sel_ISOCurrencyCodes1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray? getCommonISOCurrencyCodes(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSLocale1, _lib._sel_commonISOCurrencyCodes1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray? getPreferredLanguages(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSLocale1, _lib._sel_preferredLanguages1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSDictionary componentsFromLocaleIdentifier_( + SentryCocoa _lib, NSString? string) { + final _ret = _lib._objc_msgSend_146(_lib._class_NSLocale1, + _lib._sel_componentsFromLocaleIdentifier_1, string?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSString localeIdentifierFromComponents_( + SentryCocoa _lib, NSDictionary? dict) { + final _ret = _lib._objc_msgSend_183(_lib._class_NSLocale1, + _lib._sel_localeIdentifierFromComponents_1, dict?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSString canonicalLocaleIdentifierFromString_( + SentryCocoa _lib, NSString? string) { + final _ret = _lib._objc_msgSend_64( + _lib._class_NSLocale1, + _lib._sel_canonicalLocaleIdentifierFromString_1, + string?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSString canonicalLanguageIdentifierFromString_( + SentryCocoa _lib, NSString? string) { + final _ret = _lib._objc_msgSend_64( + _lib._class_NSLocale1, + _lib._sel_canonicalLanguageIdentifierFromString_1, + string?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSString localeIdentifierFromWindowsLocaleCode_( + SentryCocoa _lib, int lcid) { + final _ret = _lib._objc_msgSend_184(_lib._class_NSLocale1, + _lib._sel_localeIdentifierFromWindowsLocaleCode_1, lcid); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static int windowsLocaleCodeFromLocaleIdentifier_( + SentryCocoa _lib, NSString? localeIdentifier) { + return _lib._objc_msgSend_185( + _lib._class_NSLocale1, + _lib._sel_windowsLocaleCodeFromLocaleIdentifier_1, + localeIdentifier?._id ?? ffi.nullptr); + } + + static int characterDirectionForLanguage_( + SentryCocoa _lib, NSString? isoLangCode) { + return _lib._objc_msgSend_186( + _lib._class_NSLocale1, + _lib._sel_characterDirectionForLanguage_1, + isoLangCode?._id ?? ffi.nullptr); + } + + static int lineDirectionForLanguage_( + SentryCocoa _lib, NSString? isoLangCode) { + return _lib._objc_msgSend_186(_lib._class_NSLocale1, + _lib._sel_lineDirectionForLanguage_1, isoLangCode?._id ?? ffi.nullptr); + } + + static NSLocale new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSLocale1, _lib._sel_new1); + return NSLocale._(_ret, _lib, retain: false, release: true); + } + + static NSLocale allocWithZone_(SentryCocoa _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(SentryCocoa _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_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSLocale1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSLocale1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSLocale1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSLocale1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSLocale1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSLocale1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSLocale1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSLocale1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSLocale1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSCharacterSet extends NSObject { + NSCharacterSet._(ffi.Pointer id, SentryCocoa 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 [NSCharacterSet] that wraps the given raw object pointer. + static NSCharacterSet castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSCharacterSet._(other, lib, retain: retain, release: release); + } + + /// 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_NSCharacterSet1); + } + + static NSCharacterSet? getControlCharacterSet(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_controlCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getWhitespaceCharacterSet(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_whitespaceCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getWhitespaceAndNewlineCharacterSet(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_174(_lib._class_NSCharacterSet1, + _lib._sel_whitespaceAndNewlineCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getDecimalDigitCharacterSet(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_decimalDigitCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getLetterCharacterSet(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_letterCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getLowercaseLetterCharacterSet(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_lowercaseLetterCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getUppercaseLetterCharacterSet(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_uppercaseLetterCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getNonBaseCharacterSet(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_nonBaseCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getAlphanumericCharacterSet(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_alphanumericCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getDecomposableCharacterSet(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_decomposableCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getIllegalCharacterSet(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_illegalCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getPunctuationCharacterSet(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_punctuationCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getCapitalizedLetterCharacterSet(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_capitalizedLetterCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getSymbolCharacterSet(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_symbolCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getNewlineCharacterSet(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_newlineCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: false, release: true); + } + + static NSCharacterSet characterSetWithRange_( + SentryCocoa _lib, _NSRange aRange) { + final _ret = _lib._objc_msgSend_175( + _lib._class_NSCharacterSet1, _lib._sel_characterSetWithRange_1, aRange); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet characterSetWithCharactersInString_( + SentryCocoa _lib, NSString? aString) { + final _ret = _lib._objc_msgSend_176( + _lib._class_NSCharacterSet1, + _lib._sel_characterSetWithCharactersInString_1, + aString?._id ?? ffi.nullptr); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet characterSetWithBitmapRepresentation_( + SentryCocoa _lib, NSData? data) { + final _ret = _lib._objc_msgSend_177( + _lib._class_NSCharacterSet1, + _lib._sel_characterSetWithBitmapRepresentation_1, + data?._id ?? ffi.nullptr); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet characterSetWithContentsOfFile_( + SentryCocoa _lib, NSString? fName) { + final _ret = _lib._objc_msgSend_176(_lib._class_NSCharacterSet1, + _lib._sel_characterSetWithContentsOfFile_1, fName?._id ?? ffi.nullptr); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + 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 characterIsMember_(int aCharacter) { + return _lib._objc_msgSend_178( + _id, _lib._sel_characterIsMember_1, aCharacter); + } + + 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); + } + + NSCharacterSet? get invertedSet { + final _ret = _lib._objc_msgSend_174(_id, _lib._sel_invertedSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + bool longCharacterIsMember_(int theLongChar) { + return _lib._objc_msgSend_179( + _id, _lib._sel_longCharacterIsMember_1, theLongChar); + } + + bool isSupersetOfSet_(NSCharacterSet? theOtherSet) { + return _lib._objc_msgSend_180( + _id, _lib._sel_isSupersetOfSet_1, theOtherSet?._id ?? ffi.nullptr); + } + + bool hasMemberInPlane_(int thePlane) { + return _lib._objc_msgSend_181(_id, _lib._sel_hasMemberInPlane_1, thePlane); + } + + static NSCharacterSet? getURLUserAllowedCharacterSet(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_URLUserAllowedCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getURLPasswordAllowedCharacterSet(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_URLPasswordAllowedCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getURLHostAllowedCharacterSet(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_URLHostAllowedCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getURLPathAllowedCharacterSet(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_URLPathAllowedCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getURLQueryAllowedCharacterSet(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_URLQueryAllowedCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getURLFragmentAllowedCharacterSet(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_URLFragmentAllowedCharacterSet1); + return _ret.address == 0 + ? null + : 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(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSCharacterSet1, _lib._sel_new1); + return NSCharacterSet._(_ret, _lib, retain: false, release: true); + } + + static NSCharacterSet allocWithZone_( + SentryCocoa _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 NSCharacterSet alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSCharacterSet1, _lib._sel_alloc1); + return NSCharacterSet._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSCharacterSet1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSCharacterSet1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_NSCharacterSet1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSCharacterSet1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSCharacterSet1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSCharacterSet1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSCharacterSet1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSCharacterSet1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSCharacterSet1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_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 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; +} + +class NSURLHandle extends NSObject { + NSURLHandle._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSURLHandle] that points to the same underlying object as [other]. + static NSURLHandle castFrom(T other) { + return NSURLHandle._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSURLHandle] that wraps the given raw object pointer. + static NSURLHandle castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLHandle._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSURLHandle]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLHandle1); + } + + static void registerURLHandleClass_( + SentryCocoa _lib, NSObject anURLHandleSubclass) { + _lib._objc_msgSend_15(_lib._class_NSURLHandle1, + _lib._sel_registerURLHandleClass_1, anURLHandleSubclass._id); + } + + static NSObject URLHandleClassForURL_(SentryCocoa _lib, NSURL? anURL) { + final _ret = _lib._objc_msgSend_241(_lib._class_NSURLHandle1, + _lib._sel_URLHandleClassForURL_1, anURL?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + int status() { + return _lib._objc_msgSend_242(_id, _lib._sel_status1); + } + + NSString failureReason() { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_failureReason1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + void addClient_(NSObject? client) { + _lib._objc_msgSend_15( + _id, _lib._sel_addClient_1, client?._id ?? ffi.nullptr); + } + + void removeClient_(NSObject? client) { + _lib._objc_msgSend_15( + _id, _lib._sel_removeClient_1, client?._id ?? ffi.nullptr); + } + + void loadInBackground() { + _lib._objc_msgSend_1(_id, _lib._sel_loadInBackground1); + } + + void cancelLoadInBackground() { + _lib._objc_msgSend_1(_id, _lib._sel_cancelLoadInBackground1); + } + + NSData resourceData() { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_resourceData1); + return NSData._(_ret, _lib, retain: true, release: true); + } + + NSData availableResourceData() { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_availableResourceData1); + return NSData._(_ret, _lib, retain: true, release: true); + } + + int expectedResourceDataSize() { + return _lib._objc_msgSend_220(_id, _lib._sel_expectedResourceDataSize1); + } + + void flushCachedData() { + _lib._objc_msgSend_1(_id, _lib._sel_flushCachedData1); + } + + void backgroundLoadDidFailWithReason_(NSString? reason) { + _lib._objc_msgSend_192(_id, _lib._sel_backgroundLoadDidFailWithReason_1, + reason?._id ?? ffi.nullptr); + } + + void didLoadBytes_loadComplete_(NSData? newBytes, bool yorn) { + _lib._objc_msgSend_243(_id, _lib._sel_didLoadBytes_loadComplete_1, + newBytes?._id ?? ffi.nullptr, yorn); + } + + static bool canInitWithURL_(SentryCocoa _lib, NSURL? anURL) { + return _lib._objc_msgSend_244(_lib._class_NSURLHandle1, + _lib._sel_canInitWithURL_1, anURL?._id ?? ffi.nullptr); + } + + static NSURLHandle cachedHandleForURL_(SentryCocoa _lib, NSURL? anURL) { + final _ret = _lib._objc_msgSend_245(_lib._class_NSURLHandle1, + _lib._sel_cachedHandleForURL_1, anURL?._id ?? ffi.nullptr); + return NSURLHandle._(_ret, _lib, retain: true, release: true); + } + + NSObject initWithURL_cached_(NSURL? anURL, bool willCache) { + final _ret = _lib._objc_msgSend_246(_id, _lib._sel_initWithURL_cached_1, + anURL?._id ?? ffi.nullptr, willCache); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + 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); + } + + NSObject propertyForKeyIfAvailable_(NSString? propertyKey) { + final _ret = _lib._objc_msgSend_30(_id, + _lib._sel_propertyForKeyIfAvailable_1, propertyKey?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + bool writeProperty_forKey_(NSObject propertyValue, NSString? propertyKey) { + return _lib._objc_msgSend_240(_id, _lib._sel_writeProperty_forKey_1, + propertyValue._id, propertyKey?._id ?? ffi.nullptr); + } + + bool writeData_(NSData? data) { + return _lib._objc_msgSend_23( + _id, _lib._sel_writeData_1, data?._id ?? ffi.nullptr); + } + + NSData loadInForeground() { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_loadInForeground1); + return NSData._(_ret, _lib, retain: true, release: true); + } + + void beginLoadInBackground() { + _lib._objc_msgSend_1(_id, _lib._sel_beginLoadInBackground1); + } + + void endLoadInBackground() { + _lib._objc_msgSend_1(_id, _lib._sel_endLoadInBackground1); + } + + @override + NSURLHandle init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLHandle._(_ret, _lib, retain: true, release: true); + } + + static NSURLHandle new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLHandle1, _lib._sel_new1); + return NSURLHandle._(_ret, _lib, retain: false, release: true); + } + + static NSURLHandle allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLHandle1, _lib._sel_allocWithZone_1, zone); + return NSURLHandle._(_ret, _lib, retain: false, release: true); + } + + static NSURLHandle alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLHandle1, _lib._sel_alloc1); + return NSURLHandle._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSURLHandle1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSURLHandle1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLHandle1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLHandle1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSURLHandle1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSURLHandle1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSURLHandle1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSURLHandle1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLHandle1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSURLHandleStatus { + static const int NSURLHandleNotLoaded = 0; + static const int NSURLHandleLoadSucceeded = 1; + static const int NSURLHandleLoadInProgress = 2; + static const int NSURLHandleLoadFailed = 3; +} + +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; +} + +abstract class NSDataSearchOptions { + static const int NSDataSearchBackwards = 1; + static const int NSDataSearchAnchored = 2; +} + +void _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_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); +} + +final _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_registerClosure( + Function fn) { + final id = ++_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2) { + return (_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureRegistry[ + block.ref.target.address] + as void Function(ffi.Pointer, _NSRange, + ffi.Pointer))(arg0, arg1, arg2); +} + +class ObjCBlock_ffiVoid_ffiVoid_NSRange_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ffiVoid_NSRange_bool._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_ffiVoid_NSRange_bool.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< - ffi.Void Function(_NSRange 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, - _NSRange arg0, ffi.Pointer arg1)>( - _ObjCBlock_ffiVoid_NSRange_bool_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2)>( + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSRange_bool.fromFunction(SentryCocoa lib, - void Function(_NSRange arg0, ffi.Pointer arg1) fn) + ObjCBlock_ffiVoid_ffiVoid_NSRange_bool.fromFunction( + SentryCocoa 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, - _NSRange arg0, ffi.Pointer arg1)>( - _ObjCBlock_ffiVoid_NSRange_bool_closureTrampoline) + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2)>( + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSRange_bool_registerClosure(fn)), + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(_NSRange arg0, ffi.Pointer arg1) { + void call( + ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { return _id.ref.invoke .cast< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, _NSRange arg0, - ffi.Pointer arg1)>>() + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2)>>() .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, _NSRange arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); } } -void _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2) { +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; +} + +void _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_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, ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, ffi.UnsignedLong arg1)>>() + .asFunction arg0, int arg1)>()( + arg0, arg1); } -final _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureRegistry = +final _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureRegistry = {}; -int _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureRegistryIndex = 0; +int _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureRegistryIndex = 0; ffi.Pointer - _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_registerClosure( - Function fn) { - final id = - ++_ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureRegistryIndex; - _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureRegistry[id] = fn; + _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_registerClosure(Function fn) { + final id = ++_ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureRegistryIndex; + _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_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) { - return (_ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureRegistry[ - block.ref.target.address] - as void Function(ffi.Pointer, int, - ffi.Pointer))(arg0, arg1, arg2); +void _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) { + return (_ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureRegistry[block + .ref + .target + .address] as void Function(ffi.Pointer, int))(arg0, arg1); } -class ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool extends _ObjCBlockBase { - ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool._( +class ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong._( ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool.fromFunctionPointer( + ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.UnsignedLong arg1, ffi.Pointer arg2)>> + 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, - ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_fnPtrTrampoline) + ffi.Pointer arg0, + ffi.UnsignedLong arg1)>( + _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool.fromFunction( - SentryCocoa lib, - void Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2) - fn) + ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong.fromFunction( + SentryCocoa 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, - ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureTrampoline) + ffi.Pointer arg0, + ffi.UnsignedLong arg1)>( + _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_registerClosure( - fn)), + _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_registerClosure(fn)), lib); - static ffi.Pointer? _dartFuncTrampoline; - void call( - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { + 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, - ffi.Pointer arg2)>>() + 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, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, int arg1)>()(_id, arg0, arg1); } } -bool _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_fnPtrTrampoline( +abstract class NSDataBase64DecodingOptions { + static const int NSDataBase64DecodingIgnoreUnknownCharacters = 1; +} + +abstract class NSDataBase64EncodingOptions { + static const int NSDataBase64Encoding64CharacterLineLength = 1; + static const int NSDataBase64Encoding76CharacterLineLength = 2; + static const int NSDataBase64EncodingEndLineWithCarriageReturn = 16; + static const int NSDataBase64EncodingEndLineWithLineFeed = 32; +} + +abstract class NSDataCompressionAlgorithm { + static const int NSDataCompressionAlgorithmLZFSE = 0; + static const int NSDataCompressionAlgorithmLZ4 = 1; + static const int NSDataCompressionAlgorithmLZMA = 2; + static const int NSDataCompressionAlgorithmZlib = 3; +} + +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; +} + +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 _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2) { + _NSRange arg1, + _NSRange arg2, + ffi.Pointer arg3) { return block.ref.target .cast< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.UnsignedLong arg1, ffi.Pointer arg2)>>() + ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, + _NSRange arg2, ffi.Pointer arg3)>>() .asFunction< - bool Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); + void Function( + ffi.Pointer arg0, + _NSRange arg1, + _NSRange arg2, + ffi.Pointer arg3)>()(arg0, arg1, arg2, arg3); } -final _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureRegistry = +final _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureRegistry = {}; -int _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureRegistryIndex = 0; +int _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureRegistryIndex = 0; ffi.Pointer - _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_registerClosure( + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_registerClosure( Function fn) { final id = - ++_ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureRegistryIndex; - _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureRegistry[id] = fn; + ++_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -bool _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureTrampoline( +void _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2) { - return (_ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureRegistry[ + _NSRange arg1, + _NSRange arg2, + ffi.Pointer arg3) { + return (_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureRegistry[ block.ref.target.address] - as bool Function(ffi.Pointer, int, - ffi.Pointer))(arg0, arg1, arg2); + as void Function(ffi.Pointer, _NSRange, _NSRange, + ffi.Pointer))(arg0, arg1, arg2, arg3); } -class ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool extends _ObjCBlockBase { - ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool._( +class ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool._( ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool.fromFunctionPointer( + ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.UnsignedLong arg1, ffi.Pointer arg2)>> + 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.Void Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ffi.Pointer arg2)>( - _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_fnPtrTrampoline, - false) + _NSRange arg1, + _NSRange arg2, + ffi.Pointer arg3)>( + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool.fromFunction( + ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool.fromFunction( SentryCocoa lib, - bool Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2) + void Function(ffi.Pointer arg0, _NSRange arg1, _NSRange arg2, + ffi.Pointer arg3) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ffi.Pointer arg2)>( - _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureTrampoline, - false) + _NSRange arg1, + _NSRange arg2, + ffi.Pointer arg3)>( + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureTrampoline) .cast(), - _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_registerClosure( + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_registerClosure( fn)), lib); static ffi.Pointer? _dartFuncTrampoline; - bool call( - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { + void call(ffi.Pointer arg0, _NSRange arg1, _NSRange arg2, + ffi.Pointer arg3) { return _id.ref.invoke .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ffi.Pointer arg2)>>() + _NSRange arg1, + _NSRange arg2, + ffi.Pointer arg3)>>() .asFunction< - bool Function( + void Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + _NSRange arg1, + _NSRange arg2, + ffi.Pointer arg3)>()(_id, arg0, arg1, arg2, arg3); } } -int _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_fnPtrTrampoline( +void _ObjCBlock_ffiVoid_NSString_bool_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Pointer arg1) { + ffi.Pointer arg1) { return block.ref.target .cast< ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() + ffi.Void Function( + ffi.Pointer arg0, ffi.Pointer arg1)>>() .asFunction< - int Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); + void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>()(arg0, arg1); } -final _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureRegistry = - {}; -int _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureRegistryIndex = - 0; -ffi.Pointer - _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_registerClosure( - Function fn) { - final id = - ++_ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureRegistryIndex; - _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureRegistry[id] = fn; +final _ObjCBlock_ffiVoid_NSString_bool_closureRegistry = {}; +int _ObjCBlock_ffiVoid_NSString_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSString_bool_registerClosure( + Function fn) { + final id = ++_ObjCBlock_ffiVoid_NSString_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSString_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -int _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureTrampoline( +void _ObjCBlock_ffiVoid_NSString_bool_closureTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Pointer arg1) { - return (_ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureRegistry[ + ffi.Pointer arg1) { + return (_ObjCBlock_ffiVoid_NSString_bool_closureRegistry[ block.ref.target.address] - as int Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); + as void Function( + ffi.Pointer, ffi.Pointer))(arg0, arg1); } -class ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject - extends _ObjCBlockBase { - ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock_ffiVoid_NSString_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSString_bool._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject.fromFunctionPointer( + ObjCBlock_ffiVoid_NSString_bool.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Int32 Function( + ffi.Void Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_fnPtrTrampoline, - 0) + ffi.Pointer arg1)>( + _ObjCBlock_ffiVoid_NSString_bool_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject.fromFunction( + ObjCBlock_ffiVoid_NSString_bool.fromFunction( SentryCocoa lib, - int Function(ffi.Pointer arg0, ffi.Pointer arg1) + void Function(ffi.Pointer arg0, ffi.Pointer arg1) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Int32 Function( + ffi.Void Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureTrampoline, - 0) + ffi.Pointer arg1)>( + _ObjCBlock_ffiVoid_NSString_bool_closureTrampoline) .cast(), - _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_registerClosure( - fn)), + _ObjCBlock_ffiVoid_NSString_bool_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; - int call(ffi.Pointer arg0, ffi.Pointer arg1) { + void call(ffi.Pointer arg0, ffi.Pointer arg1) { return _id.ref.invoke .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Void Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Pointer arg1)>>() + ffi.Pointer arg1)>>() .asFunction< - int Function( + void Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); + ffi.Pointer arg1)>()(_id, arg0, arg1); } } -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; -} - -abstract class NSOrderedCollectionDifferenceCalculationOptions { - static const int NSOrderedCollectionDifferenceCalculationOmitInsertedObjects = - 1; - static const int NSOrderedCollectionDifferenceCalculationOmitRemovedObjects = - 2; - static const int NSOrderedCollectionDifferenceCalculationInferMoves = 4; +abstract class NSStringEncodingConversionOptions { + static const int NSStringEncodingConversionAllowLossy = 1; + static const int NSStringEncodingConversionExternalRepresentation = 2; } -bool _ObjCBlock_bool_ObjCObject_ObjCObject_fnPtrTrampoline( +void _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { + ffi.Pointer arg0, + int arg1) { return block.ref.target .cast< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() + ffi.Void Function(ffi.Pointer arg0, + ffi.UnsignedLong arg1)>>() .asFunction< - bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); + void Function( + ffi.Pointer arg0, int arg1)>()(arg0, arg1); } -final _ObjCBlock_bool_ObjCObject_ObjCObject_closureRegistry = {}; -int _ObjCBlock_bool_ObjCObject_ObjCObject_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_bool_ObjCObject_ObjCObject_registerClosure( - Function fn) { - final id = ++_ObjCBlock_bool_ObjCObject_ObjCObject_closureRegistryIndex; - _ObjCBlock_bool_ObjCObject_ObjCObject_closureRegistry[id] = fn; +final _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureRegistryIndex = + 0; +ffi.Pointer + _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_registerClosure( + Function fn) { + final id = + ++_ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureRegistryIndex; + _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -bool _ObjCBlock_bool_ObjCObject_ObjCObject_closureTrampoline( +void _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureTrampoline( ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { - return (_ObjCBlock_bool_ObjCObject_ObjCObject_closureRegistry[ + ffi.Pointer arg0, + int arg1) { + return (_ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureRegistry[ block.ref.target.address] - as bool Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); + as void Function(ffi.Pointer, int))(arg0, arg1); } -class ObjCBlock_bool_ObjCObject_ObjCObject extends _ObjCBlockBase { - ObjCBlock_bool_ObjCObject_ObjCObject._( +class ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong + extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong._( ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_bool_ObjCObject_ObjCObject.fromFunctionPointer( + ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< - ffi.Bool 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.Bool Function( + ffi.Void Function( ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock_bool_ObjCObject_ObjCObject_fnPtrTrampoline, - false) + ffi.Pointer arg0, + ffi.UnsignedLong arg1)>( + _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_bool_ObjCObject_ObjCObject.fromFunction( + ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong.fromFunction( SentryCocoa lib, - bool Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) + void Function(ffi.Pointer arg0, int arg1) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock_bool_ObjCObject_ObjCObject_closureTrampoline, - false) + ffi.Pointer arg0, + ffi.UnsignedLong arg1)>( + _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureTrampoline) .cast(), - _ObjCBlock_bool_ObjCObject_ObjCObject_registerClosure(fn)), + _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_registerClosure( + fn)), lib); static ffi.Pointer? _dartFuncTrampoline; - bool call(ffi.Pointer arg0, ffi.Pointer arg1) { + void call(ffi.Pointer arg0, int arg1) { return _id.ref.invoke .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() + ffi.Pointer arg0, + ffi.UnsignedLong arg1)>>() .asFunction< - bool Function( + void Function( ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); + ffi.Pointer arg0, + int arg1)>()(_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, SentryCocoa lib, +class NSOrthography extends NSObject { + NSOrthography._(ffi.Pointer id, SentryCocoa 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( SentryCocoa 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); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSOrthography1); } - static NSPredicate predicateWithFormat_argumentArray_( - SentryCocoa _lib, NSString? predicateFormat, NSArray? arguments) { - final _ret = _lib._objc_msgSend_133( - _lib._class_NSPredicate1, - _lib._sel_predicateWithFormat_argumentArray_1, - predicateFormat?._id ?? ffi.nullptr, - arguments?._id ?? ffi.nullptr); - return NSPredicate._(_ret, _lib, retain: true, 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); } - static NSPredicate predicateWithFormat_( - SentryCocoa _lib, NSString? predicateFormat) { - final _ret = _lib._objc_msgSend_134(_lib._class_NSPredicate1, - _lib._sel_predicateWithFormat_1, predicateFormat?._id ?? ffi.nullptr); - return NSPredicate._(_ret, _lib, retain: true, release: true); + NSDictionary? get languageMap { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_languageMap1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSPredicate predicateWithFormat_arguments_(SentryCocoa _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 ?? ffi.nullptr, - argList); - return NSPredicate._(_ret, _lib, retain: true, release: true); + NSOrthography initWithDominantScript_languageMap_( + NSString? script, NSDictionary? map) { + final _ret = _lib._objc_msgSend_373( + _id, + _lib._sel_initWithDominantScript_languageMap_1, + script?._id ?? ffi.nullptr, + map?._id ?? ffi.nullptr); + return NSOrthography._(_ret, _lib, retain: true, release: true); } - static NSPredicate predicateFromMetadataQueryString_( - SentryCocoa _lib, NSString? queryString) { - final _ret = _lib._objc_msgSend_134( - _lib._class_NSPredicate1, - _lib._sel_predicateFromMetadataQueryString_1, - queryString?._id ?? ffi.nullptr); - return NSPredicate._(_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); } - static NSPredicate predicateWithValue_(SentryCocoa _lib, bool value) { - final _ret = _lib._objc_msgSend_136( - _lib._class_NSPredicate1, _lib._sel_predicateWithValue_1, value); - 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 ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSPredicate predicateWithBlock_( - SentryCocoa _lib, ObjCBlock_bool_ObjCObject_NSDictionary block) { - final _ret = _lib._objc_msgSend_199( - _lib._class_NSPredicate1, _lib._sel_predicateWithBlock_1, block._id); - return NSPredicate._(_ret, _lib, retain: true, release: true); + NSString dominantLanguageForScript_(NSString? script) { + final _ret = _lib._objc_msgSend_64( + _id, _lib._sel_dominantLanguageForScript_1, script?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get predicateFormat { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_predicateFormat1); + 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); } - NSPredicate predicateWithSubstitutionVariables_(NSDictionary? variables) { - final _ret = _lib._objc_msgSend_149( - _id, - _lib._sel_predicateWithSubstitutionVariables_1, - variables?._id ?? ffi.nullptr); - return NSPredicate._(_ret, _lib, retain: true, release: true); + NSArray? get allScripts { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_allScripts1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - bool evaluateWithObject_(NSObject object) { - return _lib._objc_msgSend_0( - _id, _lib._sel_evaluateWithObject_1, object._id); + NSArray? get allLanguages { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_allLanguages1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - bool evaluateWithObject_substitutionVariables_( - NSObject object, NSDictionary? bindings) { - return _lib._objc_msgSend_200( - _id, - _lib._sel_evaluateWithObject_substitutionVariables_1, - object._id, - bindings?._id ?? ffi.nullptr); + static NSOrthography defaultOrthographyForLanguage_( + SentryCocoa _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); } - void allowEvaluation() { - _lib._objc_msgSend_1(_id, _lib._sel_allowEvaluation1); + static NSOrthography orthographyWithDominantScript_languageMap_( + SentryCocoa _lib, NSString? script, NSDictionary? map) { + final _ret = _lib._objc_msgSend_373( + _lib._class_NSOrthography1, + _lib._sel_orthographyWithDominantScript_languageMap_1, + script?._id ?? ffi.nullptr, + map?._id ?? ffi.nullptr); + return NSOrthography._(_ret, _lib, retain: true, release: true); } @override - NSPredicate init() { + NSOrthography init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSPredicate._(_ret, _lib, retain: true, release: true); - } - - static NSPredicate new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSPredicate1, _lib._sel_new1); - return NSPredicate._(_ret, _lib, retain: false, release: true); + return NSOrthography._(_ret, _lib, retain: true, release: true); } - static NSPredicate allocWithZone_( + static NSOrthography new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSOrthography1, _lib._sel_new1); + return NSOrthography._(_ret, _lib, retain: false, release: true); + } + + static NSOrthography allocWithZone_( SentryCocoa _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); + _lib._class_NSOrthography1, _lib._sel_allocWithZone_1, zone); + return NSOrthography._(_ret, _lib, retain: false, release: true); } - static NSPredicate alloc(SentryCocoa _lib) { + static NSOrthography alloc(SentryCocoa _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_alloc1); + return NSOrthography._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -38191,7 +44103,7 @@ class NSPredicate extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSPredicate1, + _lib._class_NSOrthography1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -38200,24 +44112,24 @@ class NSPredicate extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSPredicate1, + _lib._objc_msgSend_15(_lib._class_NSOrthography1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSPredicate1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSOrthography1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSPredicate1, _lib._sel_useStoredAccessor1); + _lib._class_NSOrthography1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSPredicate1, + _lib._class_NSOrthography1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -38226,7 +44138,7 @@ class NSPredicate extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSPredicate1, + _lib._class_NSOrthography1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -38234,7 +44146,7 @@ class NSPredicate extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSPredicate1, + _lib._class_NSOrthography1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -38242,75 +44154,153 @@ class NSPredicate extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSPredicate1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSOrthography1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSPredicate1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSOrthography1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -final class __va_list_tag extends ffi.Struct { - @ffi.UnsignedInt() - external int gp_offset; +void _ObjCBlock_ffiVoid_ObjCObject_bool_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); +} - @ffi.UnsignedInt() - external int fp_offset; +final _ObjCBlock_ffiVoid_ObjCObject_bool_closureRegistry = {}; +int _ObjCBlock_ffiVoid_ObjCObject_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_ObjCObject_bool_registerClosure( + Function fn) { + final id = ++_ObjCBlock_ffiVoid_ObjCObject_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_ObjCObject_bool_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - external ffi.Pointer overflow_arg_area; +void _ObjCBlock_ffiVoid_ObjCObject_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) { + return (_ObjCBlock_ffiVoid_ObjCObject_bool_closureRegistry[ + block.ref.target.address] + as void Function( + ffi.Pointer, ffi.Pointer))(arg0, arg1); +} - external ffi.Pointer reg_save_area; +class ObjCBlock_ffiVoid_ObjCObject_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ObjCObject_bool._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_ObjCObject_bool.fromFunctionPointer( + SentryCocoa 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)>( + _ObjCBlock_ffiVoid_ObjCObject_bool_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_ObjCObject_bool.fromFunction( + SentryCocoa 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)>( + _ObjCBlock_ffiVoid_ObjCObject_bool_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_ObjCObject_bool_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); + } } -bool _ObjCBlock_bool_ObjCObject_NSDictionary_fnPtrTrampoline( +bool _ObjCBlock_bool_ObjCObject_bool_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Pointer arg1) { + ffi.Pointer arg1) { return block.ref.target .cast< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() + ffi.Bool Function( + ffi.Pointer arg0, ffi.Pointer arg1)>>() .asFunction< bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); + ffi.Pointer arg1)>()(arg0, arg1); } -final _ObjCBlock_bool_ObjCObject_NSDictionary_closureRegistry = - {}; -int _ObjCBlock_bool_ObjCObject_NSDictionary_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_bool_ObjCObject_NSDictionary_registerClosure( +final _ObjCBlock_bool_ObjCObject_bool_closureRegistry = {}; +int _ObjCBlock_bool_ObjCObject_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_bool_ObjCObject_bool_registerClosure( Function fn) { - final id = ++_ObjCBlock_bool_ObjCObject_NSDictionary_closureRegistryIndex; - _ObjCBlock_bool_ObjCObject_NSDictionary_closureRegistry[id] = fn; + final id = ++_ObjCBlock_bool_ObjCObject_bool_closureRegistryIndex; + _ObjCBlock_bool_ObjCObject_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -bool _ObjCBlock_bool_ObjCObject_NSDictionary_closureTrampoline( +bool _ObjCBlock_bool_ObjCObject_bool_closureTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Pointer arg1) { - return (_ObjCBlock_bool_ObjCObject_NSDictionary_closureRegistry[ + ffi.Pointer arg1) { + return (_ObjCBlock_bool_ObjCObject_bool_closureRegistry[ block.ref.target.address] as bool Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); + ffi.Pointer, ffi.Pointer))(arg0, arg1); } -class ObjCBlock_bool_ObjCObject_NSDictionary extends _ObjCBlockBase { - ObjCBlock_bool_ObjCObject_NSDictionary._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock_bool_ObjCObject_bool extends _ObjCBlockBase { + ObjCBlock_bool_ObjCObject_bool._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_bool_ObjCObject_NSDictionary.fromFunctionPointer( + ObjCBlock_bool_ObjCObject_bool.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> + ffi.Pointer arg1)>> ptr) : this._( lib._newBlock1( @@ -38318,18 +44308,17 @@ class ObjCBlock_bool_ObjCObject_NSDictionary extends _ObjCBlockBase { ffi.Bool Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock_bool_ObjCObject_NSDictionary_fnPtrTrampoline, - false) + ffi.Pointer arg1)>( + _ObjCBlock_bool_ObjCObject_bool_fnPtrTrampoline, false) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_bool_ObjCObject_NSDictionary.fromFunction( + ObjCBlock_bool_ObjCObject_bool.fromFunction( SentryCocoa lib, - bool Function(ffi.Pointer arg0, ffi.Pointer arg1) + bool Function(ffi.Pointer arg0, ffi.Pointer arg1) fn) : this._( lib._newBlock1( @@ -38337,480 +44326,659 @@ class ObjCBlock_bool_ObjCObject_NSDictionary extends _ObjCBlockBase { ffi.Bool Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock_bool_ObjCObject_NSDictionary_closureTrampoline, + ffi.Pointer arg1)>( + _ObjCBlock_bool_ObjCObject_bool_closureTrampoline, false) .cast(), - _ObjCBlock_bool_ObjCObject_NSDictionary_registerClosure(fn)), + _ObjCBlock_bool_ObjCObject_bool_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; - bool call(ffi.Pointer arg0, ffi.Pointer arg1) { + 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)>>() + ffi.Pointer arg1)>>() .asFunction< bool Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); + ffi.Pointer arg1)>()(_id, arg0, arg1); } } -class NSDictionary extends NSObject { - NSDictionary._(ffi.Pointer id, SentryCocoa lib, +class NSFileManager extends NSObject { + NSFileManager._(ffi.Pointer id, SentryCocoa 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( SentryCocoa 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(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_404( + _lib._class_NSFileManager1, _lib._sel_defaultManager1); + return _ret.address == 0 + ? null + : 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_405( + _id, + _lib._sel_mountedVolumeURLsIncludingResourceValuesForKeys_options_1, + propertyKeys?._id ?? ffi.nullptr, + options); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSEnumerator keyEnumerator() { - final _ret = _lib._objc_msgSend_72(_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_406( + _id, + _lib._sel_unmountVolumeAtURL_options_completionHandler_1, + url?._id ?? ffi.nullptr, + 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_407( + _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); } - NSDictionary initWithObjects_forKeys_count_( - ffi.Pointer> objects, - ffi.Pointer> keys, - int cnt) { - final _ret = _lib._objc_msgSend_137( - _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_408( + _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_409( + _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); } - NSArray? get allKeys { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_allKeys1); - return _ret.address == 0 - ? null - : NSArray._(_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_410( + _id, + _lib._sel_getRelationship_ofDirectoryAtURL_toItemAtURL_error_1, + outRelationship, + directoryURL?._id ?? ffi.nullptr, + otherURL?._id ?? ffi.nullptr, + error); } - NSArray allKeysForObject_(NSObject anObject) { - final _ret = - _lib._objc_msgSend_62(_id, _lib._sel_allKeysForObject_1, anObject._id); - return NSArray._(_ret, _lib, retain: true, release: true); + bool getRelationship_ofDirectory_inDomain_toItemAtURL_error_( + ffi.Pointer outRelationship, + int directory, + int domainMask, + NSURL? url, + ffi.Pointer> error) { + return _lib._objc_msgSend_411( + _id, + _lib._sel_getRelationship_ofDirectory_inDomain_toItemAtURL_error_1, + outRelationship, + directory, + domainMask, + url?._id ?? ffi.nullptr, + error); } - NSArray? get allValues { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_allValues1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + bool createDirectoryAtURL_withIntermediateDirectories_attributes_error_( + NSURL? url, + bool createIntermediates, + NSDictionary? attributes, + ffi.Pointer> error) { + return _lib._objc_msgSend_412( + _id, + _lib._sel_createDirectoryAtURL_withIntermediateDirectories_attributes_error_1, + url?._id ?? ffi.nullptr, + createIntermediates, + attributes?._id ?? ffi.nullptr, + 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); + bool createSymbolicLinkAtURL_withDestinationURL_error_( + NSURL? url, NSURL? destURL, ffi.Pointer> error) { + return _lib._objc_msgSend_413( + _id, + _lib._sel_createSymbolicLinkAtURL_withDestinationURL_error_1, + url?._id ?? ffi.nullptr, + destURL?._id ?? ffi.nullptr, + error); } - NSString? get descriptionInStringsFileFormat { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_descriptionInStringsFileFormat1); + NSObject? get delegate { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSObject._(_ret, _lib, retain: true, release: true); } - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_65( - _id, _lib._sel_descriptionWithLocale_1, locale._id); - return NSString._(_ret, _lib, retain: true, release: true); + set delegate(NSObject? value) { + return _lib._objc_msgSend_389( + _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } - NSString descriptionWithLocale_indent_(NSObject locale, int level) { - final _ret = _lib._objc_msgSend_66( - _id, _lib._sel_descriptionWithLocale_indent_1, locale._id, level); - return NSString._(_ret, _lib, retain: true, release: true); + bool setAttributes_ofItemAtPath_error_(NSDictionary? attributes, + NSString? path, ffi.Pointer> error) { + return _lib._objc_msgSend_414( + _id, + _lib._sel_setAttributes_ofItemAtPath_error_1, + attributes?._id ?? ffi.nullptr, + path?._id ?? ffi.nullptr, + error); } - bool isEqualToDictionary_(NSDictionary? otherDictionary) { - return _lib._objc_msgSend_138(_id, _lib._sel_isEqualToDictionary_1, - otherDictionary?._id ?? ffi.nullptr); + bool createDirectoryAtPath_withIntermediateDirectories_attributes_error_( + NSString? path, + bool createIntermediates, + NSDictionary? attributes, + ffi.Pointer> error) { + return _lib._objc_msgSend_415( + _id, + _lib._sel_createDirectoryAtPath_withIntermediateDirectories_attributes_error_1, + path?._id ?? ffi.nullptr, + createIntermediates, + attributes?._id ?? ffi.nullptr, + error); } - NSEnumerator objectEnumerator() { - final _ret = _lib._objc_msgSend_72(_id, _lib._sel_objectEnumerator1); - return NSEnumerator._(_ret, _lib, retain: true, release: true); + NSArray contentsOfDirectoryAtPath_error_( + NSString? path, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_416( + _id, + _lib._sel_contentsOfDirectoryAtPath_error_1, + path?._id ?? ffi.nullptr, + error); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray objectsForKeys_notFoundMarker_(NSArray? keys, NSObject marker) { - final _ret = _lib._objc_msgSend_139( + NSArray subpathsOfDirectoryAtPath_error_( + NSString? path, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_416( _id, - _lib._sel_objectsForKeys_notFoundMarker_1, - keys?._id ?? ffi.nullptr, - marker._id); + _lib._sel_subpathsOfDirectoryAtPath_error_1, + path?._id ?? ffi.nullptr, + error); return NSArray._(_ret, _lib, retain: true, release: true); } - bool writeToURL_error_( - NSURL? url, ffi.Pointer> error) { - return _lib._objc_msgSend_83( - _id, _lib._sel_writeToURL_error_1, url?._id ?? ffi.nullptr, error); + NSDictionary attributesOfItemAtPath_error_( + NSString? path, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_417( + _id, + _lib._sel_attributesOfItemAtPath_error_1, + path?._id ?? ffi.nullptr, + error); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - NSArray keysSortedByValueUsingSelector_(ffi.Pointer comparator) { - final _ret = _lib._objc_msgSend_75( - _id, _lib._sel_keysSortedByValueUsingSelector_1, comparator); - return NSArray._(_ret, _lib, retain: true, release: true); + NSDictionary attributesOfFileSystemForPath_error_( + NSString? path, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_417( + _id, + _lib._sel_attributesOfFileSystemForPath_error_1, + path?._id ?? ffi.nullptr, + error); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - void getObjects_andKeys_count_(ffi.Pointer> objects, - ffi.Pointer> keys, int count) { - _lib._objc_msgSend_140( - _id, _lib._sel_getObjects_andKeys_count_1, objects, keys, count); + bool createSymbolicLinkAtPath_withDestinationPath_error_(NSString? path, + NSString? destPath, ffi.Pointer> error) { + return _lib._objc_msgSend_418( + _id, + _lib._sel_createSymbolicLinkAtPath_withDestinationPath_error_1, + path?._id ?? ffi.nullptr, + destPath?._id ?? ffi.nullptr, + 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); + NSString destinationOfSymbolicLinkAtPath_error_( + NSString? path, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_419( + _id, + _lib._sel_destinationOfSymbolicLinkAtPath_error_1, + path?._id ?? ffi.nullptr, + error); + return NSString._(_ret, _lib, retain: true, release: true); } - void enumerateKeysAndObjectsUsingBlock_( - ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool block) { - _lib._objc_msgSend_141( - _id, _lib._sel_enumerateKeysAndObjectsUsingBlock_1, block._id); + bool copyItemAtPath_toPath_error_(NSString? srcPath, NSString? dstPath, + ffi.Pointer> error) { + return _lib._objc_msgSend_418(_id, _lib._sel_copyItemAtPath_toPath_error_1, + srcPath?._id ?? ffi.nullptr, dstPath?._id ?? ffi.nullptr, error); } - void enumerateKeysAndObjectsWithOptions_usingBlock_( - int opts, ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool block) { - _lib._objc_msgSend_142( - _id, - _lib._sel_enumerateKeysAndObjectsWithOptions_usingBlock_1, - opts, - block._id); + bool moveItemAtPath_toPath_error_(NSString? srcPath, NSString? dstPath, + ffi.Pointer> error) { + return _lib._objc_msgSend_418(_id, _lib._sel_moveItemAtPath_toPath_error_1, + srcPath?._id ?? ffi.nullptr, dstPath?._id ?? ffi.nullptr, error); } - NSArray keysSortedByValueUsingComparator_( - ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { - final _ret = _lib._objc_msgSend_115( - _id, _lib._sel_keysSortedByValueUsingComparator_1, cmptr._id); - return NSArray._(_ret, _lib, retain: true, release: true); + bool linkItemAtPath_toPath_error_(NSString? srcPath, NSString? dstPath, + ffi.Pointer> error) { + return _lib._objc_msgSend_418(_id, _lib._sel_linkItemAtPath_toPath_error_1, + srcPath?._id ?? ffi.nullptr, dstPath?._id ?? ffi.nullptr, error); + } + + bool removeItemAtPath_error_( + NSString? path, ffi.Pointer> error) { + return _lib._objc_msgSend_420(_id, _lib._sel_removeItemAtPath_error_1, + path?._id ?? ffi.nullptr, error); + } + + bool copyItemAtURL_toURL_error_(NSURL? srcURL, NSURL? dstURL, + ffi.Pointer> error) { + return _lib._objc_msgSend_413(_id, _lib._sel_copyItemAtURL_toURL_error_1, + srcURL?._id ?? ffi.nullptr, dstURL?._id ?? ffi.nullptr, error); + } + + bool moveItemAtURL_toURL_error_(NSURL? srcURL, NSURL? dstURL, + ffi.Pointer> error) { + return _lib._objc_msgSend_413(_id, _lib._sel_moveItemAtURL_toURL_error_1, + srcURL?._id ?? ffi.nullptr, dstURL?._id ?? ffi.nullptr, error); + } + + bool linkItemAtURL_toURL_error_(NSURL? srcURL, NSURL? dstURL, + ffi.Pointer> error) { + return _lib._objc_msgSend_413(_id, _lib._sel_linkItemAtURL_toURL_error_1, + srcURL?._id ?? ffi.nullptr, dstURL?._id ?? ffi.nullptr, error); + } + + bool removeItemAtURL_error_( + NSURL? URL, ffi.Pointer> error) { + return _lib._objc_msgSend_83( + _id, _lib._sel_removeItemAtURL_error_1, URL?._id ?? ffi.nullptr, error); + } + + bool trashItemAtURL_resultingItemURL_error_( + NSURL? url, + ffi.Pointer> outResultingURL, + ffi.Pointer> error) { + return _lib._objc_msgSend_421( + _id, + _lib._sel_trashItemAtURL_resultingItemURL_error_1, + url?._id ?? ffi.nullptr, + outResultingURL, + error); } - NSArray keysSortedByValueWithOptions_usingComparator_( - int opts, ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { - final _ret = _lib._objc_msgSend_116( + NSDictionary fileAttributesAtPath_traverseLink_(NSString? path, bool yorn) { + final _ret = _lib._objc_msgSend_422( _id, - _lib._sel_keysSortedByValueWithOptions_usingComparator_1, - opts, - cmptr._id); - return NSArray._(_ret, _lib, retain: true, release: true); + _lib._sel_fileAttributesAtPath_traverseLink_1, + path?._id ?? ffi.nullptr, + yorn); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - NSObject keysOfEntriesPassingTest_( - ObjCBlock_bool_ObjCObject_ObjCObject_bool predicate) { - final _ret = _lib._objc_msgSend_143( - _id, _lib._sel_keysOfEntriesPassingTest_1, predicate._id); - return NSObject._(_ret, _lib, retain: true, release: true); + bool changeFileAttributes_atPath_(NSDictionary? attributes, NSString? path) { + return _lib._objc_msgSend_423(_id, _lib._sel_changeFileAttributes_atPath_1, + attributes?._id ?? ffi.nullptr, path?._id ?? ffi.nullptr); } - NSObject keysOfEntriesWithOptions_passingTest_( - int opts, ObjCBlock_bool_ObjCObject_ObjCObject_bool predicate) { - final _ret = _lib._objc_msgSend_144(_id, - _lib._sel_keysOfEntriesWithOptions_passingTest_1, opts, predicate._id); - return NSObject._(_ret, _lib, retain: true, release: true); + NSArray directoryContentsAtPath_(NSString? path) { + final _ret = _lib._objc_msgSend_123( + _id, _lib._sel_directoryContentsAtPath_1, path?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - void getObjects_andKeys_(ffi.Pointer> objects, - ffi.Pointer> keys) { - _lib._objc_msgSend_145(_id, _lib._sel_getObjects_andKeys_1, objects, keys); + NSDictionary fileSystemAttributesAtPath_(NSString? path) { + final _ret = _lib._objc_msgSend_146( + _id, _lib._sel_fileSystemAttributesAtPath_1, path?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSDictionary dictionaryWithContentsOfFile_( - SentryCocoa _lib, NSString? path) { - final _ret = _lib._objc_msgSend_146(_lib._class_NSDictionary1, - _lib._sel_dictionaryWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + NSString pathContentOfSymbolicLinkAtPath_(NSString? path) { + final _ret = _lib._objc_msgSend_64(_id, + _lib._sel_pathContentOfSymbolicLinkAtPath_1, path?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - static NSDictionary dictionaryWithContentsOfURL_( - SentryCocoa _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_147(_lib._class_NSDictionary1, - _lib._sel_dictionaryWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + bool createSymbolicLinkAtPath_pathContent_( + NSString? path, NSString? otherpath) { + return _lib._objc_msgSend_424( + _id, + _lib._sel_createSymbolicLinkAtPath_pathContent_1, + path?._id ?? ffi.nullptr, + otherpath?._id ?? ffi.nullptr); } - NSDictionary initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_146( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + bool createDirectoryAtPath_attributes_( + NSString? path, NSDictionary? attributes) { + return _lib._objc_msgSend_425( + _id, + _lib._sel_createDirectoryAtPath_attributes_1, + path?._id ?? ffi.nullptr, + attributes?._id ?? ffi.nullptr); } - NSDictionary initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_147( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + bool linkPath_toPath_handler_( + NSString? src, NSString? dest, NSObject handler) { + return _lib._objc_msgSend_426(_id, _lib._sel_linkPath_toPath_handler_1, + src?._id ?? ffi.nullptr, dest?._id ?? ffi.nullptr, handler._id); } - bool writeToFile_atomically_(NSString? path, bool useAuxiliaryFile) { - return _lib._objc_msgSend_25(_id, _lib._sel_writeToFile_atomically_1, - path?._id ?? ffi.nullptr, useAuxiliaryFile); + bool copyPath_toPath_handler_( + NSString? src, NSString? dest, NSObject handler) { + return _lib._objc_msgSend_426(_id, _lib._sel_copyPath_toPath_handler_1, + src?._id ?? ffi.nullptr, dest?._id ?? ffi.nullptr, handler._id); } - bool writeToURL_atomically_(NSURL? url, bool atomically) { - return _lib._objc_msgSend_125(_id, _lib._sel_writeToURL_atomically_1, - url?._id ?? ffi.nullptr, atomically); + bool movePath_toPath_handler_( + NSString? src, NSString? dest, NSObject handler) { + return _lib._objc_msgSend_426(_id, _lib._sel_movePath_toPath_handler_1, + src?._id ?? ffi.nullptr, dest?._id ?? ffi.nullptr, handler._id); } - static NSDictionary dictionary(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSDictionary1, _lib._sel_dictionary1); - return NSDictionary._(_ret, _lib, retain: true, release: true); + bool removeFileAtPath_handler_(NSString? path, NSObject handler) { + return _lib._objc_msgSend_427(_id, _lib._sel_removeFileAtPath_handler_1, + path?._id ?? ffi.nullptr, handler._id); } - static NSDictionary dictionaryWithObject_forKey_( - SentryCocoa _lib, NSObject object, NSObject? key) { - final _ret = _lib._objc_msgSend_148( - _lib._class_NSDictionary1, - _lib._sel_dictionaryWithObject_forKey_1, - object._id, - key?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + NSString? get currentDirectoryPath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currentDirectoryPath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSDictionary dictionaryWithObjects_forKeys_count_( - SentryCocoa _lib, - ffi.Pointer> objects, - ffi.Pointer> keys, - int cnt) { - final _ret = _lib._objc_msgSend_137(_lib._class_NSDictionary1, - _lib._sel_dictionaryWithObjects_forKeys_count_1, objects, keys, cnt); - return NSDictionary._(_ret, _lib, retain: true, release: true); + bool changeCurrentDirectoryPath_(NSString? path) { + return _lib._objc_msgSend_59( + _id, _lib._sel_changeCurrentDirectoryPath_1, path?._id ?? ffi.nullptr); } - static NSDictionary dictionaryWithObjectsAndKeys_( - SentryCocoa _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 fileExistsAtPath_(NSString? path) { + return _lib._objc_msgSend_59( + _id, _lib._sel_fileExistsAtPath_1, path?._id ?? ffi.nullptr); } - static NSDictionary dictionaryWithDictionary_( - SentryCocoa _lib, NSDictionary? dict) { - final _ret = _lib._objc_msgSend_149(_lib._class_NSDictionary1, - _lib._sel_dictionaryWithDictionary_1, dict?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + bool fileExistsAtPath_isDirectory_( + NSString? path, ffi.Pointer isDirectory) { + return _lib._objc_msgSend_428(_id, _lib._sel_fileExistsAtPath_isDirectory_1, + path?._id ?? ffi.nullptr, isDirectory); } - static NSDictionary dictionaryWithObjects_forKeys_( - SentryCocoa _lib, NSArray? objects, NSArray? keys) { - final _ret = _lib._objc_msgSend_150( - _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 isReadableFileAtPath_(NSString? path) { + return _lib._objc_msgSend_59( + _id, _lib._sel_isReadableFileAtPath_1, path?._id ?? ffi.nullptr); } - 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 isWritableFileAtPath_(NSString? path) { + return _lib._objc_msgSend_59( + _id, _lib._sel_isWritableFileAtPath_1, path?._id ?? ffi.nullptr); } - NSDictionary initWithDictionary_(NSDictionary? otherDictionary) { - final _ret = _lib._objc_msgSend_149(_id, _lib._sel_initWithDictionary_1, - otherDictionary?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + bool isExecutableFileAtPath_(NSString? path) { + return _lib._objc_msgSend_59( + _id, _lib._sel_isExecutableFileAtPath_1, path?._id ?? ffi.nullptr); } - NSDictionary initWithDictionary_copyItems_( - NSDictionary? otherDictionary, bool flag) { - final _ret = _lib._objc_msgSend_151( - _id, - _lib._sel_initWithDictionary_copyItems_1, - otherDictionary?._id ?? ffi.nullptr, - flag); - return NSDictionary._(_ret, _lib, retain: false, release: true); + bool isDeletableFileAtPath_(NSString? path) { + return _lib._objc_msgSend_59( + _id, _lib._sel_isDeletableFileAtPath_1, path?._id ?? ffi.nullptr); } - NSDictionary initWithObjects_forKeys_(NSArray? objects, NSArray? keys) { - final _ret = _lib._objc_msgSend_150( - _id, - _lib._sel_initWithObjects_forKeys_1, - objects?._id ?? ffi.nullptr, - keys?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + bool contentsEqualAtPath_andPath_(NSString? path1, NSString? path2) { + return _lib._objc_msgSend_424(_id, _lib._sel_contentsEqualAtPath_andPath_1, + path1?._id ?? ffi.nullptr, path2?._id ?? ffi.nullptr); } - NSDictionary initWithContentsOfURL_error_( - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_152( - _id, - _lib._sel_initWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); + NSString displayNameAtPath_(NSString? path) { + final _ret = _lib._objc_msgSend_64( + _id, _lib._sel_displayNameAtPath_1, path?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - static NSDictionary dictionaryWithContentsOfURL_error_(SentryCocoa _lib, - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_152( - _lib._class_NSDictionary1, - _lib._sel_dictionaryWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); + NSArray componentsToDisplayForPath_(NSString? path) { + final _ret = _lib._objc_msgSend_123( + _id, _lib._sel_componentsToDisplayForPath_1, path?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSObject sharedKeySetForKeys_(SentryCocoa _lib, NSArray? keys) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSDictionary1, - _lib._sel_sharedKeySetForKeys_1, keys?._id ?? ffi.nullptr); + 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); } - int countByEnumeratingWithState_objects_count_( - ffi.Pointer state, - ffi.Pointer> buffer, - int len) { - return _lib._objc_msgSend_153( + NSObject enumeratorAtURL_includingPropertiesForKeys_options_errorHandler_( + NSURL? url, + NSArray? keys, + int mask, + ObjCBlock_bool_NSURL_NSError handler) { + final _ret = _lib._objc_msgSend_429( _id, - _lib._sel_countByEnumeratingWithState_objects_count_1, - state, - buffer, - len); + _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); } - int fileSize() { - return _lib._objc_msgSend_154(_id, _lib._sel_fileSize1); + NSArray subpathsAtPath_(NSString? path) { + final _ret = _lib._objc_msgSend_123( + _id, _lib._sel_subpathsAtPath_1, path?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSDate fileModificationDate() { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_fileModificationDate1); - return NSDate._(_ret, _lib, retain: true, release: true); + NSData contentsAtPath_(NSString? path) { + final _ret = _lib._objc_msgSend_430( + _id, _lib._sel_contentsAtPath_1, path?._id ?? ffi.nullptr); + return NSData._(_ret, _lib, retain: true, release: true); } - NSString fileType() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fileType1); - return NSString._(_ret, _lib, retain: true, release: true); + bool createFileAtPath_contents_attributes_( + NSString? path, NSData? data, NSDictionary? attr) { + return _lib._objc_msgSend_431( + _id, + _lib._sel_createFileAtPath_contents_attributes_1, + path?._id ?? ffi.nullptr, + data?._id ?? ffi.nullptr, + attr?._id ?? ffi.nullptr); } - int filePosixPermissions() { - return _lib._objc_msgSend_10(_id, _lib._sel_filePosixPermissions1); + ffi.Pointer fileSystemRepresentationWithPath_(NSString? path) { + return _lib._objc_msgSend_432(_id, + _lib._sel_fileSystemRepresentationWithPath_1, path?._id ?? ffi.nullptr); } - NSString fileOwnerAccountName() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fileOwnerAccountName1); + NSString stringWithFileSystemRepresentation_length_( + ffi.Pointer str, int len) { + final _ret = _lib._objc_msgSend_433( + _id, _lib._sel_stringWithFileSystemRepresentation_length_1, str, len); return NSString._(_ret, _lib, retain: true, release: true); } - NSString fileGroupOwnerAccountName() { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_fileGroupOwnerAccountName1); - return NSString._(_ret, _lib, retain: true, release: true); + 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_434( + _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); } - int fileSystemNumber() { - return _lib._objc_msgSend_78(_id, _lib._sel_fileSystemNumber1); + bool setUbiquitous_itemAtURL_destinationURL_error_(bool flag, NSURL? url, + NSURL? destinationURL, ffi.Pointer> error) { + return _lib._objc_msgSend_435( + _id, + _lib._sel_setUbiquitous_itemAtURL_destinationURL_error_1, + flag, + url?._id ?? ffi.nullptr, + destinationURL?._id ?? ffi.nullptr, + error); } - int fileSystemFileNumber() { - return _lib._objc_msgSend_10(_id, _lib._sel_fileSystemFileNumber1); + bool isUbiquitousItemAtURL_(NSURL? url) { + return _lib._objc_msgSend_244( + _id, _lib._sel_isUbiquitousItemAtURL_1, url?._id ?? ffi.nullptr); } - bool fileExtensionHidden() { - return _lib._objc_msgSend_12(_id, _lib._sel_fileExtensionHidden1); + bool startDownloadingUbiquitousItemAtURL_error_( + NSURL? url, ffi.Pointer> error) { + return _lib._objc_msgSend_83( + _id, + _lib._sel_startDownloadingUbiquitousItemAtURL_error_1, + url?._id ?? ffi.nullptr, + error); } - int fileHFSCreatorCode() { - return _lib._objc_msgSend_197(_id, _lib._sel_fileHFSCreatorCode1); + bool evictUbiquitousItemAtURL_error_( + NSURL? url, ffi.Pointer> error) { + return _lib._objc_msgSend_83( + _id, + _lib._sel_evictUbiquitousItemAtURL_error_1, + url?._id ?? ffi.nullptr, + error); } - int fileHFSTypeCode() { - return _lib._objc_msgSend_197(_id, _lib._sel_fileHFSTypeCode1); + 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); } - bool fileIsImmutable() { - return _lib._objc_msgSend_12(_id, _lib._sel_fileIsImmutable1); + NSURL URLForPublishingUbiquitousItemAtURL_expirationDate_error_( + NSURL? url, + ffi.Pointer> outDate, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_436( + _id, + _lib._sel_URLForPublishingUbiquitousItemAtURL_expirationDate_error_1, + url?._id ?? ffi.nullptr, + outDate, + error); + return NSURL._(_ret, _lib, retain: true, release: true); } - bool fileIsAppendOnly() { - return _lib._objc_msgSend_12(_id, _lib._sel_fileIsAppendOnly1); + 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); } - NSDate fileCreationDate() { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_fileCreationDate1); - return NSDate._(_ret, _lib, retain: true, release: true); + void getFileProviderServicesForItemAtURL_completionHandler_( + NSURL? url, ObjCBlock_ffiVoid_NSDictionary_NSError completionHandler) { + _lib._objc_msgSend_437( + _id, + _lib._sel_getFileProviderServicesForItemAtURL_completionHandler_1, + url?._id ?? ffi.nullptr, + completionHandler._id); } - NSNumber fileOwnerAccountID() { - final _ret = _lib._objc_msgSend_198(_id, _lib._sel_fileOwnerAccountID1); - return NSNumber._(_ret, _lib, retain: true, release: true); + 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); } - NSNumber fileGroupOwnerAccountID() { + NSURL? get homeDirectoryForCurrentUser { final _ret = - _lib._objc_msgSend_198(_id, _lib._sel_fileGroupOwnerAccountID1); - return NSNumber._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_40(_id, _lib._sel_homeDirectoryForCurrentUser1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + 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); + } + + 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); } @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(SentryCocoa _lib) { + static NSFileManager new1(SentryCocoa _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 allocWithZone_( + static NSFileManager allocWithZone_( SentryCocoa _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); + _lib._class_NSFileManager1, _lib._sel_allocWithZone_1, zone); + return NSFileManager._(_ret, _lib, retain: false, release: true); } - static NSDictionary alloc(SentryCocoa _lib) { + static NSFileManager alloc(SentryCocoa _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_( @@ -38819,7 +44987,7 @@ class NSDictionary extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSDictionary1, + _lib._class_NSFileManager1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -38828,24 +44996,24 @@ class NSDictionary extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSDictionary1, + _lib._objc_msgSend_15(_lib._class_NSFileManager1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSDictionary1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSFileManager1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSDictionary1, _lib._sel_useStoredAccessor1); + _lib._class_NSFileManager1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSDictionary1, + _lib._class_NSFileManager1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -38854,506 +45022,669 @@ class NSDictionary extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSDictionary1, + _lib._class_NSFileManager1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSDictionary1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSFileManager1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSFileManager1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSFileManager1, _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 _ObjCBlock_ffiVoid_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return block.ref.target + .cast< + ffi.NativeFunction arg0)>>() + .asFunction arg0)>()(arg0); +} + +final _ObjCBlock_ffiVoid_NSError_closureRegistry = {}; +int _ObjCBlock_ffiVoid_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSError_registerClosure(Function fn) { + final id = ++_ObjCBlock_ffiVoid_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSError_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return (_ObjCBlock_ffiVoid_NSError_closureRegistry[block.ref.target.address] + as void Function(ffi.Pointer))(arg0); +} + +class ObjCBlock_ffiVoid_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSError._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_NSError.fromFunctionPointer( + SentryCocoa lib, + ffi.Pointer< + ffi + .NativeFunction arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSError_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_NSError.fromFunction( + SentryCocoa lib, void Function(ffi.Pointer arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSError_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); + } +} + +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; +} - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSDictionary1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } +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; +} - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSDictionary1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } +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; } -void _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_fnPtrTrampoline( +abstract class NSURLRelationship { + static const int NSURLRelationshipContains = 0; + static const int NSURLRelationshipSame = 1; + static const int NSURLRelationshipOther = 2; +} + +bool _ObjCBlock_bool_NSURL_NSError_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { + ffi.Pointer arg1) { return block.ref.target .cast< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1, ffi.Pointer arg2)>>() + ffi.Bool Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() .asFunction< - void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); + bool Function(ffi.Pointer arg0, + ffi.Pointer arg1)>()(arg0, arg1); } -final _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureRegistry = - {}; -int _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureRegistryIndex = 0; -ffi.Pointer - _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_registerClosure(Function fn) { - final id = - ++_ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureRegistryIndex; - _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureRegistry[id] = fn; +final _ObjCBlock_bool_NSURL_NSError_closureRegistry = {}; +int _ObjCBlock_bool_NSURL_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_bool_NSURL_NSError_registerClosure( + Function fn) { + final id = ++_ObjCBlock_bool_NSURL_NSError_closureRegistryIndex; + _ObjCBlock_bool_NSURL_NSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureTrampoline( +bool _ObjCBlock_bool_NSURL_NSError_closureTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return (_ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureRegistry[ + ffi.Pointer arg1) { + return (_ObjCBlock_bool_NSURL_NSError_closureRegistry[ block.ref.target.address] - as void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2); + as bool Function( + ffi.Pointer, ffi.Pointer))(arg0, arg1); } -class ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool extends _ObjCBlockBase { - ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock_bool_NSURL_NSError extends _ObjCBlockBase { + ObjCBlock_bool_NSURL_NSError._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool.fromFunctionPointer( + ObjCBlock_bool_NSURL_NSError.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>> + ffi.Bool Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( + ffi.Bool Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_fnPtrTrampoline) + ffi.Pointer arg1)>( + _ObjCBlock_bool_NSURL_NSError_fnPtrTrampoline, false) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool.fromFunction( + ObjCBlock_bool_NSURL_NSError.fromFunction( SentryCocoa lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) + bool Function(ffi.Pointer arg0, ffi.Pointer arg1) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( + ffi.Bool Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureTrampoline) + ffi.Pointer arg1)>( + _ObjCBlock_bool_NSURL_NSError_closureTrampoline, false) .cast(), - _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_registerClosure( - fn)), + _ObjCBlock_bool_NSURL_NSError_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { + bool call(ffi.Pointer arg0, ffi.Pointer arg1) { return _id.ref.invoke .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Bool Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() + ffi.Pointer arg1)>>() .asFunction< - void Function( + bool Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + ffi.Pointer arg1)>()(_id, arg0, arg1); } } -bool _ObjCBlock_bool_ObjCObject_ObjCObject_bool_fnPtrTrampoline( +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, - ffi.Pointer arg2) { + ffi.Pointer arg1) { return block.ref.target .cast< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1, ffi.Pointer arg2)>>() + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() .asFunction< - bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); + void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>()(arg0, arg1); } -final _ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureRegistry = +final _ObjCBlock_ffiVoid_NSDictionary_NSError_closureRegistry = {}; -int _ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureRegistryIndex = 0; -ffi.Pointer - _ObjCBlock_bool_ObjCObject_ObjCObject_bool_registerClosure(Function fn) { - final id = ++_ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureRegistryIndex; - _ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureRegistry[id] = fn; +int _ObjCBlock_ffiVoid_NSDictionary_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSDictionary_NSError_registerClosure( + Function fn) { + final id = ++_ObjCBlock_ffiVoid_NSDictionary_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSDictionary_NSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -bool _ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureTrampoline( +void _ObjCBlock_ffiVoid_NSDictionary_NSError_closureTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return (_ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureRegistry[ + ffi.Pointer arg1) { + return (_ObjCBlock_ffiVoid_NSDictionary_NSError_closureRegistry[ block.ref.target.address] - as bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2); + as void Function( + ffi.Pointer, ffi.Pointer))(arg0, arg1); } -class ObjCBlock_bool_ObjCObject_ObjCObject_bool extends _ObjCBlockBase { - ObjCBlock_bool_ObjCObject_ObjCObject_bool._( +class ObjCBlock_ffiVoid_NSDictionary_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSDictionary_NSError._( ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_bool_ObjCObject_ObjCObject_bool.fromFunctionPointer( + ObjCBlock_ffiVoid_NSDictionary_NSError.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>> + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock_bool_ObjCObject_ObjCObject_bool_fnPtrTrampoline, - false) + ffi.Pointer arg1)>( + _ObjCBlock_ffiVoid_NSDictionary_NSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_bool_ObjCObject_ObjCObject_bool.fromFunction( + ObjCBlock_ffiVoid_NSDictionary_NSError.fromFunction( SentryCocoa lib, - bool Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) + void Function(ffi.Pointer arg0, ffi.Pointer arg1) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureTrampoline, - false) + ffi.Pointer arg1)>( + _ObjCBlock_ffiVoid_NSDictionary_NSError_closureTrampoline) .cast(), - _ObjCBlock_bool_ObjCObject_ObjCObject_bool_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSDictionary_NSError_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; - bool call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { + void call(ffi.Pointer arg0, ffi.Pointer arg1) { return _id.ref.invoke .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() + ffi.Pointer arg1)>>() .asFunction< - bool Function( + void Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + ffi.Pointer arg1)>()(_id, arg0, arg1); } } -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, SentryCocoa lib, +class NSMutableArray extends NSArray { + NSMutableArray._(ffi.Pointer id, SentryCocoa 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(SentryCocoa lib, ffi.Pointer other, + /// Returns a [NSMutableArray] that wraps the given raw object pointer. + static NSMutableArray castFromPointer( + SentryCocoa 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); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMutableArray1); } - double get timeIntervalSinceReferenceDate { - return _lib._objc_msgSend_155( - _id, _lib._sel_timeIntervalSinceReferenceDate1); + void addObject_(NSObject anObject) { + _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, anObject._id); + } + + void insertObject_atIndex_(NSObject anObject, int index) { + _lib._objc_msgSend_440( + _id, _lib._sel_insertObject_atIndex_1, anObject._id, index); + } + + void removeLastObject() { + _lib._objc_msgSend_1(_id, _lib._sel_removeLastObject1); + } + + void removeObjectAtIndex_(int index) { + _lib._objc_msgSend_441(_id, _lib._sel_removeObjectAtIndex_1, index); + } + + void replaceObjectAtIndex_withObject_(int index, NSObject anObject) { + _lib._objc_msgSend_442( + _id, _lib._sel_replaceObjectAtIndex_withObject_1, index, anObject._id); } @override - NSDate init() { + NSMutableArray init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSDate._(_ret, _lib, retain: true, release: true); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } - NSDate initWithTimeIntervalSinceReferenceDate_(double ti) { - final _ret = _lib._objc_msgSend_156( - _id, _lib._sel_initWithTimeIntervalSinceReferenceDate_1, ti); - return NSDate._(_ret, _lib, retain: true, release: true); + NSMutableArray initWithCapacity_(int numItems) { + final _ret = + _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, numItems); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } - NSDate initWithCoder_(NSCoder? coder) { + @override + NSMutableArray 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); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } - double timeIntervalSinceDate_(NSDate? anotherDate) { - return _lib._objc_msgSend_157(_id, _lib._sel_timeIntervalSinceDate_1, - anotherDate?._id ?? ffi.nullptr); + void addObjectsFromArray_(NSArray? otherArray) { + _lib._objc_msgSend_443( + _id, _lib._sel_addObjectsFromArray_1, otherArray?._id ?? ffi.nullptr); } - double get timeIntervalSinceNow { - return _lib._objc_msgSend_155(_id, _lib._sel_timeIntervalSinceNow1); + void exchangeObjectAtIndex_withObjectAtIndex_(int idx1, int idx2) { + _lib._objc_msgSend_444( + _id, _lib._sel_exchangeObjectAtIndex_withObjectAtIndex_1, idx1, idx2); } - double get timeIntervalSince1970 { - return _lib._objc_msgSend_155(_id, _lib._sel_timeIntervalSince19701); + void removeAllObjects() { + _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); } - NSObject addTimeInterval_(double seconds) { - final _ret = - _lib._objc_msgSend_156(_id, _lib._sel_addTimeInterval_1, seconds); - return NSObject._(_ret, _lib, retain: true, release: true); + void removeObject_inRange_(NSObject anObject, _NSRange range) { + _lib._objc_msgSend_445( + _id, _lib._sel_removeObject_inRange_1, anObject._id, range); } - NSDate dateByAddingTimeInterval_(double ti) { - final _ret = - _lib._objc_msgSend_156(_id, _lib._sel_dateByAddingTimeInterval_1, ti); - return NSDate._(_ret, _lib, retain: true, release: true); + void removeObject_(NSObject anObject) { + _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, anObject._id); } - NSDate earlierDate_(NSDate? anotherDate) { - final _ret = _lib._objc_msgSend_158( - _id, _lib._sel_earlierDate_1, anotherDate?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); + void removeObjectIdenticalTo_inRange_(NSObject anObject, _NSRange range) { + _lib._objc_msgSend_445( + _id, _lib._sel_removeObjectIdenticalTo_inRange_1, anObject._id, range); } - NSDate laterDate_(NSDate? anotherDate) { - final _ret = _lib._objc_msgSend_158( - _id, _lib._sel_laterDate_1, anotherDate?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); + void removeObjectIdenticalTo_(NSObject anObject) { + _lib._objc_msgSend_15( + _id, _lib._sel_removeObjectIdenticalTo_1, anObject._id); } - int compare_(NSDate? other) { - return _lib._objc_msgSend_159( - _id, _lib._sel_compare_1, other?._id ?? ffi.nullptr); + void removeObjectsFromIndices_numIndices_( + ffi.Pointer indices, int cnt) { + _lib._objc_msgSend_446( + _id, _lib._sel_removeObjectsFromIndices_numIndices_1, indices, cnt); } - bool isEqualToDate_(NSDate? otherDate) { - return _lib._objc_msgSend_160( - _id, _lib._sel_isEqualToDate_1, otherDate?._id ?? ffi.nullptr); + void removeObjectsInArray_(NSArray? otherArray) { + _lib._objc_msgSend_443( + _id, _lib._sel_removeObjectsInArray_1, otherArray?._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); + void removeObjectsInRange_(_NSRange range) { + _lib._objc_msgSend_447(_id, _lib._sel_removeObjectsInRange_1, range); } - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_65( - _id, _lib._sel_descriptionWithLocale_1, locale._id); - return NSString._(_ret, _lib, retain: true, release: true); + void replaceObjectsInRange_withObjectsFromArray_range_( + _NSRange range, NSArray? otherArray, _NSRange otherRange) { + _lib._objc_msgSend_448( + _id, + _lib._sel_replaceObjectsInRange_withObjectsFromArray_range_1, + range, + otherArray?._id ?? ffi.nullptr, + otherRange); } - static NSDate date(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSDate1, _lib._sel_date1); - return NSDate._(_ret, _lib, retain: true, release: true); + void replaceObjectsInRange_withObjectsFromArray_( + _NSRange range, NSArray? otherArray) { + _lib._objc_msgSend_449( + _id, + _lib._sel_replaceObjectsInRange_withObjectsFromArray_1, + range, + otherArray?._id ?? ffi.nullptr); } - static NSDate dateWithTimeIntervalSinceNow_(SentryCocoa _lib, double secs) { - final _ret = _lib._objc_msgSend_156( - _lib._class_NSDate1, _lib._sel_dateWithTimeIntervalSinceNow_1, secs); - return NSDate._(_ret, _lib, retain: true, release: true); + void setArray_(NSArray? otherArray) { + _lib._objc_msgSend_443( + _id, _lib._sel_setArray_1, otherArray?._id ?? ffi.nullptr); } - static NSDate dateWithTimeIntervalSinceReferenceDate_( - SentryCocoa _lib, double ti) { - final _ret = _lib._objc_msgSend_156(_lib._class_NSDate1, - _lib._sel_dateWithTimeIntervalSinceReferenceDate_1, ti); - return 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_450( + _id, _lib._sel_sortUsingFunction_context_1, compare, context); } - static NSDate dateWithTimeIntervalSince1970_(SentryCocoa _lib, double secs) { - final _ret = _lib._objc_msgSend_156( - _lib._class_NSDate1, _lib._sel_dateWithTimeIntervalSince1970_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); } - static NSDate dateWithTimeInterval_sinceDate_( - SentryCocoa _lib, double secsToBeAdded, NSDate? date) { - final _ret = _lib._objc_msgSend_161( - _lib._class_NSDate1, - _lib._sel_dateWithTimeInterval_sinceDate_1, - secsToBeAdded, - date?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); + void insertObjects_atIndexes_(NSArray? objects, NSIndexSet? indexes) { + _lib._objc_msgSend_451(_id, _lib._sel_insertObjects_atIndexes_1, + objects?._id ?? ffi.nullptr, indexes?._id ?? ffi.nullptr); } - static NSDate? getDistantFuture(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_162(_lib._class_NSDate1, _lib._sel_distantFuture1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + void removeObjectsAtIndexes_(NSIndexSet? indexes) { + _lib._objc_msgSend_452( + _id, _lib._sel_removeObjectsAtIndexes_1, indexes?._id ?? ffi.nullptr); } - static NSDate? getDistantPast(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_162(_lib._class_NSDate1, _lib._sel_distantPast1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + void replaceObjectsAtIndexes_withObjects_( + NSIndexSet? indexes, NSArray? objects) { + _lib._objc_msgSend_453(_id, _lib._sel_replaceObjectsAtIndexes_withObjects_1, + indexes?._id ?? ffi.nullptr, objects?._id ?? ffi.nullptr); } - static NSDate? getNow(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_162(_lib._class_NSDate1, _lib._sel_now1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + void setObject_atIndexedSubscript_(NSObject obj, int idx) { + _lib._objc_msgSend_440( + _id, _lib._sel_setObject_atIndexedSubscript_1, obj._id, idx); + } + + void sortUsingComparator_( + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + _lib._objc_msgSend_454(_id, _lib._sel_sortUsingComparator_1, cmptr._id); + } + + void sortWithOptions_usingComparator_( + int opts, ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + _lib._objc_msgSend_455( + _id, _lib._sel_sortWithOptions_usingComparator_1, opts, cmptr._id); + } + + static NSMutableArray arrayWithCapacity_(SentryCocoa _lib, int numItems) { + final _ret = _lib._objc_msgSend_60( + _lib._class_NSMutableArray1, _lib._sel_arrayWithCapacity_1, numItems); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } + + static NSMutableArray arrayWithContentsOfFile_( + SentryCocoa _lib, NSString? path) { + final _ret = _lib._objc_msgSend_456(_lib._class_NSMutableArray1, + _lib._sel_arrayWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } + + static NSMutableArray arrayWithContentsOfURL_(SentryCocoa _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_457(_lib._class_NSMutableArray1, + _lib._sel_arrayWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } + + NSMutableArray initWithContentsOfFile_(NSString? path) { + final _ret = _lib._objc_msgSend_456( + _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } + + NSMutableArray initWithContentsOfURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_457( + _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } + + void applyDifference_(NSObject? difference) { + _lib._objc_msgSend_15( + _id, _lib._sel_applyDifference_1, difference?._id ?? ffi.nullptr); + } + + void sortUsingDescriptors_(NSArray? sortDescriptors) { + _lib._objc_msgSend_443(_id, _lib._sel_sortUsingDescriptors_1, + sortDescriptors?._id ?? ffi.nullptr); + } + + void filterUsingPredicate_(NSPredicate? predicate) { + _lib._objc_msgSend_458( + _id, _lib._sel_filterUsingPredicate_1, predicate?._id ?? ffi.nullptr); } - NSDate initWithTimeIntervalSinceNow_(double secs) { - final _ret = _lib._objc_msgSend_156( - _id, _lib._sel_initWithTimeIntervalSinceNow_1, secs); - return NSDate._(_ret, _lib, retain: true, release: true); + @override + NSMutableArray initWithObjects_count_( + ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_61( + _id, _lib._sel_initWithObjects_count_1, objects, cnt); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } - NSDate initWithTimeIntervalSince1970_(double secs) { - final _ret = _lib._objc_msgSend_156( - _id, _lib._sel_initWithTimeIntervalSince1970_1, secs); - return NSDate._(_ret, _lib, retain: true, release: true); + static NSMutableArray array(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_array1); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } - NSDate initWithTimeInterval_sinceDate_(double secsToBeAdded, NSDate? date) { - final _ret = _lib._objc_msgSend_161( - _id, - _lib._sel_initWithTimeInterval_sinceDate_1, - secsToBeAdded, - date?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); + static NSMutableArray arrayWithObject_(SentryCocoa _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); } - static NSObject dateWithNaturalLanguageString_locale_( - SentryCocoa _lib, NSString? string, NSObject locale) { - final _ret = _lib._objc_msgSend_163( - _lib._class_NSDate1, - _lib._sel_dateWithNaturalLanguageString_locale_1, - string?._id ?? ffi.nullptr, - locale._id); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSMutableArray arrayWithObjects_count_( + SentryCocoa _lib, ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_61(_lib._class_NSMutableArray1, + _lib._sel_arrayWithObjects_count_1, objects, cnt); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } - static NSObject dateWithNaturalLanguageString_( - SentryCocoa _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSDate1, - _lib._sel_dateWithNaturalLanguageString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSMutableArray arrayWithObjects_(SentryCocoa _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 dateWithString_(SentryCocoa _lib, NSString? aString) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSDate1, - _lib._sel_dateWithString_1, aString?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSMutableArray arrayWithArray_(SentryCocoa _lib, NSArray? array) { + final _ret = _lib._objc_msgSend_67(_lib._class_NSMutableArray1, + _lib._sel_arrayWithArray_1, array?._id ?? ffi.nullptr); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } - NSCalendarDate dateWithCalendarFormat_timeZone_( - NSString? format, NSTimeZone? aTimeZone) { - final _ret = _lib._objc_msgSend_195( - _id, - _lib._sel_dateWithCalendarFormat_timeZone_1, - format?._id ?? ffi.nullptr, - aTimeZone?._id ?? ffi.nullptr); - return NSCalendarDate._(_ret, _lib, retain: true, release: true); + @override + NSMutableArray initWithObjects_(NSObject firstObj) { + final _ret = + _lib._objc_msgSend_16(_id, _lib._sel_initWithObjects_1, firstObj._id); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } - NSString descriptionWithCalendarFormat_timeZone_locale_( - NSString? format, NSTimeZone? aTimeZone, NSObject locale) { - final _ret = _lib._objc_msgSend_196( - _id, - _lib._sel_descriptionWithCalendarFormat_timeZone_locale_1, - format?._id ?? ffi.nullptr, - aTimeZone?._id ?? ffi.nullptr, - locale._id); - return NSString._(_ret, _lib, retain: true, release: true); + @override + NSMutableArray initWithArray_(NSArray? array) { + final _ret = _lib._objc_msgSend_67( + _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } - NSObject initWithString_(NSString? description) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, description?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + @override + NSMutableArray initWithArray_copyItems_(NSArray? array, bool flag) { + final _ret = _lib._objc_msgSend_118(_id, + _lib._sel_initWithArray_copyItems_1, array?._id ?? ffi.nullptr, flag); + return NSMutableArray._(_ret, _lib, retain: false, release: true); } - static NSDate new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSDate1, _lib._sel_new1); - return NSDate._(_ret, _lib, retain: false, release: true); + static NSArray arrayWithContentsOfURL_error_(SentryCocoa _lib, NSURL? url, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_119( + _lib._class_NSMutableArray1, + _lib._sel_arrayWithContentsOfURL_error_1, + url?._id ?? ffi.nullptr, + error); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSDate allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static NSMutableArray new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_new1); + return NSMutableArray._(_ret, _lib, retain: false, release: true); + } + + static NSMutableArray allocWithZone_( + SentryCocoa _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); + _lib._class_NSMutableArray1, _lib._sel_allocWithZone_1, zone); + return NSMutableArray._(_ret, _lib, retain: false, release: true); } - static NSDate alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSDate1, _lib._sel_alloc1); - return NSDate._(_ret, _lib, retain: false, release: true); + static NSMutableArray alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_alloc1); + return NSMutableArray._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -39362,7 +45693,7 @@ class NSDate extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSDate1, + _lib._class_NSMutableArray1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -39371,24 +45702,24 @@ class NSDate extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSDate1, + _lib._objc_msgSend_15(_lib._class_NSMutableArray1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSDate1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSMutableArray1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSDate1, _lib._sel_useStoredAccessor1); + _lib._class_NSMutableArray1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSDate1, + _lib._class_NSMutableArray1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -39397,7 +45728,7 @@ class NSDate extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSDate1, + _lib._class_NSMutableArray1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -39405,7 +45736,7 @@ class NSDate extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSDate1, + _lib._class_NSMutableArray1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -39413,711 +45744,404 @@ class NSDate extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSDate1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSMutableArray1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSDate1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSMutableArray1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSCalendarDate extends NSDate { - NSCalendarDate._(ffi.Pointer id, SentryCocoa lib, +class NSMutableOrderedSet extends NSOrderedSet { + NSMutableOrderedSet._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSCalendarDate] that points to the same underlying object as [other]. - static NSCalendarDate castFrom(T other) { - return NSCalendarDate._(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 [NSCalendarDate] that wraps the given raw object pointer. - static NSCalendarDate castFromPointer( + /// Returns a [NSMutableOrderedSet] that wraps the given raw object pointer. + static NSMutableOrderedSet castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSCalendarDate._(other, lib, retain: retain, release: release); + return NSMutableOrderedSet._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSCalendarDate]. + /// 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_NSCalendarDate1); - } - - static NSObject calendarDate(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSCalendarDate1, _lib._sel_calendarDate1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject dateWithString_calendarFormat_locale_(SentryCocoa _lib, - NSString? description, NSString? format, NSObject locale) { - final _ret = _lib._objc_msgSend_164( - _lib._class_NSCalendarDate1, - _lib._sel_dateWithString_calendarFormat_locale_1, - description?._id ?? ffi.nullptr, - format?._id ?? ffi.nullptr, - locale._id); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject dateWithString_calendarFormat_( - SentryCocoa _lib, NSString? description, NSString? format) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSCalendarDate1, - _lib._sel_dateWithString_calendarFormat_1, - description?._id ?? ffi.nullptr, - format?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject dateWithYear_month_day_hour_minute_second_timeZone_( - SentryCocoa _lib, - int year, - int month, - int day, - int hour, - int minute, - int second, - NSTimeZone? aTimeZone) { - final _ret = _lib._objc_msgSend_190( - _lib._class_NSCalendarDate1, - _lib._sel_dateWithYear_month_day_hour_minute_second_timeZone_1, - year, - month, - day, - hour, - minute, - second, - aTimeZone?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSCalendarDate dateByAddingYears_months_days_hours_minutes_seconds_( - int year, int month, int day, int hour, int minute, int second) { - final _ret = _lib._objc_msgSend_191( - _id, - _lib._sel_dateByAddingYears_months_days_hours_minutes_seconds_1, - year, - month, - day, - hour, - minute, - second); - return NSCalendarDate._(_ret, _lib, retain: true, release: true); - } - - int dayOfCommonEra() { - return _lib._objc_msgSend_78(_id, _lib._sel_dayOfCommonEra1); - } - - int dayOfMonth() { - return _lib._objc_msgSend_78(_id, _lib._sel_dayOfMonth1); - } - - int dayOfWeek() { - return _lib._objc_msgSend_78(_id, _lib._sel_dayOfWeek1); - } - - int dayOfYear() { - return _lib._objc_msgSend_78(_id, _lib._sel_dayOfYear1); - } - - int hourOfDay() { - return _lib._objc_msgSend_78(_id, _lib._sel_hourOfDay1); - } - - int minuteOfHour() { - return _lib._objc_msgSend_78(_id, _lib._sel_minuteOfHour1); - } - - int monthOfYear() { - return _lib._objc_msgSend_78(_id, _lib._sel_monthOfYear1); - } - - int secondOfMinute() { - return _lib._objc_msgSend_78(_id, _lib._sel_secondOfMinute1); - } - - int yearOfCommonEra() { - return _lib._objc_msgSend_78(_id, _lib._sel_yearOfCommonEra1); - } - - NSString calendarFormat() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_calendarFormat1); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString descriptionWithCalendarFormat_locale_( - NSString? format, NSObject locale) { - final _ret = _lib._objc_msgSend_173( - _id, - _lib._sel_descriptionWithCalendarFormat_locale_1, - format?._id ?? ffi.nullptr, - locale._id); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString descriptionWithCalendarFormat_(NSString? format) { - final _ret = _lib._objc_msgSend_64(_id, - _lib._sel_descriptionWithCalendarFormat_1, format?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - @override - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_65( - _id, _lib._sel_descriptionWithLocale_1, locale._id); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSTimeZone timeZone() { - final _ret = _lib._objc_msgSend_168(_id, _lib._sel_timeZone1); - return NSTimeZone._(_ret, _lib, retain: true, release: true); - } - - NSObject initWithString_calendarFormat_locale_( - NSString? description, NSString? format, NSObject locale) { - final _ret = _lib._objc_msgSend_164( - _id, - _lib._sel_initWithString_calendarFormat_locale_1, - description?._id ?? ffi.nullptr, - format?._id ?? ffi.nullptr, - locale._id); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject initWithString_calendarFormat_( - NSString? description, NSString? format) { - final _ret = _lib._objc_msgSend_165( - _id, - _lib._sel_initWithString_calendarFormat_1, - description?._id ?? ffi.nullptr, - format?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - @override - NSObject initWithString_(NSString? description) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, description?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject initWithYear_month_day_hour_minute_second_timeZone_( - int year, - int month, - int day, - int hour, - int minute, - int second, - NSTimeZone? aTimeZone) { - final _ret = _lib._objc_msgSend_190( - _id, - _lib._sel_initWithYear_month_day_hour_minute_second_timeZone_1, - year, - month, - day, - hour, - minute, - second, - aTimeZone?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - void setCalendarFormat_(NSString? format) { - _lib._objc_msgSend_192( - _id, _lib._sel_setCalendarFormat_1, format?._id ?? ffi.nullptr); - } - - void setTimeZone_(NSTimeZone? aTimeZone) { - _lib._objc_msgSend_193( - _id, _lib._sel_setTimeZone_1, aTimeZone?._id ?? ffi.nullptr); - } - - void years_months_days_hours_minutes_seconds_sinceDate_( - ffi.Pointer yp, - ffi.Pointer mop, - ffi.Pointer dp, - ffi.Pointer hp, - ffi.Pointer mip, - ffi.Pointer sp, - NSCalendarDate? date) { - _lib._objc_msgSend_194( - _id, - _lib._sel_years_months_days_hours_minutes_seconds_sinceDate_1, - yp, - mop, - dp, - hp, - mip, - sp, - date?._id ?? ffi.nullptr); - } - - static NSDate? getDistantFuture(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_162( - _lib._class_NSCalendarDate1, _lib._sel_distantFuture1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + obj._lib._class_NSMutableOrderedSet1); } - static NSDate? getDistantPast(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_162( - _lib._class_NSCalendarDate1, _lib._sel_distantPast1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + void insertObject_atIndex_(NSObject object, int idx) { + _lib._objc_msgSend_440( + _id, _lib._sel_insertObject_atIndex_1, object._id, idx); } - @override - NSCalendarDate init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSCalendarDate._(_ret, _lib, retain: true, release: true); + void removeObjectAtIndex_(int idx) { + _lib._objc_msgSend_441(_id, _lib._sel_removeObjectAtIndex_1, idx); } - @override - NSCalendarDate initWithTimeIntervalSinceReferenceDate_(double ti) { - final _ret = _lib._objc_msgSend_156( - _id, _lib._sel_initWithTimeIntervalSinceReferenceDate_1, ti); - return NSCalendarDate._(_ret, _lib, retain: true, release: true); + void replaceObjectAtIndex_withObject_(int idx, NSObject object) { + _lib._objc_msgSend_442( + _id, _lib._sel_replaceObjectAtIndex_withObject_1, idx, object._id); } @override - NSCalendarDate initWithCoder_(NSCoder? coder) { + NSMutableOrderedSet initWithCoder_(NSCoder? coder) { final _ret = _lib._objc_msgSend_42( _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSCalendarDate._(_ret, _lib, retain: true, release: true); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } @override - NSCalendarDate dateByAddingTimeInterval_(double ti) { - final _ret = - _lib._objc_msgSend_156(_id, _lib._sel_dateByAddingTimeInterval_1, ti); - return NSCalendarDate._(_ret, _lib, retain: true, release: true); - } - - static NSCalendarDate date(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSCalendarDate1, _lib._sel_date1); - return NSCalendarDate._(_ret, _lib, retain: true, release: true); - } - - static NSCalendarDate dateWithTimeIntervalSinceNow_( - SentryCocoa _lib, double secs) { - final _ret = _lib._objc_msgSend_156(_lib._class_NSCalendarDate1, - _lib._sel_dateWithTimeIntervalSinceNow_1, secs); - return NSCalendarDate._(_ret, _lib, retain: true, release: true); - } - - static NSCalendarDate dateWithTimeIntervalSinceReferenceDate_( - SentryCocoa _lib, double ti) { - final _ret = _lib._objc_msgSend_156(_lib._class_NSCalendarDate1, - _lib._sel_dateWithTimeIntervalSinceReferenceDate_1, ti); - return NSCalendarDate._(_ret, _lib, retain: true, release: true); - } - - static NSCalendarDate dateWithTimeIntervalSince1970_( - SentryCocoa _lib, double secs) { - final _ret = _lib._objc_msgSend_156(_lib._class_NSCalendarDate1, - _lib._sel_dateWithTimeIntervalSince1970_1, secs); - return NSCalendarDate._(_ret, _lib, retain: true, release: true); - } - - static NSCalendarDate dateWithTimeInterval_sinceDate_( - SentryCocoa _lib, double secsToBeAdded, NSDate? date) { - final _ret = _lib._objc_msgSend_161( - _lib._class_NSCalendarDate1, - _lib._sel_dateWithTimeInterval_sinceDate_1, - secsToBeAdded, - date?._id ?? ffi.nullptr); - return NSCalendarDate._(_ret, _lib, retain: true, release: true); + NSMutableOrderedSet init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - static NSDate? getNow(SentryCocoa _lib) { + NSMutableOrderedSet initWithCapacity_(int numItems) { final _ret = - _lib._objc_msgSend_162(_lib._class_NSCalendarDate1, _lib._sel_now1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); - } - - @override - NSCalendarDate initWithTimeIntervalSinceNow_(double secs) { - final _ret = _lib._objc_msgSend_156( - _id, _lib._sel_initWithTimeIntervalSinceNow_1, secs); - return NSCalendarDate._(_ret, _lib, retain: true, release: true); - } - - @override - NSCalendarDate initWithTimeIntervalSince1970_(double secs) { - final _ret = _lib._objc_msgSend_156( - _id, _lib._sel_initWithTimeIntervalSince1970_1, secs); - return NSCalendarDate._(_ret, _lib, retain: true, release: true); - } - - @override - NSCalendarDate initWithTimeInterval_sinceDate_( - double secsToBeAdded, NSDate? date) { - final _ret = _lib._objc_msgSend_161( - _id, - _lib._sel_initWithTimeInterval_sinceDate_1, - secsToBeAdded, - date?._id ?? ffi.nullptr); - return NSCalendarDate._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, numItems); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - static NSObject dateWithNaturalLanguageString_locale_( - SentryCocoa _lib, NSString? string, NSObject locale) { - final _ret = _lib._objc_msgSend_163( - _lib._class_NSCalendarDate1, - _lib._sel_dateWithNaturalLanguageString_locale_1, - string?._id ?? ffi.nullptr, - locale._id); - return NSObject._(_ret, _lib, retain: true, release: true); + void addObject_(NSObject object) { + _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, object._id); } - static NSObject dateWithNaturalLanguageString_( - SentryCocoa _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSCalendarDate1, - _lib._sel_dateWithNaturalLanguageString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + void addObjects_count_( + ffi.Pointer> objects, int count) { + _lib._objc_msgSend_469(_id, _lib._sel_addObjects_count_1, objects, count); } - static NSObject dateWithString_(SentryCocoa _lib, NSString? aString) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSCalendarDate1, - _lib._sel_dateWithString_1, aString?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + void addObjectsFromArray_(NSArray? array) { + _lib._objc_msgSend_443( + _id, _lib._sel_addObjectsFromArray_1, array?._id ?? ffi.nullptr); } - static NSCalendarDate new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSCalendarDate1, _lib._sel_new1); - return NSCalendarDate._(_ret, _lib, retain: false, release: true); + void exchangeObjectAtIndex_withObjectAtIndex_(int idx1, int idx2) { + _lib._objc_msgSend_444( + _id, _lib._sel_exchangeObjectAtIndex_withObjectAtIndex_1, idx1, idx2); } - static NSCalendarDate allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSCalendarDate1, _lib._sel_allocWithZone_1, zone); - return NSCalendarDate._(_ret, _lib, retain: false, release: true); + void moveObjectsAtIndexes_toIndex_(NSIndexSet? indexes, int idx) { + _lib._objc_msgSend_470(_id, _lib._sel_moveObjectsAtIndexes_toIndex_1, + indexes?._id ?? ffi.nullptr, idx); } - static NSCalendarDate alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSCalendarDate1, _lib._sel_alloc1); - return NSCalendarDate._(_ret, _lib, retain: false, release: true); + void insertObjects_atIndexes_(NSArray? objects, NSIndexSet? indexes) { + _lib._objc_msgSend_451(_id, _lib._sel_insertObjects_atIndexes_1, + objects?._id ?? ffi.nullptr, indexes?._id ?? ffi.nullptr); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSCalendarDate1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + void setObject_atIndex_(NSObject obj, int idx) { + _lib._objc_msgSend_440(_id, _lib._sel_setObject_atIndex_1, obj._id, idx); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSCalendarDate1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + void setObject_atIndexedSubscript_(NSObject obj, int idx) { + _lib._objc_msgSend_440( + _id, _lib._sel_setObject_atIndexedSubscript_1, obj._id, idx); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSCalendarDate1, - _lib._sel_accessInstanceVariablesDirectly1); + void replaceObjectsInRange_withObjects_count_( + _NSRange range, ffi.Pointer> objects, int count) { + _lib._objc_msgSend_471( + _id, + _lib._sel_replaceObjectsInRange_withObjects_count_1, + range, + objects, + count); } - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSCalendarDate1, _lib._sel_useStoredAccessor1); + void replaceObjectsAtIndexes_withObjects_( + NSIndexSet? indexes, NSArray? objects) { + _lib._objc_msgSend_453(_id, _lib._sel_replaceObjectsAtIndexes_withObjects_1, + indexes?._id ?? ffi.nullptr, objects?._id ?? ffi.nullptr); } - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSCalendarDate1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + void removeObjectsInRange_(_NSRange range) { + _lib._objc_msgSend_447(_id, _lib._sel_removeObjectsInRange_1, range); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSCalendarDate1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + void removeObjectsAtIndexes_(NSIndexSet? indexes) { + _lib._objc_msgSend_452( + _id, _lib._sel_removeObjectsAtIndexes_1, indexes?._id ?? ffi.nullptr); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSCalendarDate1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + void removeAllObjects() { + _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSCalendarDate1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + void removeObject_(NSObject object) { + _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, object._id); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSCalendarDate1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + void removeObjectsInArray_(NSArray? array) { + _lib._objc_msgSend_443( + _id, _lib._sel_removeObjectsInArray_1, array?._id ?? ffi.nullptr); } -} - -class NSTimeZone extends NSObject { - NSTimeZone._(ffi.Pointer id, SentryCocoa 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); + void intersectOrderedSet_(NSOrderedSet? other) { + _lib._objc_msgSend_472( + _id, _lib._sel_intersectOrderedSet_1, other?._id ?? ffi.nullptr); } - /// Returns a [NSTimeZone] that wraps the given raw object pointer. - static NSTimeZone castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSTimeZone._(other, lib, retain: retain, release: release); + void minusOrderedSet_(NSOrderedSet? other) { + _lib._objc_msgSend_472( + _id, _lib._sel_minusOrderedSet_1, other?._id ?? ffi.nullptr); } - /// 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_NSTimeZone1); + void unionOrderedSet_(NSOrderedSet? other) { + _lib._objc_msgSend_472( + _id, _lib._sel_unionOrderedSet_1, other?._id ?? ffi.nullptr); } - 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); + void intersectSet_(NSSet? other) { + _lib._objc_msgSend_473( + _id, _lib._sel_intersectSet_1, other?._id ?? ffi.nullptr); } - 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); + void minusSet_(NSSet? other) { + _lib._objc_msgSend_473( + _id, _lib._sel_minusSet_1, other?._id ?? ffi.nullptr); } - int secondsFromGMTForDate_(NSDate? aDate) { - return _lib._objc_msgSend_166( - _id, _lib._sel_secondsFromGMTForDate_1, aDate?._id ?? ffi.nullptr); + void unionSet_(NSSet? other) { + _lib._objc_msgSend_473( + _id, _lib._sel_unionSet_1, other?._id ?? ffi.nullptr); } - NSString abbreviationForDate_(NSDate? aDate) { - final _ret = _lib._objc_msgSend_167( - _id, _lib._sel_abbreviationForDate_1, aDate?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + void sortUsingComparator_( + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + _lib._objc_msgSend_454(_id, _lib._sel_sortUsingComparator_1, cmptr._id); } - bool isDaylightSavingTimeForDate_(NSDate? aDate) { - return _lib._objc_msgSend_160(_id, _lib._sel_isDaylightSavingTimeForDate_1, - aDate?._id ?? ffi.nullptr); + void sortWithOptions_usingComparator_( + int opts, ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + _lib._objc_msgSend_455( + _id, _lib._sel_sortWithOptions_usingComparator_1, opts, cmptr._id); } - double daylightSavingTimeOffsetForDate_(NSDate? aDate) { - return _lib._objc_msgSend_157(_id, - _lib._sel_daylightSavingTimeOffsetForDate_1, aDate?._id ?? ffi.nullptr); + void sortRange_options_usingComparator_(_NSRange range, int opts, + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + _lib._objc_msgSend_474(_id, _lib._sel_sortRange_options_usingComparator_1, + range, opts, cmptr._id); } - NSDate nextDaylightSavingTimeTransitionAfterDate_(NSDate? aDate) { - final _ret = _lib._objc_msgSend_158( - _id, - _lib._sel_nextDaylightSavingTimeTransitionAfterDate_1, - aDate?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); + static NSMutableOrderedSet orderedSetWithCapacity_( + SentryCocoa _lib, int numItems) { + final _ret = _lib._objc_msgSend_60(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithCapacity_1, numItems); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - static NSTimeZone? getSystemTimeZone(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_168( - _lib._class_NSTimeZone1, _lib._sel_systemTimeZone1); - return _ret.address == 0 - ? null - : NSTimeZone._(_ret, _lib, retain: true, release: true); + void applyDifference_(NSObject? difference) { + _lib._objc_msgSend_15( + _id, _lib._sel_applyDifference_1, difference?._id ?? ffi.nullptr); } - static void resetSystemTimeZone(SentryCocoa _lib) { - _lib._objc_msgSend_1( - _lib._class_NSTimeZone1, _lib._sel_resetSystemTimeZone1); + void sortUsingDescriptors_(NSArray? sortDescriptors) { + _lib._objc_msgSend_443(_id, _lib._sel_sortUsingDescriptors_1, + sortDescriptors?._id ?? ffi.nullptr); } - static NSTimeZone? getDefaultTimeZone(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_168( - _lib._class_NSTimeZone1, _lib._sel_defaultTimeZone1); - return _ret.address == 0 - ? null - : NSTimeZone._(_ret, _lib, retain: true, release: true); + void filterUsingPredicate_(NSPredicate? p) { + _lib._objc_msgSend_458( + _id, _lib._sel_filterUsingPredicate_1, p?._id ?? ffi.nullptr); } - static void setDefaultTimeZone(SentryCocoa _lib, NSTimeZone? value) { - return _lib._objc_msgSend_169(_lib._class_NSTimeZone1, - _lib._sel_setDefaultTimeZone_1, value?._id ?? ffi.nullptr); + @override + NSMutableOrderedSet initWithObjects_count_( + ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_61( + _id, _lib._sel_initWithObjects_count_1, objects, cnt); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - static NSTimeZone? getLocalTimeZone(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_168( - _lib._class_NSTimeZone1, _lib._sel_localTimeZone1); - return _ret.address == 0 - ? null - : NSTimeZone._(_ret, _lib, retain: true, release: true); + static NSMutableOrderedSet orderedSet(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableOrderedSet1, _lib._sel_orderedSet1); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - static NSArray? getKnownTimeZoneNames(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSTimeZone1, _lib._sel_knownTimeZoneNames1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static NSMutableOrderedSet orderedSetWithObject_( + SentryCocoa _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); } - static NSDictionary? getAbbreviationDictionary(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_170( - _lib._class_NSTimeZone1, _lib._sel_abbreviationDictionary1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + static NSMutableOrderedSet orderedSetWithObjects_count_( + SentryCocoa _lib, ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_61(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithObjects_count_1, objects, cnt); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - static void setAbbreviationDictionary(SentryCocoa _lib, NSDictionary? value) { - return _lib._objc_msgSend_171(_lib._class_NSTimeZone1, - _lib._sel_setAbbreviationDictionary_1, value?._id ?? ffi.nullptr); + static NSMutableOrderedSet orderedSetWithObjects_( + SentryCocoa _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); } - static NSString? getTimeZoneDataVersion(SentryCocoa _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); + static NSMutableOrderedSet orderedSetWithOrderedSet_( + SentryCocoa _lib, NSOrderedSet? set) { + final _ret = _lib._objc_msgSend_461(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithOrderedSet_1, set?._id ?? ffi.nullptr); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - int get secondsFromGMT { - return _lib._objc_msgSend_78(_id, _lib._sel_secondsFromGMT1); + static NSMutableOrderedSet orderedSetWithOrderedSet_range_copyItems_( + SentryCocoa _lib, NSOrderedSet? set, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_462( + _lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithOrderedSet_range_copyItems_1, + set?._id ?? ffi.nullptr, + range, + flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); } - NSString? get abbreviation { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_abbreviation1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSMutableOrderedSet orderedSetWithArray_( + SentryCocoa _lib, NSArray? array) { + final _ret = _lib._objc_msgSend_67(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithArray_1, array?._id ?? ffi.nullptr); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - bool get daylightSavingTime { - return _lib._objc_msgSend_12(_id, _lib._sel_isDaylightSavingTime1); + static NSMutableOrderedSet orderedSetWithArray_range_copyItems_( + SentryCocoa _lib, NSArray? array, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_463( + _lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithArray_range_copyItems_1, + array?._id ?? ffi.nullptr, + range, + flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); } - double get daylightSavingTimeOffset { - return _lib._objc_msgSend_155(_id, _lib._sel_daylightSavingTimeOffset1); + static NSMutableOrderedSet orderedSetWithSet_(SentryCocoa _lib, NSSet? set) { + final _ret = _lib._objc_msgSend_384(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithSet_1, set?._id ?? ffi.nullptr); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - NSDate? get nextDaylightSavingTimeTransition { - final _ret = _lib._objc_msgSend_162( - _id, _lib._sel_nextDaylightSavingTimeTransition1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + static NSMutableOrderedSet orderedSetWithSet_copyItems_( + SentryCocoa _lib, NSSet? set, bool flag) { + final _ret = _lib._objc_msgSend_385(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, 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); + @override + NSMutableOrderedSet initWithObject_(NSObject object) { + final _ret = + _lib._objc_msgSend_16(_id, _lib._sel_initWithObject_1, object._id); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - bool isEqualToTimeZone_(NSTimeZone? aTimeZone) { - return _lib._objc_msgSend_172( - _id, _lib._sel_isEqualToTimeZone_1, aTimeZone?._id ?? ffi.nullptr); + @override + NSMutableOrderedSet initWithObjects_(NSObject firstObj) { + final _ret = + _lib._objc_msgSend_16(_id, _lib._sel_initWithObjects_1, firstObj._id); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - NSString localizedName_locale_(int style, NSLocale? locale) { - final _ret = _lib._objc_msgSend_187(_id, _lib._sel_localizedName_locale_1, - style, locale?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + @override + NSMutableOrderedSet initWithOrderedSet_(NSOrderedSet? set) { + final _ret = _lib._objc_msgSend_461( + _id, _lib._sel_initWithOrderedSet_1, set?._id ?? ffi.nullptr); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - static NSTimeZone timeZoneWithName_(SentryCocoa _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); + @override + NSMutableOrderedSet initWithOrderedSet_copyItems_( + NSOrderedSet? set, bool flag) { + final _ret = _lib._objc_msgSend_464( + _id, + _lib._sel_initWithOrderedSet_copyItems_1, + set?._id ?? ffi.nullptr, + flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); } - static NSTimeZone timeZoneWithName_data_( - SentryCocoa _lib, NSString? tzName, NSData? aData) { - final _ret = _lib._objc_msgSend_188( - _lib._class_NSTimeZone1, - _lib._sel_timeZoneWithName_data_1, - tzName?._id ?? ffi.nullptr, - aData?._id ?? ffi.nullptr); - return NSTimeZone._(_ret, _lib, retain: true, release: true); + @override + NSMutableOrderedSet initWithOrderedSet_range_copyItems_( + NSOrderedSet? set, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_462( + _id, + _lib._sel_initWithOrderedSet_range_copyItems_1, + set?._id ?? ffi.nullptr, + range, + flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); } - 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); + @override + NSMutableOrderedSet initWithArray_(NSArray? array) { + final _ret = _lib._objc_msgSend_67( + _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - NSTimeZone initWithName_data_(NSString? tzName, NSData? aData) { - final _ret = _lib._objc_msgSend_188(_id, _lib._sel_initWithName_data_1, - tzName?._id ?? ffi.nullptr, aData?._id ?? ffi.nullptr); - return NSTimeZone._(_ret, _lib, retain: true, release: true); + @override + NSMutableOrderedSet initWithArray_copyItems_(NSArray? set, bool flag) { + final _ret = _lib._objc_msgSend_118(_id, + _lib._sel_initWithArray_copyItems_1, set?._id ?? ffi.nullptr, flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); } - static NSTimeZone timeZoneForSecondsFromGMT_(SentryCocoa _lib, int seconds) { - final _ret = _lib._objc_msgSend_189(_lib._class_NSTimeZone1, - _lib._sel_timeZoneForSecondsFromGMT_1, seconds); - return NSTimeZone._(_ret, _lib, retain: true, release: true); + @override + NSMutableOrderedSet initWithArray_range_copyItems_( + NSArray? set, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_463( + _id, + _lib._sel_initWithArray_range_copyItems_1, + set?._id ?? ffi.nullptr, + range, + flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); } - static NSTimeZone timeZoneWithAbbreviation_( - SentryCocoa _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); + @override + NSMutableOrderedSet initWithSet_(NSSet? set) { + final _ret = _lib._objc_msgSend_384( + _id, _lib._sel_initWithSet_1, set?._id ?? ffi.nullptr); + return NSMutableOrderedSet._(_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); + NSMutableOrderedSet initWithSet_copyItems_(NSSet? set, bool flag) { + final _ret = _lib._objc_msgSend_385( + _id, _lib._sel_initWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); } - static NSTimeZone new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSTimeZone1, _lib._sel_new1); - return NSTimeZone._(_ret, _lib, retain: false, release: true); + static NSMutableOrderedSet new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableOrderedSet1, _lib._sel_new1); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); } - static NSTimeZone allocWithZone_( + static NSMutableOrderedSet allocWithZone_( SentryCocoa _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); + _lib._class_NSMutableOrderedSet1, _lib._sel_allocWithZone_1, zone); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); } - static NSTimeZone alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSTimeZone1, _lib._sel_alloc1); - return NSTimeZone._(_ret, _lib, retain: false, release: true); + static NSMutableOrderedSet alloc(SentryCocoa _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_( @@ -40126,7 +46150,7 @@ class NSTimeZone extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSTimeZone1, + _lib._class_NSMutableOrderedSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -40135,24 +46159,24 @@ class NSTimeZone extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSTimeZone1, + _lib._objc_msgSend_15(_lib._class_NSMutableOrderedSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSTimeZone1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSMutableOrderedSet1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSTimeZone1, _lib._sel_useStoredAccessor1); + _lib._class_NSMutableOrderedSet1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSTimeZone1, + _lib._class_NSMutableOrderedSet1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -40161,7 +46185,7 @@ class NSTimeZone extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSTimeZone1, + _lib._class_NSMutableOrderedSet1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -40169,452 +46193,539 @@ class NSTimeZone extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSTimeZone1, + _lib._class_NSMutableOrderedSet1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSTimeZone1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_NSMutableOrderedSet1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableOrderedSet1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSOrderedSet extends NSObject { + NSOrderedSet._(ffi.Pointer id, SentryCocoa 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 [NSOrderedSet] that wraps the given raw object pointer. + static NSOrderedSet castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSOrderedSet._(other, lib, retain: retain, release: release); + } + + /// 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_NSOrderedSet1); + } + + int get count { + return _lib._objc_msgSend_10(_id, _lib._sel_count1); + } + + NSObject objectAtIndex_(int idx) { + final _ret = _lib._objc_msgSend_60(_id, _lib._sel_objectAtIndex_1, idx); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + int indexOfObject_(NSObject object) { + return _lib._objc_msgSend_69(_id, _lib._sel_indexOfObject_1, object._id); + } + + @override + NSOrderedSet init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } + + NSOrderedSet initWithObjects_count_( + ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_61( + _id, _lib._sel_initWithObjects_count_1, objects, cnt); + return NSOrderedSet._(_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); + } + + void getObjects_range_( + ffi.Pointer> objects, _NSRange range) { + _lib._objc_msgSend_68(_id, _lib._sel_getObjects_range_1, objects, range); + } + + NSArray objectsAtIndexes_(NSIndexSet? indexes) { + final _ret = _lib._objc_msgSend_105( + _id, _lib._sel_objectsAtIndexes_1, indexes?._id ?? ffi.nullptr); return NSArray._(_ret, _lib, retain: true, release: true); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSTimeZone1, _lib._sel_classForKeyedUnarchiver1); + NSObject get firstObject { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_firstObject1); 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 NSLocale extends NSObject { - NSLocale._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSObject get lastObject { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_lastObject1); + return NSObject._(_ret, _lib, retain: true, release: true); + } - /// 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); + bool isEqualToOrderedSet_(NSOrderedSet? other) { + return _lib._objc_msgSend_459( + _id, _lib._sel_isEqualToOrderedSet_1, other?._id ?? ffi.nullptr); } - /// Returns a [NSLocale] that wraps the given raw object pointer. - static NSLocale castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSLocale._(other, lib, retain: retain, release: release); + bool containsObject_(NSObject object) { + return _lib._objc_msgSend_0(_id, _lib._sel_containsObject_1, object._id); } - /// 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); + bool intersectsOrderedSet_(NSOrderedSet? other) { + return _lib._objc_msgSend_459( + _id, _lib._sel_intersectsOrderedSet_1, other?._id ?? ffi.nullptr); } - 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); + bool intersectsSet_(NSSet? set) { + return _lib._objc_msgSend_376( + _id, _lib._sel_intersectsSet_1, set?._id ?? ffi.nullptr); } - NSString displayNameForKey_value_(NSString key, NSObject value) { - final _ret = _lib._objc_msgSend_173( - _id, _lib._sel_displayNameForKey_value_1, key._id, value._id); - return NSString._(_ret, _lib, retain: true, release: true); + bool isSubsetOfOrderedSet_(NSOrderedSet? other) { + return _lib._objc_msgSend_459( + _id, _lib._sel_isSubsetOfOrderedSet_1, other?._id ?? ffi.nullptr); } - 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); + bool isSubsetOfSet_(NSSet? set) { + return _lib._objc_msgSend_376( + _id, _lib._sel_isSubsetOfSet_1, set?._id ?? ffi.nullptr); } - 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); + NSObject objectAtIndexedSubscript_(int idx) { + final _ret = + _lib._objc_msgSend_60(_id, _lib._sel_objectAtIndexedSubscript_1, idx); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSString? get localeIdentifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localeIdentifier1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSEnumerator objectEnumerator() { + final _ret = _lib._objc_msgSend_72(_id, _lib._sel_objectEnumerator1); + return NSEnumerator._(_ret, _lib, retain: true, release: true); } - NSString localizedStringForLocaleIdentifier_(NSString? localeIdentifier) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_localizedStringForLocaleIdentifier_1, - localeIdentifier?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSEnumerator reverseObjectEnumerator() { + final _ret = _lib._objc_msgSend_72(_id, _lib._sel_reverseObjectEnumerator1); + return NSEnumerator._(_ret, _lib, retain: true, release: true); } - NSString? get languageCode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_languageCode1); + NSOrderedSet? get reversedOrderedSet { + final _ret = _lib._objc_msgSend_460(_id, _lib._sel_reversedOrderedSet1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString localizedStringForLanguageCode_(NSString? languageCode) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_localizedStringForLanguageCode_1, - languageCode?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + : NSOrderedSet._(_ret, _lib, retain: true, release: true); } - NSString? get languageIdentifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_languageIdentifier1); + NSArray? get array { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_array1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSArray._(_ret, _lib, retain: true, release: true); } - NSString? get countryCode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_countryCode1); + NSSet? get set1 { + final _ret = _lib._objc_msgSend_297(_id, _lib._sel_set1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSSet._(_ret, _lib, retain: true, release: true); } - NSString localizedStringForCountryCode_(NSString? countryCode) { - final _ret = _lib._objc_msgSend_64( + void enumerateObjectsUsingBlock_( + ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool block) { + _lib._objc_msgSend_106( + _id, _lib._sel_enumerateObjectsUsingBlock_1, block._id); + } + + void enumerateObjectsWithOptions_usingBlock_( + int opts, ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool block) { + _lib._objc_msgSend_107(_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_108( _id, - _lib._sel_localizedStringForCountryCode_1, - countryCode?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + _lib._sel_enumerateObjectsAtIndexes_options_usingBlock_1, + s?._id ?? ffi.nullptr, + opts, + block._id); } - NSString? get regionCode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_regionCode1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + int indexOfObjectPassingTest_( + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_109( + _id, _lib._sel_indexOfObjectPassingTest_1, predicate._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); + int indexOfObjectWithOptions_passingTest_( + int opts, ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_110(_id, + _lib._sel_indexOfObjectWithOptions_passingTest_1, opts, predicate._id); } - NSString localizedStringForScriptCode_(NSString? scriptCode) { - final _ret = _lib._objc_msgSend_64( + int indexOfObjectAtIndexes_options_passingTest_(NSIndexSet? s, int opts, + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_111( _id, - _lib._sel_localizedStringForScriptCode_1, - scriptCode?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + _lib._sel_indexOfObjectAtIndexes_options_passingTest_1, + s?._id ?? ffi.nullptr, + opts, + predicate._id); } - 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); + NSIndexSet indexesOfObjectsPassingTest_( + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + final _ret = _lib._objc_msgSend_112( + _id, _lib._sel_indexesOfObjectsPassingTest_1, predicate._id); + return NSIndexSet._(_ret, _lib, retain: true, release: true); } - NSString localizedStringForVariantCode_(NSString? variantCode) { - final _ret = _lib._objc_msgSend_64( + NSIndexSet indexesOfObjectsWithOptions_passingTest_( + int opts, ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + final _ret = _lib._objc_msgSend_113( _id, - _lib._sel_localizedStringForVariantCode_1, - variantCode?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + _lib._sel_indexesOfObjectsWithOptions_passingTest_1, + opts, + predicate._id); + return NSIndexSet._(_ret, _lib, retain: true, release: true); } - NSCharacterSet? get exemplarCharacterSet { - final _ret = _lib._objc_msgSend_174(_id, _lib._sel_exemplarCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_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_114( + _id, + _lib._sel_indexesOfObjectsAtIndexes_options_passingTest_1, + s?._id ?? ffi.nullptr, + opts, + predicate._id); + return NSIndexSet._(_ret, _lib, retain: true, release: true); } - 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); + int indexOfObject_inSortedRange_options_usingComparator_( + NSObject object, + _NSRange range, + int opts, + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmp) { + return _lib._objc_msgSend_117( + _id, + _lib._sel_indexOfObject_inSortedRange_options_usingComparator_1, + object._id, + range, + opts, + cmp._id); } - NSString localizedStringForCalendarIdentifier_(NSString? calendarIdentifier) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_localizedStringForCalendarIdentifier_1, - calendarIdentifier?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSArray sortedArrayUsingComparator_( + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + final _ret = _lib._objc_msgSend_115( + _id, _lib._sel_sortedArrayUsingComparator_1, cmptr._id); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSString? get collationIdentifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_collationIdentifier1); + NSArray sortedArrayWithOptions_usingComparator_( + int opts, ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + final _ret = _lib._objc_msgSend_116(_id, + _lib._sel_sortedArrayWithOptions_usingComparator_1, opts, cmptr._id); + return NSArray._(_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); } - NSString localizedStringForCollationIdentifier_( - NSString? collationIdentifier) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_localizedStringForCollationIdentifier_1, - collationIdentifier?._id ?? ffi.nullptr); + NSString descriptionWithLocale_(NSObject locale) { + final _ret = _lib._objc_msgSend_65( + _id, _lib._sel_descriptionWithLocale_1, locale._id); return NSString._(_ret, _lib, retain: true, release: true); } - bool get usesMetricSystem { - return _lib._objc_msgSend_12(_id, _lib._sel_usesMetricSystem1); + NSString descriptionWithLocale_indent_(NSObject locale, int level) { + final _ret = _lib._objc_msgSend_66( + _id, _lib._sel_descriptionWithLocale_indent_1, locale._id, level); + return NSString._(_ret, _lib, retain: true, release: true); } - 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); + static NSOrderedSet orderedSet(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSOrderedSet1, _lib._sel_orderedSet1); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); } - 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); + static NSOrderedSet orderedSetWithObject_(SentryCocoa _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); } - 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); + static NSOrderedSet orderedSetWithObjects_count_( + SentryCocoa _lib, ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_61(_lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithObjects_count_1, objects, cnt); + return NSOrderedSet._(_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 NSOrderedSet orderedSetWithObjects_( + SentryCocoa _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); } - NSString localizedStringForCurrencyCode_(NSString? currencyCode) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_localizedStringForCurrencyCode_1, - currencyCode?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static NSOrderedSet orderedSetWithOrderedSet_( + SentryCocoa _lib, NSOrderedSet? set) { + final _ret = _lib._objc_msgSend_461(_lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithOrderedSet_1, set?._id ?? ffi.nullptr); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); } - 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); + static NSOrderedSet orderedSetWithOrderedSet_range_copyItems_( + SentryCocoa _lib, NSOrderedSet? set, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_462( + _lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithOrderedSet_range_copyItems_1, + set?._id ?? ffi.nullptr, + range, + flag); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); } - NSString localizedStringForCollatorIdentifier_(NSString? collatorIdentifier) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_localizedStringForCollatorIdentifier_1, - collatorIdentifier?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static NSOrderedSet orderedSetWithArray_(SentryCocoa _lib, NSArray? array) { + final _ret = _lib._objc_msgSend_67(_lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithArray_1, array?._id ?? ffi.nullptr); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); } - 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); + static NSOrderedSet orderedSetWithArray_range_copyItems_( + SentryCocoa _lib, NSArray? array, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_463( + _lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithArray_range_copyItems_1, + array?._id ?? ffi.nullptr, + range, + flag); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); } - 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); + static NSOrderedSet orderedSetWithSet_(SentryCocoa _lib, NSSet? set) { + final _ret = _lib._objc_msgSend_384(_lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithSet_1, set?._id ?? ffi.nullptr); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); } - 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); + static NSOrderedSet orderedSetWithSet_copyItems_( + SentryCocoa _lib, NSSet? set, bool flag) { + final _ret = _lib._objc_msgSend_385(_lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); } - NSString? get alternateQuotationEndDelimiter { + NSOrderedSet initWithObject_(NSObject object) { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_alternateQuotationEndDelimiter1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_16(_id, _lib._sel_initWithObject_1, object._id); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); } - static NSLocale? getAutoupdatingCurrentLocale(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_182( - _lib._class_NSLocale1, _lib._sel_autoupdatingCurrentLocale1); - return _ret.address == 0 - ? null - : NSLocale._(_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); } - static NSLocale? getCurrentLocale(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_182(_lib._class_NSLocale1, _lib._sel_currentLocale1); - return _ret.address == 0 - ? null - : NSLocale._(_ret, _lib, retain: true, release: true); + NSOrderedSet initWithOrderedSet_(NSOrderedSet? set) { + final _ret = _lib._objc_msgSend_461( + _id, _lib._sel_initWithOrderedSet_1, set?._id ?? ffi.nullptr); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); } - static NSLocale? getSystemLocale(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_182(_lib._class_NSLocale1, _lib._sel_systemLocale1); - return _ret.address == 0 - ? null - : NSLocale._(_ret, _lib, retain: true, release: true); + NSOrderedSet initWithOrderedSet_copyItems_(NSOrderedSet? set, bool flag) { + final _ret = _lib._objc_msgSend_464( + _id, + _lib._sel_initWithOrderedSet_copyItems_1, + set?._id ?? ffi.nullptr, + flag); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); } - static NSLocale localeWithLocaleIdentifier_( - SentryCocoa _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); + NSOrderedSet initWithOrderedSet_range_copyItems_( + NSOrderedSet? set, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_462( + _id, + _lib._sel_initWithOrderedSet_range_copyItems_1, + set?._id ?? ffi.nullptr, + range, + flag); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); } - @override - NSLocale init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSLocale._(_ret, _lib, retain: true, release: true); + NSOrderedSet initWithArray_(NSArray? array) { + final _ret = _lib._objc_msgSend_67( + _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); } - static NSArray? getAvailableLocaleIdentifiers(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSLocale1, _lib._sel_availableLocaleIdentifiers1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSOrderedSet initWithArray_copyItems_(NSArray? set, bool flag) { + final _ret = _lib._objc_msgSend_118(_id, + _lib._sel_initWithArray_copyItems_1, set?._id ?? ffi.nullptr, flag); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); } - static NSArray? getISOLanguageCodes(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSLocale1, _lib._sel_ISOLanguageCodes1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSOrderedSet initWithArray_range_copyItems_( + NSArray? set, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_463( + _id, + _lib._sel_initWithArray_range_copyItems_1, + set?._id ?? ffi.nullptr, + range, + flag); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); } - static NSArray? getISOCountryCodes(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSLocale1, _lib._sel_ISOCountryCodes1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSOrderedSet initWithSet_(NSSet? set) { + final _ret = _lib._objc_msgSend_384( + _id, _lib._sel_initWithSet_1, set?._id ?? ffi.nullptr); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); } - static NSArray? getISOCurrencyCodes(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSLocale1, _lib._sel_ISOCurrencyCodes1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSOrderedSet initWithSet_copyItems_(NSSet? set, bool flag) { + final _ret = _lib._objc_msgSend_385( + _id, _lib._sel_initWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); } - static NSArray? getCommonISOCurrencyCodes(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSLocale1, _lib._sel_commonISOCurrencyCodes1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSObject differenceFromOrderedSet_withOptions_usingEquivalenceTest_( + NSOrderedSet? other, + int options, + ObjCBlock_bool_ObjCObject_ObjCObject block) { + final _ret = _lib._objc_msgSend_465( + _id, + _lib._sel_differenceFromOrderedSet_withOptions_usingEquivalenceTest_1, + other?._id ?? ffi.nullptr, + options, + block._id); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSArray? getPreferredLanguages(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSLocale1, _lib._sel_preferredLanguages1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSObject differenceFromOrderedSet_withOptions_( + NSOrderedSet? other, int options) { + final _ret = _lib._objc_msgSend_466( + _id, + _lib._sel_differenceFromOrderedSet_withOptions_1, + other?._id ?? ffi.nullptr, + options); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSDictionary componentsFromLocaleIdentifier_( - SentryCocoa _lib, NSString? string) { - final _ret = _lib._objc_msgSend_146(_lib._class_NSLocale1, - _lib._sel_componentsFromLocaleIdentifier_1, string?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + NSObject differenceFromOrderedSet_(NSOrderedSet? other) { + final _ret = _lib._objc_msgSend_461( + _id, _lib._sel_differenceFromOrderedSet_1, other?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSString localeIdentifierFromComponents_( - SentryCocoa _lib, NSDictionary? dict) { - final _ret = _lib._objc_msgSend_183(_lib._class_NSLocale1, - _lib._sel_localeIdentifierFromComponents_1, dict?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSOrderedSet orderedSetByApplyingDifference_(NSObject? difference) { + final _ret = _lib._objc_msgSend_467( + _id, + _lib._sel_orderedSetByApplyingDifference_1, + difference?._id ?? ffi.nullptr); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); } - static NSString canonicalLocaleIdentifierFromString_( - SentryCocoa _lib, NSString? string) { - final _ret = _lib._objc_msgSend_64( - _lib._class_NSLocale1, - _lib._sel_canonicalLocaleIdentifierFromString_1, - string?._id ?? ffi.nullptr); - return 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); } - static NSString canonicalLanguageIdentifierFromString_( - SentryCocoa _lib, NSString? string) { - final _ret = _lib._objc_msgSend_64( - _lib._class_NSLocale1, - _lib._sel_canonicalLanguageIdentifierFromString_1, - string?._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, key?._id ?? ffi.nullptr); } - static NSString localeIdentifierFromWindowsLocaleCode_( - SentryCocoa _lib, int lcid) { - final _ret = _lib._objc_msgSend_184(_lib._class_NSLocale1, - _lib._sel_localeIdentifierFromWindowsLocaleCode_1, lcid); - return 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 ?? ffi.nullptr, + keyPath?._id ?? ffi.nullptr, + options, + context); } - static int windowsLocaleCodeFromLocaleIdentifier_( - SentryCocoa _lib, NSString? localeIdentifier) { - return _lib._objc_msgSend_185( - _lib._class_NSLocale1, - _lib._sel_windowsLocaleCodeFromLocaleIdentifier_1, - localeIdentifier?._id ?? ffi.nullptr); + @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 ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr, context); } - static int characterDirectionForLanguage_( - SentryCocoa _lib, NSString? isoLangCode) { - return _lib._objc_msgSend_186( - _lib._class_NSLocale1, - _lib._sel_characterDirectionForLanguage_1, - isoLangCode?._id ?? ffi.nullptr); + @override + void removeObserver_forKeyPath_(NSObject? observer, NSString? keyPath) { + _lib._objc_msgSend_132(_id, _lib._sel_removeObserver_forKeyPath_1, + observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); } - static int lineDirectionForLanguage_( - SentryCocoa _lib, NSString? isoLangCode) { - return _lib._objc_msgSend_186(_lib._class_NSLocale1, - _lib._sel_lineDirectionForLanguage_1, isoLangCode?._id ?? ffi.nullptr); + NSArray sortedArrayUsingDescriptors_(NSArray? sortDescriptors) { + final _ret = _lib._objc_msgSend_63( + _id, + _lib._sel_sortedArrayUsingDescriptors_1, + sortDescriptors?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSLocale new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSLocale1, _lib._sel_new1); - return NSLocale._(_ret, _lib, retain: false, release: true); + NSOrderedSet filteredOrderedSetUsingPredicate_(NSPredicate? p) { + final _ret = _lib._objc_msgSend_468(_id, + _lib._sel_filteredOrderedSetUsingPredicate_1, p?._id ?? ffi.nullptr); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); } - static NSLocale allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static NSOrderedSet new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSOrderedSet1, _lib._sel_new1); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); + } + + static NSOrderedSet allocWithZone_( + SentryCocoa _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); + _lib._class_NSOrderedSet1, _lib._sel_allocWithZone_1, zone); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); } - static NSLocale alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSLocale1, _lib._sel_alloc1); - return NSLocale._(_ret, _lib, retain: false, release: true); + static NSOrderedSet alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSOrderedSet1, _lib._sel_alloc1); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -40623,7 +46734,7 @@ class NSLocale extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSLocale1, + _lib._class_NSOrderedSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -40632,24 +46743,24 @@ class NSLocale extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSLocale1, + _lib._objc_msgSend_15(_lib._class_NSOrderedSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSLocale1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSOrderedSet1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSLocale1, _lib._sel_useStoredAccessor1); + _lib._class_NSOrderedSet1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSLocale1, + _lib._class_NSOrderedSet1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -40658,7 +46769,7 @@ class NSLocale extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSLocale1, + _lib._class_NSOrderedSet1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -40666,7 +46777,7 @@ class NSLocale extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSLocale1, + _lib._class_NSOrderedSet1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -40674,302 +46785,335 @@ class NSLocale extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSLocale1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSOrderedSet1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSLocale1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSOrderedSet1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSCharacterSet extends NSObject { - NSCharacterSet._(ffi.Pointer id, SentryCocoa lib, +class NSMutableSet extends NSSet { + NSMutableSet._(ffi.Pointer id, SentryCocoa 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 [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 [NSCharacterSet] that wraps the given raw object pointer. - static NSCharacterSet castFromPointer( + /// Returns a [NSMutableSet] that wraps the given raw object pointer. + static NSMutableSet castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSCharacterSet._(other, lib, retain: retain, release: release); + return NSMutableSet._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSCharacterSet]. + /// 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_NSCharacterSet1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSMutableSet1); } - static NSCharacterSet? getControlCharacterSet(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_controlCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + void addObject_(NSObject object) { + _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, object._id); } - static NSCharacterSet? getWhitespaceCharacterSet(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_whitespaceCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + void removeObject_(NSObject object) { + _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, object._id); } - static NSCharacterSet? getWhitespaceAndNewlineCharacterSet(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_174(_lib._class_NSCharacterSet1, - _lib._sel_whitespaceAndNewlineCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + @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); } - static NSCharacterSet? getDecimalDigitCharacterSet(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_decimalDigitCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_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); } - static NSCharacterSet? getLetterCharacterSet(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_letterCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + NSMutableSet initWithCapacity_(int numItems) { + final _ret = + _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, numItems); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getLowercaseLetterCharacterSet(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_lowercaseLetterCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + void addObjectsFromArray_(NSArray? array) { + _lib._objc_msgSend_443( + _id, _lib._sel_addObjectsFromArray_1, array?._id ?? ffi.nullptr); } - static NSCharacterSet? getUppercaseLetterCharacterSet(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_uppercaseLetterCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + void intersectSet_(NSSet? otherSet) { + _lib._objc_msgSend_473( + _id, _lib._sel_intersectSet_1, otherSet?._id ?? ffi.nullptr); } - static NSCharacterSet? getNonBaseCharacterSet(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_nonBaseCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + void minusSet_(NSSet? otherSet) { + _lib._objc_msgSend_473( + _id, _lib._sel_minusSet_1, otherSet?._id ?? ffi.nullptr); } - static NSCharacterSet? getAlphanumericCharacterSet(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_alphanumericCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + void removeAllObjects() { + _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); } - static NSCharacterSet? getDecomposableCharacterSet(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_decomposableCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + void unionSet_(NSSet? otherSet) { + _lib._objc_msgSend_473( + _id, _lib._sel_unionSet_1, otherSet?._id ?? ffi.nullptr); } - static NSCharacterSet? getIllegalCharacterSet(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_illegalCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + void setSet_(NSSet? otherSet) { + _lib._objc_msgSend_473( + _id, _lib._sel_setSet_1, otherSet?._id ?? ffi.nullptr); } - static NSCharacterSet? getPunctuationCharacterSet(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_punctuationCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + static NSMutableSet setWithCapacity_(SentryCocoa _lib, int numItems) { + final _ret = _lib._objc_msgSend_60( + _lib._class_NSMutableSet1, _lib._sel_setWithCapacity_1, numItems); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getCapitalizedLetterCharacterSet(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_capitalizedLetterCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + void filterUsingPredicate_(NSPredicate? predicate) { + _lib._objc_msgSend_458( + _id, _lib._sel_filterUsingPredicate_1, predicate?._id ?? ffi.nullptr); } - static NSCharacterSet? getSymbolCharacterSet(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_symbolCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + @override + NSMutableSet initWithObjects_count_( + ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_61( + _id, _lib._sel_initWithObjects_count_1, objects, cnt); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getNewlineCharacterSet(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_newlineCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: false, release: true); + static NSMutableSet set1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableSet1, _lib._sel_set1); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet characterSetWithRange_( - SentryCocoa _lib, _NSRange aRange) { - final _ret = _lib._objc_msgSend_175( - _lib._class_NSCharacterSet1, _lib._sel_characterSetWithRange_1, aRange); - return NSCharacterSet._(_ret, _lib, retain: true, release: true); + static NSMutableSet setWithObject_(SentryCocoa _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); } - static NSCharacterSet characterSetWithCharactersInString_( - SentryCocoa _lib, NSString? aString) { - final _ret = _lib._objc_msgSend_176( - _lib._class_NSCharacterSet1, - _lib._sel_characterSetWithCharactersInString_1, - aString?._id ?? ffi.nullptr); - return NSCharacterSet._(_ret, _lib, retain: true, release: true); + static NSMutableSet setWithObjects_count_( + SentryCocoa _lib, ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_61(_lib._class_NSMutableSet1, + _lib._sel_setWithObjects_count_1, objects, cnt); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet characterSetWithBitmapRepresentation_( - SentryCocoa _lib, NSData? data) { - final _ret = _lib._objc_msgSend_177( - _lib._class_NSCharacterSet1, - _lib._sel_characterSetWithBitmapRepresentation_1, - data?._id ?? ffi.nullptr); - return NSCharacterSet._(_ret, _lib, retain: true, release: true); + static NSMutableSet setWithObjects_(SentryCocoa _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); } - static NSCharacterSet characterSetWithContentsOfFile_( - SentryCocoa _lib, NSString? fName) { - final _ret = _lib._objc_msgSend_176(_lib._class_NSCharacterSet1, - _lib._sel_characterSetWithContentsOfFile_1, fName?._id ?? ffi.nullptr); - return NSCharacterSet._(_ret, _lib, retain: true, release: true); + static NSMutableSet setWithSet_(SentryCocoa _lib, NSSet? set) { + final _ret = _lib._objc_msgSend_384(_lib._class_NSMutableSet1, + _lib._sel_setWithSet_1, set?._id ?? ffi.nullptr); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - 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); + static NSMutableSet setWithArray_(SentryCocoa _lib, NSArray? array) { + final _ret = _lib._objc_msgSend_67(_lib._class_NSMutableSet1, + _lib._sel_setWithArray_1, array?._id ?? ffi.nullptr); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - bool characterIsMember_(int aCharacter) { - return _lib._objc_msgSend_178( - _id, _lib._sel_characterIsMember_1, aCharacter); + @override + NSMutableSet initWithObjects_(NSObject firstObj) { + final _ret = + _lib._objc_msgSend_16(_id, _lib._sel_initWithObjects_1, firstObj._id); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - 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); + @override + NSMutableSet initWithSet_(NSSet? set) { + final _ret = _lib._objc_msgSend_384( + _id, _lib._sel_initWithSet_1, set?._id ?? ffi.nullptr); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - NSCharacterSet? get invertedSet { - final _ret = _lib._objc_msgSend_174(_id, _lib._sel_invertedSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + @override + NSMutableSet initWithSet_copyItems_(NSSet? set, bool flag) { + final _ret = _lib._objc_msgSend_385( + _id, _lib._sel_initWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); + return NSMutableSet._(_ret, _lib, retain: false, release: true); } - bool longCharacterIsMember_(int theLongChar) { - return _lib._objc_msgSend_179( - _id, _lib._sel_longCharacterIsMember_1, theLongChar); + @override + NSMutableSet initWithArray_(NSArray? array) { + final _ret = _lib._objc_msgSend_67( + _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - bool isSupersetOfSet_(NSCharacterSet? theOtherSet) { - return _lib._objc_msgSend_180( - _id, _lib._sel_isSupersetOfSet_1, theOtherSet?._id ?? ffi.nullptr); + static NSMutableSet new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableSet1, _lib._sel_new1); + return NSMutableSet._(_ret, _lib, retain: false, release: true); } - bool hasMemberInPlane_(int thePlane) { - return _lib._objc_msgSend_181(_id, _lib._sel_hasMemberInPlane_1, thePlane); + static NSMutableSet allocWithZone_( + SentryCocoa _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); } - static NSCharacterSet? getURLUserAllowedCharacterSet(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_URLUserAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + static NSMutableSet alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableSet1, _lib._sel_alloc1); + return NSMutableSet._(_ret, _lib, retain: false, release: true); } - static NSCharacterSet? getURLPasswordAllowedCharacterSet(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_URLPasswordAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _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); } - static NSCharacterSet? getURLHostAllowedCharacterSet(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_URLHostAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSMutableSet1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - static NSCharacterSet? getURLPathAllowedCharacterSet(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_URLPathAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMutableSet1, _lib._sel_accessInstanceVariablesDirectly1); } - static NSCharacterSet? getURLQueryAllowedCharacterSet(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_URLQueryAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMutableSet1, _lib._sel_useStoredAccessor1); } - static NSCharacterSet? getURLFragmentAllowedCharacterSet(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_URLFragmentAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSMutableSet1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSMutableSet1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSMutableSet1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSMutableSet1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableSet1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_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; +} + +abstract class NSKeyValueSetMutationKind { + static const int NSKeyValueUnionSetMutation = 1; + static const int NSKeyValueMinusSetMutation = 2; + static const int NSKeyValueIntersectSetMutation = 3; + static const int NSKeyValueSetSetMutation = 4; +} + +class NSKeyValueSharedObserversSnapshot extends NSObject { + NSKeyValueSharedObserversSnapshot._( + ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSKeyValueSharedObserversSnapshot] that points to the same underlying object as [other]. + static NSKeyValueSharedObserversSnapshot castFrom( + T other) { + return NSKeyValueSharedObserversSnapshot._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSKeyValueSharedObserversSnapshot] that wraps the given raw object pointer. + static NSKeyValueSharedObserversSnapshot castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSKeyValueSharedObserversSnapshot._(other, lib, + retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSKeyValueSharedObserversSnapshot]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSKeyValueSharedObserversSnapshot1); } @override - NSCharacterSet init() { + NSObject init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSCharacterSet1, _lib._sel_new1); - return NSCharacterSet._(_ret, _lib, retain: false, release: true); + static NSObject new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSKeyValueSharedObserversSnapshot1, _lib._sel_new1); + return NSObject._(_ret, _lib, retain: false, release: true); } - static NSCharacterSet allocWithZone_( + static NSKeyValueSharedObserversSnapshot allocWithZone_( SentryCocoa _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); + final _ret = _lib._objc_msgSend_3( + _lib._class_NSKeyValueSharedObserversSnapshot1, + _lib._sel_allocWithZone_1, + zone); + return NSKeyValueSharedObserversSnapshot._(_ret, _lib, + retain: false, release: true); } - static NSCharacterSet alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSCharacterSet1, _lib._sel_alloc1); - return NSCharacterSet._(_ret, _lib, retain: false, release: true); + static NSKeyValueSharedObserversSnapshot alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSKeyValueSharedObserversSnapshot1, _lib._sel_alloc1); + return NSKeyValueSharedObserversSnapshot._(_ret, _lib, + retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -40978,7 +47122,7 @@ class NSCharacterSet extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSCharacterSet1, + _lib._class_NSKeyValueSharedObserversSnapshot1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -40987,24 +47131,24 @@ class NSCharacterSet extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSCharacterSet1, + _lib._objc_msgSend_15(_lib._class_NSKeyValueSharedObserversSnapshot1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSCharacterSet1, + return _lib._objc_msgSend_12(_lib._class_NSKeyValueSharedObserversSnapshot1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSCharacterSet1, _lib._sel_useStoredAccessor1); + return _lib._objc_msgSend_12(_lib._class_NSKeyValueSharedObserversSnapshot1, + _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSCharacterSet1, + _lib._class_NSKeyValueSharedObserversSnapshot1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -41013,7 +47157,7 @@ class NSCharacterSet extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSCharacterSet1, + _lib._class_NSKeyValueSharedObserversSnapshot1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -41021,7 +47165,7 @@ class NSCharacterSet extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSCharacterSet1, + _lib._class_NSKeyValueSharedObserversSnapshot1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -41029,206 +47173,219 @@ class NSCharacterSet extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSCharacterSet1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSKeyValueSharedObserversSnapshot1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSCharacterSet1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSKeyValueSharedObserversSnapshot1, + _lib._sel_classForKeyedUnarchiver1); return NSObject._(_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 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; -} - -class NSURLHandle extends NSObject { - NSURLHandle._(ffi.Pointer id, SentryCocoa lib, +class NSKeyedArchiver extends NSCoder { + NSKeyedArchiver._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSURLHandle] that points to the same underlying object as [other]. - static NSURLHandle castFrom(T other) { - return NSURLHandle._(other._id, other._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); } - /// Returns a [NSURLHandle] that wraps the given raw object pointer. - static NSURLHandle castFromPointer( + /// Returns a [NSKeyedArchiver] that wraps the given raw object pointer. + static NSKeyedArchiver castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLHandle._(other, lib, retain: retain, release: release); + return NSKeyedArchiver._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLHandle]. + /// 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_NSURLHandle1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSKeyedArchiver1); } - static void registerURLHandleClass_( - SentryCocoa _lib, NSObject anURLHandleSubclass) { - _lib._objc_msgSend_15(_lib._class_NSURLHandle1, - _lib._sel_registerURLHandleClass_1, anURLHandleSubclass._id); + NSKeyedArchiver initRequiringSecureCoding_(bool requiresSecureCoding) { + final _ret = _lib._objc_msgSend_484( + _id, _lib._sel_initRequiringSecureCoding_1, requiresSecureCoding); + return NSKeyedArchiver._(_ret, _lib, retain: true, release: true); } - static NSObject URLHandleClassForURL_(SentryCocoa _lib, NSURL? anURL) { - final _ret = _lib._objc_msgSend_241(_lib._class_NSURLHandle1, - _lib._sel_URLHandleClassForURL_1, anURL?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSData archivedDataWithRootObject_requiringSecureCoding_error_( + SentryCocoa _lib, + NSObject object, + bool requiresSecureCoding, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_485( + _lib._class_NSKeyedArchiver1, + _lib._sel_archivedDataWithRootObject_requiringSecureCoding_error_1, + object._id, + requiresSecureCoding, + error); + return NSData._(_ret, _lib, retain: true, release: true); } - int status() { - return _lib._objc_msgSend_242(_id, _lib._sel_status1); + @override + NSKeyedArchiver init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSKeyedArchiver._(_ret, _lib, retain: true, release: true); } - NSString failureReason() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_failureReason1); - return NSString._(_ret, _lib, retain: true, release: true); + NSKeyedArchiver initForWritingWithMutableData_(NSMutableData? data) { + final _ret = _lib._objc_msgSend_490(_id, + _lib._sel_initForWritingWithMutableData_1, data?._id ?? ffi.nullptr); + return NSKeyedArchiver._(_ret, _lib, retain: true, release: true); } - void addClient_(NSObject? client) { - _lib._objc_msgSend_15( - _id, _lib._sel_addClient_1, client?._id ?? ffi.nullptr); + static NSData archivedDataWithRootObject_( + SentryCocoa _lib, NSObject rootObject) { + final _ret = _lib._objc_msgSend_491(_lib._class_NSKeyedArchiver1, + _lib._sel_archivedDataWithRootObject_1, rootObject._id); + return NSData._(_ret, _lib, retain: true, release: true); } - void removeClient_(NSObject? client) { - _lib._objc_msgSend_15( - _id, _lib._sel_removeClient_1, client?._id ?? ffi.nullptr); + static bool archiveRootObject_toFile_( + SentryCocoa _lib, NSObject rootObject, NSString? path) { + return _lib._objc_msgSend_240( + _lib._class_NSKeyedArchiver1, + _lib._sel_archiveRootObject_toFile_1, + rootObject._id, + path?._id ?? ffi.nullptr); } - void loadInBackground() { - _lib._objc_msgSend_1(_id, _lib._sel_loadInBackground1); + 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 cancelLoadInBackground() { - _lib._objc_msgSend_1(_id, _lib._sel_cancelLoadInBackground1); + set delegate(NSObject? value) { + return _lib._objc_msgSend_389( + _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } - NSData resourceData() { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_resourceData1); - return NSData._(_ret, _lib, retain: true, release: true); + int get outputFormat { + return _lib._objc_msgSend_492(_id, _lib._sel_outputFormat1); } - NSData availableResourceData() { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_availableResourceData1); - return NSData._(_ret, _lib, retain: true, release: true); + set outputFormat(int value) { + return _lib._objc_msgSend_493(_id, _lib._sel_setOutputFormat_1, value); } - int expectedResourceDataSize() { - return _lib._objc_msgSend_220(_id, _lib._sel_expectedResourceDataSize1); + NSData? get encodedData { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_encodedData1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - void flushCachedData() { - _lib._objc_msgSend_1(_id, _lib._sel_flushCachedData1); + void finishEncoding() { + _lib._objc_msgSend_1(_id, _lib._sel_finishEncoding1); } - void backgroundLoadDidFailWithReason_(NSString? reason) { - _lib._objc_msgSend_192(_id, _lib._sel_backgroundLoadDidFailWithReason_1, - reason?._id ?? ffi.nullptr); + static void setClassName_forClass_( + SentryCocoa _lib, NSString? codedName, NSObject cls) { + _lib._objc_msgSend_494( + _lib._class_NSKeyedArchiver1, + _lib._sel_setClassName_forClass_1, + codedName?._id ?? ffi.nullptr, + cls._id); } - void didLoadBytes_loadComplete_(NSData? newBytes, bool yorn) { - _lib._objc_msgSend_243(_id, _lib._sel_didLoadBytes_loadComplete_1, - newBytes?._id ?? ffi.nullptr, yorn); + static NSString classNameForClass_(SentryCocoa _lib, NSObject cls) { + final _ret = _lib._objc_msgSend_65( + _lib._class_NSKeyedArchiver1, _lib._sel_classNameForClass_1, cls._id); + return NSString._(_ret, _lib, retain: true, release: true); } - static bool canInitWithURL_(SentryCocoa _lib, NSURL? anURL) { - return _lib._objc_msgSend_244(_lib._class_NSURLHandle1, - _lib._sel_canInitWithURL_1, anURL?._id ?? ffi.nullptr); + @override + void encodeObject_forKey_(NSObject object, NSString? key) { + _lib._objc_msgSend_126(_id, _lib._sel_encodeObject_forKey_1, object._id, + key?._id ?? ffi.nullptr); } - static NSURLHandle cachedHandleForURL_(SentryCocoa _lib, NSURL? anURL) { - final _ret = _lib._objc_msgSend_245(_lib._class_NSURLHandle1, - _lib._sel_cachedHandleForURL_1, anURL?._id ?? ffi.nullptr); - return NSURLHandle._(_ret, _lib, retain: true, release: true); + @override + void encodeConditionalObject_forKey_(NSObject object, NSString? key) { + _lib._objc_msgSend_126(_id, _lib._sel_encodeConditionalObject_forKey_1, + object._id, key?._id ?? ffi.nullptr); } - NSObject initWithURL_cached_(NSURL? anURL, bool willCache) { - final _ret = _lib._objc_msgSend_246(_id, _lib._sel_initWithURL_cached_1, - anURL?._id ?? ffi.nullptr, willCache); - return NSObject._(_ret, _lib, retain: true, release: true); + @override + void encodeBool_forKey_(bool value, NSString? key) { + _lib._objc_msgSend_272( + _id, _lib._sel_encodeBool_forKey_1, value, key?._id ?? ffi.nullptr); } - 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); + @override + void encodeInt_forKey_(int value, NSString? key) { + _lib._objc_msgSend_273( + _id, _lib._sel_encodeInt_forKey_1, value, key?._id ?? ffi.nullptr); } - NSObject propertyForKeyIfAvailable_(NSString? propertyKey) { - final _ret = _lib._objc_msgSend_30(_id, - _lib._sel_propertyForKeyIfAvailable_1, propertyKey?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + @override + void encodeInt32_forKey_(int value, NSString? key) { + _lib._objc_msgSend_274( + _id, _lib._sel_encodeInt32_forKey_1, value, key?._id ?? ffi.nullptr); } - bool writeProperty_forKey_(NSObject propertyValue, NSString? propertyKey) { - return _lib._objc_msgSend_240(_id, _lib._sel_writeProperty_forKey_1, - propertyValue._id, propertyKey?._id ?? ffi.nullptr); + @override + void encodeInt64_forKey_(int value, NSString? key) { + _lib._objc_msgSend_275( + _id, _lib._sel_encodeInt64_forKey_1, value, key?._id ?? ffi.nullptr); } - bool writeData_(NSData? data) { - return _lib._objc_msgSend_23( - _id, _lib._sel_writeData_1, data?._id ?? ffi.nullptr); + @override + void encodeFloat_forKey_(double value, NSString? key) { + _lib._objc_msgSend_276( + _id, _lib._sel_encodeFloat_forKey_1, value, key?._id ?? ffi.nullptr); } - NSData loadInForeground() { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_loadInForeground1); - return NSData._(_ret, _lib, retain: true, release: true); + @override + void encodeDouble_forKey_(double value, NSString? key) { + _lib._objc_msgSend_277( + _id, _lib._sel_encodeDouble_forKey_1, value, key?._id ?? ffi.nullptr); } - void beginLoadInBackground() { - _lib._objc_msgSend_1(_id, _lib._sel_beginLoadInBackground1); + @override + void encodeBytes_length_forKey_( + ffi.Pointer bytes, int length, NSString? key) { + _lib._objc_msgSend_278(_id, _lib._sel_encodeBytes_length_forKey_1, bytes, + length, key?._id ?? ffi.nullptr); } - void endLoadInBackground() { - _lib._objc_msgSend_1(_id, _lib._sel_endLoadInBackground1); + @override + bool get requiresSecureCoding { + return _lib._objc_msgSend_12(_id, _lib._sel_requiresSecureCoding1); } - @override - NSURLHandle init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLHandle._(_ret, _lib, retain: true, release: true); + set requiresSecureCoding(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setRequiresSecureCoding_1, value); } - static NSURLHandle new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLHandle1, _lib._sel_new1); - return NSURLHandle._(_ret, _lib, retain: false, release: true); + static NSKeyedArchiver new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSKeyedArchiver1, _lib._sel_new1); + return NSKeyedArchiver._(_ret, _lib, retain: false, release: true); } - static NSURLHandle allocWithZone_( + static NSKeyedArchiver allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSURLHandle1, _lib._sel_allocWithZone_1, zone); - return NSURLHandle._(_ret, _lib, retain: false, release: true); + _lib._class_NSKeyedArchiver1, _lib._sel_allocWithZone_1, zone); + return NSKeyedArchiver._(_ret, _lib, retain: false, release: true); } - static NSURLHandle alloc(SentryCocoa _lib) { + static NSKeyedArchiver alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLHandle1, _lib._sel_alloc1); - return NSURLHandle._(_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_( @@ -41237,7 +47394,7 @@ class NSURLHandle extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSURLHandle1, + _lib._class_NSKeyedArchiver1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -41246,24 +47403,24 @@ class NSURLHandle extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLHandle1, + _lib._objc_msgSend_15(_lib._class_NSKeyedArchiver1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLHandle1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSKeyedArchiver1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLHandle1, _lib._sel_useStoredAccessor1); + _lib._class_NSKeyedArchiver1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLHandle1, + _lib._class_NSKeyedArchiver1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -41272,7 +47429,7 @@ class NSURLHandle extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLHandle1, + _lib._class_NSKeyedArchiver1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -41280,733 +47437,357 @@ class NSURLHandle extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSURLHandle1, + _lib._class_NSKeyedArchiver1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } - - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSURLHandle1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLHandle1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSURLHandleStatus { - static const int NSURLHandleNotLoaded = 0; - static const int NSURLHandleLoadSucceeded = 1; - static const int NSURLHandleLoadInProgress = 2; - static const int NSURLHandleLoadFailed = 3; -} - -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; -} - -abstract class NSDataSearchOptions { - static const int NSDataSearchBackwards = 1; - static const int NSDataSearchAnchored = 2; -} - -void _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_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); -} - -final _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureRegistry = - {}; -int _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_registerClosure( - Function fn) { - final id = ++_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureRegistryIndex; - _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2) { - return (_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureRegistry[ - block.ref.target.address] - as void Function(ffi.Pointer, _NSRange, - ffi.Pointer))(arg0, arg1, arg2); -} - -class ObjCBlock_ffiVoid_ffiVoid_NSRange_bool extends _ObjCBlockBase { - ObjCBlock_ffiVoid_ffiVoid_NSRange_bool._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_ffiVoid_NSRange_bool.fromFunctionPointer( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_ffiVoid_NSRange_bool.fromFunction( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_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); - } -} - -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; -} - -void _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_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); -} - -final _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureRegistry = - {}; -int _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureRegistryIndex = 0; -ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_registerClosure(Function fn) { - final id = ++_ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureRegistryIndex; - _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) { - return (_ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureRegistry[block - .ref - .target - .address] as void Function(ffi.Pointer, int))(arg0, arg1); -} - -class ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong extends _ObjCBlockBase { - ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong.fromFunctionPointer( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong.fromFunction( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_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 NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSKeyedArchiver1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } -} -abstract class NSDataBase64DecodingOptions { - static const int NSDataBase64DecodingIgnoreUnknownCharacters = 1; + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSKeyedArchiver1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } } -abstract class NSDataBase64EncodingOptions { - static const int NSDataBase64Encoding64CharacterLineLength = 1; - static const int NSDataBase64Encoding76CharacterLineLength = 2; - static const int NSDataBase64EncodingEndLineWithCarriageReturn = 16; - static const int NSDataBase64EncodingEndLineWithLineFeed = 32; -} +class NSMutableData extends NSData { + NSMutableData._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); -abstract class NSDataCompressionAlgorithm { - static const int NSDataCompressionAlgorithmLZFSE = 0; - static const int NSDataCompressionAlgorithmLZ4 = 1; - static const int NSDataCompressionAlgorithmLZMA = 2; - static const int NSDataCompressionAlgorithmZlib = 3; -} + /// 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); + } -abstract class NSDecodingFailurePolicy { - static const int NSDecodingFailurePolicyRaiseException = 0; - static const int NSDecodingFailurePolicySetErrorAndReturn = 1; -} + /// Returns a [NSMutableData] that wraps the given raw object pointer. + static NSMutableData castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSMutableData._(other, lib, retain: retain, release: release); + } -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; -} + /// 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); + } -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; -} + ffi.Pointer get mutableBytes { + return _lib._objc_msgSend_19(_id, _lib._sel_mutableBytes1); + } -void _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_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); -} + @override + int get length { + return _lib._objc_msgSend_10(_id, _lib._sel_length1); + } -final _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureRegistry = - {}; -int _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureRegistryIndex = 0; -ffi.Pointer - _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_registerClosure( - Function fn) { - final id = - ++_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + set length(int value) { + return _lib._objc_msgSend_486(_id, _lib._sel_setLength_1, value); + } -void _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - _NSRange arg2, - ffi.Pointer arg3) { - return (_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureRegistry[ - block.ref.target.address] - as void Function(ffi.Pointer, _NSRange, _NSRange, - ffi.Pointer))(arg0, arg1, arg2, arg3); -} + void appendBytes_length_(ffi.Pointer bytes, int length) { + _lib._objc_msgSend_21(_id, _lib._sel_appendBytes_length_1, bytes, length); + } -class ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); + void appendData_(NSData? other) { + _lib._objc_msgSend_263( + _id, _lib._sel_appendData_1, other?._id ?? ffi.nullptr); + } - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool.fromFunctionPointer( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + void increaseLengthBy_(int extraLength) { + _lib._objc_msgSend_441(_id, _lib._sel_increaseLengthBy_1, extraLength); + } - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool.fromFunction( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_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); + void replaceBytesInRange_withBytes_( + _NSRange range, ffi.Pointer bytes) { + _lib._objc_msgSend_487( + _id, _lib._sel_replaceBytesInRange_withBytes_1, range, bytes); } -} -void _ObjCBlock_ffiVoid_NSString_bool_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); -} + void resetBytesInRange_(_NSRange range) { + _lib._objc_msgSend_447(_id, _lib._sel_resetBytesInRange_1, range); + } -final _ObjCBlock_ffiVoid_NSString_bool_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSString_bool_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSString_bool_registerClosure( - Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSString_bool_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSString_bool_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + void setData_(NSData? data) { + _lib._objc_msgSend_263(_id, _lib._sel_setData_1, data?._id ?? ffi.nullptr); + } -void _ObjCBlock_ffiVoid_NSString_bool_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { - return (_ObjCBlock_ffiVoid_NSString_bool_closureRegistry[ - block.ref.target.address] - as void Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); -} + void replaceBytesInRange_withBytes_length_(_NSRange range, + ffi.Pointer replacementBytes, int replacementLength) { + _lib._objc_msgSend_488( + _id, + _lib._sel_replaceBytesInRange_withBytes_length_1, + range, + replacementBytes, + replacementLength); + } -class ObjCBlock_ffiVoid_NSString_bool extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSString_bool._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); + static NSMutableData dataWithCapacity_(SentryCocoa _lib, int aNumItems) { + final _ret = _lib._objc_msgSend_60( + _lib._class_NSMutableData1, _lib._sel_dataWithCapacity_1, aNumItems); + return NSMutableData._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSString_bool.fromFunctionPointer( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_NSString_bool_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + static NSMutableData dataWithLength_(SentryCocoa _lib, int length) { + final _ret = _lib._objc_msgSend_60( + _lib._class_NSMutableData1, _lib._sel_dataWithLength_1, length); + return NSMutableData._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSString_bool.fromFunction( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_NSString_bool_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_NSString_bool_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); + NSMutableData initWithCapacity_(int capacity) { + final _ret = + _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, capacity); + return NSMutableData._(_ret, _lib, retain: true, release: true); } -} -abstract class NSStringEncodingConversionOptions { - static const int NSStringEncodingConversionAllowLossy = 1; - static const int NSStringEncodingConversionExternalRepresentation = 2; -} + NSMutableData initWithLength_(int length) { + final _ret = _lib._objc_msgSend_60(_id, _lib._sel_initWithLength_1, length); + return NSMutableData._(_ret, _lib, retain: true, release: true); + } -void _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_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); -} + bool decompressUsingAlgorithm_error_( + int algorithm, ffi.Pointer> error) { + return _lib._objc_msgSend_489( + _id, _lib._sel_decompressUsingAlgorithm_error_1, algorithm, error); + } -final _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureRegistry = - {}; -int _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureRegistryIndex = - 0; -ffi.Pointer - _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_registerClosure( - Function fn) { - final id = - ++_ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureRegistryIndex; - _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + bool compressUsingAlgorithm_error_( + int algorithm, ffi.Pointer> error) { + return _lib._objc_msgSend_489( + _id, _lib._sel_compressUsingAlgorithm_error_1, algorithm, error); + } -void _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - int arg1) { - return (_ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureRegistry[ - block.ref.target.address] - as void Function(ffi.Pointer, int))(arg0, arg1); -} + static NSMutableData data(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableData1, _lib._sel_data1); + return NSMutableData._(_ret, _lib, retain: true, release: true); + } -class ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong - extends _ObjCBlockBase { - ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); + static NSMutableData dataWithBytes_length_( + SentryCocoa _lib, ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_252(_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. - ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong.fromFunctionPointer( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + static NSMutableData dataWithBytesNoCopy_length_( + SentryCocoa _lib, ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_252(_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. - ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong.fromFunction( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_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 NSMutableData dataWithBytesNoCopy_length_freeWhenDone_( + SentryCocoa _lib, ffi.Pointer bytes, int length, bool b) { + final _ret = _lib._objc_msgSend_253(_lib._class_NSMutableData1, + _lib._sel_dataWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); + return NSMutableData._(_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; -} + static NSMutableData dataWithContentsOfFile_options_error_( + SentryCocoa _lib, + NSString? path, + int readOptionsMask, + ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_254( + _lib._class_NSMutableData1, + _lib._sel_dataWithContentsOfFile_options_error_1, + path?._id ?? ffi.nullptr, + readOptionsMask, + errorPtr); + return NSMutableData._(_ret, _lib, retain: true, release: true); + } -class NSOrthography extends NSObject { - NSOrthography._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + static NSMutableData dataWithContentsOfURL_options_error_( + SentryCocoa _lib, + NSURL? url, + int readOptionsMask, + ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_255( + _lib._class_NSMutableData1, + _lib._sel_dataWithContentsOfURL_options_error_1, + url?._id ?? ffi.nullptr, + readOptionsMask, + errorPtr); + return NSMutableData._(_ret, _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); + static NSMutableData dataWithContentsOfFile_( + SentryCocoa _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); } - /// Returns a [NSOrthography] that wraps the given raw object pointer. - static NSOrthography castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSOrthography._(other, lib, retain: retain, release: release); + static NSMutableData dataWithContentsOfURL_(SentryCocoa _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_241(_lib._class_NSMutableData1, + _lib._sel_dataWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSMutableData._(_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); + @override + NSMutableData initWithBytes_length_(ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_252( + _id, _lib._sel_initWithBytes_length_1, bytes, length); + return NSMutableData._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableData initWithBytesNoCopy_length_( + ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_252( + _id, _lib._sel_initWithBytesNoCopy_length_1, bytes, length); + return NSMutableData._(_ret, _lib, retain: false, release: true); + } + + @override + NSMutableData initWithBytesNoCopy_length_freeWhenDone_( + ffi.Pointer bytes, int length, bool b) { + final _ret = _lib._objc_msgSend_253(_id, + _lib._sel_initWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); + return NSMutableData._(_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); + @override + NSMutableData initWithBytesNoCopy_length_deallocator_( + ffi.Pointer bytes, + int length, + ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong deallocator) { + final _ret = _lib._objc_msgSend_256( + _id, + _lib._sel_initWithBytesNoCopy_length_deallocator_1, + bytes, + length, + deallocator._id); + return NSMutableData._(_ret, _lib, retain: false, release: true); } - NSDictionary? get languageMap { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_languageMap1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + @override + NSMutableData initWithContentsOfFile_options_error_(NSString? path, + int readOptionsMask, ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_254( + _id, + _lib._sel_initWithContentsOfFile_options_error_1, + path?._id ?? ffi.nullptr, + readOptionsMask, + errorPtr); + return NSMutableData._(_ret, _lib, retain: true, release: true); } - NSOrthography initWithDominantScript_languageMap_( - NSString? script, NSDictionary? map) { - final _ret = _lib._objc_msgSend_371( + @override + NSMutableData initWithContentsOfURL_options_error_(NSURL? url, + int readOptionsMask, ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_255( _id, - _lib._sel_initWithDominantScript_languageMap_1, - script?._id ?? ffi.nullptr, - map?._id ?? ffi.nullptr); - return NSOrthography._(_ret, _lib, retain: true, release: true); + _lib._sel_initWithContentsOfURL_options_error_1, + url?._id ?? ffi.nullptr, + readOptionsMask, + errorPtr); + return NSMutableData._(_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); + @override + NSMutableData initWithContentsOfFile_(NSString? path) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSMutableData._(_ret, _lib, retain: true, release: true); } - NSArray languagesForScript_(NSString? script) { - final _ret = _lib._objc_msgSend_123( - _id, _lib._sel_languagesForScript_1, script?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + @override + NSMutableData initWithContentsOfURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_241( + _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSMutableData._(_ret, _lib, retain: true, release: true); } - NSString dominantLanguageForScript_(NSString? script) { - final _ret = _lib._objc_msgSend_64( - _id, _lib._sel_dominantLanguageForScript_1, script?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + @override + NSMutableData initWithData_(NSData? data) { + final _ret = _lib._objc_msgSend_257( + _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); + return NSMutableData._(_ret, _lib, retain: true, release: true); } - 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); + static NSMutableData dataWithData_(SentryCocoa _lib, NSData? data) { + final _ret = _lib._objc_msgSend_257(_lib._class_NSMutableData1, + _lib._sel_dataWithData_1, data?._id ?? ffi.nullptr); + return NSMutableData._(_ret, _lib, retain: true, release: true); } - NSArray? get allScripts { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_allScripts1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + @override + NSMutableData initWithBase64EncodedString_options_( + NSString? base64String, int options) { + final _ret = _lib._objc_msgSend_258( + _id, + _lib._sel_initWithBase64EncodedString_options_1, + base64String?._id ?? ffi.nullptr, + options); + return NSMutableData._(_ret, _lib, retain: true, release: true); } - NSArray? get allLanguages { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_allLanguages1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + @override + NSMutableData initWithBase64EncodedData_options_( + NSData? base64Data, int options) { + final _ret = _lib._objc_msgSend_260( + _id, + _lib._sel_initWithBase64EncodedData_options_1, + base64Data?._id ?? ffi.nullptr, + options); + return NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSOrthography defaultOrthographyForLanguage_( - SentryCocoa _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); + @override + NSMutableData decompressedDataUsingAlgorithm_error_( + int algorithm, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_262(_id, + _lib._sel_decompressedDataUsingAlgorithm_error_1, algorithm, error); + return NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSOrthography orthographyWithDominantScript_languageMap_( - SentryCocoa _lib, NSString? script, NSDictionary? map) { - final _ret = _lib._objc_msgSend_371( - _lib._class_NSOrthography1, - _lib._sel_orthographyWithDominantScript_languageMap_1, - script?._id ?? ffi.nullptr, - map?._id ?? ffi.nullptr); - return NSOrthography._(_ret, _lib, retain: true, release: true); + @override + NSMutableData compressedDataUsingAlgorithm_error_( + int algorithm, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_262( + _id, _lib._sel_compressedDataUsingAlgorithm_error_1, algorithm, error); + return NSMutableData._(_ret, _lib, retain: true, release: true); + } + + static NSObject dataWithContentsOfMappedFile_( + SentryCocoa _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); } @override - NSOrthography init() { + NSMutableData init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSOrthography._(_ret, _lib, retain: true, release: true); + return NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSOrthography new1(SentryCocoa _lib) { + static NSMutableData new1(SentryCocoa _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_NSMutableData1, _lib._sel_new1); + return NSMutableData._(_ret, _lib, retain: false, release: true); } - static NSOrthography allocWithZone_( + static NSMutableData allocWithZone_( SentryCocoa _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); + _lib._class_NSMutableData1, _lib._sel_allocWithZone_1, zone); + return NSMutableData._(_ret, _lib, retain: false, release: true); } - static NSOrthography alloc(SentryCocoa _lib) { + static NSMutableData alloc(SentryCocoa _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_NSMutableData1, _lib._sel_alloc1); + return NSMutableData._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -42015,7 +47796,7 @@ class NSOrthography extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSOrthography1, + _lib._class_NSMutableData1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -42024,24 +47805,24 @@ class NSOrthography extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSOrthography1, + _lib._objc_msgSend_15(_lib._class_NSMutableData1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSOrthography1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSMutableData1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSOrthography1, _lib._sel_useStoredAccessor1); + _lib._class_NSMutableData1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSOrthography1, + _lib._class_NSMutableData1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -42050,7 +47831,7 @@ class NSOrthography extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSOrthography1, + _lib._class_NSMutableData1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -42058,7 +47839,7 @@ class NSOrthography extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSOrthography1, + _lib._class_NSMutableData1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -42066,831 +47847,597 @@ class NSOrthography extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSOrthography1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSMutableData1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSOrthography1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSMutableData1, _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) { - 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 _ObjCBlock_ffiVoid_ObjCObject_bool_closureRegistry = {}; -int _ObjCBlock_ffiVoid_ObjCObject_bool_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_ObjCObject_bool_registerClosure( - Function 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) { - return (_ObjCBlock_ffiVoid_ObjCObject_bool_closureRegistry[ - block.ref.target.address] - as void Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); -} - -class ObjCBlock_ffiVoid_ObjCObject_bool extends _ObjCBlockBase { - ObjCBlock_ffiVoid_ObjCObject_bool._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_ObjCObject_bool.fromFunctionPointer( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_ObjCObject_bool_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_ObjCObject_bool.fromFunction( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_ObjCObject_bool_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_ObjCObject_bool_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); - } -} - -bool _ObjCBlock_bool_ObjCObject_bool_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 _ObjCBlock_bool_ObjCObject_bool_closureRegistry = {}; -int _ObjCBlock_bool_ObjCObject_bool_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_bool_ObjCObject_bool_registerClosure( - Function fn) { - final id = ++_ObjCBlock_bool_ObjCObject_bool_closureRegistryIndex; - _ObjCBlock_bool_ObjCObject_bool_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -bool _ObjCBlock_bool_ObjCObject_bool_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { - return (_ObjCBlock_bool_ObjCObject_bool_closureRegistry[ - block.ref.target.address] - as bool Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); -} - -class ObjCBlock_bool_ObjCObject_bool extends _ObjCBlockBase { - ObjCBlock_bool_ObjCObject_bool._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock_bool_ObjCObject_bool.fromFunctionPointer( - SentryCocoa 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)>( - _ObjCBlock_bool_ObjCObject_bool_fnPtrTrampoline, false) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock_bool_ObjCObject_bool.fromFunction( - SentryCocoa 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)>( - _ObjCBlock_bool_ObjCObject_bool_closureTrampoline, - false) - .cast(), - _ObjCBlock_bool_ObjCObject_bool_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); - } +abstract class NSPropertyListFormat { + static const int NSPropertyListOpenStepFormat = 1; + static const int NSPropertyListXMLFormat_v1_0 = 100; + static const int NSPropertyListBinaryFormat_v1_0 = 200; } -class NSFileManager extends NSObject { - NSFileManager._(ffi.Pointer id, SentryCocoa lib, +class NSThread extends NSObject { + NSThread._(ffi.Pointer id, SentryCocoa 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 [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 [NSFileManager] that wraps the given raw object pointer. - static NSFileManager castFromPointer( + /// Returns a [NSThread] that wraps the given raw object pointer. + static NSThread castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSFileManager._(other, lib, retain: retain, release: release); + return NSThread._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSFileManager]. + /// 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_NSFileManager1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSThread1); } - static NSFileManager? getDefaultManager(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_402( - _lib._class_NSFileManager1, _lib._sel_defaultManager1); + static NSThread? getCurrentThread(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_499(_lib._class_NSThread1, _lib._sel_currentThread1); return _ret.address == 0 ? null - : NSFileManager._(_ret, _lib, retain: true, release: true); + : NSThread._(_ret, _lib, retain: true, release: true); } - NSArray mountedVolumeURLsIncludingResourceValuesForKeys_options_( - NSArray? propertyKeys, int options) { - final _ret = _lib._objc_msgSend_403( - _id, - _lib._sel_mountedVolumeURLsIncludingResourceValuesForKeys_options_1, - propertyKeys?._id ?? ffi.nullptr, - options); - return NSArray._(_ret, _lib, retain: true, release: true); + static void detachNewThreadWithBlock_( + SentryCocoa _lib, ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_500( + _lib._class_NSThread1, _lib._sel_detachNewThreadWithBlock_1, block._id); } - void unmountVolumeAtURL_options_completionHandler_( - NSURL? url, int mask, ObjCBlock_ffiVoid_NSError completionHandler) { - _lib._objc_msgSend_404( - _id, - _lib._sel_unmountVolumeAtURL_options_completionHandler_1, - url?._id ?? ffi.nullptr, - mask, - completionHandler._id); + static void detachNewThreadSelector_toTarget_withObject_(SentryCocoa _lib, + ffi.Pointer selector, NSObject target, NSObject argument) { + _lib._objc_msgSend_501( + _lib._class_NSThread1, + _lib._sel_detachNewThreadSelector_toTarget_withObject_1, + selector, + target._id, + argument._id); } - NSArray contentsOfDirectoryAtURL_includingPropertiesForKeys_options_error_( - NSURL? url, - NSArray? keys, - int mask, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_405( - _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); + static bool isMultiThreaded(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSThread1, _lib._sel_isMultiThreaded1); } - NSArray URLsForDirectory_inDomains_(int directory, int domainMask) { - final _ret = _lib._objc_msgSend_406( - _id, _lib._sel_URLsForDirectory_inDomains_1, directory, domainMask); - return NSArray._(_ret, _lib, retain: true, release: true); + NSMutableDictionary? get threadDictionary { + final _ret = _lib._objc_msgSend_506(_id, _lib._sel_threadDictionary1); + return _ret.address == 0 + ? null + : NSMutableDictionary._(_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_407( - _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); + static void sleepUntilDate_(SentryCocoa _lib, NSDate? date) { + _lib._objc_msgSend_507(_lib._class_NSThread1, _lib._sel_sleepUntilDate_1, + date?._id ?? ffi.nullptr); } - bool getRelationship_ofDirectoryAtURL_toItemAtURL_error_( - ffi.Pointer outRelationship, - NSURL? directoryURL, - NSURL? otherURL, - ffi.Pointer> error) { - return _lib._objc_msgSend_408( - _id, - _lib._sel_getRelationship_ofDirectoryAtURL_toItemAtURL_error_1, - outRelationship, - directoryURL?._id ?? ffi.nullptr, - otherURL?._id ?? ffi.nullptr, - error); + static void sleepForTimeInterval_(SentryCocoa _lib, double ti) { + _lib._objc_msgSend_508( + _lib._class_NSThread1, _lib._sel_sleepForTimeInterval_1, ti); } - bool getRelationship_ofDirectory_inDomain_toItemAtURL_error_( - ffi.Pointer outRelationship, - int directory, - int domainMask, - NSURL? url, - ffi.Pointer> error) { - return _lib._objc_msgSend_409( - _id, - _lib._sel_getRelationship_ofDirectory_inDomain_toItemAtURL_error_1, - outRelationship, - directory, - domainMask, - url?._id ?? ffi.nullptr, - error); + static void exit(SentryCocoa _lib) { + _lib._objc_msgSend_1(_lib._class_NSThread1, _lib._sel_exit1); } - bool createDirectoryAtURL_withIntermediateDirectories_attributes_error_( - NSURL? url, - bool createIntermediates, - NSDictionary? attributes, - ffi.Pointer> error) { - return _lib._objc_msgSend_410( - _id, - _lib._sel_createDirectoryAtURL_withIntermediateDirectories_attributes_error_1, - url?._id ?? ffi.nullptr, - createIntermediates, - attributes?._id ?? ffi.nullptr, - error); + double get threadPriority { + return _lib._objc_msgSend_155(_id, _lib._sel_threadPriority1); + } + + set threadPriority(double value) { + return _lib._objc_msgSend_509(_id, _lib._sel_setThreadPriority_1, value); + } + + int get qualityOfService { + return _lib._objc_msgSend_510(_id, _lib._sel_qualityOfService1); + } + + set qualityOfService(int value) { + return _lib._objc_msgSend_511(_id, _lib._sel_setQualityOfService_1, value); } - bool createSymbolicLinkAtURL_withDestinationURL_error_( - NSURL? url, NSURL? destURL, ffi.Pointer> error) { - return _lib._objc_msgSend_411( - _id, - _lib._sel_createSymbolicLinkAtURL_withDestinationURL_error_1, - url?._id ?? ffi.nullptr, - destURL?._id ?? ffi.nullptr, - error); + static NSArray? getCallStackReturnAddresses(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSThread1, _lib._sel_callStackReturnAddresses1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + static NSArray? getCallStackSymbols(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSThread1, _lib._sel_callStackSymbols1); return _ret.address == 0 ? null - : NSObject._(_ret, _lib, retain: true, release: true); + : NSArray._(_ret, _lib, retain: true, release: true); } - set delegate(NSObject? value) { - return _lib._objc_msgSend_387( - _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); + 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 setAttributes_ofItemAtPath_error_(NSDictionary? attributes, - NSString? path, ffi.Pointer> error) { - return _lib._objc_msgSend_412( - _id, - _lib._sel_setAttributes_ofItemAtPath_error_1, - attributes?._id ?? ffi.nullptr, - path?._id ?? ffi.nullptr, - error); + set name(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); } - bool createDirectoryAtPath_withIntermediateDirectories_attributes_error_( - NSString? path, - bool createIntermediates, - NSDictionary? attributes, - ffi.Pointer> error) { - return _lib._objc_msgSend_413( - _id, - _lib._sel_createDirectoryAtPath_withIntermediateDirectories_attributes_error_1, - path?._id ?? ffi.nullptr, - createIntermediates, - attributes?._id ?? ffi.nullptr, - error); + int get stackSize { + return _lib._objc_msgSend_10(_id, _lib._sel_stackSize1); } - NSArray contentsOfDirectoryAtPath_error_( - NSString? path, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_414( - _id, - _lib._sel_contentsOfDirectoryAtPath_error_1, - path?._id ?? ffi.nullptr, - error); - return NSArray._(_ret, _lib, retain: true, release: true); + set stackSize(int value) { + return _lib._objc_msgSend_486(_id, _lib._sel_setStackSize_1, value); } - NSArray subpathsOfDirectoryAtPath_error_( - NSString? path, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_414( - _id, - _lib._sel_subpathsOfDirectoryAtPath_error_1, - path?._id ?? ffi.nullptr, - error); - return NSArray._(_ret, _lib, retain: true, release: true); + bool get isMainThread { + return _lib._objc_msgSend_12(_id, _lib._sel_isMainThread1); } - NSDictionary attributesOfItemAtPath_error_( - NSString? path, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_415( - _id, - _lib._sel_attributesOfItemAtPath_error_1, - path?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); + static NSThread? getMainThread(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_499(_lib._class_NSThread1, _lib._sel_mainThread1); + return _ret.address == 0 + ? null + : NSThread._(_ret, _lib, retain: true, release: true); } - NSDictionary attributesOfFileSystemForPath_error_( - NSString? path, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_415( - _id, - _lib._sel_attributesOfFileSystemForPath_error_1, - path?._id ?? ffi.nullptr, - error); - return NSDictionary._(_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); } - bool createSymbolicLinkAtPath_withDestinationPath_error_(NSString? path, - NSString? destPath, ffi.Pointer> error) { - return _lib._objc_msgSend_416( + NSThread initWithTarget_selector_object_( + NSObject target, ffi.Pointer selector, NSObject argument) { + final _ret = _lib._objc_msgSend_513( _id, - _lib._sel_createSymbolicLinkAtPath_withDestinationPath_error_1, - path?._id ?? ffi.nullptr, - destPath?._id ?? ffi.nullptr, - error); + _lib._sel_initWithTarget_selector_object_1, + target._id, + selector, + argument._id); + return NSThread._(_ret, _lib, retain: true, release: true); } - NSString destinationOfSymbolicLinkAtPath_error_( - NSString? path, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_417( - _id, - _lib._sel_destinationOfSymbolicLinkAtPath_error_1, - path?._id ?? ffi.nullptr, - error); - return NSString._(_ret, _lib, retain: true, release: true); + NSThread initWithBlock_(ObjCBlock_ffiVoid block) { + final _ret = + _lib._objc_msgSend_514(_id, _lib._sel_initWithBlock_1, block._id); + return NSThread._(_ret, _lib, retain: true, release: true); } - bool copyItemAtPath_toPath_error_(NSString? srcPath, NSString? dstPath, - ffi.Pointer> error) { - return _lib._objc_msgSend_416(_id, _lib._sel_copyItemAtPath_toPath_error_1, - srcPath?._id ?? ffi.nullptr, dstPath?._id ?? ffi.nullptr, error); + bool get executing { + return _lib._objc_msgSend_12(_id, _lib._sel_isExecuting1); } - bool moveItemAtPath_toPath_error_(NSString? srcPath, NSString? dstPath, - ffi.Pointer> error) { - return _lib._objc_msgSend_416(_id, _lib._sel_moveItemAtPath_toPath_error_1, - srcPath?._id ?? ffi.nullptr, dstPath?._id ?? ffi.nullptr, error); + bool get finished { + return _lib._objc_msgSend_12(_id, _lib._sel_isFinished1); } - bool linkItemAtPath_toPath_error_(NSString? srcPath, NSString? dstPath, - ffi.Pointer> error) { - return _lib._objc_msgSend_416(_id, _lib._sel_linkItemAtPath_toPath_error_1, - srcPath?._id ?? ffi.nullptr, dstPath?._id ?? ffi.nullptr, error); + bool get cancelled { + return _lib._objc_msgSend_12(_id, _lib._sel_isCancelled1); } - bool removeItemAtPath_error_( - NSString? path, ffi.Pointer> error) { - return _lib._objc_msgSend_418(_id, _lib._sel_removeItemAtPath_error_1, - path?._id ?? ffi.nullptr, error); + void cancel() { + _lib._objc_msgSend_1(_id, _lib._sel_cancel1); } - bool copyItemAtURL_toURL_error_(NSURL? srcURL, NSURL? dstURL, - ffi.Pointer> error) { - return _lib._objc_msgSend_411(_id, _lib._sel_copyItemAtURL_toURL_error_1, - srcURL?._id ?? ffi.nullptr, dstURL?._id ?? ffi.nullptr, error); + void start() { + _lib._objc_msgSend_1(_id, _lib._sel_start1); } - bool moveItemAtURL_toURL_error_(NSURL? srcURL, NSURL? dstURL, - ffi.Pointer> error) { - return _lib._objc_msgSend_411(_id, _lib._sel_moveItemAtURL_toURL_error_1, - srcURL?._id ?? ffi.nullptr, dstURL?._id ?? ffi.nullptr, error); + void main() { + _lib._objc_msgSend_1(_id, _lib._sel_main1); } - bool linkItemAtURL_toURL_error_(NSURL? srcURL, NSURL? dstURL, - ffi.Pointer> error) { - return _lib._objc_msgSend_411(_id, _lib._sel_linkItemAtURL_toURL_error_1, - srcURL?._id ?? ffi.nullptr, dstURL?._id ?? ffi.nullptr, error); + static NSThread new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSThread1, _lib._sel_new1); + return NSThread._(_ret, _lib, retain: false, release: true); } - bool removeItemAtURL_error_( - NSURL? URL, ffi.Pointer> error) { - return _lib._objc_msgSend_83( - _id, _lib._sel_removeItemAtURL_error_1, URL?._id ?? ffi.nullptr, error); + static NSThread allocWithZone_(SentryCocoa _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); } - bool trashItemAtURL_resultingItemURL_error_( - NSURL? url, - ffi.Pointer> outResultingURL, - ffi.Pointer> error) { - return _lib._objc_msgSend_419( - _id, - _lib._sel_trashItemAtURL_resultingItemURL_error_1, - url?._id ?? ffi.nullptr, - outResultingURL, - error); + static NSThread alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSThread1, _lib._sel_alloc1); + return NSThread._(_ret, _lib, retain: false, release: true); } - NSDictionary fileAttributesAtPath_traverseLink_(NSString? path, bool yorn) { - final _ret = _lib._objc_msgSend_420( - _id, - _lib._sel_fileAttributesAtPath_traverseLink_1, - path?._id ?? ffi.nullptr, - yorn); - return NSDictionary._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSThread1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - bool changeFileAttributes_atPath_(NSDictionary? attributes, NSString? path) { - return _lib._objc_msgSend_421(_id, _lib._sel_changeFileAttributes_atPath_1, - attributes?._id ?? ffi.nullptr, path?._id ?? ffi.nullptr); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSThread1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - NSArray directoryContentsAtPath_(NSString? path) { - final _ret = _lib._objc_msgSend_123( - _id, _lib._sel_directoryContentsAtPath_1, path?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSThread1, _lib._sel_accessInstanceVariablesDirectly1); } - NSDictionary fileSystemAttributesAtPath_(NSString? path) { - final _ret = _lib._objc_msgSend_146( - _id, _lib._sel_fileSystemAttributesAtPath_1, path?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSThread1, _lib._sel_useStoredAccessor1); } - NSString pathContentOfSymbolicLinkAtPath_(NSString? path) { - final _ret = _lib._objc_msgSend_64(_id, - _lib._sel_pathContentOfSymbolicLinkAtPath_1, path?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSThread1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - bool createSymbolicLinkAtPath_pathContent_( - NSString? path, NSString? otherpath) { - return _lib._objc_msgSend_422( - _id, - _lib._sel_createSymbolicLinkAtPath_pathContent_1, - path?._id ?? ffi.nullptr, - otherpath?._id ?? ffi.nullptr); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSThread1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - bool createDirectoryAtPath_attributes_( - NSString? path, NSDictionary? attributes) { - return _lib._objc_msgSend_423( - _id, - _lib._sel_createDirectoryAtPath_attributes_1, - path?._id ?? ffi.nullptr, - attributes?._id ?? ffi.nullptr); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSThread1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - bool linkPath_toPath_handler_( - NSString? src, NSString? dest, NSObject handler) { - return _lib._objc_msgSend_424(_id, _lib._sel_linkPath_toPath_handler_1, - src?._id ?? ffi.nullptr, dest?._id ?? ffi.nullptr, handler._id); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSThread1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - bool copyPath_toPath_handler_( - NSString? src, NSString? dest, NSObject handler) { - return _lib._objc_msgSend_424(_id, _lib._sel_copyPath_toPath_handler_1, - src?._id ?? ffi.nullptr, dest?._id ?? ffi.nullptr, handler._id); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSThread1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - bool movePath_toPath_handler_( - NSString? src, NSString? dest, NSObject handler) { - return _lib._objc_msgSend_424(_id, _lib._sel_movePath_toPath_handler_1, - src?._id ?? ffi.nullptr, dest?._id ?? ffi.nullptr, handler._id); +void _ObjCBlock_ffiVoid_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block) { + return block.ref.target + .cast>() + .asFunction()(); +} + +final _ObjCBlock_ffiVoid_closureRegistry = {}; +int _ObjCBlock_ffiVoid_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_registerClosure(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) { + return (_ObjCBlock_ffiVoid_closureRegistry[block.ref.target.address] as void + Function())(); +} + +class ObjCBlock_ffiVoid extends _ObjCBlockBase { + ObjCBlock_ffiVoid._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid.fromFunctionPointer( + SentryCocoa lib, ffi.Pointer> ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block)>( + _ObjCBlock_ffiVoid_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid.fromFunction(SentryCocoa lib, void Function() fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block)>( + _ObjCBlock_ffiVoid_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call() { + return _id.ref.invoke + .cast< + ffi + .NativeFunction block)>>() + .asFunction block)>()(_id); } +} - bool removeFileAtPath_handler_(NSString? path, NSObject handler) { - return _lib._objc_msgSend_425(_id, _lib._sel_removeFileAtPath_handler_1, - path?._id ?? ffi.nullptr, handler._id); +class NSMutableDictionary extends NSDictionary { + NSMutableDictionary._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// 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); } - NSString? get currentDirectoryPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currentDirectoryPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + /// Returns a [NSMutableDictionary] that wraps the given raw object pointer. + static NSMutableDictionary castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSMutableDictionary._(other, lib, retain: retain, release: release); } - bool changeCurrentDirectoryPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_changeCurrentDirectoryPath_1, path?._id ?? ffi.nullptr); + /// 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); } - bool fileExistsAtPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_fileExistsAtPath_1, path?._id ?? ffi.nullptr); + void removeObjectForKey_(NSObject aKey) { + _lib._objc_msgSend_15(_id, _lib._sel_removeObjectForKey_1, aKey._id); } - bool fileExistsAtPath_isDirectory_( - NSString? path, ffi.Pointer isDirectory) { - return _lib._objc_msgSend_426(_id, _lib._sel_fileExistsAtPath_isDirectory_1, - path?._id ?? ffi.nullptr, isDirectory); + void setObject_forKey_(NSObject anObject, NSObject? aKey) { + _lib._objc_msgSend_502(_id, _lib._sel_setObject_forKey_1, anObject._id, + aKey?._id ?? ffi.nullptr); } - bool isReadableFileAtPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isReadableFileAtPath_1, path?._id ?? ffi.nullptr); + @override + NSMutableDictionary init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - bool isWritableFileAtPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isWritableFileAtPath_1, path?._id ?? ffi.nullptr); + NSMutableDictionary initWithCapacity_(int numItems) { + final _ret = + _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, numItems); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - bool isExecutableFileAtPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isExecutableFileAtPath_1, path?._id ?? ffi.nullptr); + @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); } - bool isDeletableFileAtPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isDeletableFileAtPath_1, path?._id ?? ffi.nullptr); + void addEntriesFromDictionary_(NSDictionary? otherDictionary) { + _lib._objc_msgSend_478(_id, _lib._sel_addEntriesFromDictionary_1, + otherDictionary?._id ?? ffi.nullptr); } - bool contentsEqualAtPath_andPath_(NSString? path1, NSString? path2) { - return _lib._objc_msgSend_422(_id, _lib._sel_contentsEqualAtPath_andPath_1, - path1?._id ?? ffi.nullptr, path2?._id ?? ffi.nullptr); + void removeAllObjects() { + _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); } - NSString displayNameAtPath_(NSString? path) { - final _ret = _lib._objc_msgSend_64( - _id, _lib._sel_displayNameAtPath_1, path?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + void removeObjectsForKeys_(NSArray? keyArray) { + _lib._objc_msgSend_443( + _id, _lib._sel_removeObjectsForKeys_1, keyArray?._id ?? ffi.nullptr); } - NSArray componentsToDisplayForPath_(NSString? path) { - final _ret = _lib._objc_msgSend_123( - _id, _lib._sel_componentsToDisplayForPath_1, path?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + void setDictionary_(NSDictionary? otherDictionary) { + _lib._objc_msgSend_478( + _id, _lib._sel_setDictionary_1, otherDictionary?._id ?? ffi.nullptr); } - 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); + void setObject_forKeyedSubscript_(NSObject obj, NSObject? key) { + _lib._objc_msgSend_502(_id, _lib._sel_setObject_forKeyedSubscript_1, + obj._id, key?._id ?? ffi.nullptr); } - NSObject enumeratorAtURL_includingPropertiesForKeys_options_errorHandler_( - NSURL? url, - NSArray? keys, - int mask, - ObjCBlock_bool_NSURL_NSError handler) { - final _ret = _lib._objc_msgSend_427( - _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); + static NSMutableDictionary dictionaryWithCapacity_( + SentryCocoa _lib, int numItems) { + final _ret = _lib._objc_msgSend_60(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithCapacity_1, numItems); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - NSArray subpathsAtPath_(NSString? path) { - final _ret = _lib._objc_msgSend_123( - _id, _lib._sel_subpathsAtPath_1, path?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + static NSMutableDictionary dictionaryWithContentsOfFile_( + SentryCocoa _lib, NSString? path) { + final _ret = _lib._objc_msgSend_503(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - NSData contentsAtPath_(NSString? path) { - final _ret = _lib._objc_msgSend_428( - _id, _lib._sel_contentsAtPath_1, path?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); + static NSMutableDictionary dictionaryWithContentsOfURL_( + SentryCocoa _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_504(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - bool createFileAtPath_contents_attributes_( - NSString? path, NSData? data, NSDictionary? attr) { - return _lib._objc_msgSend_429( - _id, - _lib._sel_createFileAtPath_contents_attributes_1, - path?._id ?? ffi.nullptr, - data?._id ?? ffi.nullptr, - attr?._id ?? ffi.nullptr); + NSMutableDictionary initWithContentsOfFile_(NSString? path) { + final _ret = _lib._objc_msgSend_503( + _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - ffi.Pointer fileSystemRepresentationWithPath_(NSString? path) { - return _lib._objc_msgSend_430(_id, - _lib._sel_fileSystemRepresentationWithPath_1, path?._id ?? ffi.nullptr); + NSMutableDictionary initWithContentsOfURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_504( + _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - NSString stringWithFileSystemRepresentation_length_( - ffi.Pointer str, int len) { - final _ret = _lib._objc_msgSend_431( - _id, _lib._sel_stringWithFileSystemRepresentation_length_1, str, len); - return NSString._(_ret, _lib, retain: true, release: true); + static NSMutableDictionary dictionaryWithSharedKeySet_( + SentryCocoa _lib, NSObject keyset) { + final _ret = _lib._objc_msgSend_505(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithSharedKeySet_1, keyset._id); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - 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_432( - _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); + void setValue_forKey_(NSObject value, NSString? key) { + _lib._objc_msgSend_126( + _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); } - bool setUbiquitous_itemAtURL_destinationURL_error_(bool flag, NSURL? url, - NSURL? destinationURL, ffi.Pointer> error) { - return _lib._objc_msgSend_433( - _id, - _lib._sel_setUbiquitous_itemAtURL_destinationURL_error_1, - flag, - url?._id ?? ffi.nullptr, - destinationURL?._id ?? ffi.nullptr, - error); + @override + NSMutableDictionary initWithObjects_forKeys_count_( + ffi.Pointer> objects, + ffi.Pointer> keys, + int cnt) { + final _ret = _lib._objc_msgSend_137( + _id, _lib._sel_initWithObjects_forKeys_count_1, objects, keys, cnt); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSMutableDictionary dictionary(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableDictionary1, _lib._sel_dictionary1); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSMutableDictionary dictionaryWithObject_forKey_( + SentryCocoa _lib, NSObject object, NSObject? key) { + final _ret = _lib._objc_msgSend_148( + _lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithObject_forKey_1, + object._id, + key?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - bool isUbiquitousItemAtURL_(NSURL? url) { - return _lib._objc_msgSend_244( - _id, _lib._sel_isUbiquitousItemAtURL_1, url?._id ?? ffi.nullptr); + static NSMutableDictionary dictionaryWithObjects_forKeys_count_( + SentryCocoa _lib, + ffi.Pointer> objects, + ffi.Pointer> keys, + int cnt) { + final _ret = _lib._objc_msgSend_137(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithObjects_forKeys_count_1, objects, keys, cnt); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - bool startDownloadingUbiquitousItemAtURL_error_( - NSURL? url, ffi.Pointer> error) { - return _lib._objc_msgSend_83( - _id, - _lib._sel_startDownloadingUbiquitousItemAtURL_error_1, - url?._id ?? ffi.nullptr, - error); + static NSMutableDictionary dictionaryWithObjectsAndKeys_( + SentryCocoa _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); } - bool evictUbiquitousItemAtURL_error_( - NSURL? url, ffi.Pointer> error) { - return _lib._objc_msgSend_83( - _id, - _lib._sel_evictUbiquitousItemAtURL_error_1, - url?._id ?? ffi.nullptr, - error); + static NSMutableDictionary dictionaryWithDictionary_( + SentryCocoa _lib, NSDictionary? dict) { + final _ret = _lib._objc_msgSend_149(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithDictionary_1, dict?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - 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); + static NSMutableDictionary dictionaryWithObjects_forKeys_( + SentryCocoa _lib, NSArray? objects, NSArray? keys) { + final _ret = _lib._objc_msgSend_150( + _lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithObjects_forKeys_1, + objects?._id ?? ffi.nullptr, + keys?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - NSURL URLForPublishingUbiquitousItemAtURL_expirationDate_error_( - NSURL? url, - ffi.Pointer> outDate, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_434( - _id, - _lib._sel_URLForPublishingUbiquitousItemAtURL_expirationDate_error_1, - url?._id ?? ffi.nullptr, - outDate, - error); - return NSURL._(_ret, _lib, retain: true, release: true); + @override + NSMutableDictionary initWithObjectsAndKeys_(NSObject firstObject) { + final _ret = _lib._objc_msgSend_16( + _id, _lib._sel_initWithObjectsAndKeys_1, firstObject._id); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - 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 + NSMutableDictionary initWithDictionary_(NSDictionary? otherDictionary) { + final _ret = _lib._objc_msgSend_149(_id, _lib._sel_initWithDictionary_1, + otherDictionary?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - void getFileProviderServicesForItemAtURL_completionHandler_( - NSURL? url, ObjCBlock_ffiVoid_NSDictionary_NSError completionHandler) { - _lib._objc_msgSend_435( + @override + NSMutableDictionary initWithDictionary_copyItems_( + NSDictionary? otherDictionary, bool flag) { + final _ret = _lib._objc_msgSend_151( _id, - _lib._sel_getFileProviderServicesForItemAtURL_completionHandler_1, - url?._id ?? ffi.nullptr, - completionHandler._id); + _lib._sel_initWithDictionary_copyItems_1, + otherDictionary?._id ?? ffi.nullptr, + flag); + return NSMutableDictionary._(_ret, _lib, retain: false, release: true); } - NSURL containerURLForSecurityApplicationGroupIdentifier_( - NSString? groupIdentifier) { - final _ret = _lib._objc_msgSend_34( + @override + NSMutableDictionary initWithObjects_forKeys_( + NSArray? objects, NSArray? keys) { + final _ret = _lib._objc_msgSend_150( _id, - _lib._sel_containerURLForSecurityApplicationGroupIdentifier_1, - groupIdentifier?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - 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); - } - - 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); + _lib._sel_initWithObjects_forKeys_1, + objects?._id ?? ffi.nullptr, + keys?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - 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); + static NSDictionary dictionaryWithContentsOfURL_error_(SentryCocoa _lib, + NSURL? url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_152( + _lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithContentsOfURL_error_1, + url?._id ?? ffi.nullptr, + error); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - @override - NSFileManager init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSFileManager._(_ret, _lib, retain: true, release: true); + static NSObject sharedKeySetForKeys_(SentryCocoa _lib, NSArray? keys) { + final _ret = _lib._objc_msgSend_67(_lib._class_NSMutableDictionary1, + _lib._sel_sharedKeySetForKeys_1, keys?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSFileManager new1(SentryCocoa _lib) { + static NSMutableDictionary new1(SentryCocoa _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_NSMutableDictionary1, _lib._sel_new1); + return NSMutableDictionary._(_ret, _lib, retain: false, release: true); } - static NSFileManager allocWithZone_( + static NSMutableDictionary allocWithZone_( SentryCocoa _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); + _lib._class_NSMutableDictionary1, _lib._sel_allocWithZone_1, zone); + return NSMutableDictionary._(_ret, _lib, retain: false, release: true); } - static NSFileManager alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSFileManager1, _lib._sel_alloc1); - return NSFileManager._(_ret, _lib, retain: false, release: true); + static NSMutableDictionary alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableDictionary1, _lib._sel_alloc1); + return NSMutableDictionary._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -42899,7 +48446,7 @@ class NSFileManager extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSFileManager1, + _lib._class_NSMutableDictionary1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -42908,24 +48455,24 @@ class NSFileManager extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSFileManager1, + _lib._objc_msgSend_15(_lib._class_NSMutableDictionary1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSFileManager1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSMutableDictionary1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSFileManager1, _lib._sel_useStoredAccessor1); + _lib._class_NSMutableDictionary1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSFileManager1, + _lib._class_NSMutableDictionary1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -42934,7 +48481,7 @@ class NSFileManager extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSFileManager1, + _lib._class_NSMutableDictionary1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -42942,661 +48489,495 @@ class NSFileManager extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSFileManager1, + _lib._class_NSMutableDictionary1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSFileManager1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_NSMutableDictionary1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSFileManager1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSMutableDictionary1, _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 _ObjCBlock_ffiVoid_NSError_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock_ffiVoid_NSError_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSError_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSError_registerClosure(Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSError_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSError_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock_ffiVoid_NSError_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return (_ObjCBlock_ffiVoid_NSError_closureRegistry[block.ref.target.address] - as void Function(ffi.Pointer))(arg0); -} - -class ObjCBlock_ffiVoid_NSError extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSError._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSError.fromFunctionPointer( - SentryCocoa lib, - ffi.Pointer< - ffi - .NativeFunction arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSError_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSError.fromFunction( - SentryCocoa lib, void Function(ffi.Pointer arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSError_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_NSError_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); - } -} - -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 _ObjCBlock_bool_NSURL_NSError_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 _ObjCBlock_bool_NSURL_NSError_closureRegistry = {}; -int _ObjCBlock_bool_NSURL_NSError_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_bool_NSURL_NSError_registerClosure( - Function 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) { - return (_ObjCBlock_bool_NSURL_NSError_closureRegistry[ - block.ref.target.address] - as bool Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); -} - -class ObjCBlock_bool_NSURL_NSError extends _ObjCBlockBase { - ObjCBlock_bool_NSURL_NSError._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock_bool_NSURL_NSError.fromFunctionPointer( - SentryCocoa 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)>( - _ObjCBlock_bool_NSURL_NSError_fnPtrTrampoline, false) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock_bool_NSURL_NSError.fromFunction( - SentryCocoa 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)>( - _ObjCBlock_bool_NSURL_NSError_closureTrampoline, false) - .cast(), - _ObjCBlock_bool_NSURL_NSError_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); - } -} - -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) { - 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 _ObjCBlock_ffiVoid_NSDictionary_NSError_closureRegistry = - {}; -int _ObjCBlock_ffiVoid_NSDictionary_NSError_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSDictionary_NSError_registerClosure( - Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSDictionary_NSError_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSDictionary_NSError_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock_ffiVoid_NSDictionary_NSError_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { - return (_ObjCBlock_ffiVoid_NSDictionary_NSError_closureRegistry[ - block.ref.target.address] - as void Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); -} - -class ObjCBlock_ffiVoid_NSDictionary_NSError extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSDictionary_NSError._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSDictionary_NSError.fromFunctionPointer( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_NSDictionary_NSError_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSDictionary_NSError.fromFunction( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_NSDictionary_NSError_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_NSDictionary_NSError_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); - } +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 NSMutableArray extends NSArray { - NSMutableArray._(ffi.Pointer id, SentryCocoa lib, +class NSArchiver extends NSCoder { + NSArchiver._(ffi.Pointer id, SentryCocoa 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 [NSArchiver] that points to the same underlying object as [other]. + static NSArchiver castFrom(T other) { + return NSArchiver._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSMutableArray] that wraps the given raw object pointer. - static NSMutableArray castFromPointer( + /// Returns a [NSArchiver] that wraps the given raw object pointer. + static NSArchiver castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSMutableArray._(other, lib, retain: retain, release: release); + return NSArchiver._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSMutableArray]. + /// Returns whether [obj] is an instance of [NSArchiver]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMutableArray1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSArchiver1); } - void addObject_(NSObject anObject) { - _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, anObject._id); + NSArchiver initForWritingWithMutableData_(NSMutableData? mdata) { + final _ret = _lib._objc_msgSend_490(_id, + _lib._sel_initForWritingWithMutableData_1, mdata?._id ?? ffi.nullptr); + return NSArchiver._(_ret, _lib, retain: true, release: true); } - void insertObject_atIndex_(NSObject anObject, int index) { - _lib._objc_msgSend_438( - _id, _lib._sel_insertObject_atIndex_1, anObject._id, index); + NSMutableData? get archiverData { + final _ret = _lib._objc_msgSend_517(_id, _lib._sel_archiverData1); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); } - void removeLastObject() { - _lib._objc_msgSend_1(_id, _lib._sel_removeLastObject1); + @override + void encodeRootObject_(NSObject rootObject) { + _lib._objc_msgSend_15(_id, _lib._sel_encodeRootObject_1, rootObject._id); } - void removeObjectAtIndex_(int index) { - _lib._objc_msgSend_439(_id, _lib._sel_removeObjectAtIndex_1, index); + @override + void encodeConditionalObject_(NSObject object) { + _lib._objc_msgSend_15(_id, _lib._sel_encodeConditionalObject_1, object._id); } - void replaceObjectAtIndex_withObject_(int index, NSObject anObject) { - _lib._objc_msgSend_440( - _id, _lib._sel_replaceObjectAtIndex_withObject_1, index, anObject._id); + static NSData archivedDataWithRootObject_( + SentryCocoa _lib, NSObject rootObject) { + final _ret = _lib._objc_msgSend_491(_lib._class_NSArchiver1, + _lib._sel_archivedDataWithRootObject_1, rootObject._id); + return NSData._(_ret, _lib, retain: true, release: true); + } + + static bool archiveRootObject_toFile_( + SentryCocoa _lib, NSObject rootObject, NSString? path) { + return _lib._objc_msgSend_240( + _lib._class_NSArchiver1, + _lib._sel_archiveRootObject_toFile_1, + rootObject._id, + path?._id ?? ffi.nullptr); + } + + void encodeClassName_intoClassName_( + NSString? trueName, NSString? inArchiveName) { + _lib._objc_msgSend_518(_id, _lib._sel_encodeClassName_intoClassName_1, + trueName?._id ?? ffi.nullptr, inArchiveName?._id ?? ffi.nullptr); + } + + NSString classNameEncodedForTrueClassName_(NSString? trueName) { + final _ret = _lib._objc_msgSend_64( + _id, + _lib._sel_classNameEncodedForTrueClassName_1, + trueName?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + void replaceObject_withObject_(NSObject object, NSObject newObject) { + _lib._objc_msgSend_502( + _id, _lib._sel_replaceObject_withObject_1, object._id, newObject._id); } @override - NSMutableArray init() { + NSArchiver init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + return NSArchiver._(_ret, _lib, retain: true, release: true); } - NSMutableArray initWithCapacity_(int numItems) { + static NSArchiver new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSArchiver1, _lib._sel_new1); + return NSArchiver._(_ret, _lib, retain: false, release: true); + } + + static NSArchiver allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSArchiver1, _lib._sel_allocWithZone_1, zone); + return NSArchiver._(_ret, _lib, retain: false, release: true); + } + + static NSArchiver alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, numItems); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_2(_lib._class_NSArchiver1, _lib._sel_alloc1); + return NSArchiver._(_ret, _lib, retain: false, release: true); } - @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); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSArchiver1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - void addObjectsFromArray_(NSArray? otherArray) { - _lib._objc_msgSend_441( - _id, _lib._sel_addObjectsFromArray_1, otherArray?._id ?? ffi.nullptr); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSArchiver1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - void exchangeObjectAtIndex_withObjectAtIndex_(int idx1, int idx2) { - _lib._objc_msgSend_442( - _id, _lib._sel_exchangeObjectAtIndex_withObjectAtIndex_1, idx1, idx2); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSArchiver1, _lib._sel_accessInstanceVariablesDirectly1); } - void removeAllObjects() { - _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSArchiver1, _lib._sel_useStoredAccessor1); } - void removeObject_inRange_(NSObject anObject, _NSRange range) { - _lib._objc_msgSend_443( - _id, _lib._sel_removeObject_inRange_1, anObject._id, range); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSArchiver1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - void removeObject_(NSObject anObject) { - _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, anObject._id); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSArchiver1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - void removeObjectIdenticalTo_inRange_(NSObject anObject, _NSRange range) { - _lib._objc_msgSend_443( - _id, _lib._sel_removeObjectIdenticalTo_inRange_1, anObject._id, range); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSArchiver1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - void removeObjectIdenticalTo_(NSObject anObject) { - _lib._objc_msgSend_15( - _id, _lib._sel_removeObjectIdenticalTo_1, anObject._id); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSArchiver1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - void removeObjectsFromIndices_numIndices_( - ffi.Pointer indices, int cnt) { - _lib._objc_msgSend_444( - _id, _lib._sel_removeObjectsFromIndices_numIndices_1, indices, cnt); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSArchiver1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - void removeObjectsInArray_(NSArray? otherArray) { - _lib._objc_msgSend_441( - _id, _lib._sel_removeObjectsInArray_1, otherArray?._id ?? ffi.nullptr); +class NSPortCoder extends NSCoder { + NSPortCoder._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSPortCoder] that points to the same underlying object as [other]. + static NSPortCoder castFrom(T other) { + return NSPortCoder._(other._id, other._lib, retain: true, release: true); } - void removeObjectsInRange_(_NSRange range) { - _lib._objc_msgSend_445(_id, _lib._sel_removeObjectsInRange_1, range); + /// Returns a [NSPortCoder] that wraps the given raw object pointer. + static NSPortCoder castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSPortCoder._(other, lib, retain: retain, release: release); } - void replaceObjectsInRange_withObjectsFromArray_range_( - _NSRange range, NSArray? otherArray, _NSRange otherRange) { - _lib._objc_msgSend_446( - _id, - _lib._sel_replaceObjectsInRange_withObjectsFromArray_range_1, - range, - otherArray?._id ?? ffi.nullptr, - otherRange); + /// Returns whether [obj] is an instance of [NSPortCoder]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSPortCoder1); } - void replaceObjectsInRange_withObjectsFromArray_( - _NSRange range, NSArray? otherArray) { - _lib._objc_msgSend_447( + bool isBycopy() { + return _lib._objc_msgSend_12(_id, _lib._sel_isBycopy1); + } + + bool isByref() { + return _lib._objc_msgSend_12(_id, _lib._sel_isByref1); + } + + void encodePortObject_(NSPort? aport) { + _lib._objc_msgSend_555( + _id, _lib._sel_encodePortObject_1, aport?._id ?? ffi.nullptr); + } + + NSPort decodePortObject() { + final _ret = _lib._objc_msgSend_520(_id, _lib._sel_decodePortObject1); + return NSPort._(_ret, _lib, retain: true, release: true); + } + + NSConnection connection() { + final _ret = _lib._objc_msgSend_539(_id, _lib._sel_connection1); + return NSConnection._(_ret, _lib, retain: true, release: true); + } + + static NSObject portCoderWithReceivePort_sendPort_components_( + SentryCocoa _lib, NSPort? rcvPort, NSPort? sndPort, NSArray? comps) { + final _ret = _lib._objc_msgSend_556( + _lib._class_NSPortCoder1, + _lib._sel_portCoderWithReceivePort_sendPort_components_1, + rcvPort?._id ?? ffi.nullptr, + sndPort?._id ?? ffi.nullptr, + comps?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject initWithReceivePort_sendPort_components_( + NSPort? rcvPort, NSPort? sndPort, NSArray? comps) { + final _ret = _lib._objc_msgSend_556( _id, - _lib._sel_replaceObjectsInRange_withObjectsFromArray_1, - range, - otherArray?._id ?? ffi.nullptr); + _lib._sel_initWithReceivePort_sendPort_components_1, + rcvPort?._id ?? ffi.nullptr, + sndPort?._id ?? ffi.nullptr, + comps?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - void setArray_(NSArray? otherArray) { - _lib._objc_msgSend_441( - _id, _lib._sel_setArray_1, otherArray?._id ?? ffi.nullptr); + void dispatch() { + _lib._objc_msgSend_1(_id, _lib._sel_dispatch1); } - void sortUsingFunction_context_( - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>> - compare, - ffi.Pointer context) { - _lib._objc_msgSend_448( - _id, _lib._sel_sortUsingFunction_context_1, compare, context); + @override + NSPortCoder init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSPortCoder._(_ret, _lib, retain: true, release: true); } - void sortUsingSelector_(ffi.Pointer comparator) { - _lib._objc_msgSend_7(_id, _lib._sel_sortUsingSelector_1, comparator); + static NSPortCoder new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSPortCoder1, _lib._sel_new1); + return NSPortCoder._(_ret, _lib, retain: false, release: true); } - void insertObjects_atIndexes_(NSArray? objects, NSIndexSet? indexes) { - _lib._objc_msgSend_449(_id, _lib._sel_insertObjects_atIndexes_1, - objects?._id ?? ffi.nullptr, indexes?._id ?? ffi.nullptr); + static NSPortCoder allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSPortCoder1, _lib._sel_allocWithZone_1, zone); + return NSPortCoder._(_ret, _lib, retain: false, release: true); } - void removeObjectsAtIndexes_(NSIndexSet? indexes) { - _lib._objc_msgSend_450( - _id, _lib._sel_removeObjectsAtIndexes_1, indexes?._id ?? ffi.nullptr); + static NSPortCoder alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSPortCoder1, _lib._sel_alloc1); + return NSPortCoder._(_ret, _lib, retain: false, release: true); } - void replaceObjectsAtIndexes_withObjects_( - NSIndexSet? indexes, NSArray? objects) { - _lib._objc_msgSend_451(_id, _lib._sel_replaceObjectsAtIndexes_withObjects_1, - indexes?._id ?? ffi.nullptr, objects?._id ?? ffi.nullptr); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSPortCoder1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - void setObject_atIndexedSubscript_(NSObject obj, int idx) { - _lib._objc_msgSend_438( - _id, _lib._sel_setObject_atIndexedSubscript_1, obj._id, idx); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSPortCoder1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - void sortUsingComparator_( - ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { - _lib._objc_msgSend_452(_id, _lib._sel_sortUsingComparator_1, cmptr._id); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSPortCoder1, _lib._sel_accessInstanceVariablesDirectly1); } - void sortWithOptions_usingComparator_( - int opts, ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { - _lib._objc_msgSend_453( - _id, _lib._sel_sortWithOptions_usingComparator_1, opts, cmptr._id); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSPortCoder1, _lib._sel_useStoredAccessor1); } - static NSMutableArray arrayWithCapacity_(SentryCocoa _lib, int numItems) { - final _ret = _lib._objc_msgSend_60( - _lib._class_NSMutableArray1, _lib._sel_arrayWithCapacity_1, numItems); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSPortCoder1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - static NSMutableArray arrayWithContentsOfFile_( - SentryCocoa _lib, NSString? path) { - final _ret = _lib._objc_msgSend_454(_lib._class_NSMutableArray1, - _lib._sel_arrayWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSPortCoder1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - static NSMutableArray arrayWithContentsOfURL_(SentryCocoa _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_455(_lib._class_NSMutableArray1, - _lib._sel_arrayWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSPortCoder1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - NSMutableArray initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_454( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSPortCoder1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSMutableArray initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_455( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSPortCoder1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - void applyDifference_(NSObject? difference) { - _lib._objc_msgSend_15( - _id, _lib._sel_applyDifference_1, difference?._id ?? ffi.nullptr); +class NSPort extends NSObject { + NSPort._(ffi.Pointer id, SentryCocoa 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); } - void sortUsingDescriptors_(NSArray? sortDescriptors) { - _lib._objc_msgSend_441(_id, _lib._sel_sortUsingDescriptors_1, - sortDescriptors?._id ?? ffi.nullptr); + /// Returns a [NSPort] that wraps the given raw object pointer. + static NSPort castFromPointer(SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSPort._(other, lib, retain: retain, release: release); } - void filterUsingPredicate_(NSPredicate? predicate) { - _lib._objc_msgSend_456( - _id, _lib._sel_filterUsingPredicate_1, predicate?._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); } - @override - NSMutableArray initWithObjects_count_( - ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61( - _id, _lib._sel_initWithObjects_count_1, objects, cnt); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + static NSPort port(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_520(_lib._class_NSPort1, _lib._sel_port1); + return NSPort._(_ret, _lib, retain: true, release: true); } - static NSMutableArray array(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_array1); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + void invalidate() { + _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); } - static NSMutableArray arrayWithObject_(SentryCocoa _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); + bool get valid { + return _lib._objc_msgSend_12(_id, _lib._sel_isValid1); } - static NSMutableArray arrayWithObjects_count_( - SentryCocoa _lib, ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61(_lib._class_NSMutableArray1, - _lib._sel_arrayWithObjects_count_1, objects, cnt); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + void setDelegate_(NSObject? anObject) { + _lib._objc_msgSend_15( + _id, _lib._sel_setDelegate_1, anObject?._id ?? ffi.nullptr); } - static NSMutableArray arrayWithObjects_(SentryCocoa _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); + NSObject delegate() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSMutableArray arrayWithArray_(SentryCocoa _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSMutableArray1, - _lib._sel_arrayWithArray_1, array?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + void scheduleInRunLoop_forMode_(NSRunLoop? runLoop, NSString mode) { + _lib._objc_msgSend_536(_id, _lib._sel_scheduleInRunLoop_forMode_1, + runLoop?._id ?? ffi.nullptr, mode._id); } - @override - NSMutableArray initWithObjects_(NSObject firstObj) { - final _ret = - _lib._objc_msgSend_16(_id, _lib._sel_initWithObjects_1, firstObj._id); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + void removeFromRunLoop_forMode_(NSRunLoop? runLoop, NSString mode) { + _lib._objc_msgSend_536(_id, _lib._sel_removeFromRunLoop_forMode_1, + runLoop?._id ?? ffi.nullptr, mode._id); } - @override - NSMutableArray initWithArray_(NSArray? array) { - final _ret = _lib._objc_msgSend_67( - _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + int get reservedSpaceLength { + return _lib._objc_msgSend_10(_id, _lib._sel_reservedSpaceLength1); } - @override - NSMutableArray initWithArray_copyItems_(NSArray? array, bool flag) { - final _ret = _lib._objc_msgSend_118(_id, - _lib._sel_initWithArray_copyItems_1, array?._id ?? ffi.nullptr, flag); - return NSMutableArray._(_ret, _lib, retain: false, release: true); + bool sendBeforeDate_components_from_reserved_( + NSDate? limitDate, + NSMutableArray? components, + NSPort? receivePort, + int headerSpaceReserved) { + return _lib._objc_msgSend_537( + _id, + _lib._sel_sendBeforeDate_components_from_reserved_1, + limitDate?._id ?? ffi.nullptr, + components?._id ?? ffi.nullptr, + receivePort?._id ?? ffi.nullptr, + headerSpaceReserved); } - static NSArray arrayWithContentsOfURL_error_(SentryCocoa _lib, NSURL? url, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_119( - _lib._class_NSMutableArray1, - _lib._sel_arrayWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSArray._(_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_538( + _id, + _lib._sel_sendBeforeDate_msgid_components_from_reserved_1, + limitDate?._id ?? ffi.nullptr, + msgID, + components?._id ?? ffi.nullptr, + receivePort?._id ?? ffi.nullptr, + headerSpaceReserved); } - static NSMutableArray new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_new1); - return NSMutableArray._(_ret, _lib, retain: false, release: true); + void addConnection_toRunLoop_forMode_( + NSConnection? conn, NSRunLoop? runLoop, NSString mode) { + _lib._objc_msgSend_554(_id, _lib._sel_addConnection_toRunLoop_forMode_1, + conn?._id ?? ffi.nullptr, runLoop?._id ?? ffi.nullptr, mode._id); } - static NSMutableArray allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + void removeConnection_fromRunLoop_forMode_( + NSConnection? conn, NSRunLoop? runLoop, NSString mode) { + _lib._objc_msgSend_554( + _id, + _lib._sel_removeConnection_fromRunLoop_forMode_1, + conn?._id ?? ffi.nullptr, + runLoop?._id ?? ffi.nullptr, + mode._id); + } + + @override + NSPort init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSPort._(_ret, _lib, retain: true, release: true); + } + + static NSPort new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSPort1, _lib._sel_new1); + return NSPort._(_ret, _lib, retain: false, release: true); + } + + static NSPort allocWithZone_(SentryCocoa _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); + _lib._class_NSPort1, _lib._sel_allocWithZone_1, zone); + return NSPort._(_ret, _lib, retain: false, release: true); } - static NSMutableArray alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_alloc1); - return NSMutableArray._(_ret, _lib, retain: false, release: true); + static NSPort alloc(SentryCocoa _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_( @@ -43605,7 +48986,7 @@ class NSMutableArray extends NSArray { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSMutableArray1, + _lib._class_NSPort1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -43614,24 +48995,24 @@ class NSMutableArray extends NSArray { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSMutableArray1, + _lib._objc_msgSend_15(_lib._class_NSPort1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSMutableArray1, - _lib._sel_accessInstanceVariablesDirectly1); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSPort1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSMutableArray1, _lib._sel_useStoredAccessor1); + _lib._class_NSPort1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableArray1, + _lib._class_NSPort1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -43640,7 +49021,7 @@ class NSMutableArray extends NSArray { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSMutableArray1, + _lib._class_NSPort1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -43648,7 +49029,7 @@ class NSMutableArray extends NSArray { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSMutableArray1, + _lib._class_NSPort1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -43656,404 +49037,436 @@ class NSMutableArray extends NSArray { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSMutableArray1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSPort1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableArray1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSPort1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSMutableOrderedSet extends NSOrderedSet { - NSMutableOrderedSet._(ffi.Pointer id, SentryCocoa lib, +class NSRunLoop extends NSObject { + NSRunLoop._(ffi.Pointer id, SentryCocoa 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 [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 [NSMutableOrderedSet] that wraps the given raw object pointer. - static NSMutableOrderedSet castFromPointer( + /// Returns a [NSRunLoop] that wraps the given raw object pointer. + static NSRunLoop castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSMutableOrderedSet._(other, lib, retain: retain, release: release); + return NSRunLoop._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSMutableOrderedSet]. + /// 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_NSMutableOrderedSet1); - } - - void insertObject_atIndex_(NSObject object, int idx) { - _lib._objc_msgSend_438( - _id, _lib._sel_insertObject_atIndex_1, object._id, idx); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSRunLoop1); } - void removeObjectAtIndex_(int idx) { - _lib._objc_msgSend_439(_id, _lib._sel_removeObjectAtIndex_1, idx); + static NSRunLoop? getCurrentRunLoop(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_521( + _lib._class_NSRunLoop1, _lib._sel_currentRunLoop1); + return _ret.address == 0 + ? null + : NSRunLoop._(_ret, _lib, retain: true, release: true); } - void replaceObjectAtIndex_withObject_(int idx, NSObject object) { - _lib._objc_msgSend_440( - _id, _lib._sel_replaceObjectAtIndex_withObject_1, idx, object._id); + static NSRunLoop? getMainRunLoop(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_521(_lib._class_NSRunLoop1, _lib._sel_mainRunLoop1); + return _ret.address == 0 + ? null + : NSRunLoop._(_ret, _lib, retain: true, release: true); } - @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); + NSString get currentMode { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currentMode1); + 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); + ffi.Pointer<__CFRunLoop> getCFRunLoop() { + return _lib._objc_msgSend_522(_id, _lib._sel_getCFRunLoop1); } - NSMutableOrderedSet initWithCapacity_(int numItems) { - final _ret = - _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, numItems); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + void addTimer_forMode_(NSTimer? timer, NSString mode) { + _lib._objc_msgSend_529( + _id, _lib._sel_addTimer_forMode_1, timer?._id ?? ffi.nullptr, mode._id); } - void addObject_(NSObject object) { - _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, object._id); + void addPort_forMode_(NSPort? aPort, NSString mode) { + _lib._objc_msgSend_530( + _id, _lib._sel_addPort_forMode_1, aPort?._id ?? ffi.nullptr, mode._id); } - void addObjects_count_( - ffi.Pointer> objects, int count) { - _lib._objc_msgSend_467(_id, _lib._sel_addObjects_count_1, objects, count); + void removePort_forMode_(NSPort? aPort, NSString mode) { + _lib._objc_msgSend_530(_id, _lib._sel_removePort_forMode_1, + aPort?._id ?? ffi.nullptr, mode._id); } - void addObjectsFromArray_(NSArray? array) { - _lib._objc_msgSend_441( - _id, _lib._sel_addObjectsFromArray_1, array?._id ?? ffi.nullptr); + NSDate limitDateForMode_(NSString mode) { + final _ret = + _lib._objc_msgSend_531(_id, _lib._sel_limitDateForMode_1, mode._id); + return NSDate._(_ret, _lib, retain: true, release: true); } - void exchangeObjectAtIndex_withObjectAtIndex_(int idx1, int idx2) { - _lib._objc_msgSend_442( - _id, _lib._sel_exchangeObjectAtIndex_withObjectAtIndex_1, idx1, idx2); + void acceptInputForMode_beforeDate_(NSString mode, NSDate? limitDate) { + _lib._objc_msgSend_532(_id, _lib._sel_acceptInputForMode_beforeDate_1, + mode._id, limitDate?._id ?? ffi.nullptr); } - void moveObjectsAtIndexes_toIndex_(NSIndexSet? indexes, int idx) { - _lib._objc_msgSend_468(_id, _lib._sel_moveObjectsAtIndexes_toIndex_1, - indexes?._id ?? ffi.nullptr, idx); + void run() { + _lib._objc_msgSend_1(_id, _lib._sel_run1); } - void insertObjects_atIndexes_(NSArray? objects, NSIndexSet? indexes) { - _lib._objc_msgSend_449(_id, _lib._sel_insertObjects_atIndexes_1, - objects?._id ?? ffi.nullptr, indexes?._id ?? ffi.nullptr); + void runUntilDate_(NSDate? limitDate) { + _lib._objc_msgSend_507( + _id, _lib._sel_runUntilDate_1, limitDate?._id ?? ffi.nullptr); } - void setObject_atIndex_(NSObject obj, int idx) { - _lib._objc_msgSend_438(_id, _lib._sel_setObject_atIndex_1, obj._id, idx); + bool runMode_beforeDate_(NSString mode, NSDate? limitDate) { + return _lib._objc_msgSend_533(_id, _lib._sel_runMode_beforeDate_1, mode._id, + limitDate?._id ?? ffi.nullptr); } - void setObject_atIndexedSubscript_(NSObject obj, int idx) { - _lib._objc_msgSend_438( - _id, _lib._sel_setObject_atIndexedSubscript_1, obj._id, idx); + void configureAsServer() { + _lib._objc_msgSend_1(_id, _lib._sel_configureAsServer1); } - void replaceObjectsInRange_withObjects_count_( - _NSRange range, ffi.Pointer> objects, int count) { - _lib._objc_msgSend_469( - _id, - _lib._sel_replaceObjectsInRange_withObjects_count_1, - range, - objects, - count); + void performInModes_block_(NSArray? modes, ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_534(_id, _lib._sel_performInModes_block_1, + modes?._id ?? ffi.nullptr, block._id); } - void replaceObjectsAtIndexes_withObjects_( - NSIndexSet? indexes, NSArray? objects) { - _lib._objc_msgSend_451(_id, _lib._sel_replaceObjectsAtIndexes_withObjects_1, - indexes?._id ?? ffi.nullptr, objects?._id ?? ffi.nullptr); + void performBlock_(ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_500(_id, _lib._sel_performBlock_1, block._id); } - void removeObjectsInRange_(_NSRange range) { - _lib._objc_msgSend_445(_id, _lib._sel_removeObjectsInRange_1, range); + void performSelector_target_argument_order_modes_( + ffi.Pointer aSelector, + NSObject target, + NSObject arg, + int order, + NSArray? modes) { + _lib._objc_msgSend_535( + _id, + _lib._sel_performSelector_target_argument_order_modes_1, + aSelector, + target._id, + arg._id, + order, + modes?._id ?? ffi.nullptr); } - void removeObjectsAtIndexes_(NSIndexSet? indexes) { - _lib._objc_msgSend_450( - _id, _lib._sel_removeObjectsAtIndexes_1, indexes?._id ?? ffi.nullptr); + void cancelPerformSelector_target_argument_( + ffi.Pointer aSelector, NSObject target, NSObject arg) { + _lib._objc_msgSend_501( + _id, + _lib._sel_cancelPerformSelector_target_argument_1, + aSelector, + target._id, + arg._id); } - void removeAllObjects() { - _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); + void cancelPerformSelectorsWithTarget_(NSObject target) { + _lib._objc_msgSend_15( + _id, _lib._sel_cancelPerformSelectorsWithTarget_1, target._id); } - void removeObject_(NSObject object) { - _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, object._id); + @override + NSRunLoop init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSRunLoop._(_ret, _lib, retain: true, release: true); } - void removeObjectsInArray_(NSArray? array) { - _lib._objc_msgSend_441( - _id, _lib._sel_removeObjectsInArray_1, array?._id ?? ffi.nullptr); + static NSRunLoop new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSRunLoop1, _lib._sel_new1); + return NSRunLoop._(_ret, _lib, retain: false, release: true); } - void intersectOrderedSet_(NSOrderedSet? other) { - _lib._objc_msgSend_470( - _id, _lib._sel_intersectOrderedSet_1, other?._id ?? ffi.nullptr); + static NSRunLoop allocWithZone_(SentryCocoa _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); } - void minusOrderedSet_(NSOrderedSet? other) { - _lib._objc_msgSend_470( - _id, _lib._sel_minusOrderedSet_1, other?._id ?? ffi.nullptr); + static NSRunLoop alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSRunLoop1, _lib._sel_alloc1); + return NSRunLoop._(_ret, _lib, retain: false, release: true); } - void unionOrderedSet_(NSOrderedSet? other) { - _lib._objc_msgSend_470( - _id, _lib._sel_unionOrderedSet_1, other?._id ?? ffi.nullptr); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSRunLoop1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - void intersectSet_(NSSet? other) { - _lib._objc_msgSend_471( - _id, _lib._sel_intersectSet_1, other?._id ?? ffi.nullptr); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSRunLoop1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - void minusSet_(NSSet? other) { - _lib._objc_msgSend_471( - _id, _lib._sel_minusSet_1, other?._id ?? ffi.nullptr); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSRunLoop1, _lib._sel_accessInstanceVariablesDirectly1); } - void unionSet_(NSSet? other) { - _lib._objc_msgSend_471( - _id, _lib._sel_unionSet_1, other?._id ?? ffi.nullptr); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSRunLoop1, _lib._sel_useStoredAccessor1); } - void sortUsingComparator_( - ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { - _lib._objc_msgSend_452(_id, _lib._sel_sortUsingComparator_1, cmptr._id); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSRunLoop1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - void sortWithOptions_usingComparator_( - int opts, ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { - _lib._objc_msgSend_453( - _id, _lib._sel_sortWithOptions_usingComparator_1, opts, cmptr._id); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSRunLoop1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - void sortRange_options_usingComparator_(_NSRange range, int opts, - ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { - _lib._objc_msgSend_472(_id, _lib._sel_sortRange_options_usingComparator_1, - range, opts, cmptr._id); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSRunLoop1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - static NSMutableOrderedSet orderedSetWithCapacity_( - SentryCocoa _lib, int numItems) { - final _ret = _lib._objc_msgSend_60(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithCapacity_1, numItems); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSRunLoop1, _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 ?? ffi.nullptr); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSRunLoop1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - void sortUsingDescriptors_(NSArray? sortDescriptors) { - _lib._objc_msgSend_441(_id, _lib._sel_sortUsingDescriptors_1, - sortDescriptors?._id ?? ffi.nullptr); - } +final class __CFRunLoop extends ffi.Opaque {} - void filterUsingPredicate_(NSPredicate? p) { - _lib._objc_msgSend_456( - _id, _lib._sel_filterUsingPredicate_1, p?._id ?? ffi.nullptr); - } +class NSTimer extends NSObject { + NSTimer._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - @override - NSMutableOrderedSet initWithObjects_count_( - ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61( - _id, _lib._sel_initWithObjects_count_1, objects, cnt); - return NSMutableOrderedSet._(_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); } - static NSMutableOrderedSet orderedSet(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableOrderedSet1, _lib._sel_orderedSet1); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + /// Returns a [NSTimer] that wraps the given raw object pointer. + static NSTimer castFromPointer(SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSTimer._(other, lib, retain: retain, release: release); } - static NSMutableOrderedSet orderedSetWithObject_( - SentryCocoa _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); + /// 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); } - static NSMutableOrderedSet orderedSetWithObjects_count_( - SentryCocoa _lib, ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithObjects_count_1, objects, cnt); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + static NSTimer timerWithTimeInterval_invocation_repeats_( + SentryCocoa _lib, double ti, NSInvocation? invocation, bool yesOrNo) { + final _ret = _lib._objc_msgSend_523( + _lib._class_NSTimer1, + _lib._sel_timerWithTimeInterval_invocation_repeats_1, + ti, + invocation?._id ?? ffi.nullptr, + yesOrNo); + return NSTimer._(_ret, _lib, retain: true, release: true); } - static NSMutableOrderedSet orderedSetWithObjects_( - SentryCocoa _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); + static NSTimer scheduledTimerWithTimeInterval_invocation_repeats_( + SentryCocoa _lib, double ti, NSInvocation? invocation, bool yesOrNo) { + final _ret = _lib._objc_msgSend_523( + _lib._class_NSTimer1, + _lib._sel_scheduledTimerWithTimeInterval_invocation_repeats_1, + ti, + invocation?._id ?? ffi.nullptr, + yesOrNo); + return NSTimer._(_ret, _lib, retain: true, release: true); } - static NSMutableOrderedSet orderedSetWithOrderedSet_( - SentryCocoa _lib, NSOrderedSet? set) { - final _ret = _lib._objc_msgSend_459(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithOrderedSet_1, set?._id ?? ffi.nullptr); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + static NSTimer timerWithTimeInterval_target_selector_userInfo_repeats_( + SentryCocoa _lib, + double ti, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject userInfo, + bool yesOrNo) { + final _ret = _lib._objc_msgSend_524( + _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 NSMutableOrderedSet orderedSetWithOrderedSet_range_copyItems_( - SentryCocoa _lib, NSOrderedSet? set, _NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_460( - _lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithOrderedSet_range_copyItems_1, - set?._id ?? ffi.nullptr, - range, - flag); - return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + static NSTimer + scheduledTimerWithTimeInterval_target_selector_userInfo_repeats_( + SentryCocoa _lib, + double ti, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject userInfo, + bool yesOrNo) { + final _ret = _lib._objc_msgSend_524( + _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); } - static NSMutableOrderedSet orderedSetWithArray_( - SentryCocoa _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithArray_1, array?._id ?? ffi.nullptr); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + static NSTimer timerWithTimeInterval_repeats_block_(SentryCocoa _lib, + double interval, bool repeats, ObjCBlock_ffiVoid_NSTimer block) { + final _ret = _lib._objc_msgSend_525( + _lib._class_NSTimer1, + _lib._sel_timerWithTimeInterval_repeats_block_1, + interval, + repeats, + block._id); + return NSTimer._(_ret, _lib, retain: true, release: true); } - static NSMutableOrderedSet orderedSetWithArray_range_copyItems_( - SentryCocoa _lib, NSArray? array, _NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_461( - _lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithArray_range_copyItems_1, - array?._id ?? ffi.nullptr, - range, - flag); - return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + static NSTimer scheduledTimerWithTimeInterval_repeats_block_(SentryCocoa _lib, + double interval, bool repeats, ObjCBlock_ffiVoid_NSTimer block) { + final _ret = _lib._objc_msgSend_525( + _lib._class_NSTimer1, + _lib._sel_scheduledTimerWithTimeInterval_repeats_block_1, + interval, + repeats, + block._id); + return NSTimer._(_ret, _lib, retain: true, release: true); } - static NSMutableOrderedSet orderedSetWithSet_(SentryCocoa _lib, NSSet? set) { - final _ret = _lib._objc_msgSend_382(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithSet_1, set?._id ?? ffi.nullptr); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + NSTimer initWithFireDate_interval_repeats_block_(NSDate? date, + double interval, bool repeats, ObjCBlock_ffiVoid_NSTimer block) { + final _ret = _lib._objc_msgSend_526( + _id, + _lib._sel_initWithFireDate_interval_repeats_block_1, + date?._id ?? ffi.nullptr, + interval, + repeats, + block._id); + return NSTimer._(_ret, _lib, retain: true, release: true); } - static NSMutableOrderedSet orderedSetWithSet_copyItems_( - SentryCocoa _lib, NSSet? set, bool flag) { - final _ret = _lib._objc_msgSend_383(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); - return NSMutableOrderedSet._(_ret, _lib, retain: false, 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_527( + _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); } - @override - NSMutableOrderedSet initWithObject_(NSObject object) { - final _ret = - _lib._objc_msgSend_16(_id, _lib._sel_initWithObject_1, object._id); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + void fire() { + _lib._objc_msgSend_1(_id, _lib._sel_fire1); } - @override - NSMutableOrderedSet initWithObjects_(NSObject firstObj) { - final _ret = - _lib._objc_msgSend_16(_id, _lib._sel_initWithObjects_1, firstObj._id); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + NSDate? get fireDate { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_fireDate1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - @override - NSMutableOrderedSet initWithOrderedSet_(NSOrderedSet? set) { - final _ret = _lib._objc_msgSend_459( - _id, _lib._sel_initWithOrderedSet_1, set?._id ?? ffi.nullptr); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + set fireDate(NSDate? value) { + return _lib._objc_msgSend_528( + _id, _lib._sel_setFireDate_1, value?._id ?? ffi.nullptr); } - @override - NSMutableOrderedSet initWithOrderedSet_copyItems_( - NSOrderedSet? set, bool flag) { - final _ret = _lib._objc_msgSend_462( - _id, - _lib._sel_initWithOrderedSet_copyItems_1, - set?._id ?? ffi.nullptr, - flag); - return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + double get timeInterval { + return _lib._objc_msgSend_155(_id, _lib._sel_timeInterval1); } - @override - NSMutableOrderedSet initWithOrderedSet_range_copyItems_( - NSOrderedSet? set, _NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_460( - _id, - _lib._sel_initWithOrderedSet_range_copyItems_1, - set?._id ?? ffi.nullptr, - range, - flag); - return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + double get tolerance { + return _lib._objc_msgSend_155(_id, _lib._sel_tolerance1); } - @override - NSMutableOrderedSet initWithArray_(NSArray? array) { - final _ret = _lib._objc_msgSend_67( - _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + set tolerance(double value) { + return _lib._objc_msgSend_509(_id, _lib._sel_setTolerance_1, value); } - @override - NSMutableOrderedSet initWithArray_copyItems_(NSArray? set, bool flag) { - final _ret = _lib._objc_msgSend_118(_id, - _lib._sel_initWithArray_copyItems_1, set?._id ?? ffi.nullptr, flag); - return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + void invalidate() { + _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); } - @override - NSMutableOrderedSet initWithArray_range_copyItems_( - NSArray? set, _NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_461( - _id, - _lib._sel_initWithArray_range_copyItems_1, - set?._id ?? ffi.nullptr, - range, - flag); - return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + bool get valid { + return _lib._objc_msgSend_12(_id, _lib._sel_isValid1); } - @override - NSMutableOrderedSet initWithSet_(NSSet? set) { - final _ret = _lib._objc_msgSend_382( - _id, _lib._sel_initWithSet_1, set?._id ?? ffi.nullptr); - return NSMutableOrderedSet._(_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); } @override - NSMutableOrderedSet initWithSet_copyItems_(NSSet? set, bool flag) { - final _ret = _lib._objc_msgSend_383( - _id, _lib._sel_initWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); - return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + NSTimer init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSTimer._(_ret, _lib, retain: true, release: true); } - - static NSMutableOrderedSet new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableOrderedSet1, _lib._sel_new1); - return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + + static NSTimer new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSTimer1, _lib._sel_new1); + return NSTimer._(_ret, _lib, retain: false, release: true); } - static NSMutableOrderedSet allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static NSTimer allocWithZone_(SentryCocoa _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); + _lib._class_NSTimer1, _lib._sel_allocWithZone_1, zone); + return NSTimer._(_ret, _lib, retain: false, release: true); } - static NSMutableOrderedSet alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableOrderedSet1, _lib._sel_alloc1); - return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + static NSTimer alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSTimer1, _lib._sel_alloc1); + return NSTimer._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -44062,7 +49475,7 @@ class NSMutableOrderedSet extends NSOrderedSet { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSMutableOrderedSet1, + _lib._class_NSTimer1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -44071,24 +49484,24 @@ class NSMutableOrderedSet extends NSOrderedSet { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSMutableOrderedSet1, + _lib._objc_msgSend_15(_lib._class_NSTimer1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSMutableOrderedSet1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSTimer1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSMutableOrderedSet1, _lib._sel_useStoredAccessor1); + _lib._class_NSTimer1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableOrderedSet1, + _lib._class_NSTimer1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -44097,7 +49510,7 @@ class NSMutableOrderedSet extends NSOrderedSet { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSMutableOrderedSet1, + _lib._class_NSTimer1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -44105,539 +49518,402 @@ class NSMutableOrderedSet extends NSOrderedSet { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSMutableOrderedSet1, + _lib._class_NSTimer1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSMutableOrderedSet1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79( + _lib._class_NSTimer1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableOrderedSet1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSTimer1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSOrderedSet extends NSObject { - NSOrderedSet._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +void _ObjCBlock_ffiVoid_NSTimer_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return block.ref.target + .cast< + ffi.NativeFunction arg0)>>() + .asFunction arg0)>()(arg0); +} - /// 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); - } +final _ObjCBlock_ffiVoid_NSTimer_closureRegistry = {}; +int _ObjCBlock_ffiVoid_NSTimer_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSTimer_registerClosure(Function fn) { + final id = ++_ObjCBlock_ffiVoid_NSTimer_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSTimer_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - /// Returns a [NSOrderedSet] that wraps the given raw object pointer. - static NSOrderedSet castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSOrderedSet._(other, lib, retain: retain, release: release); - } +void _ObjCBlock_ffiVoid_NSTimer_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return (_ObjCBlock_ffiVoid_NSTimer_closureRegistry[block.ref.target.address] + as void Function(ffi.Pointer))(arg0); +} - /// 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_NSOrderedSet1); - } +class ObjCBlock_ffiVoid_NSTimer extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSTimer._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); - int get count { - return _lib._objc_msgSend_10(_id, _lib._sel_count1); - } + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_NSTimer.fromFunctionPointer( + SentryCocoa lib, + ffi.Pointer< + ffi + .NativeFunction arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSTimer_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - NSObject objectAtIndex_(int idx) { - final _ret = _lib._objc_msgSend_60(_id, _lib._sel_objectAtIndex_1, idx); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_NSTimer.fromFunction( + SentryCocoa lib, void Function(ffi.Pointer arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSTimer_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSTimer_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); } +} - int indexOfObject_(NSObject object) { - return _lib._objc_msgSend_69(_id, _lib._sel_indexOfObject_1, object._id); - } +class NSConnection extends NSObject { + NSConnection._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - @override - NSOrderedSet init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + /// 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); } - NSOrderedSet initWithObjects_count_( - ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61( - _id, _lib._sel_initWithObjects_count_1, objects, cnt); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + /// Returns a [NSConnection] that wraps the given raw object pointer. + static NSConnection castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSConnection._(other, lib, retain: retain, release: release); } - 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); + /// Returns whether [obj] is an instance of [NSConnection]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSConnection1); } - void getObjects_range_( - ffi.Pointer> objects, _NSRange range) { - _lib._objc_msgSend_68(_id, _lib._sel_getObjects_range_1, objects, range); + NSDictionary? get statistics { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_statistics1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSArray objectsAtIndexes_(NSIndexSet? indexes) { - final _ret = _lib._objc_msgSend_105( - _id, _lib._sel_objectsAtIndexes_1, indexes?._id ?? ffi.nullptr); + static NSArray allConnections(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSConnection1, _lib._sel_allConnections1); return NSArray._(_ret, _lib, retain: true, release: true); } - NSObject get firstObject { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_firstObject1); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSConnection defaultConnection(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_539( + _lib._class_NSConnection1, _lib._sel_defaultConnection1); + return NSConnection._(_ret, _lib, retain: true, release: true); } - NSObject get lastObject { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_lastObject1); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSConnection connectionWithRegisteredName_host_( + SentryCocoa _lib, NSString? name, NSString? hostName) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSConnection1, + _lib._sel_connectionWithRegisteredName_host_1, + name?._id ?? ffi.nullptr, + hostName?._id ?? ffi.nullptr); + return NSConnection._(_ret, _lib, retain: true, release: true); } - bool isEqualToOrderedSet_(NSOrderedSet? other) { - return _lib._objc_msgSend_457( - _id, _lib._sel_isEqualToOrderedSet_1, other?._id ?? ffi.nullptr); + static NSConnection connectionWithRegisteredName_host_usingNameServer_( + SentryCocoa _lib, + NSString? name, + NSString? hostName, + NSPortNameServer? server) { + final _ret = _lib._objc_msgSend_544( + _lib._class_NSConnection1, + _lib._sel_connectionWithRegisteredName_host_usingNameServer_1, + name?._id ?? ffi.nullptr, + hostName?._id ?? ffi.nullptr, + server?._id ?? ffi.nullptr); + return NSConnection._(_ret, _lib, retain: true, release: true); } - bool containsObject_(NSObject object) { - return _lib._objc_msgSend_0(_id, _lib._sel_containsObject_1, object._id); + static NSDistantObject rootProxyForConnectionWithRegisteredName_host_( + SentryCocoa _lib, NSString? name, NSString? hostName) { + final _ret = _lib._objc_msgSend_547( + _lib._class_NSConnection1, + _lib._sel_rootProxyForConnectionWithRegisteredName_host_1, + name?._id ?? ffi.nullptr, + hostName?._id ?? ffi.nullptr); + return NSDistantObject._(_ret, _lib, retain: true, release: true); } - bool intersectsOrderedSet_(NSOrderedSet? other) { - return _lib._objc_msgSend_457( - _id, _lib._sel_intersectsOrderedSet_1, other?._id ?? ffi.nullptr); + static NSDistantObject + rootProxyForConnectionWithRegisteredName_host_usingNameServer_( + SentryCocoa _lib, + NSString? name, + NSString? hostName, + NSPortNameServer? server) { + final _ret = _lib._objc_msgSend_548( + _lib._class_NSConnection1, + _lib._sel_rootProxyForConnectionWithRegisteredName_host_usingNameServer_1, + name?._id ?? ffi.nullptr, + hostName?._id ?? ffi.nullptr, + server?._id ?? ffi.nullptr); + return NSDistantObject._(_ret, _lib, retain: true, release: true); } - bool intersectsSet_(NSSet? set) { - return _lib._objc_msgSend_374( - _id, _lib._sel_intersectsSet_1, set?._id ?? ffi.nullptr); + static NSConnection serviceConnectionWithName_rootObject_usingNameServer_( + SentryCocoa _lib, + NSString? name, + NSObject root, + NSPortNameServer? server) { + final _ret = _lib._objc_msgSend_549( + _lib._class_NSConnection1, + _lib._sel_serviceConnectionWithName_rootObject_usingNameServer_1, + name?._id ?? ffi.nullptr, + root._id, + server?._id ?? ffi.nullptr); + return NSConnection._(_ret, _lib, retain: true, release: true); } - bool isSubsetOfOrderedSet_(NSOrderedSet? other) { - return _lib._objc_msgSend_457( - _id, _lib._sel_isSubsetOfOrderedSet_1, other?._id ?? ffi.nullptr); + static NSConnection serviceConnectionWithName_rootObject_( + SentryCocoa _lib, NSString? name, NSObject root) { + final _ret = _lib._objc_msgSend_163( + _lib._class_NSConnection1, + _lib._sel_serviceConnectionWithName_rootObject_1, + name?._id ?? ffi.nullptr, + root._id); + return NSConnection._(_ret, _lib, retain: true, release: true); } - bool isSubsetOfSet_(NSSet? set) { - return _lib._objc_msgSend_374( - _id, _lib._sel_isSubsetOfSet_1, set?._id ?? ffi.nullptr); + double get requestTimeout { + return _lib._objc_msgSend_155(_id, _lib._sel_requestTimeout1); } - NSObject objectAtIndexedSubscript_(int idx) { - final _ret = - _lib._objc_msgSend_60(_id, _lib._sel_objectAtIndexedSubscript_1, idx); - return NSObject._(_ret, _lib, retain: true, release: true); + set requestTimeout(double value) { + return _lib._objc_msgSend_509(_id, _lib._sel_setRequestTimeout_1, value); } - NSEnumerator objectEnumerator() { - final _ret = _lib._objc_msgSend_72(_id, _lib._sel_objectEnumerator1); - return NSEnumerator._(_ret, _lib, retain: true, release: true); + double get replyTimeout { + return _lib._objc_msgSend_155(_id, _lib._sel_replyTimeout1); } - NSEnumerator reverseObjectEnumerator() { - final _ret = _lib._objc_msgSend_72(_id, _lib._sel_reverseObjectEnumerator1); - return NSEnumerator._(_ret, _lib, retain: true, release: true); + set replyTimeout(double value) { + return _lib._objc_msgSend_509(_id, _lib._sel_setReplyTimeout_1, value); } - NSOrderedSet? get reversedOrderedSet { - final _ret = _lib._objc_msgSend_458(_id, _lib._sel_reversedOrderedSet1); - return _ret.address == 0 - ? null - : NSOrderedSet._(_ret, _lib, retain: true, release: true); + NSObject get rootObject { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_rootObject1); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSArray? get array { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_array1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + set rootObject(NSObject value) { + return _lib._objc_msgSend_389(_id, _lib._sel_setRootObject_1, value._id); } - NSSet? get set1 { - final _ret = _lib._objc_msgSend_295(_id, _lib._sel_set1); + NSObject? get delegate { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); return _ret.address == 0 ? null - : NSSet._(_ret, _lib, retain: true, release: true); - } - - void enumerateObjectsUsingBlock_( - ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool block) { - _lib._objc_msgSend_106( - _id, _lib._sel_enumerateObjectsUsingBlock_1, block._id); - } - - void enumerateObjectsWithOptions_usingBlock_( - int opts, ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool block) { - _lib._objc_msgSend_107(_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_108( - _id, - _lib._sel_enumerateObjectsAtIndexes_options_usingBlock_1, - s?._id ?? ffi.nullptr, - opts, - block._id); - } - - int indexOfObjectPassingTest_( - ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { - return _lib._objc_msgSend_109( - _id, _lib._sel_indexOfObjectPassingTest_1, predicate._id); - } - - int indexOfObjectWithOptions_passingTest_( - int opts, ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { - return _lib._objc_msgSend_110(_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_111( - _id, - _lib._sel_indexOfObjectAtIndexes_options_passingTest_1, - s?._id ?? ffi.nullptr, - opts, - predicate._id); - } - - NSIndexSet indexesOfObjectsPassingTest_( - ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { - final _ret = _lib._objc_msgSend_112( - _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_113( - _id, - _lib._sel_indexesOfObjectsWithOptions_passingTest_1, - opts, - predicate._id); - return NSIndexSet._(_ret, _lib, retain: true, release: true); + : NSObject._(_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_114( - _id, - _lib._sel_indexesOfObjectsAtIndexes_options_passingTest_1, - s?._id ?? ffi.nullptr, - opts, - predicate._id); - return NSIndexSet._(_ret, _lib, retain: true, release: true); + set delegate(NSObject? value) { + return _lib._objc_msgSend_389( + _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } - int indexOfObject_inSortedRange_options_usingComparator_( - NSObject object, - _NSRange range, - int opts, - ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmp) { - return _lib._objc_msgSend_117( - _id, - _lib._sel_indexOfObject_inSortedRange_options_usingComparator_1, - object._id, - range, - opts, - cmp._id); + bool get independentConversationQueueing { + return _lib._objc_msgSend_12( + _id, _lib._sel_independentConversationQueueing1); } - NSArray sortedArrayUsingComparator_( - ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { - final _ret = _lib._objc_msgSend_115( - _id, _lib._sel_sortedArrayUsingComparator_1, cmptr._id); - return NSArray._(_ret, _lib, retain: true, release: true); + set independentConversationQueueing(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setIndependentConversationQueueing_1, value); } - NSArray sortedArrayWithOptions_usingComparator_( - int opts, ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { - final _ret = _lib._objc_msgSend_116(_id, - _lib._sel_sortedArrayWithOptions_usingComparator_1, opts, cmptr._id); - return NSArray._(_ret, _lib, retain: true, release: true); + bool get valid { + return _lib._objc_msgSend_12(_id, _lib._sel_isValid1); } - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); + NSDistantObject? get rootProxy { + final _ret = _lib._objc_msgSend_550(_id, _lib._sel_rootProxy1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_65( - _id, _lib._sel_descriptionWithLocale_1, locale._id); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString descriptionWithLocale_indent_(NSObject locale, int level) { - final _ret = _lib._objc_msgSend_66( - _id, _lib._sel_descriptionWithLocale_indent_1, locale._id, level); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSOrderedSet orderedSet(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSOrderedSet1, _lib._sel_orderedSet1); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); - } - - static NSOrderedSet orderedSetWithObject_(SentryCocoa _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 NSOrderedSet orderedSetWithObjects_count_( - SentryCocoa _lib, ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61(_lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithObjects_count_1, objects, cnt); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); - } - - static NSOrderedSet orderedSetWithObjects_( - SentryCocoa _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 NSOrderedSet orderedSetWithOrderedSet_( - SentryCocoa _lib, NSOrderedSet? set) { - final _ret = _lib._objc_msgSend_459(_lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithOrderedSet_1, set?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); - } - - static NSOrderedSet orderedSetWithOrderedSet_range_copyItems_( - SentryCocoa _lib, NSOrderedSet? set, _NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_460( - _lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithOrderedSet_range_copyItems_1, - set?._id ?? ffi.nullptr, - range, - flag); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); - } - - static NSOrderedSet orderedSetWithArray_(SentryCocoa _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithArray_1, array?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); - } - - static NSOrderedSet orderedSetWithArray_range_copyItems_( - SentryCocoa _lib, NSArray? array, _NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_461( - _lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithArray_range_copyItems_1, - array?._id ?? ffi.nullptr, - range, - flag); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); - } - - static NSOrderedSet orderedSetWithSet_(SentryCocoa _lib, NSSet? set) { - final _ret = _lib._objc_msgSend_382(_lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithSet_1, set?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); - } - - static NSOrderedSet orderedSetWithSet_copyItems_( - SentryCocoa _lib, NSSet? set, bool flag) { - final _ret = _lib._objc_msgSend_383(_lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); - } - - NSOrderedSet initWithObject_(NSObject object) { - final _ret = - _lib._objc_msgSend_16(_id, _lib._sel_initWithObject_1, object._id); - return NSOrderedSet._(_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); + : NSDistantObject._(_ret, _lib, retain: true, release: true); } - NSOrderedSet initWithOrderedSet_(NSOrderedSet? set) { - final _ret = _lib._objc_msgSend_459( - _id, _lib._sel_initWithOrderedSet_1, set?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + void invalidate() { + _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); } - NSOrderedSet initWithOrderedSet_copyItems_(NSOrderedSet? set, bool flag) { - final _ret = _lib._objc_msgSend_462( - _id, - _lib._sel_initWithOrderedSet_copyItems_1, - set?._id ?? ffi.nullptr, - flag); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); + void addRequestMode_(NSString? rmode) { + _lib._objc_msgSend_192( + _id, _lib._sel_addRequestMode_1, rmode?._id ?? ffi.nullptr); } - NSOrderedSet initWithOrderedSet_range_copyItems_( - NSOrderedSet? set, _NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_460( - _id, - _lib._sel_initWithOrderedSet_range_copyItems_1, - set?._id ?? ffi.nullptr, - range, - flag); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); + void removeRequestMode_(NSString? rmode) { + _lib._objc_msgSend_192( + _id, _lib._sel_removeRequestMode_1, rmode?._id ?? ffi.nullptr); } - NSOrderedSet initWithArray_(NSArray? array) { - final _ret = _lib._objc_msgSend_67( - _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + NSArray? get requestModes { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_requestModes1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSOrderedSet initWithArray_copyItems_(NSArray? set, bool flag) { - final _ret = _lib._objc_msgSend_118(_id, - _lib._sel_initWithArray_copyItems_1, set?._id ?? ffi.nullptr, flag); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); + bool registerName_(NSString? name) { + return _lib._objc_msgSend_59( + _id, _lib._sel_registerName_1, name?._id ?? ffi.nullptr); } - NSOrderedSet initWithArray_range_copyItems_( - NSArray? set, _NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_461( - _id, - _lib._sel_initWithArray_range_copyItems_1, - set?._id ?? ffi.nullptr, - range, - flag); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); + bool registerName_withNameServer_(NSString? name, NSPortNameServer? server) { + return _lib._objc_msgSend_551(_id, _lib._sel_registerName_withNameServer_1, + name?._id ?? ffi.nullptr, server?._id ?? ffi.nullptr); } - NSOrderedSet initWithSet_(NSSet? set) { - final _ret = _lib._objc_msgSend_382( - _id, _lib._sel_initWithSet_1, set?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + static NSConnection connectionWithReceivePort_sendPort_( + SentryCocoa _lib, NSPort? receivePort, NSPort? sendPort) { + final _ret = _lib._objc_msgSend_552( + _lib._class_NSConnection1, + _lib._sel_connectionWithReceivePort_sendPort_1, + receivePort?._id ?? ffi.nullptr, + sendPort?._id ?? ffi.nullptr); + return NSConnection._(_ret, _lib, retain: true, release: true); } - NSOrderedSet initWithSet_copyItems_(NSSet? set, bool flag) { - final _ret = _lib._objc_msgSend_383( - _id, _lib._sel_initWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); + static NSObject currentConversation(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSConnection1, _lib._sel_currentConversation1); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSObject differenceFromOrderedSet_withOptions_usingEquivalenceTest_( - NSOrderedSet? other, - int options, - ObjCBlock_bool_ObjCObject_ObjCObject block) { - final _ret = _lib._objc_msgSend_463( + NSConnection initWithReceivePort_sendPort_( + NSPort? receivePort, NSPort? sendPort) { + final _ret = _lib._objc_msgSend_552( _id, - _lib._sel_differenceFromOrderedSet_withOptions_usingEquivalenceTest_1, - other?._id ?? ffi.nullptr, - options, - block._id); - return NSObject._(_ret, _lib, retain: true, release: true); + _lib._sel_initWithReceivePort_sendPort_1, + receivePort?._id ?? ffi.nullptr, + sendPort?._id ?? ffi.nullptr); + return NSConnection._(_ret, _lib, retain: true, release: true); } - NSObject differenceFromOrderedSet_withOptions_( - NSOrderedSet? other, int options) { - final _ret = _lib._objc_msgSend_464( - _id, - _lib._sel_differenceFromOrderedSet_withOptions_1, - other?._id ?? ffi.nullptr, - options); - return NSObject._(_ret, _lib, retain: true, release: true); + NSPort? get sendPort { + final _ret = _lib._objc_msgSend_520(_id, _lib._sel_sendPort1); + return _ret.address == 0 + ? null + : NSPort._(_ret, _lib, retain: true, release: true); } - NSObject differenceFromOrderedSet_(NSOrderedSet? other) { - final _ret = _lib._objc_msgSend_459( - _id, _lib._sel_differenceFromOrderedSet_1, other?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSPort? get receivePort { + final _ret = _lib._objc_msgSend_520(_id, _lib._sel_receivePort1); + return _ret.address == 0 + ? null + : NSPort._(_ret, _lib, retain: true, release: true); } - NSOrderedSet orderedSetByApplyingDifference_(NSObject? difference) { - final _ret = _lib._objc_msgSend_465( - _id, - _lib._sel_orderedSetByApplyingDifference_1, - difference?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + void enableMultipleThreads() { + _lib._objc_msgSend_1(_id, _lib._sel_enableMultipleThreads1); } - @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); + bool get multipleThreadsEnabled { + return _lib._objc_msgSend_12(_id, _lib._sel_multipleThreadsEnabled1); } - @override - void setValue_forKey_(NSObject value, NSString? key) { - _lib._objc_msgSend_126( - _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); + void addRunLoop_(NSRunLoop? runloop) { + _lib._objc_msgSend_553( + _id, _lib._sel_addRunLoop_1, runloop?._id ?? ffi.nullptr); } - @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 ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, - options, - context); + void removeRunLoop_(NSRunLoop? runloop) { + _lib._objc_msgSend_553( + _id, _lib._sel_removeRunLoop_1, runloop?._id ?? ffi.nullptr); } - @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 ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr, context); + void runInNewThread() { + _lib._objc_msgSend_1(_id, _lib._sel_runInNewThread1); } - @override - void removeObserver_forKeyPath_(NSObject? observer, NSString? keyPath) { - _lib._objc_msgSend_132(_id, _lib._sel_removeObserver_forKeyPath_1, - observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); + NSArray? get remoteObjects { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_remoteObjects1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSArray sortedArrayUsingDescriptors_(NSArray? sortDescriptors) { - final _ret = _lib._objc_msgSend_63( - _id, - _lib._sel_sortedArrayUsingDescriptors_1, - sortDescriptors?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSArray? get localObjects { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_localObjects1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSOrderedSet filteredOrderedSetUsingPredicate_(NSPredicate? p) { - final _ret = _lib._objc_msgSend_466(_id, - _lib._sel_filteredOrderedSetUsingPredicate_1, p?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + void dispatchWithComponents_(NSArray? components) { + _lib._objc_msgSend_443(_id, _lib._sel_dispatchWithComponents_1, + components?._id ?? ffi.nullptr); } - static NSOrderedSet new1(SentryCocoa _lib) { + @override + NSConnection init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSConnection._(_ret, _lib, retain: true, release: true); + } + + static NSConnection new1(SentryCocoa _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_NSConnection1, _lib._sel_new1); + return NSConnection._(_ret, _lib, retain: false, release: true); } - static NSOrderedSet allocWithZone_( + static NSConnection allocWithZone_( SentryCocoa _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); + _lib._class_NSConnection1, _lib._sel_allocWithZone_1, zone); + return NSConnection._(_ret, _lib, retain: false, release: true); } - static NSOrderedSet alloc(SentryCocoa _lib) { + static NSConnection alloc(SentryCocoa _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_NSConnection1, _lib._sel_alloc1); + return NSConnection._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -44646,7 +49922,7 @@ class NSOrderedSet extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSOrderedSet1, + _lib._class_NSConnection1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -44655,24 +49931,24 @@ class NSOrderedSet extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSOrderedSet1, + _lib._objc_msgSend_15(_lib._class_NSConnection1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSOrderedSet1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSConnection1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSOrderedSet1, _lib._sel_useStoredAccessor1); + _lib._class_NSConnection1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSOrderedSet1, + _lib._class_NSConnection1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -44681,7 +49957,7 @@ class NSOrderedSet extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSOrderedSet1, + _lib._class_NSConnection1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -44689,7 +49965,7 @@ class NSOrderedSet extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSOrderedSet1, + _lib._class_NSConnection1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -44697,197 +49973,92 @@ class NSOrderedSet extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSOrderedSet1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSConnection1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSOrderedSet1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSConnection1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSMutableSet extends NSSet { - NSMutableSet._(ffi.Pointer id, SentryCocoa lib, +class NSPortNameServer extends NSObject { + NSPortNameServer._(ffi.Pointer id, SentryCocoa 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 [NSPortNameServer] that points to the same underlying object as [other]. + static NSPortNameServer castFrom(T other) { + return NSPortNameServer._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSMutableSet] that wraps the given raw object pointer. - static NSMutableSet castFromPointer( + /// Returns a [NSPortNameServer] that wraps the given raw object pointer. + static NSPortNameServer castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSMutableSet._(other, lib, retain: retain, release: release); + return NSPortNameServer._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSMutableSet]. + /// Returns whether [obj] is an instance of [NSPortNameServer]. 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) { - _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_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_60(_id, _lib._sel_initWithCapacity_1, numItems); - return NSMutableSet._(_ret, _lib, retain: true, release: true); - } - - void addObjectsFromArray_(NSArray? array) { - _lib._objc_msgSend_441( - _id, _lib._sel_addObjectsFromArray_1, array?._id ?? ffi.nullptr); - } - - void intersectSet_(NSSet? otherSet) { - _lib._objc_msgSend_471( - _id, _lib._sel_intersectSet_1, otherSet?._id ?? ffi.nullptr); - } - - void minusSet_(NSSet? otherSet) { - _lib._objc_msgSend_471( - _id, _lib._sel_minusSet_1, otherSet?._id ?? ffi.nullptr); - } - - void removeAllObjects() { - _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); - } - - void unionSet_(NSSet? otherSet) { - _lib._objc_msgSend_471( - _id, _lib._sel_unionSet_1, otherSet?._id ?? ffi.nullptr); - } - - void setSet_(NSSet? otherSet) { - _lib._objc_msgSend_471( - _id, _lib._sel_setSet_1, otherSet?._id ?? ffi.nullptr); - } - - static NSMutableSet setWithCapacity_(SentryCocoa _lib, int numItems) { - final _ret = _lib._objc_msgSend_60( - _lib._class_NSMutableSet1, _lib._sel_setWithCapacity_1, numItems); - return NSMutableSet._(_ret, _lib, retain: true, release: true); - } - - void filterUsingPredicate_(NSPredicate? predicate) { - _lib._objc_msgSend_456( - _id, _lib._sel_filterUsingPredicate_1, predicate?._id ?? ffi.nullptr); - } - - @override - NSMutableSet initWithObjects_count_( - ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61( - _id, _lib._sel_initWithObjects_count_1, objects, cnt); - return NSMutableSet._(_ret, _lib, retain: true, release: true); - } - - static NSMutableSet set1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableSet1, _lib._sel_set1); - return NSMutableSet._(_ret, _lib, retain: true, release: true); - } - - static NSMutableSet setWithObject_(SentryCocoa _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); - } - - static NSMutableSet setWithObjects_count_( - SentryCocoa _lib, ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61(_lib._class_NSMutableSet1, - _lib._sel_setWithObjects_count_1, objects, cnt); - return NSMutableSet._(_ret, _lib, retain: true, release: true); - } - - static NSMutableSet setWithObjects_(SentryCocoa _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); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSPortNameServer1); } - static NSMutableSet setWithSet_(SentryCocoa _lib, NSSet? set) { - final _ret = _lib._objc_msgSend_382(_lib._class_NSMutableSet1, - _lib._sel_setWithSet_1, set?._id ?? ffi.nullptr); - return NSMutableSet._(_ret, _lib, retain: true, release: true); + static NSPortNameServer systemDefaultPortNameServer(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_540( + _lib._class_NSPortNameServer1, _lib._sel_systemDefaultPortNameServer1); + return NSPortNameServer._(_ret, _lib, retain: true, release: true); } - static NSMutableSet setWithArray_(SentryCocoa _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSMutableSet1, - _lib._sel_setWithArray_1, array?._id ?? ffi.nullptr); - return NSMutableSet._(_ret, _lib, retain: true, release: true); + NSPort portForName_(NSString? name) { + final _ret = _lib._objc_msgSend_541( + _id, _lib._sel_portForName_1, name?._id ?? ffi.nullptr); + return NSPort._(_ret, _lib, retain: true, release: true); } - @override - NSMutableSet initWithObjects_(NSObject firstObj) { - final _ret = - _lib._objc_msgSend_16(_id, _lib._sel_initWithObjects_1, firstObj._id); - return NSMutableSet._(_ret, _lib, retain: true, release: true); + NSPort portForName_host_(NSString? name, NSString? host) { + final _ret = _lib._objc_msgSend_542(_id, _lib._sel_portForName_host_1, + name?._id ?? ffi.nullptr, host?._id ?? ffi.nullptr); + return NSPort._(_ret, _lib, retain: true, release: true); } - @override - NSMutableSet initWithSet_(NSSet? set) { - final _ret = _lib._objc_msgSend_382( - _id, _lib._sel_initWithSet_1, set?._id ?? ffi.nullptr); - return NSMutableSet._(_ret, _lib, retain: true, release: true); + bool registerPort_name_(NSPort? port, NSString? name) { + return _lib._objc_msgSend_543(_id, _lib._sel_registerPort_name_1, + port?._id ?? ffi.nullptr, name?._id ?? ffi.nullptr); } - @override - NSMutableSet initWithSet_copyItems_(NSSet? set, bool flag) { - final _ret = _lib._objc_msgSend_383( - _id, _lib._sel_initWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); - return NSMutableSet._(_ret, _lib, retain: false, release: true); + bool removePortForName_(NSString? name) { + return _lib._objc_msgSend_59( + _id, _lib._sel_removePortForName_1, name?._id ?? ffi.nullptr); } @override - NSMutableSet initWithArray_(NSArray? array) { - final _ret = _lib._objc_msgSend_67( - _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); - return NSMutableSet._(_ret, _lib, retain: true, release: true); + NSPortNameServer init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSPortNameServer._(_ret, _lib, retain: true, release: true); } - static NSMutableSet new1(SentryCocoa _lib) { + static NSPortNameServer new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableSet1, _lib._sel_new1); - return NSMutableSet._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSPortNameServer1, _lib._sel_new1); + return NSPortNameServer._(_ret, _lib, retain: false, release: true); } - static NSMutableSet allocWithZone_( + static NSPortNameServer allocWithZone_( SentryCocoa _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); + _lib._class_NSPortNameServer1, _lib._sel_allocWithZone_1, zone); + return NSPortNameServer._(_ret, _lib, retain: false, release: true); } - static NSMutableSet alloc(SentryCocoa _lib) { + static NSPortNameServer alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableSet1, _lib._sel_alloc1); - return NSMutableSet._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSPortNameServer1, _lib._sel_alloc1); + return NSPortNameServer._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -44896,7 +50067,7 @@ class NSMutableSet extends NSSet { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSMutableSet1, + _lib._class_NSPortNameServer1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -44905,24 +50076,24 @@ class NSMutableSet extends NSSet { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSMutableSet1, + _lib._objc_msgSend_15(_lib._class_NSPortNameServer1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMutableSet1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSPortNameServer1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSMutableSet1, _lib._sel_useStoredAccessor1); + _lib._class_NSPortNameServer1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableSet1, + _lib._class_NSPortNameServer1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -44931,7 +50102,7 @@ class NSMutableSet extends NSSet { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSMutableSet1, + _lib._class_NSPortNameServer1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -44939,239 +50110,307 @@ class NSMutableSet extends NSSet { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSMutableSet1, + _lib._class_NSPortNameServer1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSMutableSet1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_NSPortNameServer1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableSet1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSPortNameServer1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_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; -} - -abstract class NSKeyValueSetMutationKind { - static const int NSKeyValueUnionSetMutation = 1; - static const int NSKeyValueMinusSetMutation = 2; - static const int NSKeyValueIntersectSetMutation = 3; - static const int NSKeyValueSetSetMutation = 4; -} - -class NSKeyedArchiver extends NSCoder { - NSKeyedArchiver._(ffi.Pointer id, SentryCocoa lib, +class NSDistantObject extends NSProxy { + NSDistantObject._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSKeyedArchiver] that points to the same underlying object as [other]. - static NSKeyedArchiver castFrom(T other) { - return NSKeyedArchiver._(other._id, other._lib, + /// Returns a [NSDistantObject] that points to the same underlying object as [other]. + static NSDistantObject castFrom(T other) { + return NSDistantObject._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSKeyedArchiver] that wraps the given raw object pointer. - static NSKeyedArchiver castFromPointer( + /// Returns a [NSDistantObject] that wraps the given raw object pointer. + static NSDistantObject castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSKeyedArchiver._(other, lib, retain: retain, release: release); + return NSDistantObject._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSKeyedArchiver]. + /// Returns whether [obj] is an instance of [NSDistantObject]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSKeyedArchiver1); + obj._lib._class_NSDistantObject1); } - NSKeyedArchiver initRequiringSecureCoding_(bool requiresSecureCoding) { - final _ret = _lib._objc_msgSend_481( - _id, _lib._sel_initRequiringSecureCoding_1, requiresSecureCoding); - return NSKeyedArchiver._(_ret, _lib, retain: true, release: true); + static NSObject proxyWithTarget_connection_( + SentryCocoa _lib, NSObject target, NSConnection? connection) { + final _ret = _lib._objc_msgSend_545( + _lib._class_NSDistantObject1, + _lib._sel_proxyWithTarget_connection_1, + target._id, + connection?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSDistantObject initWithTarget_connection_( + NSObject target, NSConnection? connection) { + final _ret = _lib._objc_msgSend_545( + _id, + _lib._sel_initWithTarget_connection_1, + target._id, + connection?._id ?? ffi.nullptr); + return NSDistantObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject proxyWithLocal_connection_( + SentryCocoa _lib, NSObject target, NSConnection? connection) { + final _ret = _lib._objc_msgSend_545( + _lib._class_NSDistantObject1, + _lib._sel_proxyWithLocal_connection_1, + target._id, + connection?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSDistantObject initWithLocal_connection_( + NSObject target, NSConnection? connection) { + final _ret = _lib._objc_msgSend_545( + _id, + _lib._sel_initWithLocal_connection_1, + target._id, + connection?._id ?? ffi.nullptr); + return NSDistantObject._(_ret, _lib, retain: true, release: true); + } + + NSDistantObject initWithCoder_(NSCoder? inCoder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); + return NSDistantObject._(_ret, _lib, retain: true, release: true); + } + + void setProtocolForProxy_(Protocol? proto) { + _lib._objc_msgSend_546( + _id, _lib._sel_setProtocolForProxy_1, proto?._id ?? ffi.nullptr); + } + + NSConnection? get connectionForProxy { + final _ret = _lib._objc_msgSend_539(_id, _lib._sel_connectionForProxy1); + return _ret.address == 0 + ? null + : NSConnection._(_ret, _lib, retain: true, release: true); + } + + static NSObject alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSDistantObject1, _lib._sel_alloc1); + return NSObject._(_ret, _lib, retain: false, release: true); + } + + static bool respondsToSelector_( + SentryCocoa _lib, ffi.Pointer aSelector) { + return _lib._objc_msgSend_4(_lib._class_NSDistantObject1, + _lib._sel_respondsToSelector_1, aSelector); + } +} + +class NSProxy extends _ObjCWrapper { + NSProxy._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSProxy] that points to the same underlying object as [other]. + static NSProxy castFrom(T other) { + return NSProxy._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSProxy] that wraps the given raw object pointer. + static NSProxy castFromPointer(SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSProxy._(other, lib, retain: retain, release: release); } - static NSData archivedDataWithRootObject_requiringSecureCoding_error_( - SentryCocoa _lib, - NSObject object, - bool requiresSecureCoding, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_482( - _lib._class_NSKeyedArchiver1, - _lib._sel_archivedDataWithRootObject_requiringSecureCoding_error_1, - object._id, - requiresSecureCoding, - error); - return NSData._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [NSProxy]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSProxy1); } - @override - NSKeyedArchiver init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSKeyedArchiver._(_ret, _lib, retain: true, release: true); + static NSObject alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSProxy1, _lib._sel_alloc1); + return NSObject._(_ret, _lib, retain: false, release: true); } - NSKeyedArchiver initForWritingWithMutableData_(NSMutableData? data) { - final _ret = _lib._objc_msgSend_487(_id, - _lib._sel_initForWritingWithMutableData_1, data?._id ?? ffi.nullptr); - return NSKeyedArchiver._(_ret, _lib, retain: true, release: true); + static NSObject allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSProxy1, _lib._sel_allocWithZone_1, zone); + return NSObject._(_ret, _lib, retain: false, release: true); } - static NSData archivedDataWithRootObject_( - SentryCocoa _lib, NSObject rootObject) { - final _ret = _lib._objc_msgSend_488(_lib._class_NSKeyedArchiver1, - _lib._sel_archivedDataWithRootObject_1, rootObject._id); - return NSData._(_ret, _lib, retain: true, release: true); + static NSObject class1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSProxy1, _lib._sel_class1); + return NSObject._(_ret, _lib, retain: true, release: true); } - static bool archiveRootObject_toFile_( - SentryCocoa _lib, NSObject rootObject, NSString? path) { - return _lib._objc_msgSend_240( - _lib._class_NSKeyedArchiver1, - _lib._sel_archiveRootObject_toFile_1, - rootObject._id, - path?._id ?? ffi.nullptr); + void forwardInvocation_(NSInvocation? invocation) { + _lib._objc_msgSend_394( + _id, _lib._sel_forwardInvocation_1, invocation?._id ?? ffi.nullptr); } - 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); + NSMethodSignature methodSignatureForSelector_(ffi.Pointer sel) { + final _ret = _lib._objc_msgSend_395( + _id, _lib._sel_methodSignatureForSelector_1, sel); + return NSMethodSignature._(_ret, _lib, retain: true, release: true); } - set delegate(NSObject? value) { - return _lib._objc_msgSend_387( - _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); + void dealloc() { + _lib._objc_msgSend_1(_id, _lib._sel_dealloc1); } - int get outputFormat { - return _lib._objc_msgSend_489(_id, _lib._sel_outputFormat1); + void finalize() { + _lib._objc_msgSend_1(_id, _lib._sel_finalize1); } - set outputFormat(int value) { - return _lib._objc_msgSend_490(_id, _lib._sel_setOutputFormat_1, value); + 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); } - NSData? get encodedData { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_encodedData1); + NSString? get debugDescription { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_debugDescription1); return _ret.address == 0 ? null - : NSData._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - void finishEncoding() { - _lib._objc_msgSend_1(_id, _lib._sel_finishEncoding1); + static bool respondsToSelector_( + SentryCocoa _lib, ffi.Pointer aSelector) { + return _lib._objc_msgSend_4( + _lib._class_NSProxy1, _lib._sel_respondsToSelector_1, aSelector); } - static void setClassName_forClass_( - SentryCocoa _lib, NSString? codedName, NSObject cls) { - _lib._objc_msgSend_491( - _lib._class_NSKeyedArchiver1, - _lib._sel_setClassName_forClass_1, - codedName?._id ?? ffi.nullptr, - cls._id); + bool allowsWeakReference() { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsWeakReference1); } - static NSString classNameForClass_(SentryCocoa _lib, NSObject cls) { - final _ret = _lib._objc_msgSend_65( - _lib._class_NSKeyedArchiver1, _lib._sel_classNameForClass_1, cls._id); - return NSString._(_ret, _lib, retain: true, release: true); + bool retainWeakReference() { + return _lib._objc_msgSend_12(_id, _lib._sel_retainWeakReference1); } +} - @override - void encodeObject_forKey_(NSObject object, NSString? key) { - _lib._objc_msgSend_126(_id, _lib._sel_encodeObject_forKey_1, object._id, - key?._id ?? ffi.nullptr); +class NSClassDescription extends NSObject { + NSClassDescription._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSClassDescription] that points to the same underlying object as [other]. + static NSClassDescription castFrom(T other) { + return NSClassDescription._(other._id, other._lib, + retain: true, release: true); } - @override - void encodeConditionalObject_forKey_(NSObject object, NSString? key) { - _lib._objc_msgSend_126(_id, _lib._sel_encodeConditionalObject_forKey_1, - object._id, key?._id ?? ffi.nullptr); + /// Returns a [NSClassDescription] that wraps the given raw object pointer. + static NSClassDescription castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSClassDescription._(other, lib, retain: retain, release: release); } - @override - void encodeBool_forKey_(bool value, NSString? key) { - _lib._objc_msgSend_272( - _id, _lib._sel_encodeBool_forKey_1, value, key?._id ?? ffi.nullptr); + /// Returns whether [obj] is an instance of [NSClassDescription]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSClassDescription1); } - @override - void encodeInt_forKey_(int value, NSString? key) { - _lib._objc_msgSend_273( - _id, _lib._sel_encodeInt_forKey_1, value, key?._id ?? ffi.nullptr); + static void registerClassDescription_forClass_( + SentryCocoa _lib, NSClassDescription? description, NSObject aClass) { + _lib._objc_msgSend_558( + _lib._class_NSClassDescription1, + _lib._sel_registerClassDescription_forClass_1, + description?._id ?? ffi.nullptr, + aClass._id); } - @override - void encodeInt32_forKey_(int value, NSString? key) { - _lib._objc_msgSend_274( - _id, _lib._sel_encodeInt32_forKey_1, value, key?._id ?? ffi.nullptr); + static void invalidateClassDescriptionCache(SentryCocoa _lib) { + _lib._objc_msgSend_1(_lib._class_NSClassDescription1, + _lib._sel_invalidateClassDescriptionCache1); } - @override - void encodeInt64_forKey_(int value, NSString? key) { - _lib._objc_msgSend_275( - _id, _lib._sel_encodeInt64_forKey_1, value, key?._id ?? ffi.nullptr); + static NSClassDescription classDescriptionForClass_( + SentryCocoa _lib, NSObject aClass) { + final _ret = _lib._objc_msgSend_559(_lib._class_NSClassDescription1, + _lib._sel_classDescriptionForClass_1, aClass._id); + return NSClassDescription._(_ret, _lib, retain: true, release: true); } @override - void encodeFloat_forKey_(double value, NSString? key) { - _lib._objc_msgSend_276( - _id, _lib._sel_encodeFloat_forKey_1, value, key?._id ?? ffi.nullptr); + NSArray? get attributeKeys { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_attributeKeys1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } @override - void encodeDouble_forKey_(double value, NSString? key) { - _lib._objc_msgSend_277( - _id, _lib._sel_encodeDouble_forKey_1, value, key?._id ?? ffi.nullptr); + NSArray? get toOneRelationshipKeys { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_toOneRelationshipKeys1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } @override - void encodeBytes_length_forKey_( - ffi.Pointer bytes, int length, NSString? key) { - _lib._objc_msgSend_278(_id, _lib._sel_encodeBytes_length_forKey_1, bytes, - length, key?._id ?? ffi.nullptr); + NSArray? get toManyRelationshipKeys { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_toManyRelationshipKeys1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } @override - bool get requiresSecureCoding { - return _lib._objc_msgSend_12(_id, _lib._sel_requiresSecureCoding1); + NSString inverseForRelationshipKey_(NSString? relationshipKey) { + final _ret = _lib._objc_msgSend_64( + _id, + _lib._sel_inverseForRelationshipKey_1, + relationshipKey?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - set requiresSecureCoding(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setRequiresSecureCoding_1, value); + @override + NSClassDescription init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSClassDescription._(_ret, _lib, retain: true, release: true); } - static NSKeyedArchiver new1(SentryCocoa _lib) { + static NSClassDescription new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSKeyedArchiver1, _lib._sel_new1); - return NSKeyedArchiver._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSClassDescription1, _lib._sel_new1); + return NSClassDescription._(_ret, _lib, retain: false, release: true); } - static NSKeyedArchiver allocWithZone_( + static NSClassDescription allocWithZone_( SentryCocoa _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); + _lib._class_NSClassDescription1, _lib._sel_allocWithZone_1, zone); + return NSClassDescription._(_ret, _lib, retain: false, release: true); } - static NSKeyedArchiver alloc(SentryCocoa _lib) { + static NSClassDescription alloc(SentryCocoa _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_NSClassDescription1, _lib._sel_alloc1); + return NSClassDescription._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -45180,7 +50419,7 @@ class NSKeyedArchiver extends NSCoder { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSKeyedArchiver1, + _lib._class_NSClassDescription1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -45189,24 +50428,24 @@ class NSKeyedArchiver extends NSCoder { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSKeyedArchiver1, + _lib._objc_msgSend_15(_lib._class_NSClassDescription1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSKeyedArchiver1, + return _lib._objc_msgSend_12(_lib._class_NSClassDescription1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSKeyedArchiver1, _lib._sel_useStoredAccessor1); + _lib._class_NSClassDescription1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSKeyedArchiver1, + _lib._class_NSClassDescription1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -45215,7 +50454,7 @@ class NSKeyedArchiver extends NSCoder { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSKeyedArchiver1, + _lib._class_NSClassDescription1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -45223,357 +50462,232 @@ class NSKeyedArchiver extends NSCoder { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSKeyedArchiver1, + _lib._class_NSClassDescription1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSKeyedArchiver1, + final _ret = _lib._objc_msgSend_79(_lib._class_NSClassDescription1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSKeyedArchiver1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSClassDescription1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSMutableData extends NSData { - NSMutableData._(ffi.Pointer id, SentryCocoa lib, +class NSScriptObjectSpecifier extends NSObject { + NSScriptObjectSpecifier._(ffi.Pointer id, SentryCocoa 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 [NSScriptObjectSpecifier] that points to the same underlying object as [other]. + static NSScriptObjectSpecifier castFrom(T other) { + return NSScriptObjectSpecifier._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSMutableData] that wraps the given raw object pointer. - static NSMutableData castFromPointer( + /// Returns a [NSScriptObjectSpecifier] that wraps the given raw object pointer. + static NSScriptObjectSpecifier castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSMutableData._(other, lib, retain: retain, release: release); + return NSScriptObjectSpecifier._(other, lib, + retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSMutableData]. + /// Returns whether [obj] is an instance of [NSScriptObjectSpecifier]. 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); - } - - set length(int value) { - return _lib._objc_msgSend_483(_id, _lib._sel_setLength_1, value); - } - - void appendBytes_length_(ffi.Pointer bytes, int length) { - _lib._objc_msgSend_21(_id, _lib._sel_appendBytes_length_1, bytes, length); - } - - void appendData_(NSData? other) { - _lib._objc_msgSend_263( - _id, _lib._sel_appendData_1, other?._id ?? ffi.nullptr); - } - - void increaseLengthBy_(int extraLength) { - _lib._objc_msgSend_439(_id, _lib._sel_increaseLengthBy_1, extraLength); - } - - void replaceBytesInRange_withBytes_( - _NSRange range, ffi.Pointer bytes) { - _lib._objc_msgSend_484( - _id, _lib._sel_replaceBytesInRange_withBytes_1, range, bytes); - } - - void resetBytesInRange_(_NSRange range) { - _lib._objc_msgSend_445(_id, _lib._sel_resetBytesInRange_1, range); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSScriptObjectSpecifier1); } - void setData_(NSData? data) { - _lib._objc_msgSend_263(_id, _lib._sel_setData_1, data?._id ?? ffi.nullptr); + static NSScriptObjectSpecifier objectSpecifierWithDescriptor_( + SentryCocoa _lib, NSAppleEventDescriptor? descriptor) { + final _ret = _lib._objc_msgSend_583( + _lib._class_NSScriptObjectSpecifier1, + _lib._sel_objectSpecifierWithDescriptor_1, + descriptor?._id ?? ffi.nullptr); + return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } - void replaceBytesInRange_withBytes_length_(_NSRange range, - ffi.Pointer replacementBytes, int replacementLength) { - _lib._objc_msgSend_485( + NSScriptObjectSpecifier initWithContainerSpecifier_key_( + NSScriptObjectSpecifier? container, NSString? property) { + final _ret = _lib._objc_msgSend_584( _id, - _lib._sel_replaceBytesInRange_withBytes_length_1, - range, - replacementBytes, - replacementLength); - } - - static NSMutableData dataWithCapacity_(SentryCocoa _lib, int aNumItems) { - final _ret = _lib._objc_msgSend_60( - _lib._class_NSMutableData1, _lib._sel_dataWithCapacity_1, aNumItems); - return NSMutableData._(_ret, _lib, retain: true, release: true); - } - - static NSMutableData dataWithLength_(SentryCocoa _lib, int length) { - final _ret = _lib._objc_msgSend_60( - _lib._class_NSMutableData1, _lib._sel_dataWithLength_1, length); - return NSMutableData._(_ret, _lib, retain: true, release: true); - } - - NSMutableData initWithCapacity_(int capacity) { - final _ret = - _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, capacity); - return NSMutableData._(_ret, _lib, retain: true, release: true); - } - - NSMutableData initWithLength_(int length) { - final _ret = _lib._objc_msgSend_60(_id, _lib._sel_initWithLength_1, length); - return NSMutableData._(_ret, _lib, retain: true, release: true); - } - - bool decompressUsingAlgorithm_error_( - int algorithm, ffi.Pointer> error) { - return _lib._objc_msgSend_486( - _id, _lib._sel_decompressUsingAlgorithm_error_1, algorithm, error); - } - - bool compressUsingAlgorithm_error_( - int algorithm, ffi.Pointer> error) { - return _lib._objc_msgSend_486( - _id, _lib._sel_compressUsingAlgorithm_error_1, algorithm, error); - } - - static NSMutableData data(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableData1, _lib._sel_data1); - return NSMutableData._(_ret, _lib, retain: true, release: true); + _lib._sel_initWithContainerSpecifier_key_1, + container?._id ?? ffi.nullptr, + property?._id ?? ffi.nullptr); + return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } - static NSMutableData dataWithBytes_length_( - SentryCocoa _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_252(_lib._class_NSMutableData1, - _lib._sel_dataWithBytes_length_1, bytes, length); - return NSMutableData._(_ret, _lib, retain: true, release: true); + NSScriptObjectSpecifier + initWithContainerClassDescription_containerSpecifier_key_( + NSScriptClassDescription? classDesc, + NSScriptObjectSpecifier? container, + NSString? property) { + final _ret = _lib._objc_msgSend_601( + _id, + _lib._sel_initWithContainerClassDescription_containerSpecifier_key_1, + classDesc?._id ?? ffi.nullptr, + container?._id ?? ffi.nullptr, + property?._id ?? ffi.nullptr); + return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } - static NSMutableData dataWithBytesNoCopy_length_( - SentryCocoa _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_252(_lib._class_NSMutableData1, - _lib._sel_dataWithBytesNoCopy_length_1, bytes, length); - return NSMutableData._(_ret, _lib, retain: false, release: true); + NSScriptObjectSpecifier initWithCoder_(NSCoder? inCoder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); + return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } - static NSMutableData dataWithBytesNoCopy_length_freeWhenDone_( - SentryCocoa _lib, ffi.Pointer bytes, int length, bool b) { - final _ret = _lib._objc_msgSend_253(_lib._class_NSMutableData1, - _lib._sel_dataWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); - return NSMutableData._(_ret, _lib, retain: false, release: true); + NSScriptObjectSpecifier? get childSpecifier { + final _ret = _lib._objc_msgSend_591(_id, _lib._sel_childSpecifier1); + return _ret.address == 0 + ? null + : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } - static NSMutableData dataWithContentsOfFile_options_error_( - SentryCocoa _lib, - NSString? path, - int readOptionsMask, - ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_254( - _lib._class_NSMutableData1, - _lib._sel_dataWithContentsOfFile_options_error_1, - path?._id ?? ffi.nullptr, - readOptionsMask, - errorPtr); - return NSMutableData._(_ret, _lib, retain: true, release: true); + set childSpecifier(NSScriptObjectSpecifier? value) { + return _lib._objc_msgSend_592( + _id, _lib._sel_setChildSpecifier_1, value?._id ?? ffi.nullptr); } - static NSMutableData dataWithContentsOfURL_options_error_( - SentryCocoa _lib, - NSURL? url, - int readOptionsMask, - ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_255( - _lib._class_NSMutableData1, - _lib._sel_dataWithContentsOfURL_options_error_1, - url?._id ?? ffi.nullptr, - readOptionsMask, - errorPtr); - return NSMutableData._(_ret, _lib, retain: true, release: true); + NSScriptObjectSpecifier? get containerSpecifier { + final _ret = _lib._objc_msgSend_591(_id, _lib._sel_containerSpecifier1); + return _ret.address == 0 + ? null + : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } - static NSMutableData dataWithContentsOfFile_( - SentryCocoa _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); + set containerSpecifier(NSScriptObjectSpecifier? value) { + return _lib._objc_msgSend_592( + _id, _lib._sel_setContainerSpecifier_1, value?._id ?? ffi.nullptr); } - static NSMutableData dataWithContentsOfURL_(SentryCocoa _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_241(_lib._class_NSMutableData1, - _lib._sel_dataWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableData._(_ret, _lib, retain: true, release: true); + bool get containerIsObjectBeingTested { + return _lib._objc_msgSend_12(_id, _lib._sel_containerIsObjectBeingTested1); } - @override - NSMutableData initWithBytes_length_(ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_252( - _id, _lib._sel_initWithBytes_length_1, bytes, length); - return NSMutableData._(_ret, _lib, retain: true, release: true); + set containerIsObjectBeingTested(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setContainerIsObjectBeingTested_1, value); } - @override - NSMutableData initWithBytesNoCopy_length_( - ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_252( - _id, _lib._sel_initWithBytesNoCopy_length_1, bytes, length); - return NSMutableData._(_ret, _lib, retain: false, release: true); + bool get containerIsRangeContainerObject { + return _lib._objc_msgSend_12( + _id, _lib._sel_containerIsRangeContainerObject1); } - @override - NSMutableData initWithBytesNoCopy_length_freeWhenDone_( - ffi.Pointer bytes, int length, bool b) { - final _ret = _lib._objc_msgSend_253(_id, - _lib._sel_initWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); - return NSMutableData._(_ret, _lib, retain: false, release: true); + set containerIsRangeContainerObject(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setContainerIsRangeContainerObject_1, value); } - @override - NSMutableData initWithBytesNoCopy_length_deallocator_( - ffi.Pointer bytes, - int length, - ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong deallocator) { - final _ret = _lib._objc_msgSend_256( - _id, - _lib._sel_initWithBytesNoCopy_length_deallocator_1, - bytes, - length, - deallocator._id); - return NSMutableData._(_ret, _lib, retain: false, release: true); + NSString? get key { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_key1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - @override - NSMutableData initWithContentsOfFile_options_error_(NSString? path, - int readOptionsMask, ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_254( - _id, - _lib._sel_initWithContentsOfFile_options_error_1, - path?._id ?? ffi.nullptr, - readOptionsMask, - errorPtr); - return NSMutableData._(_ret, _lib, retain: true, release: true); + set key(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setKey_1, value?._id ?? ffi.nullptr); } - @override - NSMutableData initWithContentsOfURL_options_error_(NSURL? url, - int readOptionsMask, ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_255( - _id, - _lib._sel_initWithContentsOfURL_options_error_1, - url?._id ?? ffi.nullptr, - readOptionsMask, - errorPtr); - return NSMutableData._(_ret, _lib, retain: true, release: true); + NSScriptClassDescription? get containerClassDescription { + final _ret = + _lib._objc_msgSend_587(_id, _lib._sel_containerClassDescription1); + return _ret.address == 0 + ? null + : NSScriptClassDescription._(_ret, _lib, retain: true, release: true); } - @override - NSMutableData initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableData._(_ret, _lib, retain: true, release: true); + set containerClassDescription(NSScriptClassDescription? value) { + return _lib._objc_msgSend_602(_id, _lib._sel_setContainerClassDescription_1, + value?._id ?? ffi.nullptr); } - @override - NSMutableData initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_241( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableData._(_ret, _lib, retain: true, release: true); + NSScriptClassDescription? get keyClassDescription { + final _ret = _lib._objc_msgSend_587(_id, _lib._sel_keyClassDescription1); + return _ret.address == 0 + ? null + : NSScriptClassDescription._(_ret, _lib, retain: true, release: true); } - - @override - NSMutableData initWithData_(NSData? data) { - final _ret = _lib._objc_msgSend_257( - _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); - return NSMutableData._(_ret, _lib, retain: true, release: true); + + ffi.Pointer indicesOfObjectsByEvaluatingWithContainer_count_( + NSObject container, ffi.Pointer count) { + return _lib._objc_msgSend_603( + _id, + _lib._sel_indicesOfObjectsByEvaluatingWithContainer_count_1, + container._id, + count); } - static NSMutableData dataWithData_(SentryCocoa _lib, NSData? data) { - final _ret = _lib._objc_msgSend_257(_lib._class_NSMutableData1, - _lib._sel_dataWithData_1, data?._id ?? ffi.nullptr); - return NSMutableData._(_ret, _lib, retain: true, release: true); + NSObject objectsByEvaluatingWithContainers_(NSObject containers) { + final _ret = _lib._objc_msgSend_16( + _id, _lib._sel_objectsByEvaluatingWithContainers_1, containers._id); + return NSObject._(_ret, _lib, retain: true, release: true); } - @override - NSMutableData initWithBase64EncodedString_options_( - NSString? base64String, int options) { - final _ret = _lib._objc_msgSend_258( - _id, - _lib._sel_initWithBase64EncodedString_options_1, - base64String?._id ?? ffi.nullptr, - options); - return NSMutableData._(_ret, _lib, retain: true, release: true); + NSObject get objectsByEvaluatingSpecifier { + final _ret = + _lib._objc_msgSend_2(_id, _lib._sel_objectsByEvaluatingSpecifier1); + return NSObject._(_ret, _lib, retain: true, release: true); } - @override - NSMutableData initWithBase64EncodedData_options_( - NSData? base64Data, int options) { - final _ret = _lib._objc_msgSend_260( - _id, - _lib._sel_initWithBase64EncodedData_options_1, - base64Data?._id ?? ffi.nullptr, - options); - return NSMutableData._(_ret, _lib, retain: true, release: true); + int get evaluationErrorNumber { + return _lib._objc_msgSend_78(_id, _lib._sel_evaluationErrorNumber1); } - @override - NSMutableData decompressedDataUsingAlgorithm_error_( - int algorithm, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_262(_id, - _lib._sel_decompressedDataUsingAlgorithm_error_1, algorithm, error); - return NSMutableData._(_ret, _lib, retain: true, release: true); + set evaluationErrorNumber(int value) { + return _lib._objc_msgSend_593( + _id, _lib._sel_setEvaluationErrorNumber_1, value); } - @override - NSMutableData compressedDataUsingAlgorithm_error_( - int algorithm, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_262( - _id, _lib._sel_compressedDataUsingAlgorithm_error_1, algorithm, error); - return NSMutableData._(_ret, _lib, retain: true, release: true); + NSScriptObjectSpecifier? get evaluationErrorSpecifier { + final _ret = + _lib._objc_msgSend_591(_id, _lib._sel_evaluationErrorSpecifier1); + return _ret.address == 0 + ? null + : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } - static NSObject dataWithContentsOfMappedFile_( - SentryCocoa _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); + NSAppleEventDescriptor? get descriptor { + final _ret = _lib._objc_msgSend_561(_id, _lib._sel_descriptor1); + return _ret.address == 0 + ? null + : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } @override - NSMutableData init() { + NSScriptObjectSpecifier init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSMutableData._(_ret, _lib, retain: true, release: true); + return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } - static NSMutableData new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableData1, _lib._sel_new1); - return NSMutableData._(_ret, _lib, retain: false, release: true); + static NSScriptObjectSpecifier new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSScriptObjectSpecifier1, _lib._sel_new1); + return NSScriptObjectSpecifier._(_ret, _lib, retain: false, release: true); } - static NSMutableData allocWithZone_( + static NSScriptObjectSpecifier allocWithZone_( SentryCocoa _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); + _lib._class_NSScriptObjectSpecifier1, _lib._sel_allocWithZone_1, zone); + return NSScriptObjectSpecifier._(_ret, _lib, retain: false, release: true); } - static NSMutableData alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableData1, _lib._sel_alloc1); - return NSMutableData._(_ret, _lib, retain: false, release: true); + static NSScriptObjectSpecifier alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSScriptObjectSpecifier1, _lib._sel_alloc1); + return NSScriptObjectSpecifier._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -45582,7 +50696,7 @@ class NSMutableData extends NSData { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSMutableData1, + _lib._class_NSScriptObjectSpecifier1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -45591,24 +50705,24 @@ class NSMutableData extends NSData { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSMutableData1, + _lib._objc_msgSend_15(_lib._class_NSScriptObjectSpecifier1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMutableData1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSScriptObjectSpecifier1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSMutableData1, _lib._sel_useStoredAccessor1); + _lib._class_NSScriptObjectSpecifier1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableData1, + _lib._class_NSScriptObjectSpecifier1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -45617,7 +50731,7 @@ class NSMutableData extends NSData { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSMutableData1, + _lib._class_NSScriptObjectSpecifier1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -45625,229 +50739,440 @@ class NSMutableData extends NSData { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSMutableData1, + _lib._class_NSScriptObjectSpecifier1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSMutableData1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_NSScriptObjectSpecifier1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableData1, _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2(_lib._class_NSScriptObjectSpecifier1, + _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -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, SentryCocoa lib, +class NSAppleEventDescriptor extends NSObject { + NSAppleEventDescriptor._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : 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); + /// Returns a [NSAppleEventDescriptor] that points to the same underlying object as [other]. + static NSAppleEventDescriptor castFrom(T other) { + return NSAppleEventDescriptor._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSThread] that wraps the given raw object pointer. - static NSThread castFromPointer( + /// Returns a [NSAppleEventDescriptor] that wraps the given raw object pointer. + static NSAppleEventDescriptor castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSThread._(other, lib, retain: retain, release: release); + return NSAppleEventDescriptor._(other, lib, + retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSThread]. + /// Returns whether [obj] is an instance of [NSAppleEventDescriptor]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSThread1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSAppleEventDescriptor1); } - static NSThread? getCurrentThread(SentryCocoa _lib) { + static NSAppleEventDescriptor nullDescriptor(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_561( + _lib._class_NSAppleEventDescriptor1, _lib._sel_nullDescriptor1); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSAppleEventDescriptor descriptorWithDescriptorType_bytes_length_( + SentryCocoa _lib, + int descriptorType, + ffi.Pointer bytes, + int byteCount) { + final _ret = _lib._objc_msgSend_562( + _lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithDescriptorType_bytes_length_1, + descriptorType, + bytes, + byteCount); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSAppleEventDescriptor descriptorWithDescriptorType_data_( + SentryCocoa _lib, int descriptorType, NSData? data) { + final _ret = _lib._objc_msgSend_563( + _lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithDescriptorType_data_1, + descriptorType, + data?._id ?? ffi.nullptr); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSAppleEventDescriptor descriptorWithBoolean_( + SentryCocoa _lib, int boolean) { + final _ret = _lib._objc_msgSend_564(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithBoolean_1, boolean); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSAppleEventDescriptor descriptorWithEnumCode_( + SentryCocoa _lib, int enumerator) { + final _ret = _lib._objc_msgSend_565(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithEnumCode_1, enumerator); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSAppleEventDescriptor descriptorWithInt32_( + SentryCocoa _lib, int signedInt) { + final _ret = _lib._objc_msgSend_566(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithInt32_1, signedInt); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSAppleEventDescriptor descriptorWithDouble_( + SentryCocoa _lib, double doubleValue) { + final _ret = _lib._objc_msgSend_567(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithDouble_1, doubleValue); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSAppleEventDescriptor descriptorWithTypeCode_( + SentryCocoa _lib, int typeCode) { + final _ret = _lib._objc_msgSend_565(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithTypeCode_1, typeCode); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSAppleEventDescriptor descriptorWithString_( + SentryCocoa _lib, NSString? string) { + final _ret = _lib._objc_msgSend_568(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithString_1, string?._id ?? ffi.nullptr); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSAppleEventDescriptor descriptorWithDate_( + SentryCocoa _lib, NSDate? date) { + final _ret = _lib._objc_msgSend_569(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithDate_1, date?._id ?? ffi.nullptr); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSAppleEventDescriptor descriptorWithFileURL_( + SentryCocoa _lib, NSURL? fileURL) { + final _ret = _lib._objc_msgSend_570(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithFileURL_1, fileURL?._id ?? ffi.nullptr); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSAppleEventDescriptor + appleEventWithEventClass_eventID_targetDescriptor_returnID_transactionID_( + SentryCocoa _lib, + int eventClass, + int eventID, + NSAppleEventDescriptor? targetDescriptor, + int returnID, + int transactionID) { + final _ret = _lib._objc_msgSend_571( + _lib._class_NSAppleEventDescriptor1, + _lib._sel_appleEventWithEventClass_eventID_targetDescriptor_returnID_transactionID_1, + eventClass, + eventID, + targetDescriptor?._id ?? ffi.nullptr, + returnID, + transactionID); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSAppleEventDescriptor listDescriptor(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_561( + _lib._class_NSAppleEventDescriptor1, _lib._sel_listDescriptor1); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSAppleEventDescriptor recordDescriptor(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_561( + _lib._class_NSAppleEventDescriptor1, _lib._sel_recordDescriptor1); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSAppleEventDescriptor currentProcessDescriptor(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_561(_lib._class_NSAppleEventDescriptor1, + _lib._sel_currentProcessDescriptor1); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSAppleEventDescriptor descriptorWithProcessIdentifier_( + SentryCocoa _lib, int processIdentifier) { + final _ret = _lib._objc_msgSend_566(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithProcessIdentifier_1, processIdentifier); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSAppleEventDescriptor descriptorWithBundleIdentifier_( + SentryCocoa _lib, NSString? bundleIdentifier) { + final _ret = _lib._objc_msgSend_568( + _lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithBundleIdentifier_1, + bundleIdentifier?._id ?? ffi.nullptr); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSAppleEventDescriptor descriptorWithApplicationURL_( + SentryCocoa _lib, NSURL? applicationURL) { + final _ret = _lib._objc_msgSend_570( + _lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithApplicationURL_1, + applicationURL?._id ?? ffi.nullptr); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + NSAppleEventDescriptor initWithAEDescNoCopy_(ffi.Pointer aeDesc) { final _ret = - _lib._objc_msgSend_496(_lib._class_NSThread1, _lib._sel_currentThread1); - return _ret.address == 0 - ? null - : NSThread._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_572(_id, _lib._sel_initWithAEDescNoCopy_1, aeDesc); + return NSAppleEventDescriptor._(_ret, _lib, retain: false, release: true); } - static void detachNewThreadWithBlock_( - SentryCocoa _lib, ObjCBlock_ffiVoid block) { - _lib._objc_msgSend_497( - _lib._class_NSThread1, _lib._sel_detachNewThreadWithBlock_1, block._id); + NSAppleEventDescriptor initWithDescriptorType_bytes_length_( + int descriptorType, ffi.Pointer bytes, int byteCount) { + final _ret = _lib._objc_msgSend_573( + _id, + _lib._sel_initWithDescriptorType_bytes_length_1, + descriptorType, + bytes, + byteCount); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - static void detachNewThreadSelector_toTarget_withObject_(SentryCocoa _lib, - ffi.Pointer selector, NSObject target, NSObject argument) { - _lib._objc_msgSend_498( - _lib._class_NSThread1, - _lib._sel_detachNewThreadSelector_toTarget_withObject_1, - selector, - target._id, - argument._id); + NSAppleEventDescriptor initWithDescriptorType_data_( + int descriptorType, NSData? data) { + final _ret = _lib._objc_msgSend_574( + _id, + _lib._sel_initWithDescriptorType_data_1, + descriptorType, + data?._id ?? ffi.nullptr); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - static bool isMultiThreaded(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSThread1, _lib._sel_isMultiThreaded1); + NSAppleEventDescriptor + initWithEventClass_eventID_targetDescriptor_returnID_transactionID_( + int eventClass, + int eventID, + NSAppleEventDescriptor? targetDescriptor, + int returnID, + int transactionID) { + final _ret = _lib._objc_msgSend_575( + _id, + _lib._sel_initWithEventClass_eventID_targetDescriptor_returnID_transactionID_1, + eventClass, + eventID, + targetDescriptor?._id ?? ffi.nullptr, + returnID, + transactionID); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - NSMutableDictionary? get threadDictionary { - final _ret = _lib._objc_msgSend_503(_id, _lib._sel_threadDictionary1); - return _ret.address == 0 - ? null - : NSMutableDictionary._(_ret, _lib, retain: true, release: true); + NSAppleEventDescriptor initListDescriptor() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_initListDescriptor1); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - static void sleepUntilDate_(SentryCocoa _lib, NSDate? date) { - _lib._objc_msgSend_504(_lib._class_NSThread1, _lib._sel_sleepUntilDate_1, - date?._id ?? ffi.nullptr); + NSAppleEventDescriptor initRecordDescriptor() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_initRecordDescriptor1); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - static void sleepForTimeInterval_(SentryCocoa _lib, double ti) { - _lib._objc_msgSend_505( - _lib._class_NSThread1, _lib._sel_sleepForTimeInterval_1, ti); + ffi.Pointer get aeDesc { + return _lib._objc_msgSend_576(_id, _lib._sel_aeDesc1); } - static void exit(SentryCocoa _lib) { - _lib._objc_msgSend_1(_lib._class_NSThread1, _lib._sel_exit1); + int get descriptorType { + return _lib._objc_msgSend_197(_id, _lib._sel_descriptorType1); } - double get threadPriority { - return _lib._objc_msgSend_155(_id, _lib._sel_threadPriority1); + 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); } - set threadPriority(double value) { - return _lib._objc_msgSend_506(_id, _lib._sel_setThreadPriority_1, value); + int get booleanValue { + return _lib._objc_msgSend_216(_id, _lib._sel_booleanValue1); } - int get qualityOfService { - return _lib._objc_msgSend_507(_id, _lib._sel_qualityOfService1); + int get enumCodeValue { + return _lib._objc_msgSend_197(_id, _lib._sel_enumCodeValue1); } - set qualityOfService(int value) { - return _lib._objc_msgSend_508(_id, _lib._sel_setQualityOfService_1, value); + int get int32Value { + return _lib._objc_msgSend_219(_id, _lib._sel_int32Value1); } - static NSArray? getCallStackReturnAddresses(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSThread1, _lib._sel_callStackReturnAddresses1); + double get doubleValue { + return _lib._objc_msgSend_155(_id, _lib._sel_doubleValue1); + } + + int get typeCodeValue { + return _lib._objc_msgSend_197(_id, _lib._sel_typeCodeValue1); + } + + NSString? get stringValue { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_stringValue1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - static NSArray? getCallStackSymbols(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSThread1, _lib._sel_callStackSymbols1); + NSDate? get dateValue { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_dateValue1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSDate._(_ret, _lib, retain: true, release: true); } - NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + NSURL? get fileURLValue { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_fileURLValue1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSURL._(_ret, _lib, retain: true, release: true); } - set name(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + int get eventClass { + return _lib._objc_msgSend_197(_id, _lib._sel_eventClass1); } - int get stackSize { - return _lib._objc_msgSend_10(_id, _lib._sel_stackSize1); + int get eventID { + return _lib._objc_msgSend_197(_id, _lib._sel_eventID1); } - set stackSize(int value) { - return _lib._objc_msgSend_483(_id, _lib._sel_setStackSize_1, value); + int get returnID { + return _lib._objc_msgSend_217(_id, _lib._sel_returnID1); } - bool get isMainThread { - return _lib._objc_msgSend_12(_id, _lib._sel_isMainThread1); + int get transactionID { + return _lib._objc_msgSend_219(_id, _lib._sel_transactionID1); } - static NSThread? getMainThread(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_496(_lib._class_NSThread1, _lib._sel_mainThread1); - return _ret.address == 0 - ? null - : NSThread._(_ret, _lib, retain: true, release: true); + void setParamDescriptor_forKeyword_( + NSAppleEventDescriptor? descriptor, int keyword) { + _lib._objc_msgSend_577(_id, _lib._sel_setParamDescriptor_forKeyword_1, + descriptor?._id ?? ffi.nullptr, keyword); } - @override - NSThread init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSThread._(_ret, _lib, retain: true, release: true); + NSAppleEventDescriptor paramDescriptorForKeyword_(int keyword) { + final _ret = _lib._objc_msgSend_565( + _id, _lib._sel_paramDescriptorForKeyword_1, keyword); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - NSThread initWithTarget_selector_object_( - NSObject target, ffi.Pointer selector, NSObject argument) { - final _ret = _lib._objc_msgSend_510( + void removeParamDescriptorWithKeyword_(int keyword) { + _lib._objc_msgSend_578( + _id, _lib._sel_removeParamDescriptorWithKeyword_1, keyword); + } + + void setAttributeDescriptor_forKeyword_( + NSAppleEventDescriptor? descriptor, int keyword) { + _lib._objc_msgSend_577(_id, _lib._sel_setAttributeDescriptor_forKeyword_1, + descriptor?._id ?? ffi.nullptr, keyword); + } + + NSAppleEventDescriptor attributeDescriptorForKeyword_(int keyword) { + final _ret = _lib._objc_msgSend_565( + _id, _lib._sel_attributeDescriptorForKeyword_1, keyword); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + NSAppleEventDescriptor sendEventWithOptions_timeout_error_(int sendOptions, + double timeoutInSeconds, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_579( _id, - _lib._sel_initWithTarget_selector_object_1, - target._id, - selector, - argument._id); - return NSThread._(_ret, _lib, retain: true, release: true); + _lib._sel_sendEventWithOptions_timeout_error_1, + sendOptions, + timeoutInSeconds, + error); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - NSThread initWithBlock_(ObjCBlock_ffiVoid block) { + bool get isRecordDescriptor { + return _lib._objc_msgSend_12(_id, _lib._sel_isRecordDescriptor1); + } + + int get numberOfItems { + return _lib._objc_msgSend_78(_id, _lib._sel_numberOfItems1); + } + + void insertDescriptor_atIndex_( + NSAppleEventDescriptor? descriptor, int index) { + _lib._objc_msgSend_580(_id, _lib._sel_insertDescriptor_atIndex_1, + descriptor?._id ?? ffi.nullptr, index); + } + + NSAppleEventDescriptor descriptorAtIndex_(int index) { final _ret = - _lib._objc_msgSend_511(_id, _lib._sel_initWithBlock_1, block._id); - return NSThread._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_581(_id, _lib._sel_descriptorAtIndex_1, index); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - bool get executing { - return _lib._objc_msgSend_12(_id, _lib._sel_isExecuting1); + void removeDescriptorAtIndex_(int index) { + _lib._objc_msgSend_396(_id, _lib._sel_removeDescriptorAtIndex_1, index); } - bool get finished { - return _lib._objc_msgSend_12(_id, _lib._sel_isFinished1); + void setDescriptor_forKeyword_( + NSAppleEventDescriptor? descriptor, int keyword) { + _lib._objc_msgSend_577(_id, _lib._sel_setDescriptor_forKeyword_1, + descriptor?._id ?? ffi.nullptr, keyword); } - bool get cancelled { - return _lib._objc_msgSend_12(_id, _lib._sel_isCancelled1); + NSAppleEventDescriptor descriptorForKeyword_(int keyword) { + final _ret = + _lib._objc_msgSend_565(_id, _lib._sel_descriptorForKeyword_1, keyword); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - void cancel() { - _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + void removeDescriptorWithKeyword_(int keyword) { + _lib._objc_msgSend_578( + _id, _lib._sel_removeDescriptorWithKeyword_1, keyword); } - void start() { - _lib._objc_msgSend_1(_id, _lib._sel_start1); + int keywordForDescriptorAtIndex_(int index) { + return _lib._objc_msgSend_582( + _id, _lib._sel_keywordForDescriptorAtIndex_1, index); } - void main() { - _lib._objc_msgSend_1(_id, _lib._sel_main1); + NSAppleEventDescriptor coerceToDescriptorType_(int descriptorType) { + final _ret = _lib._objc_msgSend_565( + _id, _lib._sel_coerceToDescriptorType_1, descriptorType); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + @override + NSAppleEventDescriptor init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - static NSThread new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSThread1, _lib._sel_new1); - return NSThread._(_ret, _lib, retain: false, release: true); + static NSAppleEventDescriptor new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSAppleEventDescriptor1, _lib._sel_new1); + return NSAppleEventDescriptor._(_ret, _lib, retain: false, release: true); } - static NSThread allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static NSAppleEventDescriptor allocWithZone_( + SentryCocoa _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); + _lib._class_NSAppleEventDescriptor1, _lib._sel_allocWithZone_1, zone); + return NSAppleEventDescriptor._(_ret, _lib, retain: false, release: true); } - static NSThread alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSThread1, _lib._sel_alloc1); - return NSThread._(_ret, _lib, retain: false, release: true); + static NSAppleEventDescriptor alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSAppleEventDescriptor1, _lib._sel_alloc1); + return NSAppleEventDescriptor._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -45856,7 +51181,7 @@ class NSThread extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSThread1, + _lib._class_NSAppleEventDescriptor1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -45865,24 +51190,24 @@ class NSThread extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSThread1, + _lib._objc_msgSend_15(_lib._class_NSAppleEventDescriptor1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSThread1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSAppleEventDescriptor1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSThread1, _lib._sel_useStoredAccessor1); + _lib._class_NSAppleEventDescriptor1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSThread1, + _lib._class_NSAppleEventDescriptor1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -45891,7 +51216,7 @@ class NSThread extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSThread1, + _lib._class_NSAppleEventDescriptor1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -45899,331 +51224,244 @@ class NSThread extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSThread1, + _lib._class_NSAppleEventDescriptor1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSThread1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_NSAppleEventDescriptor1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSThread1, _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2(_lib._class_NSAppleEventDescriptor1, + _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -void _ObjCBlock_ffiVoid_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block) { - return block.ref.target - .cast>() - .asFunction()(); -} - -final _ObjCBlock_ffiVoid_closureRegistry = {}; -int _ObjCBlock_ffiVoid_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_registerClosure(Function fn) { - final id = ++_ObjCBlock_ffiVoid_closureRegistryIndex; - _ObjCBlock_ffiVoid_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} +@ffi.Packed(2) +final class AEDesc extends ffi.Struct { + @ffi.UnsignedInt() + external int descriptorType; -void _ObjCBlock_ffiVoid_closureTrampoline(ffi.Pointer<_ObjCBlock> block) { - return (_ObjCBlock_ffiVoid_closureRegistry[block.ref.target.address] as void - Function())(); + external ffi.Pointer> dataHandle; } -class ObjCBlock_ffiVoid extends _ObjCBlockBase { - ObjCBlock_ffiVoid._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid.fromFunctionPointer( - SentryCocoa lib, ffi.Pointer> ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block)>( - _ObjCBlock_ffiVoid_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; +final class OpaqueAEDataStorageType extends ffi.Opaque {} - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid.fromFunction(SentryCocoa lib, void Function() fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block)>( - _ObjCBlock_ffiVoid_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call() { - return _id.ref.invoke - .cast< - ffi - .NativeFunction block)>>() - .asFunction block)>()(_id); - } +abstract class NSAppleEventSendOptions { + static const int NSAppleEventSendNoReply = 1; + static const int NSAppleEventSendQueueReply = 2; + static const int NSAppleEventSendWaitForReply = 3; + static const int NSAppleEventSendNeverInteract = 16; + static const int NSAppleEventSendCanInteract = 32; + static const int NSAppleEventSendAlwaysInteract = 48; + static const int NSAppleEventSendCanSwitchLayer = 64; + static const int NSAppleEventSendDontRecord = 4096; + static const int NSAppleEventSendDontExecute = 8192; + static const int NSAppleEventSendDontAnnotate = 65536; + static const int NSAppleEventSendDefaultOptions = 35; } -class NSMutableDictionary extends NSDictionary { - NSMutableDictionary._(ffi.Pointer id, SentryCocoa lib, +class NSScriptClassDescription extends NSClassDescription { + NSScriptClassDescription._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSMutableDictionary] that points to the same underlying object as [other]. - static NSMutableDictionary castFrom(T other) { - return NSMutableDictionary._(other._id, other._lib, + /// Returns a [NSScriptClassDescription] that points to the same underlying object as [other]. + static NSScriptClassDescription castFrom(T other) { + return NSScriptClassDescription._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSMutableDictionary] that wraps the given raw object pointer. - static NSMutableDictionary castFromPointer( + /// Returns a [NSScriptClassDescription] that wraps the given raw object pointer. + static NSScriptClassDescription castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSMutableDictionary._(other, lib, retain: retain, release: release); + return NSScriptClassDescription._(other, lib, + retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSMutableDictionary]. + /// Returns whether [obj] is an instance of [NSScriptClassDescription]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMutableDictionary1); - } - - void removeObjectForKey_(NSObject aKey) { - _lib._objc_msgSend_15(_id, _lib._sel_removeObjectForKey_1, aKey._id); - } - - void setObject_forKey_(NSObject anObject, NSObject? aKey) { - _lib._objc_msgSend_499(_id, _lib._sel_setObject_forKey_1, anObject._id, - aKey?._id ?? ffi.nullptr); + obj._lib._class_NSScriptClassDescription1); } - @override - NSMutableDictionary init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + static NSScriptClassDescription classDescriptionForClass_( + SentryCocoa _lib, NSObject aClass) { + final _ret = _lib._objc_msgSend_585(_lib._class_NSScriptClassDescription1, + _lib._sel_classDescriptionForClass_1, aClass._id); + return NSScriptClassDescription._(_ret, _lib, retain: true, release: true); } - NSMutableDictionary initWithCapacity_(int numItems) { - final _ret = - _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, numItems); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + NSScriptClassDescription initWithSuiteName_className_dictionary_( + NSString? suiteName, + NSString? className, + NSDictionary? classDeclaration) { + final _ret = _lib._objc_msgSend_586( + _id, + _lib._sel_initWithSuiteName_className_dictionary_1, + suiteName?._id ?? ffi.nullptr, + className?._id ?? ffi.nullptr, + classDeclaration?._id ?? ffi.nullptr); + return NSScriptClassDescription._(_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); + NSString? get suiteName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_suiteName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void addEntriesFromDictionary_(NSDictionary? otherDictionary) { - _lib._objc_msgSend_476(_id, _lib._sel_addEntriesFromDictionary_1, - otherDictionary?._id ?? ffi.nullptr); + NSString? get className { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_className1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void removeAllObjects() { - _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); + NSString? get implementationClassName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_implementationClassName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void removeObjectsForKeys_(NSArray? keyArray) { - _lib._objc_msgSend_441( - _id, _lib._sel_removeObjectsForKeys_1, keyArray?._id ?? ffi.nullptr); + NSScriptClassDescription? get superclassDescription { + final _ret = _lib._objc_msgSend_587(_id, _lib._sel_superclassDescription1); + return _ret.address == 0 + ? null + : NSScriptClassDescription._(_ret, _lib, retain: true, release: true); } - void setDictionary_(NSDictionary? otherDictionary) { - _lib._objc_msgSend_476( - _id, _lib._sel_setDictionary_1, otherDictionary?._id ?? ffi.nullptr); + int get appleEventCode { + return _lib._objc_msgSend_197(_id, _lib._sel_appleEventCode1); } - void setObject_forKeyedSubscript_(NSObject obj, NSObject? key) { - _lib._objc_msgSend_499(_id, _lib._sel_setObject_forKeyedSubscript_1, - obj._id, key?._id ?? ffi.nullptr); + bool matchesAppleEventCode_(int appleEventCode) { + return _lib._objc_msgSend_179( + _id, _lib._sel_matchesAppleEventCode_1, appleEventCode); } - static NSMutableDictionary dictionaryWithCapacity_( - SentryCocoa _lib, int numItems) { - final _ret = _lib._objc_msgSend_60(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithCapacity_1, numItems); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + bool supportsCommand_(NSScriptCommandDescription? commandDescription) { + return _lib._objc_msgSend_597(_id, _lib._sel_supportsCommand_1, + commandDescription?._id ?? ffi.nullptr); } - static NSMutableDictionary dictionaryWithContentsOfFile_( - SentryCocoa _lib, NSString? path) { - final _ret = _lib._objc_msgSend_500(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + ffi.Pointer selectorForCommand_( + NSScriptCommandDescription? commandDescription) { + return _lib._objc_msgSend_598(_id, _lib._sel_selectorForCommand_1, + commandDescription?._id ?? ffi.nullptr); } - static NSMutableDictionary dictionaryWithContentsOfURL_( - SentryCocoa _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_501(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + NSString typeForKey_(NSString? key) { + final _ret = _lib._objc_msgSend_64( + _id, _lib._sel_typeForKey_1, key?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - NSMutableDictionary initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_500( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + NSScriptClassDescription classDescriptionForKey_(NSString? key) { + final _ret = _lib._objc_msgSend_599( + _id, _lib._sel_classDescriptionForKey_1, key?._id ?? ffi.nullptr); + return NSScriptClassDescription._(_ret, _lib, retain: true, release: true); } - NSMutableDictionary initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_501( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + int appleEventCodeForKey_(NSString? key) { + return _lib._objc_msgSend_588( + _id, _lib._sel_appleEventCodeForKey_1, key?._id ?? ffi.nullptr); } - static NSMutableDictionary dictionaryWithSharedKeySet_( - SentryCocoa _lib, NSObject keyset) { - final _ret = _lib._objc_msgSend_502(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithSharedKeySet_1, keyset._id); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + NSString keyWithAppleEventCode_(int appleEventCode) { + final _ret = _lib._objc_msgSend_600( + _id, _lib._sel_keyWithAppleEventCode_1, appleEventCode); + return NSString._(_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, key?._id ?? ffi.nullptr); + NSString? get defaultSubcontainerAttributeKey { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_defaultSubcontainerAttributeKey1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - @override - NSMutableDictionary initWithObjects_forKeys_count_( - ffi.Pointer> objects, - ffi.Pointer> keys, - int cnt) { - final _ret = _lib._objc_msgSend_137( - _id, _lib._sel_initWithObjects_forKeys_count_1, objects, keys, cnt); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + bool isLocationRequiredToCreateForKey_(NSString? toManyRelationshipKey) { + return _lib._objc_msgSend_59( + _id, + _lib._sel_isLocationRequiredToCreateForKey_1, + toManyRelationshipKey?._id ?? ffi.nullptr); } - static NSMutableDictionary dictionary(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableDictionary1, _lib._sel_dictionary1); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + bool hasPropertyForKey_(NSString? key) { + return _lib._objc_msgSend_59( + _id, _lib._sel_hasPropertyForKey_1, key?._id ?? ffi.nullptr); } - static NSMutableDictionary dictionaryWithObject_forKey_( - SentryCocoa _lib, NSObject object, NSObject? key) { - final _ret = _lib._objc_msgSend_148( - _lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithObject_forKey_1, - object._id, + bool hasOrderedToManyRelationshipForKey_(NSString? key) { + return _lib._objc_msgSend_59( + _id, + _lib._sel_hasOrderedToManyRelationshipForKey_1, key?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); - } - - static NSMutableDictionary dictionaryWithObjects_forKeys_count_( - SentryCocoa _lib, - ffi.Pointer> objects, - ffi.Pointer> keys, - int cnt) { - final _ret = _lib._objc_msgSend_137(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithObjects_forKeys_count_1, objects, keys, cnt); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); - } - - static NSMutableDictionary dictionaryWithObjectsAndKeys_( - SentryCocoa _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 NSMutableDictionary dictionaryWithDictionary_( - SentryCocoa _lib, NSDictionary? dict) { - final _ret = _lib._objc_msgSend_149(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithDictionary_1, dict?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + bool hasReadablePropertyForKey_(NSString? key) { + return _lib._objc_msgSend_59( + _id, _lib._sel_hasReadablePropertyForKey_1, key?._id ?? ffi.nullptr); } - static NSMutableDictionary dictionaryWithObjects_forKeys_( - SentryCocoa _lib, NSArray? objects, NSArray? keys) { - final _ret = _lib._objc_msgSend_150( - _lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithObjects_forKeys_1, - objects?._id ?? ffi.nullptr, - keys?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + bool hasWritablePropertyForKey_(NSString? key) { + return _lib._objc_msgSend_59( + _id, _lib._sel_hasWritablePropertyForKey_1, key?._id ?? ffi.nullptr); } - @override - NSMutableDictionary initWithObjectsAndKeys_(NSObject firstObject) { - final _ret = _lib._objc_msgSend_16( - _id, _lib._sel_initWithObjectsAndKeys_1, firstObject._id); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + bool isReadOnlyKey_(NSString? key) { + return _lib._objc_msgSend_59( + _id, _lib._sel_isReadOnlyKey_1, key?._id ?? ffi.nullptr); } - @override - NSMutableDictionary initWithDictionary_(NSDictionary? otherDictionary) { - final _ret = _lib._objc_msgSend_149(_id, _lib._sel_initWithDictionary_1, - otherDictionary?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + static void registerClassDescription_forClass_( + SentryCocoa _lib, NSClassDescription? description, NSObject aClass) { + _lib._objc_msgSend_558( + _lib._class_NSScriptClassDescription1, + _lib._sel_registerClassDescription_forClass_1, + description?._id ?? ffi.nullptr, + aClass._id); } - @override - NSMutableDictionary initWithDictionary_copyItems_( - NSDictionary? otherDictionary, bool flag) { - final _ret = _lib._objc_msgSend_151( - _id, - _lib._sel_initWithDictionary_copyItems_1, - otherDictionary?._id ?? ffi.nullptr, - flag); - return NSMutableDictionary._(_ret, _lib, retain: false, release: true); + static void invalidateClassDescriptionCache(SentryCocoa _lib) { + _lib._objc_msgSend_1(_lib._class_NSScriptClassDescription1, + _lib._sel_invalidateClassDescriptionCache1); } @override - NSMutableDictionary initWithObjects_forKeys_( - NSArray? objects, NSArray? keys) { - final _ret = _lib._objc_msgSend_150( - _id, - _lib._sel_initWithObjects_forKeys_1, - objects?._id ?? ffi.nullptr, - keys?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); - } - - static NSDictionary dictionaryWithContentsOfURL_error_(SentryCocoa _lib, - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_152( - _lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - static NSObject sharedKeySetForKeys_(SentryCocoa _lib, NSArray? keys) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSMutableDictionary1, - _lib._sel_sharedKeySetForKeys_1, keys?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSScriptClassDescription init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSScriptClassDescription._(_ret, _lib, retain: true, release: true); } - static NSMutableDictionary new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableDictionary1, _lib._sel_new1); - return NSMutableDictionary._(_ret, _lib, retain: false, release: true); + static NSScriptClassDescription new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSScriptClassDescription1, _lib._sel_new1); + return NSScriptClassDescription._(_ret, _lib, retain: false, release: true); } - static NSMutableDictionary allocWithZone_( + static NSScriptClassDescription allocWithZone_( SentryCocoa _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); + _lib._class_NSScriptClassDescription1, _lib._sel_allocWithZone_1, zone); + return NSScriptClassDescription._(_ret, _lib, retain: false, release: true); } - static NSMutableDictionary alloc(SentryCocoa _lib) { + static NSScriptClassDescription alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableDictionary1, _lib._sel_alloc1); - return NSMutableDictionary._(_ret, _lib, retain: false, release: true); + _lib._class_NSScriptClassDescription1, _lib._sel_alloc1); + return NSScriptClassDescription._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -46232,7 +51470,7 @@ class NSMutableDictionary extends NSDictionary { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSMutableDictionary1, + _lib._class_NSScriptClassDescription1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -46241,24 +51479,24 @@ class NSMutableDictionary extends NSDictionary { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSMutableDictionary1, + _lib._objc_msgSend_15(_lib._class_NSScriptClassDescription1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSMutableDictionary1, + return _lib._objc_msgSend_12(_lib._class_NSScriptClassDescription1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSMutableDictionary1, _lib._sel_useStoredAccessor1); + _lib._class_NSScriptClassDescription1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableDictionary1, + _lib._class_NSScriptClassDescription1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -46267,7 +51505,7 @@ class NSMutableDictionary extends NSDictionary { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSMutableDictionary1, + _lib._class_NSScriptClassDescription1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -46275,136 +51513,173 @@ class NSMutableDictionary extends NSDictionary { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSMutableDictionary1, + _lib._class_NSScriptClassDescription1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSMutableDictionary1, + final _ret = _lib._objc_msgSend_79(_lib._class_NSScriptClassDescription1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableDictionary1, _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2(_lib._class_NSScriptClassDescription1, + _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 NSArchiver extends NSCoder { - NSArchiver._(ffi.Pointer id, SentryCocoa lib, +class NSScriptCommandDescription extends NSObject { + NSScriptCommandDescription._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSArchiver] that points to the same underlying object as [other]. - static NSArchiver castFrom(T other) { - return NSArchiver._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSScriptCommandDescription] that points to the same underlying object as [other]. + static NSScriptCommandDescription castFrom(T other) { + return NSScriptCommandDescription._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSArchiver] that wraps the given raw object pointer. - static NSArchiver castFromPointer( + /// Returns a [NSScriptCommandDescription] that wraps the given raw object pointer. + static NSScriptCommandDescription castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSArchiver._(other, lib, retain: retain, release: release); + return NSScriptCommandDescription._(other, lib, + retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSArchiver]. + /// Returns whether [obj] is an instance of [NSScriptCommandDescription]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSArchiver1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSScriptCommandDescription1); } - NSArchiver initForWritingWithMutableData_(NSMutableData? mdata) { - final _ret = _lib._objc_msgSend_487(_id, - _lib._sel_initForWritingWithMutableData_1, mdata?._id ?? ffi.nullptr); - return NSArchiver._(_ret, _lib, retain: true, release: true); + @override + NSObject init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSMutableData? get archiverData { - final _ret = _lib._objc_msgSend_514(_id, _lib._sel_archiverData1); + NSScriptCommandDescription initWithSuiteName_commandName_dictionary_( + NSString? suiteName, + NSString? commandName, + NSDictionary? commandDeclaration) { + final _ret = _lib._objc_msgSend_586( + _id, + _lib._sel_initWithSuiteName_commandName_dictionary_1, + suiteName?._id ?? ffi.nullptr, + commandName?._id ?? ffi.nullptr, + commandDeclaration?._id ?? ffi.nullptr); + return NSScriptCommandDescription._(_ret, _lib, + retain: true, release: true); + } + + NSScriptCommandDescription initWithCoder_(NSCoder? inCoder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); + return NSScriptCommandDescription._(_ret, _lib, + retain: true, release: true); + } + + NSString? get suiteName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_suiteName1); return _ret.address == 0 ? null - : NSMutableData._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - @override - void encodeRootObject_(NSObject rootObject) { - _lib._objc_msgSend_15(_id, _lib._sel_encodeRootObject_1, rootObject._id); + NSString? get commandName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_commandName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + int get appleEventClassCode { + return _lib._objc_msgSend_197(_id, _lib._sel_appleEventClassCode1); + } + + int get appleEventCode { + return _lib._objc_msgSend_197(_id, _lib._sel_appleEventCode1); + } + + NSString? get commandClassName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_commandClassName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get returnType { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_returnType1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - @override - void encodeConditionalObject_(NSObject object) { - _lib._objc_msgSend_15(_id, _lib._sel_encodeConditionalObject_1, object._id); + int get appleEventCodeForReturnType { + return _lib._objc_msgSend_197(_id, _lib._sel_appleEventCodeForReturnType1); } - static NSData archivedDataWithRootObject_( - SentryCocoa _lib, NSObject rootObject) { - final _ret = _lib._objc_msgSend_488(_lib._class_NSArchiver1, - _lib._sel_archivedDataWithRootObject_1, rootObject._id); - return NSData._(_ret, _lib, retain: true, release: true); + NSArray? get argumentNames { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_argumentNames1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - static bool archiveRootObject_toFile_( - SentryCocoa _lib, NSObject rootObject, NSString? path) { - return _lib._objc_msgSend_240( - _lib._class_NSArchiver1, - _lib._sel_archiveRootObject_toFile_1, - rootObject._id, - path?._id ?? ffi.nullptr); + NSString typeForArgumentWithName_(NSString? argumentName) { + final _ret = _lib._objc_msgSend_64(_id, _lib._sel_typeForArgumentWithName_1, + argumentName?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - void encodeClassName_intoClassName_( - NSString? trueName, NSString? inArchiveName) { - _lib._objc_msgSend_515(_id, _lib._sel_encodeClassName_intoClassName_1, - trueName?._id ?? ffi.nullptr, inArchiveName?._id ?? ffi.nullptr); + int appleEventCodeForArgumentWithName_(NSString? argumentName) { + return _lib._objc_msgSend_588( + _id, + _lib._sel_appleEventCodeForArgumentWithName_1, + argumentName?._id ?? ffi.nullptr); } - NSString classNameEncodedForTrueClassName_(NSString? trueName) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_classNameEncodedForTrueClassName_1, - trueName?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + bool isOptionalArgumentWithName_(NSString? argumentName) { + return _lib._objc_msgSend_59(_id, _lib._sel_isOptionalArgumentWithName_1, + argumentName?._id ?? ffi.nullptr); } - void replaceObject_withObject_(NSObject object, NSObject newObject) { - _lib._objc_msgSend_499( - _id, _lib._sel_replaceObject_withObject_1, object._id, newObject._id); + NSScriptCommand createCommandInstance() { + final _ret = _lib._objc_msgSend_595(_id, _lib._sel_createCommandInstance1); + return NSScriptCommand._(_ret, _lib, retain: true, release: true); } - @override - NSArchiver init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSArchiver._(_ret, _lib, retain: true, release: true); + NSScriptCommand createCommandInstanceWithZone_(ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_596( + _id, _lib._sel_createCommandInstanceWithZone_1, zone); + return NSScriptCommand._(_ret, _lib, retain: true, release: true); } - static NSArchiver new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSArchiver1, _lib._sel_new1); - return NSArchiver._(_ret, _lib, retain: false, release: true); + static NSScriptCommandDescription new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSScriptCommandDescription1, _lib._sel_new1); + return NSScriptCommandDescription._(_ret, _lib, + retain: false, release: true); } - static NSArchiver allocWithZone_( + static NSScriptCommandDescription allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSArchiver1, _lib._sel_allocWithZone_1, zone); - return NSArchiver._(_ret, _lib, retain: false, release: true); + final _ret = _lib._objc_msgSend_3(_lib._class_NSScriptCommandDescription1, + _lib._sel_allocWithZone_1, zone); + return NSScriptCommandDescription._(_ret, _lib, + retain: false, release: true); } - static NSArchiver alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSArchiver1, _lib._sel_alloc1); - return NSArchiver._(_ret, _lib, retain: false, release: true); + static NSScriptCommandDescription alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSScriptCommandDescription1, _lib._sel_alloc1); + return NSScriptCommandDescription._(_ret, _lib, + retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -46413,7 +51688,7 @@ class NSArchiver extends NSCoder { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSArchiver1, + _lib._class_NSScriptCommandDescription1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -46422,24 +51697,24 @@ class NSArchiver extends NSCoder { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSArchiver1, + _lib._objc_msgSend_15(_lib._class_NSScriptCommandDescription1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSArchiver1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSScriptCommandDescription1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSArchiver1, _lib._sel_useStoredAccessor1); + _lib._class_NSScriptCommandDescription1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSArchiver1, + _lib._class_NSScriptCommandDescription1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -46448,7 +51723,7 @@ class NSArchiver extends NSCoder { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSArchiver1, + _lib._class_NSScriptCommandDescription1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -46456,119 +51731,225 @@ class NSArchiver extends NSCoder { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSArchiver1, + _lib._class_NSScriptCommandDescription1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSArchiver1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_NSScriptCommandDescription1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSArchiver1, _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2(_lib._class_NSScriptCommandDescription1, + _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSPortCoder extends NSCoder { - NSPortCoder._(ffi.Pointer id, SentryCocoa lib, +class NSScriptCommand extends NSObject { + NSScriptCommand._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSPortCoder] that points to the same underlying object as [other]. - static NSPortCoder castFrom(T other) { - return NSPortCoder._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSScriptCommand] that points to the same underlying object as [other]. + static NSScriptCommand castFrom(T other) { + return NSScriptCommand._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSPortCoder] that wraps the given raw object pointer. - static NSPortCoder castFromPointer( + /// Returns a [NSScriptCommand] that wraps the given raw object pointer. + static NSScriptCommand castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSPortCoder._(other, lib, retain: retain, release: release); + return NSScriptCommand._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSPortCoder]. + /// Returns whether [obj] is an instance of [NSScriptCommand]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSPortCoder1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSScriptCommand1); } - bool isBycopy() { - return _lib._objc_msgSend_12(_id, _lib._sel_isBycopy1); + NSScriptCommand initWithCommandDescription_( + NSScriptCommandDescription? commandDef) { + final _ret = _lib._objc_msgSend_589(_id, + _lib._sel_initWithCommandDescription_1, commandDef?._id ?? ffi.nullptr); + return NSScriptCommand._(_ret, _lib, retain: true, release: true); } - bool isByref() { - return _lib._objc_msgSend_12(_id, _lib._sel_isByref1); + NSScriptCommand initWithCoder_(NSCoder? inCoder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); + return NSScriptCommand._(_ret, _lib, retain: true, release: true); } - void encodePortObject_(NSPort? aport) { - _lib._objc_msgSend_552( - _id, _lib._sel_encodePortObject_1, aport?._id ?? ffi.nullptr); + NSScriptCommandDescription? get commandDescription { + final _ret = _lib._objc_msgSend_590(_id, _lib._sel_commandDescription1); + return _ret.address == 0 + ? null + : NSScriptCommandDescription._(_ret, _lib, retain: true, release: true); } - NSPort decodePortObject() { - final _ret = _lib._objc_msgSend_517(_id, _lib._sel_decodePortObject1); - return NSPort._(_ret, _lib, retain: true, release: true); + NSObject get directParameter { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_directParameter1); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSConnection connection() { - final _ret = _lib._objc_msgSend_536(_id, _lib._sel_connection1); - return NSConnection._(_ret, _lib, retain: true, release: true); + set directParameter(NSObject value) { + return _lib._objc_msgSend_389( + _id, _lib._sel_setDirectParameter_1, value._id); } - static NSObject portCoderWithReceivePort_sendPort_components_( - SentryCocoa _lib, NSPort? rcvPort, NSPort? sndPort, NSArray? comps) { - final _ret = _lib._objc_msgSend_553( - _lib._class_NSPortCoder1, - _lib._sel_portCoderWithReceivePort_sendPort_components_1, - rcvPort?._id ?? ffi.nullptr, - sndPort?._id ?? ffi.nullptr, - comps?._id ?? ffi.nullptr); + NSScriptObjectSpecifier? get receiversSpecifier { + final _ret = _lib._objc_msgSend_591(_id, _lib._sel_receiversSpecifier1); + return _ret.address == 0 + ? null + : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); + } + + set receiversSpecifier(NSScriptObjectSpecifier? value) { + return _lib._objc_msgSend_592( + _id, _lib._sel_setReceiversSpecifier_1, value?._id ?? ffi.nullptr); + } + + NSObject get evaluatedReceivers { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_evaluatedReceivers1); return NSObject._(_ret, _lib, retain: true, release: true); } - NSObject initWithReceivePort_sendPort_components_( - NSPort? rcvPort, NSPort? sndPort, NSArray? comps) { - final _ret = _lib._objc_msgSend_553( - _id, - _lib._sel_initWithReceivePort_sendPort_components_1, - rcvPort?._id ?? ffi.nullptr, - sndPort?._id ?? ffi.nullptr, - comps?._id ?? ffi.nullptr); + NSDictionary? get arguments { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_arguments1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + set arguments(NSDictionary? value) { + return _lib._objc_msgSend_171( + _id, _lib._sel_setArguments_1, value?._id ?? ffi.nullptr); + } + + NSDictionary? get evaluatedArguments { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_evaluatedArguments1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + bool get wellFormed { + return _lib._objc_msgSend_12(_id, _lib._sel_isWellFormed1); + } + + NSObject performDefaultImplementation() { + final _ret = + _lib._objc_msgSend_2(_id, _lib._sel_performDefaultImplementation1); return NSObject._(_ret, _lib, retain: true, release: true); } - void dispatch() { - _lib._objc_msgSend_1(_id, _lib._sel_dispatch1); + NSObject executeCommand() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_executeCommand1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + int get scriptErrorNumber { + return _lib._objc_msgSend_78(_id, _lib._sel_scriptErrorNumber1); + } + + set scriptErrorNumber(int value) { + return _lib._objc_msgSend_593(_id, _lib._sel_setScriptErrorNumber_1, value); + } + + NSAppleEventDescriptor? get scriptErrorOffendingObjectDescriptor { + final _ret = _lib._objc_msgSend_561( + _id, _lib._sel_scriptErrorOffendingObjectDescriptor1); + return _ret.address == 0 + ? null + : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + set scriptErrorOffendingObjectDescriptor(NSAppleEventDescriptor? value) { + return _lib._objc_msgSend_594( + _id, + _lib._sel_setScriptErrorOffendingObjectDescriptor_1, + value?._id ?? ffi.nullptr); + } + + NSAppleEventDescriptor? get scriptErrorExpectedTypeDescriptor { + final _ret = _lib._objc_msgSend_561( + _id, _lib._sel_scriptErrorExpectedTypeDescriptor1); + return _ret.address == 0 + ? null + : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + set scriptErrorExpectedTypeDescriptor(NSAppleEventDescriptor? value) { + return _lib._objc_msgSend_594( + _id, + _lib._sel_setScriptErrorExpectedTypeDescriptor_1, + value?._id ?? ffi.nullptr); + } + + NSString? get scriptErrorString { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_scriptErrorString1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set scriptErrorString(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setScriptErrorString_1, value?._id ?? ffi.nullptr); + } + + static NSScriptCommand currentCommand(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_595( + _lib._class_NSScriptCommand1, _lib._sel_currentCommand1); + return NSScriptCommand._(_ret, _lib, retain: true, release: true); + } + + NSAppleEventDescriptor? get appleEvent { + final _ret = _lib._objc_msgSend_561(_id, _lib._sel_appleEvent1); + return _ret.address == 0 + ? null + : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + void suspendExecution() { + _lib._objc_msgSend_1(_id, _lib._sel_suspendExecution1); + } + + void resumeExecutionWithResult_(NSObject result) { + _lib._objc_msgSend_15( + _id, _lib._sel_resumeExecutionWithResult_1, result._id); } @override - NSPortCoder init() { + NSScriptCommand init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSPortCoder._(_ret, _lib, retain: true, release: true); + return NSScriptCommand._(_ret, _lib, retain: true, release: true); } - static NSPortCoder new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSPortCoder1, _lib._sel_new1); - return NSPortCoder._(_ret, _lib, retain: false, release: true); + static NSScriptCommand new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSScriptCommand1, _lib._sel_new1); + return NSScriptCommand._(_ret, _lib, retain: false, release: true); } - static NSPortCoder allocWithZone_( + static NSScriptCommand allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSPortCoder1, _lib._sel_allocWithZone_1, zone); - return NSPortCoder._(_ret, _lib, retain: false, release: true); + _lib._class_NSScriptCommand1, _lib._sel_allocWithZone_1, zone); + return NSScriptCommand._(_ret, _lib, retain: false, release: true); } - static NSPortCoder alloc(SentryCocoa _lib) { + static NSScriptCommand alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSPortCoder1, _lib._sel_alloc1); - return NSPortCoder._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSScriptCommand1, _lib._sel_alloc1); + return NSScriptCommand._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -46577,7 +51958,7 @@ class NSPortCoder extends NSCoder { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSPortCoder1, + _lib._class_NSScriptCommand1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -46586,24 +51967,24 @@ class NSPortCoder extends NSCoder { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSPortCoder1, + _lib._objc_msgSend_15(_lib._class_NSScriptCommand1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSPortCoder1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSScriptCommand1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSPortCoder1, _lib._sel_useStoredAccessor1); + _lib._class_NSScriptCommand1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSPortCoder1, + _lib._class_NSScriptCommand1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -46612,7 +51993,7 @@ class NSPortCoder extends NSCoder { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSPortCoder1, + _lib._class_NSScriptCommand1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -46620,150 +52001,273 @@ class NSPortCoder extends NSCoder { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSPortCoder1, + _lib._class_NSScriptCommand1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSPortCoder1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_NSScriptCommand1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSPortCoder1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSScriptCommand1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSPort extends NSObject { - NSPort._(ffi.Pointer id, SentryCocoa lib, +class NSItemProvider extends NSObject { + NSItemProvider._(ffi.Pointer id, SentryCocoa 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 [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 [NSPort] that wraps the given raw object pointer. - static NSPort castFromPointer(SentryCocoa lib, ffi.Pointer other, + /// Returns a [NSItemProvider] that wraps the given raw object pointer. + static NSItemProvider castFromPointer( + SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSPort._(other, lib, retain: retain, release: release); + return NSItemProvider._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSPort]. + /// 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_NSPort1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSItemProvider1); } - static NSPort port(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_517(_lib._class_NSPort1, _lib._sel_port1); - return NSPort._(_ret, _lib, retain: true, release: true); + @override + NSItemProvider init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSItemProvider._(_ret, _lib, retain: true, release: true); } - void invalidate() { - _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); + void registerDataRepresentationForTypeIdentifier_visibility_loadHandler_( + NSString? typeIdentifier, + int visibility, + ObjCBlock_NSProgress_ffiVoidNSDataNSError loadHandler) { + _lib._objc_msgSend_626( + _id, + _lib._sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_1, + typeIdentifier?._id ?? ffi.nullptr, + visibility, + loadHandler._id); } - bool get valid { - return _lib._objc_msgSend_12(_id, _lib._sel_isValid1); + void + registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_( + NSString? typeIdentifier, + int fileOptions, + int visibility, + ObjCBlock_NSProgress_ffiVoidNSURLboolNSError loadHandler) { + _lib._objc_msgSend_627( + _id, + _lib._sel_registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_1, + typeIdentifier?._id ?? ffi.nullptr, + fileOptions, + visibility, + loadHandler._id); } - void setDelegate_(NSObject? anObject) { - _lib._objc_msgSend_15( - _id, _lib._sel_setDelegate_1, anObject?._id ?? ffi.nullptr); + NSArray? get registeredTypeIdentifiers { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_registeredTypeIdentifiers1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSObject delegate() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSArray registeredTypeIdentifiersWithFileOptions_(int fileOptions) { + final _ret = _lib._objc_msgSend_628( + _id, _lib._sel_registeredTypeIdentifiersWithFileOptions_1, fileOptions); + return NSArray._(_ret, _lib, retain: true, release: true); } - void scheduleInRunLoop_forMode_(NSRunLoop? runLoop, NSString mode) { - _lib._objc_msgSend_533(_id, _lib._sel_scheduleInRunLoop_forMode_1, - runLoop?._id ?? ffi.nullptr, mode._id); + bool hasItemConformingToTypeIdentifier_(NSString? typeIdentifier) { + return _lib._objc_msgSend_59( + _id, + _lib._sel_hasItemConformingToTypeIdentifier_1, + typeIdentifier?._id ?? ffi.nullptr); } - void removeFromRunLoop_forMode_(NSRunLoop? runLoop, NSString mode) { - _lib._objc_msgSend_533(_id, _lib._sel_removeFromRunLoop_forMode_1, - runLoop?._id ?? ffi.nullptr, mode._id); + bool hasRepresentationConformingToTypeIdentifier_fileOptions_( + NSString? typeIdentifier, int fileOptions) { + return _lib._objc_msgSend_629( + _id, + _lib._sel_hasRepresentationConformingToTypeIdentifier_fileOptions_1, + typeIdentifier?._id ?? ffi.nullptr, + fileOptions); } - int get reservedSpaceLength { - return _lib._objc_msgSend_10(_id, _lib._sel_reservedSpaceLength1); + NSProgress loadDataRepresentationForTypeIdentifier_completionHandler_( + NSString? typeIdentifier, + ObjCBlock_ffiVoid_NSData_NSError completionHandler) { + final _ret = _lib._objc_msgSend_630( + _id, + _lib._sel_loadDataRepresentationForTypeIdentifier_completionHandler_1, + typeIdentifier?._id ?? ffi.nullptr, + completionHandler._id); + return NSProgress._(_ret, _lib, retain: true, release: true); } - bool sendBeforeDate_components_from_reserved_( - NSDate? limitDate, - NSMutableArray? components, - NSPort? receivePort, - int headerSpaceReserved) { - return _lib._objc_msgSend_534( + NSProgress loadFileRepresentationForTypeIdentifier_completionHandler_( + NSString? typeIdentifier, + ObjCBlock_ffiVoid_NSURL_NSError completionHandler) { + final _ret = _lib._objc_msgSend_631( _id, - _lib._sel_sendBeforeDate_components_from_reserved_1, - limitDate?._id ?? ffi.nullptr, - components?._id ?? ffi.nullptr, - receivePort?._id ?? ffi.nullptr, - headerSpaceReserved); + _lib._sel_loadFileRepresentationForTypeIdentifier_completionHandler_1, + typeIdentifier?._id ?? ffi.nullptr, + completionHandler._id); + return NSProgress._(_ret, _lib, retain: true, release: true); + } + + NSProgress loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_( + NSString? typeIdentifier, + ObjCBlock_ffiVoid_NSURL_bool_NSError completionHandler) { + final _ret = _lib._objc_msgSend_632( + _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) { + return _lib._objc_msgSend_512( + _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) { + _lib._objc_msgSend_633(_id, _lib._sel_registerObject_visibility_1, + object?._id ?? ffi.nullptr, visibility); + } + + void registerObjectOfClass_visibility_loadHandler_( + NSObject? aClass, + int visibility, + ObjCBlock_NSProgress_ffiVoidObjCObjectNSError loadHandler) { + _lib._objc_msgSend_634( + _id, + _lib._sel_registerObjectOfClass_visibility_loadHandler_1, + aClass?._id ?? ffi.nullptr, + visibility, + loadHandler._id); + } + + bool canLoadObjectOfClass_(NSObject? aClass) { + return _lib._objc_msgSend_0( + _id, _lib._sel_canLoadObjectOfClass_1, aClass?._id ?? ffi.nullptr); + } + + NSProgress loadObjectOfClass_completionHandler_(NSObject? aClass, + ObjCBlock_ffiVoid_ObjCObject_NSError completionHandler) { + final _ret = _lib._objc_msgSend_635( + _id, + _lib._sel_loadObjectOfClass_completionHandler_1, + aClass?._id ?? ffi.nullptr, + completionHandler._id); + return NSProgress._(_ret, _lib, retain: true, release: true); + } + + NSItemProvider initWithItem_typeIdentifier_( + NSObject? item, NSString? typeIdentifier) { + final _ret = _lib._objc_msgSend_289( + _id, + _lib._sel_initWithItem_typeIdentifier_1, + item?._id ?? ffi.nullptr, + typeIdentifier?._id ?? ffi.nullptr); + return NSItemProvider._(_ret, _lib, retain: true, release: true); + } + + NSItemProvider initWithContentsOfURL_(NSURL? fileURL) { + final _ret = _lib._objc_msgSend_241( + _id, _lib._sel_initWithContentsOfURL_1, fileURL?._id ?? ffi.nullptr); + return NSItemProvider._(_ret, _lib, retain: true, release: true); + } + + void registerItemForTypeIdentifier_loadHandler_( + NSString? typeIdentifier, + ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary + loadHandler) { + _lib._objc_msgSend_636( + _id, + _lib._sel_registerItemForTypeIdentifier_loadHandler_1, + typeIdentifier?._id ?? ffi.nullptr, + loadHandler._id); } - bool sendBeforeDate_msgid_components_from_reserved_( - NSDate? limitDate, - int msgID, - NSMutableArray? components, - NSPort? receivePort, - int headerSpaceReserved) { - return _lib._objc_msgSend_535( + void loadItemForTypeIdentifier_options_completionHandler_( + NSString? typeIdentifier, + NSDictionary? options, + ObjCBlock_ffiVoid_ObjCObject_NSError completionHandler) { + _lib._objc_msgSend_637( _id, - _lib._sel_sendBeforeDate_msgid_components_from_reserved_1, - limitDate?._id ?? ffi.nullptr, - msgID, - components?._id ?? ffi.nullptr, - receivePort?._id ?? ffi.nullptr, - headerSpaceReserved); + _lib._sel_loadItemForTypeIdentifier_options_completionHandler_1, + typeIdentifier?._id ?? ffi.nullptr, + options?._id ?? ffi.nullptr, + completionHandler._id); } - void addConnection_toRunLoop_forMode_( - NSConnection? conn, NSRunLoop? runLoop, NSString mode) { - _lib._objc_msgSend_551(_id, _lib._sel_addConnection_toRunLoop_forMode_1, - conn?._id ?? ffi.nullptr, runLoop?._id ?? ffi.nullptr, mode._id); + ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary + get previewImageHandler { + final _ret = _lib._objc_msgSend_638(_id, _lib._sel_previewImageHandler1); + return ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary._( + _ret, _lib); } - void removeConnection_fromRunLoop_forMode_( - NSConnection? conn, NSRunLoop? runLoop, NSString mode) { - _lib._objc_msgSend_551( - _id, - _lib._sel_removeConnection_fromRunLoop_forMode_1, - conn?._id ?? ffi.nullptr, - runLoop?._id ?? ffi.nullptr, - mode._id); + set previewImageHandler( + ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary + value) { + return _lib._objc_msgSend_639( + _id, _lib._sel_setPreviewImageHandler_1, value._id); } - @override - NSPort init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSPort._(_ret, _lib, retain: true, release: true); + void loadPreviewImageWithOptions_completionHandler_(NSDictionary? options, + ObjCBlock_ffiVoid_ObjCObject_NSError completionHandler) { + _lib._objc_msgSend_640( + _id, + _lib._sel_loadPreviewImageWithOptions_completionHandler_1, + options?._id ?? ffi.nullptr, + completionHandler._id); } - static NSPort new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSPort1, _lib._sel_new1); - return NSPort._(_ret, _lib, retain: false, release: true); + static NSItemProvider new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSItemProvider1, _lib._sel_new1); + return NSItemProvider._(_ret, _lib, retain: false, release: true); } - static NSPort allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static NSItemProvider allocWithZone_( + SentryCocoa _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); + _lib._class_NSItemProvider1, _lib._sel_allocWithZone_1, zone); + return NSItemProvider._(_ret, _lib, retain: false, release: true); } - static NSPort alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSPort1, _lib._sel_alloc1); - return NSPort._(_ret, _lib, retain: false, release: true); + static NSItemProvider alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSItemProvider1, _lib._sel_alloc1); + return NSItemProvider._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -46772,7 +52276,7 @@ class NSPort extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSPort1, + _lib._class_NSItemProvider1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -46781,24 +52285,24 @@ class NSPort extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSPort1, + _lib._objc_msgSend_15(_lib._class_NSItemProvider1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSPort1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSItemProvider1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSPort1, _lib._sel_useStoredAccessor1); + _lib._class_NSItemProvider1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSPort1, + _lib._class_NSItemProvider1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -46807,7 +52311,7 @@ class NSPort extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSPort1, + _lib._class_NSItemProvider1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -46815,7 +52319,7 @@ class NSPort extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSPort1, + _lib._class_NSItemProvider1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -46823,436 +52327,459 @@ class NSPort extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSPort1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSItemProvider1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSPort1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSItemProvider1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSRunLoop extends NSObject { - NSRunLoop._(ffi.Pointer id, SentryCocoa 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 + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_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 _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureRegistry = + {}; +int _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_registerClosure(Function 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) { + return (_ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureRegistry[ + block.ref.target.address] + as ffi.Pointer Function(ffi.Pointer<_ObjCBlock>))(arg0); +} + +class ObjCBlock_NSProgress_ffiVoidNSDataNSError extends _ObjCBlockBase { + ObjCBlock_NSProgress_ffiVoidNSDataNSError._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_NSProgress_ffiVoidNSDataNSError.fromFunctionPointer( + SentryCocoa 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)>( + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_NSProgress_ffiVoidNSDataNSError.fromFunction(SentryCocoa 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)>( + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureTrampoline) + .cast(), + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_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); + } +} + +class NSProgress extends NSObject { + NSProgress._(ffi.Pointer id, SentryCocoa 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 [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 [NSRunLoop] that wraps the given raw object pointer. - static NSRunLoop castFromPointer( + /// Returns a [NSProgress] that wraps the given raw object pointer. + static NSProgress castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSRunLoop._(other, lib, retain: retain, release: release); + return NSProgress._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSRunLoop]. + /// 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_NSRunLoop1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSProgress1); } - static NSRunLoop? getCurrentRunLoop(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_518( - _lib._class_NSRunLoop1, _lib._sel_currentRunLoop1); - return _ret.address == 0 - ? null - : NSRunLoop._(_ret, _lib, retain: true, release: true); + static NSProgress currentProgress(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_612( + _lib._class_NSProgress1, _lib._sel_currentProgress1); + return NSProgress._(_ret, _lib, retain: true, release: true); } - static NSRunLoop? getMainRunLoop(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_518(_lib._class_NSRunLoop1, _lib._sel_mainRunLoop1); - return _ret.address == 0 - ? null - : NSRunLoop._(_ret, _lib, retain: true, release: true); + static NSProgress progressWithTotalUnitCount_( + SentryCocoa _lib, int unitCount) { + final _ret = _lib._objc_msgSend_613(_lib._class_NSProgress1, + _lib._sel_progressWithTotalUnitCount_1, unitCount); + return NSProgress._(_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); + static NSProgress discreteProgressWithTotalUnitCount_( + SentryCocoa _lib, int unitCount) { + final _ret = _lib._objc_msgSend_613(_lib._class_NSProgress1, + _lib._sel_discreteProgressWithTotalUnitCount_1, unitCount); + return NSProgress._(_ret, _lib, retain: true, release: true); } - ffi.Pointer<__CFRunLoop> getCFRunLoop() { - return _lib._objc_msgSend_519(_id, _lib._sel_getCFRunLoop1); + static NSProgress progressWithTotalUnitCount_parent_pendingUnitCount_( + SentryCocoa _lib, + int unitCount, + NSProgress? parent, + int portionOfParentTotalUnitCount) { + final _ret = _lib._objc_msgSend_614( + _lib._class_NSProgress1, + _lib._sel_progressWithTotalUnitCount_parent_pendingUnitCount_1, + unitCount, + parent?._id ?? ffi.nullptr, + portionOfParentTotalUnitCount); + return NSProgress._(_ret, _lib, retain: true, release: true); } - void addTimer_forMode_(NSTimer? timer, NSString mode) { - _lib._objc_msgSend_526( - _id, _lib._sel_addTimer_forMode_1, timer?._id ?? ffi.nullptr, mode._id); + NSProgress initWithParent_userInfo_( + NSProgress? parentProgressOrNil, NSObject? userInfoOrNil) { + final _ret = _lib._objc_msgSend_615( + _id, + _lib._sel_initWithParent_userInfo_1, + parentProgressOrNil?._id ?? ffi.nullptr, + userInfoOrNil?._id ?? ffi.nullptr); + return NSProgress._(_ret, _lib, retain: true, release: true); } - void addPort_forMode_(NSPort? aPort, NSString mode) { - _lib._objc_msgSend_527( - _id, _lib._sel_addPort_forMode_1, aPort?._id ?? ffi.nullptr, mode._id); + void becomeCurrentWithPendingUnitCount_(int unitCount) { + _lib._objc_msgSend_616( + _id, _lib._sel_becomeCurrentWithPendingUnitCount_1, unitCount); } - void removePort_forMode_(NSPort? aPort, NSString mode) { - _lib._objc_msgSend_527(_id, _lib._sel_removePort_forMode_1, - aPort?._id ?? ffi.nullptr, mode._id); + void performAsCurrentWithPendingUnitCount_usingBlock_( + int unitCount, ObjCBlock_ffiVoid work) { + _lib._objc_msgSend_617( + _id, + _lib._sel_performAsCurrentWithPendingUnitCount_usingBlock_1, + unitCount, + work._id); } - NSDate limitDateForMode_(NSString mode) { - final _ret = - _lib._objc_msgSend_528(_id, _lib._sel_limitDateForMode_1, mode._id); - return NSDate._(_ret, _lib, retain: true, release: true); + void resignCurrent() { + _lib._objc_msgSend_1(_id, _lib._sel_resignCurrent1); } - void acceptInputForMode_beforeDate_(NSString mode, NSDate? limitDate) { - _lib._objc_msgSend_529(_id, _lib._sel_acceptInputForMode_beforeDate_1, - mode._id, limitDate?._id ?? ffi.nullptr); + void addChild_withPendingUnitCount_(NSProgress? child, int inUnitCount) { + _lib._objc_msgSend_618(_id, _lib._sel_addChild_withPendingUnitCount_1, + child?._id ?? ffi.nullptr, inUnitCount); } - void run() { - _lib._objc_msgSend_1(_id, _lib._sel_run1); + int get totalUnitCount { + return _lib._objc_msgSend_619(_id, _lib._sel_totalUnitCount1); } - void runUntilDate_(NSDate? limitDate) { - _lib._objc_msgSend_504( - _id, _lib._sel_runUntilDate_1, limitDate?._id ?? ffi.nullptr); + set totalUnitCount(int value) { + return _lib._objc_msgSend_620(_id, _lib._sel_setTotalUnitCount_1, value); } - bool runMode_beforeDate_(NSString mode, NSDate? limitDate) { - return _lib._objc_msgSend_530(_id, _lib._sel_runMode_beforeDate_1, mode._id, - limitDate?._id ?? ffi.nullptr); + int get completedUnitCount { + return _lib._objc_msgSend_619(_id, _lib._sel_completedUnitCount1); } - void configureAsServer() { - _lib._objc_msgSend_1(_id, _lib._sel_configureAsServer1); + set completedUnitCount(int value) { + return _lib._objc_msgSend_620( + _id, _lib._sel_setCompletedUnitCount_1, value); } - void performInModes_block_(NSArray? modes, ObjCBlock_ffiVoid block) { - _lib._objc_msgSend_531(_id, _lib._sel_performInModes_block_1, - modes?._id ?? ffi.nullptr, block._id); + 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); } - void performBlock_(ObjCBlock_ffiVoid block) { - _lib._objc_msgSend_497(_id, _lib._sel_performBlock_1, block._id); + set localizedDescription(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setLocalizedDescription_1, value?._id ?? ffi.nullptr); } - void performSelector_target_argument_order_modes_( - ffi.Pointer aSelector, - NSObject target, - NSObject arg, - int order, - NSArray? modes) { - _lib._objc_msgSend_532( - _id, - _lib._sel_performSelector_target_argument_order_modes_1, - aSelector, - target._id, - arg._id, - order, - modes?._id ?? ffi.nullptr); + NSString? get localizedAdditionalDescription { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_localizedAdditionalDescription1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void cancelPerformSelector_target_argument_( - ffi.Pointer aSelector, NSObject target, NSObject arg) { - _lib._objc_msgSend_498( + set localizedAdditionalDescription(NSString? value) { + return _lib._objc_msgSend_512( _id, - _lib._sel_cancelPerformSelector_target_argument_1, - aSelector, - target._id, - arg._id); + _lib._sel_setLocalizedAdditionalDescription_1, + value?._id ?? ffi.nullptr); } - void cancelPerformSelectorsWithTarget_(NSObject target) { - _lib._objc_msgSend_15( - _id, _lib._sel_cancelPerformSelectorsWithTarget_1, target._id); + bool get cancellable { + return _lib._objc_msgSend_12(_id, _lib._sel_isCancellable1); } - @override - NSRunLoop init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSRunLoop._(_ret, _lib, retain: true, release: true); + set cancellable(bool value) { + return _lib._objc_msgSend_495(_id, _lib._sel_setCancellable_1, value); } - static NSRunLoop new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSRunLoop1, _lib._sel_new1); - return NSRunLoop._(_ret, _lib, retain: false, release: true); + bool get pausable { + return _lib._objc_msgSend_12(_id, _lib._sel_isPausable1); } - static NSRunLoop allocWithZone_(SentryCocoa _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); + set pausable(bool value) { + return _lib._objc_msgSend_495(_id, _lib._sel_setPausable_1, value); } - static NSRunLoop alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSRunLoop1, _lib._sel_alloc1); - return NSRunLoop._(_ret, _lib, retain: false, release: true); + bool get cancelled { + return _lib._objc_msgSend_12(_id, _lib._sel_isCancelled1); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSRunLoop1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + bool get paused { + return _lib._objc_msgSend_12(_id, _lib._sel_isPaused1); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSRunLoop1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + ObjCBlock_ffiVoid get cancellationHandler { + final _ret = _lib._objc_msgSend_621(_id, _lib._sel_cancellationHandler1); + return ObjCBlock_ffiVoid._(_ret, _lib); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSRunLoop1, _lib._sel_accessInstanceVariablesDirectly1); + set cancellationHandler(ObjCBlock_ffiVoid value) { + return _lib._objc_msgSend_622( + _id, _lib._sel_setCancellationHandler_1, value._id); } - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSRunLoop1, _lib._sel_useStoredAccessor1); + ObjCBlock_ffiVoid get pausingHandler { + final _ret = _lib._objc_msgSend_621(_id, _lib._sel_pausingHandler1); + return ObjCBlock_ffiVoid._(_ret, _lib); } - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSRunLoop1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + set pausingHandler(ObjCBlock_ffiVoid value) { + return _lib._objc_msgSend_622( + _id, _lib._sel_setPausingHandler_1, value._id); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSRunLoop1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + ObjCBlock_ffiVoid get resumingHandler { + final _ret = _lib._objc_msgSend_621(_id, _lib._sel_resumingHandler1); + return ObjCBlock_ffiVoid._(_ret, _lib); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSRunLoop1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + set resumingHandler(ObjCBlock_ffiVoid value) { + return _lib._objc_msgSend_622( + _id, _lib._sel_setResumingHandler_1, value._id); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSRunLoop1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + void setUserInfoObject_forKey_(NSObject objectOrNil, NSString key) { + _lib._objc_msgSend_126( + _id, _lib._sel_setUserInfoObject_forKey_1, objectOrNil._id, key._id); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSRunLoop1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + bool get indeterminate { + return _lib._objc_msgSend_12(_id, _lib._sel_isIndeterminate1); } -} -final class __CFRunLoop extends ffi.Opaque {} + double get fractionCompleted { + return _lib._objc_msgSend_155(_id, _lib._sel_fractionCompleted1); + } -class NSTimer extends NSObject { - NSTimer._(ffi.Pointer id, SentryCocoa 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 [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); + void cancel() { + _lib._objc_msgSend_1(_id, _lib._sel_cancel1); } - /// Returns a [NSTimer] that wraps the given raw object pointer. - static NSTimer castFromPointer(SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSTimer._(other, lib, retain: retain, release: release); + void pause() { + _lib._objc_msgSend_1(_id, _lib._sel_pause1); } - /// 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); + void resume() { + _lib._objc_msgSend_1(_id, _lib._sel_resume1); } - static NSTimer timerWithTimeInterval_invocation_repeats_( - SentryCocoa _lib, double ti, NSInvocation? invocation, bool yesOrNo) { - final _ret = _lib._objc_msgSend_520( - _lib._class_NSTimer1, - _lib._sel_timerWithTimeInterval_invocation_repeats_1, - ti, - invocation?._id ?? ffi.nullptr, - yesOrNo); - return NSTimer._(_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 NSTimer scheduledTimerWithTimeInterval_invocation_repeats_( - SentryCocoa _lib, double ti, NSInvocation? invocation, bool yesOrNo) { - final _ret = _lib._objc_msgSend_520( - _lib._class_NSTimer1, - _lib._sel_scheduledTimerWithTimeInterval_invocation_repeats_1, - ti, - invocation?._id ?? ffi.nullptr, - yesOrNo); - return NSTimer._(_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 NSTimer timerWithTimeInterval_target_selector_userInfo_repeats_( - SentryCocoa _lib, - double ti, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject userInfo, - bool yesOrNo) { - final _ret = _lib._objc_msgSend_521( - _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); + set kind(NSString value) { + return _lib._objc_msgSend_512(_id, _lib._sel_setKind_1, value._id); } - static NSTimer - scheduledTimerWithTimeInterval_target_selector_userInfo_repeats_( - SentryCocoa _lib, - double ti, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject userInfo, - bool yesOrNo) { - final _ret = _lib._objc_msgSend_521( - _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); + NSNumber? get estimatedTimeRemaining { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_estimatedTimeRemaining1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); + } + + set estimatedTimeRemaining(NSNumber? value) { + return _lib._objc_msgSend_623( + _id, _lib._sel_setEstimatedTimeRemaining_1, value?._id ?? ffi.nullptr); + } + + NSNumber? get throughput { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_throughput1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } - static NSTimer timerWithTimeInterval_repeats_block_(SentryCocoa _lib, - double interval, bool repeats, ObjCBlock_ffiVoid_NSTimer block) { - final _ret = _lib._objc_msgSend_522( - _lib._class_NSTimer1, - _lib._sel_timerWithTimeInterval_repeats_block_1, - interval, - repeats, - block._id); - return NSTimer._(_ret, _lib, retain: true, release: true); + set throughput(NSNumber? value) { + return _lib._objc_msgSend_623( + _id, _lib._sel_setThroughput_1, value?._id ?? ffi.nullptr); } - static NSTimer scheduledTimerWithTimeInterval_repeats_block_(SentryCocoa _lib, - double interval, bool repeats, ObjCBlock_ffiVoid_NSTimer block) { - final _ret = _lib._objc_msgSend_522( - _lib._class_NSTimer1, - _lib._sel_scheduledTimerWithTimeInterval_repeats_block_1, - interval, - repeats, - block._id); - return NSTimer._(_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); } - NSTimer initWithFireDate_interval_repeats_block_(NSDate? date, - double interval, bool repeats, ObjCBlock_ffiVoid_NSTimer block) { - final _ret = _lib._objc_msgSend_523( - _id, - _lib._sel_initWithFireDate_interval_repeats_block_1, - date?._id ?? ffi.nullptr, - interval, - repeats, - block._id); - return NSTimer._(_ret, _lib, retain: true, release: true); + set fileOperationKind(NSString value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setFileOperationKind_1, value._id); } - 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_524( - _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); + NSURL? get fileURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_fileURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - void fire() { - _lib._objc_msgSend_1(_id, _lib._sel_fire1); + set fileURL(NSURL? value) { + return _lib._objc_msgSend_624( + _id, _lib._sel_setFileURL_1, value?._id ?? ffi.nullptr); } - NSDate? get fireDate { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_fireDate1); + NSNumber? get fileTotalCount { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_fileTotalCount1); return _ret.address == 0 ? null - : NSDate._(_ret, _lib, retain: true, release: true); + : NSNumber._(_ret, _lib, retain: true, release: true); } - set fireDate(NSDate? value) { - return _lib._objc_msgSend_525( - _id, _lib._sel_setFireDate_1, value?._id ?? ffi.nullptr); + set fileTotalCount(NSNumber? value) { + return _lib._objc_msgSend_623( + _id, _lib._sel_setFileTotalCount_1, value?._id ?? ffi.nullptr); } - double get timeInterval { - return _lib._objc_msgSend_155(_id, _lib._sel_timeInterval1); + NSNumber? get fileCompletedCount { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_fileCompletedCount1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } - double get tolerance { - return _lib._objc_msgSend_155(_id, _lib._sel_tolerance1); + set fileCompletedCount(NSNumber? value) { + return _lib._objc_msgSend_623( + _id, _lib._sel_setFileCompletedCount_1, value?._id ?? ffi.nullptr); } - set tolerance(double value) { - return _lib._objc_msgSend_506(_id, _lib._sel_setTolerance_1, value); + void publish() { + _lib._objc_msgSend_1(_id, _lib._sel_publish1); } - void invalidate() { - _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); + void unpublish() { + _lib._objc_msgSend_1(_id, _lib._sel_unpublish1); } - bool get valid { - return _lib._objc_msgSend_12(_id, _lib._sel_isValid1); + static NSObject addSubscriberForFileURL_withPublishingHandler_( + SentryCocoa _lib, + NSURL? url, + ObjCBlock_ffiVoid_NSProgress publishingHandler) { + final _ret = _lib._objc_msgSend_625( + _lib._class_NSProgress1, + _lib._sel_addSubscriberForFileURL_withPublishingHandler_1, + url?._id ?? ffi.nullptr, + publishingHandler._id); + return NSObject._(_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 void removeSubscriber_(SentryCocoa _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 - NSTimer init() { + NSProgress init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSTimer._(_ret, _lib, retain: true, release: true); + return NSProgress._(_ret, _lib, retain: true, release: true); } - static NSTimer new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSTimer1, _lib._sel_new1); - return NSTimer._(_ret, _lib, retain: false, release: true); + static NSProgress new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSProgress1, _lib._sel_new1); + return NSProgress._(_ret, _lib, retain: false, release: true); } - static NSTimer allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static NSProgress allocWithZone_( + SentryCocoa _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); + _lib._class_NSProgress1, _lib._sel_allocWithZone_1, zone); + return NSProgress._(_ret, _lib, retain: false, release: true); } - static NSTimer alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSTimer1, _lib._sel_alloc1); - return NSTimer._(_ret, _lib, retain: false, release: true); + static NSProgress alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSProgress1, _lib._sel_alloc1); + return NSProgress._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -47261,7 +52788,7 @@ class NSTimer extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSTimer1, + _lib._class_NSProgress1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -47270,24 +52797,24 @@ class NSTimer extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSTimer1, + _lib._objc_msgSend_15(_lib._class_NSProgress1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSTimer1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSProgress1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSTimer1, _lib._sel_useStoredAccessor1); + _lib._class_NSProgress1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSTimer1, + _lib._class_NSProgress1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -47296,7 +52823,7 @@ class NSTimer extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSTimer1, + _lib._class_NSProgress1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -47304,7 +52831,7 @@ class NSTimer extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSTimer1, + _lib._class_NSProgress1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -47312,891 +52839,1325 @@ class NSTimer extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSTimer1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSProgress1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSTimer1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSProgress1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -void _ObjCBlock_ffiVoid_NSTimer_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { +ffi.Pointer<_ObjCBlock> _ObjCBlock_ffiVoid_NSProgress_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 _ObjCBlock_ffiVoid_NSProgress_closureRegistry = {}; +int _ObjCBlock_ffiVoid_NSProgress_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSProgress_registerClosure( + Function fn) { + final id = ++_ObjCBlock_ffiVoid_NSProgress_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSProgress_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +ffi.Pointer<_ObjCBlock> _ObjCBlock_ffiVoid_NSProgress_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return (_ObjCBlock_ffiVoid_NSProgress_closureRegistry[ + block.ref.target.address] + as ffi.Pointer<_ObjCBlock> Function(ffi.Pointer))(arg0); +} + +class ObjCBlock_ffiVoid_NSProgress extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSProgress._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_NSProgress.fromFunctionPointer( + SentryCocoa 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)>( + _ObjCBlock_ffiVoid_NSProgress_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_NSProgress.fromFunction(SentryCocoa 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)>( + _ObjCBlock_ffiVoid_NSProgress_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSProgress_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); + } +} + +void _ObjCBlock_ffiVoid_NSData_NSError_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 _ObjCBlock_ffiVoid_NSData_NSError_closureRegistry = {}; +int _ObjCBlock_ffiVoid_NSData_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSData_NSError_registerClosure( + Function fn) { + final id = ++_ObjCBlock_ffiVoid_NSData_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSData_NSError_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSData_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) { + return (_ObjCBlock_ffiVoid_NSData_NSError_closureRegistry[ + block.ref.target.address] + as void Function( + ffi.Pointer, ffi.Pointer))(arg0, arg1); +} + +class ObjCBlock_ffiVoid_NSData_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSData_NSError._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_NSData_NSError.fromFunctionPointer( + SentryCocoa 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)>( + _ObjCBlock_ffiVoid_NSData_NSError_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_NSData_NSError.fromFunction( + SentryCocoa 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)>( + _ObjCBlock_ffiVoid_NSData_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSData_NSError_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); + } +} + +abstract class NSItemProviderFileOptions { + static const int NSItemProviderFileOptionOpenInPlace = 1; +} + +ffi.Pointer + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_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 _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureRegistry = + {}; +int _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_registerClosure(Function fn) { + final id = + ++_ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureRegistryIndex; + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +ffi.Pointer + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { + return (_ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureRegistry[ + block.ref.target.address] + as ffi.Pointer Function(ffi.Pointer<_ObjCBlock>))(arg0); +} + +class ObjCBlock_NSProgress_ffiVoidNSURLboolNSError extends _ObjCBlockBase { + ObjCBlock_NSProgress_ffiVoidNSURLboolNSError._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_NSProgress_ffiVoidNSURLboolNSError.fromFunctionPointer( + SentryCocoa 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)>( + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_NSProgress_ffiVoidNSURLboolNSError.fromFunction(SentryCocoa 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)>( + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureTrampoline) + .cast(), + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_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); + } +} + +void _ObjCBlock_ffiVoid_NSURL_bool_NSError_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 _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureRegistry = {}; +int _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSURL_bool_NSError_registerClosure( + Function fn) { + final id = ++_ObjCBlock_ffiVoid_NSURL_bool_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2) { + return (_ObjCBlock_ffiVoid_NSURL_bool_NSError_closureRegistry[ + block.ref.target.address] + as void Function(ffi.Pointer, bool, + ffi.Pointer))(arg0, arg1, arg2); +} + +class ObjCBlock_ffiVoid_NSURL_bool_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSURL_bool_NSError._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_NSURL_bool_NSError.fromFunctionPointer( + SentryCocoa 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)>( + _ObjCBlock_ffiVoid_NSURL_bool_NSError_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_NSURL_bool_NSError.fromFunction( + SentryCocoa 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)>( + _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSURL_bool_NSError_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); + } +} + +void _ObjCBlock_ffiVoid_NSURL_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) { return block.ref.target .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>()(arg0, arg1); } -final _ObjCBlock_ffiVoid_NSTimer_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSTimer_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSTimer_registerClosure(Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSTimer_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSTimer_closureRegistry[id] = fn; +final _ObjCBlock_ffiVoid_NSURL_NSError_closureRegistry = {}; +int _ObjCBlock_ffiVoid_NSURL_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSURL_NSError_registerClosure( + Function fn) { + final id = ++_ObjCBlock_ffiVoid_NSURL_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSURL_NSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_NSTimer_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return (_ObjCBlock_ffiVoid_NSTimer_closureRegistry[block.ref.target.address] - as void Function(ffi.Pointer))(arg0); +void _ObjCBlock_ffiVoid_NSURL_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) { + return (_ObjCBlock_ffiVoid_NSURL_NSError_closureRegistry[ + block.ref.target.address] + as void Function( + ffi.Pointer, ffi.Pointer))(arg0, arg1); } -class ObjCBlock_ffiVoid_NSTimer extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSTimer._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock_ffiVoid_NSURL_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSURL_NSError._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSTimer.fromFunctionPointer( + ObjCBlock_ffiVoid_NSURL_NSError.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< - ffi - .NativeFunction arg0)>> + 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)>( - _ObjCBlock_ffiVoid_NSTimer_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock_ffiVoid_NSURL_NSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSTimer.fromFunction( - SentryCocoa lib, void Function(ffi.Pointer arg0) fn) + ObjCBlock_ffiVoid_NSURL_NSError.fromFunction( + SentryCocoa 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)>( - _ObjCBlock_ffiVoid_NSTimer_closureTrampoline) + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock_ffiVoid_NSURL_NSError_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSTimer_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSURL_NSError_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0) { + 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.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>()(_id, arg0, arg1); } } -class NSConnection extends NSObject { - NSConnection._(ffi.Pointer id, SentryCocoa 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 [NSConnection] that wraps the given raw object pointer. - static NSConnection castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSConnection._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSConnection]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSConnection1); - } - - NSDictionary? get statistics { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_statistics1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - static NSArray allConnections(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSConnection1, _lib._sel_allConnections1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSConnection defaultConnection(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_536( - _lib._class_NSConnection1, _lib._sel_defaultConnection1); - return NSConnection._(_ret, _lib, retain: true, release: true); - } - - static NSConnection connectionWithRegisteredName_host_( - SentryCocoa _lib, NSString? name, NSString? hostName) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSConnection1, - _lib._sel_connectionWithRegisteredName_host_1, - name?._id ?? ffi.nullptr, - hostName?._id ?? ffi.nullptr); - return NSConnection._(_ret, _lib, retain: true, release: true); - } - - static NSConnection connectionWithRegisteredName_host_usingNameServer_( - SentryCocoa _lib, - NSString? name, - NSString? hostName, - NSPortNameServer? server) { - final _ret = _lib._objc_msgSend_541( - _lib._class_NSConnection1, - _lib._sel_connectionWithRegisteredName_host_usingNameServer_1, - name?._id ?? ffi.nullptr, - hostName?._id ?? ffi.nullptr, - server?._id ?? ffi.nullptr); - return NSConnection._(_ret, _lib, retain: true, release: true); - } - - static NSDistantObject rootProxyForConnectionWithRegisteredName_host_( - SentryCocoa _lib, NSString? name, NSString? hostName) { - final _ret = _lib._objc_msgSend_544( - _lib._class_NSConnection1, - _lib._sel_rootProxyForConnectionWithRegisteredName_host_1, - name?._id ?? ffi.nullptr, - hostName?._id ?? ffi.nullptr); - return NSDistantObject._(_ret, _lib, retain: true, release: true); - } - - static NSDistantObject - rootProxyForConnectionWithRegisteredName_host_usingNameServer_( - SentryCocoa _lib, - NSString? name, - NSString? hostName, - NSPortNameServer? server) { - final _ret = _lib._objc_msgSend_545( - _lib._class_NSConnection1, - _lib._sel_rootProxyForConnectionWithRegisteredName_host_usingNameServer_1, - name?._id ?? ffi.nullptr, - hostName?._id ?? ffi.nullptr, - server?._id ?? ffi.nullptr); - return NSDistantObject._(_ret, _lib, retain: true, release: true); - } - - static NSConnection serviceConnectionWithName_rootObject_usingNameServer_( - SentryCocoa _lib, - NSString? name, - NSObject root, - NSPortNameServer? server) { - final _ret = _lib._objc_msgSend_546( - _lib._class_NSConnection1, - _lib._sel_serviceConnectionWithName_rootObject_usingNameServer_1, - name?._id ?? ffi.nullptr, - root._id, - server?._id ?? ffi.nullptr); - return NSConnection._(_ret, _lib, retain: true, release: true); - } - - static NSConnection serviceConnectionWithName_rootObject_( - SentryCocoa _lib, NSString? name, NSObject root) { - final _ret = _lib._objc_msgSend_163( - _lib._class_NSConnection1, - _lib._sel_serviceConnectionWithName_rootObject_1, - name?._id ?? ffi.nullptr, - root._id); - return NSConnection._(_ret, _lib, retain: true, release: true); - } - - double get requestTimeout { - return _lib._objc_msgSend_155(_id, _lib._sel_requestTimeout1); - } - - set requestTimeout(double value) { - return _lib._objc_msgSend_506(_id, _lib._sel_setRequestTimeout_1, value); - } - - double get replyTimeout { - return _lib._objc_msgSend_155(_id, _lib._sel_replyTimeout1); - } - - set replyTimeout(double value) { - return _lib._objc_msgSend_506(_id, _lib._sel_setReplyTimeout_1, value); - } - - NSObject get rootObject { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_rootObject1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - set rootObject(NSObject value) { - return _lib._objc_msgSend_387(_id, _lib._sel_setRootObject_1, value._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); - } - - set delegate(NSObject? value) { - return _lib._objc_msgSend_387( - _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); - } - - bool get independentConversationQueueing { - return _lib._objc_msgSend_12( - _id, _lib._sel_independentConversationQueueing1); - } - - set independentConversationQueueing(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setIndependentConversationQueueing_1, value); - } - - bool get valid { - return _lib._objc_msgSend_12(_id, _lib._sel_isValid1); - } - - NSDistantObject? get rootProxy { - final _ret = _lib._objc_msgSend_547(_id, _lib._sel_rootProxy1); - return _ret.address == 0 - ? null - : NSDistantObject._(_ret, _lib, retain: true, release: true); - } - - void invalidate() { - _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); - } - - void addRequestMode_(NSString? rmode) { - _lib._objc_msgSend_192( - _id, _lib._sel_addRequestMode_1, rmode?._id ?? ffi.nullptr); - } - - void removeRequestMode_(NSString? rmode) { - _lib._objc_msgSend_192( - _id, _lib._sel_removeRequestMode_1, rmode?._id ?? ffi.nullptr); - } - - NSArray? get requestModes { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_requestModes1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - bool registerName_(NSString? name) { - return _lib._objc_msgSend_59( - _id, _lib._sel_registerName_1, name?._id ?? ffi.nullptr); - } - - bool registerName_withNameServer_(NSString? name, NSPortNameServer? server) { - return _lib._objc_msgSend_548(_id, _lib._sel_registerName_withNameServer_1, - name?._id ?? ffi.nullptr, server?._id ?? ffi.nullptr); - } - - static NSConnection connectionWithReceivePort_sendPort_( - SentryCocoa _lib, NSPort? receivePort, NSPort? sendPort) { - final _ret = _lib._objc_msgSend_549( - _lib._class_NSConnection1, - _lib._sel_connectionWithReceivePort_sendPort_1, - receivePort?._id ?? ffi.nullptr, - sendPort?._id ?? ffi.nullptr); - return NSConnection._(_ret, _lib, retain: true, release: true); - } - - static NSObject currentConversation(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSConnection1, _lib._sel_currentConversation1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSConnection initWithReceivePort_sendPort_( - NSPort? receivePort, NSPort? sendPort) { - final _ret = _lib._objc_msgSend_549( - _id, - _lib._sel_initWithReceivePort_sendPort_1, - receivePort?._id ?? ffi.nullptr, - sendPort?._id ?? ffi.nullptr); - return NSConnection._(_ret, _lib, retain: true, release: true); - } - - NSPort? get sendPort { - final _ret = _lib._objc_msgSend_517(_id, _lib._sel_sendPort1); - return _ret.address == 0 - ? null - : NSPort._(_ret, _lib, retain: true, release: true); - } - - NSPort? get receivePort { - final _ret = _lib._objc_msgSend_517(_id, _lib._sel_receivePort1); - return _ret.address == 0 - ? null - : NSPort._(_ret, _lib, retain: true, release: true); - } - - void enableMultipleThreads() { - _lib._objc_msgSend_1(_id, _lib._sel_enableMultipleThreads1); - } - - bool get multipleThreadsEnabled { - return _lib._objc_msgSend_12(_id, _lib._sel_multipleThreadsEnabled1); - } - - void addRunLoop_(NSRunLoop? runloop) { - _lib._objc_msgSend_550( - _id, _lib._sel_addRunLoop_1, runloop?._id ?? ffi.nullptr); - } - - void removeRunLoop_(NSRunLoop? runloop) { - _lib._objc_msgSend_550( - _id, _lib._sel_removeRunLoop_1, runloop?._id ?? ffi.nullptr); - } +ffi.Pointer + _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_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); +} - void runInNewThread() { - _lib._objc_msgSend_1(_id, _lib._sel_runInNewThread1); - } +final _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureRegistry = + {}; +int _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_registerClosure( + Function fn) { + final id = + ++_ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureRegistryIndex; + _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - NSArray? get remoteObjects { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_remoteObjects1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } +ffi.Pointer + _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { + return (_ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureRegistry[ + block.ref.target.address] + as ffi.Pointer Function(ffi.Pointer<_ObjCBlock>))(arg0); +} - NSArray? get localObjects { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_localObjects1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } +class ObjCBlock_NSProgress_ffiVoidObjCObjectNSError extends _ObjCBlockBase { + ObjCBlock_NSProgress_ffiVoidObjCObjectNSError._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); - void dispatchWithComponents_(NSArray? components) { - _lib._objc_msgSend_441(_id, _lib._sel_dispatchWithComponents_1, - components?._id ?? ffi.nullptr); - } + /// Creates a block from a C function pointer. + ObjCBlock_NSProgress_ffiVoidObjCObjectNSError.fromFunctionPointer( + SentryCocoa 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)>( + _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - @override - NSConnection init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSConnection._(_ret, _lib, retain: true, release: true); + /// Creates a block from a Dart function. + ObjCBlock_NSProgress_ffiVoidObjCObjectNSError.fromFunction(SentryCocoa 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)>( + _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureTrampoline) + .cast(), + _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_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 NSConnection new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSConnection1, _lib._sel_new1); - return NSConnection._(_ret, _lib, retain: false, release: true); - } +void _ObjCBlock_ffiVoid_ObjCObject_NSError_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); +} - static NSConnection allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSConnection1, _lib._sel_allocWithZone_1, zone); - return NSConnection._(_ret, _lib, retain: false, release: true); - } +final _ObjCBlock_ffiVoid_ObjCObject_NSError_closureRegistry = {}; +int _ObjCBlock_ffiVoid_ObjCObject_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_ObjCObject_NSError_registerClosure( + Function fn) { + final id = ++_ObjCBlock_ffiVoid_ObjCObject_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_ObjCObject_NSError_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - static NSConnection alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSConnection1, _lib._sel_alloc1); - return NSConnection._(_ret, _lib, retain: false, release: true); - } +void _ObjCBlock_ffiVoid_ObjCObject_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) { + return (_ObjCBlock_ffiVoid_ObjCObject_NSError_closureRegistry[ + block.ref.target.address] + as void Function( + ffi.Pointer, ffi.Pointer))(arg0, arg1); +} - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSConnection1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } +class ObjCBlock_ffiVoid_ObjCObject_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ObjCObject_NSError._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSConnection1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_ObjCObject_NSError.fromFunctionPointer( + SentryCocoa 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)>( + _ObjCBlock_ffiVoid_ObjCObject_NSError_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSConnection1, _lib._sel_accessInstanceVariablesDirectly1); + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_ObjCObject_NSError.fromFunction( + SentryCocoa 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)>( + _ObjCBlock_ffiVoid_ObjCObject_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_ObjCObject_NSError_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 bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSConnection1, _lib._sel_useStoredAccessor1); - } +void + _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_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); +} - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSConnection1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } +final _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureRegistryIndex = + 0; +ffi.Pointer + _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_registerClosure( + Function fn) { + final id = + ++_ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureRegistryIndex; + _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureRegistry[ + id] = fn; + return ffi.Pointer.fromAddress(id); +} - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSConnection1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } +void + _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { + return (_ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureRegistry[ + block.ref.target.address] + as void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer))(arg0, arg1, arg2); +} - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSConnection1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } +class ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary + extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSConnection1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary.fromFunctionPointer( + SentryCocoa 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> block, + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>( + _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSConnection1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary.fromFunction( + SentryCocoa lib, + void Function(ffi.Pointer<_ObjCBlock> arg0, ffi.Pointer arg1, + ffi.Pointer arg2) + 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)>( + _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_registerClosure( + fn)), + 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); } } -class NSPortNameServer extends NSObject { - NSPortNameServer._(ffi.Pointer id, SentryCocoa lib, +class NSMutableString extends NSString { + NSMutableString._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSPortNameServer] that points to the same underlying object as [other]. - static NSPortNameServer castFrom(T other) { - return NSPortNameServer._(other._id, other._lib, + /// 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); } - /// Returns a [NSPortNameServer] that wraps the given raw object pointer. - static NSPortNameServer castFromPointer( + /// Returns a [NSMutableString] that wraps the given raw object pointer. + static NSMutableString castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSPortNameServer._(other, lib, retain: retain, release: release); + return NSMutableString._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSPortNameServer]. + /// 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_NSPortNameServer1); + obj._lib._class_NSMutableString1); } - static NSPortNameServer systemDefaultPortNameServer(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_537( - _lib._class_NSPortNameServer1, _lib._sel_systemDefaultPortNameServer1); - return NSPortNameServer._(_ret, _lib, retain: true, release: true); + void replaceCharactersInRange_withString_(_NSRange range, NSString? aString) { + _lib._objc_msgSend_641(_id, _lib._sel_replaceCharactersInRange_withString_1, + range, aString?._id ?? ffi.nullptr); } - NSPort portForName_(NSString? name) { - final _ret = _lib._objc_msgSend_538( - _id, _lib._sel_portForName_1, name?._id ?? ffi.nullptr); - return NSPort._(_ret, _lib, retain: true, release: true); + void insertString_atIndex_(NSString? aString, int loc) { + _lib._objc_msgSend_642(_id, _lib._sel_insertString_atIndex_1, + aString?._id ?? ffi.nullptr, loc); } - NSPort portForName_host_(NSString? name, NSString? host) { - final _ret = _lib._objc_msgSend_539(_id, _lib._sel_portForName_host_1, - name?._id ?? ffi.nullptr, host?._id ?? ffi.nullptr); - return NSPort._(_ret, _lib, retain: true, release: true); + void deleteCharactersInRange_(_NSRange range) { + _lib._objc_msgSend_447(_id, _lib._sel_deleteCharactersInRange_1, range); } - bool registerPort_name_(NSPort? port, NSString? name) { - return _lib._objc_msgSend_540(_id, _lib._sel_registerPort_name_1, - port?._id ?? ffi.nullptr, name?._id ?? ffi.nullptr); + void appendString_(NSString? aString) { + _lib._objc_msgSend_192( + _id, _lib._sel_appendString_1, aString?._id ?? ffi.nullptr); } - bool removePortForName_(NSString? name) { - return _lib._objc_msgSend_59( - _id, _lib._sel_removePortForName_1, name?._id ?? ffi.nullptr); + void appendFormat_(NSString? format) { + _lib._objc_msgSend_192( + _id, _lib._sel_appendFormat_1, format?._id ?? ffi.nullptr); } - @override - NSPortNameServer init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSPortNameServer._(_ret, _lib, retain: true, release: true); + void setString_(NSString? aString) { + _lib._objc_msgSend_192( + _id, _lib._sel_setString_1, aString?._id ?? ffi.nullptr); } - static NSPortNameServer new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSPortNameServer1, _lib._sel_new1); - return NSPortNameServer._(_ret, _lib, retain: false, release: true); + int replaceOccurrencesOfString_withString_options_range_(NSString? target, + NSString? replacement, int options, _NSRange searchRange) { + return _lib._objc_msgSend_643( + _id, + _lib._sel_replaceOccurrencesOfString_withString_options_range_1, + target?._id ?? ffi.nullptr, + replacement?._id ?? ffi.nullptr, + options, + searchRange); } - static NSPortNameServer allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSPortNameServer1, _lib._sel_allocWithZone_1, zone); - return NSPortNameServer._(_ret, _lib, retain: false, release: true); + bool applyTransform_reverse_range_updatedRange_(NSString transform, + bool reverse, _NSRange range, ffi.Pointer<_NSRange> resultingRange) { + return _lib._objc_msgSend_644( + _id, + _lib._sel_applyTransform_reverse_range_updatedRange_1, + transform._id, + reverse, + range, + resultingRange); } - static NSPortNameServer alloc(SentryCocoa _lib) { + NSMutableString initWithCapacity_(int capacity) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSPortNameServer1, _lib._sel_alloc1); - return NSPortNameServer._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_645(_id, _lib._sel_initWithCapacity_1, capacity); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSPortNameServer1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + static NSMutableString stringWithCapacity_(SentryCocoa _lib, int capacity) { + final _ret = _lib._objc_msgSend_645( + _lib._class_NSMutableString1, _lib._sel_stringWithCapacity_1, capacity); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSPortNameServer1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + @override + NSMutableString init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSPortNameServer1, - _lib._sel_accessInstanceVariablesDirectly1); + @override + NSMutableString initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSPortNameServer1, _lib._sel_useStoredAccessor1); + static ffi.Pointer getAvailableStringEncodings( + SentryCocoa _lib) { + return _lib._objc_msgSend_335( + _lib._class_NSMutableString1, _lib._sel_availableStringEncodings1); } - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSPortNameServer1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + static NSString localizedNameOfStringEncoding_( + SentryCocoa _lib, int encoding) { + final _ret = _lib._objc_msgSend_310(_lib._class_NSMutableString1, + _lib._sel_localizedNameOfStringEncoding_1, encoding); + return NSString._(_ret, _lib, retain: true, release: true); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSPortNameServer1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + static int getDefaultCStringEncoding(SentryCocoa _lib) { + return _lib._objc_msgSend_10( + _lib._class_NSMutableString1, _lib._sel_defaultCStringEncoding1); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSPortNameServer1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + @override + NSMutableString initWithCharactersNoCopy_length_freeWhenDone_( + ffi.Pointer characters, int length, bool freeBuffer) { + final _ret = _lib._objc_msgSend_346( + _id, + _lib._sel_initWithCharactersNoCopy_length_freeWhenDone_1, + characters, + length, + freeBuffer); + return NSMutableString._(_ret, _lib, retain: false, release: true); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSPortNameServer1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + @override + NSMutableString initWithCharactersNoCopy_length_deallocator_( + ffi.Pointer chars, + int len, + ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong deallocator) { + final _ret = _lib._objc_msgSend_347( + _id, + _lib._sel_initWithCharactersNoCopy_length_deallocator_1, + chars, + len, + deallocator._id); + return NSMutableString._(_ret, _lib, retain: false, release: true); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSPortNameServer1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + @override + NSMutableString initWithCharacters_length_( + ffi.Pointer characters, int length) { + final _ret = _lib._objc_msgSend_348( + _id, _lib._sel_initWithCharacters_length_1, characters, length); + return NSMutableString._(_ret, _lib, retain: true, release: true); } -} -class NSDistantObject extends NSProxy { - NSDistantObject._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + @override + NSMutableString initWithUTF8String_( + ffi.Pointer nullTerminatedCString) { + final _ret = _lib._objc_msgSend_349( + _id, _lib._sel_initWithUTF8String_1, nullTerminatedCString); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } - /// Returns a [NSDistantObject] that points to the same underlying object as [other]. - static NSDistantObject castFrom(T other) { - return NSDistantObject._(other._id, other._lib, - retain: true, release: true); + @override + NSMutableString initWithString_(NSString? aString) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithString_1, aString?._id ?? ffi.nullptr); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - /// Returns a [NSDistantObject] that wraps the given raw object pointer. - static NSDistantObject castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSDistantObject._(other, lib, retain: retain, release: release); + @override + NSMutableString initWithFormat_(NSString? format) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithFormat_1, format?._id ?? ffi.nullptr); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - /// Returns whether [obj] is an instance of [NSDistantObject]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSDistantObject1); + @override + NSMutableString initWithFormat_arguments_( + NSString? format, ffi.Pointer<__va_list_tag> argList) { + final _ret = _lib._objc_msgSend_350( + _id, + _lib._sel_initWithFormat_arguments_1, + format?._id ?? ffi.nullptr, + argList); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSObject proxyWithTarget_connection_( - SentryCocoa _lib, NSObject target, NSConnection? connection) { - final _ret = _lib._objc_msgSend_542( - _lib._class_NSDistantObject1, - _lib._sel_proxyWithTarget_connection_1, - target._id, - connection?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + @override + NSMutableString initWithFormat_locale_(NSString? format, NSObject locale) { + final _ret = _lib._objc_msgSend_163(_id, _lib._sel_initWithFormat_locale_1, + format?._id ?? ffi.nullptr, locale._id); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - NSDistantObject initWithTarget_connection_( - NSObject target, NSConnection? connection) { - final _ret = _lib._objc_msgSend_542( + @override + NSMutableString initWithFormat_locale_arguments_( + NSString? format, NSObject locale, ffi.Pointer<__va_list_tag> argList) { + final _ret = _lib._objc_msgSend_351( _id, - _lib._sel_initWithTarget_connection_1, - target._id, - connection?._id ?? ffi.nullptr); - return NSDistantObject._(_ret, _lib, retain: true, release: true); + _lib._sel_initWithFormat_locale_arguments_1, + format?._id ?? ffi.nullptr, + locale._id, + argList); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSObject proxyWithLocal_connection_( - SentryCocoa _lib, NSObject target, NSConnection? connection) { - final _ret = _lib._objc_msgSend_542( - _lib._class_NSDistantObject1, - _lib._sel_proxyWithLocal_connection_1, - target._id, - connection?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + @override + NSMutableString initWithValidatedFormat_validFormatSpecifiers_error_( + NSString? format, + NSString? validFormatSpecifiers, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_352( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_error_1, + format?._id ?? ffi.nullptr, + validFormatSpecifiers?._id ?? ffi.nullptr, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - NSDistantObject initWithLocal_connection_( - NSObject target, NSConnection? connection) { - final _ret = _lib._objc_msgSend_542( + @override + NSMutableString initWithValidatedFormat_validFormatSpecifiers_locale_error_( + NSString? format, + NSString? validFormatSpecifiers, + NSObject locale, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_353( _id, - _lib._sel_initWithLocal_connection_1, - target._id, - connection?._id ?? ffi.nullptr); - return NSDistantObject._(_ret, _lib, retain: true, release: true); + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_1, + format?._id ?? ffi.nullptr, + validFormatSpecifiers?._id ?? ffi.nullptr, + locale._id, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - NSDistantObject initWithCoder_(NSCoder? inCoder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); - return NSDistantObject._(_ret, _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_354( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_arguments_error_1, + format?._id ?? ffi.nullptr, + validFormatSpecifiers?._id ?? ffi.nullptr, + argList, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - void setProtocolForProxy_(Protocol? proto) { - _lib._objc_msgSend_543( - _id, _lib._sel_setProtocolForProxy_1, proto?._id ?? ffi.nullptr); + @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_355( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_1, + format?._id ?? ffi.nullptr, + validFormatSpecifiers?._id ?? ffi.nullptr, + locale._id, + argList, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - NSConnection? get connectionForProxy { - final _ret = _lib._objc_msgSend_536(_id, _lib._sel_connectionForProxy1); - return _ret.address == 0 - ? null - : NSConnection._(_ret, _lib, retain: true, release: true); + @override + NSMutableString initWithData_encoding_(NSData? data, int encoding) { + final _ret = _lib._objc_msgSend_356(_id, _lib._sel_initWithData_encoding_1, + data?._id ?? ffi.nullptr, encoding); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSObject alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSDistantObject1, _lib._sel_alloc1); - return NSObject._(_ret, _lib, retain: false, release: true); + @override + NSMutableString initWithBytes_length_encoding_( + ffi.Pointer bytes, int len, int encoding) { + final _ret = _lib._objc_msgSend_357( + _id, _lib._sel_initWithBytes_length_encoding_1, bytes, len, encoding); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - static bool respondsToSelector_( - SentryCocoa _lib, ffi.Pointer aSelector) { - return _lib._objc_msgSend_4(_lib._class_NSDistantObject1, - _lib._sel_respondsToSelector_1, aSelector); + @override + NSMutableString initWithBytesNoCopy_length_encoding_freeWhenDone_( + ffi.Pointer bytes, int len, int encoding, bool freeBuffer) { + final _ret = _lib._objc_msgSend_358( + _id, + _lib._sel_initWithBytesNoCopy_length_encoding_freeWhenDone_1, + bytes, + len, + encoding, + freeBuffer); + return NSMutableString._(_ret, _lib, retain: false, release: true); } -} - -class NSProxy extends _ObjCWrapper { - NSProxy._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - /// Returns a [NSProxy] that points to the same underlying object as [other]. - static NSProxy castFrom(T other) { - return NSProxy._(other._id, other._lib, retain: true, release: true); + @override + NSMutableString initWithBytesNoCopy_length_encoding_deallocator_( + ffi.Pointer bytes, + int len, + int encoding, + ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong deallocator) { + final _ret = _lib._objc_msgSend_359( + _id, + _lib._sel_initWithBytesNoCopy_length_encoding_deallocator_1, + bytes, + len, + encoding, + deallocator._id); + return NSMutableString._(_ret, _lib, retain: false, release: true); } - /// Returns a [NSProxy] that wraps the given raw object pointer. - static NSProxy castFromPointer(SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSProxy._(other, lib, retain: retain, release: release); + static NSMutableString string(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_string1); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - /// Returns whether [obj] is an instance of [NSProxy]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSProxy1); + static NSMutableString stringWithString_(SentryCocoa _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 NSObject alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSProxy1, _lib._sel_alloc1); - return NSObject._(_ret, _lib, retain: false, release: true); + static NSMutableString stringWithCharacters_length_( + SentryCocoa _lib, ffi.Pointer characters, int length) { + final _ret = _lib._objc_msgSend_348(_lib._class_NSMutableString1, + _lib._sel_stringWithCharacters_length_1, characters, length); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSObject allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSProxy1, _lib._sel_allocWithZone_1, zone); - return NSObject._(_ret, _lib, retain: false, release: true); + static NSMutableString stringWithUTF8String_( + SentryCocoa _lib, ffi.Pointer nullTerminatedCString) { + final _ret = _lib._objc_msgSend_349(_lib._class_NSMutableString1, + _lib._sel_stringWithUTF8String_1, nullTerminatedCString); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSObject class1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSProxy1, _lib._sel_class1); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSMutableString stringWithFormat_(SentryCocoa _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); } - void forwardInvocation_(NSInvocation? invocation) { - _lib._objc_msgSend_392( - _id, _lib._sel_forwardInvocation_1, invocation?._id ?? ffi.nullptr); + static NSMutableString localizedStringWithFormat_( + SentryCocoa _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); } - NSMethodSignature methodSignatureForSelector_(ffi.Pointer sel) { - final _ret = _lib._objc_msgSend_393( - _id, _lib._sel_methodSignatureForSelector_1, sel); - return NSMethodSignature._(_ret, _lib, retain: true, release: true); + static NSMutableString stringWithValidatedFormat_validFormatSpecifiers_error_( + SentryCocoa _lib, + NSString? format, + NSString? validFormatSpecifiers, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_352( + _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); } - void dealloc() { - _lib._objc_msgSend_1(_id, _lib._sel_dealloc1); + static NSMutableString + localizedStringWithValidatedFormat_validFormatSpecifiers_error_( + SentryCocoa _lib, + NSString? format, + NSString? validFormatSpecifiers, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_352( + _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); } - void finalize() { - _lib._objc_msgSend_1(_id, _lib._sel_finalize1); + @override + NSMutableString initWithCString_encoding_( + ffi.Pointer nullTerminatedCString, int encoding) { + final _ret = _lib._objc_msgSend_360(_id, + _lib._sel_initWithCString_encoding_1, nullTerminatedCString, encoding); + return NSMutableString._(_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 NSMutableString stringWithCString_encoding_( + SentryCocoa _lib, ffi.Pointer cString, int enc) { + final _ret = _lib._objc_msgSend_360(_lib._class_NSMutableString1, + _lib._sel_stringWithCString_encoding_1, cString, enc); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - NSString? get debugDescription { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_debugDescription1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + @override + NSMutableString initWithContentsOfURL_encoding_error_( + NSURL? url, int enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_361( + _id, + _lib._sel_initWithContentsOfURL_encoding_error_1, + url?._id ?? ffi.nullptr, + enc, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - static bool respondsToSelector_( - SentryCocoa _lib, ffi.Pointer aSelector) { - return _lib._objc_msgSend_4( - _lib._class_NSProxy1, _lib._sel_respondsToSelector_1, aSelector); + @override + NSMutableString initWithContentsOfFile_encoding_error_( + NSString? path, int enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_362( + _id, + _lib._sel_initWithContentsOfFile_encoding_error_1, + path?._id ?? ffi.nullptr, + enc, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - bool allowsWeakReference() { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsWeakReference1); + static NSMutableString stringWithContentsOfURL_encoding_error_( + SentryCocoa _lib, + NSURL? url, + int enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_361( + _lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfURL_encoding_error_1, + url?._id ?? ffi.nullptr, + enc, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - bool retainWeakReference() { - return _lib._objc_msgSend_12(_id, _lib._sel_retainWeakReference1); + static NSMutableString stringWithContentsOfFile_encoding_error_( + SentryCocoa _lib, + NSString? path, + int enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_362( + _lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfFile_encoding_error_1, + path?._id ?? ffi.nullptr, + enc, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); } -} - -class NSClassDescription extends NSObject { - NSClassDescription._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - /// Returns a [NSClassDescription] that points to the same underlying object as [other]. - static NSClassDescription castFrom(T other) { - return NSClassDescription._(other._id, other._lib, - retain: true, release: true); + @override + NSMutableString initWithContentsOfURL_usedEncoding_error_( + NSURL? url, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_363( + _id, + _lib._sel_initWithContentsOfURL_usedEncoding_error_1, + url?._id ?? ffi.nullptr, + enc, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - /// Returns a [NSClassDescription] that wraps the given raw object pointer. - static NSClassDescription castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSClassDescription._(other, lib, retain: retain, release: release); + @override + NSMutableString initWithContentsOfFile_usedEncoding_error_( + NSString? path, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_364( + _id, + _lib._sel_initWithContentsOfFile_usedEncoding_error_1, + path?._id ?? ffi.nullptr, + enc, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - /// Returns whether [obj] is an instance of [NSClassDescription]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSClassDescription1); + static NSMutableString stringWithContentsOfURL_usedEncoding_error_( + SentryCocoa _lib, + NSURL? url, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_363( + _lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfURL_usedEncoding_error_1, + url?._id ?? ffi.nullptr, + enc, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - static void registerClassDescription_forClass_( - SentryCocoa _lib, NSClassDescription? description, NSObject aClass) { - _lib._objc_msgSend_555( - _lib._class_NSClassDescription1, - _lib._sel_registerClassDescription_forClass_1, - description?._id ?? ffi.nullptr, - aClass._id); + static NSMutableString stringWithContentsOfFile_usedEncoding_error_( + SentryCocoa _lib, + NSString? path, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_364( + _lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfFile_usedEncoding_error_1, + path?._id ?? ffi.nullptr, + enc, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); } - static void invalidateClassDescriptionCache(SentryCocoa _lib) { - _lib._objc_msgSend_1(_lib._class_NSClassDescription1, - _lib._sel_invalidateClassDescriptionCache1); + static int + stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_( + SentryCocoa _lib, + NSData? data, + NSDictionary? opts, + ffi.Pointer> string, + ffi.Pointer usedLossyConversion) { + return _lib._objc_msgSend_365( + _lib._class_NSMutableString1, + _lib._sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1, + data?._id ?? ffi.nullptr, + opts?._id ?? ffi.nullptr, + string, + usedLossyConversion); } - static NSClassDescription classDescriptionForClass_( - SentryCocoa _lib, NSObject aClass) { - final _ret = _lib._objc_msgSend_556(_lib._class_NSClassDescription1, - _lib._sel_classDescriptionForClass_1, aClass._id); - return NSClassDescription._(_ret, _lib, retain: true, release: true); + static NSObject stringWithContentsOfFile_(SentryCocoa _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); } - @override - NSArray? get attributeKeys { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_attributeKeys1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static NSObject stringWithContentsOfURL_(SentryCocoa _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_241(_lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - @override - NSArray? get toOneRelationshipKeys { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_toOneRelationshipKeys1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static NSObject stringWithCString_length_( + SentryCocoa _lib, ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_360(_lib._class_NSMutableString1, + _lib._sel_stringWithCString_length_1, bytes, length); + return NSObject._(_ret, _lib, retain: true, release: true); } - @override - NSArray? get toManyRelationshipKeys { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_toManyRelationshipKeys1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static NSObject stringWithCString_( + SentryCocoa _lib, ffi.Pointer bytes) { + final _ret = _lib._objc_msgSend_349( + _lib._class_NSMutableString1, _lib._sel_stringWithCString_1, bytes); + return NSObject._(_ret, _lib, retain: true, release: true); } - @override - NSString inverseForRelationshipKey_(NSString? relationshipKey) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_inverseForRelationshipKey_1, - relationshipKey?._id ?? ffi.nullptr); + static NSString pathWithComponents_(SentryCocoa _lib, NSArray? components) { + final _ret = _lib._objc_msgSend_371(_lib._class_NSMutableString1, + _lib._sel_pathWithComponents_1, components?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } - @override - NSClassDescription init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSClassDescription._(_ret, _lib, retain: true, release: true); - } - - static NSClassDescription new1(SentryCocoa _lib) { + static NSMutableString new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSClassDescription1, _lib._sel_new1); - return NSClassDescription._(_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 NSClassDescription allocWithZone_( + static NSMutableString allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSClassDescription1, _lib._sel_allocWithZone_1, zone); - return NSClassDescription._(_ret, _lib, retain: false, release: true); + _lib._class_NSMutableString1, _lib._sel_allocWithZone_1, zone); + return NSMutableString._(_ret, _lib, retain: false, release: true); } - static NSClassDescription alloc(SentryCocoa _lib) { + static NSMutableString alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSClassDescription1, _lib._sel_alloc1); - return NSClassDescription._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_alloc1); + return NSMutableString._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -48205,7 +54166,7 @@ class NSClassDescription extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSClassDescription1, + _lib._class_NSMutableString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -48214,24 +54175,24 @@ class NSClassDescription extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSClassDescription1, + _lib._objc_msgSend_15(_lib._class_NSMutableString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSClassDescription1, + return _lib._objc_msgSend_12(_lib._class_NSMutableString1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSClassDescription1, _lib._sel_useStoredAccessor1); + _lib._class_NSMutableString1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSClassDescription1, + _lib._class_NSMutableString1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -48240,7 +54201,7 @@ class NSClassDescription extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSClassDescription1, + _lib._class_NSMutableString1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -48248,232 +54209,123 @@ class NSClassDescription extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSClassDescription1, + _lib._class_NSMutableString1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSClassDescription1, + final _ret = _lib._objc_msgSend_79(_lib._class_NSMutableString1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSClassDescription1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSMutableString1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSScriptObjectSpecifier extends NSObject { - NSScriptObjectSpecifier._(ffi.Pointer id, SentryCocoa lib, +class NSNotification extends NSObject { + NSNotification._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSScriptObjectSpecifier] that points to the same underlying object as [other]. - static NSScriptObjectSpecifier castFrom(T other) { - return NSScriptObjectSpecifier._(other._id, other._lib, - retain: true, release: true); + /// 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 [NSScriptObjectSpecifier] that wraps the given raw object pointer. - static NSScriptObjectSpecifier castFromPointer( + /// Returns a [NSNotification] that wraps the given raw object pointer. + static NSNotification castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSScriptObjectSpecifier._(other, lib, - retain: retain, release: release); + return NSNotification._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSScriptObjectSpecifier]. + /// 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_NSScriptObjectSpecifier1); - } - - static NSScriptObjectSpecifier objectSpecifierWithDescriptor_( - SentryCocoa _lib, NSAppleEventDescriptor? descriptor) { - final _ret = _lib._objc_msgSend_580( - _lib._class_NSScriptObjectSpecifier1, - _lib._sel_objectSpecifierWithDescriptor_1, - descriptor?._id ?? ffi.nullptr); - return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); - } - - NSScriptObjectSpecifier initWithContainerSpecifier_key_( - NSScriptObjectSpecifier? container, NSString? property) { - final _ret = _lib._objc_msgSend_581( - _id, - _lib._sel_initWithContainerSpecifier_key_1, - container?._id ?? ffi.nullptr, - property?._id ?? ffi.nullptr); - return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); - } - - NSScriptObjectSpecifier - initWithContainerClassDescription_containerSpecifier_key_( - NSScriptClassDescription? classDesc, - NSScriptObjectSpecifier? container, - NSString? property) { - final _ret = _lib._objc_msgSend_598( - _id, - _lib._sel_initWithContainerClassDescription_containerSpecifier_key_1, - classDesc?._id ?? ffi.nullptr, - container?._id ?? ffi.nullptr, - property?._id ?? ffi.nullptr); - return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); - } - - NSScriptObjectSpecifier initWithCoder_(NSCoder? inCoder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); - return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); - } - - NSScriptObjectSpecifier? get childSpecifier { - final _ret = _lib._objc_msgSend_588(_id, _lib._sel_childSpecifier1); - return _ret.address == 0 - ? null - : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); - } - - set childSpecifier(NSScriptObjectSpecifier? value) { - return _lib._objc_msgSend_589( - _id, _lib._sel_setChildSpecifier_1, value?._id ?? ffi.nullptr); - } - - NSScriptObjectSpecifier? get containerSpecifier { - final _ret = _lib._objc_msgSend_588(_id, _lib._sel_containerSpecifier1); - return _ret.address == 0 - ? null - : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); - } - - set containerSpecifier(NSScriptObjectSpecifier? value) { - return _lib._objc_msgSend_589( - _id, _lib._sel_setContainerSpecifier_1, value?._id ?? ffi.nullptr); - } - - bool get containerIsObjectBeingTested { - return _lib._objc_msgSend_12(_id, _lib._sel_containerIsObjectBeingTested1); - } - - set containerIsObjectBeingTested(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setContainerIsObjectBeingTested_1, value); - } - - bool get containerIsRangeContainerObject { - return _lib._objc_msgSend_12( - _id, _lib._sel_containerIsRangeContainerObject1); - } - - set containerIsRangeContainerObject(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setContainerIsRangeContainerObject_1, value); - } - - NSString? get key { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_key1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set key(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setKey_1, value?._id ?? ffi.nullptr); - } - - NSScriptClassDescription? get containerClassDescription { - final _ret = - _lib._objc_msgSend_584(_id, _lib._sel_containerClassDescription1); - return _ret.address == 0 - ? null - : NSScriptClassDescription._(_ret, _lib, retain: true, release: true); - } - - set containerClassDescription(NSScriptClassDescription? value) { - return _lib._objc_msgSend_599(_id, _lib._sel_setContainerClassDescription_1, - value?._id ?? ffi.nullptr); - } - - NSScriptClassDescription? get keyClassDescription { - final _ret = _lib._objc_msgSend_584(_id, _lib._sel_keyClassDescription1); - return _ret.address == 0 - ? null - : NSScriptClassDescription._(_ret, _lib, retain: true, release: true); + obj._lib._class_NSNotification1); } - - ffi.Pointer indicesOfObjectsByEvaluatingWithContainer_count_( - NSObject container, ffi.Pointer count) { - return _lib._objc_msgSend_600( - _id, - _lib._sel_indicesOfObjectsByEvaluatingWithContainer_count_1, - container._id, - count); + + NSString get name { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSObject objectsByEvaluatingWithContainers_(NSObject containers) { - final _ret = _lib._objc_msgSend_16( - _id, _lib._sel_objectsByEvaluatingWithContainers_1, containers._id); + NSObject get object { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_object1); return NSObject._(_ret, _lib, retain: true, release: true); } - NSObject get objectsByEvaluatingSpecifier { - final _ret = - _lib._objc_msgSend_2(_id, _lib._sel_objectsByEvaluatingSpecifier1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSDictionary? get userInfo { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_userInfo1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - int get evaluationErrorNumber { - return _lib._objc_msgSend_78(_id, _lib._sel_evaluationErrorNumber1); + NSNotification initWithName_object_userInfo_( + NSString name, NSObject object, NSDictionary? userInfo) { + final _ret = _lib._objc_msgSend_646( + _id, + _lib._sel_initWithName_object_userInfo_1, + name._id, + object._id, + userInfo?._id ?? ffi.nullptr); + return NSNotification._(_ret, _lib, retain: true, release: true); } - set evaluationErrorNumber(int value) { - return _lib._objc_msgSend_590( - _id, _lib._sel_setEvaluationErrorNumber_1, value); + 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); } - NSScriptObjectSpecifier? get evaluationErrorSpecifier { - final _ret = - _lib._objc_msgSend_588(_id, _lib._sel_evaluationErrorSpecifier1); - return _ret.address == 0 - ? null - : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); + static NSNotification notificationWithName_object_( + SentryCocoa _lib, NSString aName, NSObject anObject) { + final _ret = _lib._objc_msgSend_163(_lib._class_NSNotification1, + _lib._sel_notificationWithName_object_1, aName._id, anObject._id); + return NSNotification._(_ret, _lib, retain: true, release: true); } - NSAppleEventDescriptor? get descriptor { - final _ret = _lib._objc_msgSend_558(_id, _lib._sel_descriptor1); - return _ret.address == 0 - ? null - : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + static NSNotification notificationWithName_object_userInfo_(SentryCocoa _lib, + NSString aName, NSObject anObject, NSDictionary? aUserInfo) { + final _ret = _lib._objc_msgSend_646( + _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); } @override - NSScriptObjectSpecifier init() { + NSNotification init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); + return NSNotification._(_ret, _lib, retain: true, release: true); } - static NSScriptObjectSpecifier new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSScriptObjectSpecifier1, _lib._sel_new1); - return NSScriptObjectSpecifier._(_ret, _lib, retain: false, release: true); + static NSNotification new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSNotification1, _lib._sel_new1); + return NSNotification._(_ret, _lib, retain: false, release: true); } - static NSScriptObjectSpecifier allocWithZone_( + static NSNotification allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSScriptObjectSpecifier1, _lib._sel_allocWithZone_1, zone); - return NSScriptObjectSpecifier._(_ret, _lib, retain: false, release: true); + _lib._class_NSNotification1, _lib._sel_allocWithZone_1, zone); + return NSNotification._(_ret, _lib, retain: false, release: true); } - static NSScriptObjectSpecifier alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSScriptObjectSpecifier1, _lib._sel_alloc1); - return NSScriptObjectSpecifier._(_ret, _lib, retain: false, release: true); + static NSNotification alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSNotification1, _lib._sel_alloc1); + return NSNotification._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -48482,7 +54334,7 @@ class NSScriptObjectSpecifier extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSScriptObjectSpecifier1, + _lib._class_NSNotification1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -48491,24 +54343,24 @@ class NSScriptObjectSpecifier extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSScriptObjectSpecifier1, + _lib._objc_msgSend_15(_lib._class_NSNotification1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSScriptObjectSpecifier1, + return _lib._objc_msgSend_12(_lib._class_NSNotification1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSScriptObjectSpecifier1, _lib._sel_useStoredAccessor1); + _lib._class_NSNotification1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSScriptObjectSpecifier1, + _lib._class_NSNotification1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -48517,7 +54369,7 @@ class NSScriptObjectSpecifier extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSScriptObjectSpecifier1, + _lib._class_NSNotification1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -48525,440 +54377,533 @@ class NSScriptObjectSpecifier extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSScriptObjectSpecifier1, + _lib._class_NSNotification1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSScriptObjectSpecifier1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79( + _lib._class_NSNotification1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSScriptObjectSpecifier1, - _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSNotification1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSAppleEventDescriptor extends NSObject { - NSAppleEventDescriptor._(ffi.Pointer id, SentryCocoa lib, +class NSBundle extends NSObject { + NSBundle._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSAppleEventDescriptor] that points to the same underlying object as [other]. - static NSAppleEventDescriptor castFrom(T other) { - return NSAppleEventDescriptor._(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 [NSAppleEventDescriptor] that wraps the given raw object pointer. - static NSAppleEventDescriptor castFromPointer( + /// Returns a [NSBundle] that wraps the given raw object pointer. + static NSBundle castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSAppleEventDescriptor._(other, lib, - retain: retain, release: release); + return NSBundle._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSAppleEventDescriptor]. + /// 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_NSAppleEventDescriptor1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSBundle1); } - static NSAppleEventDescriptor nullDescriptor(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_558( - _lib._class_NSAppleEventDescriptor1, _lib._sel_nullDescriptor1); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + static NSBundle? getMainBundle(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_647(_lib._class_NSBundle1, _lib._sel_mainBundle1); + return _ret.address == 0 + ? null + : NSBundle._(_ret, _lib, retain: true, release: true); } - static NSAppleEventDescriptor descriptorWithDescriptorType_bytes_length_( - SentryCocoa _lib, - int descriptorType, - ffi.Pointer bytes, - int byteCount) { - final _ret = _lib._objc_msgSend_559( - _lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithDescriptorType_bytes_length_1, - descriptorType, - bytes, - byteCount); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + static NSBundle bundleWithPath_(SentryCocoa _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); } - static NSAppleEventDescriptor descriptorWithDescriptorType_data_( - SentryCocoa _lib, int descriptorType, NSData? data) { - final _ret = _lib._objc_msgSend_560( - _lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithDescriptorType_data_1, - descriptorType, - data?._id ?? ffi.nullptr); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + 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); } - static NSAppleEventDescriptor descriptorWithBoolean_( - SentryCocoa _lib, int boolean) { - final _ret = _lib._objc_msgSend_561(_lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithBoolean_1, boolean); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + static NSBundle bundleWithURL_(SentryCocoa _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_241(_lib._class_NSBundle1, + _lib._sel_bundleWithURL_1, url?._id ?? ffi.nullptr); + return NSBundle._(_ret, _lib, retain: true, release: true); } - static NSAppleEventDescriptor descriptorWithEnumCode_( - SentryCocoa _lib, int enumerator) { - final _ret = _lib._objc_msgSend_562(_lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithEnumCode_1, enumerator); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + NSBundle initWithURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_241( + _id, _lib._sel_initWithURL_1, url?._id ?? ffi.nullptr); + return NSBundle._(_ret, _lib, retain: true, release: true); } - static NSAppleEventDescriptor descriptorWithInt32_( - SentryCocoa _lib, int signedInt) { - final _ret = _lib._objc_msgSend_563(_lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithInt32_1, signedInt); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + static NSBundle bundleForClass_(SentryCocoa _lib, NSObject aClass) { + final _ret = _lib._objc_msgSend_648( + _lib._class_NSBundle1, _lib._sel_bundleForClass_1, aClass._id); + return NSBundle._(_ret, _lib, retain: true, release: true); } - static NSAppleEventDescriptor descriptorWithDouble_( - SentryCocoa _lib, double doubleValue) { - final _ret = _lib._objc_msgSend_564(_lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithDouble_1, doubleValue); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + static NSBundle bundleWithIdentifier_( + SentryCocoa _lib, NSString? identifier) { + final _ret = _lib._objc_msgSend_649(_lib._class_NSBundle1, + _lib._sel_bundleWithIdentifier_1, identifier?._id ?? ffi.nullptr); + return NSBundle._(_ret, _lib, retain: true, release: true); } - static NSAppleEventDescriptor descriptorWithTypeCode_( - SentryCocoa _lib, int typeCode) { - final _ret = _lib._objc_msgSend_562(_lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithTypeCode_1, typeCode); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + static NSArray? getAllBundles(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_79(_lib._class_NSBundle1, _lib._sel_allBundles1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - static NSAppleEventDescriptor descriptorWithString_( - SentryCocoa _lib, NSString? string) { - final _ret = _lib._objc_msgSend_565(_lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithString_1, string?._id ?? ffi.nullptr); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + static NSArray? getAllFrameworks(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_79(_lib._class_NSBundle1, _lib._sel_allFrameworks1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - static NSAppleEventDescriptor descriptorWithDate_( - SentryCocoa _lib, NSDate? date) { - final _ret = _lib._objc_msgSend_566(_lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithDate_1, date?._id ?? ffi.nullptr); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + bool load() { + return _lib._objc_msgSend_12(_id, _lib._sel_load1); } - static NSAppleEventDescriptor descriptorWithFileURL_( - SentryCocoa _lib, NSURL? fileURL) { - final _ret = _lib._objc_msgSend_567(_lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithFileURL_1, fileURL?._id ?? ffi.nullptr); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + bool get loaded { + return _lib._objc_msgSend_12(_id, _lib._sel_isLoaded1); } - static NSAppleEventDescriptor - appleEventWithEventClass_eventID_targetDescriptor_returnID_transactionID_( - SentryCocoa _lib, - int eventClass, - int eventID, - NSAppleEventDescriptor? targetDescriptor, - int returnID, - int transactionID) { - final _ret = _lib._objc_msgSend_568( - _lib._class_NSAppleEventDescriptor1, - _lib._sel_appleEventWithEventClass_eventID_targetDescriptor_returnID_transactionID_1, - eventClass, - eventID, - targetDescriptor?._id ?? ffi.nullptr, - returnID, - transactionID); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + bool unload() { + return _lib._objc_msgSend_12(_id, _lib._sel_unload1); } - static NSAppleEventDescriptor listDescriptor(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_558( - _lib._class_NSAppleEventDescriptor1, _lib._sel_listDescriptor1); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + bool preflightAndReturnError_(ffi.Pointer> error) { + return _lib._objc_msgSend_236( + _id, _lib._sel_preflightAndReturnError_1, error); } - static NSAppleEventDescriptor recordDescriptor(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_558( - _lib._class_NSAppleEventDescriptor1, _lib._sel_recordDescriptor1); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + bool loadAndReturnError_(ffi.Pointer> error) { + return _lib._objc_msgSend_236(_id, _lib._sel_loadAndReturnError_1, error); } - static NSAppleEventDescriptor currentProcessDescriptor(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_558(_lib._class_NSAppleEventDescriptor1, - _lib._sel_currentProcessDescriptor1); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + 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); } - static NSAppleEventDescriptor descriptorWithProcessIdentifier_( - SentryCocoa _lib, int processIdentifier) { - final _ret = _lib._objc_msgSend_563(_lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithProcessIdentifier_1, processIdentifier); - return NSAppleEventDescriptor._(_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); } - static NSAppleEventDescriptor descriptorWithBundleIdentifier_( - SentryCocoa _lib, NSString? bundleIdentifier) { - final _ret = _lib._objc_msgSend_565( - _lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithBundleIdentifier_1, - bundleIdentifier?._id ?? ffi.nullptr); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + 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); } - static NSAppleEventDescriptor descriptorWithApplicationURL_( - SentryCocoa _lib, NSURL? applicationURL) { - final _ret = _lib._objc_msgSend_567( - _lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithApplicationURL_1, - applicationURL?._id ?? ffi.nullptr); - return NSAppleEventDescriptor._(_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); } - NSAppleEventDescriptor initWithAEDescNoCopy_(ffi.Pointer aeDesc) { - final _ret = - _lib._objc_msgSend_569(_id, _lib._sel_initWithAEDescNoCopy_1, aeDesc); - return NSAppleEventDescriptor._(_ret, _lib, retain: false, release: true); + 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); } - NSAppleEventDescriptor initWithDescriptorType_bytes_length_( - int descriptorType, ffi.Pointer bytes, int byteCount) { - final _ret = _lib._objc_msgSend_570( + 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); + } + + 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); + } + + 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); + } + + 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); + } + + 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); + } + + 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); + } + + 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); + } + + NSString pathForAuxiliaryExecutable_(NSString? executableName) { + final _ret = _lib._objc_msgSend_64( _id, - _lib._sel_initWithDescriptorType_bytes_length_1, - descriptorType, - bytes, - byteCount); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + _lib._sel_pathForAuxiliaryExecutable_1, + executableName?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - NSAppleEventDescriptor initWithDescriptorType_data_( - int descriptorType, NSData? data) { - final _ret = _lib._objc_msgSend_571( + 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); + } + + 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); + } + + 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); + } + + 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); + } + + static NSURL URLForResource_withExtension_subdirectory_inBundleWithURL_( + SentryCocoa _lib, + NSString? name, + NSString? ext, + NSString? subpath, + NSURL? bundleURL) { + final _ret = _lib._objc_msgSend_650( + _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); + } + + static NSArray URLsForResourcesWithExtension_subdirectory_inBundleWithURL_( + SentryCocoa _lib, NSString? ext, NSString? subpath, NSURL? bundleURL) { + final _ret = _lib._objc_msgSend_651( + _lib._class_NSBundle1, + _lib._sel_URLsForResourcesWithExtension_subdirectory_inBundleWithURL_1, + ext?._id ?? ffi.nullptr, + subpath?._id ?? ffi.nullptr, + bundleURL?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSURL URLForResource_withExtension_(NSString? name, NSString? ext) { + final _ret = _lib._objc_msgSend_652( _id, - _lib._sel_initWithDescriptorType_data_1, - descriptorType, - data?._id ?? ffi.nullptr); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + _lib._sel_URLForResource_withExtension_1, + name?._id ?? ffi.nullptr, + ext?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - NSAppleEventDescriptor - initWithEventClass_eventID_targetDescriptor_returnID_transactionID_( - int eventClass, - int eventID, - NSAppleEventDescriptor? targetDescriptor, - int returnID, - int transactionID) { - final _ret = _lib._objc_msgSend_572( + NSURL URLForResource_withExtension_subdirectory_( + NSString? name, NSString? ext, NSString? subpath) { + final _ret = _lib._objc_msgSend_653( _id, - _lib._sel_initWithEventClass_eventID_targetDescriptor_returnID_transactionID_1, - eventClass, - eventID, - targetDescriptor?._id ?? ffi.nullptr, - returnID, - transactionID); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + _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); } - NSAppleEventDescriptor initListDescriptor() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_initListDescriptor1); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + NSURL URLForResource_withExtension_subdirectory_localization_(NSString? name, + NSString? ext, NSString? subpath, NSString? localizationName) { + final _ret = _lib._objc_msgSend_654( + _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); } - NSAppleEventDescriptor initRecordDescriptor() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_initRecordDescriptor1); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + NSArray URLsForResourcesWithExtension_subdirectory_( + NSString? ext, NSString? subpath) { + final _ret = _lib._objc_msgSend_655( + _id, + _lib._sel_URLsForResourcesWithExtension_subdirectory_1, + ext?._id ?? ffi.nullptr, + subpath?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - ffi.Pointer get aeDesc { - return _lib._objc_msgSend_573(_id, _lib._sel_aeDesc1); + NSArray URLsForResourcesWithExtension_subdirectory_localization_( + NSString? ext, NSString? subpath, NSString? localizationName) { + final _ret = _lib._objc_msgSend_656( + _id, + _lib._sel_URLsForResourcesWithExtension_subdirectory_localization_1, + ext?._id ?? ffi.nullptr, + subpath?._id ?? ffi.nullptr, + localizationName?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - int get descriptorType { - return _lib._objc_msgSend_197(_id, _lib._sel_descriptorType1); + static NSString pathForResource_ofType_inDirectory_( + SentryCocoa _lib, NSString? name, NSString? ext, NSString? bundlePath) { + final _ret = _lib._objc_msgSend_657( + _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); + } + + static NSArray pathsForResourcesOfType_inDirectory_( + SentryCocoa _lib, NSString? ext, NSString? bundlePath) { + final _ret = _lib._objc_msgSend_655( + _lib._class_NSBundle1, + _lib._sel_pathsForResourcesOfType_inDirectory_1, + ext?._id ?? ffi.nullptr, + bundlePath?._id ?? ffi.nullptr); + return NSArray._(_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); + NSString pathForResource_ofType_(NSString? name, NSString? ext) { + final _ret = _lib._objc_msgSend_341(_id, _lib._sel_pathForResource_ofType_1, + name?._id ?? ffi.nullptr, ext?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - int get booleanValue { - return _lib._objc_msgSend_216(_id, _lib._sel_booleanValue1); + NSString pathForResource_ofType_inDirectory_forLocalization_(NSString? name, + NSString? ext, NSString? subpath, NSString? localizationName) { + final _ret = _lib._objc_msgSend_658( + _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); } - int get enumCodeValue { - return _lib._objc_msgSend_197(_id, _lib._sel_enumCodeValue1); + NSArray pathsForResourcesOfType_inDirectory_forLocalization_( + NSString? ext, NSString? subpath, NSString? localizationName) { + final _ret = _lib._objc_msgSend_656( + _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); } - int get int32Value { - return _lib._objc_msgSend_219(_id, _lib._sel_int32Value1); + NSString localizedStringForKey_value_table_( + NSString? key, NSString? value, NSString? tableName) { + final _ret = _lib._objc_msgSend_657( + _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); } - double get doubleValue { - return _lib._objc_msgSend_155(_id, _lib._sel_doubleValue1); + NSAttributedString localizedAttributedStringForKey_value_table_( + NSString? key, NSString? value, NSString? tableName) { + final _ret = _lib._objc_msgSend_683( + _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); } - int get typeCodeValue { - return _lib._objc_msgSend_197(_id, _lib._sel_typeCodeValue1); + NSString localizedStringForKey_value_table_localizations_(NSString? key, + NSString? value, NSString? tableName, NSArray? localizations) { + final _ret = _lib._objc_msgSend_684( + _id, + _lib._sel_localizedStringForKey_value_table_localizations_1, + key?._id ?? ffi.nullptr, + value?._id ?? ffi.nullptr, + tableName?._id ?? ffi.nullptr, + localizations?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get stringValue { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_stringValue1); + 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); } - NSDate? get dateValue { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_dateValue1); + NSDictionary? get infoDictionary { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_infoDictionary1); return _ret.address == 0 ? null - : NSDate._(_ret, _lib, retain: true, release: true); + : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSURL? get fileURLValue { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_fileURLValue1); + NSDictionary? get localizedInfoDictionary { + final _ret = + _lib._objc_msgSend_170(_id, _lib._sel_localizedInfoDictionary1); return _ret.address == 0 ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - int get eventClass { - return _lib._objc_msgSend_197(_id, _lib._sel_eventClass1); - } - - int get eventID { - return _lib._objc_msgSend_197(_id, _lib._sel_eventID1); - } - - int get returnID { - return _lib._objc_msgSend_217(_id, _lib._sel_returnID1); - } - - int get transactionID { - return _lib._objc_msgSend_219(_id, _lib._sel_transactionID1); - } - - void setParamDescriptor_forKeyword_( - NSAppleEventDescriptor? descriptor, int keyword) { - _lib._objc_msgSend_574(_id, _lib._sel_setParamDescriptor_forKeyword_1, - descriptor?._id ?? ffi.nullptr, keyword); - } - - NSAppleEventDescriptor paramDescriptorForKeyword_(int keyword) { - final _ret = _lib._objc_msgSend_562( - _id, _lib._sel_paramDescriptorForKeyword_1, keyword); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - void removeParamDescriptorWithKeyword_(int keyword) { - _lib._objc_msgSend_575( - _id, _lib._sel_removeParamDescriptorWithKeyword_1, keyword); - } - - void setAttributeDescriptor_forKeyword_( - NSAppleEventDescriptor? descriptor, int keyword) { - _lib._objc_msgSend_574(_id, _lib._sel_setAttributeDescriptor_forKeyword_1, - descriptor?._id ?? ffi.nullptr, keyword); - } - - NSAppleEventDescriptor attributeDescriptorForKeyword_(int keyword) { - final _ret = _lib._objc_msgSend_562( - _id, _lib._sel_attributeDescriptorForKeyword_1, keyword); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSAppleEventDescriptor sendEventWithOptions_timeout_error_(int sendOptions, - double timeoutInSeconds, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_576( - _id, - _lib._sel_sendEventWithOptions_timeout_error_1, - sendOptions, - timeoutInSeconds, - error); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + 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); } - bool get isRecordDescriptor { - return _lib._objc_msgSend_12(_id, _lib._sel_isRecordDescriptor1); + 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); } - int get numberOfItems { - return _lib._objc_msgSend_78(_id, _lib._sel_numberOfItems1); + NSObject get principalClass { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_principalClass1); + return NSObject._(_ret, _lib, retain: true, release: true); } - void insertDescriptor_atIndex_( - NSAppleEventDescriptor? descriptor, int index) { - _lib._objc_msgSend_577(_id, _lib._sel_insertDescriptor_atIndex_1, - descriptor?._id ?? ffi.nullptr, index); + NSArray? get preferredLocalizations { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_preferredLocalizations1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSAppleEventDescriptor descriptorAtIndex_(int index) { - final _ret = - _lib._objc_msgSend_578(_id, _lib._sel_descriptorAtIndex_1, index); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + NSArray? get localizations { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_localizations1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - void removeDescriptorAtIndex_(int index) { - _lib._objc_msgSend_394(_id, _lib._sel_removeDescriptorAtIndex_1, index); + NSString? get developmentLocalization { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_developmentLocalization1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void setDescriptor_forKeyword_( - NSAppleEventDescriptor? descriptor, int keyword) { - _lib._objc_msgSend_574(_id, _lib._sel_setDescriptor_forKeyword_1, - descriptor?._id ?? ffi.nullptr, keyword); + static NSArray preferredLocalizationsFromArray_( + SentryCocoa _lib, NSArray? localizationsArray) { + final _ret = _lib._objc_msgSend_63( + _lib._class_NSBundle1, + _lib._sel_preferredLocalizationsFromArray_1, + localizationsArray?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSAppleEventDescriptor descriptorForKeyword_(int keyword) { - final _ret = - _lib._objc_msgSend_562(_id, _lib._sel_descriptorForKeyword_1, keyword); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + static NSArray preferredLocalizationsFromArray_forPreferences_( + SentryCocoa _lib, + NSArray? localizationsArray, + NSArray? preferencesArray) { + final _ret = _lib._objc_msgSend_685( + _lib._class_NSBundle1, + _lib._sel_preferredLocalizationsFromArray_forPreferences_1, + localizationsArray?._id ?? ffi.nullptr, + preferencesArray?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - void removeDescriptorWithKeyword_(int keyword) { - _lib._objc_msgSend_575( - _id, _lib._sel_removeDescriptorWithKeyword_1, keyword); + NSArray? get executableArchitectures { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_executableArchitectures1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - int keywordForDescriptorAtIndex_(int index) { - return _lib._objc_msgSend_579( - _id, _lib._sel_keywordForDescriptorAtIndex_1, index); + void setPreservationPriority_forTags_(double priority, NSSet? tags) { + _lib._objc_msgSend_686(_id, _lib._sel_setPreservationPriority_forTags_1, + priority, tags?._id ?? ffi.nullptr); } - NSAppleEventDescriptor coerceToDescriptorType_(int descriptorType) { - final _ret = _lib._objc_msgSend_562( - _id, _lib._sel_coerceToDescriptorType_1, descriptorType); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + double preservationPriorityForTag_(NSString? tag) { + return _lib._objc_msgSend_284( + _id, _lib._sel_preservationPriorityForTag_1, tag?._id ?? ffi.nullptr); } @override - NSAppleEventDescriptor init() { + NSBundle init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + return NSBundle._(_ret, _lib, retain: true, release: true); } - static NSAppleEventDescriptor new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSAppleEventDescriptor1, _lib._sel_new1); - return NSAppleEventDescriptor._(_ret, _lib, retain: false, release: true); + static NSBundle new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSBundle1, _lib._sel_new1); + return NSBundle._(_ret, _lib, retain: false, release: true); } - static NSAppleEventDescriptor allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static NSBundle allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSAppleEventDescriptor1, _lib._sel_allocWithZone_1, zone); - return NSAppleEventDescriptor._(_ret, _lib, retain: false, release: true); + _lib._class_NSBundle1, _lib._sel_allocWithZone_1, zone); + return NSBundle._(_ret, _lib, retain: false, release: true); } - static NSAppleEventDescriptor alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSAppleEventDescriptor1, _lib._sel_alloc1); - return NSAppleEventDescriptor._(_ret, _lib, retain: false, release: true); + static NSBundle alloc(SentryCocoa _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_( @@ -48967,7 +54912,7 @@ class NSAppleEventDescriptor extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSAppleEventDescriptor1, + _lib._class_NSBundle1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -48976,24 +54921,24 @@ class NSAppleEventDescriptor extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSAppleEventDescriptor1, + _lib._objc_msgSend_15(_lib._class_NSBundle1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSAppleEventDescriptor1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSBundle1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSAppleEventDescriptor1, _lib._sel_useStoredAccessor1); + _lib._class_NSBundle1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSAppleEventDescriptor1, + _lib._class_NSBundle1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -49002,7 +54947,7 @@ class NSAppleEventDescriptor extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSAppleEventDescriptor1, + _lib._class_NSBundle1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -49010,244 +54955,331 @@ class NSAppleEventDescriptor extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSAppleEventDescriptor1, + _lib._class_NSBundle1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSAppleEventDescriptor1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79( + _lib._class_NSBundle1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSAppleEventDescriptor1, - _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSBundle1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -@ffi.Packed(2) -final class AEDesc extends ffi.Struct { - @ffi.UnsignedInt() - external int descriptorType; - - external ffi.Pointer> dataHandle; -} - -final class OpaqueAEDataStorageType extends ffi.Opaque {} - -abstract class NSAppleEventSendOptions { - static const int NSAppleEventSendNoReply = 1; - static const int NSAppleEventSendQueueReply = 2; - static const int NSAppleEventSendWaitForReply = 3; - static const int NSAppleEventSendNeverInteract = 16; - static const int NSAppleEventSendCanInteract = 32; - static const int NSAppleEventSendAlwaysInteract = 48; - static const int NSAppleEventSendCanSwitchLayer = 64; - static const int NSAppleEventSendDontRecord = 4096; - static const int NSAppleEventSendDontExecute = 8192; - static const int NSAppleEventSendDontAnnotate = 65536; - static const int NSAppleEventSendDefaultOptions = 35; -} - -class NSScriptClassDescription extends NSClassDescription { - NSScriptClassDescription._(ffi.Pointer id, SentryCocoa lib, +class NSAttributedString extends NSObject { + NSAttributedString._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSScriptClassDescription] that points to the same underlying object as [other]. - static NSScriptClassDescription castFrom(T other) { - return NSScriptClassDescription._(other._id, other._lib, + /// 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 [NSScriptClassDescription] that wraps the given raw object pointer. - static NSScriptClassDescription castFromPointer( + /// Returns a [NSAttributedString] that wraps the given raw object pointer. + static NSAttributedString castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSScriptClassDescription._(other, lib, - retain: retain, release: release); + return NSAttributedString._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSScriptClassDescription]. + /// 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_NSScriptClassDescription1); + obj._lib._class_NSAttributedString1); } - static NSScriptClassDescription classDescriptionForClass_( - SentryCocoa _lib, NSObject aClass) { - final _ret = _lib._objc_msgSend_582(_lib._class_NSScriptClassDescription1, - _lib._sel_classDescriptionForClass_1, aClass._id); - return NSScriptClassDescription._(_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); } - NSScriptClassDescription initWithSuiteName_className_dictionary_( - NSString? suiteName, - NSString? className, - NSDictionary? classDeclaration) { - final _ret = _lib._objc_msgSend_583( + NSDictionary attributesAtIndex_effectiveRange_( + int location, ffi.Pointer<_NSRange> range) { + final _ret = _lib._objc_msgSend_659( + _id, _lib._sel_attributesAtIndex_effectiveRange_1, location, range); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + int get length { + return _lib._objc_msgSend_10(_id, _lib._sel_length1); + } + + NSObject attribute_atIndex_effectiveRange_( + NSString attrName, int location, ffi.Pointer<_NSRange> range) { + final _ret = _lib._objc_msgSend_660( _id, - _lib._sel_initWithSuiteName_className_dictionary_1, - suiteName?._id ?? ffi.nullptr, - className?._id ?? ffi.nullptr, - classDeclaration?._id ?? ffi.nullptr); - return NSScriptClassDescription._(_ret, _lib, retain: true, release: true); + _lib._sel_attribute_atIndex_effectiveRange_1, + attrName._id, + location, + range); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSString? get suiteName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_suiteName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSAttributedString attributedSubstringFromRange_(_NSRange range) { + final _ret = _lib._objc_msgSend_661( + _id, _lib._sel_attributedSubstringFromRange_1, range); + return NSAttributedString._(_ret, _lib, retain: true, release: true); } - NSString? get className { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_className1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSDictionary attributesAtIndex_longestEffectiveRange_inRange_( + int location, ffi.Pointer<_NSRange> range, _NSRange rangeLimit) { + final _ret = _lib._objc_msgSend_662( + _id, + _lib._sel_attributesAtIndex_longestEffectiveRange_inRange_1, + location, + range, + rangeLimit); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - NSString? get implementationClassName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_implementationClassName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSObject attribute_atIndex_longestEffectiveRange_inRange_(NSString attrName, + int location, ffi.Pointer<_NSRange> range, _NSRange rangeLimit) { + final _ret = _lib._objc_msgSend_663( + _id, + _lib._sel_attribute_atIndex_longestEffectiveRange_inRange_1, + attrName._id, + location, + range, + rangeLimit); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSScriptClassDescription? get superclassDescription { - final _ret = _lib._objc_msgSend_584(_id, _lib._sel_superclassDescription1); - return _ret.address == 0 - ? null - : NSScriptClassDescription._(_ret, _lib, retain: true, release: true); + bool isEqualToAttributedString_(NSAttributedString? other) { + return _lib._objc_msgSend_664( + _id, _lib._sel_isEqualToAttributedString_1, other?._id ?? ffi.nullptr); } - int get appleEventCode { - return _lib._objc_msgSend_197(_id, _lib._sel_appleEventCode1); + 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); } - bool matchesAppleEventCode_(int appleEventCode) { - return _lib._objc_msgSend_179( - _id, _lib._sel_matchesAppleEventCode_1, appleEventCode); + NSAttributedString initWithString_attributes_( + NSString? str, NSDictionary? attrs) { + final _ret = _lib._objc_msgSend_373( + _id, + _lib._sel_initWithString_attributes_1, + str?._id ?? ffi.nullptr, + attrs?._id ?? ffi.nullptr); + return NSAttributedString._(_ret, _lib, retain: true, release: true); } - bool supportsCommand_(NSScriptCommandDescription? commandDescription) { - return _lib._objc_msgSend_594(_id, _lib._sel_supportsCommand_1, - commandDescription?._id ?? ffi.nullptr); + NSAttributedString initWithAttributedString_(NSAttributedString? attrStr) { + final _ret = _lib._objc_msgSend_665( + _id, _lib._sel_initWithAttributedString_1, attrStr?._id ?? ffi.nullptr); + return NSAttributedString._(_ret, _lib, retain: true, release: true); } - ffi.Pointer selectorForCommand_( - NSScriptCommandDescription? commandDescription) { - return _lib._objc_msgSend_595(_id, _lib._sel_selectorForCommand_1, - commandDescription?._id ?? ffi.nullptr); + void enumerateAttributesInRange_options_usingBlock_(_NSRange enumerationRange, + int opts, ObjCBlock_ffiVoid_NSDictionary_NSRange_bool block) { + _lib._objc_msgSend_666( + _id, + _lib._sel_enumerateAttributesInRange_options_usingBlock_1, + enumerationRange, + opts, + block._id); } - NSString typeForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_64( - _id, _lib._sel_typeForKey_1, key?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + void enumerateAttribute_inRange_options_usingBlock_( + NSString attrName, + _NSRange enumerationRange, + int opts, + ObjCBlock_ffiVoid_ObjCObject_NSRange_bool block) { + _lib._objc_msgSend_667( + _id, + _lib._sel_enumerateAttribute_inRange_options_usingBlock_1, + attrName._id, + enumerationRange, + opts, + block._id); } - NSScriptClassDescription classDescriptionForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_596( - _id, _lib._sel_classDescriptionForKey_1, key?._id ?? ffi.nullptr); - return NSScriptClassDescription._(_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_672( + _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 appleEventCodeForKey_(NSString? key) { - return _lib._objc_msgSend_585( - _id, _lib._sel_appleEventCodeForKey_1, key?._id ?? ffi.nullptr); + NSAttributedString initWithMarkdown_options_baseURL_error_( + NSData? markdown, + NSAttributedStringMarkdownParsingOptions? options, + NSURL? baseURL, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_673( + _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 keyWithAppleEventCode_(int appleEventCode) { - final _ret = _lib._objc_msgSend_597( - _id, _lib._sel_keyWithAppleEventCode_1, appleEventCode); - return 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_674( + _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); } - NSString? get defaultSubcontainerAttributeKey { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_defaultSubcontainerAttributeKey1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSAttributedString initWithFormat_options_locale_( + NSAttributedString? format, int options, NSLocale? locale) { + final _ret = _lib._objc_msgSend_675( + _id, + _lib._sel_initWithFormat_options_locale_1, + format?._id ?? ffi.nullptr, + options, + locale?._id ?? ffi.nullptr); + return NSAttributedString._(_ret, _lib, retain: true, release: true); } - bool isLocationRequiredToCreateForKey_(NSString? toManyRelationshipKey) { - return _lib._objc_msgSend_59( + NSAttributedString initWithFormat_options_locale_arguments_( + NSAttributedString? format, + int options, + NSLocale? locale, + ffi.Pointer<__va_list_tag> arguments) { + final _ret = _lib._objc_msgSend_676( _id, - _lib._sel_isLocationRequiredToCreateForKey_1, - toManyRelationshipKey?._id ?? ffi.nullptr); + _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); + } + + static NSAttributedString localizedAttributedStringWithFormat_( + SentryCocoa _lib, NSAttributedString? format) { + final _ret = _lib._objc_msgSend_665( + _lib._class_NSAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_1, + format?._id ?? ffi.nullptr); + return NSAttributedString._(_ret, _lib, retain: true, release: true); } - bool hasPropertyForKey_(NSString? key) { - return _lib._objc_msgSend_59( - _id, _lib._sel_hasPropertyForKey_1, key?._id ?? ffi.nullptr); + static NSAttributedString localizedAttributedStringWithFormat_options_( + SentryCocoa _lib, NSAttributedString? format, int options) { + final _ret = _lib._objc_msgSend_677( + _lib._class_NSAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_options_1, + format?._id ?? ffi.nullptr, + options); + return NSAttributedString._(_ret, _lib, retain: true, release: true); } - bool hasOrderedToManyRelationshipForKey_(NSString? key) { - return _lib._objc_msgSend_59( + NSAttributedString initWithFormat_options_locale_context_( + NSAttributedString? format, + int options, + NSLocale? locale, + NSDictionary? context) { + final _ret = _lib._objc_msgSend_678( _id, - _lib._sel_hasOrderedToManyRelationshipForKey_1, - key?._id ?? ffi.nullptr); - } - - bool hasReadablePropertyForKey_(NSString? key) { - return _lib._objc_msgSend_59( - _id, _lib._sel_hasReadablePropertyForKey_1, key?._id ?? ffi.nullptr); + _lib._sel_initWithFormat_options_locale_context_1, + format?._id ?? ffi.nullptr, + options, + locale?._id ?? ffi.nullptr, + context?._id ?? ffi.nullptr); + return NSAttributedString._(_ret, _lib, retain: true, release: true); } - bool hasWritablePropertyForKey_(NSString? key) { - return _lib._objc_msgSend_59( - _id, _lib._sel_hasWritablePropertyForKey_1, key?._id ?? ffi.nullptr); + 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_679( + _id, + _lib._sel_initWithFormat_options_locale_context_arguments_1, + format?._id ?? ffi.nullptr, + options, + locale?._id ?? ffi.nullptr, + context?._id ?? ffi.nullptr, + arguments); + return NSAttributedString._(_ret, _lib, retain: true, release: true); } - bool isReadOnlyKey_(NSString? key) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isReadOnlyKey_1, key?._id ?? ffi.nullptr); + static NSAttributedString localizedAttributedStringWithFormat_context_( + SentryCocoa _lib, NSAttributedString? format, NSDictionary? context) { + final _ret = _lib._objc_msgSend_680( + _lib._class_NSAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_context_1, + format?._id ?? ffi.nullptr, + context?._id ?? ffi.nullptr); + return NSAttributedString._(_ret, _lib, retain: true, release: true); } - static void registerClassDescription_forClass_( - SentryCocoa _lib, NSClassDescription? description, NSObject aClass) { - _lib._objc_msgSend_555( - _lib._class_NSScriptClassDescription1, - _lib._sel_registerClassDescription_forClass_1, - description?._id ?? ffi.nullptr, - aClass._id); + static NSAttributedString + localizedAttributedStringWithFormat_options_context_(SentryCocoa _lib, + NSAttributedString? format, int options, NSDictionary? context) { + final _ret = _lib._objc_msgSend_681( + _lib._class_NSAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_options_context_1, + format?._id ?? ffi.nullptr, + options, + context?._id ?? ffi.nullptr); + return NSAttributedString._(_ret, _lib, retain: true, release: true); } - static void invalidateClassDescriptionCache(SentryCocoa _lib) { - _lib._objc_msgSend_1(_lib._class_NSScriptClassDescription1, - _lib._sel_invalidateClassDescriptionCache1); + NSAttributedString attributedStringByInflectingString() { + final _ret = _lib._objc_msgSend_682( + _id, _lib._sel_attributedStringByInflectingString1); + return NSAttributedString._(_ret, _lib, retain: true, release: true); } @override - NSScriptClassDescription init() { + NSAttributedString init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSScriptClassDescription._(_ret, _lib, retain: true, release: true); + return NSAttributedString._(_ret, _lib, retain: true, release: true); } - static NSScriptClassDescription new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSScriptClassDescription1, _lib._sel_new1); - return NSScriptClassDescription._(_ret, _lib, retain: false, release: true); + static NSAttributedString new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSAttributedString1, _lib._sel_new1); + return NSAttributedString._(_ret, _lib, retain: false, release: true); } - static NSScriptClassDescription allocWithZone_( + static NSAttributedString allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSScriptClassDescription1, _lib._sel_allocWithZone_1, zone); - return NSScriptClassDescription._(_ret, _lib, retain: false, release: true); + _lib._class_NSAttributedString1, _lib._sel_allocWithZone_1, zone); + return NSAttributedString._(_ret, _lib, retain: false, release: true); } - static NSScriptClassDescription alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSScriptClassDescription1, _lib._sel_alloc1); - return NSScriptClassDescription._(_ret, _lib, retain: false, release: true); + static NSAttributedString alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSAttributedString1, _lib._sel_alloc1); + return NSAttributedString._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -49256,7 +55288,7 @@ class NSScriptClassDescription extends NSClassDescription { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSScriptClassDescription1, + _lib._class_NSAttributedString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -49265,24 +55297,24 @@ class NSScriptClassDescription extends NSClassDescription { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSScriptClassDescription1, + _lib._objc_msgSend_15(_lib._class_NSAttributedString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSScriptClassDescription1, + return _lib._objc_msgSend_12(_lib._class_NSAttributedString1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSScriptClassDescription1, _lib._sel_useStoredAccessor1); + _lib._class_NSAttributedString1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSScriptClassDescription1, + _lib._class_NSAttributedString1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -49291,7 +55323,7 @@ class NSScriptClassDescription extends NSClassDescription { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSScriptClassDescription1, + _lib._class_NSAttributedString1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -49299,172 +55331,338 @@ class NSScriptClassDescription extends NSClassDescription { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSScriptClassDescription1, + _lib._class_NSAttributedString1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSScriptClassDescription1, + final _ret = _lib._objc_msgSend_79(_lib._class_NSAttributedString1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSScriptClassDescription1, - _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSAttributedString1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSScriptCommandDescription extends NSObject { - NSScriptCommandDescription._(ffi.Pointer id, SentryCocoa lib, +abstract class NSAttributedStringEnumerationOptions { + static const int NSAttributedStringEnumerationReverse = 2; + static const int + NSAttributedStringEnumerationLongestEffectiveRangeNotRequired = 1048576; +} + +void _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_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); +} + +final _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_registerClosure(Function fn) { + final id = + ++_ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2) { + return (_ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureRegistry[ + block.ref.target.address] + as void Function(ffi.Pointer, _NSRange, + ffi.Pointer))(arg0, arg1, arg2); +} + +class ObjCBlock_ffiVoid_NSDictionary_NSRange_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSDictionary_NSRange_bool._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_NSDictionary_NSRange_bool.fromFunctionPointer( + SentryCocoa 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)>( + _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_NSDictionary_NSRange_bool.fromFunction( + SentryCocoa 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)>( + _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_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); + } +} + +void _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_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); +} + +final _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_registerClosure(Function fn) { + final id = ++_ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2) { + return (_ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureRegistry[ + block.ref.target.address] + as void Function(ffi.Pointer, _NSRange, + ffi.Pointer))(arg0, arg1, arg2); +} + +class ObjCBlock_ffiVoid_ObjCObject_NSRange_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ObjCObject_NSRange_bool._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_ObjCObject_NSRange_bool.fromFunctionPointer( + SentryCocoa 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)>( + _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_ObjCObject_NSRange_bool.fromFunction( + SentryCocoa 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)>( + _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_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); + } +} + +class NSAttributedStringMarkdownParsingOptions extends NSObject { + NSAttributedStringMarkdownParsingOptions._( + ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSScriptCommandDescription] that points to the same underlying object as [other]. - static NSScriptCommandDescription castFrom(T other) { - return NSScriptCommandDescription._(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 [NSScriptCommandDescription] that wraps the given raw object pointer. - static NSScriptCommandDescription castFromPointer( + /// Returns a [NSAttributedStringMarkdownParsingOptions] that wraps the given raw object pointer. + static NSAttributedStringMarkdownParsingOptions castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSScriptCommandDescription._(other, lib, + return NSAttributedStringMarkdownParsingOptions._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSScriptCommandDescription]. + /// 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_NSScriptCommandDescription1); + obj._lib._class_NSAttributedStringMarkdownParsingOptions1); } @override - NSObject init() { + NSAttributedStringMarkdownParsingOptions init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSScriptCommandDescription initWithSuiteName_commandName_dictionary_( - NSString? suiteName, - NSString? commandName, - NSDictionary? commandDeclaration) { - final _ret = _lib._objc_msgSend_583( - _id, - _lib._sel_initWithSuiteName_commandName_dictionary_1, - suiteName?._id ?? ffi.nullptr, - commandName?._id ?? ffi.nullptr, - commandDeclaration?._id ?? ffi.nullptr); - return NSScriptCommandDescription._(_ret, _lib, + return NSAttributedStringMarkdownParsingOptions._(_ret, _lib, retain: true, release: true); } - NSScriptCommandDescription initWithCoder_(NSCoder? inCoder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); - return NSScriptCommandDescription._(_ret, _lib, - retain: true, release: true); + bool get allowsExtendedAttributes { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsExtendedAttributes1); } - NSString? get suiteName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_suiteName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + set allowsExtendedAttributes(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setAllowsExtendedAttributes_1, value); } - NSString? get commandName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_commandName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + int get interpretedSyntax { + return _lib._objc_msgSend_668(_id, _lib._sel_interpretedSyntax1); } - int get appleEventClassCode { - return _lib._objc_msgSend_197(_id, _lib._sel_appleEventClassCode1); + set interpretedSyntax(int value) { + return _lib._objc_msgSend_669(_id, _lib._sel_setInterpretedSyntax_1, value); } - int get appleEventCode { - return _lib._objc_msgSend_197(_id, _lib._sel_appleEventCode1); + int get failurePolicy { + return _lib._objc_msgSend_670(_id, _lib._sel_failurePolicy1); } - NSString? get commandClassName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_commandClassName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + set failurePolicy(int value) { + return _lib._objc_msgSend_671(_id, _lib._sel_setFailurePolicy_1, value); } - NSString? get returnType { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_returnType1); + 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); } - int get appleEventCodeForReturnType { - return _lib._objc_msgSend_197(_id, _lib._sel_appleEventCodeForReturnType1); - } - - NSArray? get argumentNames { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_argumentNames1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSString typeForArgumentWithName_(NSString? argumentName) { - final _ret = _lib._objc_msgSend_64(_id, _lib._sel_typeForArgumentWithName_1, - argumentName?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - int appleEventCodeForArgumentWithName_(NSString? argumentName) { - return _lib._objc_msgSend_585( - _id, - _lib._sel_appleEventCodeForArgumentWithName_1, - argumentName?._id ?? ffi.nullptr); - } - - bool isOptionalArgumentWithName_(NSString? argumentName) { - return _lib._objc_msgSend_59(_id, _lib._sel_isOptionalArgumentWithName_1, - argumentName?._id ?? ffi.nullptr); + set languageCode(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setLanguageCode_1, value?._id ?? ffi.nullptr); } - NSScriptCommand createCommandInstance() { - final _ret = _lib._objc_msgSend_592(_id, _lib._sel_createCommandInstance1); - return NSScriptCommand._(_ret, _lib, retain: true, release: true); + bool get appliesSourcePositionAttributes { + return _lib._objc_msgSend_12( + _id, _lib._sel_appliesSourcePositionAttributes1); } - NSScriptCommand createCommandInstanceWithZone_(ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_593( - _id, _lib._sel_createCommandInstanceWithZone_1, zone); - return NSScriptCommand._(_ret, _lib, retain: true, release: true); + set appliesSourcePositionAttributes(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setAppliesSourcePositionAttributes_1, value); } - static NSScriptCommandDescription new1(SentryCocoa _lib) { + static NSAttributedStringMarkdownParsingOptions new1(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSScriptCommandDescription1, _lib._sel_new1); - return NSScriptCommandDescription._(_ret, _lib, + _lib._class_NSAttributedStringMarkdownParsingOptions1, _lib._sel_new1); + return NSAttributedStringMarkdownParsingOptions._(_ret, _lib, retain: false, release: true); } - static NSScriptCommandDescription allocWithZone_( + static NSAttributedStringMarkdownParsingOptions allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3(_lib._class_NSScriptCommandDescription1, - _lib._sel_allocWithZone_1, zone); - return NSScriptCommandDescription._(_ret, _lib, + final _ret = _lib._objc_msgSend_3( + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_allocWithZone_1, + zone); + return NSAttributedStringMarkdownParsingOptions._(_ret, _lib, retain: false, release: true); } - static NSScriptCommandDescription alloc(SentryCocoa _lib) { + static NSAttributedStringMarkdownParsingOptions alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSScriptCommandDescription1, _lib._sel_alloc1); - return NSScriptCommandDescription._(_ret, _lib, + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_alloc1); + return NSAttributedStringMarkdownParsingOptions._(_ret, _lib, retain: false, release: true); } @@ -49474,7 +55672,7 @@ class NSScriptCommandDescription extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSScriptCommandDescription1, + _lib._class_NSAttributedStringMarkdownParsingOptions1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -49483,24 +55681,26 @@ class NSScriptCommandDescription extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSScriptCommandDescription1, + _lib._objc_msgSend_15(_lib._class_NSAttributedStringMarkdownParsingOptions1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSScriptCommandDescription1, + return _lib._objc_msgSend_12( + _lib._class_NSAttributedStringMarkdownParsingOptions1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSScriptCommandDescription1, _lib._sel_useStoredAccessor1); + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSScriptCommandDescription1, + _lib._class_NSAttributedStringMarkdownParsingOptions1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -49509,7 +55709,7 @@ class NSScriptCommandDescription extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSScriptCommandDescription1, + _lib._class_NSAttributedStringMarkdownParsingOptions1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -49517,225 +55717,353 @@ class NSScriptCommandDescription extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSScriptCommandDescription1, + _lib._class_NSAttributedStringMarkdownParsingOptions1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSScriptCommandDescription1, + final _ret = _lib._objc_msgSend_79( + _lib._class_NSAttributedStringMarkdownParsingOptions1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSScriptCommandDescription1, - _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_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; } -class NSScriptCommand extends NSObject { - NSScriptCommand._(ffi.Pointer id, SentryCocoa lib, +abstract class NSAttributedStringFormattingOptions { + static const int + NSAttributedStringFormattingInsertArgumentAttributesWithoutMerging = 1; + static const int NSAttributedStringFormattingApplyReplacementIndexAttribute = + 2; +} + +class NSMutableAttributedString extends NSAttributedString { + NSMutableAttributedString._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSScriptCommand] that points to the same underlying object as [other]. - static NSScriptCommand castFrom(T other) { - return NSScriptCommand._(other._id, other._lib, + /// 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); } - /// Returns a [NSScriptCommand] that wraps the given raw object pointer. - static NSScriptCommand castFromPointer( + /// Returns a [NSMutableAttributedString] that wraps the given raw object pointer. + static NSMutableAttributedString castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSScriptCommand._(other, lib, retain: retain, release: release); + return NSMutableAttributedString._(other, lib, + retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSScriptCommand]. + /// 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_NSScriptCommand1); + obj._lib._class_NSMutableAttributedString1); } - NSScriptCommand initWithCommandDescription_( - NSScriptCommandDescription? commandDef) { - final _ret = _lib._objc_msgSend_586(_id, - _lib._sel_initWithCommandDescription_1, commandDef?._id ?? ffi.nullptr); - return NSScriptCommand._(_ret, _lib, retain: true, release: true); + void replaceCharactersInRange_withString_(_NSRange range, NSString? str) { + _lib._objc_msgSend_641(_id, _lib._sel_replaceCharactersInRange_withString_1, + range, str?._id ?? ffi.nullptr); } - NSScriptCommand initWithCoder_(NSCoder? inCoder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); - return NSScriptCommand._(_ret, _lib, retain: true, release: true); + void setAttributes_range_(NSDictionary? attrs, _NSRange range) { + _lib._objc_msgSend_687( + _id, _lib._sel_setAttributes_range_1, attrs?._id ?? ffi.nullptr, range); } - NSScriptCommandDescription? get commandDescription { - final _ret = _lib._objc_msgSend_587(_id, _lib._sel_commandDescription1); + NSMutableString? get mutableString { + final _ret = _lib._objc_msgSend_688(_id, _lib._sel_mutableString1); return _ret.address == 0 ? null - : NSScriptCommandDescription._(_ret, _lib, retain: true, release: true); + : NSMutableString._(_ret, _lib, retain: true, release: true); } - NSObject get directParameter { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_directParameter1); - return NSObject._(_ret, _lib, retain: true, release: true); + void addAttribute_value_range_( + NSString name, NSObject value, _NSRange range) { + _lib._objc_msgSend_689( + _id, _lib._sel_addAttribute_value_range_1, name._id, value._id, range); } - set directParameter(NSObject value) { - return _lib._objc_msgSend_387( - _id, _lib._sel_setDirectParameter_1, value._id); + void addAttributes_range_(NSDictionary? attrs, _NSRange range) { + _lib._objc_msgSend_687( + _id, _lib._sel_addAttributes_range_1, attrs?._id ?? ffi.nullptr, range); } - NSScriptObjectSpecifier? get receiversSpecifier { - final _ret = _lib._objc_msgSend_588(_id, _lib._sel_receiversSpecifier1); - return _ret.address == 0 - ? null - : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); + void removeAttribute_range_(NSString name, _NSRange range) { + _lib._objc_msgSend_690( + _id, _lib._sel_removeAttribute_range_1, name._id, range); } - set receiversSpecifier(NSScriptObjectSpecifier? value) { - return _lib._objc_msgSend_589( - _id, _lib._sel_setReceiversSpecifier_1, value?._id ?? ffi.nullptr); + void replaceCharactersInRange_withAttributedString_( + _NSRange range, NSAttributedString? attrString) { + _lib._objc_msgSend_691( + _id, + _lib._sel_replaceCharactersInRange_withAttributedString_1, + range, + attrString?._id ?? ffi.nullptr); } - NSObject get evaluatedReceivers { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_evaluatedReceivers1); - return NSObject._(_ret, _lib, retain: true, release: true); + void insertAttributedString_atIndex_( + NSAttributedString? attrString, int loc) { + _lib._objc_msgSend_692(_id, _lib._sel_insertAttributedString_atIndex_1, + attrString?._id ?? ffi.nullptr, loc); } - NSDictionary? get arguments { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_arguments1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + void appendAttributedString_(NSAttributedString? attrString) { + _lib._objc_msgSend_693(_id, _lib._sel_appendAttributedString_1, + attrString?._id ?? ffi.nullptr); } - set arguments(NSDictionary? value) { - return _lib._objc_msgSend_171( - _id, _lib._sel_setArguments_1, value?._id ?? ffi.nullptr); + void deleteCharactersInRange_(_NSRange range) { + _lib._objc_msgSend_447(_id, _lib._sel_deleteCharactersInRange_1, range); } - NSDictionary? get evaluatedArguments { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_evaluatedArguments1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + void setAttributedString_(NSAttributedString? attrString) { + _lib._objc_msgSend_693( + _id, _lib._sel_setAttributedString_1, attrString?._id ?? ffi.nullptr); } - bool get wellFormed { - return _lib._objc_msgSend_12(_id, _lib._sel_isWellFormed1); + void beginEditing() { + _lib._objc_msgSend_1(_id, _lib._sel_beginEditing1); } - NSObject performDefaultImplementation() { - final _ret = - _lib._objc_msgSend_2(_id, _lib._sel_performDefaultImplementation1); - return NSObject._(_ret, _lib, retain: true, release: true); + void endEditing() { + _lib._objc_msgSend_1(_id, _lib._sel_endEditing1); } - NSObject executeCommand() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_executeCommand1); - return NSObject._(_ret, _lib, retain: true, release: true); + void appendLocalizedFormat_(NSAttributedString? format) { + _lib._objc_msgSend_693( + _id, _lib._sel_appendLocalizedFormat_1, format?._id ?? ffi.nullptr); } - int get scriptErrorNumber { - return _lib._objc_msgSend_78(_id, _lib._sel_scriptErrorNumber1); + @override + NSMutableAttributedString initWithString_(NSString? str) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithString_1, str?._id ?? ffi.nullptr); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); } - set scriptErrorNumber(int value) { - return _lib._objc_msgSend_590(_id, _lib._sel_setScriptErrorNumber_1, value); + @override + NSMutableAttributedString initWithString_attributes_( + NSString? str, NSDictionary? attrs) { + final _ret = _lib._objc_msgSend_373( + _id, + _lib._sel_initWithString_attributes_1, + str?._id ?? ffi.nullptr, + attrs?._id ?? ffi.nullptr); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); } - NSAppleEventDescriptor? get scriptErrorOffendingObjectDescriptor { - final _ret = _lib._objc_msgSend_558( - _id, _lib._sel_scriptErrorOffendingObjectDescriptor1); - return _ret.address == 0 - ? null - : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + @override + NSMutableAttributedString initWithAttributedString_( + NSAttributedString? attrStr) { + final _ret = _lib._objc_msgSend_665( + _id, _lib._sel_initWithAttributedString_1, attrStr?._id ?? ffi.nullptr); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); } - set scriptErrorOffendingObjectDescriptor(NSAppleEventDescriptor? value) { - return _lib._objc_msgSend_591( + @override + NSMutableAttributedString + initWithContentsOfMarkdownFileAtURL_options_baseURL_error_( + NSURL? markdownFile, + NSAttributedStringMarkdownParsingOptions? options, + NSURL? baseURL, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_672( _id, - _lib._sel_setScriptErrorOffendingObjectDescriptor_1, - value?._id ?? ffi.nullptr); + _lib._sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_1, + markdownFile?._id ?? ffi.nullptr, + options?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr, + error); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); } - NSAppleEventDescriptor? get scriptErrorExpectedTypeDescriptor { - final _ret = _lib._objc_msgSend_558( - _id, _lib._sel_scriptErrorExpectedTypeDescriptor1); - return _ret.address == 0 - ? null - : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + @override + NSMutableAttributedString initWithMarkdown_options_baseURL_error_( + NSData? markdown, + NSAttributedStringMarkdownParsingOptions? options, + NSURL? baseURL, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_673( + _id, + _lib._sel_initWithMarkdown_options_baseURL_error_1, + markdown?._id ?? ffi.nullptr, + options?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr, + error); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); } - set scriptErrorExpectedTypeDescriptor(NSAppleEventDescriptor? value) { - return _lib._objc_msgSend_591( + @override + NSMutableAttributedString initWithMarkdownString_options_baseURL_error_( + NSString? markdownString, + NSAttributedStringMarkdownParsingOptions? options, + NSURL? baseURL, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_674( _id, - _lib._sel_setScriptErrorExpectedTypeDescriptor_1, - value?._id ?? ffi.nullptr); + _lib._sel_initWithMarkdownString_options_baseURL_error_1, + markdownString?._id ?? ffi.nullptr, + options?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr, + error); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); } - NSString? get scriptErrorString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_scriptErrorString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + @override + NSMutableAttributedString initWithFormat_options_locale_( + NSAttributedString? format, int options, NSLocale? locale) { + final _ret = _lib._objc_msgSend_675( + _id, + _lib._sel_initWithFormat_options_locale_1, + format?._id ?? ffi.nullptr, + options, + locale?._id ?? ffi.nullptr); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); } - set scriptErrorString(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setScriptErrorString_1, value?._id ?? ffi.nullptr); + @override + NSMutableAttributedString initWithFormat_options_locale_arguments_( + NSAttributedString? format, + int options, + NSLocale? locale, + ffi.Pointer<__va_list_tag> arguments) { + final _ret = _lib._objc_msgSend_676( + _id, + _lib._sel_initWithFormat_options_locale_arguments_1, + format?._id ?? ffi.nullptr, + options, + locale?._id ?? ffi.nullptr, + arguments); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); } - static NSScriptCommand currentCommand(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_592( - _lib._class_NSScriptCommand1, _lib._sel_currentCommand1); - return NSScriptCommand._(_ret, _lib, retain: true, release: true); + static NSMutableAttributedString localizedAttributedStringWithFormat_( + SentryCocoa _lib, NSAttributedString? format) { + final _ret = _lib._objc_msgSend_665( + _lib._class_NSMutableAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_1, + format?._id ?? ffi.nullptr); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); } - NSAppleEventDescriptor? get appleEvent { - final _ret = _lib._objc_msgSend_558(_id, _lib._sel_appleEvent1); - return _ret.address == 0 - ? null - : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + static NSMutableAttributedString localizedAttributedStringWithFormat_options_( + SentryCocoa _lib, NSAttributedString? format, int options) { + final _ret = _lib._objc_msgSend_677( + _lib._class_NSMutableAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_options_1, + format?._id ?? ffi.nullptr, + options); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); } - void suspendExecution() { - _lib._objc_msgSend_1(_id, _lib._sel_suspendExecution1); + @override + NSMutableAttributedString initWithFormat_options_locale_context_( + NSAttributedString? format, + int options, + NSLocale? locale, + NSDictionary? context) { + final _ret = _lib._objc_msgSend_678( + _id, + _lib._sel_initWithFormat_options_locale_context_1, + format?._id ?? ffi.nullptr, + options, + locale?._id ?? ffi.nullptr, + context?._id ?? ffi.nullptr); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); } - void resumeExecutionWithResult_(NSObject result) { - _lib._objc_msgSend_15( - _id, _lib._sel_resumeExecutionWithResult_1, result._id); + @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_679( + _id, + _lib._sel_initWithFormat_options_locale_context_arguments_1, + format?._id ?? ffi.nullptr, + options, + locale?._id ?? ffi.nullptr, + context?._id ?? ffi.nullptr, + arguments); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableAttributedString localizedAttributedStringWithFormat_context_( + SentryCocoa _lib, NSAttributedString? format, NSDictionary? context) { + final _ret = _lib._objc_msgSend_680( + _lib._class_NSMutableAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_context_1, + format?._id ?? ffi.nullptr, + context?._id ?? ffi.nullptr); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableAttributedString + localizedAttributedStringWithFormat_options_context_(SentryCocoa _lib, + NSAttributedString? format, int options, NSDictionary? context) { + final _ret = _lib._objc_msgSend_681( + _lib._class_NSMutableAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_options_context_1, + format?._id ?? ffi.nullptr, + options, + context?._id ?? ffi.nullptr); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); } @override - NSScriptCommand init() { + NSMutableAttributedString init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSScriptCommand._(_ret, _lib, retain: true, release: true); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); } - static NSScriptCommand new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSScriptCommand1, _lib._sel_new1); - return NSScriptCommand._(_ret, _lib, retain: false, release: true); + static NSMutableAttributedString new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableAttributedString1, _lib._sel_new1); + return NSMutableAttributedString._(_ret, _lib, + retain: false, release: true); } - static NSScriptCommand allocWithZone_( + static NSMutableAttributedString allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSScriptCommand1, _lib._sel_allocWithZone_1, zone); - return NSScriptCommand._(_ret, _lib, retain: false, release: true); + final _ret = _lib._objc_msgSend_3(_lib._class_NSMutableAttributedString1, + _lib._sel_allocWithZone_1, zone); + return NSMutableAttributedString._(_ret, _lib, + retain: false, release: true); } - static NSScriptCommand alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSScriptCommand1, _lib._sel_alloc1); - return NSScriptCommand._(_ret, _lib, retain: false, release: true); + static NSMutableAttributedString alloc(SentryCocoa _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_( @@ -49744,7 +56072,7 @@ class NSScriptCommand extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSScriptCommand1, + _lib._class_NSMutableAttributedString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -49753,24 +56081,24 @@ class NSScriptCommand extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSScriptCommand1, + _lib._objc_msgSend_15(_lib._class_NSMutableAttributedString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSScriptCommand1, + return _lib._objc_msgSend_12(_lib._class_NSMutableAttributedString1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSScriptCommand1, _lib._sel_useStoredAccessor1); + _lib._class_NSMutableAttributedString1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSScriptCommand1, + _lib._class_NSMutableAttributedString1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -49779,7 +56107,7 @@ class NSScriptCommand extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSScriptCommand1, + _lib._class_NSMutableAttributedString1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -49787,785 +56115,724 @@ class NSScriptCommand extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSScriptCommand1, + _lib._class_NSMutableAttributedString1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSScriptCommand1, + final _ret = _lib._objc_msgSend_79(_lib._class_NSMutableAttributedString1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSScriptCommand1, _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2(_lib._class_NSMutableAttributedString1, + _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSItemProvider extends NSObject { - NSItemProvider._(ffi.Pointer id, SentryCocoa lib, +class NSDateFormatter extends NSFormatter { + NSDateFormatter._(ffi.Pointer id, SentryCocoa 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 [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 [NSItemProvider] that wraps the given raw object pointer. - static NSItemProvider castFromPointer( + /// Returns a [NSDateFormatter] that wraps the given raw object pointer. + static NSDateFormatter castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSItemProvider._(other, lib, retain: retain, release: release); + return NSDateFormatter._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSItemProvider]. + /// 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_NSItemProvider1); + obj._lib._class_NSDateFormatter1); } - @override - NSItemProvider init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSItemProvider._(_ret, _lib, retain: true, release: true); + int get formattingContext { + return _lib._objc_msgSend_698(_id, _lib._sel_formattingContext1); } - void registerDataRepresentationForTypeIdentifier_visibility_loadHandler_( - NSString? typeIdentifier, - int visibility, - ObjCBlock_NSProgress_ffiVoidNSDataNSError loadHandler) { - _lib._objc_msgSend_623( - _id, - _lib._sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - visibility, - loadHandler._id); + set formattingContext(int value) { + return _lib._objc_msgSend_699(_id, _lib._sel_setFormattingContext_1, value); } - void - registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_( - NSString? typeIdentifier, - int fileOptions, - int visibility, - ObjCBlock_NSProgress_ffiVoidNSURLboolNSError loadHandler) { - _lib._objc_msgSend_624( + bool getObjectValue_forString_range_error_( + ffi.Pointer> obj, + NSString? string, + ffi.Pointer<_NSRange> rangep, + ffi.Pointer> error) { + return _lib._objc_msgSend_700( _id, - _lib._sel_registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - fileOptions, - visibility, - loadHandler._id); + _lib._sel_getObjectValue_forString_range_error_1, + obj, + string?._id ?? ffi.nullptr, + rangep, + error); } - NSArray? get registeredTypeIdentifiers { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_registeredTypeIdentifiers1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSString stringFromDate_(NSDate? date) { + final _ret = _lib._objc_msgSend_167( + _id, _lib._sel_stringFromDate_1, date?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - NSArray registeredTypeIdentifiersWithFileOptions_(int fileOptions) { - final _ret = _lib._objc_msgSend_625( - _id, _lib._sel_registeredTypeIdentifiersWithFileOptions_1, fileOptions); - return NSArray._(_ret, _lib, retain: true, release: true); + NSDate dateFromString_(NSString? string) { + final _ret = _lib._objc_msgSend_531( + _id, _lib._sel_dateFromString_1, string?._id ?? ffi.nullptr); + return NSDate._(_ret, _lib, retain: true, release: true); } - bool hasItemConformingToTypeIdentifier_(NSString? typeIdentifier) { - return _lib._objc_msgSend_59( - _id, - _lib._sel_hasItemConformingToTypeIdentifier_1, - typeIdentifier?._id ?? ffi.nullptr); + static NSString localizedStringFromDate_dateStyle_timeStyle_( + SentryCocoa _lib, NSDate? date, int dstyle, int tstyle) { + final _ret = _lib._objc_msgSend_701( + _lib._class_NSDateFormatter1, + _lib._sel_localizedStringFromDate_dateStyle_timeStyle_1, + date?._id ?? ffi.nullptr, + dstyle, + tstyle); + return NSString._(_ret, _lib, retain: true, release: true); } - bool hasRepresentationConformingToTypeIdentifier_fileOptions_( - NSString? typeIdentifier, int fileOptions) { - return _lib._objc_msgSend_626( - _id, - _lib._sel_hasRepresentationConformingToTypeIdentifier_fileOptions_1, - typeIdentifier?._id ?? ffi.nullptr, - fileOptions); + static NSString dateFormatFromTemplate_options_locale_( + SentryCocoa _lib, NSString? tmplate, int opts, NSLocale? locale) { + final _ret = _lib._objc_msgSend_702( + _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); } - NSProgress loadDataRepresentationForTypeIdentifier_completionHandler_( - NSString? typeIdentifier, - ObjCBlock_ffiVoid_NSData_NSError completionHandler) { - final _ret = _lib._objc_msgSend_627( - _id, - _lib._sel_loadDataRepresentationForTypeIdentifier_completionHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - completionHandler._id); - return NSProgress._(_ret, _lib, retain: true, release: true); + static int getDefaultFormatterBehavior(SentryCocoa _lib) { + return _lib._objc_msgSend_703( + _lib._class_NSDateFormatter1, _lib._sel_defaultFormatterBehavior1); } - NSProgress loadFileRepresentationForTypeIdentifier_completionHandler_( - NSString? typeIdentifier, - ObjCBlock_ffiVoid_NSURL_NSError completionHandler) { - final _ret = _lib._objc_msgSend_628( - _id, - _lib._sel_loadFileRepresentationForTypeIdentifier_completionHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - completionHandler._id); - return NSProgress._(_ret, _lib, retain: true, release: true); + static void setDefaultFormatterBehavior(SentryCocoa _lib, int value) { + return _lib._objc_msgSend_704(_lib._class_NSDateFormatter1, + _lib._sel_setDefaultFormatterBehavior_1, value); } - NSProgress loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_( - NSString? typeIdentifier, - ObjCBlock_ffiVoid_NSURL_bool_NSError completionHandler) { - final _ret = _lib._objc_msgSend_629( - _id, - _lib._sel_loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - completionHandler._id); - return NSProgress._(_ret, _lib, retain: true, release: true); + void setLocalizedDateFormatFromTemplate_(NSString? dateFormatTemplate) { + _lib._objc_msgSend_192(_id, _lib._sel_setLocalizedDateFormatFromTemplate_1, + dateFormatTemplate?._id ?? ffi.nullptr); } - NSString? get suggestedName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_suggestedName1); + 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); } - set suggestedName(NSString? value) { - return _lib._objc_msgSend_509( - _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) { - _lib._objc_msgSend_630(_id, _lib._sel_registerObject_visibility_1, - object?._id ?? ffi.nullptr, visibility); + set dateFormat(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setDateFormat_1, value?._id ?? ffi.nullptr); } - void registerObjectOfClass_visibility_loadHandler_( - NSObject? aClass, - int visibility, - ObjCBlock_NSProgress_ffiVoidObjCObjectNSError loadHandler) { - _lib._objc_msgSend_631( - _id, - _lib._sel_registerObjectOfClass_visibility_loadHandler_1, - aClass?._id ?? ffi.nullptr, - visibility, - loadHandler._id); + int get dateStyle { + return _lib._objc_msgSend_705(_id, _lib._sel_dateStyle1); } - bool canLoadObjectOfClass_(NSObject? aClass) { - return _lib._objc_msgSend_0( - _id, _lib._sel_canLoadObjectOfClass_1, aClass?._id ?? ffi.nullptr); + set dateStyle(int value) { + return _lib._objc_msgSend_706(_id, _lib._sel_setDateStyle_1, value); } - NSProgress loadObjectOfClass_completionHandler_(NSObject? aClass, - ObjCBlock_ffiVoid_ObjCObject_NSError completionHandler) { - final _ret = _lib._objc_msgSend_632( - _id, - _lib._sel_loadObjectOfClass_completionHandler_1, - aClass?._id ?? ffi.nullptr, - completionHandler._id); - return NSProgress._(_ret, _lib, retain: true, release: true); + int get timeStyle { + return _lib._objc_msgSend_705(_id, _lib._sel_timeStyle1); } - NSItemProvider initWithItem_typeIdentifier_( - NSObject? item, NSString? typeIdentifier) { - final _ret = _lib._objc_msgSend_287( - _id, - _lib._sel_initWithItem_typeIdentifier_1, - item?._id ?? ffi.nullptr, - typeIdentifier?._id ?? ffi.nullptr); - return NSItemProvider._(_ret, _lib, retain: true, release: true); + set timeStyle(int value) { + return _lib._objc_msgSend_706(_id, _lib._sel_setTimeStyle_1, value); } - NSItemProvider initWithContentsOfURL_(NSURL? fileURL) { - final _ret = _lib._objc_msgSend_241( - _id, _lib._sel_initWithContentsOfURL_1, fileURL?._id ?? ffi.nullptr); - return NSItemProvider._(_ret, _lib, retain: true, release: true); + NSLocale? get locale { + final _ret = _lib._objc_msgSend_182(_id, _lib._sel_locale1); + return _ret.address == 0 + ? null + : NSLocale._(_ret, _lib, retain: true, release: true); } - void registerItemForTypeIdentifier_loadHandler_( - NSString? typeIdentifier, - ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary - loadHandler) { - _lib._objc_msgSend_633( - _id, - _lib._sel_registerItemForTypeIdentifier_loadHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - loadHandler._id); + set locale(NSLocale? value) { + return _lib._objc_msgSend_707( + _id, _lib._sel_setLocale_1, value?._id ?? ffi.nullptr); } - void loadItemForTypeIdentifier_options_completionHandler_( - NSString? typeIdentifier, - NSDictionary? options, - ObjCBlock_ffiVoid_ObjCObject_NSError completionHandler) { - _lib._objc_msgSend_634( - _id, - _lib._sel_loadItemForTypeIdentifier_options_completionHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - options?._id ?? ffi.nullptr, - completionHandler._id); + bool get generatesCalendarDates { + return _lib._objc_msgSend_12(_id, _lib._sel_generatesCalendarDates1); } - ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary - get previewImageHandler { - final _ret = _lib._objc_msgSend_635(_id, _lib._sel_previewImageHandler1); - return ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary._( - _ret, _lib); + set generatesCalendarDates(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setGeneratesCalendarDates_1, value); } - set previewImageHandler( - ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary - value) { - return _lib._objc_msgSend_636( - _id, _lib._sel_setPreviewImageHandler_1, value._id); + int get formatterBehavior { + return _lib._objc_msgSend_703(_id, _lib._sel_formatterBehavior1); } - void loadPreviewImageWithOptions_completionHandler_(NSDictionary? options, - ObjCBlock_ffiVoid_ObjCObject_NSError completionHandler) { - _lib._objc_msgSend_637( - _id, - _lib._sel_loadPreviewImageWithOptions_completionHandler_1, - options?._id ?? ffi.nullptr, - completionHandler._id); + set formatterBehavior(int value) { + return _lib._objc_msgSend_704(_id, _lib._sel_setFormatterBehavior_1, value); } - static NSItemProvider new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSItemProvider1, _lib._sel_new1); - return NSItemProvider._(_ret, _lib, retain: false, release: true); + NSTimeZone? get timeZone { + final _ret = _lib._objc_msgSend_168(_id, _lib._sel_timeZone1); + return _ret.address == 0 + ? null + : NSTimeZone._(_ret, _lib, retain: true, release: true); } - static NSItemProvider allocWithZone_( - SentryCocoa _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); + set timeZone(NSTimeZone? value) { + return _lib._objc_msgSend_169( + _id, _lib._sel_setTimeZone_1, value?._id ?? ffi.nullptr); } - static NSItemProvider alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSItemProvider1, _lib._sel_alloc1); - return NSItemProvider._(_ret, _lib, retain: false, release: true); + NSCalendar? get calendar { + final _ret = _lib._objc_msgSend_708(_id, _lib._sel_calendar1); + return _ret.address == 0 + ? null + : NSCalendar._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSItemProvider1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + set calendar(NSCalendar? value) { + return _lib._objc_msgSend_714( + _id, _lib._sel_setCalendar_1, value?._id ?? ffi.nullptr); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSItemProvider1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + bool get lenient { + return _lib._objc_msgSend_12(_id, _lib._sel_isLenient1); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSItemProvider1, - _lib._sel_accessInstanceVariablesDirectly1); + set lenient(bool value) { + return _lib._objc_msgSend_495(_id, _lib._sel_setLenient_1, value); } - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSItemProvider1, _lib._sel_useStoredAccessor1); + NSDate? get twoDigitStartDate { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_twoDigitStartDate1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSItemProvider1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + set twoDigitStartDate(NSDate? value) { + return _lib._objc_msgSend_528( + _id, _lib._sel_setTwoDigitStartDate_1, value?._id ?? ffi.nullptr); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSItemProvider1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + NSDate? get defaultDate { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_defaultDate1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSItemProvider1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + set defaultDate(NSDate? value) { + return _lib._objc_msgSend_528( + _id, _lib._sel_setDefaultDate_1, value?._id ?? ffi.nullptr); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSItemProvider1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + NSArray? get eraSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_eraSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSItemProvider1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + set eraSymbols(NSArray? value) { + return _lib._objc_msgSend_739( + _id, _lib._sel_setEraSymbols_1, value?._id ?? ffi.nullptr); } -} -abstract class NSItemProviderRepresentationVisibility { - static const int NSItemProviderRepresentationVisibilityAll = 0; - static const int NSItemProviderRepresentationVisibilityTeam = 1; - static const int NSItemProviderRepresentationVisibilityGroup = 2; - static const int NSItemProviderRepresentationVisibilityOwnProcess = 3; -} + NSArray? get monthSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_monthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } -ffi.Pointer - _ObjCBlock_NSProgress_ffiVoidNSDataNSError_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); -} + set monthSymbols(NSArray? value) { + return _lib._objc_msgSend_739( + _id, _lib._sel_setMonthSymbols_1, value?._id ?? ffi.nullptr); + } -final _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureRegistry = - {}; -int _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureRegistryIndex = 0; -ffi.Pointer - _ObjCBlock_NSProgress_ffiVoidNSDataNSError_registerClosure(Function fn) { - final id = ++_ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureRegistryIndex; - _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + NSArray? get shortMonthSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortMonthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } -ffi.Pointer - _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { - return (_ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureRegistry[ - block.ref.target.address] - as ffi.Pointer Function(ffi.Pointer<_ObjCBlock>))(arg0); -} + set shortMonthSymbols(NSArray? value) { + return _lib._objc_msgSend_739( + _id, _lib._sel_setShortMonthSymbols_1, value?._id ?? ffi.nullptr); + } -class ObjCBlock_NSProgress_ffiVoidNSDataNSError extends _ObjCBlockBase { - ObjCBlock_NSProgress_ffiVoidNSDataNSError._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); + NSArray? get weekdaySymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_weekdaySymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a C function pointer. - ObjCBlock_NSProgress_ffiVoidNSDataNSError.fromFunctionPointer( - SentryCocoa 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)>( - _ObjCBlock_NSProgress_ffiVoidNSDataNSError_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + set weekdaySymbols(NSArray? value) { + return _lib._objc_msgSend_739( + _id, _lib._sel_setWeekdaySymbols_1, value?._id ?? ffi.nullptr); + } - /// Creates a block from a Dart function. - ObjCBlock_NSProgress_ffiVoidNSDataNSError.fromFunction(SentryCocoa 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)>( - _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureTrampoline) - .cast(), - _ObjCBlock_NSProgress_ffiVoidNSDataNSError_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); + NSArray? get shortWeekdaySymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortWeekdaySymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } -} -class NSProgress extends NSObject { - NSProgress._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + set shortWeekdaySymbols(NSArray? value) { + return _lib._objc_msgSend_739( + _id, _lib._sel_setShortWeekdaySymbols_1, value?._id ?? ffi.nullptr); + } - /// 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); + 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); } - /// Returns a [NSProgress] that wraps the given raw object pointer. - static NSProgress castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSProgress._(other, lib, retain: retain, release: release); + set AMSymbol(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setAMSymbol_1, value?._id ?? ffi.nullptr); } - /// 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_NSProgress1); + 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 NSProgress currentProgress(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_609( - _lib._class_NSProgress1, _lib._sel_currentProgress1); - return NSProgress._(_ret, _lib, retain: true, release: true); + set PMSymbol(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setPMSymbol_1, value?._id ?? ffi.nullptr); } - static NSProgress progressWithTotalUnitCount_( - SentryCocoa _lib, int unitCount) { - final _ret = _lib._objc_msgSend_610(_lib._class_NSProgress1, - _lib._sel_progressWithTotalUnitCount_1, unitCount); - return NSProgress._(_ret, _lib, retain: true, release: true); + NSArray? get longEraSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_longEraSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - static NSProgress discreteProgressWithTotalUnitCount_( - SentryCocoa _lib, int unitCount) { - final _ret = _lib._objc_msgSend_610(_lib._class_NSProgress1, - _lib._sel_discreteProgressWithTotalUnitCount_1, unitCount); - return NSProgress._(_ret, _lib, retain: true, release: true); + set longEraSymbols(NSArray? value) { + return _lib._objc_msgSend_739( + _id, _lib._sel_setLongEraSymbols_1, value?._id ?? ffi.nullptr); } - static NSProgress progressWithTotalUnitCount_parent_pendingUnitCount_( - SentryCocoa _lib, - int unitCount, - NSProgress? parent, - int portionOfParentTotalUnitCount) { - final _ret = _lib._objc_msgSend_611( - _lib._class_NSProgress1, - _lib._sel_progressWithTotalUnitCount_parent_pendingUnitCount_1, - unitCount, - parent?._id ?? ffi.nullptr, - portionOfParentTotalUnitCount); - return NSProgress._(_ret, _lib, retain: true, release: true); + NSArray? get veryShortMonthSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_veryShortMonthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSProgress initWithParent_userInfo_( - NSProgress? parentProgressOrNil, NSObject? userInfoOrNil) { - final _ret = _lib._objc_msgSend_612( - _id, - _lib._sel_initWithParent_userInfo_1, - parentProgressOrNil?._id ?? ffi.nullptr, - userInfoOrNil?._id ?? ffi.nullptr); - return NSProgress._(_ret, _lib, retain: true, release: true); + set veryShortMonthSymbols(NSArray? value) { + return _lib._objc_msgSend_739( + _id, _lib._sel_setVeryShortMonthSymbols_1, value?._id ?? ffi.nullptr); } - void becomeCurrentWithPendingUnitCount_(int unitCount) { - _lib._objc_msgSend_613( - _id, _lib._sel_becomeCurrentWithPendingUnitCount_1, unitCount); + NSArray? get standaloneMonthSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_standaloneMonthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - void performAsCurrentWithPendingUnitCount_usingBlock_( - int unitCount, ObjCBlock_ffiVoid work) { - _lib._objc_msgSend_614( - _id, - _lib._sel_performAsCurrentWithPendingUnitCount_usingBlock_1, - unitCount, - work._id); + set standaloneMonthSymbols(NSArray? value) { + return _lib._objc_msgSend_739( + _id, _lib._sel_setStandaloneMonthSymbols_1, value?._id ?? ffi.nullptr); } - void resignCurrent() { - _lib._objc_msgSend_1(_id, _lib._sel_resignCurrent1); + NSArray? get shortStandaloneMonthSymbols { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneMonthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - void addChild_withPendingUnitCount_(NSProgress? child, int inUnitCount) { - _lib._objc_msgSend_615(_id, _lib._sel_addChild_withPendingUnitCount_1, - child?._id ?? ffi.nullptr, inUnitCount); + set shortStandaloneMonthSymbols(NSArray? value) { + return _lib._objc_msgSend_739(_id, + _lib._sel_setShortStandaloneMonthSymbols_1, value?._id ?? ffi.nullptr); } - int get totalUnitCount { - return _lib._objc_msgSend_616(_id, _lib._sel_totalUnitCount1); + NSArray? get veryShortStandaloneMonthSymbols { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_veryShortStandaloneMonthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - set totalUnitCount(int value) { - return _lib._objc_msgSend_617(_id, _lib._sel_setTotalUnitCount_1, value); + set veryShortStandaloneMonthSymbols(NSArray? value) { + return _lib._objc_msgSend_739( + _id, + _lib._sel_setVeryShortStandaloneMonthSymbols_1, + value?._id ?? ffi.nullptr); } - int get completedUnitCount { - return _lib._objc_msgSend_616(_id, _lib._sel_completedUnitCount1); + NSArray? get veryShortWeekdaySymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_veryShortWeekdaySymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - set completedUnitCount(int value) { - return _lib._objc_msgSend_617( - _id, _lib._sel_setCompletedUnitCount_1, value); + set veryShortWeekdaySymbols(NSArray? value) { + return _lib._objc_msgSend_739( + _id, _lib._sel_setVeryShortWeekdaySymbols_1, value?._id ?? ffi.nullptr); } - NSString? get localizedDescription { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localizedDescription1); + NSArray? get standaloneWeekdaySymbols { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_standaloneWeekdaySymbols1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSArray._(_ret, _lib, retain: true, release: true); } - set localizedDescription(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setLocalizedDescription_1, value?._id ?? ffi.nullptr); + set standaloneWeekdaySymbols(NSArray? value) { + return _lib._objc_msgSend_739(_id, _lib._sel_setStandaloneWeekdaySymbols_1, + value?._id ?? ffi.nullptr); } - NSString? get localizedAdditionalDescription { + NSArray? get shortStandaloneWeekdaySymbols { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_localizedAdditionalDescription1); + _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneWeekdaySymbols1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSArray._(_ret, _lib, retain: true, release: true); } - set localizedAdditionalDescription(NSString? value) { - return _lib._objc_msgSend_509( + set shortStandaloneWeekdaySymbols(NSArray? value) { + return _lib._objc_msgSend_739( _id, - _lib._sel_setLocalizedAdditionalDescription_1, + _lib._sel_setShortStandaloneWeekdaySymbols_1, value?._id ?? ffi.nullptr); } - bool get cancellable { - return _lib._objc_msgSend_12(_id, _lib._sel_isCancellable1); + NSArray? get veryShortStandaloneWeekdaySymbols { + final _ret = _lib._objc_msgSend_79( + _id, _lib._sel_veryShortStandaloneWeekdaySymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - set cancellable(bool value) { - return _lib._objc_msgSend_492(_id, _lib._sel_setCancellable_1, value); + set veryShortStandaloneWeekdaySymbols(NSArray? value) { + return _lib._objc_msgSend_739( + _id, + _lib._sel_setVeryShortStandaloneWeekdaySymbols_1, + value?._id ?? ffi.nullptr); } - bool get pausable { - return _lib._objc_msgSend_12(_id, _lib._sel_isPausable1); + NSArray? get quarterSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_quarterSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - set pausable(bool value) { - return _lib._objc_msgSend_492(_id, _lib._sel_setPausable_1, value); + set quarterSymbols(NSArray? value) { + return _lib._objc_msgSend_739( + _id, _lib._sel_setQuarterSymbols_1, value?._id ?? ffi.nullptr); } - bool get cancelled { - return _lib._objc_msgSend_12(_id, _lib._sel_isCancelled1); + NSArray? get shortQuarterSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortQuarterSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - bool get paused { - return _lib._objc_msgSend_12(_id, _lib._sel_isPaused1); + set shortQuarterSymbols(NSArray? value) { + return _lib._objc_msgSend_739( + _id, _lib._sel_setShortQuarterSymbols_1, value?._id ?? ffi.nullptr); } - ObjCBlock_ffiVoid get cancellationHandler { - final _ret = _lib._objc_msgSend_618(_id, _lib._sel_cancellationHandler1); - return ObjCBlock_ffiVoid._(_ret, _lib); + NSArray? get standaloneQuarterSymbols { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_standaloneQuarterSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - set cancellationHandler(ObjCBlock_ffiVoid value) { - return _lib._objc_msgSend_619( - _id, _lib._sel_setCancellationHandler_1, value._id); + set standaloneQuarterSymbols(NSArray? value) { + return _lib._objc_msgSend_739(_id, _lib._sel_setStandaloneQuarterSymbols_1, + value?._id ?? ffi.nullptr); } - ObjCBlock_ffiVoid get pausingHandler { - final _ret = _lib._objc_msgSend_618(_id, _lib._sel_pausingHandler1); - return ObjCBlock_ffiVoid._(_ret, _lib); + NSArray? get shortStandaloneQuarterSymbols { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneQuarterSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - set pausingHandler(ObjCBlock_ffiVoid value) { - return _lib._objc_msgSend_619( - _id, _lib._sel_setPausingHandler_1, value._id); + set shortStandaloneQuarterSymbols(NSArray? value) { + return _lib._objc_msgSend_739( + _id, + _lib._sel_setShortStandaloneQuarterSymbols_1, + value?._id ?? ffi.nullptr); } - ObjCBlock_ffiVoid get resumingHandler { - final _ret = _lib._objc_msgSend_618(_id, _lib._sel_resumingHandler1); - return ObjCBlock_ffiVoid._(_ret, _lib); + NSDate? get gregorianStartDate { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_gregorianStartDate1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - set resumingHandler(ObjCBlock_ffiVoid value) { - return _lib._objc_msgSend_619( - _id, _lib._sel_setResumingHandler_1, value._id); + set gregorianStartDate(NSDate? value) { + return _lib._objc_msgSend_528( + _id, _lib._sel_setGregorianStartDate_1, value?._id ?? ffi.nullptr); } - void setUserInfoObject_forKey_(NSObject objectOrNil, NSString key) { - _lib._objc_msgSend_126( - _id, _lib._sel_setUserInfoObject_forKey_1, objectOrNil._id, key._id); + bool get doesRelativeDateFormatting { + return _lib._objc_msgSend_12(_id, _lib._sel_doesRelativeDateFormatting1); } - bool get indeterminate { - return _lib._objc_msgSend_12(_id, _lib._sel_isIndeterminate1); + set doesRelativeDateFormatting(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setDoesRelativeDateFormatting_1, value); } - double get fractionCompleted { - return _lib._objc_msgSend_155(_id, _lib._sel_fractionCompleted1); + 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); } - bool get finished { - return _lib._objc_msgSend_12(_id, _lib._sel_isFinished1); + bool allowsNaturalLanguage() { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsNaturalLanguage1); } - void cancel() { - _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + @override + NSDateFormatter init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSDateFormatter._(_ret, _lib, retain: true, release: true); } - void pause() { - _lib._objc_msgSend_1(_id, _lib._sel_pause1); + static NSDateFormatter new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSDateFormatter1, _lib._sel_new1); + return NSDateFormatter._(_ret, _lib, retain: false, release: true); } - void resume() { - _lib._objc_msgSend_1(_id, _lib._sel_resume1); + static NSDateFormatter allocWithZone_( + SentryCocoa _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); } - 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 NSDateFormatter alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSDateFormatter1, _lib._sel_alloc1); + return NSDateFormatter._(_ret, _lib, retain: false, release: true); } - NSString get kind { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_kind1); - return NSString._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _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); } - set kind(NSString value) { - return _lib._objc_msgSend_509(_id, _lib._sel_setKind_1, value._id); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSDateFormatter1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - NSNumber? get estimatedTimeRemaining { - final _ret = _lib._objc_msgSend_198(_id, _lib._sel_estimatedTimeRemaining1); - return _ret.address == 0 - ? null - : NSNumber._(_ret, _lib, retain: true, release: true); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_NSDateFormatter1, + _lib._sel_accessInstanceVariablesDirectly1); } - set estimatedTimeRemaining(NSNumber? value) { - return _lib._objc_msgSend_620( - _id, _lib._sel_setEstimatedTimeRemaining_1, value?._id ?? ffi.nullptr); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSDateFormatter1, _lib._sel_useStoredAccessor1); } - NSNumber? get throughput { - final _ret = _lib._objc_msgSend_198(_id, _lib._sel_throughput1); - return _ret.address == 0 - ? null - : NSNumber._(_ret, _lib, retain: true, release: true); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSDateFormatter1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - set throughput(NSNumber? value) { - return _lib._objc_msgSend_620( - _id, _lib._sel_setThroughput_1, value?._id ?? ffi.nullptr); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSDateFormatter1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - NSString get fileOperationKind { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fileOperationKind1); - return NSString._(_ret, _lib, retain: true, release: true); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSDateFormatter1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - set fileOperationKind(NSString value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setFileOperationKind_1, value._id); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSDateFormatter1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSURL? get fileURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_fileURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSDateFormatter1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - set fileURL(NSURL? value) { - return _lib._objc_msgSend_621( - _id, _lib._sel_setFileURL_1, value?._id ?? ffi.nullptr); - } +class NSFormatter extends NSObject { + NSFormatter._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - NSNumber? get fileTotalCount { - final _ret = _lib._objc_msgSend_198(_id, _lib._sel_fileTotalCount1); - return _ret.address == 0 - ? null - : NSNumber._(_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); } - set fileTotalCount(NSNumber? value) { - return _lib._objc_msgSend_620( - _id, _lib._sel_setFileTotalCount_1, value?._id ?? ffi.nullptr); + /// Returns a [NSFormatter] that wraps the given raw object pointer. + static NSFormatter castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSFormatter._(other, lib, retain: retain, release: release); } - NSNumber? get fileCompletedCount { - final _ret = _lib._objc_msgSend_198(_id, _lib._sel_fileCompletedCount1); - return _ret.address == 0 - ? null - : NSNumber._(_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); } - set fileCompletedCount(NSNumber? value) { - return _lib._objc_msgSend_620( - _id, _lib._sel_setFileCompletedCount_1, value?._id ?? ffi.nullptr); + NSString stringForObjectValue_(NSObject obj) { + final _ret = + _lib._objc_msgSend_65(_id, _lib._sel_stringForObjectValue_1, obj._id); + return NSString._(_ret, _lib, retain: true, release: true); } - void publish() { - _lib._objc_msgSend_1(_id, _lib._sel_publish1); + NSAttributedString attributedStringForObjectValue_withDefaultAttributes_( + NSObject obj, NSDictionary? attrs) { + final _ret = _lib._objc_msgSend_694( + _id, + _lib._sel_attributedStringForObjectValue_withDefaultAttributes_1, + obj._id, + attrs?._id ?? ffi.nullptr); + return NSAttributedString._(_ret, _lib, retain: true, release: true); } - void unpublish() { - _lib._objc_msgSend_1(_id, _lib._sel_unpublish1); + NSString editingStringForObjectValue_(NSObject obj) { + final _ret = _lib._objc_msgSend_65( + _id, _lib._sel_editingStringForObjectValue_1, obj._id); + return NSString._(_ret, _lib, retain: true, release: true); } - static NSObject addSubscriberForFileURL_withPublishingHandler_( - SentryCocoa _lib, - NSURL? url, - ObjCBlock_ffiVoid_NSProgress publishingHandler) { - final _ret = _lib._objc_msgSend_622( - _lib._class_NSProgress1, - _lib._sel_addSubscriberForFileURL_withPublishingHandler_1, - url?._id ?? ffi.nullptr, - publishingHandler._id); - return NSObject._(_ret, _lib, retain: true, release: true); + bool getObjectValue_forString_errorDescription_( + ffi.Pointer> obj, + NSString? string, + ffi.Pointer> error) { + return _lib._objc_msgSend_695( + _id, + _lib._sel_getObjectValue_forString_errorDescription_1, + obj, + string?._id ?? ffi.nullptr, + error); } - static void removeSubscriber_(SentryCocoa _lib, NSObject subscriber) { - _lib._objc_msgSend_15( - _lib._class_NSProgress1, _lib._sel_removeSubscriber_1, subscriber._id); + bool isPartialStringValid_newEditingString_errorDescription_( + NSString? partialString, + ffi.Pointer> newString, + ffi.Pointer> error) { + return _lib._objc_msgSend_696( + _id, + _lib._sel_isPartialStringValid_newEditingString_errorDescription_1, + partialString?._id ?? ffi.nullptr, + newString, + error); } - bool get old { - return _lib._objc_msgSend_12(_id, _lib._sel_isOld1); + bool + isPartialStringValid_proposedSelectedRange_originalString_originalSelectedRange_errorDescription_( + ffi.Pointer> partialStringPtr, + ffi.Pointer<_NSRange> proposedSelRangePtr, + NSString? origString, + _NSRange origSelRange, + ffi.Pointer> error) { + return _lib._objc_msgSend_697( + _id, + _lib._sel_isPartialStringValid_proposedSelectedRange_originalString_originalSelectedRange_errorDescription_1, + partialStringPtr, + proposedSelRangePtr, + origString?._id ?? ffi.nullptr, + origSelRange, + error); } @override - NSProgress init() { + NSFormatter init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSProgress._(_ret, _lib, retain: true, release: true); + return NSFormatter._(_ret, _lib, retain: true, release: true); } - static NSProgress new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSProgress1, _lib._sel_new1); - return NSProgress._(_ret, _lib, retain: false, release: true); + static NSFormatter new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSFormatter1, _lib._sel_new1); + return NSFormatter._(_ret, _lib, retain: false, release: true); } - static NSProgress allocWithZone_( + static NSFormatter allocWithZone_( SentryCocoa _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); + _lib._class_NSFormatter1, _lib._sel_allocWithZone_1, zone); + return NSFormatter._(_ret, _lib, retain: false, release: true); } - static NSProgress alloc(SentryCocoa _lib) { + static NSFormatter alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSProgress1, _lib._sel_alloc1); - return NSProgress._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSFormatter1, _lib._sel_alloc1); + return NSFormatter._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -50574,7 +56841,7 @@ class NSProgress extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSProgress1, + _lib._class_NSFormatter1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -50583,24 +56850,24 @@ class NSProgress extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSProgress1, + _lib._objc_msgSend_15(_lib._class_NSFormatter1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSProgress1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSFormatter1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSProgress1, _lib._sel_useStoredAccessor1); + _lib._class_NSFormatter1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSProgress1, + _lib._class_NSFormatter1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -50609,7 +56876,7 @@ class NSProgress extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSProgress1, + _lib._class_NSFormatter1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -50617,7 +56884,7 @@ class NSProgress extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSProgress1, + _lib._class_NSFormatter1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -50625,1493 +56892,1010 @@ class NSProgress extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSProgress1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSFormatter1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSProgress1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSFormatter1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -ffi.Pointer<_ObjCBlock> _ObjCBlock_ffiVoid_NSProgress_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); +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; } -final _ObjCBlock_ffiVoid_NSProgress_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSProgress_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSProgress_registerClosure( - Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSProgress_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSProgress_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); +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; } -ffi.Pointer<_ObjCBlock> _ObjCBlock_ffiVoid_NSProgress_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return (_ObjCBlock_ffiVoid_NSProgress_closureRegistry[ - block.ref.target.address] - as ffi.Pointer<_ObjCBlock> Function(ffi.Pointer))(arg0); +abstract class NSDateFormatterBehavior { + static const int NSDateFormatterBehaviorDefault = 0; + static const int NSDateFormatterBehavior10_0 = 1000; + static const int NSDateFormatterBehavior10_4 = 1040; } -class ObjCBlock_ffiVoid_NSProgress extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSProgress._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSProgress.fromFunctionPointer( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_NSProgress_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; +class NSCalendar extends NSObject { + NSCalendar._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSProgress.fromFunction(SentryCocoa 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)>( - _ObjCBlock_ffiVoid_NSProgress_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_NSProgress_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 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); } -} -void _ObjCBlock_ffiVoid_NSData_NSError_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); -} + /// Returns a [NSCalendar] that wraps the given raw object pointer. + static NSCalendar castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSCalendar._(other, lib, retain: retain, release: release); + } -final _ObjCBlock_ffiVoid_NSData_NSError_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSData_NSError_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSData_NSError_registerClosure( - Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSData_NSError_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSData_NSError_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + /// 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); + } -void _ObjCBlock_ffiVoid_NSData_NSError_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { - return (_ObjCBlock_ffiVoid_NSData_NSError_closureRegistry[ - block.ref.target.address] - as void Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); -} + static NSCalendar? getCurrentCalendar(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_708( + _lib._class_NSCalendar1, _lib._sel_currentCalendar1); + return _ret.address == 0 + ? null + : NSCalendar._(_ret, _lib, retain: true, release: true); + } -class ObjCBlock_ffiVoid_NSData_NSError extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSData_NSError._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); + static NSCalendar? getAutoupdatingCurrentCalendar(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_708( + _lib._class_NSCalendar1, _lib._sel_autoupdatingCurrentCalendar1); + return _ret.address == 0 + ? null + : NSCalendar._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSData_NSError.fromFunctionPointer( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_NSData_NSError_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + static NSCalendar calendarWithIdentifier_( + SentryCocoa _lib, NSString calendarIdentifierConstant) { + final _ret = _lib._objc_msgSend_709(_lib._class_NSCalendar1, + _lib._sel_calendarWithIdentifier_1, calendarIdentifierConstant._id); + return NSCalendar._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSData_NSError.fromFunction( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_NSData_NSError_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_NSData_NSError_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); + @override + NSCalendar init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSCalendar._(_ret, _lib, retain: true, release: true); } -} -abstract class NSItemProviderFileOptions { - static const int NSItemProviderFileOptionOpenInPlace = 1; -} + 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); + } -ffi.Pointer - _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_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); -} + NSString get calendarIdentifier { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_calendarIdentifier1); + return NSString._(_ret, _lib, retain: true, release: true); + } -final _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureRegistry = - {}; -int _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureRegistryIndex = 0; -ffi.Pointer - _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_registerClosure(Function fn) { - final id = - ++_ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureRegistryIndex; - _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + NSLocale? get locale { + final _ret = _lib._objc_msgSend_182(_id, _lib._sel_locale1); + return _ret.address == 0 + ? null + : NSLocale._(_ret, _lib, retain: true, release: true); + } -ffi.Pointer - _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { - return (_ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureRegistry[ - block.ref.target.address] - as ffi.Pointer Function(ffi.Pointer<_ObjCBlock>))(arg0); -} + set locale(NSLocale? value) { + return _lib._objc_msgSend_707( + _id, _lib._sel_setLocale_1, value?._id ?? ffi.nullptr); + } -class ObjCBlock_NSProgress_ffiVoidNSURLboolNSError extends _ObjCBlockBase { - ObjCBlock_NSProgress_ffiVoidNSURLboolNSError._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); + NSTimeZone? get timeZone { + final _ret = _lib._objc_msgSend_168(_id, _lib._sel_timeZone1); + return _ret.address == 0 + ? null + : NSTimeZone._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a C function pointer. - ObjCBlock_NSProgress_ffiVoidNSURLboolNSError.fromFunctionPointer( - SentryCocoa 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)>( - _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + set timeZone(NSTimeZone? value) { + return _lib._objc_msgSend_169( + _id, _lib._sel_setTimeZone_1, value?._id ?? ffi.nullptr); + } - /// Creates a block from a Dart function. - ObjCBlock_NSProgress_ffiVoidNSURLboolNSError.fromFunction(SentryCocoa 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)>( - _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureTrampoline) - .cast(), - _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_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); + int get firstWeekday { + return _lib._objc_msgSend_10(_id, _lib._sel_firstWeekday1); } -} -void _ObjCBlock_ffiVoid_NSURL_bool_NSError_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); -} + set firstWeekday(int value) { + return _lib._objc_msgSend_486(_id, _lib._sel_setFirstWeekday_1, value); + } -final _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSURL_bool_NSError_registerClosure( - Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSURL_bool_NSError_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + int get minimumDaysInFirstWeek { + return _lib._objc_msgSend_10(_id, _lib._sel_minimumDaysInFirstWeek1); + } -void _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2) { - return (_ObjCBlock_ffiVoid_NSURL_bool_NSError_closureRegistry[ - block.ref.target.address] - as void Function(ffi.Pointer, bool, - ffi.Pointer))(arg0, arg1, arg2); -} + set minimumDaysInFirstWeek(int value) { + return _lib._objc_msgSend_486( + _id, _lib._sel_setMinimumDaysInFirstWeek_1, value); + } -class ObjCBlock_ffiVoid_NSURL_bool_NSError extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSURL_bool_NSError._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); + NSArray? get eraSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_eraSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSURL_bool_NSError.fromFunctionPointer( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_NSURL_bool_NSError_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + NSArray? get longEraSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_longEraSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSURL_bool_NSError.fromFunction( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_NSURL_bool_NSError_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); + NSArray? get monthSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_monthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } -} -void _ObjCBlock_ffiVoid_NSURL_NSError_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); -} + NSArray? get shortMonthSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortMonthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } -final _ObjCBlock_ffiVoid_NSURL_NSError_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSURL_NSError_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSURL_NSError_registerClosure( - Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSURL_NSError_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSURL_NSError_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + NSArray? get veryShortMonthSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_veryShortMonthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } -void _ObjCBlock_ffiVoid_NSURL_NSError_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { - return (_ObjCBlock_ffiVoid_NSURL_NSError_closureRegistry[ - block.ref.target.address] - as void Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); -} + NSArray? get standaloneMonthSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_standaloneMonthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } -class ObjCBlock_ffiVoid_NSURL_NSError extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSURL_NSError._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); + NSArray? get shortStandaloneMonthSymbols { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneMonthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSURL_NSError.fromFunctionPointer( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_NSURL_NSError_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + NSArray? get veryShortStandaloneMonthSymbols { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_veryShortStandaloneMonthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSURL_NSError.fromFunction( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_NSURL_NSError_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_NSURL_NSError_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); + NSArray? get weekdaySymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_weekdaySymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } -} -ffi.Pointer - _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_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); -} + NSArray? get shortWeekdaySymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortWeekdaySymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } -final _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureRegistry = - {}; -int _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureRegistryIndex = 0; -ffi.Pointer - _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_registerClosure( - Function fn) { - final id = - ++_ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureRegistryIndex; - _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + NSArray? get veryShortWeekdaySymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_veryShortWeekdaySymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } -ffi.Pointer - _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { - return (_ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureRegistry[ - block.ref.target.address] - as ffi.Pointer Function(ffi.Pointer<_ObjCBlock>))(arg0); -} + NSArray? get standaloneWeekdaySymbols { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_standaloneWeekdaySymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } -class ObjCBlock_NSProgress_ffiVoidObjCObjectNSError extends _ObjCBlockBase { - ObjCBlock_NSProgress_ffiVoidObjCObjectNSError._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); + NSArray? get shortStandaloneWeekdaySymbols { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneWeekdaySymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a C function pointer. - ObjCBlock_NSProgress_ffiVoidObjCObjectNSError.fromFunctionPointer( - SentryCocoa 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)>( - _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + NSArray? get veryShortStandaloneWeekdaySymbols { + final _ret = _lib._objc_msgSend_79( + _id, _lib._sel_veryShortStandaloneWeekdaySymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a Dart function. - ObjCBlock_NSProgress_ffiVoidObjCObjectNSError.fromFunction(SentryCocoa 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)>( - _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureTrampoline) - .cast(), - _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_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); + NSArray? get quarterSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_quarterSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } -} -void _ObjCBlock_ffiVoid_ObjCObject_NSError_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); -} + NSArray? get shortQuarterSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortQuarterSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } -final _ObjCBlock_ffiVoid_ObjCObject_NSError_closureRegistry = {}; -int _ObjCBlock_ffiVoid_ObjCObject_NSError_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_ObjCObject_NSError_registerClosure( - Function fn) { - final id = ++_ObjCBlock_ffiVoid_ObjCObject_NSError_closureRegistryIndex; - _ObjCBlock_ffiVoid_ObjCObject_NSError_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + NSArray? get standaloneQuarterSymbols { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_standaloneQuarterSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } -void _ObjCBlock_ffiVoid_ObjCObject_NSError_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { - return (_ObjCBlock_ffiVoid_ObjCObject_NSError_closureRegistry[ - block.ref.target.address] - as void Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); -} + NSArray? get shortStandaloneQuarterSymbols { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneQuarterSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } -class ObjCBlock_ffiVoid_ObjCObject_NSError extends _ObjCBlockBase { - ObjCBlock_ffiVoid_ObjCObject_NSError._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); + 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); + } - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_ObjCObject_NSError.fromFunctionPointer( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_ObjCObject_NSError_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + 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); + } - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_ObjCObject_NSError.fromFunction( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_ObjCObject_NSError_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_ObjCObject_NSError_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); + void minimumRangeOfUnit_(ffi.Pointer<_NSRange> stret, int unit) { + _lib._objc_msgSend_710(stret, _id, _lib._sel_minimumRangeOfUnit_1, unit); } -} -void - _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_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 maximumRangeOfUnit_(ffi.Pointer<_NSRange> stret, int unit) { + _lib._objc_msgSend_710(stret, _id, _lib._sel_maximumRangeOfUnit_1, unit); + } -final _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureRegistry = - {}; -int _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureRegistryIndex = - 0; -ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_registerClosure( - Function fn) { - final id = - ++_ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureRegistryIndex; - _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureRegistry[ - id] = fn; - return ffi.Pointer.fromAddress(id); -} + void rangeOfUnit_inUnit_forDate_( + ffi.Pointer<_NSRange> stret, int smaller, int larger, NSDate? date) { + _lib._objc_msgSend_711(stret, _id, _lib._sel_rangeOfUnit_inUnit_forDate_1, + smaller, larger, date?._id ?? ffi.nullptr); + } -void - _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return (_ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureRegistry[ - block.ref.target.address] - as void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2); -} + int ordinalityOfUnit_inUnit_forDate_(int smaller, int larger, NSDate? date) { + return _lib._objc_msgSend_712( + _id, + _lib._sel_ordinalityOfUnit_inUnit_forDate_1, + smaller, + larger, + date?._id ?? ffi.nullptr); + } -class ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary - extends _ObjCBlockBase { - ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); + bool rangeOfUnit_startDate_interval_forDate_( + int unit, + ffi.Pointer> datep, + ffi.Pointer tip, + NSDate? date) { + return _lib._objc_msgSend_713( + _id, + _lib._sel_rangeOfUnit_startDate_interval_forDate_1, + unit, + datep, + tip, + date?._id ?? ffi.nullptr); + } - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary.fromFunctionPointer( - SentryCocoa 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> block, - ffi.Pointer<_ObjCBlock> arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + NSDate dateFromComponents_(NSDateComponents? comps) { + final _ret = _lib._objc_msgSend_718( + _id, _lib._sel_dateFromComponents_1, comps?._id ?? ffi.nullptr); + return NSDate._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary.fromFunction( - SentryCocoa lib, - void Function(ffi.Pointer<_ObjCBlock> arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - 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)>( - _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_registerClosure( - fn)), - 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); + NSDateComponents components_fromDate_(int unitFlags, NSDate? date) { + final _ret = _lib._objc_msgSend_719(_id, _lib._sel_components_fromDate_1, + unitFlags, date?._id ?? ffi.nullptr); + return NSDateComponents._(_ret, _lib, retain: true, release: true); } -} -class NSMutableString extends NSString { - NSMutableString._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSDate dateByAddingComponents_toDate_options_( + NSDateComponents? comps, NSDate? date, int opts) { + final _ret = _lib._objc_msgSend_720( + _id, + _lib._sel_dateByAddingComponents_toDate_options_1, + comps?._id ?? ffi.nullptr, + date?._id ?? ffi.nullptr, + opts); + return NSDate._(_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); + NSDateComponents components_fromDate_toDate_options_( + int unitFlags, NSDate? startingDate, NSDate? resultDate, int opts) { + final _ret = _lib._objc_msgSend_721( + _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); } - /// Returns a [NSMutableString] that wraps the given raw object pointer. - static NSMutableString castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSMutableString._(other, lib, retain: retain, release: release); + void getEra_year_month_day_fromDate_( + ffi.Pointer eraValuePointer, + ffi.Pointer yearValuePointer, + ffi.Pointer monthValuePointer, + ffi.Pointer dayValuePointer, + NSDate? date) { + _lib._objc_msgSend_722( + _id, + _lib._sel_getEra_year_month_day_fromDate_1, + eraValuePointer, + yearValuePointer, + monthValuePointer, + dayValuePointer, + date?._id ?? ffi.nullptr); } - /// 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); + void getEra_yearForWeekOfYear_weekOfYear_weekday_fromDate_( + ffi.Pointer eraValuePointer, + ffi.Pointer yearValuePointer, + ffi.Pointer weekValuePointer, + ffi.Pointer weekdayValuePointer, + NSDate? date) { + _lib._objc_msgSend_722( + _id, + _lib._sel_getEra_yearForWeekOfYear_weekOfYear_weekday_fromDate_1, + eraValuePointer, + yearValuePointer, + weekValuePointer, + weekdayValuePointer, + date?._id ?? ffi.nullptr); } - void replaceCharactersInRange_withString_(_NSRange range, NSString? aString) { - _lib._objc_msgSend_638(_id, _lib._sel_replaceCharactersInRange_withString_1, - range, aString?._id ?? ffi.nullptr); + void getHour_minute_second_nanosecond_fromDate_( + ffi.Pointer hourValuePointer, + ffi.Pointer minuteValuePointer, + ffi.Pointer secondValuePointer, + ffi.Pointer nanosecondValuePointer, + NSDate? date) { + _lib._objc_msgSend_722( + _id, + _lib._sel_getHour_minute_second_nanosecond_fromDate_1, + hourValuePointer, + minuteValuePointer, + secondValuePointer, + nanosecondValuePointer, + date?._id ?? ffi.nullptr); } - void insertString_atIndex_(NSString? aString, int loc) { - _lib._objc_msgSend_639(_id, _lib._sel_insertString_atIndex_1, - aString?._id ?? ffi.nullptr, loc); + int component_fromDate_(int unit, NSDate? date) { + return _lib._objc_msgSend_723( + _id, _lib._sel_component_fromDate_1, unit, date?._id ?? ffi.nullptr); } - void deleteCharactersInRange_(_NSRange range) { - _lib._objc_msgSend_445(_id, _lib._sel_deleteCharactersInRange_1, range); + 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_724( + _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 appendString_(NSString? aString) { - _lib._objc_msgSend_192( - _id, _lib._sel_appendString_1, aString?._id ?? ffi.nullptr); + 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_724( + _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 appendFormat_(NSString? format) { - _lib._objc_msgSend_192( - _id, _lib._sel_appendFormat_1, format?._id ?? ffi.nullptr); + NSDate startOfDayForDate_(NSDate? date) { + final _ret = _lib._objc_msgSend_158( + _id, _lib._sel_startOfDayForDate_1, date?._id ?? ffi.nullptr); + return NSDate._(_ret, _lib, retain: true, release: true); } - void setString_(NSString? aString) { - _lib._objc_msgSend_192( - _id, _lib._sel_setString_1, aString?._id ?? ffi.nullptr); + NSDateComponents componentsInTimeZone_fromDate_( + NSTimeZone? timezone, NSDate? date) { + final _ret = _lib._objc_msgSend_725( + _id, + _lib._sel_componentsInTimeZone_fromDate_1, + timezone?._id ?? ffi.nullptr, + date?._id ?? ffi.nullptr); + return NSDateComponents._(_ret, _lib, retain: true, release: true); } - int replaceOccurrencesOfString_withString_options_range_(NSString? target, - NSString? replacement, int options, _NSRange searchRange) { - return _lib._objc_msgSend_640( + int compareDate_toDate_toUnitGranularity_( + NSDate? date1, NSDate? date2, int unit) { + return _lib._objc_msgSend_726( _id, - _lib._sel_replaceOccurrencesOfString_withString_options_range_1, - target?._id ?? ffi.nullptr, - replacement?._id ?? ffi.nullptr, - options, - searchRange); + _lib._sel_compareDate_toDate_toUnitGranularity_1, + date1?._id ?? ffi.nullptr, + date2?._id ?? ffi.nullptr, + unit); } - bool applyTransform_reverse_range_updatedRange_(NSString transform, - bool reverse, _NSRange range, ffi.Pointer<_NSRange> resultingRange) { - return _lib._objc_msgSend_641( + bool isDate_equalToDate_toUnitGranularity_( + NSDate? date1, NSDate? date2, int unit) { + return _lib._objc_msgSend_727( _id, - _lib._sel_applyTransform_reverse_range_updatedRange_1, - transform._id, - reverse, - range, - resultingRange); + _lib._sel_isDate_equalToDate_toUnitGranularity_1, + date1?._id ?? ffi.nullptr, + date2?._id ?? ffi.nullptr, + unit); } - NSMutableString initWithCapacity_(int capacity) { - final _ret = - _lib._objc_msgSend_642(_id, _lib._sel_initWithCapacity_1, capacity); - return NSMutableString._(_ret, _lib, retain: true, release: true); + bool isDate_inSameDayAsDate_(NSDate? date1, NSDate? date2) { + return _lib._objc_msgSend_728(_id, _lib._sel_isDate_inSameDayAsDate_1, + date1?._id ?? ffi.nullptr, date2?._id ?? ffi.nullptr); } - static NSMutableString stringWithCapacity_(SentryCocoa _lib, int capacity) { - final _ret = _lib._objc_msgSend_642( - _lib._class_NSMutableString1, _lib._sel_stringWithCapacity_1, capacity); - return NSMutableString._(_ret, _lib, retain: true, release: true); + bool isDateInToday_(NSDate? date) { + return _lib._objc_msgSend_160( + _id, _lib._sel_isDateInToday_1, date?._id ?? ffi.nullptr); } - @override - NSMutableString init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSMutableString._(_ret, _lib, retain: true, release: true); + bool isDateInYesterday_(NSDate? date) { + return _lib._objc_msgSend_160( + _id, _lib._sel_isDateInYesterday_1, date?._id ?? ffi.nullptr); } - @override - NSMutableString initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSMutableString._(_ret, _lib, retain: true, release: true); + bool isDateInTomorrow_(NSDate? date) { + return _lib._objc_msgSend_160( + _id, _lib._sel_isDateInTomorrow_1, date?._id ?? ffi.nullptr); } - static ffi.Pointer getAvailableStringEncodings( - SentryCocoa _lib) { - return _lib._objc_msgSend_333( - _lib._class_NSMutableString1, _lib._sel_availableStringEncodings1); + bool isDateInWeekend_(NSDate? date) { + return _lib._objc_msgSend_160( + _id, _lib._sel_isDateInWeekend_1, date?._id ?? ffi.nullptr); } - static NSString localizedNameOfStringEncoding_( - SentryCocoa _lib, int encoding) { - final _ret = _lib._objc_msgSend_308(_lib._class_NSMutableString1, - _lib._sel_localizedNameOfStringEncoding_1, encoding); - return NSString._(_ret, _lib, retain: true, release: true); + bool rangeOfWeekendStartDate_interval_containingDate_( + ffi.Pointer> datep, + ffi.Pointer tip, + NSDate? date) { + return _lib._objc_msgSend_729( + _id, + _lib._sel_rangeOfWeekendStartDate_interval_containingDate_1, + datep, + tip, + date?._id ?? ffi.nullptr); } - static int getDefaultCStringEncoding(SentryCocoa _lib) { - return _lib._objc_msgSend_10( - _lib._class_NSMutableString1, _lib._sel_defaultCStringEncoding1); + bool nextWeekendStartDate_interval_options_afterDate_( + ffi.Pointer> datep, + ffi.Pointer tip, + int options, + NSDate? date) { + return _lib._objc_msgSend_730( + _id, + _lib._sel_nextWeekendStartDate_interval_options_afterDate_1, + datep, + tip, + options, + date?._id ?? ffi.nullptr); } - @override - NSMutableString initWithCharactersNoCopy_length_freeWhenDone_( - ffi.Pointer characters, int length, bool freeBuffer) { - final _ret = _lib._objc_msgSend_344( + NSDateComponents components_fromDateComponents_toDateComponents_options_( + int unitFlags, + NSDateComponents? startingDateComp, + NSDateComponents? resultDateComp, + int options) { + final _ret = _lib._objc_msgSend_731( _id, - _lib._sel_initWithCharactersNoCopy_length_freeWhenDone_1, - characters, - length, - freeBuffer); - return NSMutableString._(_ret, _lib, retain: false, release: true); + _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); } - @override - NSMutableString initWithCharactersNoCopy_length_deallocator_( - ffi.Pointer chars, - int len, - ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong deallocator) { - final _ret = _lib._objc_msgSend_345( + NSDate dateByAddingUnit_value_toDate_options_( + int unit, int value, NSDate? date, int options) { + final _ret = _lib._objc_msgSend_732( _id, - _lib._sel_initWithCharactersNoCopy_length_deallocator_1, - chars, - len, - deallocator._id); - return NSMutableString._(_ret, _lib, retain: false, release: true); + _lib._sel_dateByAddingUnit_value_toDate_options_1, + unit, + value, + date?._id ?? ffi.nullptr, + options); + return NSDate._(_ret, _lib, retain: true, release: true); } - @override - NSMutableString initWithCharacters_length_( - ffi.Pointer characters, int length) { - final _ret = _lib._objc_msgSend_346( - _id, _lib._sel_initWithCharacters_length_1, characters, length); - return NSMutableString._(_ret, _lib, retain: true, release: true); + void enumerateDatesStartingAfterDate_matchingComponents_options_usingBlock_( + NSDate? start, + NSDateComponents? comps, + int opts, + ObjCBlock_ffiVoid_NSDate_bool_bool block) { + _lib._objc_msgSend_733( + _id, + _lib._sel_enumerateDatesStartingAfterDate_matchingComponents_options_usingBlock_1, + start?._id ?? ffi.nullptr, + comps?._id ?? ffi.nullptr, + opts, + block._id); } - @override - NSMutableString initWithUTF8String_( - ffi.Pointer nullTerminatedCString) { - final _ret = _lib._objc_msgSend_347( - _id, _lib._sel_initWithUTF8String_1, nullTerminatedCString); - return NSMutableString._(_ret, _lib, retain: true, release: true); + NSDate nextDateAfterDate_matchingComponents_options_( + NSDate? date, NSDateComponents? comps, int options) { + final _ret = _lib._objc_msgSend_734( + _id, + _lib._sel_nextDateAfterDate_matchingComponents_options_1, + date?._id ?? ffi.nullptr, + comps?._id ?? ffi.nullptr, + options); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + NSDate nextDateAfterDate_matchingUnit_value_options_( + NSDate? date, int unit, int value, int options) { + final _ret = _lib._objc_msgSend_735( + _id, + _lib._sel_nextDateAfterDate_matchingUnit_value_options_1, + date?._id ?? ffi.nullptr, + unit, + value, + options); + return NSDate._(_ret, _lib, retain: true, release: true); } - @override - NSMutableString initWithString_(NSString? aString) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, aString?._id ?? ffi.nullptr); - return NSMutableString._(_ret, _lib, retain: true, release: true); + NSDate nextDateAfterDate_matchingHour_minute_second_options_(NSDate? date, + int hourValue, int minuteValue, int secondValue, int options) { + final _ret = _lib._objc_msgSend_736( + _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); } - @override - NSMutableString initWithFormat_(NSString? format) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithFormat_1, format?._id ?? ffi.nullptr); - return NSMutableString._(_ret, _lib, retain: true, release: true); + NSDate dateBySettingUnit_value_ofDate_options_( + int unit, int v, NSDate? date, int opts) { + final _ret = _lib._objc_msgSend_732( + _id, + _lib._sel_dateBySettingUnit_value_ofDate_options_1, + unit, + v, + date?._id ?? ffi.nullptr, + opts); + return NSDate._(_ret, _lib, retain: true, release: true); } - @override - NSMutableString initWithFormat_arguments_( - NSString? format, ffi.Pointer<__va_list_tag> argList) { - final _ret = _lib._objc_msgSend_348( + NSDate dateBySettingHour_minute_second_ofDate_options_( + int h, int m, int s, NSDate? date, int opts) { + final _ret = _lib._objc_msgSend_737( _id, - _lib._sel_initWithFormat_arguments_1, - format?._id ?? ffi.nullptr, - argList); - return NSMutableString._(_ret, _lib, retain: true, release: true); + _lib._sel_dateBySettingHour_minute_second_ofDate_options_1, + h, + m, + s, + date?._id ?? ffi.nullptr, + opts); + return NSDate._(_ret, _lib, retain: true, release: true); } - @override - NSMutableString initWithFormat_locale_(NSString? format, NSObject locale) { - final _ret = _lib._objc_msgSend_163(_id, _lib._sel_initWithFormat_locale_1, - format?._id ?? ffi.nullptr, locale._id); - return NSMutableString._(_ret, _lib, retain: true, release: true); + bool date_matchesComponents_(NSDate? date, NSDateComponents? components) { + return _lib._objc_msgSend_738(_id, _lib._sel_date_matchesComponents_1, + date?._id ?? ffi.nullptr, components?._id ?? ffi.nullptr); } - @override - NSMutableString initWithFormat_locale_arguments_( - NSString? format, NSObject locale, ffi.Pointer<__va_list_tag> argList) { - final _ret = _lib._objc_msgSend_349( - _id, - _lib._sel_initWithFormat_locale_arguments_1, - format?._id ?? ffi.nullptr, - locale._id, - argList); - return NSMutableString._(_ret, _lib, retain: true, release: true); + static NSCalendar new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSCalendar1, _lib._sel_new1); + return NSCalendar._(_ret, _lib, retain: false, release: true); } - @override - NSMutableString initWithValidatedFormat_validFormatSpecifiers_error_( - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_350( - _id, - _lib._sel_initWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + static NSCalendar allocWithZone_( + SentryCocoa _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); } - @override - NSMutableString initWithValidatedFormat_validFormatSpecifiers_locale_error_( - NSString? format, - NSString? validFormatSpecifiers, - NSObject locale, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_351( - _id, - _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - locale._id, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + static NSCalendar alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSCalendar1, _lib._sel_alloc1); + return NSCalendar._(_ret, _lib, retain: false, 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_352( - _id, - _lib._sel_initWithValidatedFormat_validFormatSpecifiers_arguments_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - argList, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSCalendar1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - @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_353( - _id, - _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - locale._id, - argList, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSCalendar1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - @override - NSMutableString initWithData_encoding_(NSData? data, int encoding) { - final _ret = _lib._objc_msgSend_354(_id, _lib._sel_initWithData_encoding_1, - data?._id ?? ffi.nullptr, encoding); - return NSMutableString._(_ret, _lib, retain: true, release: true); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSCalendar1, _lib._sel_accessInstanceVariablesDirectly1); } - @override - NSMutableString initWithBytes_length_encoding_( - ffi.Pointer bytes, int len, int encoding) { - final _ret = _lib._objc_msgSend_355( - _id, _lib._sel_initWithBytes_length_encoding_1, bytes, len, encoding); - return NSMutableString._(_ret, _lib, retain: true, release: true); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSCalendar1, _lib._sel_useStoredAccessor1); } - @override - NSMutableString initWithBytesNoCopy_length_encoding_freeWhenDone_( - ffi.Pointer bytes, int len, int encoding, bool freeBuffer) { - final _ret = _lib._objc_msgSend_356( - _id, - _lib._sel_initWithBytesNoCopy_length_encoding_freeWhenDone_1, - bytes, - len, - encoding, - freeBuffer); - return NSMutableString._(_ret, _lib, retain: false, release: true); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSCalendar1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - @override - NSMutableString initWithBytesNoCopy_length_encoding_deallocator_( - ffi.Pointer bytes, - int len, - int encoding, - ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong deallocator) { - final _ret = _lib._objc_msgSend_357( - _id, - _lib._sel_initWithBytesNoCopy_length_encoding_deallocator_1, - bytes, - len, - encoding, - deallocator._id); - return NSMutableString._(_ret, _lib, retain: false, release: true); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSCalendar1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - static NSMutableString string(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_string1); - return NSMutableString._(_ret, _lib, retain: true, release: true); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSCalendar1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - static NSMutableString stringWithString_(SentryCocoa _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 NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSCalendar1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSMutableString stringWithCharacters_length_( - SentryCocoa _lib, ffi.Pointer characters, int length) { - final _ret = _lib._objc_msgSend_346(_lib._class_NSMutableString1, - _lib._sel_stringWithCharacters_length_1, characters, length); - return NSMutableString._(_ret, _lib, retain: true, release: true); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSCalendar1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - static NSMutableString stringWithUTF8String_( - SentryCocoa _lib, ffi.Pointer nullTerminatedCString) { - final _ret = _lib._objc_msgSend_347(_lib._class_NSMutableString1, - _lib._sel_stringWithUTF8String_1, nullTerminatedCString); - return NSMutableString._(_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 NSCalendarUnitDayOfYear = 65536; + 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, SentryCocoa 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); } - static NSMutableString stringWithFormat_(SentryCocoa _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); + /// Returns a [NSDateComponents] that wraps the given raw object pointer. + static NSDateComponents castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSDateComponents._(other, lib, retain: retain, release: release); } - static NSMutableString localizedStringWithFormat_( - SentryCocoa _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); + /// 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_NSDateComponents1); } - static NSMutableString stringWithValidatedFormat_validFormatSpecifiers_error_( - SentryCocoa _lib, - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_350( - _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); + NSCalendar? get calendar { + final _ret = _lib._objc_msgSend_708(_id, _lib._sel_calendar1); + return _ret.address == 0 + ? null + : NSCalendar._(_ret, _lib, retain: true, release: true); } - static NSMutableString - localizedStringWithValidatedFormat_validFormatSpecifiers_error_( - SentryCocoa _lib, - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_350( - _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); + set calendar(NSCalendar? value) { + return _lib._objc_msgSend_714( + _id, _lib._sel_setCalendar_1, value?._id ?? ffi.nullptr); } - @override - NSMutableString initWithCString_encoding_( - ffi.Pointer nullTerminatedCString, int encoding) { - final _ret = _lib._objc_msgSend_358(_id, - _lib._sel_initWithCString_encoding_1, nullTerminatedCString, encoding); - return NSMutableString._(_ret, _lib, retain: true, release: true); + NSTimeZone? get timeZone { + final _ret = _lib._objc_msgSend_168(_id, _lib._sel_timeZone1); + return _ret.address == 0 + ? null + : NSTimeZone._(_ret, _lib, retain: true, release: true); } - static NSMutableString stringWithCString_encoding_( - SentryCocoa _lib, ffi.Pointer cString, int enc) { - final _ret = _lib._objc_msgSend_358(_lib._class_NSMutableString1, - _lib._sel_stringWithCString_encoding_1, cString, enc); - return NSMutableString._(_ret, _lib, retain: true, release: true); + set timeZone(NSTimeZone? value) { + return _lib._objc_msgSend_169( + _id, _lib._sel_setTimeZone_1, value?._id ?? ffi.nullptr); } - @override - NSMutableString initWithContentsOfURL_encoding_error_( - NSURL? url, int enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_359( - _id, - _lib._sel_initWithContentsOfURL_encoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + int get era { + return _lib._objc_msgSend_78(_id, _lib._sel_era1); } - @override - NSMutableString initWithContentsOfFile_encoding_error_( - NSString? path, int enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_360( - _id, - _lib._sel_initWithContentsOfFile_encoding_error_1, - path?._id ?? ffi.nullptr, - enc, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + set era(int value) { + return _lib._objc_msgSend_593(_id, _lib._sel_setEra_1, value); } - static NSMutableString stringWithContentsOfURL_encoding_error_( - SentryCocoa _lib, - NSURL? url, - int enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_359( - _lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfURL_encoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + int get year { + return _lib._objc_msgSend_78(_id, _lib._sel_year1); } - static NSMutableString stringWithContentsOfFile_encoding_error_( - SentryCocoa _lib, - NSString? path, - int enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_360( - _lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfFile_encoding_error_1, - path?._id ?? ffi.nullptr, - enc, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + set year(int value) { + return _lib._objc_msgSend_593(_id, _lib._sel_setYear_1, value); } - @override - NSMutableString initWithContentsOfURL_usedEncoding_error_( - NSURL? url, - ffi.Pointer enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_361( - _id, - _lib._sel_initWithContentsOfURL_usedEncoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + int get month { + return _lib._objc_msgSend_78(_id, _lib._sel_month1); } - @override - NSMutableString initWithContentsOfFile_usedEncoding_error_( - NSString? path, - ffi.Pointer enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_362( - _id, - _lib._sel_initWithContentsOfFile_usedEncoding_error_1, - path?._id ?? ffi.nullptr, - enc, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + set month(int value) { + return _lib._objc_msgSend_593(_id, _lib._sel_setMonth_1, value); } - static NSMutableString stringWithContentsOfURL_usedEncoding_error_( - SentryCocoa _lib, - NSURL? url, - ffi.Pointer enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_361( - _lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfURL_usedEncoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + int get day { + return _lib._objc_msgSend_78(_id, _lib._sel_day1); } - static NSMutableString stringWithContentsOfFile_usedEncoding_error_( - SentryCocoa _lib, - NSString? path, - ffi.Pointer enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_362( - _lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfFile_usedEncoding_error_1, - path?._id ?? ffi.nullptr, - enc, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + set day(int value) { + return _lib._objc_msgSend_593(_id, _lib._sel_setDay_1, value); } - static int - stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_( - SentryCocoa _lib, - NSData? data, - NSDictionary? opts, - ffi.Pointer> string, - ffi.Pointer usedLossyConversion) { - return _lib._objc_msgSend_363( - _lib._class_NSMutableString1, - _lib._sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1, - data?._id ?? ffi.nullptr, - opts?._id ?? ffi.nullptr, - string, - usedLossyConversion); + int get hour { + return _lib._objc_msgSend_78(_id, _lib._sel_hour1); } - static NSObject stringWithContentsOfFile_(SentryCocoa _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); + set hour(int value) { + return _lib._objc_msgSend_593(_id, _lib._sel_setHour_1, value); } - static NSObject stringWithContentsOfURL_(SentryCocoa _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_241(_lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + int get minute { + return _lib._objc_msgSend_78(_id, _lib._sel_minute1); } - static NSObject stringWithCString_length_( - SentryCocoa _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_358(_lib._class_NSMutableString1, - _lib._sel_stringWithCString_length_1, bytes, length); - return NSObject._(_ret, _lib, retain: true, release: true); + set minute(int value) { + return _lib._objc_msgSend_593(_id, _lib._sel_setMinute_1, value); } - static NSObject stringWithCString_( - SentryCocoa _lib, ffi.Pointer bytes) { - final _ret = _lib._objc_msgSend_347( - _lib._class_NSMutableString1, _lib._sel_stringWithCString_1, bytes); - return NSObject._(_ret, _lib, retain: true, release: true); + int get second { + return _lib._objc_msgSend_78(_id, _lib._sel_second1); } - static NSString pathWithComponents_(SentryCocoa _lib, NSArray? components) { - final _ret = _lib._objc_msgSend_369(_lib._class_NSMutableString1, - _lib._sel_pathWithComponents_1, components?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + set second(int value) { + return _lib._objc_msgSend_593(_id, _lib._sel_setSecond_1, value); } - static NSMutableString new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_new1); - return NSMutableString._(_ret, _lib, retain: false, release: true); + int get nanosecond { + return _lib._objc_msgSend_78(_id, _lib._sel_nanosecond1); } - static NSMutableString allocWithZone_( - SentryCocoa _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); + set nanosecond(int value) { + return _lib._objc_msgSend_593(_id, _lib._sel_setNanosecond_1, value); } - static NSMutableString alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_alloc1); - return NSMutableString._(_ret, _lib, retain: false, release: true); + int get weekday { + return _lib._objc_msgSend_78(_id, _lib._sel_weekday1); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSMutableString1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + set weekday(int value) { + return _lib._objc_msgSend_593(_id, _lib._sel_setWeekday_1, value); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSMutableString1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + int get weekdayOrdinal { + return _lib._objc_msgSend_78(_id, _lib._sel_weekdayOrdinal1); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSMutableString1, - _lib._sel_accessInstanceVariablesDirectly1); + set weekdayOrdinal(int value) { + return _lib._objc_msgSend_593(_id, _lib._sel_setWeekdayOrdinal_1, value); } - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMutableString1, _lib._sel_useStoredAccessor1); + int get quarter { + return _lib._objc_msgSend_78(_id, _lib._sel_quarter1); } - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableString1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + set quarter(int value) { + return _lib._objc_msgSend_593(_id, _lib._sel_setQuarter_1, value); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMutableString1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + int get weekOfMonth { + return _lib._objc_msgSend_78(_id, _lib._sel_weekOfMonth1); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSMutableString1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + set weekOfMonth(int value) { + return _lib._objc_msgSend_593(_id, _lib._sel_setWeekOfMonth_1, value); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSMutableString1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + int get weekOfYear { + return _lib._objc_msgSend_78(_id, _lib._sel_weekOfYear1); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableString1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + set weekOfYear(int value) { + return _lib._objc_msgSend_593(_id, _lib._sel_setWeekOfYear_1, value); } -} -class NSNotification extends NSObject { - NSNotification._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + int get yearForWeekOfYear { + return _lib._objc_msgSend_78(_id, _lib._sel_yearForWeekOfYear1); + } - /// 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); + set yearForWeekOfYear(int value) { + return _lib._objc_msgSend_593(_id, _lib._sel_setYearForWeekOfYear_1, value); } - /// Returns a [NSNotification] that wraps the given raw object pointer. - static NSNotification castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSNotification._(other, lib, retain: retain, release: release); + int get dayOfYear { + return _lib._objc_msgSend_78(_id, _lib._sel_dayOfYear1); } - /// 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); + set dayOfYear(int value) { + return _lib._objc_msgSend_593(_id, _lib._sel_setDayOfYear_1, value); } - NSString get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); - return NSString._(_ret, _lib, retain: true, release: true); + bool get leapMonth { + return _lib._objc_msgSend_12(_id, _lib._sel_isLeapMonth1); } - NSObject get object { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_object1); - return NSObject._(_ret, _lib, retain: true, release: true); + set leapMonth(bool value) { + return _lib._objc_msgSend_495(_id, _lib._sel_setLeapMonth_1, value); } - NSDictionary? get userInfo { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_userInfo1); + NSDate? get date { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_date1); return _ret.address == 0 ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + : NSDate._(_ret, _lib, retain: true, release: true); } - NSNotification initWithName_object_userInfo_( - NSString name, NSObject object, NSDictionary? userInfo) { - final _ret = _lib._objc_msgSend_643( - _id, - _lib._sel_initWithName_object_userInfo_1, - name._id, - object._id, - userInfo?._id ?? ffi.nullptr); - return NSNotification._(_ret, _lib, retain: true, release: true); + int week() { + return _lib._objc_msgSend_78(_id, _lib._sel_week1); } - 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); + void setWeek_(int v) { + _lib._objc_msgSend_396(_id, _lib._sel_setWeek_1, v); } - static NSNotification notificationWithName_object_( - SentryCocoa _lib, NSString aName, NSObject anObject) { - final _ret = _lib._objc_msgSend_163(_lib._class_NSNotification1, - _lib._sel_notificationWithName_object_1, aName._id, anObject._id); - return NSNotification._(_ret, _lib, retain: true, release: true); + void setValue_forComponent_(int value, int unit) { + _lib._objc_msgSend_715(_id, _lib._sel_setValue_forComponent_1, value, unit); } - static NSNotification notificationWithName_object_userInfo_(SentryCocoa _lib, - NSString aName, NSObject anObject, NSDictionary? aUserInfo) { - final _ret = _lib._objc_msgSend_643( - _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); + int valueForComponent_(int unit) { + return _lib._objc_msgSend_716(_id, _lib._sel_valueForComponent_1, unit); + } + + bool get validDate { + return _lib._objc_msgSend_12(_id, _lib._sel_isValidDate1); + } + + bool isValidDateInCalendar_(NSCalendar? calendar) { + return _lib._objc_msgSend_717( + _id, _lib._sel_isValidDateInCalendar_1, calendar?._id ?? ffi.nullptr); } @override - NSNotification init() { + NSDateComponents init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSNotification._(_ret, _lib, retain: true, release: true); + return NSDateComponents._(_ret, _lib, retain: true, release: true); } - static NSNotification new1(SentryCocoa _lib) { + static NSDateComponents new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSNotification1, _lib._sel_new1); - return NSNotification._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSDateComponents1, _lib._sel_new1); + return NSDateComponents._(_ret, _lib, retain: false, release: true); } - static NSNotification allocWithZone_( + static NSDateComponents allocWithZone_( SentryCocoa _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); + _lib._class_NSDateComponents1, _lib._sel_allocWithZone_1, zone); + return NSDateComponents._(_ret, _lib, retain: false, release: true); } - static NSNotification alloc(SentryCocoa _lib) { + static NSDateComponents alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSNotification1, _lib._sel_alloc1); - return NSNotification._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSDateComponents1, _lib._sel_alloc1); + return NSDateComponents._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -52120,7 +57904,7 @@ class NSNotification extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSNotification1, + _lib._class_NSDateComponents1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -52129,24 +57913,24 @@ class NSNotification extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSNotification1, + _lib._objc_msgSend_15(_lib._class_NSDateComponents1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSNotification1, + return _lib._objc_msgSend_12(_lib._class_NSDateComponents1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSNotification1, _lib._sel_useStoredAccessor1); + _lib._class_NSDateComponents1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSNotification1, + _lib._class_NSDateComponents1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -52155,7 +57939,7 @@ class NSNotification extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSNotification1, + _lib._class_NSDateComponents1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -52163,1281 +57947,960 @@ class NSNotification extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSNotification1, + _lib._class_NSDateComponents1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSNotification1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_NSDateComponents1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSNotification1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSDateComponents1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSBundle extends NSObject { - NSBundle._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +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; +} - /// 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); - } +void _ObjCBlock_ffiVoid_NSDate_bool_bool_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); +} - /// Returns a [NSBundle] that wraps the given raw object pointer. - static NSBundle castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSBundle._(other, lib, retain: retain, release: release); - } +final _ObjCBlock_ffiVoid_NSDate_bool_bool_closureRegistry = {}; +int _ObjCBlock_ffiVoid_NSDate_bool_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSDate_bool_bool_registerClosure( + Function fn) { + final id = ++_ObjCBlock_ffiVoid_NSDate_bool_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSDate_bool_bool_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(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); - } +void _ObjCBlock_ffiVoid_NSDate_bool_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2) { + return (_ObjCBlock_ffiVoid_NSDate_bool_bool_closureRegistry[ + block.ref.target.address] + as void Function(ffi.Pointer, bool, + ffi.Pointer))(arg0, arg1, arg2); +} - static NSBundle? getMainBundle(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_644(_lib._class_NSBundle1, _lib._sel_mainBundle1); - return _ret.address == 0 - ? null - : NSBundle._(_ret, _lib, retain: true, release: true); - } +class ObjCBlock_ffiVoid_NSDate_bool_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSDate_bool_bool._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); - static NSBundle bundleWithPath_(SentryCocoa _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); - } + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_NSDate_bool_bool.fromFunctionPointer( + SentryCocoa 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)>( + _ObjCBlock_ffiVoid_NSDate_bool_bool_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - 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); + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_NSDate_bool_bool.fromFunction( + SentryCocoa 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)>( + _ObjCBlock_ffiVoid_NSDate_bool_bool_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSDate_bool_bool_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); } +} - static NSBundle bundleWithURL_(SentryCocoa _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_241(_lib._class_NSBundle1, - _lib._sel_bundleWithURL_1, url?._id ?? ffi.nullptr); - return NSBundle._(_ret, _lib, retain: true, release: true); - } +class NSNumberFormatter extends NSFormatter { + NSNumberFormatter._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - NSBundle initWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_241( - _id, _lib._sel_initWithURL_1, url?._id ?? ffi.nullptr); - return NSBundle._(_ret, _lib, retain: true, release: true); + /// Returns a [NSNumberFormatter] that points to the same underlying object as [other]. + static NSNumberFormatter castFrom(T other) { + return NSNumberFormatter._(other._id, other._lib, + retain: true, release: true); } - static NSBundle bundleForClass_(SentryCocoa _lib, NSObject aClass) { - final _ret = _lib._objc_msgSend_645( - _lib._class_NSBundle1, _lib._sel_bundleForClass_1, aClass._id); - return NSBundle._(_ret, _lib, retain: true, release: true); + /// Returns a [NSNumberFormatter] that wraps the given raw object pointer. + static NSNumberFormatter castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSNumberFormatter._(other, lib, retain: retain, release: release); } - static NSBundle bundleWithIdentifier_( - SentryCocoa _lib, NSString? identifier) { - final _ret = _lib._objc_msgSend_646(_lib._class_NSBundle1, - _lib._sel_bundleWithIdentifier_1, identifier?._id ?? ffi.nullptr); - return NSBundle._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [NSNumberFormatter]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSNumberFormatter1); } - static NSArray? getAllBundles(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_79(_lib._class_NSBundle1, _lib._sel_allBundles1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + int get formattingContext { + return _lib._objc_msgSend_698(_id, _lib._sel_formattingContext1); } - static NSArray? getAllFrameworks(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_79(_lib._class_NSBundle1, _lib._sel_allFrameworks1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + set formattingContext(int value) { + return _lib._objc_msgSend_699(_id, _lib._sel_setFormattingContext_1, value); } - bool load() { - return _lib._objc_msgSend_12(_id, _lib._sel_load1); + bool getObjectValue_forString_range_error_( + ffi.Pointer> obj, + NSString? string, + ffi.Pointer<_NSRange> rangep, + ffi.Pointer> error) { + return _lib._objc_msgSend_700( + _id, + _lib._sel_getObjectValue_forString_range_error_1, + obj, + string?._id ?? ffi.nullptr, + rangep, + error); } - bool get loaded { - return _lib._objc_msgSend_12(_id, _lib._sel_isLoaded1); + NSString stringFromNumber_(NSNumber? number) { + final _ret = _lib._objc_msgSend_740( + _id, _lib._sel_stringFromNumber_1, number?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - bool unload() { - return _lib._objc_msgSend_12(_id, _lib._sel_unload1); + NSNumber numberFromString_(NSString? string) { + final _ret = _lib._objc_msgSend_741( + _id, _lib._sel_numberFromString_1, string?._id ?? ffi.nullptr); + return NSNumber._(_ret, _lib, retain: true, release: true); } - bool preflightAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_236( - _id, _lib._sel_preflightAndReturnError_1, error); + static NSString localizedStringFromNumber_numberStyle_( + SentryCocoa _lib, NSNumber? num, int nstyle) { + final _ret = _lib._objc_msgSend_742( + _lib._class_NSNumberFormatter1, + _lib._sel_localizedStringFromNumber_numberStyle_1, + num?._id ?? ffi.nullptr, + nstyle); + return NSString._(_ret, _lib, retain: true, release: true); } - bool loadAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_236(_id, _lib._sel_loadAndReturnError_1, error); + static int defaultFormatterBehavior(SentryCocoa _lib) { + return _lib._objc_msgSend_743( + _lib._class_NSNumberFormatter1, _lib._sel_defaultFormatterBehavior1); } - 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); + static void setDefaultFormatterBehavior_(SentryCocoa _lib, int behavior) { + _lib._objc_msgSend_744(_lib._class_NSNumberFormatter1, + _lib._sel_setDefaultFormatterBehavior_1, behavior); } - 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); + int get minimumGroupingDigits { + return _lib._objc_msgSend_78(_id, _lib._sel_minimumGroupingDigits1); } - 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); + set minimumGroupingDigits(int value) { + return _lib._objc_msgSend_593( + _id, _lib._sel_setMinimumGroupingDigits_1, value); } - 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); + int get numberStyle { + return _lib._objc_msgSend_745(_id, _lib._sel_numberStyle1); } - 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); + set numberStyle(int value) { + return _lib._objc_msgSend_746(_id, _lib._sel_setNumberStyle_1, value); } - NSURL? get sharedFrameworksURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_sharedFrameworksURL1); + NSLocale? get locale { + final _ret = _lib._objc_msgSend_182(_id, _lib._sel_locale1); return _ret.address == 0 ? null - : NSURL._(_ret, _lib, retain: true, release: true); + : NSLocale._(_ret, _lib, retain: true, release: true); } - 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); + set locale(NSLocale? value) { + return _lib._objc_msgSend_707( + _id, _lib._sel_setLocale_1, value?._id ?? ffi.nullptr); } - 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); + bool get generatesDecimalNumbers { + return _lib._objc_msgSend_12(_id, _lib._sel_generatesDecimalNumbers1); } - 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); + set generatesDecimalNumbers(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setGeneratesDecimalNumbers_1, value); } - 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); + int get formatterBehavior { + return _lib._objc_msgSend_743(_id, _lib._sel_formatterBehavior1); } - 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); + set formatterBehavior(int value) { + return _lib._objc_msgSend_747(_id, _lib._sel_setFormatterBehavior_1, value); } - NSString? get executablePath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_executablePath1); + 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); } - NSString pathForAuxiliaryExecutable_(NSString? executableName) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_pathForAuxiliaryExecutable_1, - executableName?._id ?? ffi.nullptr); - return NSString._(_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 negativeFormat(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setNegativeFormat_1, value?._id ?? ffi.nullptr); } - NSString? get sharedFrameworksPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sharedFrameworksPath1); + NSDictionary? get textAttributesForNegativeValues { + final _ret = + _lib._objc_msgSend_170(_id, _lib._sel_textAttributesForNegativeValues1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSDictionary._(_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 textAttributesForNegativeValues(NSDictionary? value) { + return _lib._objc_msgSend_171( + _id, + _lib._sel_setTextAttributesForNegativeValues_1, + value?._id ?? ffi.nullptr); } - NSString? get builtInPlugInsPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_builtInPlugInsPath1); + 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); } - static NSURL URLForResource_withExtension_subdirectory_inBundleWithURL_( - SentryCocoa _lib, - NSString? name, - NSString? ext, - NSString? subpath, - NSURL? bundleURL) { - final _ret = _lib._objc_msgSend_647( - _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); - } - - static NSArray URLsForResourcesWithExtension_subdirectory_inBundleWithURL_( - SentryCocoa _lib, NSString? ext, NSString? subpath, NSURL? bundleURL) { - final _ret = _lib._objc_msgSend_648( - _lib._class_NSBundle1, - _lib._sel_URLsForResourcesWithExtension_subdirectory_inBundleWithURL_1, - ext?._id ?? ffi.nullptr, - subpath?._id ?? ffi.nullptr, - bundleURL?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + set positiveFormat(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setPositiveFormat_1, value?._id ?? ffi.nullptr); } - NSURL URLForResource_withExtension_(NSString? name, NSString? ext) { - final _ret = _lib._objc_msgSend_649( - _id, - _lib._sel_URLForResource_withExtension_1, - name?._id ?? ffi.nullptr, - ext?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + NSDictionary? get textAttributesForPositiveValues { + final _ret = + _lib._objc_msgSend_170(_id, _lib._sel_textAttributesForPositiveValues1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSURL URLForResource_withExtension_subdirectory_( - NSString? name, NSString? ext, NSString? subpath) { - final _ret = _lib._objc_msgSend_650( + set textAttributesForPositiveValues(NSDictionary? value) { + return _lib._objc_msgSend_171( _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); + _lib._sel_setTextAttributesForPositiveValues_1, + value?._id ?? ffi.nullptr); } - NSURL URLForResource_withExtension_subdirectory_localization_(NSString? name, - NSString? ext, NSString? subpath, NSString? localizationName) { - final _ret = _lib._objc_msgSend_651( - _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); + bool get allowsFloats { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsFloats1); } - NSArray URLsForResourcesWithExtension_subdirectory_( - NSString? ext, NSString? subpath) { - final _ret = _lib._objc_msgSend_652( - _id, - _lib._sel_URLsForResourcesWithExtension_subdirectory_1, - ext?._id ?? ffi.nullptr, - subpath?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + set allowsFloats(bool value) { + return _lib._objc_msgSend_495(_id, _lib._sel_setAllowsFloats_1, value); } - NSArray URLsForResourcesWithExtension_subdirectory_localization_( - NSString? ext, NSString? subpath, NSString? localizationName) { - final _ret = _lib._objc_msgSend_653( - _id, - _lib._sel_URLsForResourcesWithExtension_subdirectory_localization_1, - ext?._id ?? ffi.nullptr, - subpath?._id ?? ffi.nullptr, - localizationName?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + 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); } - static NSString pathForResource_ofType_inDirectory_( - SentryCocoa _lib, NSString? name, NSString? ext, NSString? bundlePath) { - final _ret = _lib._objc_msgSend_654( - _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 decimalSeparator(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setDecimalSeparator_1, value?._id ?? ffi.nullptr); } - static NSArray pathsForResourcesOfType_inDirectory_( - SentryCocoa _lib, NSString? ext, NSString? bundlePath) { - final _ret = _lib._objc_msgSend_652( - _lib._class_NSBundle1, - _lib._sel_pathsForResourcesOfType_inDirectory_1, - ext?._id ?? ffi.nullptr, - bundlePath?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + bool get alwaysShowsDecimalSeparator { + return _lib._objc_msgSend_12(_id, _lib._sel_alwaysShowsDecimalSeparator1); } - NSString pathForResource_ofType_(NSString? name, NSString? ext) { - final _ret = _lib._objc_msgSend_339(_id, _lib._sel_pathForResource_ofType_1, - name?._id ?? ffi.nullptr, ext?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + set alwaysShowsDecimalSeparator(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setAlwaysShowsDecimalSeparator_1, value); } - NSString pathForResource_ofType_inDirectory_forLocalization_(NSString? name, - NSString? ext, NSString? subpath, NSString? localizationName) { - final _ret = _lib._objc_msgSend_655( - _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); + 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); } - NSArray pathsForResourcesOfType_inDirectory_forLocalization_( - NSString? ext, NSString? subpath, NSString? localizationName) { - final _ret = _lib._objc_msgSend_653( - _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); + set currencyDecimalSeparator(NSString? value) { + return _lib._objc_msgSend_512(_id, _lib._sel_setCurrencyDecimalSeparator_1, + value?._id ?? ffi.nullptr); } - NSString localizedStringForKey_value_table_( - NSString? key, NSString? value, NSString? tableName) { - final _ret = _lib._objc_msgSend_654( - _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); + bool get usesGroupingSeparator { + return _lib._objc_msgSend_12(_id, _lib._sel_usesGroupingSeparator1); } - NSAttributedString localizedAttributedStringForKey_value_table_( - NSString? key, NSString? value, NSString? tableName) { - final _ret = _lib._objc_msgSend_680( - _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); + set usesGroupingSeparator(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setUsesGroupingSeparator_1, value); } - NSString? get bundleIdentifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_bundleIdentifier1); + 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); } - NSDictionary? get infoDictionary { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_infoDictionary1); + set groupingSeparator(NSString? value) { + return _lib._objc_msgSend_512( + _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 - : NSDictionary._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - NSDictionary? get localizedInfoDictionary { - final _ret = - _lib._objc_msgSend_170(_id, _lib._sel_localizedInfoDictionary1); + set zeroSymbol(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setZeroSymbol_1, value?._id ?? ffi.nullptr); + } + + NSDictionary? get textAttributesForZero { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_textAttributesForZero1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } - 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); + set textAttributesForZero(NSDictionary? value) { + return _lib._objc_msgSend_171( + _id, _lib._sel_setTextAttributesForZero_1, value?._id ?? ffi.nullptr); } - 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); + 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); } - NSObject get principalClass { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_principalClass1); - return NSObject._(_ret, _lib, retain: true, release: true); + set nilSymbol(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setNilSymbol_1, value?._id ?? ffi.nullptr); } - NSArray? get preferredLocalizations { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_preferredLocalizations1); + NSDictionary? get textAttributesForNil { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_textAttributesForNil1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSArray? get localizations { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_localizations1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + set textAttributesForNil(NSDictionary? value) { + return _lib._objc_msgSend_171( + _id, _lib._sel_setTextAttributesForNil_1, value?._id ?? ffi.nullptr); } - NSString? get developmentLocalization { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_developmentLocalization1); + 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); } - static NSArray preferredLocalizationsFromArray_( - SentryCocoa _lib, NSArray? localizationsArray) { - final _ret = _lib._objc_msgSend_63( - _lib._class_NSBundle1, - _lib._sel_preferredLocalizationsFromArray_1, - localizationsArray?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + set notANumberSymbol(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setNotANumberSymbol_1, value?._id ?? ffi.nullptr); } - static NSArray preferredLocalizationsFromArray_forPreferences_( - SentryCocoa _lib, - NSArray? localizationsArray, - NSArray? preferencesArray) { - final _ret = _lib._objc_msgSend_681( - _lib._class_NSBundle1, - _lib._sel_preferredLocalizationsFromArray_forPreferences_1, - localizationsArray?._id ?? ffi.nullptr, - preferencesArray?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSDictionary? get textAttributesForNotANumber { + final _ret = + _lib._objc_msgSend_170(_id, _lib._sel_textAttributesForNotANumber1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSArray? get executableArchitectures { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_executableArchitectures1); + set textAttributesForNotANumber(NSDictionary? value) { + return _lib._objc_msgSend_171(_id, + _lib._sel_setTextAttributesForNotANumber_1, value?._id ?? ffi.nullptr); + } + + NSString? get positiveInfinitySymbol { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_positiveInfinitySymbol1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - void setPreservationPriority_forTags_(double priority, NSSet? tags) { - _lib._objc_msgSend_682(_id, _lib._sel_setPreservationPriority_forTags_1, - priority, tags?._id ?? ffi.nullptr); + set positiveInfinitySymbol(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setPositiveInfinitySymbol_1, value?._id ?? ffi.nullptr); } - double preservationPriorityForTag_(NSString? tag) { - return _lib._objc_msgSend_284( - _id, _lib._sel_preservationPriorityForTag_1, tag?._id ?? ffi.nullptr); + NSDictionary? get textAttributesForPositiveInfinity { + final _ret = _lib._objc_msgSend_170( + _id, _lib._sel_textAttributesForPositiveInfinity1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - @override - NSBundle init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSBundle._(_ret, _lib, retain: true, release: true); + set textAttributesForPositiveInfinity(NSDictionary? value) { + return _lib._objc_msgSend_171( + _id, + _lib._sel_setTextAttributesForPositiveInfinity_1, + value?._id ?? ffi.nullptr); } - static NSBundle new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSBundle1, _lib._sel_new1); - return NSBundle._(_ret, _lib, retain: false, release: true); + 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); } - static NSBundle allocWithZone_(SentryCocoa _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); + set negativeInfinitySymbol(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setNegativeInfinitySymbol_1, value?._id ?? ffi.nullptr); } - static NSBundle alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSBundle1, _lib._sel_alloc1); - return NSBundle._(_ret, _lib, retain: false, release: true); + NSDictionary? get textAttributesForNegativeInfinity { + final _ret = _lib._objc_msgSend_170( + _id, _lib._sel_textAttributesForNegativeInfinity1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSBundle1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + set textAttributesForNegativeInfinity(NSDictionary? value) { + return _lib._objc_msgSend_171( + _id, + _lib._sel_setTextAttributesForNegativeInfinity_1, + value?._id ?? ffi.nullptr); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSBundle1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + 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 bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSBundle1, _lib._sel_accessInstanceVariablesDirectly1); + set positivePrefix(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setPositivePrefix_1, value?._id ?? ffi.nullptr); } - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSBundle1, _lib._sel_useStoredAccessor1); + 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 NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSBundle1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + set positiveSuffix(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setPositiveSuffix_1, value?._id ?? ffi.nullptr); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSBundle1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + 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 void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSBundle1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + set negativePrefix(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setNegativePrefix_1, value?._id ?? ffi.nullptr); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSBundle1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_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 NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSBundle1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + set negativeSuffix(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setNegativeSuffix_1, value?._id ?? ffi.nullptr); } -} -class NSAttributedString extends NSObject { - NSAttributedString._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + 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); + } - /// 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); + set currencyCode(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setCurrencyCode_1, value?._id ?? ffi.nullptr); } - /// Returns a [NSAttributedString] that wraps the given raw object pointer. - static NSAttributedString castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSAttributedString._(other, lib, retain: retain, release: release); + 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 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); + set currencySymbol(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setCurrencySymbol_1, value?._id ?? ffi.nullptr); } - NSString? get string { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_string1); + NSString? get internationalCurrencySymbol { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_internationalCurrencySymbol1); 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_656( - _id, _lib._sel_attributesAtIndex_effectiveRange_1, location, range); - return NSDictionary._(_ret, _lib, retain: true, release: true); + set internationalCurrencySymbol(NSString? value) { + return _lib._objc_msgSend_512(_id, + _lib._sel_setInternationalCurrencySymbol_1, value?._id ?? ffi.nullptr); } - int get length { - return _lib._objc_msgSend_10(_id, _lib._sel_length1); + NSString? get percentSymbol { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_percentSymbol1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSObject attribute_atIndex_effectiveRange_( - NSString attrName, int location, ffi.Pointer<_NSRange> range) { - final _ret = _lib._objc_msgSend_657( - _id, - _lib._sel_attribute_atIndex_effectiveRange_1, - attrName._id, - location, - range); - return NSObject._(_ret, _lib, retain: true, release: true); + set percentSymbol(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setPercentSymbol_1, value?._id ?? ffi.nullptr); } - NSAttributedString attributedSubstringFromRange_(_NSRange range) { - final _ret = _lib._objc_msgSend_658( - _id, _lib._sel_attributedSubstringFromRange_1, range); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + NSString? get perMillSymbol { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_perMillSymbol1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSDictionary attributesAtIndex_longestEffectiveRange_inRange_( - int location, ffi.Pointer<_NSRange> range, _NSRange rangeLimit) { - final _ret = _lib._objc_msgSend_659( - _id, - _lib._sel_attributesAtIndex_longestEffectiveRange_inRange_1, - location, - range, - rangeLimit); - return NSDictionary._(_ret, _lib, retain: true, release: true); + set perMillSymbol(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setPerMillSymbol_1, value?._id ?? ffi.nullptr); } - NSObject attribute_atIndex_longestEffectiveRange_inRange_(NSString attrName, - int location, ffi.Pointer<_NSRange> range, _NSRange rangeLimit) { - final _ret = _lib._objc_msgSend_660( - _id, - _lib._sel_attribute_atIndex_longestEffectiveRange_inRange_1, - attrName._id, - location, - range, - rangeLimit); - return NSObject._(_ret, _lib, retain: true, release: true); + 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); } - bool isEqualToAttributedString_(NSAttributedString? other) { - return _lib._objc_msgSend_661( - _id, _lib._sel_isEqualToAttributedString_1, other?._id ?? ffi.nullptr); + set minusSign(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setMinusSign_1, value?._id ?? ffi.nullptr); } - 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); + NSString? get plusSign { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_plusSign1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSAttributedString initWithString_attributes_( - NSString? str, NSDictionary? attrs) { - final _ret = _lib._objc_msgSend_371( - _id, - _lib._sel_initWithString_attributes_1, - str?._id ?? ffi.nullptr, - attrs?._id ?? ffi.nullptr); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + set plusSign(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setPlusSign_1, value?._id ?? ffi.nullptr); + } + + 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); } - NSAttributedString initWithAttributedString_(NSAttributedString? attrStr) { - final _ret = _lib._objc_msgSend_662( - _id, _lib._sel_initWithAttributedString_1, attrStr?._id ?? ffi.nullptr); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + set exponentSymbol(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setExponentSymbol_1, value?._id ?? ffi.nullptr); } - void enumerateAttributesInRange_options_usingBlock_(_NSRange enumerationRange, - int opts, ObjCBlock_ffiVoid_NSDictionary_NSRange_bool block) { - _lib._objc_msgSend_663( - _id, - _lib._sel_enumerateAttributesInRange_options_usingBlock_1, - enumerationRange, - opts, - block._id); + int get groupingSize { + return _lib._objc_msgSend_10(_id, _lib._sel_groupingSize1); } - void enumerateAttribute_inRange_options_usingBlock_( - NSString attrName, - _NSRange enumerationRange, - int opts, - ObjCBlock_ffiVoid_ObjCObject_NSRange_bool block) { - _lib._objc_msgSend_664( - _id, - _lib._sel_enumerateAttribute_inRange_options_usingBlock_1, - attrName._id, - enumerationRange, - opts, - block._id); + set groupingSize(int value) { + return _lib._objc_msgSend_486(_id, _lib._sel_setGroupingSize_1, value); } - NSAttributedString initWithContentsOfMarkdownFileAtURL_options_baseURL_error_( - NSURL? markdownFile, - NSAttributedStringMarkdownParsingOptions? options, - NSURL? baseURL, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_669( - _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 secondaryGroupingSize { + return _lib._objc_msgSend_10(_id, _lib._sel_secondaryGroupingSize1); } - NSAttributedString initWithMarkdown_options_baseURL_error_( - NSData? markdown, - NSAttributedStringMarkdownParsingOptions? options, - NSURL? baseURL, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_670( - _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); + set secondaryGroupingSize(int value) { + return _lib._objc_msgSend_486( + _id, _lib._sel_setSecondaryGroupingSize_1, value); } - NSAttributedString initWithMarkdownString_options_baseURL_error_( - NSString? markdownString, - NSAttributedStringMarkdownParsingOptions? options, - NSURL? baseURL, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_671( - _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); + NSNumber? get multiplier { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_multiplier1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } - NSAttributedString initWithFormat_options_locale_( - NSAttributedString? format, int options, NSLocale? locale) { - final _ret = _lib._objc_msgSend_672( - _id, - _lib._sel_initWithFormat_options_locale_1, - format?._id ?? ffi.nullptr, - options, - locale?._id ?? ffi.nullptr); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + set multiplier(NSNumber? value) { + return _lib._objc_msgSend_623( + _id, _lib._sel_setMultiplier_1, value?._id ?? ffi.nullptr); } - NSAttributedString initWithFormat_options_locale_arguments_( - NSAttributedString? format, - int options, - NSLocale? locale, - ffi.Pointer<__va_list_tag> arguments) { - final _ret = _lib._objc_msgSend_673( - _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); + int get formatWidth { + return _lib._objc_msgSend_10(_id, _lib._sel_formatWidth1); } - static NSAttributedString localizedAttributedStringWithFormat_( - SentryCocoa _lib, NSAttributedString? format) { - final _ret = _lib._objc_msgSend_662( - _lib._class_NSAttributedString1, - _lib._sel_localizedAttributedStringWithFormat_1, - format?._id ?? ffi.nullptr); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + set formatWidth(int value) { + return _lib._objc_msgSend_486(_id, _lib._sel_setFormatWidth_1, value); } - static NSAttributedString localizedAttributedStringWithFormat_options_( - SentryCocoa _lib, NSAttributedString? format, int options) { - final _ret = _lib._objc_msgSend_674( - _lib._class_NSAttributedString1, - _lib._sel_localizedAttributedStringWithFormat_options_1, - format?._id ?? ffi.nullptr, - options); - return NSAttributedString._(_ret, _lib, retain: true, 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); } - NSAttributedString initWithFormat_options_locale_context_( - NSAttributedString? format, - int options, - NSLocale? locale, - NSDictionary? context) { - final _ret = _lib._objc_msgSend_675( - _id, - _lib._sel_initWithFormat_options_locale_context_1, - format?._id ?? ffi.nullptr, - options, - locale?._id ?? ffi.nullptr, - context?._id ?? ffi.nullptr); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + set paddingCharacter(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setPaddingCharacter_1, value?._id ?? ffi.nullptr); } - 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_676( - _id, - _lib._sel_initWithFormat_options_locale_context_arguments_1, - format?._id ?? ffi.nullptr, - options, - locale?._id ?? ffi.nullptr, - context?._id ?? ffi.nullptr, - arguments); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + int get paddingPosition { + return _lib._objc_msgSend_748(_id, _lib._sel_paddingPosition1); } - static NSAttributedString localizedAttributedStringWithFormat_context_( - SentryCocoa _lib, NSAttributedString? format, NSDictionary? context) { - final _ret = _lib._objc_msgSend_677( - _lib._class_NSAttributedString1, - _lib._sel_localizedAttributedStringWithFormat_context_1, - format?._id ?? ffi.nullptr, - context?._id ?? ffi.nullptr); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + set paddingPosition(int value) { + return _lib._objc_msgSend_749(_id, _lib._sel_setPaddingPosition_1, value); } - static NSAttributedString - localizedAttributedStringWithFormat_options_context_(SentryCocoa _lib, - NSAttributedString? format, int options, NSDictionary? context) { - final _ret = _lib._objc_msgSend_678( - _lib._class_NSAttributedString1, - _lib._sel_localizedAttributedStringWithFormat_options_context_1, - format?._id ?? ffi.nullptr, - options, - context?._id ?? ffi.nullptr); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + int get roundingMode { + return _lib._objc_msgSend_750(_id, _lib._sel_roundingMode1); } - NSAttributedString attributedStringByInflectingString() { - final _ret = _lib._objc_msgSend_679( - _id, _lib._sel_attributedStringByInflectingString1); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + set roundingMode(int value) { + return _lib._objc_msgSend_751(_id, _lib._sel_setRoundingMode_1, value); } - @override - NSAttributedString init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + NSNumber? get roundingIncrement { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_roundingIncrement1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } - static NSAttributedString new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSAttributedString1, _lib._sel_new1); - return NSAttributedString._(_ret, _lib, retain: false, release: true); + set roundingIncrement(NSNumber? value) { + return _lib._objc_msgSend_623( + _id, _lib._sel_setRoundingIncrement_1, value?._id ?? ffi.nullptr); } - static NSAttributedString allocWithZone_( - SentryCocoa _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); + int get minimumIntegerDigits { + return _lib._objc_msgSend_10(_id, _lib._sel_minimumIntegerDigits1); } - static NSAttributedString alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSAttributedString1, _lib._sel_alloc1); - return NSAttributedString._(_ret, _lib, retain: false, release: true); + set minimumIntegerDigits(int value) { + return _lib._objc_msgSend_486( + _id, _lib._sel_setMinimumIntegerDigits_1, value); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _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); + int get maximumIntegerDigits { + return _lib._objc_msgSend_10(_id, _lib._sel_maximumIntegerDigits1); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSAttributedString1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + set maximumIntegerDigits(int value) { + return _lib._objc_msgSend_486( + _id, _lib._sel_setMaximumIntegerDigits_1, value); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSAttributedString1, - _lib._sel_accessInstanceVariablesDirectly1); + int get minimumFractionDigits { + return _lib._objc_msgSend_10(_id, _lib._sel_minimumFractionDigits1); } - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSAttributedString1, _lib._sel_useStoredAccessor1); + set minimumFractionDigits(int value) { + return _lib._objc_msgSend_486( + _id, _lib._sel_setMinimumFractionDigits_1, value); } - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSAttributedString1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + int get maximumFractionDigits { + return _lib._objc_msgSend_10(_id, _lib._sel_maximumFractionDigits1); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSAttributedString1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + set maximumFractionDigits(int value) { + return _lib._objc_msgSend_486( + _id, _lib._sel_setMaximumFractionDigits_1, value); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSAttributedString1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + NSNumber? get minimum { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_minimum1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSAttributedString1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + set minimum(NSNumber? value) { + return _lib._objc_msgSend_623( + _id, _lib._sel_setMinimum_1, value?._id ?? ffi.nullptr); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSAttributedString1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSNumber? get maximum { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_maximum1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } -} - -abstract class NSAttributedStringEnumerationOptions { - static const int NSAttributedStringEnumerationReverse = 2; - static const int - NSAttributedStringEnumerationLongestEffectiveRangeNotRequired = 1048576; -} -void _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_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); -} - -final _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureRegistry = - {}; -int _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureRegistryIndex = 0; -ffi.Pointer - _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_registerClosure(Function fn) { - final id = - ++_ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2) { - return (_ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureRegistry[ - block.ref.target.address] - as void Function(ffi.Pointer, _NSRange, - ffi.Pointer))(arg0, arg1, arg2); -} + set maximum(NSNumber? value) { + return _lib._objc_msgSend_623( + _id, _lib._sel_setMaximum_1, value?._id ?? ffi.nullptr); + } -class ObjCBlock_ffiVoid_NSDictionary_NSRange_bool extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSDictionary_NSRange_bool._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); + NSString? get currencyGroupingSeparator { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_currencyGroupingSeparator1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSDictionary_NSRange_bool.fromFunctionPointer( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + set currencyGroupingSeparator(NSString? value) { + return _lib._objc_msgSend_512(_id, _lib._sel_setCurrencyGroupingSeparator_1, + value?._id ?? ffi.nullptr); + } - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSDictionary_NSRange_bool.fromFunction( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_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); + bool get lenient { + return _lib._objc_msgSend_12(_id, _lib._sel_isLenient1); } -} -void _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_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 lenient(bool value) { + return _lib._objc_msgSend_495(_id, _lib._sel_setLenient_1, value); + } -final _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureRegistry = - {}; -int _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureRegistryIndex = 0; -ffi.Pointer - _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_registerClosure(Function fn) { - final id = ++_ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureRegistryIndex; - _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + bool get usesSignificantDigits { + return _lib._objc_msgSend_12(_id, _lib._sel_usesSignificantDigits1); + } -void _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2) { - return (_ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureRegistry[ - block.ref.target.address] - as void Function(ffi.Pointer, _NSRange, - ffi.Pointer))(arg0, arg1, arg2); -} + set usesSignificantDigits(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setUsesSignificantDigits_1, value); + } -class ObjCBlock_ffiVoid_ObjCObject_NSRange_bool extends _ObjCBlockBase { - ObjCBlock_ffiVoid_ObjCObject_NSRange_bool._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); + int get minimumSignificantDigits { + return _lib._objc_msgSend_10(_id, _lib._sel_minimumSignificantDigits1); + } - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_ObjCObject_NSRange_bool.fromFunctionPointer( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + set minimumSignificantDigits(int value) { + return _lib._objc_msgSend_486( + _id, _lib._sel_setMinimumSignificantDigits_1, value); + } - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_ObjCObject_NSRange_bool.fromFunction( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_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 maximumSignificantDigits { + return _lib._objc_msgSend_10(_id, _lib._sel_maximumSignificantDigits1); + } + + set maximumSignificantDigits(int value) { + return _lib._objc_msgSend_486( + _id, _lib._sel_setMaximumSignificantDigits_1, value); } -} -class NSAttributedStringMarkdownParsingOptions extends NSObject { - NSAttributedStringMarkdownParsingOptions._( - ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + bool get partialStringValidationEnabled { + return _lib._objc_msgSend_12( + _id, _lib._sel_isPartialStringValidationEnabled1); + } - /// 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); + set partialStringValidationEnabled(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setPartialStringValidationEnabled_1, value); } - /// Returns a [NSAttributedStringMarkdownParsingOptions] that wraps the given raw object pointer. - static NSAttributedStringMarkdownParsingOptions castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSAttributedStringMarkdownParsingOptions._(other, lib, - retain: retain, release: release); + bool get hasThousandSeparators { + return _lib._objc_msgSend_12(_id, _lib._sel_hasThousandSeparators1); } - /// 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); + set hasThousandSeparators(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setHasThousandSeparators_1, value); } - @override - NSAttributedStringMarkdownParsingOptions init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSAttributedStringMarkdownParsingOptions._(_ret, _lib, - retain: true, release: true); + NSString? get thousandSeparator { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_thousandSeparator1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - bool get allowsExtendedAttributes { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsExtendedAttributes1); + set thousandSeparator(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setThousandSeparator_1, value?._id ?? ffi.nullptr); } - set allowsExtendedAttributes(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setAllowsExtendedAttributes_1, value); + bool get localizesFormat { + return _lib._objc_msgSend_12(_id, _lib._sel_localizesFormat1); } - int get interpretedSyntax { - return _lib._objc_msgSend_665(_id, _lib._sel_interpretedSyntax1); + set localizesFormat(bool value) { + return _lib._objc_msgSend_495(_id, _lib._sel_setLocalizesFormat_1, value); } - set interpretedSyntax(int value) { - return _lib._objc_msgSend_666(_id, _lib._sel_setInterpretedSyntax_1, value); + NSString? get format { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_format1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - int get failurePolicy { - return _lib._objc_msgSend_667(_id, _lib._sel_failurePolicy1); + set format(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setFormat_1, value?._id ?? ffi.nullptr); } - set failurePolicy(int value) { - return _lib._objc_msgSend_668(_id, _lib._sel_setFailurePolicy_1, value); + NSAttributedString? get attributedStringForZero { + final _ret = + _lib._objc_msgSend_682(_id, _lib._sel_attributedStringForZero1); + return _ret.address == 0 + ? null + : NSAttributedString._(_ret, _lib, retain: true, release: true); } - NSString? get languageCode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_languageCode1); + set attributedStringForZero(NSAttributedString? value) { + return _lib._objc_msgSend_752( + _id, _lib._sel_setAttributedStringForZero_1, value?._id ?? ffi.nullptr); + } + + NSAttributedString? get attributedStringForNil { + final _ret = _lib._objc_msgSend_682(_id, _lib._sel_attributedStringForNil1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSAttributedString._(_ret, _lib, retain: true, release: true); } - set languageCode(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setLanguageCode_1, value?._id ?? ffi.nullptr); + set attributedStringForNil(NSAttributedString? value) { + return _lib._objc_msgSend_752( + _id, _lib._sel_setAttributedStringForNil_1, value?._id ?? ffi.nullptr); } - bool get appliesSourcePositionAttributes { - return _lib._objc_msgSend_12( - _id, _lib._sel_appliesSourcePositionAttributes1); + NSAttributedString? get attributedStringForNotANumber { + final _ret = + _lib._objc_msgSend_682(_id, _lib._sel_attributedStringForNotANumber1); + return _ret.address == 0 + ? null + : NSAttributedString._(_ret, _lib, retain: true, release: true); } - set appliesSourcePositionAttributes(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setAppliesSourcePositionAttributes_1, value); + set attributedStringForNotANumber(NSAttributedString? value) { + return _lib._objc_msgSend_752( + _id, + _lib._sel_setAttributedStringForNotANumber_1, + value?._id ?? ffi.nullptr); } - static NSAttributedStringMarkdownParsingOptions new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSAttributedStringMarkdownParsingOptions1, _lib._sel_new1); - return NSAttributedStringMarkdownParsingOptions._(_ret, _lib, - retain: false, release: true); + NSDecimalNumberHandler? get roundingBehavior { + final _ret = _lib._objc_msgSend_753(_id, _lib._sel_roundingBehavior1); + return _ret.address == 0 + ? null + : NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); } - static NSAttributedStringMarkdownParsingOptions allocWithZone_( + set roundingBehavior(NSDecimalNumberHandler? value) { + return _lib._objc_msgSend_755( + _id, _lib._sel_setRoundingBehavior_1, value?._id ?? ffi.nullptr); + } + + @override + NSNumberFormatter init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSNumberFormatter._(_ret, _lib, retain: true, release: true); + } + + static NSNumberFormatter new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSNumberFormatter1, _lib._sel_new1); + return NSNumberFormatter._(_ret, _lib, retain: false, release: true); + } + + static NSNumberFormatter allocWithZone_( SentryCocoa _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); + _lib._class_NSNumberFormatter1, _lib._sel_allocWithZone_1, zone); + return NSNumberFormatter._(_ret, _lib, retain: false, release: true); } - static NSAttributedStringMarkdownParsingOptions alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSAttributedStringMarkdownParsingOptions1, - _lib._sel_alloc1); - return NSAttributedStringMarkdownParsingOptions._(_ret, _lib, - retain: false, release: true); + static NSNumberFormatter alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSNumberFormatter1, _lib._sel_alloc1); + return NSNumberFormatter._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -53446,7 +58909,7 @@ class NSAttributedStringMarkdownParsingOptions extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._class_NSNumberFormatter1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -53455,26 +58918,24 @@ class NSAttributedStringMarkdownParsingOptions extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._objc_msgSend_15(_lib._class_NSNumberFormatter1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSAttributedStringMarkdownParsingOptions1, + return _lib._objc_msgSend_12(_lib._class_NSNumberFormatter1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSAttributedStringMarkdownParsingOptions1, - _lib._sel_useStoredAccessor1); + _lib._class_NSNumberFormatter1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._class_NSNumberFormatter1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -53483,7 +58944,7 @@ class NSAttributedStringMarkdownParsingOptions extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._class_NSNumberFormatter1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -53491,353 +58952,421 @@ class NSAttributedStringMarkdownParsingOptions extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._class_NSNumberFormatter1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSAttributedStringMarkdownParsingOptions1, + final _ret = _lib._objc_msgSend_79(_lib._class_NSNumberFormatter1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSAttributedStringMarkdownParsingOptions1, - _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSNumberFormatter1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_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 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 NSAttributedStringMarkdownParsingFailurePolicy { - static const int NSAttributedStringMarkdownParsingFailureReturnError = 0; - static const int - NSAttributedStringMarkdownParsingFailureReturnPartiallyParsedIfPossible = - 1; +abstract class NSNumberFormatterBehavior { + static const int NSNumberFormatterBehaviorDefault = 0; + static const int NSNumberFormatterBehavior10_0 = 1000; + static const int NSNumberFormatterBehavior10_4 = 1040; } -abstract class NSAttributedStringFormattingOptions { - static const int - NSAttributedStringFormattingInsertArgumentAttributesWithoutMerging = 1; - static const int NSAttributedStringFormattingApplyReplacementIndexAttribute = - 2; +abstract class NSNumberFormatterPadPosition { + static const int NSNumberFormatterPadBeforePrefix = 0; + static const int NSNumberFormatterPadAfterPrefix = 1; + static const int NSNumberFormatterPadBeforeSuffix = 2; + static const int NSNumberFormatterPadAfterSuffix = 3; } -class NSMutableAttributedString extends NSAttributedString { - NSMutableAttributedString._(ffi.Pointer id, SentryCocoa lib, +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; +} + +class NSDecimalNumberHandler extends NSObject { + NSDecimalNumberHandler._(ffi.Pointer id, SentryCocoa 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, + /// 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 [NSMutableAttributedString] that wraps the given raw object pointer. - static NSMutableAttributedString castFromPointer( + /// Returns a [NSDecimalNumberHandler] that wraps the given raw object pointer. + static NSDecimalNumberHandler castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSMutableAttributedString._(other, lib, + return NSDecimalNumberHandler._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSMutableAttributedString]. + /// Returns whether [obj] is an instance of [NSDecimalNumberHandler]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMutableAttributedString1); + obj._lib._class_NSDecimalNumberHandler1); } - void replaceCharactersInRange_withString_(_NSRange range, NSString? str) { - _lib._objc_msgSend_638(_id, _lib._sel_replaceCharactersInRange_withString_1, - range, str?._id ?? ffi.nullptr); + static NSDecimalNumberHandler? getDefaultDecimalNumberHandler( + SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_753(_lib._class_NSDecimalNumberHandler1, + _lib._sel_defaultDecimalNumberHandler1); + return _ret.address == 0 + ? null + : NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); } - void setAttributes_range_(NSDictionary? attrs, _NSRange range) { - _lib._objc_msgSend_683( - _id, _lib._sel_setAttributes_range_1, attrs?._id ?? ffi.nullptr, range); + NSDecimalNumberHandler + initWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_( + int roundingMode, + int scale, + bool exact, + bool overflow, + bool underflow, + bool divideByZero) { + final _ret = _lib._objc_msgSend_754( + _id, + _lib._sel_initWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_1, + roundingMode, + scale, + exact, + overflow, + underflow, + divideByZero); + return NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); } - NSMutableString? get mutableString { - final _ret = _lib._objc_msgSend_684(_id, _lib._sel_mutableString1); - return _ret.address == 0 - ? null - : NSMutableString._(_ret, _lib, retain: true, release: true); + static NSDecimalNumberHandler + decimalNumberHandlerWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_( + SentryCocoa _lib, + int roundingMode, + int scale, + bool exact, + bool overflow, + bool underflow, + bool divideByZero) { + final _ret = _lib._objc_msgSend_754( + _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); } - void addAttribute_value_range_( - NSString name, NSObject value, _NSRange range) { - _lib._objc_msgSend_685( - _id, _lib._sel_addAttribute_value_range_1, name._id, value._id, range); + @override + NSDecimalNumberHandler init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); } - void addAttributes_range_(NSDictionary? attrs, _NSRange range) { - _lib._objc_msgSend_683( - _id, _lib._sel_addAttributes_range_1, attrs?._id ?? ffi.nullptr, range); + static NSDecimalNumberHandler new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSDecimalNumberHandler1, _lib._sel_new1); + return NSDecimalNumberHandler._(_ret, _lib, retain: false, release: true); } - void removeAttribute_range_(NSString name, _NSRange range) { - _lib._objc_msgSend_686( - _id, _lib._sel_removeAttribute_range_1, name._id, range); + static NSDecimalNumberHandler allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSDecimalNumberHandler1, _lib._sel_allocWithZone_1, zone); + return NSDecimalNumberHandler._(_ret, _lib, retain: false, release: true); } - void replaceCharactersInRange_withAttributedString_( - _NSRange range, NSAttributedString? attrString) { - _lib._objc_msgSend_687( - _id, - _lib._sel_replaceCharactersInRange_withAttributedString_1, - range, - attrString?._id ?? ffi.nullptr); + static NSDecimalNumberHandler alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSDecimalNumberHandler1, _lib._sel_alloc1); + return NSDecimalNumberHandler._(_ret, _lib, retain: false, release: true); } - void insertAttributedString_atIndex_( - NSAttributedString? attrString, int loc) { - _lib._objc_msgSend_688(_id, _lib._sel_insertAttributedString_atIndex_1, - attrString?._id ?? ffi.nullptr, loc); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSDecimalNumberHandler1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - void appendAttributedString_(NSAttributedString? attrString) { - _lib._objc_msgSend_689(_id, _lib._sel_appendAttributedString_1, - attrString?._id ?? ffi.nullptr); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSDecimalNumberHandler1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - void deleteCharactersInRange_(_NSRange range) { - _lib._objc_msgSend_445(_id, _lib._sel_deleteCharactersInRange_1, range); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_NSDecimalNumberHandler1, + _lib._sel_accessInstanceVariablesDirectly1); } - void setAttributedString_(NSAttributedString? attrString) { - _lib._objc_msgSend_689( - _id, _lib._sel_setAttributedString_1, attrString?._id ?? ffi.nullptr); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSDecimalNumberHandler1, _lib._sel_useStoredAccessor1); } - void beginEditing() { - _lib._objc_msgSend_1(_id, _lib._sel_beginEditing1); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSDecimalNumberHandler1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - void endEditing() { - _lib._objc_msgSend_1(_id, _lib._sel_endEditing1); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSDecimalNumberHandler1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - void appendLocalizedFormat_(NSAttributedString? format) { - _lib._objc_msgSend_689( - _id, _lib._sel_appendLocalizedFormat_1, format?._id ?? ffi.nullptr); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSDecimalNumberHandler1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - @override - NSMutableAttributedString initWithString_(NSString? str) { + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSDecimalNumberHandler1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSDecimalNumberHandler1, + _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSRoundingMode { + static const int NSRoundPlain = 0; + static const int NSRoundDown = 1; + static const int NSRoundUp = 2; + static const int NSRoundBankers = 3; +} + +class NSScanner extends NSObject { + NSScanner._(ffi.Pointer id, SentryCocoa 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); + } + + /// Returns a [NSScanner] that wraps the given raw object pointer. + static NSScanner castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSScanner._(other, lib, retain: retain, release: release); + } + + /// 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); + } + + 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); + } + + int get scanLocation { + return _lib._objc_msgSend_10(_id, _lib._sel_scanLocation1); + } + + set scanLocation(int value) { + return _lib._objc_msgSend_486(_id, _lib._sel_setScanLocation_1, value); + } + + NSCharacterSet? get charactersToBeSkipped { + final _ret = _lib._objc_msgSend_174(_id, _lib._sel_charactersToBeSkipped1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + set charactersToBeSkipped(NSCharacterSet? value) { + return _lib._objc_msgSend_756( + _id, _lib._sel_setCharactersToBeSkipped_1, value?._id ?? ffi.nullptr); + } + + bool get caseSensitive { + return _lib._objc_msgSend_12(_id, _lib._sel_caseSensitive1); + } + + set caseSensitive(bool value) { + return _lib._objc_msgSend_495(_id, _lib._sel_setCaseSensitive_1, value); + } + + NSObject get locale { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_locale1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + set locale(NSObject value) { + return _lib._objc_msgSend_389(_id, _lib._sel_setLocale_1, value._id); + } + + NSScanner initWithString_(NSString? string) { final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, str?._id ?? ffi.nullptr); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + _id, _lib._sel_initWithString_1, string?._id ?? ffi.nullptr); + return NSScanner._(_ret, _lib, retain: true, release: true); } - @override - NSMutableAttributedString initWithString_attributes_( - NSString? str, NSDictionary? attrs) { - final _ret = _lib._objc_msgSend_371( - _id, - _lib._sel_initWithString_attributes_1, - str?._id ?? ffi.nullptr, - attrs?._id ?? ffi.nullptr); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + bool scanInt_(ffi.Pointer result) { + return _lib._objc_msgSend_757(_id, _lib._sel_scanInt_1, result); } - @override - NSMutableAttributedString initWithAttributedString_( - NSAttributedString? attrStr) { - final _ret = _lib._objc_msgSend_662( - _id, _lib._sel_initWithAttributedString_1, attrStr?._id ?? ffi.nullptr); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + bool scanInteger_(ffi.Pointer result) { + return _lib._objc_msgSend_758(_id, _lib._sel_scanInteger_1, result); } - @override - NSMutableAttributedString - initWithContentsOfMarkdownFileAtURL_options_baseURL_error_( - NSURL? markdownFile, - NSAttributedStringMarkdownParsingOptions? options, - NSURL? baseURL, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_669( - _id, - _lib._sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_1, - markdownFile?._id ?? ffi.nullptr, - options?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr, - error); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + bool scanLongLong_(ffi.Pointer result) { + return _lib._objc_msgSend_759(_id, _lib._sel_scanLongLong_1, result); } - @override - NSMutableAttributedString initWithMarkdown_options_baseURL_error_( - NSData? markdown, - NSAttributedStringMarkdownParsingOptions? options, - NSURL? baseURL, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_670( - _id, - _lib._sel_initWithMarkdown_options_baseURL_error_1, - markdown?._id ?? ffi.nullptr, - options?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr, - error); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + bool scanUnsignedLongLong_(ffi.Pointer result) { + return _lib._objc_msgSend_760( + _id, _lib._sel_scanUnsignedLongLong_1, result); + } + + bool scanFloat_(ffi.Pointer result) { + return _lib._objc_msgSend_761(_id, _lib._sel_scanFloat_1, result); + } + + bool scanDouble_(ffi.Pointer result) { + return _lib._objc_msgSend_762(_id, _lib._sel_scanDouble_1, result); } - @override - NSMutableAttributedString initWithMarkdownString_options_baseURL_error_( - NSString? markdownString, - NSAttributedStringMarkdownParsingOptions? options, - NSURL? baseURL, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_671( - _id, - _lib._sel_initWithMarkdownString_options_baseURL_error_1, - markdownString?._id ?? ffi.nullptr, - options?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr, - error); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + bool scanHexInt_(ffi.Pointer result) { + return _lib._objc_msgSend_763(_id, _lib._sel_scanHexInt_1, result); } - @override - NSMutableAttributedString initWithFormat_options_locale_( - NSAttributedString? format, int options, NSLocale? locale) { - final _ret = _lib._objc_msgSend_672( - _id, - _lib._sel_initWithFormat_options_locale_1, - format?._id ?? ffi.nullptr, - options, - locale?._id ?? ffi.nullptr); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + bool scanHexLongLong_(ffi.Pointer result) { + return _lib._objc_msgSend_760(_id, _lib._sel_scanHexLongLong_1, result); } - @override - NSMutableAttributedString initWithFormat_options_locale_arguments_( - NSAttributedString? format, - int options, - NSLocale? locale, - ffi.Pointer<__va_list_tag> arguments) { - final _ret = _lib._objc_msgSend_673( - _id, - _lib._sel_initWithFormat_options_locale_arguments_1, - format?._id ?? ffi.nullptr, - options, - locale?._id ?? ffi.nullptr, - arguments); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + bool scanHexFloat_(ffi.Pointer result) { + return _lib._objc_msgSend_761(_id, _lib._sel_scanHexFloat_1, result); } - static NSMutableAttributedString localizedAttributedStringWithFormat_( - SentryCocoa _lib, NSAttributedString? format) { - final _ret = _lib._objc_msgSend_662( - _lib._class_NSMutableAttributedString1, - _lib._sel_localizedAttributedStringWithFormat_1, - format?._id ?? ffi.nullptr); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + bool scanHexDouble_(ffi.Pointer result) { + return _lib._objc_msgSend_762(_id, _lib._sel_scanHexDouble_1, result); } - static NSMutableAttributedString localizedAttributedStringWithFormat_options_( - SentryCocoa _lib, NSAttributedString? format, int options) { - final _ret = _lib._objc_msgSend_674( - _lib._class_NSMutableAttributedString1, - _lib._sel_localizedAttributedStringWithFormat_options_1, - format?._id ?? ffi.nullptr, - options); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + bool scanString_intoString_( + NSString? string, ffi.Pointer> result) { + return _lib._objc_msgSend_764(_id, _lib._sel_scanString_intoString_1, + string?._id ?? ffi.nullptr, result); } - @override - NSMutableAttributedString initWithFormat_options_locale_context_( - NSAttributedString? format, - int options, - NSLocale? locale, - NSDictionary? context) { - final _ret = _lib._objc_msgSend_675( + bool scanCharactersFromSet_intoString_( + NSCharacterSet? set, ffi.Pointer> result) { + return _lib._objc_msgSend_765( _id, - _lib._sel_initWithFormat_options_locale_context_1, - format?._id ?? ffi.nullptr, - options, - locale?._id ?? ffi.nullptr, - context?._id ?? ffi.nullptr); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + _lib._sel_scanCharactersFromSet_intoString_1, + set?._id ?? ffi.nullptr, + result); } - @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_676( + bool scanUpToString_intoString_( + NSString? string, ffi.Pointer> result) { + return _lib._objc_msgSend_764(_id, _lib._sel_scanUpToString_intoString_1, + string?._id ?? ffi.nullptr, result); + } + + bool scanUpToCharactersFromSet_intoString_( + NSCharacterSet? set, ffi.Pointer> result) { + return _lib._objc_msgSend_765( _id, - _lib._sel_initWithFormat_options_locale_context_arguments_1, - format?._id ?? ffi.nullptr, - options, - locale?._id ?? ffi.nullptr, - context?._id ?? ffi.nullptr, - arguments); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + _lib._sel_scanUpToCharactersFromSet_intoString_1, + set?._id ?? ffi.nullptr, + result); } - static NSMutableAttributedString localizedAttributedStringWithFormat_context_( - SentryCocoa _lib, NSAttributedString? format, NSDictionary? context) { - final _ret = _lib._objc_msgSend_677( - _lib._class_NSMutableAttributedString1, - _lib._sel_localizedAttributedStringWithFormat_context_1, - format?._id ?? ffi.nullptr, - context?._id ?? ffi.nullptr); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + bool get atEnd { + return _lib._objc_msgSend_12(_id, _lib._sel_isAtEnd1); } - static NSMutableAttributedString - localizedAttributedStringWithFormat_options_context_(SentryCocoa _lib, - NSAttributedString? format, int options, NSDictionary? context) { - final _ret = _lib._objc_msgSend_678( - _lib._class_NSMutableAttributedString1, - _lib._sel_localizedAttributedStringWithFormat_options_context_1, - format?._id ?? ffi.nullptr, - options, - context?._id ?? ffi.nullptr); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + static NSScanner scannerWithString_(SentryCocoa _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 NSObject localizedScannerWithString_( + SentryCocoa _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); + } + + bool scanDecimal_(ffi.Pointer dcm) { + return _lib._objc_msgSend_766(_id, _lib._sel_scanDecimal_1, dcm); } @override - NSMutableAttributedString init() { + NSScanner init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + return NSScanner._(_ret, _lib, retain: true, release: true); } - static NSMutableAttributedString new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableAttributedString1, _lib._sel_new1); - return NSMutableAttributedString._(_ret, _lib, - retain: false, release: true); + static NSScanner new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSScanner1, _lib._sel_new1); + return NSScanner._(_ret, _lib, retain: false, release: true); } - static NSMutableAttributedString allocWithZone_( - SentryCocoa _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 NSScanner allocWithZone_(SentryCocoa _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 NSMutableAttributedString alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableAttributedString1, _lib._sel_alloc1); - return NSMutableAttributedString._(_ret, _lib, - retain: false, release: true); + static NSScanner alloc(SentryCocoa _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_( @@ -53846,7 +59375,7 @@ class NSMutableAttributedString extends NSAttributedString { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSMutableAttributedString1, + _lib._class_NSScanner1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -53855,24 +59384,24 @@ class NSMutableAttributedString extends NSAttributedString { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSMutableAttributedString1, + _lib._objc_msgSend_15(_lib._class_NSScanner1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSMutableAttributedString1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSScanner1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSMutableAttributedString1, _lib._sel_useStoredAccessor1); + _lib._class_NSScanner1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableAttributedString1, + _lib._class_NSScanner1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -53881,7 +59410,7 @@ class NSMutableAttributedString extends NSAttributedString { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSMutableAttributedString1, + _lib._class_NSScanner1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -53889,546 +59418,531 @@ class NSMutableAttributedString extends NSAttributedString { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSMutableAttributedString1, + _lib._class_NSScanner1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSMutableAttributedString1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79( + _lib._class_NSScanner1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSMutableAttributedString1, - _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSScanner1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSDateFormatter extends NSFormatter { - NSDateFormatter._(ffi.Pointer id, SentryCocoa lib, +final class NSDecimal extends ffi.Opaque {} + +class NSException extends NSObject { + NSException._(ffi.Pointer id, SentryCocoa 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, - 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 [NSDateFormatter] that wraps the given raw object pointer. - static NSDateFormatter castFromPointer( + /// Returns a [NSException] that wraps the given raw object pointer. + static NSException castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSDateFormatter._(other, lib, retain: retain, release: release); + return NSException._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSDateFormatter]. + /// 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_NSDateFormatter1); - } - - int get formattingContext { - return _lib._objc_msgSend_694(_id, _lib._sel_formattingContext1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSException1); } - set formattingContext(int value) { - return _lib._objc_msgSend_695(_id, _lib._sel_setFormattingContext_1, value); + static NSException exceptionWithName_reason_userInfo_(SentryCocoa _lib, + NSString name, NSString? reason, NSDictionary? userInfo) { + final _ret = _lib._objc_msgSend_767( + _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); } - bool getObjectValue_forString_range_error_( - ffi.Pointer> obj, - NSString? string, - ffi.Pointer<_NSRange> rangep, - ffi.Pointer> error) { - return _lib._objc_msgSend_696( + NSException initWithName_reason_userInfo_( + NSString aName, NSString? aReason, NSDictionary? aUserInfo) { + final _ret = _lib._objc_msgSend_586( _id, - _lib._sel_getObjectValue_forString_range_error_1, - obj, - string?._id ?? ffi.nullptr, - rangep, - error); - } - - NSString stringFromDate_(NSDate? date) { - final _ret = _lib._objc_msgSend_167( - _id, _lib._sel_stringFromDate_1, date?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSDate dateFromString_(NSString? string) { - final _ret = _lib._objc_msgSend_528( - _id, _lib._sel_dateFromString_1, string?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); - } - - static NSString localizedStringFromDate_dateStyle_timeStyle_( - SentryCocoa _lib, NSDate? date, int dstyle, int tstyle) { - final _ret = _lib._objc_msgSend_697( - _lib._class_NSDateFormatter1, - _lib._sel_localizedStringFromDate_dateStyle_timeStyle_1, - date?._id ?? ffi.nullptr, - dstyle, - tstyle); - return NSString._(_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); } - static NSString dateFormatFromTemplate_options_locale_( - SentryCocoa _lib, NSString? tmplate, int opts, NSLocale? locale) { - final _ret = _lib._objc_msgSend_698( - _lib._class_NSDateFormatter1, - _lib._sel_dateFormatFromTemplate_options_locale_1, - tmplate?._id ?? ffi.nullptr, - opts, - locale?._id ?? ffi.nullptr); + NSString get name { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); return NSString._(_ret, _lib, retain: true, release: true); } - static int getDefaultFormatterBehavior(SentryCocoa _lib) { - return _lib._objc_msgSend_699( - _lib._class_NSDateFormatter1, _lib._sel_defaultFormatterBehavior1); - } - - static void setDefaultFormatterBehavior(SentryCocoa _lib, int value) { - return _lib._objc_msgSend_700(_lib._class_NSDateFormatter1, - _lib._sel_setDefaultFormatterBehavior_1, value); - } - - void setLocalizedDateFormatFromTemplate_(NSString? dateFormatTemplate) { - _lib._objc_msgSend_192(_id, _lib._sel_setLocalizedDateFormatFromTemplate_1, - dateFormatTemplate?._id ?? ffi.nullptr); - } - - NSString? get dateFormat { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_dateFormat1); + NSString? get reason { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_reason1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - set dateFormat(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setDateFormat_1, value?._id ?? ffi.nullptr); + NSDictionary? get userInfo { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_userInfo1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - int get dateStyle { - return _lib._objc_msgSend_701(_id, _lib._sel_dateStyle1); + NSArray? get callStackReturnAddresses { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_callStackReturnAddresses1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - set dateStyle(int value) { - return _lib._objc_msgSend_702(_id, _lib._sel_setDateStyle_1, value); + NSArray? get callStackSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_callStackSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - int get timeStyle { - return _lib._objc_msgSend_701(_id, _lib._sel_timeStyle1); + void raise() { + _lib._objc_msgSend_1(_id, _lib._sel_raise1); } - set timeStyle(int value) { - return _lib._objc_msgSend_702(_id, _lib._sel_setTimeStyle_1, value); + static void raise_format_(SentryCocoa _lib, NSString name, NSString? format) { + _lib._objc_msgSend_518(_lib._class_NSException1, _lib._sel_raise_format_1, + name._id, format?._id ?? ffi.nullptr); } - NSLocale? get locale { - final _ret = _lib._objc_msgSend_182(_id, _lib._sel_locale1); - return _ret.address == 0 - ? null - : NSLocale._(_ret, _lib, retain: true, release: true); + static void raise_format_arguments_(SentryCocoa _lib, NSString name, + NSString? format, ffi.Pointer<__va_list_tag> argList) { + _lib._objc_msgSend_768( + _lib._class_NSException1, + _lib._sel_raise_format_arguments_1, + name._id, + format?._id ?? ffi.nullptr, + argList); } - set locale(NSLocale? value) { - return _lib._objc_msgSend_703( - _id, _lib._sel_setLocale_1, value?._id ?? ffi.nullptr); + @override + NSException init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSException._(_ret, _lib, retain: true, release: true); } - bool get generatesCalendarDates { - return _lib._objc_msgSend_12(_id, _lib._sel_generatesCalendarDates1); + static NSException new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSException1, _lib._sel_new1); + return NSException._(_ret, _lib, retain: false, release: true); } - set generatesCalendarDates(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setGeneratesCalendarDates_1, value); + static NSException allocWithZone_( + SentryCocoa _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); } - int get formatterBehavior { - return _lib._objc_msgSend_699(_id, _lib._sel_formatterBehavior1); + static NSException alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSException1, _lib._sel_alloc1); + return NSException._(_ret, _lib, retain: false, release: true); } - set formatterBehavior(int value) { - return _lib._objc_msgSend_700(_id, _lib._sel_setFormatterBehavior_1, value); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSException1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - NSTimeZone? get timeZone { - final _ret = _lib._objc_msgSend_168(_id, _lib._sel_timeZone1); - return _ret.address == 0 - ? null - : NSTimeZone._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSException1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - set timeZone(NSTimeZone? value) { - return _lib._objc_msgSend_169( - _id, _lib._sel_setTimeZone_1, value?._id ?? ffi.nullptr); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSException1, _lib._sel_accessInstanceVariablesDirectly1); } - NSCalendar? get calendar { - final _ret = _lib._objc_msgSend_704(_id, _lib._sel_calendar1); - return _ret.address == 0 - ? null - : NSCalendar._(_ret, _lib, retain: true, release: true); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSException1, _lib._sel_useStoredAccessor1); } - set calendar(NSCalendar? value) { - return _lib._objc_msgSend_710( - _id, _lib._sel_setCalendar_1, value?._id ?? ffi.nullptr); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSException1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - bool get lenient { - return _lib._objc_msgSend_12(_id, _lib._sel_isLenient1); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSException1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - set lenient(bool value) { - return _lib._objc_msgSend_492(_id, _lib._sel_setLenient_1, value); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSException1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - NSDate? get twoDigitStartDate { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_twoDigitStartDate1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSException1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set twoDigitStartDate(NSDate? value) { - return _lib._objc_msgSend_525( - _id, _lib._sel_setTwoDigitStartDate_1, value?._id ?? ffi.nullptr); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSException1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - NSDate? get defaultDate { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_defaultDate1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); - } +class NSFileHandle extends NSObject { + NSFileHandle._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - set defaultDate(NSDate? value) { - return _lib._objc_msgSend_525( - _id, _lib._sel_setDefaultDate_1, value?._id ?? ffi.nullptr); + /// 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); } - NSArray? get eraSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_eraSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + /// Returns a [NSFileHandle] that wraps the given raw object pointer. + static NSFileHandle castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSFileHandle._(other, lib, retain: retain, release: release); } - set eraSymbols(NSArray? value) { - return _lib._objc_msgSend_735( - _id, _lib._sel_setEraSymbols_1, value?._id ?? ffi.nullptr); + /// 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); } - NSArray? get monthSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_monthSymbols1); + NSData? get availableData { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_availableData1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSData._(_ret, _lib, retain: true, release: true); } - set monthSymbols(NSArray? value) { - return _lib._objc_msgSend_735( - _id, _lib._sel_setMonthSymbols_1, value?._id ?? ffi.nullptr); + NSFileHandle initWithFileDescriptor_closeOnDealloc_(int fd, bool closeopt) { + final _ret = _lib._objc_msgSend_769( + _id, _lib._sel_initWithFileDescriptor_closeOnDealloc_1, fd, closeopt); + return NSFileHandle._(_ret, _lib, retain: true, release: true); } - NSArray? get shortMonthSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + 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); } - set shortMonthSymbols(NSArray? value) { - return _lib._objc_msgSend_735( - _id, _lib._sel_setShortMonthSymbols_1, value?._id ?? ffi.nullptr); + NSData readDataToEndOfFileAndReturnError_( + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_770( + _id, _lib._sel_readDataToEndOfFileAndReturnError_1, error); + return NSData._(_ret, _lib, retain: true, release: true); } - NSArray? get weekdaySymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_weekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSData readDataUpToLength_error_( + int length, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_771( + _id, _lib._sel_readDataUpToLength_error_1, length, error); + return NSData._(_ret, _lib, retain: true, release: true); } - set weekdaySymbols(NSArray? value) { - return _lib._objc_msgSend_735( - _id, _lib._sel_setWeekdaySymbols_1, value?._id ?? ffi.nullptr); + bool writeData_error_( + NSData? data, ffi.Pointer> error) { + return _lib._objc_msgSend_772( + _id, _lib._sel_writeData_error_1, data?._id ?? ffi.nullptr, error); } - NSArray? get shortWeekdaySymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + bool getOffset_error_(ffi.Pointer offsetInFile, + ffi.Pointer> error) { + return _lib._objc_msgSend_773( + _id, _lib._sel_getOffset_error_1, offsetInFile, error); } - set shortWeekdaySymbols(NSArray? value) { - return _lib._objc_msgSend_735( - _id, _lib._sel_setShortWeekdaySymbols_1, value?._id ?? ffi.nullptr); + bool seekToEndReturningOffset_error_( + ffi.Pointer offsetInFile, + ffi.Pointer> error) { + return _lib._objc_msgSend_773( + _id, _lib._sel_seekToEndReturningOffset_error_1, offsetInFile, error); } - 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 seekToOffset_error_( + int offset, ffi.Pointer> error) { + return _lib._objc_msgSend_774( + _id, _lib._sel_seekToOffset_error_1, offset, error); } - set AMSymbol(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setAMSymbol_1, value?._id ?? ffi.nullptr); + bool truncateAtOffset_error_( + int offset, ffi.Pointer> error) { + return _lib._objc_msgSend_774( + _id, _lib._sel_truncateAtOffset_error_1, offset, error); } - 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); + bool synchronizeAndReturnError_(ffi.Pointer> error) { + return _lib._objc_msgSend_236( + _id, _lib._sel_synchronizeAndReturnError_1, error); } - set PMSymbol(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setPMSymbol_1, value?._id ?? ffi.nullptr); + bool closeAndReturnError_(ffi.Pointer> error) { + return _lib._objc_msgSend_236(_id, _lib._sel_closeAndReturnError_1, error); } - NSArray? get longEraSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_longEraSymbols1); + static NSFileHandle? getFileHandleWithStandardInput(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_775( + _lib._class_NSFileHandle1, _lib._sel_fileHandleWithStandardInput1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - set longEraSymbols(NSArray? value) { - return _lib._objc_msgSend_735( - _id, _lib._sel_setLongEraSymbols_1, value?._id ?? ffi.nullptr); + : NSFileHandle._(_ret, _lib, retain: true, release: true); } - NSArray? get veryShortMonthSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_veryShortMonthSymbols1); + static NSFileHandle? getFileHandleWithStandardOutput(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_775( + _lib._class_NSFileHandle1, _lib._sel_fileHandleWithStandardOutput1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSFileHandle._(_ret, _lib, retain: true, release: true); } - set veryShortMonthSymbols(NSArray? value) { - return _lib._objc_msgSend_735( - _id, _lib._sel_setVeryShortMonthSymbols_1, value?._id ?? ffi.nullptr); + static NSFileHandle? getFileHandleWithStandardError(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_775( + _lib._class_NSFileHandle1, _lib._sel_fileHandleWithStandardError1); + return _ret.address == 0 + ? null + : NSFileHandle._(_ret, _lib, retain: true, release: true); } - NSArray? get standaloneMonthSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_standaloneMonthSymbols1); + static NSFileHandle? getFileHandleWithNullDevice(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_775( + _lib._class_NSFileHandle1, _lib._sel_fileHandleWithNullDevice1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSFileHandle._(_ret, _lib, retain: true, release: true); } - set standaloneMonthSymbols(NSArray? value) { - return _lib._objc_msgSend_735( - _id, _lib._sel_setStandaloneMonthSymbols_1, value?._id ?? ffi.nullptr); + static NSFileHandle fileHandleForReadingAtPath_( + SentryCocoa _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); } - NSArray? get shortStandaloneMonthSymbols { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static NSFileHandle fileHandleForWritingAtPath_( + SentryCocoa _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); } - set shortStandaloneMonthSymbols(NSArray? value) { - return _lib._objc_msgSend_735(_id, - _lib._sel_setShortStandaloneMonthSymbols_1, value?._id ?? ffi.nullptr); + static NSFileHandle fileHandleForUpdatingAtPath_( + SentryCocoa _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); } - NSArray? get veryShortStandaloneMonthSymbols { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_veryShortStandaloneMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static NSFileHandle fileHandleForReadingFromURL_error_(SentryCocoa _lib, + NSURL? url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_776( + _lib._class_NSFileHandle1, + _lib._sel_fileHandleForReadingFromURL_error_1, + url?._id ?? ffi.nullptr, + error); + return NSFileHandle._(_ret, _lib, retain: true, release: true); } - set veryShortStandaloneMonthSymbols(NSArray? value) { - return _lib._objc_msgSend_735( - _id, - _lib._sel_setVeryShortStandaloneMonthSymbols_1, - value?._id ?? ffi.nullptr); + static NSFileHandle fileHandleForWritingToURL_error_(SentryCocoa _lib, + NSURL? url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_776( + _lib._class_NSFileHandle1, + _lib._sel_fileHandleForWritingToURL_error_1, + url?._id ?? ffi.nullptr, + error); + return NSFileHandle._(_ret, _lib, retain: true, release: true); } - NSArray? get veryShortWeekdaySymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_veryShortWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static NSFileHandle fileHandleForUpdatingURL_error_(SentryCocoa _lib, + NSURL? url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_776( + _lib._class_NSFileHandle1, + _lib._sel_fileHandleForUpdatingURL_error_1, + url?._id ?? ffi.nullptr, + error); + return NSFileHandle._(_ret, _lib, retain: true, release: true); } - set veryShortWeekdaySymbols(NSArray? value) { - return _lib._objc_msgSend_735( - _id, _lib._sel_setVeryShortWeekdaySymbols_1, value?._id ?? ffi.nullptr); + void readInBackgroundAndNotifyForModes_(NSArray? modes) { + _lib._objc_msgSend_443(_id, _lib._sel_readInBackgroundAndNotifyForModes_1, + modes?._id ?? ffi.nullptr); } - NSArray? get standaloneWeekdaySymbols { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_standaloneWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + void readInBackgroundAndNotify() { + _lib._objc_msgSend_1(_id, _lib._sel_readInBackgroundAndNotify1); } - set standaloneWeekdaySymbols(NSArray? value) { - return _lib._objc_msgSend_735(_id, _lib._sel_setStandaloneWeekdaySymbols_1, - value?._id ?? ffi.nullptr); + void readToEndOfFileInBackgroundAndNotifyForModes_(NSArray? modes) { + _lib._objc_msgSend_443( + _id, + _lib._sel_readToEndOfFileInBackgroundAndNotifyForModes_1, + modes?._id ?? ffi.nullptr); } - NSArray? get shortStandaloneWeekdaySymbols { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + void readToEndOfFileInBackgroundAndNotify() { + _lib._objc_msgSend_1(_id, _lib._sel_readToEndOfFileInBackgroundAndNotify1); } - set shortStandaloneWeekdaySymbols(NSArray? value) { - return _lib._objc_msgSend_735( + void acceptConnectionInBackgroundAndNotifyForModes_(NSArray? modes) { + _lib._objc_msgSend_443( _id, - _lib._sel_setShortStandaloneWeekdaySymbols_1, - value?._id ?? ffi.nullptr); + _lib._sel_acceptConnectionInBackgroundAndNotifyForModes_1, + modes?._id ?? ffi.nullptr); } - NSArray? get veryShortStandaloneWeekdaySymbols { - final _ret = _lib._objc_msgSend_79( - _id, _lib._sel_veryShortStandaloneWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + void acceptConnectionInBackgroundAndNotify() { + _lib._objc_msgSend_1(_id, _lib._sel_acceptConnectionInBackgroundAndNotify1); } - set veryShortStandaloneWeekdaySymbols(NSArray? value) { - return _lib._objc_msgSend_735( + void waitForDataInBackgroundAndNotifyForModes_(NSArray? modes) { + _lib._objc_msgSend_443( _id, - _lib._sel_setVeryShortStandaloneWeekdaySymbols_1, - value?._id ?? ffi.nullptr); + _lib._sel_waitForDataInBackgroundAndNotifyForModes_1, + modes?._id ?? ffi.nullptr); } - NSArray? get quarterSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_quarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + void waitForDataInBackgroundAndNotify() { + _lib._objc_msgSend_1(_id, _lib._sel_waitForDataInBackgroundAndNotify1); } - set quarterSymbols(NSArray? value) { - return _lib._objc_msgSend_735( - _id, _lib._sel_setQuarterSymbols_1, value?._id ?? ffi.nullptr); + ObjCBlock_ffiVoid_NSFileHandle get readabilityHandler { + final _ret = _lib._objc_msgSend_777(_id, _lib._sel_readabilityHandler1); + return ObjCBlock_ffiVoid_NSFileHandle._(_ret, _lib); } - NSArray? get shortQuarterSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortQuarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + set readabilityHandler(ObjCBlock_ffiVoid_NSFileHandle value) { + return _lib._objc_msgSend_778( + _id, _lib._sel_setReadabilityHandler_1, value._id); } - set shortQuarterSymbols(NSArray? value) { - return _lib._objc_msgSend_735( - _id, _lib._sel_setShortQuarterSymbols_1, value?._id ?? ffi.nullptr); + ObjCBlock_ffiVoid_NSFileHandle get writeabilityHandler { + final _ret = _lib._objc_msgSend_777(_id, _lib._sel_writeabilityHandler1); + return ObjCBlock_ffiVoid_NSFileHandle._(_ret, _lib); } - NSArray? get standaloneQuarterSymbols { + set writeabilityHandler(ObjCBlock_ffiVoid_NSFileHandle value) { + return _lib._objc_msgSend_778( + _id, _lib._sel_setWriteabilityHandler_1, value._id); + } + + NSFileHandle initWithFileDescriptor_(int fd) { final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_standaloneQuarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_779(_id, _lib._sel_initWithFileDescriptor_1, fd); + return NSFileHandle._(_ret, _lib, retain: true, release: true); } - set standaloneQuarterSymbols(NSArray? value) { - return _lib._objc_msgSend_735(_id, _lib._sel_setStandaloneQuarterSymbols_1, - value?._id ?? ffi.nullptr); + int get fileDescriptor { + return _lib._objc_msgSend_219(_id, _lib._sel_fileDescriptor1); } - NSArray? get shortStandaloneQuarterSymbols { + NSData readDataToEndOfFile() { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_readDataToEndOfFile1); + return NSData._(_ret, _lib, retain: true, release: true); + } + + NSData readDataOfLength_(int length) { final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneQuarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_332(_id, _lib._sel_readDataOfLength_1, length); + return NSData._(_ret, _lib, retain: true, release: true); } - set shortStandaloneQuarterSymbols(NSArray? value) { - return _lib._objc_msgSend_735( - _id, - _lib._sel_setShortStandaloneQuarterSymbols_1, - value?._id ?? ffi.nullptr); + void writeData_(NSData? data) { + _lib._objc_msgSend_263( + _id, _lib._sel_writeData_1, data?._id ?? ffi.nullptr); } - NSDate? get gregorianStartDate { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_gregorianStartDate1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + int get offsetInFile { + return _lib._objc_msgSend_154(_id, _lib._sel_offsetInFile1); } - set gregorianStartDate(NSDate? value) { - return _lib._objc_msgSend_525( - _id, _lib._sel_setGregorianStartDate_1, value?._id ?? ffi.nullptr); + int seekToEndOfFile() { + return _lib._objc_msgSend_154(_id, _lib._sel_seekToEndOfFile1); } - bool get doesRelativeDateFormatting { - return _lib._objc_msgSend_12(_id, _lib._sel_doesRelativeDateFormatting1); + void seekToFileOffset_(int offset) { + _lib._objc_msgSend_780(_id, _lib._sel_seekToFileOffset_1, offset); } - set doesRelativeDateFormatting(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setDoesRelativeDateFormatting_1, value); + void truncateFileAtOffset_(int offset) { + _lib._objc_msgSend_780(_id, _lib._sel_truncateFileAtOffset_1, offset); } - 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); + void synchronizeFile() { + _lib._objc_msgSend_1(_id, _lib._sel_synchronizeFile1); } - bool allowsNaturalLanguage() { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsNaturalLanguage1); + void closeFile() { + _lib._objc_msgSend_1(_id, _lib._sel_closeFile1); } @override - NSDateFormatter init() { + NSFileHandle init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSDateFormatter._(_ret, _lib, retain: true, release: true); + return NSFileHandle._(_ret, _lib, retain: true, release: true); } - static NSDateFormatter new1(SentryCocoa _lib) { + static NSFileHandle new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSDateFormatter1, _lib._sel_new1); - return NSDateFormatter._(_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 NSDateFormatter allocWithZone_( + static NSFileHandle allocWithZone_( SentryCocoa _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); + _lib._class_NSFileHandle1, _lib._sel_allocWithZone_1, zone); + return NSFileHandle._(_ret, _lib, retain: false, release: true); } - static NSDateFormatter alloc(SentryCocoa _lib) { + static NSFileHandle alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSDateFormatter1, _lib._sel_alloc1); - return NSDateFormatter._(_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_( @@ -54437,7 +59951,7 @@ class NSDateFormatter extends NSFormatter { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSDateFormatter1, + _lib._class_NSFileHandle1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -54446,24 +59960,24 @@ class NSDateFormatter extends NSFormatter { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSDateFormatter1, + _lib._objc_msgSend_15(_lib._class_NSFileHandle1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSDateFormatter1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSFileHandle1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSDateFormatter1, _lib._sel_useStoredAccessor1); + _lib._class_NSFileHandle1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSDateFormatter1, + _lib._class_NSFileHandle1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -54472,7 +59986,7 @@ class NSDateFormatter extends NSFormatter { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSDateFormatter1, + _lib._class_NSFileHandle1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -54480,133 +59994,225 @@ class NSDateFormatter extends NSFormatter { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSDateFormatter1, + _lib._class_NSFileHandle1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSDateFormatter1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79( + _lib._class_NSFileHandle1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSDateFormatter1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSFileHandle1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSFormatter extends NSObject { - NSFormatter._(ffi.Pointer id, SentryCocoa lib, +void _ObjCBlock_ffiVoid_NSFileHandle_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return block.ref.target + .cast< + ffi.NativeFunction arg0)>>() + .asFunction arg0)>()(arg0); +} + +final _ObjCBlock_ffiVoid_NSFileHandle_closureRegistry = {}; +int _ObjCBlock_ffiVoid_NSFileHandle_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSFileHandle_registerClosure( + Function fn) { + final id = ++_ObjCBlock_ffiVoid_NSFileHandle_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSFileHandle_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSFileHandle_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return (_ObjCBlock_ffiVoid_NSFileHandle_closureRegistry[block + .ref.target.address] as void Function(ffi.Pointer))(arg0); +} + +class ObjCBlock_ffiVoid_NSFileHandle extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSFileHandle._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_NSFileHandle.fromFunctionPointer( + SentryCocoa lib, + ffi.Pointer< + ffi + .NativeFunction arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSFileHandle_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_NSFileHandle.fromFunction( + SentryCocoa lib, void Function(ffi.Pointer arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSFileHandle_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSFileHandle_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); + } +} + +class NSHTTPCookieStorage extends NSObject { + NSHTTPCookieStorage._(ffi.Pointer id, SentryCocoa 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 [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 [NSFormatter] that wraps the given raw object pointer. - static NSFormatter castFromPointer( + /// Returns a [NSHTTPCookieStorage] that wraps the given raw object pointer. + static NSHTTPCookieStorage castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSFormatter._(other, lib, retain: retain, release: release); + return NSHTTPCookieStorage._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSFormatter]. + /// 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_NSFormatter1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSHTTPCookieStorage1); } - NSString stringForObjectValue_(NSObject obj) { - final _ret = - _lib._objc_msgSend_65(_id, _lib._sel_stringForObjectValue_1, obj._id); - return NSString._(_ret, _lib, retain: true, release: true); + static NSHTTPCookieStorage? getSharedHTTPCookieStorage(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_781( + _lib._class_NSHTTPCookieStorage1, _lib._sel_sharedHTTPCookieStorage1); + return _ret.address == 0 + ? null + : NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); } - NSAttributedString attributedStringForObjectValue_withDefaultAttributes_( - NSObject obj, NSDictionary? attrs) { - final _ret = _lib._objc_msgSend_690( - _id, - _lib._sel_attributedStringForObjectValue_withDefaultAttributes_1, - obj._id, - attrs?._id ?? ffi.nullptr); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + static NSHTTPCookieStorage sharedCookieStorageForGroupContainerIdentifier_( + SentryCocoa _lib, NSString? identifier) { + final _ret = _lib._objc_msgSend_782( + _lib._class_NSHTTPCookieStorage1, + _lib._sel_sharedCookieStorageForGroupContainerIdentifier_1, + identifier?._id ?? ffi.nullptr); + return NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); } - NSString editingStringForObjectValue_(NSObject obj) { - final _ret = _lib._objc_msgSend_65( - _id, _lib._sel_editingStringForObjectValue_1, obj._id); - return NSString._(_ret, _lib, retain: true, release: true); + NSArray? get cookies { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_cookies1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - bool getObjectValue_forString_errorDescription_( - ffi.Pointer> obj, - NSString? string, - ffi.Pointer> error) { - return _lib._objc_msgSend_691( - _id, - _lib._sel_getObjectValue_forString_errorDescription_1, - obj, - string?._id ?? ffi.nullptr, - error); + void setCookie_(NSHTTPCookie? cookie) { + _lib._objc_msgSend_785( + _id, _lib._sel_setCookie_1, cookie?._id ?? ffi.nullptr); } - bool isPartialStringValid_newEditingString_errorDescription_( - NSString? partialString, - ffi.Pointer> newString, - ffi.Pointer> error) { - return _lib._objc_msgSend_692( + void deleteCookie_(NSHTTPCookie? cookie) { + _lib._objc_msgSend_785( + _id, _lib._sel_deleteCookie_1, cookie?._id ?? ffi.nullptr); + } + + void removeCookiesSinceDate_(NSDate? date) { + _lib._objc_msgSend_507( + _id, _lib._sel_removeCookiesSinceDate_1, date?._id ?? ffi.nullptr); + } + + NSArray cookiesForURL_(NSURL? URL) { + final _ret = _lib._objc_msgSend_124( + _id, _lib._sel_cookiesForURL_1, URL?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + void setCookies_forURL_mainDocumentURL_( + NSArray? cookies, NSURL? URL, NSURL? mainDocumentURL) { + _lib._objc_msgSend_786( _id, - _lib._sel_isPartialStringValid_newEditingString_errorDescription_1, - partialString?._id ?? ffi.nullptr, - newString, - error); + _lib._sel_setCookies_forURL_mainDocumentURL_1, + cookies?._id ?? ffi.nullptr, + URL?._id ?? ffi.nullptr, + mainDocumentURL?._id ?? ffi.nullptr); } - bool - isPartialStringValid_proposedSelectedRange_originalString_originalSelectedRange_errorDescription_( - ffi.Pointer> partialStringPtr, - ffi.Pointer<_NSRange> proposedSelRangePtr, - NSString? origString, - _NSRange origSelRange, - ffi.Pointer> error) { - return _lib._objc_msgSend_693( + int get cookieAcceptPolicy { + return _lib._objc_msgSend_787(_id, _lib._sel_cookieAcceptPolicy1); + } + + set cookieAcceptPolicy(int value) { + return _lib._objc_msgSend_788( + _id, _lib._sel_setCookieAcceptPolicy_1, value); + } + + NSArray sortedCookiesUsingDescriptors_(NSArray? sortOrder) { + final _ret = _lib._objc_msgSend_63( _id, - _lib._sel_isPartialStringValid_proposedSelectedRange_originalString_originalSelectedRange_errorDescription_1, - partialStringPtr, - proposedSelRangePtr, - origString?._id ?? ffi.nullptr, - origSelRange, - error); + _lib._sel_sortedCookiesUsingDescriptors_1, + sortOrder?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + void storeCookies_forTask_(NSArray? cookies, NSURLSessionTask? task) { + _lib._objc_msgSend_808(_id, _lib._sel_storeCookies_forTask_1, + cookies?._id ?? ffi.nullptr, task?._id ?? ffi.nullptr); + } + + void getCookiesForTask_completionHandler_( + NSURLSessionTask? task, ObjCBlock_ffiVoid_NSArray completionHandler) { + _lib._objc_msgSend_809(_id, _lib._sel_getCookiesForTask_completionHandler_1, + task?._id ?? ffi.nullptr, completionHandler._id); } @override - NSFormatter init() { + NSHTTPCookieStorage init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSFormatter._(_ret, _lib, retain: true, release: true); + return NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); } - static NSFormatter new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSFormatter1, _lib._sel_new1); - return NSFormatter._(_ret, _lib, retain: false, release: true); + static NSHTTPCookieStorage new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSHTTPCookieStorage1, _lib._sel_new1); + return NSHTTPCookieStorage._(_ret, _lib, retain: false, release: true); } - static NSFormatter allocWithZone_( + static NSHTTPCookieStorage allocWithZone_( SentryCocoa _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); + _lib._class_NSHTTPCookieStorage1, _lib._sel_allocWithZone_1, zone); + return NSHTTPCookieStorage._(_ret, _lib, retain: false, release: true); } - static NSFormatter alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSFormatter1, _lib._sel_alloc1); - return NSFormatter._(_ret, _lib, retain: false, release: true); + static NSHTTPCookieStorage alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSHTTPCookieStorage1, _lib._sel_alloc1); + return NSHTTPCookieStorage._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -54615,7 +60221,7 @@ class NSFormatter extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSFormatter1, + _lib._class_NSHTTPCookieStorage1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -54624,24 +60230,24 @@ class NSFormatter extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSFormatter1, + _lib._objc_msgSend_15(_lib._class_NSHTTPCookieStorage1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSFormatter1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSHTTPCookieStorage1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSFormatter1, _lib._sel_useStoredAccessor1); + _lib._class_NSHTTPCookieStorage1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSFormatter1, + _lib._class_NSHTTPCookieStorage1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -54650,7 +60256,7 @@ class NSFormatter extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSFormatter1, + _lib._class_NSHTTPCookieStorage1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -54658,681 +60264,455 @@ class NSFormatter extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSFormatter1, + _lib._class_NSHTTPCookieStorage1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSFormatter1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_NSHTTPCookieStorage1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSFormatter1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSHTTPCookieStorage1, _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 NSCalendar extends NSObject { - NSCalendar._(ffi.Pointer id, SentryCocoa lib, +class NSHTTPCookie extends NSObject { + NSHTTPCookie._(ffi.Pointer id, SentryCocoa 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 [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 [NSCalendar] that wraps the given raw object pointer. - static NSCalendar castFromPointer( + /// Returns a [NSHTTPCookie] that wraps the given raw object pointer. + static NSHTTPCookie castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSCalendar._(other, lib, retain: retain, release: release); + return NSHTTPCookie._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSCalendar]. + /// 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_NSCalendar1); - } - - static NSCalendar? getCurrentCalendar(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_704( - _lib._class_NSCalendar1, _lib._sel_currentCalendar1); - return _ret.address == 0 - ? null - : NSCalendar._(_ret, _lib, retain: true, release: true); - } - - static NSCalendar? getAutoupdatingCurrentCalendar(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_704( - _lib._class_NSCalendar1, _lib._sel_autoupdatingCurrentCalendar1); - return _ret.address == 0 - ? null - : NSCalendar._(_ret, _lib, retain: true, release: true); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSHTTPCookie1); } - static NSCalendar calendarWithIdentifier_( - SentryCocoa _lib, NSString calendarIdentifierConstant) { - final _ret = _lib._objc_msgSend_705(_lib._class_NSCalendar1, - _lib._sel_calendarWithIdentifier_1, calendarIdentifierConstant._id); - return NSCalendar._(_ret, _lib, retain: true, release: true); + NSHTTPCookie initWithProperties_(NSDictionary? properties) { + final _ret = _lib._objc_msgSend_149( + _id, _lib._sel_initWithProperties_1, properties?._id ?? ffi.nullptr); + return NSHTTPCookie._(_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); + static NSHTTPCookie cookieWithProperties_( + SentryCocoa _lib, NSDictionary? properties) { + final _ret = _lib._objc_msgSend_783(_lib._class_NSHTTPCookie1, + _lib._sel_cookieWithProperties_1, properties?._id ?? ffi.nullptr); + return NSHTTPCookie._(_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); + static NSDictionary requestHeaderFieldsWithCookies_( + SentryCocoa _lib, NSArray? cookies) { + final _ret = _lib._objc_msgSend_477( + _lib._class_NSHTTPCookie1, + _lib._sel_requestHeaderFieldsWithCookies_1, + cookies?._id ?? ffi.nullptr); + return NSDictionary._(_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); + static NSArray cookiesWithResponseHeaderFields_forURL_( + SentryCocoa _lib, NSDictionary? headerFields, NSURL? URL) { + final _ret = _lib._objc_msgSend_784( + _lib._class_NSHTTPCookie1, + _lib._sel_cookiesWithResponseHeaderFields_forURL_1, + headerFields?._id ?? ffi.nullptr, + URL?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSLocale? get locale { - final _ret = _lib._objc_msgSend_182(_id, _lib._sel_locale1); + NSDictionary? get properties { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_properties1); return _ret.address == 0 ? null - : NSLocale._(_ret, _lib, retain: true, release: true); + : NSDictionary._(_ret, _lib, retain: true, release: true); } - set locale(NSLocale? value) { - return _lib._objc_msgSend_703( - _id, _lib._sel_setLocale_1, value?._id ?? ffi.nullptr); + int get version { + return _lib._objc_msgSend_10(_id, _lib._sel_version1); } - NSTimeZone? get timeZone { - final _ret = _lib._objc_msgSend_168(_id, _lib._sel_timeZone1); + NSString? get name { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); return _ret.address == 0 ? null - : NSTimeZone._(_ret, _lib, retain: true, release: true); - } - - set timeZone(NSTimeZone? value) { - return _lib._objc_msgSend_169( - _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) { - return _lib._objc_msgSend_483(_id, _lib._sel_setFirstWeekday_1, value); - } - - int get minimumDaysInFirstWeek { - return _lib._objc_msgSend_10(_id, _lib._sel_minimumDaysInFirstWeek1); - } - - set minimumDaysInFirstWeek(int value) { - return _lib._objc_msgSend_483( - _id, _lib._sel_setMinimumDaysInFirstWeek_1, value); + : NSString._(_ret, _lib, retain: true, release: true); } - NSArray? get eraSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_eraSymbols1); + NSString? get value { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_value1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - NSArray? get longEraSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_longEraSymbols1); + NSDate? get expiresDate { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_expiresDate1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSDate._(_ret, _lib, retain: true, release: true); } - NSArray? get monthSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_monthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + bool get sessionOnly { + return _lib._objc_msgSend_12(_id, _lib._sel_isSessionOnly1); } - NSArray? get shortMonthSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortMonthSymbols1); + NSString? get domain { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_domain1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - NSArray? get veryShortMonthSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_veryShortMonthSymbols1); + NSString? get path { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_path1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - NSArray? get standaloneMonthSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_standaloneMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + bool get secure { + return _lib._objc_msgSend_12(_id, _lib._sel_isSecure1); } - NSArray? get shortStandaloneMonthSymbols { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + bool get HTTPOnly { + return _lib._objc_msgSend_12(_id, _lib._sel_isHTTPOnly1); } - NSArray? get veryShortStandaloneMonthSymbols { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_veryShortStandaloneMonthSymbols1); + NSString? get comment { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_comment1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - NSArray? get weekdaySymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_weekdaySymbols1); + NSURL? get commentURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_commentURL1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSURL._(_ret, _lib, retain: true, release: true); } - NSArray? get shortWeekdaySymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortWeekdaySymbols1); + NSArray? get portList { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_portList1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get veryShortWeekdaySymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_veryShortWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSString get sameSitePolicy { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sameSitePolicy1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSArray? get standaloneWeekdaySymbols { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_standaloneWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + @override + NSHTTPCookie init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSHTTPCookie._(_ret, _lib, retain: true, release: true); } - NSArray? get shortStandaloneWeekdaySymbols { + static NSHTTPCookie new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_2(_lib._class_NSHTTPCookie1, _lib._sel_new1); + return NSHTTPCookie._(_ret, _lib, retain: false, release: true); } - NSArray? get veryShortStandaloneWeekdaySymbols { - final _ret = _lib._objc_msgSend_79( - _id, _lib._sel_veryShortStandaloneWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static NSHTTPCookie allocWithZone_( + SentryCocoa _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); } - NSArray? get quarterSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_quarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static NSHTTPCookie alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSHTTPCookie1, _lib._sel_alloc1); + return NSHTTPCookie._(_ret, _lib, retain: false, release: true); } - NSArray? get shortQuarterSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortQuarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _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); } - NSArray? get standaloneQuarterSymbols { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_standaloneQuarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSHTTPCookie1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - NSArray? get shortStandaloneQuarterSymbols { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneQuarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSHTTPCookie1, _lib._sel_accessInstanceVariablesDirectly1); } - 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 useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSHTTPCookie1, _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_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSHTTPCookie1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - void minimumRangeOfUnit_(ffi.Pointer<_NSRange> stret, int unit) { - _lib._objc_msgSend_706(stret, _id, _lib._sel_minimumRangeOfUnit_1, unit); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSHTTPCookie1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - void maximumRangeOfUnit_(ffi.Pointer<_NSRange> stret, int unit) { - _lib._objc_msgSend_706(stret, _id, _lib._sel_maximumRangeOfUnit_1, unit); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSHTTPCookie1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - void rangeOfUnit_inUnit_forDate_( - ffi.Pointer<_NSRange> stret, int smaller, int larger, NSDate? date) { - _lib._objc_msgSend_707(stret, _id, _lib._sel_rangeOfUnit_inUnit_forDate_1, - smaller, larger, date?._id ?? ffi.nullptr); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSHTTPCookie1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - int ordinalityOfUnit_inUnit_forDate_(int smaller, int larger, NSDate? date) { - return _lib._objc_msgSend_708( - _id, - _lib._sel_ordinalityOfUnit_inUnit_forDate_1, - smaller, - larger, - date?._id ?? ffi.nullptr); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSHTTPCookie1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - bool rangeOfUnit_startDate_interval_forDate_( - int unit, - ffi.Pointer> datep, - ffi.Pointer tip, - NSDate? date) { - return _lib._objc_msgSend_709( - _id, - _lib._sel_rangeOfUnit_startDate_interval_forDate_1, - unit, - datep, - tip, - date?._id ?? ffi.nullptr); +abstract class NSHTTPCookieAcceptPolicy { + static const int NSHTTPCookieAcceptPolicyAlways = 0; + static const int NSHTTPCookieAcceptPolicyNever = 1; + static const int NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain = 2; +} + +class NSURLSessionTask extends NSObject { + NSURLSessionTask._(ffi.Pointer id, SentryCocoa 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); } - NSDate dateFromComponents_(NSDateComponents? comps) { - final _ret = _lib._objc_msgSend_714( - _id, _lib._sel_dateFromComponents_1, comps?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); + /// Returns a [NSURLSessionTask] that wraps the given raw object pointer. + static NSURLSessionTask castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLSessionTask._(other, lib, retain: retain, release: release); } - NSDateComponents components_fromDate_(int unitFlags, NSDate? date) { - final _ret = _lib._objc_msgSend_715(_id, _lib._sel_components_fromDate_1, - unitFlags, date?._id ?? ffi.nullptr); - return NSDateComponents._(_ret, _lib, retain: true, release: true); + /// 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); } - NSDate dateByAddingComponents_toDate_options_( - NSDateComponents? comps, NSDate? date, int opts) { - final _ret = _lib._objc_msgSend_716( - _id, - _lib._sel_dateByAddingComponents_toDate_options_1, - comps?._id ?? ffi.nullptr, - date?._id ?? ffi.nullptr, - opts); - return NSDate._(_ret, _lib, retain: true, release: true); + int get taskIdentifier { + return _lib._objc_msgSend_10(_id, _lib._sel_taskIdentifier1); } - NSDateComponents components_fromDate_toDate_options_( - int unitFlags, NSDate? startingDate, NSDate? resultDate, int opts) { - final _ret = _lib._objc_msgSend_717( - _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); + NSURLRequest? get originalRequest { + final _ret = _lib._objc_msgSend_803(_id, _lib._sel_originalRequest1); + return _ret.address == 0 + ? null + : NSURLRequest._(_ret, _lib, retain: true, release: true); } - void getEra_year_month_day_fromDate_( - ffi.Pointer eraValuePointer, - ffi.Pointer yearValuePointer, - ffi.Pointer monthValuePointer, - ffi.Pointer dayValuePointer, - NSDate? date) { - _lib._objc_msgSend_718( - _id, - _lib._sel_getEra_year_month_day_fromDate_1, - eraValuePointer, - yearValuePointer, - monthValuePointer, - dayValuePointer, - date?._id ?? ffi.nullptr); + NSURLRequest? get currentRequest { + final _ret = _lib._objc_msgSend_803(_id, _lib._sel_currentRequest1); + return _ret.address == 0 + ? null + : NSURLRequest._(_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) { - _lib._objc_msgSend_718( - _id, - _lib._sel_getEra_yearForWeekOfYear_weekOfYear_weekday_fromDate_1, - eraValuePointer, - yearValuePointer, - weekValuePointer, - weekdayValuePointer, - date?._id ?? ffi.nullptr); + NSURLResponse? get response { + final _ret = _lib._objc_msgSend_805(_id, _lib._sel_response1); + return _ret.address == 0 + ? null + : NSURLResponse._(_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_718( - _id, - _lib._sel_getHour_minute_second_nanosecond_fromDate_1, - hourValuePointer, - minuteValuePointer, - secondValuePointer, - nanosecondValuePointer, - date?._id ?? ffi.nullptr); + 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); } - int component_fromDate_(int unit, NSDate? date) { - return _lib._objc_msgSend_719( - _id, _lib._sel_component_fromDate_1, unit, date?._id ?? ffi.nullptr); + set delegate(NSObject? value) { + return _lib._objc_msgSend_389( + _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } - 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_720( - _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); + NSProgress? get progress { + final _ret = _lib._objc_msgSend_612(_id, _lib._sel_progress1); + return _ret.address == 0 + ? null + : NSProgress._(_ret, _lib, retain: true, release: true); + } + + NSDate? get earliestBeginDate { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_earliestBeginDate1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - 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_720( - _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); + set earliestBeginDate(NSDate? value) { + return _lib._objc_msgSend_528( + _id, _lib._sel_setEarliestBeginDate_1, value?._id ?? ffi.nullptr); } - NSDate startOfDayForDate_(NSDate? date) { - final _ret = _lib._objc_msgSend_158( - _id, _lib._sel_startOfDayForDate_1, date?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); + int get countOfBytesClientExpectsToSend { + return _lib._objc_msgSend_619( + _id, _lib._sel_countOfBytesClientExpectsToSend1); } - NSDateComponents componentsInTimeZone_fromDate_( - NSTimeZone? timezone, NSDate? date) { - final _ret = _lib._objc_msgSend_721( - _id, - _lib._sel_componentsInTimeZone_fromDate_1, - timezone?._id ?? ffi.nullptr, - date?._id ?? ffi.nullptr); - return NSDateComponents._(_ret, _lib, retain: true, release: true); + set countOfBytesClientExpectsToSend(int value) { + return _lib._objc_msgSend_620( + _id, _lib._sel_setCountOfBytesClientExpectsToSend_1, value); } - int compareDate_toDate_toUnitGranularity_( - NSDate? date1, NSDate? date2, int unit) { - return _lib._objc_msgSend_722( - _id, - _lib._sel_compareDate_toDate_toUnitGranularity_1, - date1?._id ?? ffi.nullptr, - date2?._id ?? ffi.nullptr, - unit); + int get countOfBytesClientExpectsToReceive { + return _lib._objc_msgSend_619( + _id, _lib._sel_countOfBytesClientExpectsToReceive1); } - bool isDate_equalToDate_toUnitGranularity_( - NSDate? date1, NSDate? date2, int unit) { - return _lib._objc_msgSend_723( - _id, - _lib._sel_isDate_equalToDate_toUnitGranularity_1, - date1?._id ?? ffi.nullptr, - date2?._id ?? ffi.nullptr, - unit); + set countOfBytesClientExpectsToReceive(int value) { + return _lib._objc_msgSend_620( + _id, _lib._sel_setCountOfBytesClientExpectsToReceive_1, value); } - bool isDate_inSameDayAsDate_(NSDate? date1, NSDate? date2) { - return _lib._objc_msgSend_724(_id, _lib._sel_isDate_inSameDayAsDate_1, - date1?._id ?? ffi.nullptr, date2?._id ?? ffi.nullptr); + int get countOfBytesSent { + return _lib._objc_msgSend_619(_id, _lib._sel_countOfBytesSent1); } - bool isDateInToday_(NSDate? date) { - return _lib._objc_msgSend_160( - _id, _lib._sel_isDateInToday_1, date?._id ?? ffi.nullptr); + int get countOfBytesReceived { + return _lib._objc_msgSend_619(_id, _lib._sel_countOfBytesReceived1); } - bool isDateInYesterday_(NSDate? date) { - return _lib._objc_msgSend_160( - _id, _lib._sel_isDateInYesterday_1, date?._id ?? ffi.nullptr); + int get countOfBytesExpectedToSend { + return _lib._objc_msgSend_619(_id, _lib._sel_countOfBytesExpectedToSend1); } - bool isDateInTomorrow_(NSDate? date) { - return _lib._objc_msgSend_160( - _id, _lib._sel_isDateInTomorrow_1, date?._id ?? ffi.nullptr); + int get countOfBytesExpectedToReceive { + return _lib._objc_msgSend_619( + _id, _lib._sel_countOfBytesExpectedToReceive1); } - bool isDateInWeekend_(NSDate? date) { - return _lib._objc_msgSend_160( - _id, _lib._sel_isDateInWeekend_1, date?._id ?? ffi.nullptr); + 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); } - bool rangeOfWeekendStartDate_interval_containingDate_( - ffi.Pointer> datep, - ffi.Pointer tip, - NSDate? date) { - return _lib._objc_msgSend_725( - _id, - _lib._sel_rangeOfWeekendStartDate_interval_containingDate_1, - datep, - tip, - date?._id ?? ffi.nullptr); + set taskDescription(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setTaskDescription_1, value?._id ?? ffi.nullptr); } - bool nextWeekendStartDate_interval_options_afterDate_( - ffi.Pointer> datep, - ffi.Pointer tip, - int options, - NSDate? date) { - return _lib._objc_msgSend_726( - _id, - _lib._sel_nextWeekendStartDate_interval_options_afterDate_1, - datep, - tip, - options, - date?._id ?? ffi.nullptr); + void cancel() { + _lib._objc_msgSend_1(_id, _lib._sel_cancel1); } - NSDateComponents components_fromDateComponents_toDateComponents_options_( - int unitFlags, - NSDateComponents? startingDateComp, - NSDateComponents? resultDateComp, - int options) { - final _ret = _lib._objc_msgSend_727( - _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); + int get state { + return _lib._objc_msgSend_806(_id, _lib._sel_state1); } - NSDate dateByAddingUnit_value_toDate_options_( - int unit, int value, NSDate? date, int options) { - final _ret = _lib._objc_msgSend_728( - _id, - _lib._sel_dateByAddingUnit_value_toDate_options_1, - unit, - value, - date?._id ?? ffi.nullptr, - options); - return NSDate._(_ret, _lib, retain: true, release: true); + NSError? get error { + final _ret = _lib._objc_msgSend_300(_id, _lib._sel_error1); + return _ret.address == 0 + ? null + : NSError._(_ret, _lib, retain: true, release: true); } - void enumerateDatesStartingAfterDate_matchingComponents_options_usingBlock_( - NSDate? start, - NSDateComponents? comps, - int opts, - ObjCBlock_ffiVoid_NSDate_bool_bool block) { - _lib._objc_msgSend_729( - _id, - _lib._sel_enumerateDatesStartingAfterDate_matchingComponents_options_usingBlock_1, - start?._id ?? ffi.nullptr, - comps?._id ?? ffi.nullptr, - opts, - block._id); + void suspend() { + _lib._objc_msgSend_1(_id, _lib._sel_suspend1); } - NSDate nextDateAfterDate_matchingComponents_options_( - NSDate? date, NSDateComponents? comps, int options) { - final _ret = _lib._objc_msgSend_730( - _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 resume() { + _lib._objc_msgSend_1(_id, _lib._sel_resume1); } - NSDate nextDateAfterDate_matchingUnit_value_options_( - NSDate? date, int unit, int value, int options) { - final _ret = _lib._objc_msgSend_731( - _id, - _lib._sel_nextDateAfterDate_matchingUnit_value_options_1, - date?._id ?? ffi.nullptr, - unit, - value, - options); - return NSDate._(_ret, _lib, retain: true, release: true); + double get priority { + return _lib._objc_msgSend_221(_id, _lib._sel_priority1); } - NSDate nextDateAfterDate_matchingHour_minute_second_options_(NSDate? date, - int hourValue, int minuteValue, int secondValue, int options) { - final _ret = _lib._objc_msgSend_732( - _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); + set priority(double value) { + return _lib._objc_msgSend_807(_id, _lib._sel_setPriority_1, value); } - NSDate dateBySettingUnit_value_ofDate_options_( - int unit, int v, NSDate? date, int opts) { - final _ret = _lib._objc_msgSend_728( - _id, - _lib._sel_dateBySettingUnit_value_ofDate_options_1, - unit, - v, - date?._id ?? ffi.nullptr, - opts); - return NSDate._(_ret, _lib, retain: true, release: true); + bool get prefersIncrementalDelivery { + return _lib._objc_msgSend_12(_id, _lib._sel_prefersIncrementalDelivery1); } - NSDate dateBySettingHour_minute_second_ofDate_options_( - int h, int m, int s, NSDate? date, int opts) { - final _ret = _lib._objc_msgSend_733( - _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); + set prefersIncrementalDelivery(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setPrefersIncrementalDelivery_1, value); } - bool date_matchesComponents_(NSDate? date, NSDateComponents? components) { - return _lib._objc_msgSend_734(_id, _lib._sel_date_matchesComponents_1, - date?._id ?? ffi.nullptr, components?._id ?? ffi.nullptr); + @override + NSURLSessionTask init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLSessionTask._(_ret, _lib, retain: true, release: true); } - static NSCalendar new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSCalendar1, _lib._sel_new1); - return NSCalendar._(_ret, _lib, retain: false, release: true); + static NSURLSessionTask new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLSessionTask1, _lib._sel_new1); + return NSURLSessionTask._(_ret, _lib, retain: false, release: true); } - static NSCalendar allocWithZone_( + static NSURLSessionTask allocWithZone_( SentryCocoa _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); + _lib._class_NSURLSessionTask1, _lib._sel_allocWithZone_1, zone); + return NSURLSessionTask._(_ret, _lib, retain: false, release: true); } - static NSCalendar alloc(SentryCocoa _lib) { + static NSURLSessionTask alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSCalendar1, _lib._sel_alloc1); - return NSCalendar._(_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_( @@ -55341,7 +60721,7 @@ class NSCalendar extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSCalendar1, + _lib._class_NSURLSessionTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -55350,24 +60730,24 @@ class NSCalendar extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSCalendar1, + _lib._objc_msgSend_15(_lib._class_NSURLSessionTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSCalendar1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSURLSessionTask1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSCalendar1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLSessionTask1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSCalendar1, + _lib._class_NSURLSessionTask1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -55376,7 +60756,7 @@ class NSCalendar extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSCalendar1, + _lib._class_NSURLSessionTask1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -55384,283 +60764,452 @@ class NSCalendar extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSCalendar1, + _lib._class_NSURLSessionTask1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSCalendar1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionTask1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSCalendar1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSURLSessionTask1, _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, SentryCocoa lib, +class NSURLRequest extends NSObject { + NSURLRequest._(ffi.Pointer id, SentryCocoa 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 [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 [NSDateComponents] that wraps the given raw object pointer. - static NSDateComponents castFromPointer( + /// Returns a [NSURLRequest] that wraps the given raw object pointer. + static NSURLRequest castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSDateComponents._(other, lib, retain: retain, release: release); + return NSURLRequest._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSDateComponents]. + /// 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_NSDateComponents1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLRequest1); } - NSCalendar? get calendar { - final _ret = _lib._objc_msgSend_704(_id, _lib._sel_calendar1); + static NSURLRequest requestWithURL_(SentryCocoa _lib, NSURL? URL) { + final _ret = _lib._objc_msgSend_241(_lib._class_NSURLRequest1, + _lib._sel_requestWithURL_1, URL?._id ?? ffi.nullptr); + return NSURLRequest._(_ret, _lib, retain: true, release: true); + } + + static bool getSupportsSecureCoding(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLRequest1, _lib._sel_supportsSecureCoding1); + } + + static NSURLRequest requestWithURL_cachePolicy_timeoutInterval_( + SentryCocoa _lib, NSURL? URL, int cachePolicy, double timeoutInterval) { + final _ret = _lib._objc_msgSend_789( + _lib._class_NSURLRequest1, + _lib._sel_requestWithURL_cachePolicy_timeoutInterval_1, + URL?._id ?? ffi.nullptr, + cachePolicy, + timeoutInterval); + return NSURLRequest._(_ret, _lib, retain: true, release: true); + } + + NSURLRequest initWithURL_(NSURL? URL) { + final _ret = _lib._objc_msgSend_241( + _id, _lib._sel_initWithURL_1, URL?._id ?? ffi.nullptr); + return NSURLRequest._(_ret, _lib, retain: true, release: true); + } + + NSURLRequest initWithURL_cachePolicy_timeoutInterval_( + NSURL? URL, int cachePolicy, double timeoutInterval) { + final _ret = _lib._objc_msgSend_789( + _id, + _lib._sel_initWithURL_cachePolicy_timeoutInterval_1, + URL?._id ?? ffi.nullptr, + cachePolicy, + timeoutInterval); + return NSURLRequest._(_ret, _lib, retain: true, release: true); + } + + NSURL? get URL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URL1); return _ret.address == 0 ? null - : NSCalendar._(_ret, _lib, retain: true, release: true); + : NSURL._(_ret, _lib, retain: true, release: true); } - set calendar(NSCalendar? value) { - return _lib._objc_msgSend_710( - _id, _lib._sel_setCalendar_1, value?._id ?? ffi.nullptr); + int get cachePolicy { + return _lib._objc_msgSend_790(_id, _lib._sel_cachePolicy1); } - NSTimeZone? get timeZone { - final _ret = _lib._objc_msgSend_168(_id, _lib._sel_timeZone1); + double get timeoutInterval { + return _lib._objc_msgSend_155(_id, _lib._sel_timeoutInterval1); + } + + NSURL? get mainDocumentURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_mainDocumentURL1); return _ret.address == 0 ? null - : NSTimeZone._(_ret, _lib, retain: true, release: true); + : NSURL._(_ret, _lib, retain: true, release: true); } - set timeZone(NSTimeZone? value) { - return _lib._objc_msgSend_169( - _id, _lib._sel_setTimeZone_1, value?._id ?? ffi.nullptr); + int get networkServiceType { + return _lib._objc_msgSend_791(_id, _lib._sel_networkServiceType1); } - int get era { - return _lib._objc_msgSend_78(_id, _lib._sel_era1); + bool get allowsCellularAccess { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsCellularAccess1); } - set era(int value) { - return _lib._objc_msgSend_590(_id, _lib._sel_setEra_1, value); + bool get allowsExpensiveNetworkAccess { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsExpensiveNetworkAccess1); } - int get year { - return _lib._objc_msgSend_78(_id, _lib._sel_year1); + bool get allowsConstrainedNetworkAccess { + return _lib._objc_msgSend_12( + _id, _lib._sel_allowsConstrainedNetworkAccess1); } - set year(int value) { - return _lib._objc_msgSend_590(_id, _lib._sel_setYear_1, value); + bool get assumesHTTP3Capable { + return _lib._objc_msgSend_12(_id, _lib._sel_assumesHTTP3Capable1); } - int get month { - return _lib._objc_msgSend_78(_id, _lib._sel_month1); + int get attribution { + return _lib._objc_msgSend_792(_id, _lib._sel_attribution1); } - set month(int value) { - return _lib._objc_msgSend_590(_id, _lib._sel_setMonth_1, value); + bool get requiresDNSSECValidation { + return _lib._objc_msgSend_12(_id, _lib._sel_requiresDNSSECValidation1); } - int get day { - return _lib._objc_msgSend_78(_id, _lib._sel_day1); + bool get allowsPersistentDNS { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsPersistentDNS1); } - set day(int value) { - return _lib._objc_msgSend_590(_id, _lib._sel_setDay_1, value); + NSString? get cookiePartitionIdentifier { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_cookiePartitionIdentifier1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - int get hour { - return _lib._objc_msgSend_78(_id, _lib._sel_hour1); + 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); } - set hour(int value) { - return _lib._objc_msgSend_590(_id, _lib._sel_setHour_1, value); + NSDictionary? get allHTTPHeaderFields { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_allHTTPHeaderFields1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - int get minute { - return _lib._objc_msgSend_78(_id, _lib._sel_minute1); + NSString valueForHTTPHeaderField_(NSString? field) { + final _ret = _lib._objc_msgSend_64( + _id, _lib._sel_valueForHTTPHeaderField_1, field?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - set minute(int value) { - return _lib._objc_msgSend_590(_id, _lib._sel_setMinute_1, value); + 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); } - int get second { - return _lib._objc_msgSend_78(_id, _lib._sel_second1); + NSInputStream? get HTTPBodyStream { + final _ret = _lib._objc_msgSend_802(_id, _lib._sel_HTTPBodyStream1); + return _ret.address == 0 + ? null + : NSInputStream._(_ret, _lib, retain: true, release: true); } - set second(int value) { - return _lib._objc_msgSend_590(_id, _lib._sel_setSecond_1, value); + bool get HTTPShouldHandleCookies { + return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldHandleCookies1); } - int get nanosecond { - return _lib._objc_msgSend_78(_id, _lib._sel_nanosecond1); + bool get HTTPShouldUsePipelining { + return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldUsePipelining1); } - set nanosecond(int value) { - return _lib._objc_msgSend_590(_id, _lib._sel_setNanosecond_1, value); + @override + NSURLRequest init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLRequest._(_ret, _lib, retain: true, release: true); } - int get weekday { - return _lib._objc_msgSend_78(_id, _lib._sel_weekday1); + static NSURLRequest new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLRequest1, _lib._sel_new1); + return NSURLRequest._(_ret, _lib, retain: false, release: true); + } + + static NSURLRequest allocWithZone_( + SentryCocoa _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(SentryCocoa _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_( + SentryCocoa _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); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSURLRequest1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLRequest1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLRequest1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSURLRequest1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSURLRequest1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - set weekday(int value) { - return _lib._objc_msgSend_590(_id, _lib._sel_setWeekday_1, value); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSURLRequest1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - int get weekdayOrdinal { - return _lib._objc_msgSend_78(_id, _lib._sel_weekdayOrdinal1); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSURLRequest1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set weekdayOrdinal(int value) { - return _lib._objc_msgSend_590(_id, _lib._sel_setWeekdayOrdinal_1, value); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLRequest1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - int get quarter { - return _lib._objc_msgSend_78(_id, _lib._sel_quarter1); - } +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; +} - set quarter(int value) { - return _lib._objc_msgSend_590(_id, _lib._sel_setQuarter_1, value); - } +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; +} - int get weekOfMonth { - return _lib._objc_msgSend_78(_id, _lib._sel_weekOfMonth1); +abstract class NSURLRequestAttribution { + static const int NSURLRequestAttributionDeveloper = 0; + static const int NSURLRequestAttributionUser = 1; +} + +class NSInputStream extends NSStream { + NSInputStream._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : 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); } - set weekOfMonth(int value) { - return _lib._objc_msgSend_590(_id, _lib._sel_setWeekOfMonth_1, value); + /// Returns a [NSInputStream] that wraps the given raw object pointer. + static NSInputStream castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSInputStream._(other, lib, retain: retain, release: release); } - int get weekOfYear { - return _lib._objc_msgSend_78(_id, _lib._sel_weekOfYear1); + /// 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); } - set weekOfYear(int value) { - return _lib._objc_msgSend_590(_id, _lib._sel_setWeekOfYear_1, value); + int read_maxLength_(ffi.Pointer buffer, int len) { + return _lib._objc_msgSend_794(_id, _lib._sel_read_maxLength_1, buffer, len); } - int get yearForWeekOfYear { - return _lib._objc_msgSend_78(_id, _lib._sel_yearForWeekOfYear1); + bool getBuffer_length_(ffi.Pointer> buffer, + ffi.Pointer len) { + return _lib._objc_msgSend_801( + _id, _lib._sel_getBuffer_length_1, buffer, len); } - set yearForWeekOfYear(int value) { - return _lib._objc_msgSend_590(_id, _lib._sel_setYearForWeekOfYear_1, value); + bool get hasBytesAvailable { + return _lib._objc_msgSend_12(_id, _lib._sel_hasBytesAvailable1); } - bool get leapMonth { - return _lib._objc_msgSend_12(_id, _lib._sel_isLeapMonth1); + NSInputStream initWithData_(NSData? data) { + final _ret = _lib._objc_msgSend_257( + _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); + return NSInputStream._(_ret, _lib, retain: true, release: true); } - set leapMonth(bool value) { - return _lib._objc_msgSend_492(_id, _lib._sel_setLeapMonth_1, value); + NSInputStream initWithURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_241( + _id, _lib._sel_initWithURL_1, url?._id ?? ffi.nullptr); + return NSInputStream._(_ret, _lib, retain: true, release: true); } - NSDate? get date { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_date1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + 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); } - int week() { - return _lib._objc_msgSend_78(_id, _lib._sel_week1); + static NSInputStream inputStreamWithData_(SentryCocoa _lib, NSData? data) { + final _ret = _lib._objc_msgSend_257(_lib._class_NSInputStream1, + _lib._sel_inputStreamWithData_1, data?._id ?? ffi.nullptr); + return NSInputStream._(_ret, _lib, retain: true, release: true); } - void setWeek_(int v) { - _lib._objc_msgSend_394(_id, _lib._sel_setWeek_1, v); + static NSInputStream inputStreamWithFileAtPath_( + SentryCocoa _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); } - void setValue_forComponent_(int value, int unit) { - _lib._objc_msgSend_711(_id, _lib._sel_setValue_forComponent_1, value, unit); + static NSInputStream inputStreamWithURL_(SentryCocoa _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_241(_lib._class_NSInputStream1, + _lib._sel_inputStreamWithURL_1, url?._id ?? ffi.nullptr); + return NSInputStream._(_ret, _lib, retain: true, release: true); } - int valueForComponent_(int unit) { - return _lib._objc_msgSend_712(_id, _lib._sel_valueForComponent_1, unit); + static void getStreamsToHostWithName_port_inputStream_outputStream_( + SentryCocoa _lib, + NSString? hostname, + int port, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + _lib._objc_msgSend_796( + _lib._class_NSInputStream1, + _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, + hostname?._id ?? ffi.nullptr, + port, + inputStream, + outputStream); } - bool get validDate { - return _lib._objc_msgSend_12(_id, _lib._sel_isValidDate1); + static void getStreamsToHost_port_inputStream_outputStream_( + SentryCocoa _lib, + NSHost? host, + int port, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + _lib._objc_msgSend_799( + _lib._class_NSInputStream1, + _lib._sel_getStreamsToHost_port_inputStream_outputStream_1, + host?._id ?? ffi.nullptr, + port, + inputStream, + outputStream); } - bool isValidDateInCalendar_(NSCalendar? calendar) { - return _lib._objc_msgSend_713( - _id, _lib._sel_isValidDateInCalendar_1, calendar?._id ?? ffi.nullptr); + static void getBoundStreamsWithBufferSize_inputStream_outputStream_( + SentryCocoa _lib, + int bufferSize, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + _lib._objc_msgSend_800( + _lib._class_NSInputStream1, + _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, + bufferSize, + inputStream, + outputStream); } @override - NSDateComponents init() { + NSInputStream init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSDateComponents._(_ret, _lib, retain: true, release: true); + return NSInputStream._(_ret, _lib, retain: true, release: true); } - static NSDateComponents new1(SentryCocoa _lib) { + static NSInputStream new1(SentryCocoa _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_NSInputStream1, _lib._sel_new1); + return NSInputStream._(_ret, _lib, retain: false, release: true); } - static NSDateComponents allocWithZone_( + static NSInputStream allocWithZone_( SentryCocoa _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); + _lib._class_NSInputStream1, _lib._sel_allocWithZone_1, zone); + return NSInputStream._(_ret, _lib, retain: false, release: true); } - static NSDateComponents alloc(SentryCocoa _lib) { + static NSInputStream alloc(SentryCocoa _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_NSInputStream1, _lib._sel_alloc1); + return NSInputStream._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -55669,7 +61218,7 @@ class NSDateComponents extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSDateComponents1, + _lib._class_NSInputStream1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -55678,24 +61227,24 @@ class NSDateComponents extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSDateComponents1, + _lib._objc_msgSend_15(_lib._class_NSInputStream1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSDateComponents1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSInputStream1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSDateComponents1, _lib._sel_useStoredAccessor1); + _lib._class_NSInputStream1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSDateComponents1, + _lib._class_NSInputStream1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -55704,7 +61253,7 @@ class NSDateComponents extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSDateComponents1, + _lib._class_NSInputStream1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -55712,951 +61261,994 @@ class NSDateComponents extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSDateComponents1, + _lib._class_NSInputStream1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSDateComponents1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79( + _lib._class_NSInputStream1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSDateComponents1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSInputStream1, _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 _ObjCBlock_ffiVoid_NSDate_bool_bool_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 _ObjCBlock_ffiVoid_NSDate_bool_bool_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSDate_bool_bool_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSDate_bool_bool_registerClosure( - Function 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) { - return (_ObjCBlock_ffiVoid_NSDate_bool_bool_closureRegistry[ - block.ref.target.address] - as void Function(ffi.Pointer, bool, - ffi.Pointer))(arg0, arg1, arg2); -} - -class ObjCBlock_ffiVoid_NSDate_bool_bool extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSDate_bool_bool._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSDate_bool_bool.fromFunctionPointer( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_NSDate_bool_bool_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSDate_bool_bool.fromFunction( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_NSDate_bool_bool_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_NSDate_bool_bool_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); - } -} - -class NSNumberFormatter extends NSFormatter { - NSNumberFormatter._(ffi.Pointer id, SentryCocoa lib, +class NSStream extends NSObject { + NSStream._(ffi.Pointer id, SentryCocoa 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, - 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 [NSNumberFormatter] that wraps the given raw object pointer. - static NSNumberFormatter castFromPointer( + /// Returns a [NSStream] that wraps the given raw object pointer. + static NSStream castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSNumberFormatter._(other, lib, retain: retain, release: release); + return NSStream._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSNumberFormatter]. + /// 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_NSNumberFormatter1); - } - - int get formattingContext { - return _lib._objc_msgSend_694(_id, _lib._sel_formattingContext1); - } - - set formattingContext(int value) { - return _lib._objc_msgSend_695(_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_696( - _id, - _lib._sel_getObjectValue_forString_range_error_1, - obj, - string?._id ?? ffi.nullptr, - rangep, - error); - } - - NSString stringFromNumber_(NSNumber? number) { - final _ret = _lib._objc_msgSend_736( - _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_737( - _id, _lib._sel_numberFromString_1, string?._id ?? ffi.nullptr); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSString localizedStringFromNumber_numberStyle_( - SentryCocoa _lib, NSNumber? num, int nstyle) { - final _ret = _lib._objc_msgSend_738( - _lib._class_NSNumberFormatter1, - _lib._sel_localizedStringFromNumber_numberStyle_1, - num?._id ?? ffi.nullptr, - nstyle); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static int defaultFormatterBehavior(SentryCocoa _lib) { - return _lib._objc_msgSend_739( - _lib._class_NSNumberFormatter1, _lib._sel_defaultFormatterBehavior1); - } - - static void setDefaultFormatterBehavior_(SentryCocoa _lib, int behavior) { - _lib._objc_msgSend_740(_lib._class_NSNumberFormatter1, - _lib._sel_setDefaultFormatterBehavior_1, behavior); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSStream1); } - int get numberStyle { - return _lib._objc_msgSend_741(_id, _lib._sel_numberStyle1); + void open() { + _lib._objc_msgSend_1(_id, _lib._sel_open1); } - set numberStyle(int value) { - return _lib._objc_msgSend_742(_id, _lib._sel_setNumberStyle_1, value); + void close() { + _lib._objc_msgSend_1(_id, _lib._sel_close1); } - NSLocale? get locale { - final _ret = _lib._objc_msgSend_182(_id, _lib._sel_locale1); + NSObject? get delegate { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); return _ret.address == 0 ? null - : NSLocale._(_ret, _lib, retain: true, release: true); - } - - set locale(NSLocale? value) { - return _lib._objc_msgSend_703( - _id, _lib._sel_setLocale_1, value?._id ?? ffi.nullptr); + : NSObject._(_ret, _lib, retain: true, release: true); } - bool get generatesDecimalNumbers { - return _lib._objc_msgSend_12(_id, _lib._sel_generatesDecimalNumbers1); + set delegate(NSObject? value) { + return _lib._objc_msgSend_389( + _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } - set generatesDecimalNumbers(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setGeneratesDecimalNumbers_1, value); + 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); } - int get formatterBehavior { - return _lib._objc_msgSend_739(_id, _lib._sel_formatterBehavior1); + bool setProperty_forKey_(NSObject property, NSString key) { + return _lib._objc_msgSend_240( + _id, _lib._sel_setProperty_forKey_1, property._id, key._id); } - set formatterBehavior(int value) { - return _lib._objc_msgSend_743(_id, _lib._sel_setFormatterBehavior_1, value); + void scheduleInRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { + _lib._objc_msgSend_536(_id, _lib._sel_scheduleInRunLoop_forMode_1, + aRunLoop?._id ?? ffi.nullptr, mode._id); } - 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); + void removeFromRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { + _lib._objc_msgSend_536(_id, _lib._sel_removeFromRunLoop_forMode_1, + aRunLoop?._id ?? ffi.nullptr, mode._id); } - set negativeFormat(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setNegativeFormat_1, value?._id ?? ffi.nullptr); + int get streamStatus { + return _lib._objc_msgSend_793(_id, _lib._sel_streamStatus1); } - NSDictionary? get textAttributesForNegativeValues { - final _ret = - _lib._objc_msgSend_170(_id, _lib._sel_textAttributesForNegativeValues1); + NSError? get streamError { + final _ret = _lib._objc_msgSend_300(_id, _lib._sel_streamError1); return _ret.address == 0 ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + : NSError._(_ret, _lib, retain: true, release: true); } - set textAttributesForNegativeValues(NSDictionary? value) { - return _lib._objc_msgSend_171( - _id, - _lib._sel_setTextAttributesForNegativeValues_1, - value?._id ?? ffi.nullptr); + static void getStreamsToHostWithName_port_inputStream_outputStream_( + SentryCocoa _lib, + NSString? hostname, + int port, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + _lib._objc_msgSend_796( + _lib._class_NSStream1, + _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, + hostname?._id ?? ffi.nullptr, + port, + inputStream, + outputStream); } - 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); + static void getStreamsToHost_port_inputStream_outputStream_( + SentryCocoa _lib, + NSHost? host, + int port, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + _lib._objc_msgSend_799( + _lib._class_NSStream1, + _lib._sel_getStreamsToHost_port_inputStream_outputStream_1, + host?._id ?? ffi.nullptr, + port, + inputStream, + outputStream); } - set positiveFormat(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setPositiveFormat_1, value?._id ?? ffi.nullptr); + static void getBoundStreamsWithBufferSize_inputStream_outputStream_( + SentryCocoa _lib, + int bufferSize, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + _lib._objc_msgSend_800( + _lib._class_NSStream1, + _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, + bufferSize, + inputStream, + outputStream); } - NSDictionary? get textAttributesForPositiveValues { - final _ret = - _lib._objc_msgSend_170(_id, _lib._sel_textAttributesForPositiveValues1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + @override + NSStream init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSStream._(_ret, _lib, retain: true, release: true); } - set textAttributesForPositiveValues(NSDictionary? value) { - return _lib._objc_msgSend_171( - _id, - _lib._sel_setTextAttributesForPositiveValues_1, - value?._id ?? ffi.nullptr); + static NSStream new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSStream1, _lib._sel_new1); + return NSStream._(_ret, _lib, retain: false, release: true); } - bool get allowsFloats { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsFloats1); + static NSStream allocWithZone_(SentryCocoa _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); } - set allowsFloats(bool value) { - return _lib._objc_msgSend_492(_id, _lib._sel_setAllowsFloats_1, value); + static NSStream alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSStream1, _lib._sel_alloc1); + return NSStream._(_ret, _lib, retain: false, release: true); } - 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); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSStream1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - set decimalSeparator(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setDecimalSeparator_1, value?._id ?? ffi.nullptr); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSStream1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - bool get alwaysShowsDecimalSeparator { - return _lib._objc_msgSend_12(_id, _lib._sel_alwaysShowsDecimalSeparator1); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSStream1, _lib._sel_accessInstanceVariablesDirectly1); } - set alwaysShowsDecimalSeparator(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setAlwaysShowsDecimalSeparator_1, value); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSStream1, _lib._sel_useStoredAccessor1); } - 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); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSStream1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - set currencyDecimalSeparator(NSString? value) { - return _lib._objc_msgSend_509(_id, _lib._sel_setCurrencyDecimalSeparator_1, - value?._id ?? ffi.nullptr); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSStream1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - bool get usesGroupingSeparator { - return _lib._objc_msgSend_12(_id, _lib._sel_usesGroupingSeparator1); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSStream1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - set usesGroupingSeparator(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setUsesGroupingSeparator_1, value); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSStream1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - 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); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSStream1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - set groupingSeparator(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setGroupingSeparator_1, value?._id ?? ffi.nullptr); - } +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; +} - 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); +class NSOutputStream extends NSStream { + NSOutputStream._(ffi.Pointer id, SentryCocoa 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); } - set zeroSymbol(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setZeroSymbol_1, value?._id ?? ffi.nullptr); + /// Returns a [NSOutputStream] that wraps the given raw object pointer. + static NSOutputStream castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSOutputStream._(other, lib, retain: retain, release: release); } - NSDictionary? get textAttributesForZero { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_textAttributesForZero1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + /// 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_NSOutputStream1); } - set textAttributesForZero(NSDictionary? value) { - return _lib._objc_msgSend_171( - _id, _lib._sel_setTextAttributesForZero_1, value?._id ?? ffi.nullptr); + int write_maxLength_(ffi.Pointer buffer, int len) { + return _lib._objc_msgSend_794( + _id, _lib._sel_write_maxLength_1, buffer, len); } - 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); + bool get hasSpaceAvailable { + return _lib._objc_msgSend_12(_id, _lib._sel_hasSpaceAvailable1); } - set nilSymbol(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setNilSymbol_1, value?._id ?? ffi.nullptr); + NSOutputStream initToMemory() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_initToMemory1); + return NSOutputStream._(_ret, _lib, retain: true, release: true); } - NSDictionary? get textAttributesForNil { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_textAttributesForNil1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + NSOutputStream initToBuffer_capacity_( + ffi.Pointer buffer, int capacity) { + final _ret = _lib._objc_msgSend_795( + _id, _lib._sel_initToBuffer_capacity_1, buffer, capacity); + return NSOutputStream._(_ret, _lib, retain: true, release: true); } - set textAttributesForNil(NSDictionary? value) { - return _lib._objc_msgSend_171( - _id, _lib._sel_setTextAttributesForNil_1, value?._id ?? ffi.nullptr); + NSOutputStream initWithURL_append_(NSURL? url, bool shouldAppend) { + final _ret = _lib._objc_msgSend_246(_id, _lib._sel_initWithURL_append_1, + url?._id ?? ffi.nullptr, shouldAppend); + return NSOutputStream._(_ret, _lib, retain: true, release: true); } - 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); + 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); } - set notANumberSymbol(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setNotANumberSymbol_1, value?._id ?? ffi.nullptr); + static NSOutputStream outputStreamToMemory(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSOutputStream1, _lib._sel_outputStreamToMemory1); + return NSOutputStream._(_ret, _lib, retain: true, release: true); } - NSDictionary? get textAttributesForNotANumber { - final _ret = - _lib._objc_msgSend_170(_id, _lib._sel_textAttributesForNotANumber1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + static NSOutputStream outputStreamToBuffer_capacity_( + SentryCocoa _lib, ffi.Pointer buffer, int capacity) { + final _ret = _lib._objc_msgSend_795(_lib._class_NSOutputStream1, + _lib._sel_outputStreamToBuffer_capacity_1, buffer, capacity); + return NSOutputStream._(_ret, _lib, retain: true, release: true); } - set textAttributesForNotANumber(NSDictionary? value) { - return _lib._objc_msgSend_171(_id, - _lib._sel_setTextAttributesForNotANumber_1, value?._id ?? ffi.nullptr); + static NSOutputStream outputStreamToFileAtPath_append_( + SentryCocoa _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); } - 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); + static NSOutputStream outputStreamWithURL_append_( + SentryCocoa _lib, NSURL? url, bool shouldAppend) { + final _ret = _lib._objc_msgSend_246( + _lib._class_NSOutputStream1, + _lib._sel_outputStreamWithURL_append_1, + url?._id ?? ffi.nullptr, + shouldAppend); + return NSOutputStream._(_ret, _lib, retain: true, release: true); } - set positiveInfinitySymbol(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setPositiveInfinitySymbol_1, value?._id ?? ffi.nullptr); + static void getStreamsToHostWithName_port_inputStream_outputStream_( + SentryCocoa _lib, + NSString? hostname, + int port, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + _lib._objc_msgSend_796( + _lib._class_NSOutputStream1, + _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, + hostname?._id ?? ffi.nullptr, + port, + inputStream, + outputStream); } - NSDictionary? get textAttributesForPositiveInfinity { - final _ret = _lib._objc_msgSend_170( - _id, _lib._sel_textAttributesForPositiveInfinity1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + static void getStreamsToHost_port_inputStream_outputStream_( + SentryCocoa _lib, + NSHost? host, + int port, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + _lib._objc_msgSend_799( + _lib._class_NSOutputStream1, + _lib._sel_getStreamsToHost_port_inputStream_outputStream_1, + host?._id ?? ffi.nullptr, + port, + inputStream, + outputStream); } - set textAttributesForPositiveInfinity(NSDictionary? value) { - return _lib._objc_msgSend_171( - _id, - _lib._sel_setTextAttributesForPositiveInfinity_1, - value?._id ?? ffi.nullptr); + static void getBoundStreamsWithBufferSize_inputStream_outputStream_( + SentryCocoa _lib, + int bufferSize, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + _lib._objc_msgSend_800( + _lib._class_NSOutputStream1, + _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, + bufferSize, + inputStream, + outputStream); } - 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); + @override + NSOutputStream init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSOutputStream._(_ret, _lib, retain: true, release: true); } - set negativeInfinitySymbol(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setNegativeInfinitySymbol_1, value?._id ?? ffi.nullptr); + static NSOutputStream new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSOutputStream1, _lib._sel_new1); + return NSOutputStream._(_ret, _lib, retain: false, release: true); } - NSDictionary? get textAttributesForNegativeInfinity { - final _ret = _lib._objc_msgSend_170( - _id, _lib._sel_textAttributesForNegativeInfinity1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + static NSOutputStream allocWithZone_( + SentryCocoa _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); } - set textAttributesForNegativeInfinity(NSDictionary? value) { - return _lib._objc_msgSend_171( - _id, - _lib._sel_setTextAttributesForNegativeInfinity_1, - value?._id ?? ffi.nullptr); + static NSOutputStream alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSOutputStream1, _lib._sel_alloc1); + return NSOutputStream._(_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 void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSOutputStream1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - set positivePrefix(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setPositivePrefix_1, value?._id ?? ffi.nullptr); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSOutputStream1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - 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 bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_NSOutputStream1, + _lib._sel_accessInstanceVariablesDirectly1); } - set positiveSuffix(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setPositiveSuffix_1, value?._id ?? ffi.nullptr); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSOutputStream1, _lib._sel_useStoredAccessor1); } - 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 NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSOutputStream1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - set negativePrefix(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setNegativePrefix_1, value?._id ?? ffi.nullptr); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSOutputStream1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - 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 void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSOutputStream1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - set negativeSuffix(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setNegativeSuffix_1, value?._id ?? ffi.nullptr); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSOutputStream1, _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(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSOutputStream1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - set currencyCode(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setCurrencyCode_1, value?._id ?? ffi.nullptr); +class NSHost extends NSObject { + NSHost._(ffi.Pointer id, SentryCocoa 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); } - 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 [NSHost] that wraps the given raw object pointer. + static NSHost castFromPointer(SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSHost._(other, lib, retain: retain, release: release); } - set currencySymbol(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setCurrencySymbol_1, value?._id ?? ffi.nullptr); + /// 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); } - NSString? get internationalCurrencySymbol { + static NSHost currentHost(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_internationalCurrencySymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_2(_lib._class_NSHost1, _lib._sel_currentHost1); + return NSHost._(_ret, _lib, retain: true, release: true); } - set internationalCurrencySymbol(NSString? value) { - return _lib._objc_msgSend_509(_id, - _lib._sel_setInternationalCurrencySymbol_1, value?._id ?? ffi.nullptr); + static NSHost hostWithName_(SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSHost1, + _lib._sel_hostWithName_1, name?._id ?? ffi.nullptr); + return NSHost._(_ret, _lib, retain: true, release: true); } - NSString? get percentSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_percentSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSHost hostWithAddress_(SentryCocoa _lib, NSString? address) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSHost1, + _lib._sel_hostWithAddress_1, address?._id ?? ffi.nullptr); + return NSHost._(_ret, _lib, retain: true, release: true); } - set percentSymbol(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setPercentSymbol_1, value?._id ?? ffi.nullptr); + bool isEqualToHost_(NSHost? aHost) { + return _lib._objc_msgSend_797( + _id, _lib._sel_isEqualToHost_1, aHost?._id ?? ffi.nullptr); } - NSString? get perMillSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_perMillSymbol1); + 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); } - set perMillSymbol(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setPerMillSymbol_1, value?._id ?? ffi.nullptr); - } - - NSString? get minusSign { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_minusSign1); + NSArray? get names { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_names1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set minusSign(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setMinusSign_1, value?._id ?? ffi.nullptr); + : NSArray._(_ret, _lib, retain: true, release: true); } - NSString? get plusSign { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_plusSign1); + NSString? get address { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_address1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - set plusSign(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setPlusSign_1, value?._id ?? ffi.nullptr); + NSArray? get addresses { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_addresses1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSString? get exponentSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_exponentSymbol1); + NSString? get localizedName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localizedName1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - set exponentSymbol(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setExponentSymbol_1, value?._id ?? ffi.nullptr); - } - - int get groupingSize { - return _lib._objc_msgSend_10(_id, _lib._sel_groupingSize1); - } - - set groupingSize(int value) { - return _lib._objc_msgSend_483(_id, _lib._sel_setGroupingSize_1, value); - } - - int get secondaryGroupingSize { - return _lib._objc_msgSend_10(_id, _lib._sel_secondaryGroupingSize1); - } - - set secondaryGroupingSize(int value) { - return _lib._objc_msgSend_483( - _id, _lib._sel_setSecondaryGroupingSize_1, value); - } - - NSNumber? get multiplier { - final _ret = _lib._objc_msgSend_198(_id, _lib._sel_multiplier1); - return _ret.address == 0 - ? null - : NSNumber._(_ret, _lib, retain: true, release: true); + static void setHostCacheEnabled_(SentryCocoa _lib, bool flag) { + _lib._objc_msgSend_798( + _lib._class_NSHost1, _lib._sel_setHostCacheEnabled_1, flag); } - set multiplier(NSNumber? value) { - return _lib._objc_msgSend_620( - _id, _lib._sel_setMultiplier_1, value?._id ?? ffi.nullptr); + static bool isHostCacheEnabled(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSHost1, _lib._sel_isHostCacheEnabled1); } - int get formatWidth { - return _lib._objc_msgSend_10(_id, _lib._sel_formatWidth1); + static void flushHostCache(SentryCocoa _lib) { + _lib._objc_msgSend_1(_lib._class_NSHost1, _lib._sel_flushHostCache1); } - set formatWidth(int value) { - return _lib._objc_msgSend_483(_id, _lib._sel_setFormatWidth_1, value); + @override + NSHost init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSHost._(_ret, _lib, retain: true, 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 NSHost new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSHost1, _lib._sel_new1); + return NSHost._(_ret, _lib, retain: false, release: true); } - set paddingCharacter(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setPaddingCharacter_1, value?._id ?? ffi.nullptr); + static NSHost allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSHost1, _lib._sel_allocWithZone_1, zone); + return NSHost._(_ret, _lib, retain: false, release: true); } - int get paddingPosition { - return _lib._objc_msgSend_744(_id, _lib._sel_paddingPosition1); + static NSHost alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSHost1, _lib._sel_alloc1); + return NSHost._(_ret, _lib, retain: false, release: true); } - set paddingPosition(int value) { - return _lib._objc_msgSend_745(_id, _lib._sel_setPaddingPosition_1, value); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSHost1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - int get roundingMode { - return _lib._objc_msgSend_746(_id, _lib._sel_roundingMode1); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSHost1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - set roundingMode(int value) { - return _lib._objc_msgSend_747(_id, _lib._sel_setRoundingMode_1, value); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSHost1, _lib._sel_accessInstanceVariablesDirectly1); } - NSNumber? get roundingIncrement { - final _ret = _lib._objc_msgSend_198(_id, _lib._sel_roundingIncrement1); - return _ret.address == 0 - ? null - : NSNumber._(_ret, _lib, retain: true, release: true); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSHost1, _lib._sel_useStoredAccessor1); } - set roundingIncrement(NSNumber? value) { - return _lib._objc_msgSend_620( - _id, _lib._sel_setRoundingIncrement_1, value?._id ?? ffi.nullptr); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSHost1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - int get minimumIntegerDigits { - return _lib._objc_msgSend_10(_id, _lib._sel_minimumIntegerDigits1); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSHost1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - set minimumIntegerDigits(int value) { - return _lib._objc_msgSend_483( - _id, _lib._sel_setMinimumIntegerDigits_1, value); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSHost1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - int get maximumIntegerDigits { - return _lib._objc_msgSend_10(_id, _lib._sel_maximumIntegerDigits1); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSHost1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set maximumIntegerDigits(int value) { - return _lib._objc_msgSend_483( - _id, _lib._sel_setMaximumIntegerDigits_1, value); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSHost1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - int get minimumFractionDigits { - return _lib._objc_msgSend_10(_id, _lib._sel_minimumFractionDigits1); +class NSURLResponse extends NSObject { + NSURLResponse._(ffi.Pointer id, SentryCocoa 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); } - set minimumFractionDigits(int value) { - return _lib._objc_msgSend_483( - _id, _lib._sel_setMinimumFractionDigits_1, value); + /// Returns a [NSURLResponse] that wraps the given raw object pointer. + static NSURLResponse castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLResponse._(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 [NSURLResponse]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLResponse1); } - set maximumFractionDigits(int value) { - return _lib._objc_msgSend_483( - _id, _lib._sel_setMaximumFractionDigits_1, value); + NSURLResponse initWithURL_MIMEType_expectedContentLength_textEncodingName_( + NSURL? URL, NSString? MIMEType, int length, NSString? name) { + final _ret = _lib._objc_msgSend_804( + _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); } - NSNumber? get minimum { - final _ret = _lib._objc_msgSend_198(_id, _lib._sel_minimum1); + NSURL? get URL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URL1); return _ret.address == 0 ? null - : NSNumber._(_ret, _lib, retain: true, release: true); - } - - set minimum(NSNumber? value) { - return _lib._objc_msgSend_620( - _id, _lib._sel_setMinimum_1, value?._id ?? ffi.nullptr); + : NSURL._(_ret, _lib, retain: true, release: true); } - NSNumber? get maximum { - final _ret = _lib._objc_msgSend_198(_id, _lib._sel_maximum1); + NSString? get MIMEType { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_MIMEType1); return _ret.address == 0 ? null - : NSNumber._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - set maximum(NSNumber? value) { - return _lib._objc_msgSend_620( - _id, _lib._sel_setMaximum_1, value?._id ?? ffi.nullptr); + int get expectedContentLength { + return _lib._objc_msgSend_220(_id, _lib._sel_expectedContentLength1); } - NSString? get currencyGroupingSeparator { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_currencyGroupingSeparator1); + 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); } - set currencyGroupingSeparator(NSString? value) { - return _lib._objc_msgSend_509(_id, _lib._sel_setCurrencyGroupingSeparator_1, - value?._id ?? ffi.nullptr); + 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); } - bool get lenient { - return _lib._objc_msgSend_12(_id, _lib._sel_isLenient1); + @override + NSURLResponse init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLResponse._(_ret, _lib, retain: true, release: true); } - set lenient(bool value) { - return _lib._objc_msgSend_492(_id, _lib._sel_setLenient_1, value); + static NSURLResponse new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLResponse1, _lib._sel_new1); + return NSURLResponse._(_ret, _lib, retain: false, release: true); } - bool get usesSignificantDigits { - return _lib._objc_msgSend_12(_id, _lib._sel_usesSignificantDigits1); + static NSURLResponse allocWithZone_( + SentryCocoa _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); } - set usesSignificantDigits(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setUsesSignificantDigits_1, value); + static NSURLResponse alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLResponse1, _lib._sel_alloc1); + return NSURLResponse._(_ret, _lib, retain: false, release: true); } - int get minimumSignificantDigits { - return _lib._objc_msgSend_10(_id, _lib._sel_minimumSignificantDigits1); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSURLResponse1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - set minimumSignificantDigits(int value) { - return _lib._objc_msgSend_483( - _id, _lib._sel_setMinimumSignificantDigits_1, value); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSURLResponse1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - int get maximumSignificantDigits { - return _lib._objc_msgSend_10(_id, _lib._sel_maximumSignificantDigits1); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLResponse1, _lib._sel_accessInstanceVariablesDirectly1); } - set maximumSignificantDigits(int value) { - return _lib._objc_msgSend_483( - _id, _lib._sel_setMaximumSignificantDigits_1, value); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLResponse1, _lib._sel_useStoredAccessor1); } - bool get partialStringValidationEnabled { - return _lib._objc_msgSend_12( - _id, _lib._sel_isPartialStringValidationEnabled1); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSURLResponse1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - set partialStringValidationEnabled(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setPartialStringValidationEnabled_1, value); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSURLResponse1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - bool get hasThousandSeparators { - return _lib._objc_msgSend_12(_id, _lib._sel_hasThousandSeparators1); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSURLResponse1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - set hasThousandSeparators(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setHasThousandSeparators_1, value); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSURLResponse1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSString? get thousandSeparator { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_thousandSeparator1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLResponse1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - set thousandSeparator(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setThousandSeparator_1, value?._id ?? ffi.nullptr); +abstract class NSURLSessionTaskState { + static const int NSURLSessionTaskStateRunning = 0; + static const int NSURLSessionTaskStateSuspended = 1; + static const int NSURLSessionTaskStateCanceling = 2; + static const int NSURLSessionTaskStateCompleted = 3; +} + +void _ObjCBlock_ffiVoid_NSArray_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return block.ref.target + .cast< + ffi.NativeFunction arg0)>>() + .asFunction arg0)>()(arg0); +} + +final _ObjCBlock_ffiVoid_NSArray_closureRegistry = {}; +int _ObjCBlock_ffiVoid_NSArray_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSArray_registerClosure(Function fn) { + final id = ++_ObjCBlock_ffiVoid_NSArray_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSArray_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSArray_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return (_ObjCBlock_ffiVoid_NSArray_closureRegistry[block.ref.target.address] + as void Function(ffi.Pointer))(arg0); +} + +class ObjCBlock_ffiVoid_NSArray extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSArray._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_NSArray.fromFunctionPointer( + SentryCocoa lib, + ffi.Pointer< + ffi + .NativeFunction arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSArray_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_NSArray.fromFunction( + SentryCocoa lib, void Function(ffi.Pointer arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSArray_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSArray_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); } +} - bool get localizesFormat { - return _lib._objc_msgSend_12(_id, _lib._sel_localizesFormat1); +class NSIndexPath extends NSObject { + NSIndexPath._(ffi.Pointer id, SentryCocoa 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); } - set localizesFormat(bool value) { - return _lib._objc_msgSend_492(_id, _lib._sel_setLocalizesFormat_1, value); + /// Returns a [NSIndexPath] that wraps the given raw object pointer. + static NSIndexPath castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSIndexPath._(other, lib, retain: retain, release: release); } - NSString? get format { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_format1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + /// 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_NSIndexPath1); } - set format(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setFormat_1, value?._id ?? ffi.nullptr); + static NSIndexPath indexPathWithIndex_(SentryCocoa _lib, int index) { + final _ret = _lib._objc_msgSend_60( + _lib._class_NSIndexPath1, _lib._sel_indexPathWithIndex_1, index); + return NSIndexPath._(_ret, _lib, retain: true, release: true); } - NSAttributedString? get attributedStringForZero { - final _ret = - _lib._objc_msgSend_679(_id, _lib._sel_attributedStringForZero1); - return _ret.address == 0 - ? null - : NSAttributedString._(_ret, _lib, retain: true, release: true); + static NSIndexPath indexPathWithIndexes_length_( + SentryCocoa _lib, ffi.Pointer indexes, int length) { + final _ret = _lib._objc_msgSend_810(_lib._class_NSIndexPath1, + _lib._sel_indexPathWithIndexes_length_1, indexes, length); + return NSIndexPath._(_ret, _lib, retain: true, release: true); } - set attributedStringForZero(NSAttributedString? value) { - return _lib._objc_msgSend_748( - _id, _lib._sel_setAttributedStringForZero_1, value?._id ?? ffi.nullptr); + NSIndexPath initWithIndexes_length_( + ffi.Pointer indexes, int length) { + final _ret = _lib._objc_msgSend_810( + _id, _lib._sel_initWithIndexes_length_1, indexes, length); + return NSIndexPath._(_ret, _lib, retain: true, release: true); } - NSAttributedString? get attributedStringForNil { - final _ret = _lib._objc_msgSend_679(_id, _lib._sel_attributedStringForNil1); - return _ret.address == 0 - ? null - : NSAttributedString._(_ret, _lib, retain: true, release: true); + NSIndexPath initWithIndex_(int index) { + final _ret = _lib._objc_msgSend_60(_id, _lib._sel_initWithIndex_1, index); + return NSIndexPath._(_ret, _lib, retain: true, release: true); } - set attributedStringForNil(NSAttributedString? value) { - return _lib._objc_msgSend_748( - _id, _lib._sel_setAttributedStringForNil_1, value?._id ?? ffi.nullptr); + NSIndexPath indexPathByAddingIndex_(int index) { + final _ret = + _lib._objc_msgSend_811(_id, _lib._sel_indexPathByAddingIndex_1, index); + return NSIndexPath._(_ret, _lib, retain: true, release: true); } - NSAttributedString? get attributedStringForNotANumber { + NSIndexPath indexPathByRemovingLastIndex() { final _ret = - _lib._objc_msgSend_679(_id, _lib._sel_attributedStringForNotANumber1); - return _ret.address == 0 - ? null - : NSAttributedString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_812(_id, _lib._sel_indexPathByRemovingLastIndex1); + return NSIndexPath._(_ret, _lib, retain: true, release: true); } - set attributedStringForNotANumber(NSAttributedString? value) { - return _lib._objc_msgSend_748( - _id, - _lib._sel_setAttributedStringForNotANumber_1, - value?._id ?? ffi.nullptr); + int indexAtPosition_(int position) { + return _lib._objc_msgSend_88(_id, _lib._sel_indexAtPosition_1, position); } - NSDecimalNumberHandler? get roundingBehavior { - final _ret = _lib._objc_msgSend_749(_id, _lib._sel_roundingBehavior1); - return _ret.address == 0 - ? null - : NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); + int get length { + return _lib._objc_msgSend_10(_id, _lib._sel_length1); } - set roundingBehavior(NSDecimalNumberHandler? value) { - return _lib._objc_msgSend_751( - _id, _lib._sel_setRoundingBehavior_1, value?._id ?? ffi.nullptr); + void getIndexes_range_( + ffi.Pointer indexes, _NSRange positionRange) { + _lib._objc_msgSend_813( + _id, _lib._sel_getIndexes_range_1, indexes, positionRange); + } + + int compare_(NSIndexPath? otherObject) { + return _lib._objc_msgSend_814( + _id, _lib._sel_compare_1, otherObject?._id ?? ffi.nullptr); + } + + void getIndexes_(ffi.Pointer indexes) { + _lib._objc_msgSend_815(_id, _lib._sel_getIndexes_1, indexes); } @override - NSNumberFormatter init() { + NSIndexPath init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSNumberFormatter._(_ret, _lib, retain: true, release: true); + return NSIndexPath._(_ret, _lib, retain: true, release: true); } - static NSNumberFormatter new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSNumberFormatter1, _lib._sel_new1); - return NSNumberFormatter._(_ret, _lib, retain: false, release: true); + static NSIndexPath new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSIndexPath1, _lib._sel_new1); + return NSIndexPath._(_ret, _lib, retain: false, release: true); } - static NSNumberFormatter allocWithZone_( + static NSIndexPath allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSNumberFormatter1, _lib._sel_allocWithZone_1, zone); - return NSNumberFormatter._(_ret, _lib, retain: false, release: true); + _lib._class_NSIndexPath1, _lib._sel_allocWithZone_1, zone); + return NSIndexPath._(_ret, _lib, retain: false, release: true); } - static NSNumberFormatter alloc(SentryCocoa _lib) { + static NSIndexPath alloc(SentryCocoa _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_NSIndexPath1, _lib._sel_alloc1); + return NSIndexPath._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -56665,7 +62257,7 @@ class NSNumberFormatter extends NSFormatter { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSNumberFormatter1, + _lib._class_NSIndexPath1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -56674,24 +62266,24 @@ class NSNumberFormatter extends NSFormatter { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSNumberFormatter1, + _lib._objc_msgSend_15(_lib._class_NSIndexPath1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSNumberFormatter1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSIndexPath1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSNumberFormatter1, _lib._sel_useStoredAccessor1); + _lib._class_NSIndexPath1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSNumberFormatter1, + _lib._class_NSIndexPath1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -56700,7 +62292,7 @@ class NSNumberFormatter extends NSFormatter { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSNumberFormatter1, + _lib._class_NSIndexPath1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -56708,159 +62300,90 @@ class NSNumberFormatter extends NSFormatter { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSNumberFormatter1, + _lib._class_NSIndexPath1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSNumberFormatter1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79( + _lib._class_NSIndexPath1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSNumberFormatter1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSIndexPath1, _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; -} - -class NSDecimalNumberHandler extends NSObject { - NSDecimalNumberHandler._(ffi.Pointer id, SentryCocoa lib, +class NSInflectionRule extends NSObject { + NSInflectionRule._(ffi.Pointer id, SentryCocoa 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, + + /// 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); } - /// Returns a [NSDecimalNumberHandler] that wraps the given raw object pointer. - static NSDecimalNumberHandler castFromPointer( + /// Returns a [NSInflectionRule] that wraps the given raw object pointer. + static NSInflectionRule castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSDecimalNumberHandler._(other, lib, - retain: retain, release: release); + return NSInflectionRule._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSDecimalNumberHandler]. + /// 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_NSDecimalNumberHandler1); + obj._lib._class_NSInflectionRule1); } - static NSDecimalNumberHandler? getDefaultDecimalNumberHandler( - SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_749(_lib._class_NSDecimalNumberHandler1, - _lib._sel_defaultDecimalNumberHandler1); - return _ret.address == 0 - ? null - : NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); + @override + NSObject init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSObject._(_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_750( - _id, - _lib._sel_initWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_1, - roundingMode, - scale, - exact, - overflow, - underflow, - divideByZero); - return NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); + static NSInflectionRule? getAutomaticRule(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_816( + _lib._class_NSInflectionRule1, _lib._sel_automaticRule1); + return _ret.address == 0 + ? null + : NSInflectionRule._(_ret, _lib, retain: true, release: true); } - static NSDecimalNumberHandler - decimalNumberHandlerWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_( - SentryCocoa _lib, - int roundingMode, - int scale, - bool exact, - bool overflow, - bool underflow, - bool divideByZero) { - final _ret = _lib._objc_msgSend_750( - _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 bool canInflectLanguage_(SentryCocoa _lib, NSString? language) { + return _lib._objc_msgSend_59(_lib._class_NSInflectionRule1, + _lib._sel_canInflectLanguage_1, language?._id ?? ffi.nullptr); } - @override - NSDecimalNumberHandler init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); + static bool getCanInflectPreferredLocalization(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_NSInflectionRule1, + _lib._sel_canInflectPreferredLocalization1); } - static NSDecimalNumberHandler new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSDecimalNumberHandler1, _lib._sel_new1); - return NSDecimalNumberHandler._(_ret, _lib, retain: false, release: true); + static NSInflectionRule new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSInflectionRule1, _lib._sel_new1); + return NSInflectionRule._(_ret, _lib, retain: false, release: true); } - static NSDecimalNumberHandler allocWithZone_( + static NSInflectionRule allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSDecimalNumberHandler1, _lib._sel_allocWithZone_1, zone); - return NSDecimalNumberHandler._(_ret, _lib, retain: false, release: true); + _lib._class_NSInflectionRule1, _lib._sel_allocWithZone_1, zone); + return NSInflectionRule._(_ret, _lib, retain: false, release: true); } - static NSDecimalNumberHandler alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSDecimalNumberHandler1, _lib._sel_alloc1); - return NSDecimalNumberHandler._(_ret, _lib, retain: false, release: true); + static NSInflectionRule alloc(SentryCocoa _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_( @@ -56869,7 +62392,7 @@ class NSDecimalNumberHandler extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSDecimalNumberHandler1, + _lib._class_NSInflectionRule1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -56878,24 +62401,24 @@ class NSDecimalNumberHandler extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSDecimalNumberHandler1, + _lib._objc_msgSend_15(_lib._class_NSInflectionRule1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSDecimalNumberHandler1, + return _lib._objc_msgSend_12(_lib._class_NSInflectionRule1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSDecimalNumberHandler1, _lib._sel_useStoredAccessor1); + _lib._class_NSInflectionRule1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSDecimalNumberHandler1, + _lib._class_NSInflectionRule1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -56904,7 +62427,7 @@ class NSDecimalNumberHandler extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSDecimalNumberHandler1, + _lib._class_NSInflectionRule1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -56912,217 +62435,163 @@ class NSDecimalNumberHandler extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSDecimalNumberHandler1, + _lib._class_NSInflectionRule1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSDecimalNumberHandler1, + final _ret = _lib._objc_msgSend_79(_lib._class_NSInflectionRule1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSDecimalNumberHandler1, - _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSInflectionRule1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSRoundingMode { - static const int NSRoundPlain = 0; - static const int NSRoundDown = 1; - static const int NSRoundUp = 2; - static const int NSRoundBankers = 3; -} - -class NSScanner extends NSObject { - NSScanner._(ffi.Pointer id, SentryCocoa lib, +class NSMorphology extends NSObject { + NSMorphology._(ffi.Pointer id, SentryCocoa 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); + /// 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 [NSScanner] that wraps the given raw object pointer. - static NSScanner castFromPointer( + /// Returns a [NSMorphology] that wraps the given raw object pointer. + static NSMorphology castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSScanner._(other, lib, retain: retain, release: release); + return NSMorphology._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSScanner]. + /// 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_NSScanner1); - } - - 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); - } - - int get scanLocation { - return _lib._objc_msgSend_10(_id, _lib._sel_scanLocation1); - } - - set scanLocation(int value) { - return _lib._objc_msgSend_483(_id, _lib._sel_setScanLocation_1, value); - } - - NSCharacterSet? get charactersToBeSkipped { - final _ret = _lib._objc_msgSend_174(_id, _lib._sel_charactersToBeSkipped1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - - set charactersToBeSkipped(NSCharacterSet? value) { - return _lib._objc_msgSend_752( - _id, _lib._sel_setCharactersToBeSkipped_1, value?._id ?? ffi.nullptr); - } - - bool get caseSensitive { - return _lib._objc_msgSend_12(_id, _lib._sel_caseSensitive1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSMorphology1); } - set caseSensitive(bool value) { - return _lib._objc_msgSend_492(_id, _lib._sel_setCaseSensitive_1, value); + int get grammaticalGender { + return _lib._objc_msgSend_817(_id, _lib._sel_grammaticalGender1); } - NSObject get locale { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_locale1); - return NSObject._(_ret, _lib, retain: true, release: true); + set grammaticalGender(int value) { + return _lib._objc_msgSend_818(_id, _lib._sel_setGrammaticalGender_1, value); } - set locale(NSObject value) { - return _lib._objc_msgSend_387(_id, _lib._sel_setLocale_1, value._id); + int get partOfSpeech { + return _lib._objc_msgSend_819(_id, _lib._sel_partOfSpeech1); } - 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); + set partOfSpeech(int value) { + return _lib._objc_msgSend_820(_id, _lib._sel_setPartOfSpeech_1, value); } - bool scanInt_(ffi.Pointer result) { - return _lib._objc_msgSend_753(_id, _lib._sel_scanInt_1, result); + int get number { + return _lib._objc_msgSend_821(_id, _lib._sel_number1); } - bool scanInteger_(ffi.Pointer result) { - return _lib._objc_msgSend_754(_id, _lib._sel_scanInteger_1, result); + set number(int value) { + return _lib._objc_msgSend_822(_id, _lib._sel_setNumber_1, value); } - bool scanLongLong_(ffi.Pointer result) { - return _lib._objc_msgSend_755(_id, _lib._sel_scanLongLong_1, result); + int get grammaticalCase { + return _lib._objc_msgSend_823(_id, _lib._sel_grammaticalCase1); } - bool scanUnsignedLongLong_(ffi.Pointer result) { - return _lib._objc_msgSend_756( - _id, _lib._sel_scanUnsignedLongLong_1, result); + set grammaticalCase(int value) { + return _lib._objc_msgSend_824(_id, _lib._sel_setGrammaticalCase_1, value); } - bool scanFloat_(ffi.Pointer result) { - return _lib._objc_msgSend_757(_id, _lib._sel_scanFloat_1, result); + int get determination { + return _lib._objc_msgSend_825(_id, _lib._sel_determination1); } - bool scanDouble_(ffi.Pointer result) { - return _lib._objc_msgSend_758(_id, _lib._sel_scanDouble_1, result); + set determination(int value) { + return _lib._objc_msgSend_826(_id, _lib._sel_setDetermination_1, value); } - bool scanHexInt_(ffi.Pointer result) { - return _lib._objc_msgSend_759(_id, _lib._sel_scanHexInt_1, result); + int get grammaticalPerson { + return _lib._objc_msgSend_827(_id, _lib._sel_grammaticalPerson1); } - bool scanHexLongLong_(ffi.Pointer result) { - return _lib._objc_msgSend_756(_id, _lib._sel_scanHexLongLong_1, result); + set grammaticalPerson(int value) { + return _lib._objc_msgSend_828(_id, _lib._sel_setGrammaticalPerson_1, value); } - bool scanHexFloat_(ffi.Pointer result) { - return _lib._objc_msgSend_757(_id, _lib._sel_scanHexFloat_1, result); + int get pronounType { + return _lib._objc_msgSend_829(_id, _lib._sel_pronounType1); } - bool scanHexDouble_(ffi.Pointer result) { - return _lib._objc_msgSend_758(_id, _lib._sel_scanHexDouble_1, result); + set pronounType(int value) { + return _lib._objc_msgSend_830(_id, _lib._sel_setPronounType_1, value); } - bool scanString_intoString_( - NSString? string, ffi.Pointer> result) { - return _lib._objc_msgSend_760(_id, _lib._sel_scanString_intoString_1, - string?._id ?? ffi.nullptr, result); + int get definiteness { + return _lib._objc_msgSend_831(_id, _lib._sel_definiteness1); } - bool scanCharactersFromSet_intoString_( - NSCharacterSet? set, ffi.Pointer> result) { - return _lib._objc_msgSend_761( - _id, - _lib._sel_scanCharactersFromSet_intoString_1, - set?._id ?? ffi.nullptr, - result); + set definiteness(int value) { + return _lib._objc_msgSend_832(_id, _lib._sel_setDefiniteness_1, value); } - bool scanUpToString_intoString_( - NSString? string, ffi.Pointer> result) { - return _lib._objc_msgSend_760(_id, _lib._sel_scanUpToString_intoString_1, - string?._id ?? ffi.nullptr, result); + NSMorphologyCustomPronoun customPronounForLanguage_(NSString? language) { + final _ret = _lib._objc_msgSend_833(_id, + _lib._sel_customPronounForLanguage_1, language?._id ?? ffi.nullptr); + return NSMorphologyCustomPronoun._(_ret, _lib, retain: true, release: true); } - bool scanUpToCharactersFromSet_intoString_( - NSCharacterSet? set, ffi.Pointer> result) { - return _lib._objc_msgSend_761( + bool setCustomPronoun_forLanguage_error_(NSMorphologyCustomPronoun? features, + NSString? language, ffi.Pointer> error) { + return _lib._objc_msgSend_834( _id, - _lib._sel_scanUpToCharactersFromSet_intoString_1, - set?._id ?? ffi.nullptr, - result); - } - - bool get atEnd { - return _lib._objc_msgSend_12(_id, _lib._sel_isAtEnd1); - } - - static NSScanner scannerWithString_(SentryCocoa _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); + _lib._sel_setCustomPronoun_forLanguage_error_1, + features?._id ?? ffi.nullptr, + language?._id ?? ffi.nullptr, + error); } - static NSObject localizedScannerWithString_( - SentryCocoa _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); + bool get unspecified { + return _lib._objc_msgSend_12(_id, _lib._sel_isUnspecified1); } - bool scanDecimal_(ffi.Pointer dcm) { - return _lib._objc_msgSend_762(_id, _lib._sel_scanDecimal_1, dcm); + static NSMorphology? getUserMorphology(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_835( + _lib._class_NSMorphology1, _lib._sel_userMorphology1); + return _ret.address == 0 + ? null + : NSMorphology._(_ret, _lib, retain: true, release: true); } @override - NSScanner init() { + NSMorphology init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSScanner._(_ret, _lib, retain: true, release: true); + return NSMorphology._(_ret, _lib, retain: true, release: true); } - static NSScanner new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSScanner1, _lib._sel_new1); - return NSScanner._(_ret, _lib, retain: false, release: true); + static NSMorphology new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMorphology1, _lib._sel_new1); + return NSMorphology._(_ret, _lib, retain: false, release: true); } - static NSScanner allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static NSMorphology allocWithZone_( + SentryCocoa _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); + _lib._class_NSMorphology1, _lib._sel_allocWithZone_1, zone); + return NSMorphology._(_ret, _lib, retain: false, release: true); } - static NSScanner alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSScanner1, _lib._sel_alloc1); - return NSScanner._(_ret, _lib, retain: false, release: true); + static NSMorphology alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMorphology1, _lib._sel_alloc1); + return NSMorphology._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -57131,7 +62600,7 @@ class NSScanner extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSScanner1, + _lib._class_NSMorphology1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -57140,24 +62609,24 @@ class NSScanner extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSScanner1, + _lib._objc_msgSend_15(_lib._class_NSMorphology1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSScanner1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSMorphology1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSScanner1, _lib._sel_useStoredAccessor1); + _lib._class_NSMorphology1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSScanner1, + _lib._class_NSMorphology1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -57166,7 +62635,7 @@ class NSScanner extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSScanner1, + _lib._class_NSMorphology1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -57174,7 +62643,7 @@ class NSScanner extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSScanner1, + _lib._class_NSMorphology1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -57182,139 +62651,219 @@ class NSScanner extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSScanner1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSMorphology1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSScanner1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSMorphology1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -final class NSDecimal extends ffi.Opaque {} +abstract class NSGrammaticalGender { + static const int NSGrammaticalGenderNotSet = 0; + static const int NSGrammaticalGenderFeminine = 1; + static const int NSGrammaticalGenderMasculine = 2; + static const int NSGrammaticalGenderNeuter = 3; +} -class NSException extends NSObject { - NSException._(ffi.Pointer id, SentryCocoa lib, +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, SentryCocoa 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 [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); } - /// Returns a [NSException] that wraps the given raw object pointer. - static NSException castFromPointer( + /// Returns a [NSMorphologyCustomPronoun] that wraps the given raw object pointer. + static NSMorphologyCustomPronoun castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSException._(other, lib, retain: retain, release: release); + return NSMorphologyCustomPronoun._(other, lib, + retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSException]. + /// 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_NSException1); - } - - static NSException exceptionWithName_reason_userInfo_(SentryCocoa _lib, - NSString name, NSString? reason, NSDictionary? userInfo) { - final _ret = _lib._objc_msgSend_763( - _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); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMorphologyCustomPronoun1); } - NSException initWithName_reason_userInfo_( - NSString aName, NSString? aReason, NSDictionary? aUserInfo) { - final _ret = _lib._objc_msgSend_583( - _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); + static bool isSupportedForLanguage_(SentryCocoa _lib, NSString? language) { + return _lib._objc_msgSend_59(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_isSupportedForLanguage_1, language?._id ?? ffi.nullptr); } - NSString get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); - return NSString._(_ret, _lib, retain: true, release: true); + static NSArray requiredKeysForLanguage_( + SentryCocoa _lib, NSString? language) { + final _ret = _lib._objc_msgSend_123(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_requiredKeysForLanguage_1, language?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSString? get reason { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_reason1); + 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); } - NSDictionary? get userInfo { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_userInfo1); + set subjectForm(NSString? value) { + return _lib._objc_msgSend_512( + _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 - : NSDictionary._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - NSArray? get callStackReturnAddresses { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_callStackReturnAddresses1); + set objectForm(NSString? value) { + return _lib._objc_msgSend_512( + _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 - : NSArray._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - NSArray? get callStackSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_callStackSymbols1); + set possessiveForm(NSString? value) { + return _lib._objc_msgSend_512( + _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 - : NSArray._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - void raise() { - _lib._objc_msgSend_1(_id, _lib._sel_raise1); + set possessiveAdjectiveForm(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setPossessiveAdjectiveForm_1, value?._id ?? ffi.nullptr); } - static void raise_format_(SentryCocoa _lib, NSString name, NSString? format) { - _lib._objc_msgSend_515(_lib._class_NSException1, _lib._sel_raise_format_1, - name._id, format?._id ?? ffi.nullptr); + 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); } - static void raise_format_arguments_(SentryCocoa _lib, NSString name, - NSString? format, ffi.Pointer<__va_list_tag> argList) { - _lib._objc_msgSend_764( - _lib._class_NSException1, - _lib._sel_raise_format_arguments_1, - name._id, - format?._id ?? ffi.nullptr, - argList); + set reflexiveForm(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setReflexiveForm_1, value?._id ?? ffi.nullptr); } @override - NSException init() { + NSMorphologyCustomPronoun init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSException._(_ret, _lib, retain: true, release: true); + return NSMorphologyCustomPronoun._(_ret, _lib, retain: true, release: true); } - static NSException new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSException1, _lib._sel_new1); - return NSException._(_ret, _lib, retain: false, release: true); + static NSMorphologyCustomPronoun new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMorphologyCustomPronoun1, _lib._sel_new1); + return NSMorphologyCustomPronoun._(_ret, _lib, + retain: false, release: true); } - static NSException allocWithZone_( + static NSMorphologyCustomPronoun allocWithZone_( SentryCocoa _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); + final _ret = _lib._objc_msgSend_3(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_allocWithZone_1, zone); + return NSMorphologyCustomPronoun._(_ret, _lib, + retain: false, release: true); } - static NSException alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSException1, _lib._sel_alloc1); - return NSException._(_ret, _lib, retain: false, release: true); + static NSMorphologyCustomPronoun alloc(SentryCocoa _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_( @@ -57323,7 +62872,7 @@ class NSException extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSException1, + _lib._class_NSMorphologyCustomPronoun1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -57332,24 +62881,24 @@ class NSException extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSException1, + _lib._objc_msgSend_15(_lib._class_NSMorphologyCustomPronoun1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSException1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSException1, _lib._sel_useStoredAccessor1); + _lib._class_NSMorphologyCustomPronoun1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSException1, + _lib._class_NSMorphologyCustomPronoun1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -57358,7 +62907,7 @@ class NSException extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSException1, + _lib._class_NSMorphologyCustomPronoun1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -57366,339 +62915,179 @@ class NSException extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSException1, + _lib._class_NSMorphologyCustomPronoun1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSException1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSException1, _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSFileHandle extends NSObject { - NSFileHandle._(ffi.Pointer id, SentryCocoa lib, +class NSOperationQueue extends NSObject { + NSOperationQueue._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// 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 [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); } - /// Returns a [NSFileHandle] that wraps the given raw object pointer. - static NSFileHandle castFromPointer( + /// Returns a [NSOperationQueue] that wraps the given raw object pointer. + static NSOperationQueue castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSFileHandle._(other, lib, retain: retain, release: release); + return NSOperationQueue._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSFileHandle]. + /// 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_NSFileHandle1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSOperationQueue1); } - NSData? get availableData { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_availableData1); + NSProgress? get progress { + final _ret = _lib._objc_msgSend_612(_id, _lib._sel_progress1); return _ret.address == 0 ? null - : NSData._(_ret, _lib, retain: true, release: true); - } - - NSFileHandle initWithFileDescriptor_closeOnDealloc_(int fd, bool closeopt) { - final _ret = _lib._objc_msgSend_765( - _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_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSFileHandle._(_ret, _lib, retain: true, release: true); - } - - NSData readDataToEndOfFileAndReturnError_( - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_766( - _id, _lib._sel_readDataToEndOfFileAndReturnError_1, error); - return NSData._(_ret, _lib, retain: true, release: true); - } - - NSData readDataUpToLength_error_( - int length, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_767( - _id, _lib._sel_readDataUpToLength_error_1, length, error); - return NSData._(_ret, _lib, retain: true, release: true); - } - - bool writeData_error_( - NSData? data, ffi.Pointer> error) { - return _lib._objc_msgSend_768( - _id, _lib._sel_writeData_error_1, data?._id ?? ffi.nullptr, error); - } - - bool getOffset_error_(ffi.Pointer offsetInFile, - ffi.Pointer> error) { - return _lib._objc_msgSend_769( - _id, _lib._sel_getOffset_error_1, offsetInFile, error); + : NSProgress._(_ret, _lib, retain: true, release: true); } - bool seekToEndReturningOffset_error_( - ffi.Pointer offsetInFile, - ffi.Pointer> error) { - return _lib._objc_msgSend_769( - _id, _lib._sel_seekToEndReturningOffset_error_1, offsetInFile, error); + void addOperation_(NSOperation? op) { + _lib._objc_msgSend_836( + _id, _lib._sel_addOperation_1, op?._id ?? ffi.nullptr); } - bool seekToOffset_error_( - int offset, ffi.Pointer> error) { - return _lib._objc_msgSend_770( - _id, _lib._sel_seekToOffset_error_1, offset, error); + void addOperations_waitUntilFinished_(NSArray? ops, bool wait) { + _lib._objc_msgSend_839(_id, _lib._sel_addOperations_waitUntilFinished_1, + ops?._id ?? ffi.nullptr, wait); } - bool truncateAtOffset_error_( - int offset, ffi.Pointer> error) { - return _lib._objc_msgSend_770( - _id, _lib._sel_truncateAtOffset_error_1, offset, error); + void addOperationWithBlock_(ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_500(_id, _lib._sel_addOperationWithBlock_1, block._id); } - bool synchronizeAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_236( - _id, _lib._sel_synchronizeAndReturnError_1, error); + void addBarrierBlock_(ObjCBlock_ffiVoid barrier) { + _lib._objc_msgSend_500(_id, _lib._sel_addBarrierBlock_1, barrier._id); } - bool closeAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_236(_id, _lib._sel_closeAndReturnError_1, error); + int get maxConcurrentOperationCount { + return _lib._objc_msgSend_78(_id, _lib._sel_maxConcurrentOperationCount1); } - static NSFileHandle? getFileHandleWithStandardInput(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_771( - _lib._class_NSFileHandle1, _lib._sel_fileHandleWithStandardInput1); - return _ret.address == 0 - ? null - : NSFileHandle._(_ret, _lib, retain: true, release: true); + set maxConcurrentOperationCount(int value) { + return _lib._objc_msgSend_593( + _id, _lib._sel_setMaxConcurrentOperationCount_1, value); } - static NSFileHandle? getFileHandleWithStandardOutput(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_771( - _lib._class_NSFileHandle1, _lib._sel_fileHandleWithStandardOutput1); - return _ret.address == 0 - ? null - : NSFileHandle._(_ret, _lib, retain: true, release: true); + bool get suspended { + return _lib._objc_msgSend_12(_id, _lib._sel_isSuspended1); } - static NSFileHandle? getFileHandleWithStandardError(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_771( - _lib._class_NSFileHandle1, _lib._sel_fileHandleWithStandardError1); - return _ret.address == 0 - ? null - : NSFileHandle._(_ret, _lib, retain: true, release: true); + set suspended(bool value) { + return _lib._objc_msgSend_495(_id, _lib._sel_setSuspended_1, value); } - static NSFileHandle? getFileHandleWithNullDevice(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_771( - _lib._class_NSFileHandle1, _lib._sel_fileHandleWithNullDevice1); + NSString? get name { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); return _ret.address == 0 ? null - : NSFileHandle._(_ret, _lib, retain: true, release: true); - } - - static NSFileHandle fileHandleForReadingAtPath_( - SentryCocoa _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); - } - - static NSFileHandle fileHandleForWritingAtPath_( - SentryCocoa _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 NSFileHandle fileHandleForUpdatingAtPath_( - SentryCocoa _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 NSFileHandle fileHandleForReadingFromURL_error_(SentryCocoa _lib, - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_772( - _lib._class_NSFileHandle1, - _lib._sel_fileHandleForReadingFromURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSFileHandle._(_ret, _lib, retain: true, release: true); - } - - static NSFileHandle fileHandleForWritingToURL_error_(SentryCocoa _lib, - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_772( - _lib._class_NSFileHandle1, - _lib._sel_fileHandleForWritingToURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSFileHandle._(_ret, _lib, retain: true, release: true); - } - - static NSFileHandle fileHandleForUpdatingURL_error_(SentryCocoa _lib, - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_772( - _lib._class_NSFileHandle1, - _lib._sel_fileHandleForUpdatingURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSFileHandle._(_ret, _lib, retain: true, release: true); - } - - void readInBackgroundAndNotifyForModes_(NSArray? modes) { - _lib._objc_msgSend_441(_id, _lib._sel_readInBackgroundAndNotifyForModes_1, - modes?._id ?? ffi.nullptr); - } - - void readInBackgroundAndNotify() { - _lib._objc_msgSend_1(_id, _lib._sel_readInBackgroundAndNotify1); - } - - void readToEndOfFileInBackgroundAndNotifyForModes_(NSArray? modes) { - _lib._objc_msgSend_441( - _id, - _lib._sel_readToEndOfFileInBackgroundAndNotifyForModes_1, - modes?._id ?? ffi.nullptr); - } - - void readToEndOfFileInBackgroundAndNotify() { - _lib._objc_msgSend_1(_id, _lib._sel_readToEndOfFileInBackgroundAndNotify1); - } - - void acceptConnectionInBackgroundAndNotifyForModes_(NSArray? modes) { - _lib._objc_msgSend_441( - _id, - _lib._sel_acceptConnectionInBackgroundAndNotifyForModes_1, - modes?._id ?? ffi.nullptr); - } - - void acceptConnectionInBackgroundAndNotify() { - _lib._objc_msgSend_1(_id, _lib._sel_acceptConnectionInBackgroundAndNotify1); - } - - void waitForDataInBackgroundAndNotifyForModes_(NSArray? modes) { - _lib._objc_msgSend_441( - _id, - _lib._sel_waitForDataInBackgroundAndNotifyForModes_1, - modes?._id ?? ffi.nullptr); - } - - void waitForDataInBackgroundAndNotify() { - _lib._objc_msgSend_1(_id, _lib._sel_waitForDataInBackgroundAndNotify1); - } - - ObjCBlock_ffiVoid_NSFileHandle get readabilityHandler { - final _ret = _lib._objc_msgSend_773(_id, _lib._sel_readabilityHandler1); - return ObjCBlock_ffiVoid_NSFileHandle._(_ret, _lib); - } - - set readabilityHandler(ObjCBlock_ffiVoid_NSFileHandle value) { - return _lib._objc_msgSend_774( - _id, _lib._sel_setReadabilityHandler_1, value._id); - } - - ObjCBlock_ffiVoid_NSFileHandle get writeabilityHandler { - final _ret = _lib._objc_msgSend_773(_id, _lib._sel_writeabilityHandler1); - return ObjCBlock_ffiVoid_NSFileHandle._(_ret, _lib); - } - - set writeabilityHandler(ObjCBlock_ffiVoid_NSFileHandle value) { - return _lib._objc_msgSend_774( - _id, _lib._sel_setWriteabilityHandler_1, value._id); + : NSString._(_ret, _lib, retain: true, release: true); } - NSFileHandle initWithFileDescriptor_(int fd) { - final _ret = - _lib._objc_msgSend_775(_id, _lib._sel_initWithFileDescriptor_1, fd); - return NSFileHandle._(_ret, _lib, retain: true, release: true); + set name(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); } - int get fileDescriptor { - return _lib._objc_msgSend_219(_id, _lib._sel_fileDescriptor1); + int get qualityOfService { + return _lib._objc_msgSend_510(_id, _lib._sel_qualityOfService1); } - NSData readDataToEndOfFile() { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_readDataToEndOfFile1); - return NSData._(_ret, _lib, retain: true, release: true); + set qualityOfService(int value) { + return _lib._objc_msgSend_511(_id, _lib._sel_setQualityOfService_1, value); } - NSData readDataOfLength_(int length) { - final _ret = - _lib._objc_msgSend_330(_id, _lib._sel_readDataOfLength_1, length); - return NSData._(_ret, _lib, retain: true, release: true); + NSObject get underlyingQueue { + final _ret = _lib._objc_msgSend_840(_id, _lib._sel_underlyingQueue1); + return NSObject._(_ret, _lib, retain: true, release: true); } - void writeData_(NSData? data) { - _lib._objc_msgSend_263( - _id, _lib._sel_writeData_1, data?._id ?? ffi.nullptr); + set underlyingQueue(NSObject value) { + return _lib._objc_msgSend_841( + _id, _lib._sel_setUnderlyingQueue_1, value._id); } - int get offsetInFile { - return _lib._objc_msgSend_154(_id, _lib._sel_offsetInFile1); + void cancelAllOperations() { + _lib._objc_msgSend_1(_id, _lib._sel_cancelAllOperations1); } - int seekToEndOfFile() { - return _lib._objc_msgSend_154(_id, _lib._sel_seekToEndOfFile1); + void waitUntilAllOperationsAreFinished() { + _lib._objc_msgSend_1(_id, _lib._sel_waitUntilAllOperationsAreFinished1); } - void seekToFileOffset_(int offset) { - _lib._objc_msgSend_776(_id, _lib._sel_seekToFileOffset_1, offset); + static NSOperationQueue? getCurrentQueue(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_842( + _lib._class_NSOperationQueue1, _lib._sel_currentQueue1); + return _ret.address == 0 + ? null + : NSOperationQueue._(_ret, _lib, retain: true, release: true); } - void truncateFileAtOffset_(int offset) { - _lib._objc_msgSend_776(_id, _lib._sel_truncateFileAtOffset_1, offset); + static NSOperationQueue? getMainQueue(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_842( + _lib._class_NSOperationQueue1, _lib._sel_mainQueue1); + return _ret.address == 0 + ? null + : NSOperationQueue._(_ret, _lib, retain: true, release: true); } - void synchronizeFile() { - _lib._objc_msgSend_1(_id, _lib._sel_synchronizeFile1); + NSArray? get operations { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_operations1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - void closeFile() { - _lib._objc_msgSend_1(_id, _lib._sel_closeFile1); + int get operationCount { + return _lib._objc_msgSend_10(_id, _lib._sel_operationCount1); } @override - NSFileHandle init() { + NSOperationQueue init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSFileHandle._(_ret, _lib, retain: true, release: true); + return NSOperationQueue._(_ret, _lib, retain: true, release: true); } - static NSFileHandle new1(SentryCocoa _lib) { + static NSOperationQueue new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSFileHandle1, _lib._sel_new1); - return NSFileHandle._(_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 NSFileHandle allocWithZone_( + static NSOperationQueue allocWithZone_( SentryCocoa _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); + _lib._class_NSOperationQueue1, _lib._sel_allocWithZone_1, zone); + return NSOperationQueue._(_ret, _lib, retain: false, release: true); } - static NSFileHandle alloc(SentryCocoa _lib) { + static NSOperationQueue alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSFileHandle1, _lib._sel_alloc1); - return NSFileHandle._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSOperationQueue1, _lib._sel_alloc1); + return NSOperationQueue._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -57707,7 +63096,7 @@ class NSFileHandle extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSFileHandle1, + _lib._class_NSOperationQueue1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -57716,24 +63105,24 @@ class NSFileHandle extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSFileHandle1, + _lib._objc_msgSend_15(_lib._class_NSOperationQueue1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSFileHandle1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSOperationQueue1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSFileHandle1, _lib._sel_useStoredAccessor1); + _lib._class_NSOperationQueue1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSFileHandle1, + _lib._class_NSOperationQueue1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -57742,7 +63131,7 @@ class NSFileHandle extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSFileHandle1, + _lib._class_NSOperationQueue1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -57750,225 +63139,173 @@ class NSFileHandle extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSFileHandle1, + _lib._class_NSOperationQueue1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSFileHandle1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_NSOperationQueue1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSFileHandle1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSOperationQueue1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -void _ObjCBlock_ffiVoid_NSFileHandle_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} +class NSOperation extends NSObject { + NSOperation._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); -final _ObjCBlock_ffiVoid_NSFileHandle_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSFileHandle_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSFileHandle_registerClosure( - Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSFileHandle_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSFileHandle_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + /// 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); + } -void _ObjCBlock_ffiVoid_NSFileHandle_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return (_ObjCBlock_ffiVoid_NSFileHandle_closureRegistry[block - .ref.target.address] as void Function(ffi.Pointer))(arg0); -} + /// Returns a [NSOperation] that wraps the given raw object pointer. + static NSOperation castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSOperation._(other, lib, retain: retain, release: release); + } -class ObjCBlock_ffiVoid_NSFileHandle extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSFileHandle._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); + /// 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); + } - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSFileHandle.fromFunctionPointer( - SentryCocoa lib, - ffi.Pointer< - ffi - .NativeFunction arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSFileHandle_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + void start() { + _lib._objc_msgSend_1(_id, _lib._sel_start1); + } - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSFileHandle.fromFunction( - SentryCocoa lib, void Function(ffi.Pointer arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSFileHandle_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_NSFileHandle_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 main() { + _lib._objc_msgSend_1(_id, _lib._sel_main1); } -} -class NSHTTPCookieStorage extends NSObject { - NSHTTPCookieStorage._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + bool get cancelled { + return _lib._objc_msgSend_12(_id, _lib._sel_isCancelled1); + } - /// 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); + void cancel() { + _lib._objc_msgSend_1(_id, _lib._sel_cancel1); } - /// Returns a [NSHTTPCookieStorage] that wraps the given raw object pointer. - static NSHTTPCookieStorage castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSHTTPCookieStorage._(other, lib, retain: retain, release: release); + bool get executing { + return _lib._objc_msgSend_12(_id, _lib._sel_isExecuting1); } - /// 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 finished { + return _lib._objc_msgSend_12(_id, _lib._sel_isFinished1); } - static NSHTTPCookieStorage? getSharedHTTPCookieStorage(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_777( - _lib._class_NSHTTPCookieStorage1, _lib._sel_sharedHTTPCookieStorage1); - return _ret.address == 0 - ? null - : NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); + bool get concurrent { + return _lib._objc_msgSend_12(_id, _lib._sel_isConcurrent1); } - static NSHTTPCookieStorage sharedCookieStorageForGroupContainerIdentifier_( - SentryCocoa _lib, NSString? identifier) { - final _ret = _lib._objc_msgSend_778( - _lib._class_NSHTTPCookieStorage1, - _lib._sel_sharedCookieStorageForGroupContainerIdentifier_1, - identifier?._id ?? ffi.nullptr); - return NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); + bool get asynchronous { + return _lib._objc_msgSend_12(_id, _lib._sel_isAsynchronous1); } - NSArray? get cookies { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_cookies1); + bool get ready { + return _lib._objc_msgSend_12(_id, _lib._sel_isReady1); + } + + void addDependency_(NSOperation? op) { + _lib._objc_msgSend_836( + _id, _lib._sel_addDependency_1, op?._id ?? ffi.nullptr); + } + + void removeDependency_(NSOperation? op) { + _lib._objc_msgSend_836( + _id, _lib._sel_removeDependency_1, op?._id ?? ffi.nullptr); + } + + NSArray? get dependencies { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_dependencies1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } - void setCookie_(NSHTTPCookie? cookie) { - _lib._objc_msgSend_781( - _id, _lib._sel_setCookie_1, cookie?._id ?? ffi.nullptr); + int get queuePriority { + return _lib._objc_msgSend_837(_id, _lib._sel_queuePriority1); } - void deleteCookie_(NSHTTPCookie? cookie) { - _lib._objc_msgSend_781( - _id, _lib._sel_deleteCookie_1, cookie?._id ?? ffi.nullptr); + set queuePriority(int value) { + return _lib._objc_msgSend_838(_id, _lib._sel_setQueuePriority_1, value); } - void removeCookiesSinceDate_(NSDate? date) { - _lib._objc_msgSend_504( - _id, _lib._sel_removeCookiesSinceDate_1, date?._id ?? ffi.nullptr); + ObjCBlock_ffiVoid get completionBlock { + final _ret = _lib._objc_msgSend_621(_id, _lib._sel_completionBlock1); + return ObjCBlock_ffiVoid._(_ret, _lib); } - NSArray cookiesForURL_(NSURL? URL) { - final _ret = _lib._objc_msgSend_124( - _id, _lib._sel_cookiesForURL_1, URL?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + set completionBlock(ObjCBlock_ffiVoid value) { + return _lib._objc_msgSend_622( + _id, _lib._sel_setCompletionBlock_1, value._id); + } + + void waitUntilFinished() { + _lib._objc_msgSend_1(_id, _lib._sel_waitUntilFinished1); } - void setCookies_forURL_mainDocumentURL_( - NSArray? cookies, NSURL? URL, NSURL? mainDocumentURL) { - _lib._objc_msgSend_782( - _id, - _lib._sel_setCookies_forURL_mainDocumentURL_1, - cookies?._id ?? ffi.nullptr, - URL?._id ?? ffi.nullptr, - mainDocumentURL?._id ?? ffi.nullptr); + double get threadPriority { + return _lib._objc_msgSend_155(_id, _lib._sel_threadPriority1); } - int get cookieAcceptPolicy { - return _lib._objc_msgSend_783(_id, _lib._sel_cookieAcceptPolicy1); + set threadPriority(double value) { + return _lib._objc_msgSend_509(_id, _lib._sel_setThreadPriority_1, value); } - set cookieAcceptPolicy(int value) { - return _lib._objc_msgSend_784( - _id, _lib._sel_setCookieAcceptPolicy_1, value); + int get qualityOfService { + return _lib._objc_msgSend_510(_id, _lib._sel_qualityOfService1); } - NSArray sortedCookiesUsingDescriptors_(NSArray? sortOrder) { - final _ret = _lib._objc_msgSend_63( - _id, - _lib._sel_sortedCookiesUsingDescriptors_1, - sortOrder?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + set qualityOfService(int value) { + return _lib._objc_msgSend_511(_id, _lib._sel_setQualityOfService_1, value); } - void storeCookies_forTask_(NSArray? cookies, NSURLSessionTask? task) { - _lib._objc_msgSend_804(_id, _lib._sel_storeCookies_forTask_1, - cookies?._id ?? ffi.nullptr, task?._id ?? ffi.nullptr); + 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); } - void getCookiesForTask_completionHandler_( - NSURLSessionTask? task, ObjCBlock_ffiVoid_NSArray completionHandler) { - _lib._objc_msgSend_805(_id, _lib._sel_getCookiesForTask_completionHandler_1, - task?._id ?? ffi.nullptr, completionHandler._id); + set name(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); } @override - NSHTTPCookieStorage init() { + NSOperation init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); + return NSOperation._(_ret, _lib, retain: true, release: true); } - static NSHTTPCookieStorage new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSHTTPCookieStorage1, _lib._sel_new1); - return NSHTTPCookieStorage._(_ret, _lib, retain: false, release: true); + static NSOperation new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSOperation1, _lib._sel_new1); + return NSOperation._(_ret, _lib, retain: false, release: true); } - static NSHTTPCookieStorage allocWithZone_( + static NSOperation allocWithZone_( SentryCocoa _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); + _lib._class_NSOperation1, _lib._sel_allocWithZone_1, zone); + return NSOperation._(_ret, _lib, retain: false, release: true); } - static NSHTTPCookieStorage alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSHTTPCookieStorage1, _lib._sel_alloc1); - return NSHTTPCookieStorage._(_ret, _lib, retain: false, release: true); + static NSOperation alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSOperation1, _lib._sel_alloc1); + return NSOperation._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -57977,7 +63314,7 @@ class NSHTTPCookieStorage extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSHTTPCookieStorage1, + _lib._class_NSOperation1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -57986,24 +63323,24 @@ class NSHTTPCookieStorage extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSHTTPCookieStorage1, + _lib._objc_msgSend_15(_lib._class_NSOperation1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSHTTPCookieStorage1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSOperation1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSHTTPCookieStorage1, _lib._sel_useStoredAccessor1); + _lib._class_NSOperation1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSHTTPCookieStorage1, + _lib._class_NSOperation1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -58012,7 +63349,7 @@ class NSHTTPCookieStorage extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSHTTPCookieStorage1, + _lib._class_NSOperation1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -58020,187 +63357,179 @@ class NSHTTPCookieStorage extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSHTTPCookieStorage1, + _lib._class_NSOperation1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSHTTPCookieStorage1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79( + _lib._class_NSOperation1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSHTTPCookieStorage1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSOperation1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSHTTPCookie extends NSObject { - NSHTTPCookie._(ffi.Pointer id, SentryCocoa lib, +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 NSPointerArray extends NSObject { + NSPointerArray._(ffi.Pointer id, SentryCocoa 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 [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 [NSHTTPCookie] that wraps the given raw object pointer. - static NSHTTPCookie castFromPointer( + /// Returns a [NSPointerArray] that wraps the given raw object pointer. + static NSPointerArray castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSHTTPCookie._(other, lib, retain: retain, release: release); + return NSPointerArray._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSHTTPCookie]. + /// 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_NSHTTPCookie1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSPointerArray1); } - NSHTTPCookie initWithProperties_(NSDictionary? properties) { - final _ret = _lib._objc_msgSend_149( - _id, _lib._sel_initWithProperties_1, properties?._id ?? ffi.nullptr); - return NSHTTPCookie._(_ret, _lib, retain: true, release: true); + NSPointerArray initWithOptions_(int options) { + final _ret = + _lib._objc_msgSend_843(_id, _lib._sel_initWithOptions_1, options); + return NSPointerArray._(_ret, _lib, retain: true, release: true); } - static NSHTTPCookie cookieWithProperties_( - SentryCocoa _lib, NSDictionary? properties) { - final _ret = _lib._objc_msgSend_779(_lib._class_NSHTTPCookie1, - _lib._sel_cookieWithProperties_1, properties?._id ?? ffi.nullptr); - return NSHTTPCookie._(_ret, _lib, retain: true, release: true); + NSPointerArray initWithPointerFunctions_(NSPointerFunctions? functions) { + final _ret = _lib._objc_msgSend_857(_id, + _lib._sel_initWithPointerFunctions_1, functions?._id ?? ffi.nullptr); + return NSPointerArray._(_ret, _lib, retain: true, release: true); } - static NSDictionary requestHeaderFieldsWithCookies_( - SentryCocoa _lib, NSArray? cookies) { - final _ret = _lib._objc_msgSend_475( - _lib._class_NSHTTPCookie1, - _lib._sel_requestHeaderFieldsWithCookies_1, - cookies?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + static NSPointerArray pointerArrayWithOptions_( + SentryCocoa _lib, int options) { + final _ret = _lib._objc_msgSend_858(_lib._class_NSPointerArray1, + _lib._sel_pointerArrayWithOptions_1, options); + return NSPointerArray._(_ret, _lib, retain: true, release: true); } - static NSArray cookiesWithResponseHeaderFields_forURL_( - SentryCocoa _lib, NSDictionary? headerFields, NSURL? URL) { - final _ret = _lib._objc_msgSend_780( - _lib._class_NSHTTPCookie1, - _lib._sel_cookiesWithResponseHeaderFields_forURL_1, - headerFields?._id ?? ffi.nullptr, - URL?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + static NSPointerArray pointerArrayWithPointerFunctions_( + SentryCocoa _lib, NSPointerFunctions? functions) { + final _ret = _lib._objc_msgSend_859( + _lib._class_NSPointerArray1, + _lib._sel_pointerArrayWithPointerFunctions_1, + functions?._id ?? ffi.nullptr); + return NSPointerArray._(_ret, _lib, retain: true, release: true); } - NSDictionary? get properties { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_properties1); + NSPointerFunctions? get pointerFunctions { + final _ret = _lib._objc_msgSend_860(_id, _lib._sel_pointerFunctions1); return _ret.address == 0 ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + : NSPointerFunctions._(_ret, _lib, retain: true, release: true); } - int get version { - return _lib._objc_msgSend_10(_id, _lib._sel_version1); + ffi.Pointer pointerAtIndex_(int index) { + return _lib._objc_msgSend_286(_id, _lib._sel_pointerAtIndex_1, index); } - 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); + void addPointer_(ffi.Pointer pointer) { + _lib._objc_msgSend_47(_id, _lib._sel_addPointer_1, pointer); } - 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); + void removePointerAtIndex_(int index) { + _lib._objc_msgSend_441(_id, _lib._sel_removePointerAtIndex_1, index); } - NSDate? get expiresDate { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_expiresDate1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + void insertPointer_atIndex_(ffi.Pointer item, int index) { + _lib._objc_msgSend_21(_id, _lib._sel_insertPointer_atIndex_1, item, index); } - bool get sessionOnly { - return _lib._objc_msgSend_12(_id, _lib._sel_isSessionOnly1); + void replacePointerAtIndex_withPointer_( + int index, ffi.Pointer item) { + _lib._objc_msgSend_861( + _id, _lib._sel_replacePointerAtIndex_withPointer_1, index, item); } - 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 compact() { + _lib._objc_msgSend_1(_id, _lib._sel_compact1); } - NSString? get path { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_path1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + int get count { + return _lib._objc_msgSend_10(_id, _lib._sel_count1); } - bool get secure { - return _lib._objc_msgSend_12(_id, _lib._sel_isSecure1); + set count(int value) { + return _lib._objc_msgSend_486(_id, _lib._sel_setCount_1, value); } - bool get HTTPOnly { - return _lib._objc_msgSend_12(_id, _lib._sel_isHTTPOnly1); + static NSObject pointerArrayWithStrongObjects(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSPointerArray1, _lib._sel_pointerArrayWithStrongObjects1); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSString? get comment { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_comment1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSObject pointerArrayWithWeakObjects(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSPointerArray1, _lib._sel_pointerArrayWithWeakObjects1); + return NSObject._(_ret, _lib, retain: true, release: true); } - 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); + static NSPointerArray strongObjectsPointerArray(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_862( + _lib._class_NSPointerArray1, _lib._sel_strongObjectsPointerArray1); + return NSPointerArray._(_ret, _lib, retain: true, release: true); } - NSArray? get portList { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_portList1); + static NSPointerArray weakObjectsPointerArray(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_862( + _lib._class_NSPointerArray1, _lib._sel_weakObjectsPointerArray1); + return NSPointerArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get allObjects { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_allObjects1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } - NSString get sameSitePolicy { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sameSitePolicy1); - return NSString._(_ret, _lib, retain: true, release: true); - } - @override - NSHTTPCookie init() { + NSPointerArray init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSHTTPCookie._(_ret, _lib, retain: true, release: true); + return NSPointerArray._(_ret, _lib, retain: true, release: true); } - static NSHTTPCookie new1(SentryCocoa _lib) { + static NSPointerArray new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSHTTPCookie1, _lib._sel_new1); - return NSHTTPCookie._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSPointerArray1, _lib._sel_new1); + return NSPointerArray._(_ret, _lib, retain: false, release: true); } - static NSHTTPCookie allocWithZone_( + static NSPointerArray allocWithZone_( SentryCocoa _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); + _lib._class_NSPointerArray1, _lib._sel_allocWithZone_1, zone); + return NSPointerArray._(_ret, _lib, retain: false, release: true); } - static NSHTTPCookie alloc(SentryCocoa _lib) { + static NSPointerArray alloc(SentryCocoa _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_NSPointerArray1, _lib._sel_alloc1); + return NSPointerArray._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -58209,7 +63538,7 @@ class NSHTTPCookie extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSHTTPCookie1, + _lib._class_NSPointerArray1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -58218,24 +63547,24 @@ class NSHTTPCookie extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSHTTPCookie1, + _lib._objc_msgSend_15(_lib._class_NSPointerArray1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSHTTPCookie1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSPointerArray1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSHTTPCookie1, _lib._sel_useStoredAccessor1); + _lib._class_NSPointerArray1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSHTTPCookie1, + _lib._class_NSPointerArray1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -58244,7 +63573,7 @@ class NSHTTPCookie extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSHTTPCookie1, + _lib._class_NSPointerArray1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -58252,7 +63581,7 @@ class NSHTTPCookie extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSHTTPCookie1, + _lib._class_NSPointerArray1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -58260,215 +63589,241 @@ class NSHTTPCookie extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSHTTPCookie1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSPointerArray1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSHTTPCookie1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSPointerArray1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSHTTPCookieAcceptPolicy { - static const int NSHTTPCookieAcceptPolicyAlways = 0; - static const int NSHTTPCookieAcceptPolicyNever = 1; - static const int NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain = 2; +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 NSURLSessionTask extends NSObject { - NSURLSessionTask._(ffi.Pointer id, SentryCocoa lib, +class NSPointerFunctions extends NSObject { + NSPointerFunctions._(ffi.Pointer id, SentryCocoa 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, + /// 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 [NSURLSessionTask] that wraps the given raw object pointer. - static NSURLSessionTask castFromPointer( + /// Returns a [NSPointerFunctions] that wraps the given raw object pointer. + static NSPointerFunctions castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLSessionTask._(other, lib, retain: retain, release: release); + return NSPointerFunctions._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLSessionTask]. + /// 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_NSURLSessionTask1); - } - - int get taskIdentifier { - return _lib._objc_msgSend_10(_id, _lib._sel_taskIdentifier1); - } - - NSURLRequest? get originalRequest { - final _ret = _lib._objc_msgSend_799(_id, _lib._sel_originalRequest1); - return _ret.address == 0 - ? null - : NSURLRequest._(_ret, _lib, retain: true, release: true); - } - - NSURLRequest? get currentRequest { - final _ret = _lib._objc_msgSend_799(_id, _lib._sel_currentRequest1); - return _ret.address == 0 - ? null - : NSURLRequest._(_ret, _lib, retain: true, release: true); - } - - NSURLResponse? get response { - final _ret = _lib._objc_msgSend_801(_id, _lib._sel_response1); - return _ret.address == 0 - ? null - : NSURLResponse._(_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); - } - - set delegate(NSObject? value) { - return _lib._objc_msgSend_387( - _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); - } - - NSProgress? get progress { - final _ret = _lib._objc_msgSend_609(_id, _lib._sel_progress1); - return _ret.address == 0 - ? null - : NSProgress._(_ret, _lib, retain: true, release: true); - } - - NSDate? get earliestBeginDate { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_earliestBeginDate1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); - } - - set earliestBeginDate(NSDate? value) { - return _lib._objc_msgSend_525( - _id, _lib._sel_setEarliestBeginDate_1, value?._id ?? ffi.nullptr); - } - - int get countOfBytesClientExpectsToSend { - return _lib._objc_msgSend_616( - _id, _lib._sel_countOfBytesClientExpectsToSend1); + obj._lib._class_NSPointerFunctions1); } - set countOfBytesClientExpectsToSend(int value) { - return _lib._objc_msgSend_617( - _id, _lib._sel_setCountOfBytesClientExpectsToSend_1, value); + NSPointerFunctions initWithOptions_(int options) { + final _ret = + _lib._objc_msgSend_843(_id, _lib._sel_initWithOptions_1, options); + return NSPointerFunctions._(_ret, _lib, retain: true, release: true); } - int get countOfBytesClientExpectsToReceive { - return _lib._objc_msgSend_616( - _id, _lib._sel_countOfBytesClientExpectsToReceive1); + static NSPointerFunctions pointerFunctionsWithOptions_( + SentryCocoa _lib, int options) { + final _ret = _lib._objc_msgSend_844(_lib._class_NSPointerFunctions1, + _lib._sel_pointerFunctionsWithOptions_1, options); + return NSPointerFunctions._(_ret, _lib, retain: true, release: true); } - set countOfBytesClientExpectsToReceive(int value) { - return _lib._objc_msgSend_617( - _id, _lib._sel_setCountOfBytesClientExpectsToReceive_1, value); + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>>)>> + get hashFunction { + return _lib._objc_msgSend_845(_id, _lib._sel_hashFunction1); } - int get countOfBytesSent { - return _lib._objc_msgSend_616(_id, _lib._sel_countOfBytesSent1); + 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_846(_id, _lib._sel_setHashFunction_1, value); } - int get countOfBytesReceived { - return _lib._objc_msgSend_616(_id, _lib._sel_countOfBytesReceived1); + 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_847(_id, _lib._sel_isEqualFunction1); } - int get countOfBytesExpectedToSend { - return _lib._objc_msgSend_616(_id, _lib._sel_countOfBytesExpectedToSend1); + 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_848(_id, _lib._sel_setIsEqualFunction_1, value); } - int get countOfBytesExpectedToReceive { - return _lib._objc_msgSend_616( - _id, _lib._sel_countOfBytesExpectedToReceive1); + ffi.Pointer< + ffi.NativeFunction)>> + get sizeFunction { + return _lib._objc_msgSend_849(_id, _lib._sel_sizeFunction1); } - 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); + set sizeFunction( + ffi.Pointer< + ffi + .NativeFunction)>> + value) { + return _lib._objc_msgSend_850(_id, _lib._sel_setSizeFunction_1, value); } - set taskDescription(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setTaskDescription_1, value?._id ?? ffi.nullptr); + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>> + get descriptionFunction { + return _lib._objc_msgSend_851(_id, _lib._sel_descriptionFunction1); } - void cancel() { - _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + set descriptionFunction( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>> + value) { + return _lib._objc_msgSend_852( + _id, _lib._sel_setDescriptionFunction_1, value); } - int get state { - return _lib._objc_msgSend_802(_id, _lib._sel_state1); + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>>)>> + get relinquishFunction { + return _lib._objc_msgSend_853(_id, _lib._sel_relinquishFunction1); } - NSError? get error { - final _ret = _lib._objc_msgSend_298(_id, _lib._sel_error1); - return _ret.address == 0 - ? null - : NSError._(_ret, _lib, retain: true, release: true); + 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_854( + _id, _lib._sel_setRelinquishFunction_1, value); } - void suspend() { - _lib._objc_msgSend_1(_id, _lib._sel_suspend1); + 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_855(_id, _lib._sel_acquireFunction1); } - void resume() { - _lib._objc_msgSend_1(_id, _lib._sel_resume1); + 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_856(_id, _lib._sel_setAcquireFunction_1, value); } - double get priority { - return _lib._objc_msgSend_221(_id, _lib._sel_priority1); + bool get usesStrongWriteBarrier { + return _lib._objc_msgSend_12(_id, _lib._sel_usesStrongWriteBarrier1); } - set priority(double value) { - return _lib._objc_msgSend_803(_id, _lib._sel_setPriority_1, value); + set usesStrongWriteBarrier(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setUsesStrongWriteBarrier_1, value); } - - bool get prefersIncrementalDelivery { - return _lib._objc_msgSend_12(_id, _lib._sel_prefersIncrementalDelivery1); + + bool get usesWeakReadAndWriteBarriers { + return _lib._objc_msgSend_12(_id, _lib._sel_usesWeakReadAndWriteBarriers1); } - set prefersIncrementalDelivery(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setPrefersIncrementalDelivery_1, value); + set usesWeakReadAndWriteBarriers(bool value) { + return _lib._objc_msgSend_495( + _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(SentryCocoa _lib) { + static NSPointerFunctions new1(SentryCocoa _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 allocWithZone_( + static NSPointerFunctions allocWithZone_( SentryCocoa _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); + _lib._class_NSPointerFunctions1, _lib._sel_allocWithZone_1, zone); + return NSPointerFunctions._(_ret, _lib, retain: false, release: true); } - static NSURLSessionTask alloc(SentryCocoa _lib) { + static NSPointerFunctions alloc(SentryCocoa _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_( @@ -58477,7 +63832,7 @@ class NSURLSessionTask extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSURLSessionTask1, + _lib._class_NSPointerFunctions1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -58486,24 +63841,24 @@ class NSURLSessionTask extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLSessionTask1, + _lib._objc_msgSend_15(_lib._class_NSPointerFunctions1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionTask1, + return _lib._objc_msgSend_12(_lib._class_NSPointerFunctions1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLSessionTask1, _lib._sel_useStoredAccessor1); + _lib._class_NSPointerFunctions1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionTask1, + _lib._class_NSPointerFunctions1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -58512,7 +63867,7 @@ class NSURLSessionTask extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLSessionTask1, + _lib._class_NSPointerFunctions1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -58520,203 +63875,274 @@ class NSURLSessionTask extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSURLSessionTask1, + _lib._class_NSPointerFunctions1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionTask1, + final _ret = _lib._objc_msgSend_79(_lib._class_NSPointerFunctions1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _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 extends NSObject { - NSURLRequest._(ffi.Pointer id, SentryCocoa lib, +class NSProcessInfo extends NSObject { + NSProcessInfo._(ffi.Pointer id, SentryCocoa 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 [NSURLRequest] that wraps the given raw object pointer. - static NSURLRequest castFromPointer( + /// Returns a [NSProcessInfo] that wraps the given raw object pointer. + static NSProcessInfo castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLRequest._(other, lib, retain: retain, release: release); + return NSProcessInfo._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLRequest]. + /// 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_NSURLRequest1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSProcessInfo1); } - static NSURLRequest requestWithURL_(SentryCocoa _lib, NSURL? URL) { - final _ret = _lib._objc_msgSend_241(_lib._class_NSURLRequest1, - _lib._sel_requestWithURL_1, URL?._id ?? ffi.nullptr); - return NSURLRequest._(_ret, _lib, retain: true, release: true); + static NSProcessInfo? getProcessInfo(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_863( + _lib._class_NSProcessInfo1, _lib._sel_processInfo1); + return _ret.address == 0 + ? null + : NSProcessInfo._(_ret, _lib, retain: true, release: true); } - static bool getSupportsSecureCoding(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLRequest1, _lib._sel_supportsSecureCoding1); + NSDictionary? get environment { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_environment1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSURLRequest requestWithURL_cachePolicy_timeoutInterval_( - SentryCocoa _lib, NSURL? URL, int cachePolicy, double timeoutInterval) { - final _ret = _lib._objc_msgSend_785( - _lib._class_NSURLRequest1, - _lib._sel_requestWithURL_cachePolicy_timeoutInterval_1, - URL?._id ?? ffi.nullptr, - cachePolicy, - timeoutInterval); - return NSURLRequest._(_ret, _lib, retain: true, release: true); + NSArray? get arguments { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_arguments1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSURLRequest initWithURL_(NSURL? URL) { - final _ret = _lib._objc_msgSend_241( - _id, _lib._sel_initWithURL_1, URL?._id ?? ffi.nullptr); - return NSURLRequest._(_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); } - NSURLRequest initWithURL_cachePolicy_timeoutInterval_( - NSURL? URL, int cachePolicy, double timeoutInterval) { - final _ret = _lib._objc_msgSend_785( - _id, - _lib._sel_initWithURL_cachePolicy_timeoutInterval_1, - URL?._id ?? ffi.nullptr, - cachePolicy, - timeoutInterval); - return NSURLRequest._(_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); } - NSURL? get URL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URL1); + set processName(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setProcessName_1, value?._id ?? ffi.nullptr); + } + + int get processIdentifier { + return _lib._objc_msgSend_219(_id, _lib._sel_processIdentifier1); + } + + NSString? get globallyUniqueString { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_globallyUniqueString1); return _ret.address == 0 ? null - : NSURL._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - int get cachePolicy { - return _lib._objc_msgSend_786(_id, _lib._sel_cachePolicy1); + int operatingSystem() { + return _lib._objc_msgSend_10(_id, _lib._sel_operatingSystem1); } - double get timeoutInterval { - return _lib._objc_msgSend_155(_id, _lib._sel_timeoutInterval1); + NSString operatingSystemName() { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_operatingSystemName1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSURL? get mainDocumentURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_mainDocumentURL1); + NSString? get operatingSystemVersionString { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_operatingSystemVersionString1); return _ret.address == 0 ? null - : NSURL._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - int get networkServiceType { - return _lib._objc_msgSend_787(_id, _lib._sel_networkServiceType1); + void getOperatingSystemVersion(ffi.Pointer stret) { + _lib._objc_msgSend_864(stret, _id, _lib._sel_operatingSystemVersion1); } - bool get allowsCellularAccess { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsCellularAccess1); + int get processorCount { + return _lib._objc_msgSend_10(_id, _lib._sel_processorCount1); } - bool get allowsExpensiveNetworkAccess { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsExpensiveNetworkAccess1); + int get activeProcessorCount { + return _lib._objc_msgSend_10(_id, _lib._sel_activeProcessorCount1); } - bool get allowsConstrainedNetworkAccess { + int get physicalMemory { + return _lib._objc_msgSend_154(_id, _lib._sel_physicalMemory1); + } + + bool isOperatingSystemAtLeastVersion_(NSOperatingSystemVersion version) { + return _lib._objc_msgSend_865( + _id, _lib._sel_isOperatingSystemAtLeastVersion_1, version); + } + + double get systemUptime { + return _lib._objc_msgSend_155(_id, _lib._sel_systemUptime1); + } + + void disableSuddenTermination() { + _lib._objc_msgSend_1(_id, _lib._sel_disableSuddenTermination1); + } + + void enableSuddenTermination() { + _lib._objc_msgSend_1(_id, _lib._sel_enableSuddenTermination1); + } + + void disableAutomaticTermination_(NSString? reason) { + _lib._objc_msgSend_192(_id, _lib._sel_disableAutomaticTermination_1, + reason?._id ?? ffi.nullptr); + } + + void enableAutomaticTermination_(NSString? reason) { + _lib._objc_msgSend_192(_id, _lib._sel_enableAutomaticTermination_1, + reason?._id ?? ffi.nullptr); + } + + bool get automaticTerminationSupportEnabled { return _lib._objc_msgSend_12( - _id, _lib._sel_allowsConstrainedNetworkAccess1); + _id, _lib._sel_automaticTerminationSupportEnabled1); } - bool get assumesHTTP3Capable { - return _lib._objc_msgSend_12(_id, _lib._sel_assumesHTTP3Capable1); + set automaticTerminationSupportEnabled(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setAutomaticTerminationSupportEnabled_1, value); } - int get attribution { - return _lib._objc_msgSend_788(_id, _lib._sel_attribution1); + NSObject beginActivityWithOptions_reason_(int options, NSString? reason) { + final _ret = _lib._objc_msgSend_866( + _id, + _lib._sel_beginActivityWithOptions_reason_1, + options, + reason?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - 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 ?? ffi.nullptr); } - NSString? get HTTPMethod { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_HTTPMethod1); + void performActivityWithOptions_reason_usingBlock_( + int options, NSString? reason, ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_867( + _id, + _lib._sel_performActivityWithOptions_reason_usingBlock_1, + options, + reason?._id ?? ffi.nullptr, + block._id); + } + + void performExpiringActivityWithReason_usingBlock_( + NSString? reason, ObjCBlock_ffiVoid_bool block) { + _lib._objc_msgSend_868( + _id, + _lib._sel_performExpiringActivityWithReason_usingBlock_1, + reason?._id ?? ffi.nullptr, + block._id); + } + + NSString? get userName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_userName1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSDictionary? get allHTTPHeaderFields { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_allHTTPHeaderFields1); + NSString? get fullUserName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fullUserName1); return _ret.address == 0 ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - NSString valueForHTTPHeaderField_(NSString? field) { - final _ret = _lib._objc_msgSend_64( - _id, _lib._sel_valueForHTTPHeaderField_1, field?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + int get thermalState { + return _lib._objc_msgSend_869(_id, _lib._sel_thermalState1); } - 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); + bool get lowPowerModeEnabled { + return _lib._objc_msgSend_12(_id, _lib._sel_isLowPowerModeEnabled1); } - NSInputStream? get HTTPBodyStream { - final _ret = _lib._objc_msgSend_798(_id, _lib._sel_HTTPBodyStream1); + bool get macCatalystApp { + return _lib._objc_msgSend_12(_id, _lib._sel_isMacCatalystApp1); + } + + bool get iOSAppOnMac { + return _lib._objc_msgSend_12(_id, _lib._sel_isiOSAppOnMac1); + } + + NSString? get processDirectoryPath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_processDirectoryPath1); return _ret.address == 0 ? null - : NSInputStream._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - bool get HTTPShouldHandleCookies { - return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldHandleCookies1); + NSString? get processPath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_processPath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - bool get HTTPShouldUsePipelining { - return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldUsePipelining1); + bool get isiOSAppOnVisionOS { + return _lib._objc_msgSend_12(_id, _lib._sel_isiOSAppOnVisionOS1); } @override - NSURLRequest init() { + NSProcessInfo init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLRequest._(_ret, _lib, retain: true, release: true); + return NSProcessInfo._(_ret, _lib, retain: true, release: true); } - static NSURLRequest new1(SentryCocoa _lib) { + static NSProcessInfo new1(SentryCocoa _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 allocWithZone_( + static NSProcessInfo allocWithZone_( SentryCocoa _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); + _lib._class_NSProcessInfo1, _lib._sel_allocWithZone_1, zone); + return NSProcessInfo._(_ret, _lib, retain: false, release: true); } - static NSURLRequest alloc(SentryCocoa _lib) { + static NSProcessInfo alloc(SentryCocoa _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_( @@ -58725,7 +64151,7 @@ class NSURLRequest extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSURLRequest1, + _lib._class_NSProcessInfo1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -58734,24 +64160,24 @@ class NSURLRequest extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLRequest1, + _lib._objc_msgSend_15(_lib._class_NSProcessInfo1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLRequest1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSProcessInfo1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLRequest1, _lib._sel_useStoredAccessor1); + _lib._class_NSProcessInfo1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLRequest1, + _lib._class_NSProcessInfo1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -58760,7 +64186,7 @@ class NSURLRequest extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLRequest1, + _lib._class_NSProcessInfo1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -58768,192 +64194,439 @@ class NSURLRequest extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSURLRequest1, + _lib._class_NSProcessInfo1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSURLRequest1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSProcessInfo1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSProcessInfo1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, 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; +} + +void _ObjCBlock_ffiVoid_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, bool arg0) { + return block.ref.target + .cast>() + .asFunction()(arg0); +} + +final _ObjCBlock_ffiVoid_bool_closureRegistry = {}; +int _ObjCBlock_ffiVoid_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_bool_registerClosure(Function fn) { + final id = ++_ObjCBlock_ffiVoid_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_bool_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, bool arg0) { + return (_ObjCBlock_ffiVoid_bool_closureRegistry[block.ref.target.address] + as void Function(bool))(arg0); +} + +class ObjCBlock_ffiVoid_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_bool._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_bool.fromFunctionPointer(SentryCocoa lib, + ffi.Pointer> ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, ffi.Bool arg0)>( + _ObjCBlock_ffiVoid_bool_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_bool.fromFunction( + SentryCocoa lib, void Function(bool arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, ffi.Bool arg0)>( + _ObjCBlock_ffiVoid_bool_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_bool_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); + } +} + +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, SentryCocoa 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); + } + + /// Returns a [NSTextCheckingResult] that wraps the given raw object pointer. + static NSTextCheckingResult castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSTextCheckingResult._(other, lib, retain: retain, release: release); + } + + /// 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); + } + + int get resultType { + return _lib._objc_msgSend_870(_id, _lib._sel_resultType1); + } + + void getRange(ffi.Pointer<_NSRange> stret) { + _lib._objc_msgSend_49(stret, _id, _lib._sel_range1); + } + + NSOrthography? get orthography { + final _ret = _lib._objc_msgSend_871(_id, _lib._sel_orthography1); + return _ret.address == 0 + ? null + : NSOrthography._(_ret, _lib, retain: true, release: true); + } + + NSArray? get grammarDetails { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_grammarDetails1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSDate? get date { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_date1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); + } + + NSTimeZone? get timeZone { + final _ret = _lib._objc_msgSend_168(_id, _lib._sel_timeZone1); + return _ret.address == 0 + ? null + : NSTimeZone._(_ret, _lib, retain: true, release: true); + } + + double get duration { + return _lib._objc_msgSend_155(_id, _lib._sel_duration1); + } + + NSDictionary? get components { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_components1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + 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? get replacementString { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_replacementString1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSArray? get alternativeStrings { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_alternativeStrings1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSRegularExpression? get regularExpression { + final _ret = _lib._objc_msgSend_883(_id, _lib._sel_regularExpression1); + return _ret.address == 0 + ? null + : NSRegularExpression._(_ret, _lib, retain: true, release: true); + } + + 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); + } + + int get numberOfRanges { + return _lib._objc_msgSend_10(_id, _lib._sel_numberOfRanges1); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLRequest1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + void rangeAtIndex_(ffi.Pointer<_NSRange> stret, int idx) { + _lib._objc_msgSend_325(stret, _id, _lib._sel_rangeAtIndex_1, idx); } -} - -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; -} -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; -} + void rangeWithName_(ffi.Pointer<_NSRange> stret, NSString? name) { + _lib._objc_msgSend_318( + stret, _id, _lib._sel_rangeWithName_1, name?._id ?? ffi.nullptr); + } -abstract class NSURLRequestAttribution { - static const int NSURLRequestAttributionDeveloper = 0; - static const int NSURLRequestAttributionUser = 1; -} + NSTextCheckingResult resultByAdjustingRangesWithOffset_(int offset) { + final _ret = _lib._objc_msgSend_884( + _id, _lib._sel_resultByAdjustingRangesWithOffset_1, offset); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + } -class NSInputStream extends NSStream { - NSInputStream._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSDictionary? get addressComponents { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_addressComponents1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } - /// 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); + static NSTextCheckingResult orthographyCheckingResultWithRange_orthography_( + SentryCocoa _lib, _NSRange range, NSOrthography? orthography) { + final _ret = _lib._objc_msgSend_885( + _lib._class_NSTextCheckingResult1, + _lib._sel_orthographyCheckingResultWithRange_orthography_1, + range, + orthography?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - /// Returns a [NSInputStream] that wraps the given raw object pointer. - static NSInputStream castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSInputStream._(other, lib, retain: retain, release: release); + static NSTextCheckingResult spellCheckingResultWithRange_( + SentryCocoa _lib, _NSRange range) { + final _ret = _lib._objc_msgSend_886(_lib._class_NSTextCheckingResult1, + _lib._sel_spellCheckingResultWithRange_1, range); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - /// 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); + static NSTextCheckingResult grammarCheckingResultWithRange_details_( + SentryCocoa _lib, _NSRange range, NSArray? details) { + final _ret = _lib._objc_msgSend_887( + _lib._class_NSTextCheckingResult1, + _lib._sel_grammarCheckingResultWithRange_details_1, + range, + details?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - int read_maxLength_(ffi.Pointer buffer, int len) { - return _lib._objc_msgSend_790(_id, _lib._sel_read_maxLength_1, buffer, len); + static NSTextCheckingResult dateCheckingResultWithRange_date_( + SentryCocoa _lib, _NSRange range, NSDate? date) { + final _ret = _lib._objc_msgSend_888( + _lib._class_NSTextCheckingResult1, + _lib._sel_dateCheckingResultWithRange_date_1, + range, + date?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - bool getBuffer_length_(ffi.Pointer> buffer, - ffi.Pointer len) { - return _lib._objc_msgSend_797( - _id, _lib._sel_getBuffer_length_1, buffer, len); + static NSTextCheckingResult + dateCheckingResultWithRange_date_timeZone_duration_(SentryCocoa _lib, + _NSRange range, NSDate? date, NSTimeZone? timeZone, double duration) { + final _ret = _lib._objc_msgSend_889( + _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); } - bool get hasBytesAvailable { - return _lib._objc_msgSend_12(_id, _lib._sel_hasBytesAvailable1); + static NSTextCheckingResult addressCheckingResultWithRange_components_( + SentryCocoa _lib, _NSRange range, NSDictionary? components) { + final _ret = _lib._objc_msgSend_890( + _lib._class_NSTextCheckingResult1, + _lib._sel_addressCheckingResultWithRange_components_1, + range, + components?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - NSInputStream initWithData_(NSData? data) { - final _ret = _lib._objc_msgSend_257( - _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); - return NSInputStream._(_ret, _lib, retain: true, release: true); + static NSTextCheckingResult linkCheckingResultWithRange_URL_( + SentryCocoa _lib, _NSRange range, NSURL? url) { + final _ret = _lib._objc_msgSend_891( + _lib._class_NSTextCheckingResult1, + _lib._sel_linkCheckingResultWithRange_URL_1, + range, + url?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - NSInputStream initWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_241( - _id, _lib._sel_initWithURL_1, url?._id ?? ffi.nullptr); - return NSInputStream._(_ret, _lib, retain: true, release: true); + static NSTextCheckingResult quoteCheckingResultWithRange_replacementString_( + SentryCocoa _lib, _NSRange range, NSString? replacementString) { + final _ret = _lib._objc_msgSend_892( + _lib._class_NSTextCheckingResult1, + _lib._sel_quoteCheckingResultWithRange_replacementString_1, + range, + replacementString?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - 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); + static NSTextCheckingResult dashCheckingResultWithRange_replacementString_( + SentryCocoa _lib, _NSRange range, NSString? replacementString) { + final _ret = _lib._objc_msgSend_892( + _lib._class_NSTextCheckingResult1, + _lib._sel_dashCheckingResultWithRange_replacementString_1, + range, + replacementString?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - static NSInputStream inputStreamWithData_(SentryCocoa _lib, NSData? data) { - final _ret = _lib._objc_msgSend_257(_lib._class_NSInputStream1, - _lib._sel_inputStreamWithData_1, data?._id ?? ffi.nullptr); - return NSInputStream._(_ret, _lib, retain: true, release: true); + static NSTextCheckingResult + replacementCheckingResultWithRange_replacementString_( + SentryCocoa _lib, _NSRange range, NSString? replacementString) { + final _ret = _lib._objc_msgSend_892( + _lib._class_NSTextCheckingResult1, + _lib._sel_replacementCheckingResultWithRange_replacementString_1, + range, + replacementString?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - static NSInputStream inputStreamWithFileAtPath_( - SentryCocoa _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); + static NSTextCheckingResult + correctionCheckingResultWithRange_replacementString_( + SentryCocoa _lib, _NSRange range, NSString? replacementString) { + final _ret = _lib._objc_msgSend_892( + _lib._class_NSTextCheckingResult1, + _lib._sel_correctionCheckingResultWithRange_replacementString_1, + range, + replacementString?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - static NSInputStream inputStreamWithURL_(SentryCocoa _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_241(_lib._class_NSInputStream1, - _lib._sel_inputStreamWithURL_1, url?._id ?? ffi.nullptr); - return NSInputStream._(_ret, _lib, retain: true, release: true); + static NSTextCheckingResult + correctionCheckingResultWithRange_replacementString_alternativeStrings_( + SentryCocoa _lib, + _NSRange range, + NSString? replacementString, + NSArray? alternativeStrings) { + final _ret = _lib._objc_msgSend_893( + _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); } - static void getStreamsToHostWithName_port_inputStream_outputStream_( - SentryCocoa _lib, - NSString? hostname, - int port, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - _lib._objc_msgSend_792( - _lib._class_NSInputStream1, - _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, - hostname?._id ?? ffi.nullptr, - port, - inputStream, - outputStream); + static NSTextCheckingResult + regularExpressionCheckingResultWithRanges_count_regularExpression_( + SentryCocoa _lib, + ffi.Pointer<_NSRange> ranges, + int count, + NSRegularExpression? regularExpression) { + final _ret = _lib._objc_msgSend_894( + _lib._class_NSTextCheckingResult1, + _lib._sel_regularExpressionCheckingResultWithRanges_count_regularExpression_1, + ranges, + count, + regularExpression?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - static void getStreamsToHost_port_inputStream_outputStream_( - SentryCocoa _lib, - NSHost? host, - int port, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - _lib._objc_msgSend_795( - _lib._class_NSInputStream1, - _lib._sel_getStreamsToHost_port_inputStream_outputStream_1, - host?._id ?? ffi.nullptr, - port, - inputStream, - outputStream); + static NSTextCheckingResult phoneNumberCheckingResultWithRange_phoneNumber_( + SentryCocoa _lib, _NSRange range, NSString? phoneNumber) { + final _ret = _lib._objc_msgSend_892( + _lib._class_NSTextCheckingResult1, + _lib._sel_phoneNumberCheckingResultWithRange_phoneNumber_1, + range, + phoneNumber?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - static void getBoundStreamsWithBufferSize_inputStream_outputStream_( - SentryCocoa _lib, - int bufferSize, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - _lib._objc_msgSend_796( - _lib._class_NSInputStream1, - _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, - bufferSize, - inputStream, - outputStream); + static NSTextCheckingResult + transitInformationCheckingResultWithRange_components_( + SentryCocoa _lib, _NSRange range, NSDictionary? components) { + final _ret = _lib._objc_msgSend_890( + _lib._class_NSTextCheckingResult1, + _lib._sel_transitInformationCheckingResultWithRange_components_1, + range, + components?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } @override - NSInputStream init() { + NSTextCheckingResult init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSInputStream._(_ret, _lib, retain: true, release: true); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - static NSInputStream new1(SentryCocoa _lib) { + static NSTextCheckingResult new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSInputStream1, _lib._sel_new1); - return NSInputStream._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSTextCheckingResult1, _lib._sel_new1); + return NSTextCheckingResult._(_ret, _lib, retain: false, release: true); } - static NSInputStream allocWithZone_( + static NSTextCheckingResult allocWithZone_( SentryCocoa _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); + _lib._class_NSTextCheckingResult1, _lib._sel_allocWithZone_1, zone); + return NSTextCheckingResult._(_ret, _lib, retain: false, release: true); } - static NSInputStream alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSInputStream1, _lib._sel_alloc1); - return NSInputStream._(_ret, _lib, retain: false, release: true); + static NSTextCheckingResult alloc(SentryCocoa _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_( @@ -58962,7 +64635,7 @@ class NSInputStream extends NSStream { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSInputStream1, + _lib._class_NSTextCheckingResult1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -58971,24 +64644,24 @@ class NSInputStream extends NSStream { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSInputStream1, + _lib._objc_msgSend_15(_lib._class_NSTextCheckingResult1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSInputStream1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSTextCheckingResult1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSInputStream1, _lib._sel_useStoredAccessor1); + _lib._class_NSTextCheckingResult1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSInputStream1, + _lib._class_NSTextCheckingResult1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -58997,7 +64670,7 @@ class NSInputStream extends NSStream { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSInputStream1, + _lib._class_NSTextCheckingResult1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -59005,163 +64678,236 @@ class NSInputStream extends NSStream { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSInputStream1, + _lib._class_NSTextCheckingResult1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSInputStream1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_NSTextCheckingResult1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSInputStream1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSTextCheckingResult1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSStream extends NSObject { - NSStream._(ffi.Pointer id, SentryCocoa lib, +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, SentryCocoa 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); + /// 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 [NSStream] that wraps the given raw object pointer. - static NSStream castFromPointer( + /// Returns a [NSRegularExpression] that wraps the given raw object pointer. + static NSRegularExpression castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSStream._(other, lib, retain: retain, release: release); + return NSRegularExpression._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSStream]. + /// 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_NSStream1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSRegularExpression1); } - void open() { - _lib._objc_msgSend_1(_id, _lib._sel_open1); + static NSRegularExpression regularExpressionWithPattern_options_error_( + SentryCocoa _lib, + NSString? pattern, + int options, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_872( + _lib._class_NSRegularExpression1, + _lib._sel_regularExpressionWithPattern_options_error_1, + pattern?._id ?? ffi.nullptr, + options, + error); + return NSRegularExpression._(_ret, _lib, retain: true, release: true); } - void close() { - _lib._objc_msgSend_1(_id, _lib._sel_close1); + NSRegularExpression initWithPattern_options_error_(NSString? pattern, + int options, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_873( + _id, + _lib._sel_initWithPattern_options_error_1, + pattern?._id ?? ffi.nullptr, + options, + error); + return NSRegularExpression._(_ret, _lib, retain: true, release: true); } - NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + NSString? get pattern { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_pattern1); return _ret.address == 0 ? null - : NSObject._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - set delegate(NSObject? value) { - return _lib._objc_msgSend_387( - _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); + int get options { + return _lib._objc_msgSend_874(_id, _lib._sel_options1); } - 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); + int get numberOfCaptureGroups { + return _lib._objc_msgSend_10(_id, _lib._sel_numberOfCaptureGroups1); } - bool setProperty_forKey_(NSObject property, NSString key) { - return _lib._objc_msgSend_240( - _id, _lib._sel_setProperty_forKey_1, property._id, key._id); + static NSString escapedPatternForString_(SentryCocoa _lib, NSString? string) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSRegularExpression1, + _lib._sel_escapedPatternForString_1, string?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - void scheduleInRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { - _lib._objc_msgSend_533(_id, _lib._sel_scheduleInRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode._id); + void enumerateMatchesInString_options_range_usingBlock_( + NSString? string, + int options, + _NSRange range, + ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool block) { + _lib._objc_msgSend_875( + _id, + _lib._sel_enumerateMatchesInString_options_range_usingBlock_1, + string?._id ?? ffi.nullptr, + options, + range, + block._id); } - void removeFromRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { - _lib._objc_msgSend_533(_id, _lib._sel_removeFromRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode._id); + NSArray matchesInString_options_range_( + NSString? string, int options, _NSRange range) { + final _ret = _lib._objc_msgSend_876( + _id, + _lib._sel_matchesInString_options_range_1, + string?._id ?? ffi.nullptr, + options, + range); + return NSArray._(_ret, _lib, retain: true, release: true); } - int get streamStatus { - return _lib._objc_msgSend_789(_id, _lib._sel_streamStatus1); + int numberOfMatchesInString_options_range_( + NSString? string, int options, _NSRange range) { + return _lib._objc_msgSend_877( + _id, + _lib._sel_numberOfMatchesInString_options_range_1, + string?._id ?? ffi.nullptr, + options, + range); } - NSError? get streamError { - final _ret = _lib._objc_msgSend_298(_id, _lib._sel_streamError1); - return _ret.address == 0 - ? null - : NSError._(_ret, _lib, retain: true, release: true); + NSTextCheckingResult firstMatchInString_options_range_( + NSString? string, int options, _NSRange range) { + final _ret = _lib._objc_msgSend_878( + _id, + _lib._sel_firstMatchInString_options_range_1, + string?._id ?? ffi.nullptr, + options, + range); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - static void getStreamsToHostWithName_port_inputStream_outputStream_( - SentryCocoa _lib, - NSString? hostname, - int port, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - _lib._objc_msgSend_792( - _lib._class_NSStream1, - _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, - hostname?._id ?? ffi.nullptr, - port, - inputStream, - outputStream); + void rangeOfFirstMatchInString_options_range_(ffi.Pointer<_NSRange> stret, + NSString? string, int options, _NSRange range) { + _lib._objc_msgSend_879( + stret, + _id, + _lib._sel_rangeOfFirstMatchInString_options_range_1, + string?._id ?? ffi.nullptr, + options, + range); } - static void getStreamsToHost_port_inputStream_outputStream_( - SentryCocoa _lib, - NSHost? host, - int port, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - _lib._objc_msgSend_795( - _lib._class_NSStream1, - _lib._sel_getStreamsToHost_port_inputStream_outputStream_1, - host?._id ?? ffi.nullptr, - port, - inputStream, - outputStream); + NSString stringByReplacingMatchesInString_options_range_withTemplate_( + NSString? string, int options, _NSRange range, NSString? templ) { + final _ret = _lib._objc_msgSend_880( + _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); } - static void getBoundStreamsWithBufferSize_inputStream_outputStream_( - SentryCocoa _lib, - int bufferSize, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - _lib._objc_msgSend_796( - _lib._class_NSStream1, - _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, - bufferSize, - inputStream, - outputStream); + int replaceMatchesInString_options_range_withTemplate_( + NSMutableString? string, int options, _NSRange range, NSString? templ) { + return _lib._objc_msgSend_881( + _id, + _lib._sel_replaceMatchesInString_options_range_withTemplate_1, + string?._id ?? ffi.nullptr, + options, + range, + templ?._id ?? ffi.nullptr); + } + + NSString replacementStringForResult_inString_offset_template_( + NSTextCheckingResult? result, + NSString? string, + int offset, + NSString? templ) { + final _ret = _lib._objc_msgSend_882( + _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); + } + + static NSString escapedTemplateForString_( + SentryCocoa _lib, NSString? string) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSRegularExpression1, + _lib._sel_escapedTemplateForString_1, string?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } @override - NSStream init() { + NSRegularExpression init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSStream._(_ret, _lib, retain: true, release: true); + return NSRegularExpression._(_ret, _lib, retain: true, release: true); } - static NSStream new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSStream1, _lib._sel_new1); - return NSStream._(_ret, _lib, retain: false, release: true); + static NSRegularExpression new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSRegularExpression1, _lib._sel_new1); + return NSRegularExpression._(_ret, _lib, retain: false, release: true); } - static NSStream allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static NSRegularExpression allocWithZone_( + SentryCocoa _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); + _lib._class_NSRegularExpression1, _lib._sel_allocWithZone_1, zone); + return NSRegularExpression._(_ret, _lib, retain: false, release: true); } - static NSStream alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSStream1, _lib._sel_alloc1); - return NSStream._(_ret, _lib, retain: false, release: true); + static NSRegularExpression alloc(SentryCocoa _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_( @@ -59170,7 +64916,7 @@ class NSStream extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSStream1, + _lib._class_NSRegularExpression1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -59179,24 +64925,24 @@ class NSStream extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSStream1, + _lib._objc_msgSend_15(_lib._class_NSRegularExpression1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSStream1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSRegularExpression1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSStream1, _lib._sel_useStoredAccessor1); + _lib._class_NSRegularExpression1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSStream1, + _lib._class_NSRegularExpression1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -59205,7 +64951,7 @@ class NSStream extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSStream1, + _lib._class_NSRegularExpression1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -59213,191 +64959,311 @@ class NSStream extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSStream1, + _lib._class_NSRegularExpression1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSStream1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_NSRegularExpression1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSStream1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSRegularExpression1, _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 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; } -class NSOutputStream extends NSStream { - NSOutputStream._(ffi.Pointer id, SentryCocoa lib, +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; +} + +void + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_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); +} + +final _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistryIndex = + 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_registerClosure( + Function fn) { + final id = + ++_ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistry[ + id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2) { + return (_ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistry[ + block.ref.target.address] + as void Function(ffi.Pointer, int, + ffi.Pointer))(arg0, arg1, arg2); +} + +class ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool + extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool.fromFunctionPointer( + SentryCocoa 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)>( + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool.fromFunction( + SentryCocoa 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)>( + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_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); + } +} + +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, SentryCocoa 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 [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 [NSOutputStream] that wraps the given raw object pointer. - static NSOutputStream castFromPointer( + /// Returns a [NSURLCache] that wraps the given raw object pointer. + static NSURLCache castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSOutputStream._(other, lib, retain: retain, release: release); + return NSURLCache._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSOutputStream]. + /// 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_NSOutputStream1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLCache1); } - int write_maxLength_(ffi.Pointer buffer, int len) { - return _lib._objc_msgSend_790( - _id, _lib._sel_write_maxLength_1, buffer, len); + static NSURLCache? getSharedURLCache(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_895( + _lib._class_NSURLCache1, _lib._sel_sharedURLCache1); + return _ret.address == 0 + ? null + : NSURLCache._(_ret, _lib, retain: true, release: true); } - bool get hasSpaceAvailable { - return _lib._objc_msgSend_12(_id, _lib._sel_hasSpaceAvailable1); + static void setSharedURLCache(SentryCocoa _lib, NSURLCache? value) { + return _lib._objc_msgSend_896(_lib._class_NSURLCache1, + _lib._sel_setSharedURLCache_1, value?._id ?? ffi.nullptr); } - NSOutputStream initToMemory() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_initToMemory1); - return NSOutputStream._(_ret, _lib, retain: true, release: true); + NSURLCache initWithMemoryCapacity_diskCapacity_diskPath_( + int memoryCapacity, int diskCapacity, NSString? path) { + final _ret = _lib._objc_msgSend_897( + _id, + _lib._sel_initWithMemoryCapacity_diskCapacity_diskPath_1, + memoryCapacity, + diskCapacity, + path?._id ?? ffi.nullptr); + return NSURLCache._(_ret, _lib, retain: true, release: true); } - NSOutputStream initToBuffer_capacity_( - ffi.Pointer buffer, int capacity) { - final _ret = _lib._objc_msgSend_791( - _id, _lib._sel_initToBuffer_capacity_1, buffer, capacity); - return NSOutputStream._(_ret, _lib, retain: true, release: true); + NSURLCache initWithMemoryCapacity_diskCapacity_directoryURL_( + int memoryCapacity, int diskCapacity, NSURL? directoryURL) { + final _ret = _lib._objc_msgSend_898( + _id, + _lib._sel_initWithMemoryCapacity_diskCapacity_directoryURL_1, + memoryCapacity, + diskCapacity, + directoryURL?._id ?? ffi.nullptr); + return NSURLCache._(_ret, _lib, retain: true, release: true); } - NSOutputStream initWithURL_append_(NSURL? url, bool shouldAppend) { - final _ret = _lib._objc_msgSend_246(_id, _lib._sel_initWithURL_append_1, - url?._id ?? ffi.nullptr, shouldAppend); - return NSOutputStream._(_ret, _lib, retain: true, release: true); + NSCachedURLResponse cachedResponseForRequest_(NSURLRequest? request) { + final _ret = _lib._objc_msgSend_902( + _id, _lib._sel_cachedResponseForRequest_1, request?._id ?? ffi.nullptr); + return NSCachedURLResponse._(_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); + void storeCachedResponse_forRequest_( + NSCachedURLResponse? cachedResponse, NSURLRequest? request) { + _lib._objc_msgSend_903(_id, _lib._sel_storeCachedResponse_forRequest_1, + cachedResponse?._id ?? ffi.nullptr, request?._id ?? ffi.nullptr); } - static NSOutputStream outputStreamToMemory(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSOutputStream1, _lib._sel_outputStreamToMemory1); - return NSOutputStream._(_ret, _lib, retain: true, release: true); + void removeCachedResponseForRequest_(NSURLRequest? request) { + _lib._objc_msgSend_904(_id, _lib._sel_removeCachedResponseForRequest_1, + request?._id ?? ffi.nullptr); } - static NSOutputStream outputStreamToBuffer_capacity_( - SentryCocoa _lib, ffi.Pointer buffer, int capacity) { - final _ret = _lib._objc_msgSend_791(_lib._class_NSOutputStream1, - _lib._sel_outputStreamToBuffer_capacity_1, buffer, capacity); - return NSOutputStream._(_ret, _lib, retain: true, release: true); + void removeAllCachedResponses() { + _lib._objc_msgSend_1(_id, _lib._sel_removeAllCachedResponses1); } - static NSOutputStream outputStreamToFileAtPath_append_( - SentryCocoa _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); + void removeCachedResponsesSinceDate_(NSDate? date) { + _lib._objc_msgSend_507(_id, _lib._sel_removeCachedResponsesSinceDate_1, + date?._id ?? ffi.nullptr); } - static NSOutputStream outputStreamWithURL_append_( - SentryCocoa _lib, NSURL? url, bool shouldAppend) { - final _ret = _lib._objc_msgSend_246( - _lib._class_NSOutputStream1, - _lib._sel_outputStreamWithURL_append_1, - url?._id ?? ffi.nullptr, - shouldAppend); - return NSOutputStream._(_ret, _lib, retain: true, release: true); + int get memoryCapacity { + return _lib._objc_msgSend_10(_id, _lib._sel_memoryCapacity1); } - static void getStreamsToHostWithName_port_inputStream_outputStream_( - SentryCocoa _lib, - NSString? hostname, - int port, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - _lib._objc_msgSend_792( - _lib._class_NSOutputStream1, - _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, - hostname?._id ?? ffi.nullptr, - port, - inputStream, - outputStream); + set memoryCapacity(int value) { + return _lib._objc_msgSend_486(_id, _lib._sel_setMemoryCapacity_1, value); } - static void getStreamsToHost_port_inputStream_outputStream_( - SentryCocoa _lib, - NSHost? host, - int port, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - _lib._objc_msgSend_795( - _lib._class_NSOutputStream1, - _lib._sel_getStreamsToHost_port_inputStream_outputStream_1, - host?._id ?? ffi.nullptr, - port, - inputStream, - outputStream); + int get diskCapacity { + return _lib._objc_msgSend_10(_id, _lib._sel_diskCapacity1); } - static void getBoundStreamsWithBufferSize_inputStream_outputStream_( - SentryCocoa _lib, - int bufferSize, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - _lib._objc_msgSend_796( - _lib._class_NSOutputStream1, - _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, - bufferSize, - inputStream, - outputStream); + set diskCapacity(int value) { + return _lib._objc_msgSend_486(_id, _lib._sel_setDiskCapacity_1, value); + } + + int get currentMemoryUsage { + return _lib._objc_msgSend_10(_id, _lib._sel_currentMemoryUsage1); + } + + int get currentDiskUsage { + return _lib._objc_msgSend_10(_id, _lib._sel_currentDiskUsage1); + } + + void storeCachedResponse_forDataTask_( + NSCachedURLResponse? cachedResponse, NSURLSessionDataTask? dataTask) { + _lib._objc_msgSend_905(_id, _lib._sel_storeCachedResponse_forDataTask_1, + cachedResponse?._id ?? ffi.nullptr, dataTask?._id ?? ffi.nullptr); + } + + void getCachedResponseForDataTask_completionHandler_( + NSURLSessionDataTask? dataTask, + ObjCBlock_ffiVoid_NSCachedURLResponse completionHandler) { + _lib._objc_msgSend_906( + _id, + _lib._sel_getCachedResponseForDataTask_completionHandler_1, + dataTask?._id ?? ffi.nullptr, + completionHandler._id); + } + + void removeCachedResponseForDataTask_(NSURLSessionDataTask? dataTask) { + _lib._objc_msgSend_907(_id, _lib._sel_removeCachedResponseForDataTask_1, + dataTask?._id ?? ffi.nullptr); } @override - NSOutputStream init() { + NSURLCache init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSOutputStream._(_ret, _lib, retain: true, release: true); + return NSURLCache._(_ret, _lib, retain: true, release: true); } - static NSOutputStream new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSOutputStream1, _lib._sel_new1); - return NSOutputStream._(_ret, _lib, retain: false, release: true); + static NSURLCache new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLCache1, _lib._sel_new1); + return NSURLCache._(_ret, _lib, retain: false, release: true); } - static NSOutputStream allocWithZone_( + static NSURLCache allocWithZone_( SentryCocoa _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); + _lib._class_NSURLCache1, _lib._sel_allocWithZone_1, zone); + return NSURLCache._(_ret, _lib, retain: false, release: true); } - static NSOutputStream alloc(SentryCocoa _lib) { + static NSURLCache alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSOutputStream1, _lib._sel_alloc1); - return NSOutputStream._(_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_( @@ -59406,7 +65272,7 @@ class NSOutputStream extends NSStream { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSOutputStream1, + _lib._class_NSURLCache1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -59415,24 +65281,24 @@ class NSOutputStream extends NSStream { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSOutputStream1, + _lib._objc_msgSend_15(_lib._class_NSURLCache1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSOutputStream1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSURLCache1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSOutputStream1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLCache1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSOutputStream1, + _lib._class_NSURLCache1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -59441,7 +65307,7 @@ class NSOutputStream extends NSStream { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSOutputStream1, + _lib._class_NSURLCache1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -59449,7 +65315,7 @@ class NSOutputStream extends NSStream { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSOutputStream1, + _lib._class_NSURLCache1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -59457,131 +65323,111 @@ class NSOutputStream extends NSStream { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSOutputStream1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSURLCache1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSOutputStream1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSURLCache1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSHost extends NSObject { - NSHost._(ffi.Pointer id, SentryCocoa lib, +class NSCachedURLResponse extends NSObject { + NSCachedURLResponse._(ffi.Pointer id, SentryCocoa 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); + /// 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 [NSHost] that wraps the given raw object pointer. - static NSHost castFromPointer(SentryCocoa lib, ffi.Pointer other, + /// Returns a [NSCachedURLResponse] that wraps the given raw object pointer. + static NSCachedURLResponse castFromPointer( + SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSHost._(other, lib, retain: retain, release: release); + return NSCachedURLResponse._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSHost]. + /// 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_NSHost1); - } - - static NSHost currentHost(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSHost1, _lib._sel_currentHost1); - return NSHost._(_ret, _lib, retain: true, release: true); - } - - static NSHost hostWithName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSHost1, - _lib._sel_hostWithName_1, name?._id ?? ffi.nullptr); - return NSHost._(_ret, _lib, retain: true, release: true); - } - - static NSHost hostWithAddress_(SentryCocoa _lib, NSString? address) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSHost1, - _lib._sel_hostWithAddress_1, address?._id ?? ffi.nullptr); - return NSHost._(_ret, _lib, retain: true, release: true); - } - - bool isEqualToHost_(NSHost? aHost) { - return _lib._objc_msgSend_793( - _id, _lib._sel_isEqualToHost_1, aHost?._id ?? ffi.nullptr); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSCachedURLResponse1); } - 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); + NSCachedURLResponse initWithResponse_data_( + NSURLResponse? response, NSData? data) { + final _ret = _lib._objc_msgSend_899(_id, _lib._sel_initWithResponse_data_1, + response?._id ?? ffi.nullptr, data?._id ?? ffi.nullptr); + return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); } - NSArray? get names { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_names1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSCachedURLResponse initWithResponse_data_userInfo_storagePolicy_( + NSURLResponse? response, + NSData? data, + NSDictionary? userInfo, + int storagePolicy) { + final _ret = _lib._objc_msgSend_900( + _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); } - NSString? get address { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_address1); + NSURLResponse? get response { + final _ret = _lib._objc_msgSend_805(_id, _lib._sel_response1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSURLResponse._(_ret, _lib, retain: true, release: true); } - NSArray? get addresses { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_addresses1); + NSData? get data { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_data1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSData._(_ret, _lib, retain: true, release: true); } - NSString? get localizedName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localizedName1); + NSDictionary? get userInfo { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_userInfo1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - static void setHostCacheEnabled_(SentryCocoa _lib, bool flag) { - _lib._objc_msgSend_794( - _lib._class_NSHost1, _lib._sel_setHostCacheEnabled_1, flag); - } - - static bool isHostCacheEnabled(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSHost1, _lib._sel_isHostCacheEnabled1); + : NSDictionary._(_ret, _lib, retain: true, release: true); } - static void flushHostCache(SentryCocoa _lib) { - _lib._objc_msgSend_1(_lib._class_NSHost1, _lib._sel_flushHostCache1); + int get storagePolicy { + return _lib._objc_msgSend_901(_id, _lib._sel_storagePolicy1); } @override - NSHost init() { + NSCachedURLResponse init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSHost._(_ret, _lib, retain: true, release: true); + return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); } - static NSHost new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSHost1, _lib._sel_new1); - return NSHost._(_ret, _lib, retain: false, release: true); + static NSCachedURLResponse new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSCachedURLResponse1, _lib._sel_new1); + return NSCachedURLResponse._(_ret, _lib, retain: false, release: true); } - static NSHost allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static NSCachedURLResponse allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSHost1, _lib._sel_allocWithZone_1, zone); - return NSHost._(_ret, _lib, retain: false, release: true); + _lib._class_NSCachedURLResponse1, _lib._sel_allocWithZone_1, zone); + return NSCachedURLResponse._(_ret, _lib, retain: false, release: true); } - static NSHost alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSHost1, _lib._sel_alloc1); - return NSHost._(_ret, _lib, retain: false, release: true); + static NSCachedURLResponse alloc(SentryCocoa _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_( @@ -59590,7 +65436,7 @@ class NSHost extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSHost1, + _lib._class_NSCachedURLResponse1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -59599,24 +65445,24 @@ class NSHost extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSHost1, + _lib._objc_msgSend_15(_lib._class_NSCachedURLResponse1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSHost1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSCachedURLResponse1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSHost1, _lib._sel_useStoredAccessor1); + _lib._class_NSCachedURLResponse1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSHost1, + _lib._class_NSCachedURLResponse1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -59625,7 +65471,7 @@ class NSHost extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSHost1, + _lib._class_NSCachedURLResponse1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -59633,115 +65479,78 @@ class NSHost extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSHost1, + _lib._class_NSCachedURLResponse1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSHost1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_NSCachedURLResponse1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSHost1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSCachedURLResponse1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSURLResponse extends NSObject { - NSURLResponse._(ffi.Pointer id, SentryCocoa lib, +abstract class NSURLCacheStoragePolicy { + static const int NSURLCacheStorageAllowed = 0; + static const int NSURLCacheStorageAllowedInMemoryOnly = 1; + static const int NSURLCacheStorageNotAllowed = 2; +} + +class NSURLSessionDataTask extends NSURLSessionTask { + NSURLSessionDataTask._(ffi.Pointer id, SentryCocoa 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); + /// 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 [NSURLResponse] that wraps the given raw object pointer. - static NSURLResponse castFromPointer( + /// Returns a [NSURLSessionDataTask] that wraps the given raw object pointer. + static NSURLSessionDataTask castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLResponse._(other, lib, retain: retain, release: release); + return NSURLSessionDataTask._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLResponse]. + /// 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_NSURLResponse1); - } - - NSURLResponse initWithURL_MIMEType_expectedContentLength_textEncodingName_( - NSURL? URL, NSString? MIMEType, int length, NSString? name) { - final _ret = _lib._objc_msgSend_800( - _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); - } - - 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? 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 get expectedContentLength { - return _lib._objc_msgSend_220(_id, _lib._sel_expectedContentLength1); - } - - 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); - } - - 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); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSURLSessionDataTask1); } @override - NSURLResponse init() { + NSURLSessionDataTask init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLResponse._(_ret, _lib, retain: true, release: true); + return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); } - static NSURLResponse new1(SentryCocoa _lib) { + static NSURLSessionDataTask new1(SentryCocoa _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_NSURLSessionDataTask1, _lib._sel_new1); + return NSURLSessionDataTask._(_ret, _lib, retain: false, release: true); } - static NSURLResponse allocWithZone_( + static NSURLSessionDataTask allocWithZone_( SentryCocoa _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); + _lib._class_NSURLSessionDataTask1, _lib._sel_allocWithZone_1, zone); + return NSURLSessionDataTask._(_ret, _lib, retain: false, release: true); } - static NSURLResponse alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLResponse1, _lib._sel_alloc1); - return NSURLResponse._(_ret, _lib, retain: false, release: true); + static NSURLSessionDataTask alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionDataTask1, _lib._sel_alloc1); + return NSURLSessionDataTask._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -59750,7 +65559,7 @@ class NSURLResponse extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSURLResponse1, + _lib._class_NSURLSessionDataTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -59759,24 +65568,24 @@ class NSURLResponse extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLResponse1, + _lib._objc_msgSend_15(_lib._class_NSURLSessionDataTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLResponse1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSURLSessionDataTask1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLResponse1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLSessionDataTask1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLResponse1, + _lib._class_NSURLSessionDataTask1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -59785,7 +65594,7 @@ class NSURLResponse extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLResponse1, + _lib._class_NSURLSessionDataTask1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -59793,33 +65602,26 @@ class NSURLResponse extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSURLResponse1, + _lib._class_NSURLSessionDataTask1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSURLResponse1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionDataTask1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLResponse1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSURLSessionDataTask1, _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; -} - -void _ObjCBlock_ffiVoid_NSArray_fnPtrTrampoline( +void _ObjCBlock_ffiVoid_NSCachedURLResponse_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { return block.ref.target .cast< @@ -59827,26 +65629,29 @@ void _ObjCBlock_ffiVoid_NSArray_fnPtrTrampoline( .asFunction arg0)>()(arg0); } -final _ObjCBlock_ffiVoid_NSArray_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSArray_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSArray_registerClosure(Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSArray_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSArray_closureRegistry[id] = fn; +final _ObjCBlock_ffiVoid_NSCachedURLResponse_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_NSCachedURLResponse_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSCachedURLResponse_registerClosure( + Function fn) { + final id = ++_ObjCBlock_ffiVoid_NSCachedURLResponse_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSCachedURLResponse_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_NSArray_closureTrampoline( +void _ObjCBlock_ffiVoid_NSCachedURLResponse_closureTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return (_ObjCBlock_ffiVoid_NSArray_closureRegistry[block.ref.target.address] - as void Function(ffi.Pointer))(arg0); + return (_ObjCBlock_ffiVoid_NSCachedURLResponse_closureRegistry[block + .ref.target.address] as void Function(ffi.Pointer))(arg0); } -class ObjCBlock_ffiVoid_NSArray extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSArray._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock_ffiVoid_NSCachedURLResponse extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSCachedURLResponse._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSArray.fromFunctionPointer( + ObjCBlock_ffiVoid_NSCachedURLResponse.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi @@ -59857,23 +65662,23 @@ class ObjCBlock_ffiVoid_NSArray extends _ObjCBlockBase { _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function(ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSArray_fnPtrTrampoline) + _ObjCBlock_ffiVoid_NSCachedURLResponse_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSArray.fromFunction( + ObjCBlock_ffiVoid_NSCachedURLResponse.fromFunction( SentryCocoa lib, void Function(ffi.Pointer arg0) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function(ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSArray_closureTrampoline) + _ObjCBlock_ffiVoid_NSCachedURLResponse_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSArray_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSCachedURLResponse_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; void call(ffi.Pointer arg0) { @@ -59888,246 +65693,474 @@ class ObjCBlock_ffiVoid_NSArray extends _ObjCBlockBase { } } -class NSIndexPath extends NSObject { - NSIndexPath._(ffi.Pointer id, SentryCocoa lib, +class NSURLConnection extends NSObject { + NSURLConnection._(ffi.Pointer id, SentryCocoa 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 [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 [NSIndexPath] that wraps the given raw object pointer. - static NSIndexPath castFromPointer( + /// Returns a [NSURLConnection] that wraps the given raw object pointer. + static NSURLConnection castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSIndexPath._(other, lib, retain: retain, release: release); + return NSURLConnection._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSIndexPath]. + /// 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_NSIndexPath1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSURLConnection1); } - static NSIndexPath indexPathWithIndex_(SentryCocoa _lib, int index) { - final _ret = _lib._objc_msgSend_60( - _lib._class_NSIndexPath1, _lib._sel_indexPathWithIndex_1, index); - return NSIndexPath._(_ret, _lib, retain: true, release: true); + NSURLConnection initWithRequest_delegate_startImmediately_( + NSURLRequest? request, NSObject delegate, bool startImmediately) { + final _ret = _lib._objc_msgSend_908( + _id, + _lib._sel_initWithRequest_delegate_startImmediately_1, + request?._id ?? ffi.nullptr, + delegate._id, + startImmediately); + return NSURLConnection._(_ret, _lib, retain: true, release: true); } - static NSIndexPath indexPathWithIndexes_length_( - SentryCocoa _lib, ffi.Pointer indexes, int length) { - final _ret = _lib._objc_msgSend_806(_lib._class_NSIndexPath1, - _lib._sel_indexPathWithIndexes_length_1, indexes, length); - return NSIndexPath._(_ret, _lib, retain: true, release: true); + NSURLConnection initWithRequest_delegate_( + NSURLRequest? request, NSObject delegate) { + final _ret = _lib._objc_msgSend_909( + _id, + _lib._sel_initWithRequest_delegate_1, + request?._id ?? ffi.nullptr, + delegate._id); + return NSURLConnection._(_ret, _lib, retain: true, release: true); } - NSIndexPath initWithIndexes_length_( - ffi.Pointer indexes, int length) { - final _ret = _lib._objc_msgSend_806( - _id, _lib._sel_initWithIndexes_length_1, indexes, length); - return NSIndexPath._(_ret, _lib, retain: true, release: true); + static NSURLConnection connectionWithRequest_delegate_( + SentryCocoa _lib, NSURLRequest? request, NSObject delegate) { + final _ret = _lib._objc_msgSend_910( + _lib._class_NSURLConnection1, + _lib._sel_connectionWithRequest_delegate_1, + request?._id ?? ffi.nullptr, + delegate._id); + return NSURLConnection._(_ret, _lib, retain: true, release: true); } - NSIndexPath initWithIndex_(int index) { - final _ret = _lib._objc_msgSend_60(_id, _lib._sel_initWithIndex_1, index); - return NSIndexPath._(_ret, _lib, retain: true, release: true); + NSURLRequest? get originalRequest { + final _ret = _lib._objc_msgSend_803(_id, _lib._sel_originalRequest1); + return _ret.address == 0 + ? null + : NSURLRequest._(_ret, _lib, retain: true, release: true); } - NSIndexPath indexPathByAddingIndex_(int index) { + NSURLRequest? get currentRequest { + final _ret = _lib._objc_msgSend_803(_id, _lib._sel_currentRequest1); + return _ret.address == 0 + ? null + : NSURLRequest._(_ret, _lib, retain: true, release: true); + } + + void start() { + _lib._objc_msgSend_1(_id, _lib._sel_start1); + } + + void cancel() { + _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + } + + void scheduleInRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { + _lib._objc_msgSend_536(_id, _lib._sel_scheduleInRunLoop_forMode_1, + aRunLoop?._id ?? ffi.nullptr, mode._id); + } + + void unscheduleFromRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { + _lib._objc_msgSend_536(_id, _lib._sel_unscheduleFromRunLoop_forMode_1, + aRunLoop?._id ?? ffi.nullptr, mode._id); + } + + void setDelegateQueue_(NSOperationQueue? queue) { + _lib._objc_msgSend_911( + _id, _lib._sel_setDelegateQueue_1, queue?._id ?? ffi.nullptr); + } + + static bool canHandleRequest_(SentryCocoa _lib, NSURLRequest? request) { + return _lib._objc_msgSend_912(_lib._class_NSURLConnection1, + _lib._sel_canHandleRequest_1, request?._id ?? ffi.nullptr); + } + + static NSData sendSynchronousRequest_returningResponse_error_( + SentryCocoa _lib, + NSURLRequest? request, + ffi.Pointer> response, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_913( + _lib._class_NSURLConnection1, + _lib._sel_sendSynchronousRequest_returningResponse_error_1, + request?._id ?? ffi.nullptr, + response, + error); + return NSData._(_ret, _lib, retain: true, release: true); + } + + static void sendAsynchronousRequest_queue_completionHandler_( + SentryCocoa _lib, + NSURLRequest? request, + NSOperationQueue? queue, + ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError handler) { + _lib._objc_msgSend_914( + _lib._class_NSURLConnection1, + _lib._sel_sendAsynchronousRequest_queue_completionHandler_1, + request?._id ?? ffi.nullptr, + queue?._id ?? ffi.nullptr, + handler._id); + } + + @override + NSURLConnection init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLConnection._(_ret, _lib, retain: true, release: true); + } + + static NSURLConnection new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_807(_id, _lib._sel_indexPathByAddingIndex_1, index); - return NSIndexPath._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_2(_lib._class_NSURLConnection1, _lib._sel_new1); + return NSURLConnection._(_ret, _lib, retain: false, release: true); } - NSIndexPath indexPathByRemovingLastIndex() { + static NSURLConnection allocWithZone_( + SentryCocoa _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(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_808(_id, _lib._sel_indexPathByRemovingLastIndex1); - return NSIndexPath._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_2(_lib._class_NSURLConnection1, _lib._sel_alloc1); + return NSURLConnection._(_ret, _lib, retain: false, release: true); } - int indexAtPosition_(int position) { - return _lib._objc_msgSend_88(_id, _lib._sel_indexAtPosition_1, position); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSURLConnection1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - int get length { - return _lib._objc_msgSend_10(_id, _lib._sel_length1); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSURLConnection1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - void getIndexes_range_( - ffi.Pointer indexes, _NSRange positionRange) { - _lib._objc_msgSend_809( - _id, _lib._sel_getIndexes_range_1, indexes, positionRange); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_NSURLConnection1, + _lib._sel_accessInstanceVariablesDirectly1); } - int compare_(NSIndexPath? otherObject) { - return _lib._objc_msgSend_810( - _id, _lib._sel_compare_1, otherObject?._id ?? ffi.nullptr); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLConnection1, _lib._sel_useStoredAccessor1); } - void getIndexes_(ffi.Pointer indexes) { - _lib._objc_msgSend_811(_id, _lib._sel_getIndexes_1, indexes); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSURLConnection1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSURLConnection1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSURLConnection1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSURLConnection1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLConnection1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +void _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_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 _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_registerClosure( + Function fn) { + final id = + ++_ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { + return (_ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureRegistry[ + block.ref.target.address] + as void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer))(arg0, arg1, arg2); +} + +class ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError.fromFunctionPointer( + SentryCocoa 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)>( + _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError.fromFunction( + SentryCocoa 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)>( + _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_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); } +} - @override - NSIndexPath init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSIndexPath._(_ret, _lib, retain: true, release: true); - } +class NSURLCredential extends NSObject { + NSURLCredential._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - static NSIndexPath new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSIndexPath1, _lib._sel_new1); - return NSIndexPath._(_ret, _lib, retain: false, release: true); + /// 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); } - static NSIndexPath allocWithZone_( - SentryCocoa _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); + /// Returns a [NSURLCredential] that wraps the given raw object pointer. + static NSURLCredential castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLCredential._(other, lib, retain: retain, release: release); } - static NSIndexPath alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSIndexPath1, _lib._sel_alloc1); - return NSIndexPath._(_ret, _lib, retain: false, release: true); + /// 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); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _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); + int get persistence { + return _lib._objc_msgSend_915(_id, _lib._sel_persistence1); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSIndexPath1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + NSURLCredential initWithUser_password_persistence_( + NSString? user, NSString? password, int persistence) { + final _ret = _lib._objc_msgSend_916( + _id, + _lib._sel_initWithUser_password_persistence_1, + user?._id ?? ffi.nullptr, + password?._id ?? ffi.nullptr, + persistence); + return NSURLCredential._(_ret, _lib, retain: true, release: true); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSIndexPath1, _lib._sel_accessInstanceVariablesDirectly1); + static NSURLCredential credentialWithUser_password_persistence_( + SentryCocoa _lib, NSString? user, NSString? password, int persistence) { + final _ret = _lib._objc_msgSend_917( + _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); } - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSIndexPath1, _lib._sel_useStoredAccessor1); + 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); } - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSIndexPath1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + 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); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSIndexPath1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + bool get hasPassword { + return _lib._objc_msgSend_12(_id, _lib._sel_hasPassword1); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSIndexPath1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + NSURLCredential initWithIdentity_certificates_persistence_( + ffi.Pointer<__SecIdentity> identity, + NSArray? certArray, + int persistence) { + final _ret = _lib._objc_msgSend_918( + _id, + _lib._sel_initWithIdentity_certificates_persistence_1, + identity, + certArray?._id ?? ffi.nullptr, + persistence); + return NSURLCredential._(_ret, _lib, retain: true, release: true); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSIndexPath1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + static NSURLCredential credentialWithIdentity_certificates_persistence_( + SentryCocoa _lib, + ffi.Pointer<__SecIdentity> identity, + NSArray? certArray, + int persistence) { + final _ret = _lib._objc_msgSend_919( + _lib._class_NSURLCredential1, + _lib._sel_credentialWithIdentity_certificates_persistence_1, + identity, + certArray?._id ?? ffi.nullptr, + persistence); + return NSURLCredential._(_ret, _lib, retain: true, release: true); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSIndexPath1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + ffi.Pointer<__SecIdentity> get identity { + return _lib._objc_msgSend_920(_id, _lib._sel_identity1); } -} - -class NSInflectionRule extends NSObject { - NSInflectionRule._(ffi.Pointer id, SentryCocoa 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); + NSArray? get certificates { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_certificates1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - /// Returns a [NSInflectionRule] that wraps the given raw object pointer. - static NSInflectionRule castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSInflectionRule._(other, lib, retain: retain, release: release); + NSURLCredential initWithTrust_(ffi.Pointer<__SecTrust> trust) { + final _ret = _lib._objc_msgSend_921(_id, _lib._sel_initWithTrust_1, trust); + return NSURLCredential._(_ret, _lib, retain: true, release: true); } - /// 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); + static NSURLCredential credentialForTrust_( + SentryCocoa _lib, ffi.Pointer<__SecTrust> trust) { + final _ret = _lib._objc_msgSend_922( + _lib._class_NSURLCredential1, _lib._sel_credentialForTrust_1, trust); + return NSURLCredential._(_ret, _lib, retain: true, release: true); } @override - NSObject init() { + NSURLCredential init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSInflectionRule? getAutomaticRule(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_812( - _lib._class_NSInflectionRule1, _lib._sel_automaticRule1); - return _ret.address == 0 - ? null - : NSInflectionRule._(_ret, _lib, retain: true, release: true); - } - - static bool canInflectLanguage_(SentryCocoa _lib, NSString? language) { - return _lib._objc_msgSend_59(_lib._class_NSInflectionRule1, - _lib._sel_canInflectLanguage_1, language?._id ?? ffi.nullptr); - } - - static bool getCanInflectPreferredLocalization(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSInflectionRule1, - _lib._sel_canInflectPreferredLocalization1); + return NSURLCredential._(_ret, _lib, retain: true, release: true); } - static NSInflectionRule new1(SentryCocoa _lib) { + static NSURLCredential new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSInflectionRule1, _lib._sel_new1); - return NSInflectionRule._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSURLCredential1, _lib._sel_new1); + return NSURLCredential._(_ret, _lib, retain: false, release: true); } - static NSInflectionRule allocWithZone_( + static NSURLCredential allocWithZone_( SentryCocoa _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); + _lib._class_NSURLCredential1, _lib._sel_allocWithZone_1, zone); + return NSURLCredential._(_ret, _lib, retain: false, release: true); } - static NSInflectionRule alloc(SentryCocoa _lib) { + static NSURLCredential alloc(SentryCocoa _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_NSURLCredential1, _lib._sel_alloc1); + return NSURLCredential._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -60136,7 +66169,7 @@ class NSInflectionRule extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSInflectionRule1, + _lib._class_NSURLCredential1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -60145,24 +66178,24 @@ class NSInflectionRule extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSInflectionRule1, + _lib._objc_msgSend_15(_lib._class_NSURLCredential1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSInflectionRule1, + return _lib._objc_msgSend_12(_lib._class_NSURLCredential1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSInflectionRule1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLCredential1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSInflectionRule1, + _lib._class_NSURLCredential1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -60171,7 +66204,7 @@ class NSInflectionRule extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSInflectionRule1, + _lib._class_NSURLCredential1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -60179,163 +66212,175 @@ class NSInflectionRule extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSInflectionRule1, + _lib._class_NSURLCredential1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSInflectionRule1, + final _ret = _lib._objc_msgSend_79(_lib._class_NSURLCredential1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSInflectionRule1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSURLCredential1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSMorphology extends NSObject { - NSMorphology._(ffi.Pointer id, SentryCocoa lib, +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 __SecIdentity extends ffi.Opaque {} + +final class __SecTrust extends ffi.Opaque {} + +class NSURLProtectionSpace extends NSObject { + NSURLProtectionSpace._(ffi.Pointer id, SentryCocoa 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 [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 [NSMorphology] that wraps the given raw object pointer. - static NSMorphology castFromPointer( + /// Returns a [NSURLProtectionSpace] that wraps the given raw object pointer. + static NSURLProtectionSpace castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSMorphology._(other, lib, retain: retain, release: release); + return NSURLProtectionSpace._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSMorphology]. + /// 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_NSMorphology1); - } - - int get grammaticalGender { - return _lib._objc_msgSend_813(_id, _lib._sel_grammaticalGender1); - } - - set grammaticalGender(int value) { - return _lib._objc_msgSend_814(_id, _lib._sel_setGrammaticalGender_1, value); - } - - int get partOfSpeech { - return _lib._objc_msgSend_815(_id, _lib._sel_partOfSpeech1); - } - - set partOfSpeech(int value) { - return _lib._objc_msgSend_816(_id, _lib._sel_setPartOfSpeech_1, value); - } - - int get number { - return _lib._objc_msgSend_817(_id, _lib._sel_number1); - } - - set number(int value) { - return _lib._objc_msgSend_818(_id, _lib._sel_setNumber_1, value); - } - - int get grammaticalCase { - return _lib._objc_msgSend_819(_id, _lib._sel_grammaticalCase1); - } - - set grammaticalCase(int value) { - return _lib._objc_msgSend_820(_id, _lib._sel_setGrammaticalCase_1, value); - } - - int get determination { - return _lib._objc_msgSend_821(_id, _lib._sel_determination1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSURLProtectionSpace1); } - set determination(int value) { - return _lib._objc_msgSend_822(_id, _lib._sel_setDetermination_1, value); + NSURLProtectionSpace initWithHost_port_protocol_realm_authenticationMethod_( + NSString? host, + int port, + NSString? protocol, + NSString? realm, + NSString? authenticationMethod) { + final _ret = _lib._objc_msgSend_923( + _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); } - int get grammaticalPerson { - return _lib._objc_msgSend_823(_id, _lib._sel_grammaticalPerson1); + NSURLProtectionSpace initWithProxyHost_port_type_realm_authenticationMethod_( + NSString? host, + int port, + NSString? type, + NSString? realm, + NSString? authenticationMethod) { + final _ret = _lib._objc_msgSend_923( + _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); } - set grammaticalPerson(int value) { - return _lib._objc_msgSend_824(_id, _lib._sel_setGrammaticalPerson_1, value); + 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); } - int get pronounType { - return _lib._objc_msgSend_825(_id, _lib._sel_pronounType1); + bool get receivesCredentialSecurely { + return _lib._objc_msgSend_12(_id, _lib._sel_receivesCredentialSecurely1); } - set pronounType(int value) { - return _lib._objc_msgSend_826(_id, _lib._sel_setPronounType_1, value); + bool get isProxy { + return _lib._objc_msgSend_12(_id, _lib._sel_isProxy1); } - int get definiteness { - return _lib._objc_msgSend_827(_id, _lib._sel_definiteness1); + 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); } - set definiteness(int value) { - return _lib._objc_msgSend_828(_id, _lib._sel_setDefiniteness_1, value); + int get port { + return _lib._objc_msgSend_78(_id, _lib._sel_port1); } - NSMorphologyCustomPronoun customPronounForLanguage_(NSString? language) { - final _ret = _lib._objc_msgSend_829(_id, - _lib._sel_customPronounForLanguage_1, language?._id ?? ffi.nullptr); - return NSMorphologyCustomPronoun._(_ret, _lib, retain: true, release: true); + 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); } - bool setCustomPronoun_forLanguage_error_(NSMorphologyCustomPronoun? features, - NSString? language, ffi.Pointer> error) { - return _lib._objc_msgSend_830( - _id, - _lib._sel_setCustomPronoun_forLanguage_error_1, - features?._id ?? ffi.nullptr, - language?._id ?? ffi.nullptr, - error); + 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); } - bool get unspecified { - return _lib._objc_msgSend_12(_id, _lib._sel_isUnspecified1); + 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); } - static NSMorphology? getUserMorphology(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_831( - _lib._class_NSMorphology1, _lib._sel_userMorphology1); + NSArray? get distinguishedNames { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_distinguishedNames1); return _ret.address == 0 ? null - : NSMorphology._(_ret, _lib, retain: true, release: true); + : NSArray._(_ret, _lib, retain: true, release: true); + } + + ffi.Pointer<__SecTrust> get serverTrust { + return _lib._objc_msgSend_924(_id, _lib._sel_serverTrust1); } @override - NSMorphology init() { + NSURLProtectionSpace init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSMorphology._(_ret, _lib, retain: true, release: true); + return NSURLProtectionSpace._(_ret, _lib, retain: true, release: true); } - static NSMorphology new1(SentryCocoa _lib) { + static NSURLProtectionSpace new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSMorphology1, _lib._sel_new1); - return NSMorphology._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSURLProtectionSpace1, _lib._sel_new1); + return NSURLProtectionSpace._(_ret, _lib, retain: false, release: true); } - static NSMorphology allocWithZone_( + static NSURLProtectionSpace allocWithZone_( SentryCocoa _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); + _lib._class_NSURLProtectionSpace1, _lib._sel_allocWithZone_1, zone); + return NSURLProtectionSpace._(_ret, _lib, retain: false, release: true); } - static NSMorphology alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMorphology1, _lib._sel_alloc1); - return NSMorphology._(_ret, _lib, retain: false, release: true); + static NSURLProtectionSpace alloc(SentryCocoa _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_( @@ -60344,7 +66389,7 @@ class NSMorphology extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSMorphology1, + _lib._class_NSURLProtectionSpace1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -60353,261 +66398,228 @@ class NSMorphology extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSMorphology1, + _lib._objc_msgSend_15(_lib._class_NSURLProtectionSpace1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMorphology1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSURLProtectionSpace1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSMorphology1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLProtectionSpace1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSMorphology1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMorphology1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSMorphology1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSMorphology1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMorphology1, _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; -} - -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; -} + _lib._class_NSURLProtectionSpace1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } -abstract class NSGrammaticalDetermination { - static const int NSGrammaticalDeterminationNotSet = 0; - static const int NSGrammaticalDeterminationIndependent = 1; - static const int NSGrammaticalDeterminationDependent = 2; -} + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSURLProtectionSpace1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } -abstract class NSGrammaticalPerson { - static const int NSGrammaticalPersonNotSet = 0; - static const int NSGrammaticalPersonFirst = 1; - static const int NSGrammaticalPersonSecond = 2; - static const int NSGrammaticalPersonThird = 3; -} + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSURLProtectionSpace1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } -abstract class NSGrammaticalPronounType { - static const int NSGrammaticalPronounTypeNotSet = 0; - static const int NSGrammaticalPronounTypePersonal = 1; - static const int NSGrammaticalPronounTypeReflexive = 2; - static const int NSGrammaticalPronounTypePossessive = 3; -} + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSURLProtectionSpace1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } -abstract class NSGrammaticalDefiniteness { - static const int NSGrammaticalDefinitenessNotSet = 0; - static const int NSGrammaticalDefinitenessIndefinite = 1; - static const int NSGrammaticalDefinitenessDefinite = 2; + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLProtectionSpace1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } } -class NSMorphologyCustomPronoun extends NSObject { - NSMorphologyCustomPronoun._(ffi.Pointer id, SentryCocoa lib, +class NSURLCredentialStorage extends NSObject { + NSURLCredentialStorage._(ffi.Pointer id, SentryCocoa 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 [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 [NSMorphologyCustomPronoun] that wraps the given raw object pointer. - static NSMorphologyCustomPronoun castFromPointer( + /// Returns a [NSURLCredentialStorage] that wraps the given raw object pointer. + static NSURLCredentialStorage castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSMorphologyCustomPronoun._(other, lib, + return NSURLCredentialStorage._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSMorphologyCustomPronoun]. + /// 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_NSMorphologyCustomPronoun1); + obj._lib._class_NSURLCredentialStorage1); } - static bool isSupportedForLanguage_(SentryCocoa _lib, NSString? language) { - return _lib._objc_msgSend_59(_lib._class_NSMorphologyCustomPronoun1, - _lib._sel_isSupportedForLanguage_1, language?._id ?? ffi.nullptr); + static NSURLCredentialStorage? getSharedCredentialStorage(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_925(_lib._class_NSURLCredentialStorage1, + _lib._sel_sharedCredentialStorage1); + return _ret.address == 0 + ? null + : NSURLCredentialStorage._(_ret, _lib, retain: true, release: true); } - static NSArray requiredKeysForLanguage_( - SentryCocoa _lib, NSString? language) { - final _ret = _lib._objc_msgSend_123(_lib._class_NSMorphologyCustomPronoun1, - _lib._sel_requiredKeysForLanguage_1, language?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSDictionary credentialsForProtectionSpace_(NSURLProtectionSpace? space) { + final _ret = _lib._objc_msgSend_926(_id, + _lib._sel_credentialsForProtectionSpace_1, space?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - NSString? get subjectForm { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_subjectForm1); + NSDictionary? get allCredentials { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_allCredentials1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSDictionary._(_ret, _lib, retain: true, release: true); } - set subjectForm(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setSubjectForm_1, value?._id ?? ffi.nullptr); + void setCredential_forProtectionSpace_( + NSURLCredential? credential, NSURLProtectionSpace? space) { + _lib._objc_msgSend_927(_id, _lib._sel_setCredential_forProtectionSpace_1, + credential?._id ?? ffi.nullptr, space?._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); + void removeCredential_forProtectionSpace_( + NSURLCredential? credential, NSURLProtectionSpace? space) { + _lib._objc_msgSend_927(_id, _lib._sel_removeCredential_forProtectionSpace_1, + credential?._id ?? ffi.nullptr, space?._id ?? ffi.nullptr); } - set objectForm(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setObjectForm_1, value?._id ?? ffi.nullptr); + void removeCredential_forProtectionSpace_options_(NSURLCredential? credential, + NSURLProtectionSpace? space, NSDictionary? options) { + _lib._objc_msgSend_928( + _id, + _lib._sel_removeCredential_forProtectionSpace_options_1, + credential?._id ?? ffi.nullptr, + space?._id ?? ffi.nullptr, + options?._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); + NSURLCredential defaultCredentialForProtectionSpace_( + NSURLProtectionSpace? space) { + final _ret = _lib._objc_msgSend_929( + _id, + _lib._sel_defaultCredentialForProtectionSpace_1, + space?._id ?? ffi.nullptr); + return NSURLCredential._(_ret, _lib, retain: true, release: true); } - set possessiveForm(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setPossessiveForm_1, value?._id ?? ffi.nullptr); + void setDefaultCredential_forProtectionSpace_( + NSURLCredential? credential, NSURLProtectionSpace? space) { + _lib._objc_msgSend_927( + _id, + _lib._sel_setDefaultCredential_forProtectionSpace_1, + credential?._id ?? ffi.nullptr, + space?._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); + void getCredentialsForProtectionSpace_task_completionHandler_( + NSURLProtectionSpace? protectionSpace, + NSURLSessionTask? task, + ObjCBlock_ffiVoid_NSDictionary completionHandler) { + _lib._objc_msgSend_930( + _id, + _lib._sel_getCredentialsForProtectionSpace_task_completionHandler_1, + protectionSpace?._id ?? ffi.nullptr, + task?._id ?? ffi.nullptr, + completionHandler._id); } - set possessiveAdjectiveForm(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setPossessiveAdjectiveForm_1, value?._id ?? ffi.nullptr); + void setCredential_forProtectionSpace_task_(NSURLCredential? credential, + NSURLProtectionSpace? protectionSpace, NSURLSessionTask? task) { + _lib._objc_msgSend_931( + _id, + _lib._sel_setCredential_forProtectionSpace_task_1, + credential?._id ?? ffi.nullptr, + protectionSpace?._id ?? ffi.nullptr, + task?._id ?? ffi.nullptr); } - 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); + void removeCredential_forProtectionSpace_options_task_( + NSURLCredential? credential, + NSURLProtectionSpace? protectionSpace, + NSDictionary? options, + NSURLSessionTask? task) { + _lib._objc_msgSend_932( + _id, + _lib._sel_removeCredential_forProtectionSpace_options_task_1, + credential?._id ?? ffi.nullptr, + protectionSpace?._id ?? ffi.nullptr, + options?._id ?? ffi.nullptr, + task?._id ?? ffi.nullptr); } - set reflexiveForm(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setReflexiveForm_1, value?._id ?? ffi.nullptr); + void getDefaultCredentialForProtectionSpace_task_completionHandler_( + NSURLProtectionSpace? space, + NSURLSessionTask? task, + ObjCBlock_ffiVoid_NSURLCredential completionHandler) { + _lib._objc_msgSend_933( + _id, + _lib._sel_getDefaultCredentialForProtectionSpace_task_completionHandler_1, + space?._id ?? ffi.nullptr, + task?._id ?? ffi.nullptr, + completionHandler._id); + } + + void setDefaultCredential_forProtectionSpace_task_( + NSURLCredential? credential, + NSURLProtectionSpace? protectionSpace, + NSURLSessionTask? task) { + _lib._objc_msgSend_931( + _id, + _lib._sel_setDefaultCredential_forProtectionSpace_task_1, + credential?._id ?? ffi.nullptr, + protectionSpace?._id ?? ffi.nullptr, + task?._id ?? ffi.nullptr); } @override - NSMorphologyCustomPronoun init() { + NSURLCredentialStorage init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSMorphologyCustomPronoun._(_ret, _lib, retain: true, release: true); + return NSURLCredentialStorage._(_ret, _lib, retain: true, release: true); } - static NSMorphologyCustomPronoun new1(SentryCocoa _lib) { + static NSURLCredentialStorage new1(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSMorphologyCustomPronoun1, _lib._sel_new1); - return NSMorphologyCustomPronoun._(_ret, _lib, - retain: false, release: true); + _lib._class_NSURLCredentialStorage1, _lib._sel_new1); + return NSURLCredentialStorage._(_ret, _lib, retain: false, release: true); } - static NSMorphologyCustomPronoun allocWithZone_( + static NSURLCredentialStorage allocWithZone_( SentryCocoa _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); + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLCredentialStorage1, _lib._sel_allocWithZone_1, zone); + return NSURLCredentialStorage._(_ret, _lib, retain: false, release: true); } - static NSMorphologyCustomPronoun alloc(SentryCocoa _lib) { + static NSURLCredentialStorage alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSMorphologyCustomPronoun1, _lib._sel_alloc1); - return NSMorphologyCustomPronoun._(_ret, _lib, - retain: false, release: true); + _lib._class_NSURLCredentialStorage1, _lib._sel_alloc1); + return NSURLCredentialStorage._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -60616,7 +66628,7 @@ class NSMorphologyCustomPronoun extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSMorphologyCustomPronoun1, + _lib._class_NSURLCredentialStorage1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -60625,24 +66637,24 @@ class NSMorphologyCustomPronoun extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSMorphologyCustomPronoun1, + _lib._objc_msgSend_15(_lib._class_NSURLCredentialStorage1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSMorphologyCustomPronoun1, + return _lib._objc_msgSend_12(_lib._class_NSURLCredentialStorage1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSMorphologyCustomPronoun1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLCredentialStorage1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSMorphologyCustomPronoun1, + _lib._class_NSURLCredentialStorage1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -60651,7 +66663,7 @@ class NSMorphologyCustomPronoun extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSMorphologyCustomPronoun1, + _lib._class_NSURLCredentialStorage1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -60659,179 +66671,335 @@ class NSMorphologyCustomPronoun extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSMorphologyCustomPronoun1, + _lib._class_NSURLCredentialStorage1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSMorphologyCustomPronoun1, + final _ret = _lib._objc_msgSend_79(_lib._class_NSURLCredentialStorage1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSMorphologyCustomPronoun1, + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLCredentialStorage1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSOperationQueue extends NSObject { - NSOperationQueue._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +void _ObjCBlock_ffiVoid_NSDictionary_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return block.ref.target + .cast< + ffi.NativeFunction arg0)>>() + .asFunction arg0)>()(arg0); +} - /// 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); - } +final _ObjCBlock_ffiVoid_NSDictionary_closureRegistry = {}; +int _ObjCBlock_ffiVoid_NSDictionary_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSDictionary_registerClosure( + Function fn) { + final id = ++_ObjCBlock_ffiVoid_NSDictionary_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSDictionary_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - /// Returns a [NSOperationQueue] that wraps the given raw object pointer. - static NSOperationQueue castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSOperationQueue._(other, lib, retain: retain, release: release); - } +void _ObjCBlock_ffiVoid_NSDictionary_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return (_ObjCBlock_ffiVoid_NSDictionary_closureRegistry[block + .ref.target.address] as void Function(ffi.Pointer))(arg0); +} - /// 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); - } +class ObjCBlock_ffiVoid_NSDictionary extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSDictionary._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); - NSProgress? get progress { - final _ret = _lib._objc_msgSend_609(_id, _lib._sel_progress1); - return _ret.address == 0 - ? null - : NSProgress._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_NSDictionary.fromFunctionPointer( + SentryCocoa lib, + ffi.Pointer< + ffi + .NativeFunction arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSDictionary_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - void addOperation_(NSOperation? op) { - _lib._objc_msgSend_832( - _id, _lib._sel_addOperation_1, op?._id ?? ffi.nullptr); + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_NSDictionary.fromFunction( + SentryCocoa lib, void Function(ffi.Pointer arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSDictionary_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSDictionary_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 addOperations_waitUntilFinished_(NSArray? ops, bool wait) { - _lib._objc_msgSend_835(_id, _lib._sel_addOperations_waitUntilFinished_1, - ops?._id ?? ffi.nullptr, wait); +void _ObjCBlock_ffiVoid_NSURLCredential_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return block.ref.target + .cast< + ffi.NativeFunction arg0)>>() + .asFunction arg0)>()(arg0); +} + +final _ObjCBlock_ffiVoid_NSURLCredential_closureRegistry = {}; +int _ObjCBlock_ffiVoid_NSURLCredential_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSURLCredential_registerClosure( + Function fn) { + final id = ++_ObjCBlock_ffiVoid_NSURLCredential_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSURLCredential_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSURLCredential_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return (_ObjCBlock_ffiVoid_NSURLCredential_closureRegistry[block + .ref.target.address] as void Function(ffi.Pointer))(arg0); +} + +class ObjCBlock_ffiVoid_NSURLCredential extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSURLCredential._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_NSURLCredential.fromFunctionPointer( + SentryCocoa lib, + ffi.Pointer< + ffi + .NativeFunction arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSURLCredential_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_NSURLCredential.fromFunction( + SentryCocoa lib, void Function(ffi.Pointer arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSURLCredential_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSURLCredential_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 addOperationWithBlock_(ObjCBlock_ffiVoid block) { - _lib._objc_msgSend_497(_id, _lib._sel_addOperationWithBlock_1, block._id); +class NSURLProtocol extends NSObject { + NSURLProtocol._(ffi.Pointer id, SentryCocoa 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); } - void addBarrierBlock_(ObjCBlock_ffiVoid barrier) { - _lib._objc_msgSend_497(_id, _lib._sel_addBarrierBlock_1, barrier._id); + /// Returns a [NSURLProtocol] that wraps the given raw object pointer. + static NSURLProtocol castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLProtocol._(other, lib, retain: retain, release: release); } - int get maxConcurrentOperationCount { - return _lib._objc_msgSend_78(_id, _lib._sel_maxConcurrentOperationCount1); + /// 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); } - set maxConcurrentOperationCount(int value) { - return _lib._objc_msgSend_590( - _id, _lib._sel_setMaxConcurrentOperationCount_1, value); + NSURLProtocol initWithRequest_cachedResponse_client_(NSURLRequest? request, + NSCachedURLResponse? cachedResponse, NSObject? client) { + final _ret = _lib._objc_msgSend_934( + _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); } - bool get suspended { - return _lib._objc_msgSend_12(_id, _lib._sel_isSuspended1); + NSObject? get client { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_client1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - set suspended(bool value) { - return _lib._objc_msgSend_492(_id, _lib._sel_setSuspended_1, value); + NSURLRequest? get request { + final _ret = _lib._objc_msgSend_803(_id, _lib._sel_request1); + return _ret.address == 0 + ? null + : NSURLRequest._(_ret, _lib, retain: true, release: true); } - NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + NSCachedURLResponse? get cachedResponse { + final _ret = _lib._objc_msgSend_935(_id, _lib._sel_cachedResponse1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSCachedURLResponse._(_ret, _lib, retain: true, release: true); } - set name(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + static bool canInitWithRequest_(SentryCocoa _lib, NSURLRequest? request) { + return _lib._objc_msgSend_912(_lib._class_NSURLProtocol1, + _lib._sel_canInitWithRequest_1, request?._id ?? ffi.nullptr); } - int get qualityOfService { - return _lib._objc_msgSend_507(_id, _lib._sel_qualityOfService1); + static NSURLRequest canonicalRequestForRequest_( + SentryCocoa _lib, NSURLRequest? request) { + final _ret = _lib._objc_msgSend_936(_lib._class_NSURLProtocol1, + _lib._sel_canonicalRequestForRequest_1, request?._id ?? ffi.nullptr); + return NSURLRequest._(_ret, _lib, retain: true, release: true); } - set qualityOfService(int value) { - return _lib._objc_msgSend_508(_id, _lib._sel_setQualityOfService_1, value); + static bool requestIsCacheEquivalent_toRequest_( + SentryCocoa _lib, NSURLRequest? a, NSURLRequest? b) { + return _lib._objc_msgSend_937( + _lib._class_NSURLProtocol1, + _lib._sel_requestIsCacheEquivalent_toRequest_1, + a?._id ?? ffi.nullptr, + b?._id ?? ffi.nullptr); } - NSObject get underlyingQueue { - final _ret = _lib._objc_msgSend_836(_id, _lib._sel_underlyingQueue1); + void startLoading() { + _lib._objc_msgSend_1(_id, _lib._sel_startLoading1); + } + + void stopLoading() { + _lib._objc_msgSend_1(_id, _lib._sel_stopLoading1); + } + + static NSObject propertyForKey_inRequest_( + SentryCocoa _lib, NSString? key, NSURLRequest? request) { + final _ret = _lib._objc_msgSend_938( + _lib._class_NSURLProtocol1, + _lib._sel_propertyForKey_inRequest_1, + key?._id ?? ffi.nullptr, + request?._id ?? ffi.nullptr); return NSObject._(_ret, _lib, retain: true, release: true); } - set underlyingQueue(NSObject value) { - return _lib._objc_msgSend_837( - _id, _lib._sel_setUnderlyingQueue_1, value._id); + static void setProperty_forKey_inRequest_(SentryCocoa _lib, NSObject value, + NSString? key, NSMutableURLRequest? request) { + _lib._objc_msgSend_944( + _lib._class_NSURLProtocol1, + _lib._sel_setProperty_forKey_inRequest_1, + value._id, + key?._id ?? ffi.nullptr, + request?._id ?? ffi.nullptr); } - void cancelAllOperations() { - _lib._objc_msgSend_1(_id, _lib._sel_cancelAllOperations1); + static void removePropertyForKey_inRequest_( + SentryCocoa _lib, NSString? key, NSMutableURLRequest? request) { + _lib._objc_msgSend_945( + _lib._class_NSURLProtocol1, + _lib._sel_removePropertyForKey_inRequest_1, + key?._id ?? ffi.nullptr, + request?._id ?? ffi.nullptr); + } + + static bool registerClass_(SentryCocoa _lib, NSObject protocolClass) { + return _lib._objc_msgSend_0(_lib._class_NSURLProtocol1, + _lib._sel_registerClass_1, protocolClass._id); } - void waitUntilAllOperationsAreFinished() { - _lib._objc_msgSend_1(_id, _lib._sel_waitUntilAllOperationsAreFinished1); + static void unregisterClass_(SentryCocoa _lib, NSObject protocolClass) { + _lib._objc_msgSend_15(_lib._class_NSURLProtocol1, + _lib._sel_unregisterClass_1, protocolClass._id); } - static NSOperationQueue? getCurrentQueue(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_838( - _lib._class_NSOperationQueue1, _lib._sel_currentQueue1); - return _ret.address == 0 - ? null - : NSOperationQueue._(_ret, _lib, retain: true, release: true); + static bool canInitWithTask_(SentryCocoa _lib, NSURLSessionTask? task) { + return _lib._objc_msgSend_946(_lib._class_NSURLProtocol1, + _lib._sel_canInitWithTask_1, task?._id ?? ffi.nullptr); } - static NSOperationQueue? getMainQueue(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_838( - _lib._class_NSOperationQueue1, _lib._sel_mainQueue1); - return _ret.address == 0 - ? null - : NSOperationQueue._(_ret, _lib, retain: true, release: true); + NSURLProtocol initWithTask_cachedResponse_client_(NSURLSessionTask? task, + NSCachedURLResponse? cachedResponse, NSObject? client) { + final _ret = _lib._objc_msgSend_947( + _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); } - NSArray? get operations { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_operations1); + NSURLSessionTask? get task { + final _ret = _lib._objc_msgSend_948(_id, _lib._sel_task1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - int get operationCount { - return _lib._objc_msgSend_10(_id, _lib._sel_operationCount1); + : NSURLSessionTask._(_ret, _lib, retain: true, release: true); } @override - NSOperationQueue init() { + NSURLProtocol init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSOperationQueue._(_ret, _lib, retain: true, release: true); + return NSURLProtocol._(_ret, _lib, retain: true, release: true); } - static NSOperationQueue new1(SentryCocoa _lib) { + static NSURLProtocol new1(SentryCocoa _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_NSURLProtocol1, _lib._sel_new1); + return NSURLProtocol._(_ret, _lib, retain: false, release: true); } - static NSOperationQueue allocWithZone_( + static NSURLProtocol allocWithZone_( SentryCocoa _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); + _lib._class_NSURLProtocol1, _lib._sel_allocWithZone_1, zone); + return NSURLProtocol._(_ret, _lib, retain: false, release: true); } - static NSOperationQueue alloc(SentryCocoa _lib) { + static NSURLProtocol alloc(SentryCocoa _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_NSURLProtocol1, _lib._sel_alloc1); + return NSURLProtocol._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -60840,7 +67008,7 @@ class NSOperationQueue extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSOperationQueue1, + _lib._class_NSURLProtocol1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -60849,24 +67017,24 @@ class NSOperationQueue extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSOperationQueue1, + _lib._objc_msgSend_15(_lib._class_NSURLProtocol1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSOperationQueue1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSURLProtocol1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSOperationQueue1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLProtocol1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSOperationQueue1, + _lib._class_NSURLProtocol1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -60875,7 +67043,7 @@ class NSOperationQueue extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSOperationQueue1, + _lib._class_NSURLProtocol1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -60883,397 +67051,333 @@ class NSOperationQueue extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSOperationQueue1, + _lib._class_NSURLProtocol1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSOperationQueue1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79( + _lib._class_NSURLProtocol1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSOperationQueue1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSURLProtocol1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSOperation extends NSObject { - NSOperation._(ffi.Pointer id, SentryCocoa lib, +class NSMutableURLRequest extends NSURLRequest { + NSMutableURLRequest._(ffi.Pointer id, SentryCocoa 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 [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 [NSOperation] that wraps the given raw object pointer. - static NSOperation castFromPointer( + /// Returns a [NSMutableURLRequest] that wraps the given raw object pointer. + static NSMutableURLRequest castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSOperation._(other, lib, retain: retain, release: release); + return NSMutableURLRequest._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSOperation]. + /// 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_NSOperation1); - } - - void start() { - _lib._objc_msgSend_1(_id, _lib._sel_start1); - } - - void main() { - _lib._objc_msgSend_1(_id, _lib._sel_main1); - } - - bool get cancelled { - return _lib._objc_msgSend_12(_id, _lib._sel_isCancelled1); - } - - void cancel() { - _lib._objc_msgSend_1(_id, _lib._sel_cancel1); - } - - bool get executing { - return _lib._objc_msgSend_12(_id, _lib._sel_isExecuting1); - } - - bool get finished { - return _lib._objc_msgSend_12(_id, _lib._sel_isFinished1); - } - - bool get concurrent { - return _lib._objc_msgSend_12(_id, _lib._sel_isConcurrent1); - } - - bool get asynchronous { - return _lib._objc_msgSend_12(_id, _lib._sel_isAsynchronous1); - } - - bool get ready { - return _lib._objc_msgSend_12(_id, _lib._sel_isReady1); - } - - void addDependency_(NSOperation? op) { - _lib._objc_msgSend_832( - _id, _lib._sel_addDependency_1, op?._id ?? ffi.nullptr); - } - - void removeDependency_(NSOperation? op) { - _lib._objc_msgSend_832( - _id, _lib._sel_removeDependency_1, op?._id ?? ffi.nullptr); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMutableURLRequest1); } - NSArray? get dependencies { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_dependencies1); + @override + NSURL? get URL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URL1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSURL._(_ret, _lib, retain: true, release: true); } - int get queuePriority { - return _lib._objc_msgSend_833(_id, _lib._sel_queuePriority1); + set URL(NSURL? value) { + return _lib._objc_msgSend_624( + _id, _lib._sel_setURL_1, value?._id ?? ffi.nullptr); } - set queuePriority(int value) { - return _lib._objc_msgSend_834(_id, _lib._sel_setQueuePriority_1, value); + @override + int get cachePolicy { + return _lib._objc_msgSend_790(_id, _lib._sel_cachePolicy1); } - ObjCBlock_ffiVoid get completionBlock { - final _ret = _lib._objc_msgSend_618(_id, _lib._sel_completionBlock1); - return ObjCBlock_ffiVoid._(_ret, _lib); + set cachePolicy(int value) { + return _lib._objc_msgSend_939(_id, _lib._sel_setCachePolicy_1, value); } - set completionBlock(ObjCBlock_ffiVoid value) { - return _lib._objc_msgSend_619( - _id, _lib._sel_setCompletionBlock_1, value._id); + @override + double get timeoutInterval { + return _lib._objc_msgSend_155(_id, _lib._sel_timeoutInterval1); } - void waitUntilFinished() { - _lib._objc_msgSend_1(_id, _lib._sel_waitUntilFinished1); + set timeoutInterval(double value) { + return _lib._objc_msgSend_509(_id, _lib._sel_setTimeoutInterval_1, value); } - double get threadPriority { - return _lib._objc_msgSend_155(_id, _lib._sel_threadPriority1); + @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); } - set threadPriority(double value) { - return _lib._objc_msgSend_506(_id, _lib._sel_setThreadPriority_1, value); + set mainDocumentURL(NSURL? value) { + return _lib._objc_msgSend_624( + _id, _lib._sel_setMainDocumentURL_1, value?._id ?? ffi.nullptr); } - int get qualityOfService { - return _lib._objc_msgSend_507(_id, _lib._sel_qualityOfService1); + @override + int get networkServiceType { + return _lib._objc_msgSend_791(_id, _lib._sel_networkServiceType1); } - set qualityOfService(int value) { - return _lib._objc_msgSend_508(_id, _lib._sel_setQualityOfService_1, value); + set networkServiceType(int value) { + return _lib._objc_msgSend_940( + _id, _lib._sel_setNetworkServiceType_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); + @override + bool get allowsCellularAccess { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsCellularAccess1); } - set name(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + set allowsCellularAccess(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setAllowsCellularAccess_1, value); } @override - NSOperation init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSOperation._(_ret, _lib, retain: true, release: true); + bool get allowsExpensiveNetworkAccess { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsExpensiveNetworkAccess1); } - static NSOperation new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSOperation1, _lib._sel_new1); - return NSOperation._(_ret, _lib, retain: false, release: true); + set allowsExpensiveNetworkAccess(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setAllowsExpensiveNetworkAccess_1, value); } - static NSOperation allocWithZone_( - SentryCocoa _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); + @override + bool get allowsConstrainedNetworkAccess { + return _lib._objc_msgSend_12( + _id, _lib._sel_allowsConstrainedNetworkAccess1); } - static NSOperation alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSOperation1, _lib._sel_alloc1); - return NSOperation._(_ret, _lib, retain: false, release: true); + set allowsConstrainedNetworkAccess(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setAllowsConstrainedNetworkAccess_1, value); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSOperation1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + @override + bool get assumesHTTP3Capable { + return _lib._objc_msgSend_12(_id, _lib._sel_assumesHTTP3Capable1); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSOperation1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + set assumesHTTP3Capable(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setAssumesHTTP3Capable_1, value); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSOperation1, _lib._sel_accessInstanceVariablesDirectly1); + @override + int get attribution { + return _lib._objc_msgSend_792(_id, _lib._sel_attribution1); } - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSOperation1, _lib._sel_useStoredAccessor1); + set attribution(int value) { + return _lib._objc_msgSend_941(_id, _lib._sel_setAttribution_1, value); } - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSOperation1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + @override + bool get requiresDNSSECValidation { + return _lib._objc_msgSend_12(_id, _lib._sel_requiresDNSSECValidation1); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSOperation1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + set requiresDNSSECValidation(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setRequiresDNSSECValidation_1, value); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSOperation1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + @override + bool get allowsPersistentDNS { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsPersistentDNS1); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSOperation1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + set allowsPersistentDNS(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setAllowsPersistentDNS_1, value); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSOperation1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + @override + NSString? get cookiePartitionIdentifier { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_cookiePartitionIdentifier1); + return _ret.address == 0 + ? null + : NSString._(_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; -} - -class NSPointerArray extends NSObject { - NSPointerArray._(ffi.Pointer id, SentryCocoa 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); + set cookiePartitionIdentifier(NSString? value) { + return _lib._objc_msgSend_512(_id, _lib._sel_setCookiePartitionIdentifier_1, + value?._id ?? ffi.nullptr); } - /// Returns a [NSPointerArray] that wraps the given raw object pointer. - static NSPointerArray castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSPointerArray._(other, lib, retain: retain, release: release); + @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); } - /// 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_NSPointerArray1); + set HTTPMethod(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setHTTPMethod_1, value?._id ?? ffi.nullptr); } - NSPointerArray initWithOptions_(int options) { - final _ret = - _lib._objc_msgSend_839(_id, _lib._sel_initWithOptions_1, options); - return NSPointerArray._(_ret, _lib, retain: true, release: true); + @override + NSDictionary? get allHTTPHeaderFields { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_allHTTPHeaderFields1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSPointerArray initWithPointerFunctions_(NSPointerFunctions? functions) { - final _ret = _lib._objc_msgSend_853(_id, - _lib._sel_initWithPointerFunctions_1, functions?._id ?? ffi.nullptr); - return NSPointerArray._(_ret, _lib, retain: true, release: true); + set allHTTPHeaderFields(NSDictionary? value) { + return _lib._objc_msgSend_171( + _id, _lib._sel_setAllHTTPHeaderFields_1, value?._id ?? ffi.nullptr); } - static NSPointerArray pointerArrayWithOptions_( - SentryCocoa _lib, int options) { - final _ret = _lib._objc_msgSend_854(_lib._class_NSPointerArray1, - _lib._sel_pointerArrayWithOptions_1, options); - return NSPointerArray._(_ret, _lib, retain: true, release: true); + void setValue_forHTTPHeaderField_(NSString? value, NSString? field) { + _lib._objc_msgSend_518(_id, _lib._sel_setValue_forHTTPHeaderField_1, + value?._id ?? ffi.nullptr, field?._id ?? ffi.nullptr); } - static NSPointerArray pointerArrayWithPointerFunctions_( - SentryCocoa _lib, NSPointerFunctions? functions) { - final _ret = _lib._objc_msgSend_855( - _lib._class_NSPointerArray1, - _lib._sel_pointerArrayWithPointerFunctions_1, - functions?._id ?? ffi.nullptr); - return NSPointerArray._(_ret, _lib, retain: true, release: true); + void addValue_forHTTPHeaderField_(NSString? value, NSString? field) { + _lib._objc_msgSend_518(_id, _lib._sel_addValue_forHTTPHeaderField_1, + value?._id ?? ffi.nullptr, field?._id ?? ffi.nullptr); } - NSPointerFunctions? get pointerFunctions { - final _ret = _lib._objc_msgSend_856(_id, _lib._sel_pointerFunctions1); + @override + NSData? get HTTPBody { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_HTTPBody1); return _ret.address == 0 ? null - : NSPointerFunctions._(_ret, _lib, retain: true, release: true); - } - - ffi.Pointer pointerAtIndex_(int index) { - return _lib._objc_msgSend_857(_id, _lib._sel_pointerAtIndex_1, index); + : NSData._(_ret, _lib, retain: true, release: true); } - void addPointer_(ffi.Pointer pointer) { - _lib._objc_msgSend_47(_id, _lib._sel_addPointer_1, pointer); + set HTTPBody(NSData? value) { + return _lib._objc_msgSend_942( + _id, _lib._sel_setHTTPBody_1, value?._id ?? ffi.nullptr); } - void removePointerAtIndex_(int index) { - _lib._objc_msgSend_439(_id, _lib._sel_removePointerAtIndex_1, index); + @override + NSInputStream? get HTTPBodyStream { + final _ret = _lib._objc_msgSend_802(_id, _lib._sel_HTTPBodyStream1); + return _ret.address == 0 + ? null + : NSInputStream._(_ret, _lib, retain: true, release: true); } - void insertPointer_atIndex_(ffi.Pointer item, int index) { - _lib._objc_msgSend_21(_id, _lib._sel_insertPointer_atIndex_1, item, index); + set HTTPBodyStream(NSInputStream? value) { + return _lib._objc_msgSend_943( + _id, _lib._sel_setHTTPBodyStream_1, value?._id ?? ffi.nullptr); } - void replacePointerAtIndex_withPointer_( - int index, ffi.Pointer item) { - _lib._objc_msgSend_858( - _id, _lib._sel_replacePointerAtIndex_withPointer_1, index, item); + @override + bool get HTTPShouldHandleCookies { + return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldHandleCookies1); } - void compact() { - _lib._objc_msgSend_1(_id, _lib._sel_compact1); + set HTTPShouldHandleCookies(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setHTTPShouldHandleCookies_1, value); } - int get count { - return _lib._objc_msgSend_10(_id, _lib._sel_count1); + @override + bool get HTTPShouldUsePipelining { + return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldUsePipelining1); } - set count(int value) { - return _lib._objc_msgSend_483(_id, _lib._sel_setCount_1, value); + set HTTPShouldUsePipelining(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setHTTPShouldUsePipelining_1, value); } - static NSObject pointerArrayWithStrongObjects(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSPointerArray1, _lib._sel_pointerArrayWithStrongObjects1); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSMutableURLRequest requestWithURL_(SentryCocoa _lib, NSURL? URL) { + final _ret = _lib._objc_msgSend_241(_lib._class_NSMutableURLRequest1, + _lib._sel_requestWithURL_1, URL?._id ?? ffi.nullptr); + return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); } - static NSObject pointerArrayWithWeakObjects(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSPointerArray1, _lib._sel_pointerArrayWithWeakObjects1); - return NSObject._(_ret, _lib, retain: true, release: true); + static bool getSupportsSecureCoding(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMutableURLRequest1, _lib._sel_supportsSecureCoding1); } - static NSPointerArray strongObjectsPointerArray(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_859( - _lib._class_NSPointerArray1, _lib._sel_strongObjectsPointerArray1); - return NSPointerArray._(_ret, _lib, retain: true, release: true); + static NSMutableURLRequest requestWithURL_cachePolicy_timeoutInterval_( + SentryCocoa _lib, NSURL? URL, int cachePolicy, double timeoutInterval) { + final _ret = _lib._objc_msgSend_789( + _lib._class_NSMutableURLRequest1, + _lib._sel_requestWithURL_cachePolicy_timeoutInterval_1, + URL?._id ?? ffi.nullptr, + cachePolicy, + timeoutInterval); + return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); } - static NSPointerArray weakObjectsPointerArray(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_859( - _lib._class_NSPointerArray1, _lib._sel_weakObjectsPointerArray1); - return NSPointerArray._(_ret, _lib, retain: true, release: true); + @override + NSMutableURLRequest initWithURL_(NSURL? URL) { + final _ret = _lib._objc_msgSend_241( + _id, _lib._sel_initWithURL_1, URL?._id ?? ffi.nullptr); + return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); } - NSArray? get allObjects { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_allObjects1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + @override + NSMutableURLRequest initWithURL_cachePolicy_timeoutInterval_( + NSURL? URL, int cachePolicy, double timeoutInterval) { + final _ret = _lib._objc_msgSend_789( + _id, + _lib._sel_initWithURL_cachePolicy_timeoutInterval_1, + URL?._id ?? ffi.nullptr, + cachePolicy, + timeoutInterval); + return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); } @override - NSPointerArray init() { + NSMutableURLRequest init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSPointerArray._(_ret, _lib, retain: true, release: true); + return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); } - static NSPointerArray new1(SentryCocoa _lib) { + static NSMutableURLRequest new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSPointerArray1, _lib._sel_new1); - return NSPointerArray._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSMutableURLRequest1, _lib._sel_new1); + return NSMutableURLRequest._(_ret, _lib, retain: false, release: true); } - static NSPointerArray allocWithZone_( + static NSMutableURLRequest allocWithZone_( SentryCocoa _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); + _lib._class_NSMutableURLRequest1, _lib._sel_allocWithZone_1, zone); + return NSMutableURLRequest._(_ret, _lib, retain: false, release: true); } - static NSPointerArray alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSPointerArray1, _lib._sel_alloc1); - return NSPointerArray._(_ret, _lib, retain: false, release: true); + static NSMutableURLRequest alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableURLRequest1, _lib._sel_alloc1); + return NSMutableURLRequest._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -61282,7 +67386,7 @@ class NSPointerArray extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSPointerArray1, + _lib._class_NSMutableURLRequest1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -61291,24 +67395,24 @@ class NSPointerArray extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSPointerArray1, + _lib._objc_msgSend_15(_lib._class_NSMutableURLRequest1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSPointerArray1, + return _lib._objc_msgSend_12(_lib._class_NSMutableURLRequest1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSPointerArray1, _lib._sel_useStoredAccessor1); + _lib._class_NSMutableURLRequest1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSPointerArray1, + _lib._class_NSMutableURLRequest1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -61317,7 +67421,7 @@ class NSPointerArray extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSPointerArray1, + _lib._class_NSMutableURLRequest1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -61325,249 +67429,187 @@ class NSPointerArray extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSPointerArray1, + _lib._class_NSMutableURLRequest1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSPointerArray1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_NSMutableURLRequest1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSPointerArray1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSMutableURLRequest1, _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, SentryCocoa lib, + +class NSXMLParser extends NSObject { + NSXMLParser._(ffi.Pointer id, SentryCocoa 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 [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 [NSPointerFunctions] that wraps the given raw object pointer. - static NSPointerFunctions castFromPointer( + /// Returns a [NSXMLParser] that wraps the given raw object pointer. + static NSXMLParser castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSPointerFunctions._(other, lib, retain: retain, release: release); + return NSXMLParser._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSPointerFunctions]. + /// 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_NSPointerFunctions1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLParser1); } - NSPointerFunctions initWithOptions_(int options) { - final _ret = - _lib._objc_msgSend_839(_id, _lib._sel_initWithOptions_1, options); - return NSPointerFunctions._(_ret, _lib, retain: true, release: true); + NSXMLParser initWithContentsOfURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_241( + _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSXMLParser._(_ret, _lib, retain: true, release: true); } - static NSPointerFunctions pointerFunctionsWithOptions_( - SentryCocoa _lib, int options) { - final _ret = _lib._objc_msgSend_840(_lib._class_NSPointerFunctions1, - _lib._sel_pointerFunctionsWithOptions_1, options); - return NSPointerFunctions._(_ret, _lib, retain: true, release: true); + NSXMLParser initWithData_(NSData? data) { + final _ret = _lib._objc_msgSend_257( + _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); + return NSXMLParser._(_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_841(_id, _lib._sel_hashFunction1); + NSXMLParser initWithStream_(NSInputStream? stream) { + final _ret = _lib._objc_msgSend_949( + _id, _lib._sel_initWithStream_1, stream?._id ?? ffi.nullptr); + return NSXMLParser._(_ret, _lib, retain: true, release: true); } - 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_842(_id, _lib._sel_setHashFunction_1, value); + 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); } - 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_843(_id, _lib._sel_isEqualFunction1); + set delegate(NSObject? value) { + return _lib._objc_msgSend_389( + _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } - 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_844(_id, _lib._sel_setIsEqualFunction_1, value); + bool get shouldProcessNamespaces { + return _lib._objc_msgSend_12(_id, _lib._sel_shouldProcessNamespaces1); } - ffi.Pointer< - ffi.NativeFunction)>> - get sizeFunction { - return _lib._objc_msgSend_845(_id, _lib._sel_sizeFunction1); + set shouldProcessNamespaces(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setShouldProcessNamespaces_1, value); } - set sizeFunction( - ffi.Pointer< - ffi - .NativeFunction)>> - value) { - return _lib._objc_msgSend_846(_id, _lib._sel_setSizeFunction_1, value); + bool get shouldReportNamespacePrefixes { + return _lib._objc_msgSend_12(_id, _lib._sel_shouldReportNamespacePrefixes1); } - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>> - get descriptionFunction { - return _lib._objc_msgSend_847(_id, _lib._sel_descriptionFunction1); + set shouldReportNamespacePrefixes(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setShouldReportNamespacePrefixes_1, value); } - set descriptionFunction( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>> - value) { - return _lib._objc_msgSend_848( - _id, _lib._sel_setDescriptionFunction_1, value); + int get externalEntityResolvingPolicy { + return _lib._objc_msgSend_950( + _id, _lib._sel_externalEntityResolvingPolicy1); } - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer)>>)>> - get relinquishFunction { - return _lib._objc_msgSend_849(_id, _lib._sel_relinquishFunction1); + set externalEntityResolvingPolicy(int value) { + return _lib._objc_msgSend_951( + _id, _lib._sel_setExternalEntityResolvingPolicy_1, value); } - 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_850( - _id, _lib._sel_setRelinquishFunction_1, value); + NSSet? get allowedExternalEntityURLs { + final _ret = + _lib._objc_msgSend_297(_id, _lib._sel_allowedExternalEntityURLs1); + return _ret.address == 0 + ? null + : NSSet._(_ret, _lib, retain: true, release: true); } - 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_851(_id, _lib._sel_acquireFunction1); + set allowedExternalEntityURLs(NSSet? value) { + return _lib._objc_msgSend_952(_id, _lib._sel_setAllowedExternalEntityURLs_1, + value?._id ?? ffi.nullptr); } - 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_852(_id, _lib._sel_setAcquireFunction_1, value); + bool parse() { + return _lib._objc_msgSend_12(_id, _lib._sel_parse1); } - bool get usesStrongWriteBarrier { - return _lib._objc_msgSend_12(_id, _lib._sel_usesStrongWriteBarrier1); + void abortParsing() { + _lib._objc_msgSend_1(_id, _lib._sel_abortParsing1); } - set usesStrongWriteBarrier(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setUsesStrongWriteBarrier_1, value); + NSError? get parserError { + final _ret = _lib._objc_msgSend_300(_id, _lib._sel_parserError1); + return _ret.address == 0 + ? null + : NSError._(_ret, _lib, retain: true, release: true); } - bool get usesWeakReadAndWriteBarriers { - return _lib._objc_msgSend_12(_id, _lib._sel_usesWeakReadAndWriteBarriers1); + bool get shouldResolveExternalEntities { + return _lib._objc_msgSend_12(_id, _lib._sel_shouldResolveExternalEntities1); } - set usesWeakReadAndWriteBarriers(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setUsesWeakReadAndWriteBarriers_1, value); + set shouldResolveExternalEntities(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setShouldResolveExternalEntities_1, value); + } + + 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); + } + + 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); + } + + int get lineNumber { + return _lib._objc_msgSend_78(_id, _lib._sel_lineNumber1); + } + + int get columnNumber { + return _lib._objc_msgSend_78(_id, _lib._sel_columnNumber1); } @override - NSPointerFunctions init() { + NSXMLParser init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSPointerFunctions._(_ret, _lib, retain: true, release: true); + return NSXMLParser._(_ret, _lib, retain: true, release: true); } - static NSPointerFunctions new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSPointerFunctions1, _lib._sel_new1); - return NSPointerFunctions._(_ret, _lib, retain: false, release: true); + static NSXMLParser new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLParser1, _lib._sel_new1); + return NSXMLParser._(_ret, _lib, retain: false, release: true); } - static NSPointerFunctions allocWithZone_( + static NSXMLParser allocWithZone_( SentryCocoa _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); + _lib._class_NSXMLParser1, _lib._sel_allocWithZone_1, zone); + return NSXMLParser._(_ret, _lib, retain: false, release: true); } - static NSPointerFunctions alloc(SentryCocoa _lib) { + static NSXMLParser alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSPointerFunctions1, _lib._sel_alloc1); - return NSPointerFunctions._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSXMLParser1, _lib._sel_alloc1); + return NSXMLParser._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -61576,7 +67618,7 @@ class NSPointerFunctions extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSPointerFunctions1, + _lib._class_NSXMLParser1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -61585,24 +67627,24 @@ class NSPointerFunctions extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSPointerFunctions1, + _lib._objc_msgSend_15(_lib._class_NSXMLParser1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSPointerFunctions1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSXMLParser1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSPointerFunctions1, _lib._sel_useStoredAccessor1); + _lib._class_NSXMLParser1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSPointerFunctions1, + _lib._class_NSXMLParser1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -61611,7 +67653,7 @@ class NSPointerFunctions extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSPointerFunctions1, + _lib._class_NSXMLParser1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -61619,256 +67661,310 @@ class NSPointerFunctions extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSPointerFunctions1, + _lib._class_NSXMLParser1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSPointerFunctions1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79( + _lib._class_NSXMLParser1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSPointerFunctions1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSXMLParser1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSProcessInfo extends NSObject { - NSProcessInfo._(ffi.Pointer id, SentryCocoa lib, +abstract class NSXMLParserExternalEntityResolvingPolicy { + static const int NSXMLParserResolveExternalEntitiesNever = 0; + static const int NSXMLParserResolveExternalEntitiesNoNetwork = 1; + static const int NSXMLParserResolveExternalEntitiesSameOriginOnly = 2; + static const int NSXMLParserResolveExternalEntitiesAlways = 3; +} + +class NSFileWrapper extends NSObject { + NSFileWrapper._(ffi.Pointer id, SentryCocoa 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 [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 [NSProcessInfo] that wraps the given raw object pointer. - static NSProcessInfo castFromPointer( + /// Returns a [NSFileWrapper] that wraps the given raw object pointer. + static NSFileWrapper castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSProcessInfo._(other, lib, retain: retain, release: release); + return NSFileWrapper._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSProcessInfo]. + /// 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_NSProcessInfo1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSFileWrapper1); } - static NSProcessInfo? getProcessInfo(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_860( - _lib._class_NSProcessInfo1, _lib._sel_processInfo1); - return _ret.address == 0 - ? null - : NSProcessInfo._(_ret, _lib, retain: true, release: true); + NSFileWrapper initWithURL_options_error_( + NSURL? url, int options, ffi.Pointer> outError) { + final _ret = _lib._objc_msgSend_953( + _id, + _lib._sel_initWithURL_options_error_1, + url?._id ?? ffi.nullptr, + options, + outError); + return NSFileWrapper._(_ret, _lib, retain: true, release: true); } - NSDictionary? get environment { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_environment1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + NSFileWrapper initDirectoryWithFileWrappers_( + NSDictionary? childrenByPreferredName) { + final _ret = _lib._objc_msgSend_149( + _id, + _lib._sel_initDirectoryWithFileWrappers_1, + childrenByPreferredName?._id ?? ffi.nullptr); + return NSFileWrapper._(_ret, _lib, retain: true, release: true); } - NSArray? get arguments { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_arguments1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSFileWrapper initRegularFileWithContents_(NSData? contents) { + final _ret = _lib._objc_msgSend_257(_id, + _lib._sel_initRegularFileWithContents_1, contents?._id ?? ffi.nullptr); + return NSFileWrapper._(_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); + NSFileWrapper initSymbolicLinkWithDestinationURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_241( + _id, + _lib._sel_initSymbolicLinkWithDestinationURL_1, + url?._id ?? ffi.nullptr); + return NSFileWrapper._(_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); + NSFileWrapper initWithSerializedRepresentation_( + NSData? serializeRepresentation) { + final _ret = _lib._objc_msgSend_257( + _id, + _lib._sel_initWithSerializedRepresentation_1, + serializeRepresentation?._id ?? ffi.nullptr); + return NSFileWrapper._(_ret, _lib, retain: true, release: true); } - set processName(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setProcessName_1, value?._id ?? ffi.nullptr); + 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); } - int get processIdentifier { - return _lib._objc_msgSend_219(_id, _lib._sel_processIdentifier1); + bool get directory { + return _lib._objc_msgSend_12(_id, _lib._sel_isDirectory1); } - NSString? get globallyUniqueString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_globallyUniqueString1); + bool get regularFile { + return _lib._objc_msgSend_12(_id, _lib._sel_isRegularFile1); + } + + bool get symbolicLink { + return _lib._objc_msgSend_12(_id, _lib._sel_isSymbolicLink1); + } + + 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); } - int operatingSystem() { - return _lib._objc_msgSend_10(_id, _lib._sel_operatingSystem1); - } - - NSString operatingSystemName() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_operatingSystemName1); - return NSString._(_ret, _lib, retain: true, release: true); + set preferredFilename(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setPreferredFilename_1, value?._id ?? ffi.nullptr); } - NSString? get operatingSystemVersionString { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_operatingSystemVersionString1); + NSString? get filename { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_filename1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - void getOperatingSystemVersion(ffi.Pointer stret) { - _lib._objc_msgSend_861(stret, _id, _lib._sel_operatingSystemVersion1); + set filename(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setFilename_1, value?._id ?? ffi.nullptr); } - int get processorCount { - return _lib._objc_msgSend_10(_id, _lib._sel_processorCount1); + NSDictionary? get fileAttributes { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_fileAttributes1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - int get activeProcessorCount { - return _lib._objc_msgSend_10(_id, _lib._sel_activeProcessorCount1); + set fileAttributes(NSDictionary? value) { + return _lib._objc_msgSend_171( + _id, _lib._sel_setFileAttributes_1, value?._id ?? ffi.nullptr); } - int get physicalMemory { - return _lib._objc_msgSend_154(_id, _lib._sel_physicalMemory1); + bool matchesContentsOfURL_(NSURL? url) { + return _lib._objc_msgSend_244( + _id, _lib._sel_matchesContentsOfURL_1, url?._id ?? ffi.nullptr); } - bool isOperatingSystemAtLeastVersion_(NSOperatingSystemVersion version) { - return _lib._objc_msgSend_862( - _id, _lib._sel_isOperatingSystemAtLeastVersion_1, version); + bool readFromURL_options_error_( + NSURL? url, int options, ffi.Pointer> outError) { + return _lib._objc_msgSend_954(_id, _lib._sel_readFromURL_options_error_1, + url?._id ?? ffi.nullptr, options, outError); } - double get systemUptime { - return _lib._objc_msgSend_155(_id, _lib._sel_systemUptime1); + bool writeToURL_options_originalContentsURL_error_( + NSURL? url, + int options, + NSURL? originalContentsURL, + ffi.Pointer> outError) { + return _lib._objc_msgSend_955( + _id, + _lib._sel_writeToURL_options_originalContentsURL_error_1, + url?._id ?? ffi.nullptr, + options, + originalContentsURL?._id ?? ffi.nullptr, + outError); } - void disableSuddenTermination() { - _lib._objc_msgSend_1(_id, _lib._sel_disableSuddenTermination1); + NSData? get serializedRepresentation { + final _ret = + _lib._objc_msgSend_39(_id, _lib._sel_serializedRepresentation1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - void enableSuddenTermination() { - _lib._objc_msgSend_1(_id, _lib._sel_enableSuddenTermination1); + NSString addFileWrapper_(NSFileWrapper? child) { + final _ret = _lib._objc_msgSend_956( + _id, _lib._sel_addFileWrapper_1, child?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - void disableAutomaticTermination_(NSString? reason) { - _lib._objc_msgSend_192(_id, _lib._sel_disableAutomaticTermination_1, - reason?._id ?? ffi.nullptr); + NSString addRegularFileWithContents_preferredFilename_( + NSData? data, NSString? fileName) { + final _ret = _lib._objc_msgSend_957( + _id, + _lib._sel_addRegularFileWithContents_preferredFilename_1, + data?._id ?? ffi.nullptr, + fileName?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - void enableAutomaticTermination_(NSString? reason) { - _lib._objc_msgSend_192(_id, _lib._sel_enableAutomaticTermination_1, - reason?._id ?? ffi.nullptr); + void removeFileWrapper_(NSFileWrapper? child) { + _lib._objc_msgSend_958( + _id, _lib._sel_removeFileWrapper_1, child?._id ?? ffi.nullptr); } - bool get automaticTerminationSupportEnabled { - return _lib._objc_msgSend_12( - _id, _lib._sel_automaticTerminationSupportEnabled1); + NSDictionary? get fileWrappers { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_fileWrappers1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - set automaticTerminationSupportEnabled(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setAutomaticTerminationSupportEnabled_1, value); + NSString keyForFileWrapper_(NSFileWrapper? child) { + final _ret = _lib._objc_msgSend_956( + _id, _lib._sel_keyForFileWrapper_1, child?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - NSObject beginActivityWithOptions_reason_(int options, NSString? reason) { - final _ret = _lib._objc_msgSend_863( - _id, - _lib._sel_beginActivityWithOptions_reason_1, - options, - reason?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSData? get regularFileContents { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_regularFileContents1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - void endActivity_(NSObject? activity) { - _lib._objc_msgSend_15( - _id, _lib._sel_endActivity_1, activity?._id ?? ffi.nullptr); + NSURL? get symbolicLinkDestinationURL { + final _ret = + _lib._objc_msgSend_40(_id, _lib._sel_symbolicLinkDestinationURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - void performActivityWithOptions_reason_usingBlock_( - int options, NSString? reason, ObjCBlock_ffiVoid block) { - _lib._objc_msgSend_864( - _id, - _lib._sel_performActivityWithOptions_reason_usingBlock_1, - options, - reason?._id ?? ffi.nullptr, - block._id); + 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); } - void performExpiringActivityWithReason_usingBlock_( - NSString? reason, ObjCBlock_ffiVoid_bool block) { - _lib._objc_msgSend_865( - _id, - _lib._sel_performExpiringActivityWithReason_usingBlock_1, - reason?._id ?? ffi.nullptr, - block._id); + 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); } - NSString? get userName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_userName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + bool needsToBeUpdatedFromPath_(NSString? path) { + return _lib._objc_msgSend_59( + _id, _lib._sel_needsToBeUpdatedFromPath_1, path?._id ?? ffi.nullptr); } - 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); + bool updateFromPath_(NSString? path) { + return _lib._objc_msgSend_59( + _id, _lib._sel_updateFromPath_1, path?._id ?? ffi.nullptr); } - int get thermalState { - return _lib._objc_msgSend_866(_id, _lib._sel_thermalState1); + bool writeToFile_atomically_updateFilenames_( + NSString? path, bool atomicFlag, bool updateFilenamesFlag) { + return _lib._objc_msgSend_959( + _id, + _lib._sel_writeToFile_atomically_updateFilenames_1, + path?._id ?? ffi.nullptr, + atomicFlag, + updateFilenamesFlag); } - bool get lowPowerModeEnabled { - return _lib._objc_msgSend_12(_id, _lib._sel_isLowPowerModeEnabled1); + NSString addFileWithPath_(NSString? path) { + final _ret = _lib._objc_msgSend_64( + _id, _lib._sel_addFileWithPath_1, path?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - bool get macCatalystApp { - return _lib._objc_msgSend_12(_id, _lib._sel_isMacCatalystApp1); + NSString addSymbolicLinkWithDestination_preferredFilename_( + NSString? path, NSString? filename) { + final _ret = _lib._objc_msgSend_341( + _id, + _lib._sel_addSymbolicLinkWithDestination_preferredFilename_1, + path?._id ?? ffi.nullptr, + filename?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - bool get iOSAppOnMac { - return _lib._objc_msgSend_12(_id, _lib._sel_isiOSAppOnMac1); + NSString symbolicLinkDestination() { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_symbolicLinkDestination1); + return NSString._(_ret, _lib, retain: true, release: true); } @override - NSProcessInfo init() { + NSFileWrapper init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSProcessInfo._(_ret, _lib, retain: true, release: true); + return NSFileWrapper._(_ret, _lib, retain: true, release: true); } - static NSProcessInfo new1(SentryCocoa _lib) { + static NSFileWrapper new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSProcessInfo1, _lib._sel_new1); - return NSProcessInfo._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSFileWrapper1, _lib._sel_new1); + return NSFileWrapper._(_ret, _lib, retain: false, release: true); } - static NSProcessInfo allocWithZone_( + static NSFileWrapper allocWithZone_( SentryCocoa _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); + _lib._class_NSFileWrapper1, _lib._sel_allocWithZone_1, zone); + return NSFileWrapper._(_ret, _lib, retain: false, release: true); } - static NSProcessInfo alloc(SentryCocoa _lib) { + static NSFileWrapper alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSProcessInfo1, _lib._sel_alloc1); - return NSProcessInfo._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSFileWrapper1, _lib._sel_alloc1); + return NSFileWrapper._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -61877,7 +67973,7 @@ class NSProcessInfo extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSProcessInfo1, + _lib._class_NSFileWrapper1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -61886,24 +67982,24 @@ class NSProcessInfo extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSProcessInfo1, + _lib._objc_msgSend_15(_lib._class_NSFileWrapper1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSProcessInfo1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSFileWrapper1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSProcessInfo1, _lib._sel_useStoredAccessor1); + _lib._class_NSFileWrapper1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSProcessInfo1, + _lib._class_NSFileWrapper1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -61912,7 +68008,7 @@ class NSProcessInfo extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSProcessInfo1, + _lib._class_NSFileWrapper1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -61920,7 +68016,7 @@ class NSProcessInfo extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSProcessInfo1, + _lib._class_NSFileWrapper1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -61928,431 +68024,357 @@ class NSProcessInfo extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSProcessInfo1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSFileWrapper1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSProcessInfo1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSFileWrapper1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, 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; -} - -void _ObjCBlock_ffiVoid_bool_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, bool arg0) { - return block.ref.target - .cast>() - .asFunction()(arg0); -} - -final _ObjCBlock_ffiVoid_bool_closureRegistry = {}; -int _ObjCBlock_ffiVoid_bool_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_bool_registerClosure(Function fn) { - final id = ++_ObjCBlock_ffiVoid_bool_closureRegistryIndex; - _ObjCBlock_ffiVoid_bool_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock_ffiVoid_bool_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, bool arg0) { - return (_ObjCBlock_ffiVoid_bool_closureRegistry[block.ref.target.address] - as void Function(bool))(arg0); -} - -class ObjCBlock_ffiVoid_bool extends _ObjCBlockBase { - ObjCBlock_ffiVoid_bool._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_bool.fromFunctionPointer(SentryCocoa lib, - ffi.Pointer> ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, ffi.Bool arg0)>( - _ObjCBlock_ffiVoid_bool_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_bool.fromFunction( - SentryCocoa lib, void Function(bool arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, ffi.Bool arg0)>( - _ObjCBlock_ffiVoid_bool_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_bool_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); - } +abstract class NSFileWrapperReadingOptions { + static const int NSFileWrapperReadingImmediate = 1; + static const int NSFileWrapperReadingWithoutMapping = 2; } -abstract class NSProcessInfoThermalState { - static const int NSProcessInfoThermalStateNominal = 0; - static const int NSProcessInfoThermalStateFair = 1; - static const int NSProcessInfoThermalStateSerious = 2; - static const int NSProcessInfoThermalStateCritical = 3; +abstract class NSFileWrapperWritingOptions { + static const int NSFileWrapperWritingAtomic = 1; + static const int NSFileWrapperWritingWithNameUpdating = 2; } -class NSTextCheckingResult extends NSObject { - NSTextCheckingResult._(ffi.Pointer id, SentryCocoa lib, +class NSURLSession extends NSObject { + NSURLSession._(ffi.Pointer id, SentryCocoa 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); + /// 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 [NSTextCheckingResult] that wraps the given raw object pointer. - static NSTextCheckingResult castFromPointer( + /// Returns a [NSURLSession] that wraps the given raw object pointer. + static NSURLSession castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSTextCheckingResult._(other, lib, retain: retain, release: release); + return NSURLSession._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSTextCheckingResult]. + /// 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_NSTextCheckingResult1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLSession1); } - int get resultType { - return _lib._objc_msgSend_867(_id, _lib._sel_resultType1); + static NSURLSession? getSharedSession(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_960( + _lib._class_NSURLSession1, _lib._sel_sharedSession1); + return _ret.address == 0 + ? null + : NSURLSession._(_ret, _lib, retain: true, release: true); } - void getRange(ffi.Pointer<_NSRange> stret) { - _lib._objc_msgSend_49(stret, _id, _lib._sel_range1); + static NSURLSession sessionWithConfiguration_( + SentryCocoa _lib, NSURLSessionConfiguration? configuration) { + final _ret = _lib._objc_msgSend_971( + _lib._class_NSURLSession1, + _lib._sel_sessionWithConfiguration_1, + configuration?._id ?? ffi.nullptr); + return NSURLSession._(_ret, _lib, retain: true, release: true); } - NSOrthography? get orthography { - final _ret = _lib._objc_msgSend_868(_id, _lib._sel_orthography1); + static NSURLSession sessionWithConfiguration_delegate_delegateQueue_( + SentryCocoa _lib, + NSURLSessionConfiguration? configuration, + NSObject? delegate, + NSOperationQueue? queue) { + final _ret = _lib._objc_msgSend_972( + _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); + } + + NSOperationQueue? get delegateQueue { + final _ret = _lib._objc_msgSend_842(_id, _lib._sel_delegateQueue1); return _ret.address == 0 ? null - : NSOrthography._(_ret, _lib, retain: true, release: true); + : NSOperationQueue._(_ret, _lib, retain: true, release: true); } - NSArray? get grammarDetails { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_grammarDetails1); + NSObject? get delegate { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSObject._(_ret, _lib, retain: true, release: true); } - NSDate? get date { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_date1); + NSURLSessionConfiguration? get configuration { + final _ret = _lib._objc_msgSend_961(_id, _lib._sel_configuration1); return _ret.address == 0 ? null - : NSDate._(_ret, _lib, retain: true, release: true); + : NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); } - NSTimeZone? get timeZone { - final _ret = _lib._objc_msgSend_168(_id, _lib._sel_timeZone1); + NSString? get sessionDescription { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sessionDescription1); return _ret.address == 0 ? null - : NSTimeZone._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - double get duration { - return _lib._objc_msgSend_155(_id, _lib._sel_duration1); + set sessionDescription(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setSessionDescription_1, value?._id ?? ffi.nullptr); } - NSDictionary? get components { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_components1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + void finishTasksAndInvalidate() { + _lib._objc_msgSend_1(_id, _lib._sel_finishTasksAndInvalidate1); } - 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); + void invalidateAndCancel() { + _lib._objc_msgSend_1(_id, _lib._sel_invalidateAndCancel1); } - 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); + void resetWithCompletionHandler_(ObjCBlock_ffiVoid completionHandler) { + _lib._objc_msgSend_500( + _id, _lib._sel_resetWithCompletionHandler_1, completionHandler._id); } - NSArray? get alternativeStrings { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_alternativeStrings1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + void flushWithCompletionHandler_(ObjCBlock_ffiVoid completionHandler) { + _lib._objc_msgSend_500( + _id, _lib._sel_flushWithCompletionHandler_1, completionHandler._id); } - NSRegularExpression? get regularExpression { - final _ret = _lib._objc_msgSend_880(_id, _lib._sel_regularExpression1); - return _ret.address == 0 - ? null - : NSRegularExpression._(_ret, _lib, retain: true, release: true); + void getTasksWithCompletionHandler_( + ObjCBlock_ffiVoid_NSArray_NSArray_NSArray completionHandler) { + _lib._objc_msgSend_973( + _id, _lib._sel_getTasksWithCompletionHandler_1, completionHandler._id); } - 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); + void getAllTasksWithCompletionHandler_( + ObjCBlock_ffiVoid_NSArray completionHandler) { + _lib._objc_msgSend_974(_id, _lib._sel_getAllTasksWithCompletionHandler_1, + completionHandler._id); } - int get numberOfRanges { - return _lib._objc_msgSend_10(_id, _lib._sel_numberOfRanges1); + NSURLSessionDataTask dataTaskWithRequest_(NSURLRequest? request) { + final _ret = _lib._objc_msgSend_975( + _id, _lib._sel_dataTaskWithRequest_1, request?._id ?? ffi.nullptr); + return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); } - void rangeAtIndex_(ffi.Pointer<_NSRange> stret, int idx) { - _lib._objc_msgSend_323(stret, _id, _lib._sel_rangeAtIndex_1, idx); + NSURLSessionDataTask dataTaskWithURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_976( + _id, _lib._sel_dataTaskWithURL_1, url?._id ?? ffi.nullptr); + return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); } - void rangeWithName_(ffi.Pointer<_NSRange> stret, NSString? name) { - _lib._objc_msgSend_316( - stret, _id, _lib._sel_rangeWithName_1, name?._id ?? ffi.nullptr); + NSURLSessionUploadTask uploadTaskWithRequest_fromFile_( + NSURLRequest? request, NSURL? fileURL) { + final _ret = _lib._objc_msgSend_978( + _id, + _lib._sel_uploadTaskWithRequest_fromFile_1, + request?._id ?? ffi.nullptr, + fileURL?._id ?? ffi.nullptr); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); } - NSTextCheckingResult resultByAdjustingRangesWithOffset_(int offset) { - final _ret = _lib._objc_msgSend_881( - _id, _lib._sel_resultByAdjustingRangesWithOffset_1, offset); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + NSURLSessionUploadTask uploadTaskWithRequest_fromData_( + NSURLRequest? request, NSData? bodyData) { + final _ret = _lib._objc_msgSend_979( + _id, + _lib._sel_uploadTaskWithRequest_fromData_1, + request?._id ?? ffi.nullptr, + bodyData?._id ?? ffi.nullptr); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); } - NSDictionary? get addressComponents { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_addressComponents1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + NSURLSessionUploadTask uploadTaskWithResumeData_(NSData? resumeData) { + final _ret = _lib._objc_msgSend_980(_id, + _lib._sel_uploadTaskWithResumeData_1, resumeData?._id ?? ffi.nullptr); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); } - static NSTextCheckingResult orthographyCheckingResultWithRange_orthography_( - SentryCocoa _lib, _NSRange range, NSOrthography? orthography) { - final _ret = _lib._objc_msgSend_882( - _lib._class_NSTextCheckingResult1, - _lib._sel_orthographyCheckingResultWithRange_orthography_1, - range, - orthography?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + NSURLSessionUploadTask uploadTaskWithStreamedRequest_(NSURLRequest? request) { + final _ret = _lib._objc_msgSend_981(_id, + _lib._sel_uploadTaskWithStreamedRequest_1, request?._id ?? ffi.nullptr); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); } - static NSTextCheckingResult spellCheckingResultWithRange_( - SentryCocoa _lib, _NSRange range) { - final _ret = _lib._objc_msgSend_883(_lib._class_NSTextCheckingResult1, - _lib._sel_spellCheckingResultWithRange_1, range); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + NSURLSessionDownloadTask downloadTaskWithRequest_(NSURLRequest? request) { + final _ret = _lib._objc_msgSend_982( + _id, _lib._sel_downloadTaskWithRequest_1, request?._id ?? ffi.nullptr); + return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } - static NSTextCheckingResult grammarCheckingResultWithRange_details_( - SentryCocoa _lib, _NSRange range, NSArray? details) { - final _ret = _lib._objc_msgSend_884( - _lib._class_NSTextCheckingResult1, - _lib._sel_grammarCheckingResultWithRange_details_1, - range, - details?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + NSURLSessionDownloadTask downloadTaskWithURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_983( + _id, _lib._sel_downloadTaskWithURL_1, url?._id ?? ffi.nullptr); + return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } - static NSTextCheckingResult dateCheckingResultWithRange_date_( - SentryCocoa _lib, _NSRange range, NSDate? date) { - final _ret = _lib._objc_msgSend_885( - _lib._class_NSTextCheckingResult1, - _lib._sel_dateCheckingResultWithRange_date_1, - range, - date?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + NSURLSessionDownloadTask downloadTaskWithResumeData_(NSData? resumeData) { + final _ret = _lib._objc_msgSend_984(_id, + _lib._sel_downloadTaskWithResumeData_1, resumeData?._id ?? ffi.nullptr); + return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } - static NSTextCheckingResult - dateCheckingResultWithRange_date_timeZone_duration_(SentryCocoa _lib, - _NSRange range, NSDate? date, NSTimeZone? timeZone, double duration) { - final _ret = _lib._objc_msgSend_886( - _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); + NSURLSessionStreamTask streamTaskWithHostName_port_( + NSString? hostname, int port) { + final _ret = _lib._objc_msgSend_987( + _id, + _lib._sel_streamTaskWithHostName_port_1, + hostname?._id ?? ffi.nullptr, + port); + return NSURLSessionStreamTask._(_ret, _lib, retain: true, release: true); } - static NSTextCheckingResult addressCheckingResultWithRange_components_( - SentryCocoa _lib, _NSRange range, NSDictionary? components) { - final _ret = _lib._objc_msgSend_887( - _lib._class_NSTextCheckingResult1, - _lib._sel_addressCheckingResultWithRange_components_1, - range, - components?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + NSURLSessionStreamTask streamTaskWithNetService_(NSNetService? service) { + final _ret = _lib._objc_msgSend_993( + _id, _lib._sel_streamTaskWithNetService_1, service?._id ?? ffi.nullptr); + return NSURLSessionStreamTask._(_ret, _lib, retain: true, release: true); } - static NSTextCheckingResult linkCheckingResultWithRange_URL_( - SentryCocoa _lib, _NSRange range, NSURL? url) { - final _ret = _lib._objc_msgSend_888( - _lib._class_NSTextCheckingResult1, - _lib._sel_linkCheckingResultWithRange_URL_1, - range, - url?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + NSURLSessionWebSocketTask webSocketTaskWithURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_1000( + _id, _lib._sel_webSocketTaskWithURL_1, url?._id ?? ffi.nullptr); + return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); } - static NSTextCheckingResult quoteCheckingResultWithRange_replacementString_( - SentryCocoa _lib, _NSRange range, NSString? replacementString) { - final _ret = _lib._objc_msgSend_889( - _lib._class_NSTextCheckingResult1, - _lib._sel_quoteCheckingResultWithRange_replacementString_1, - range, - replacementString?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + NSURLSessionWebSocketTask webSocketTaskWithURL_protocols_( + NSURL? url, NSArray? protocols) { + final _ret = _lib._objc_msgSend_1001( + _id, + _lib._sel_webSocketTaskWithURL_protocols_1, + url?._id ?? ffi.nullptr, + protocols?._id ?? ffi.nullptr); + return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); } - static NSTextCheckingResult dashCheckingResultWithRange_replacementString_( - SentryCocoa _lib, _NSRange range, NSString? replacementString) { - final _ret = _lib._objc_msgSend_889( - _lib._class_NSTextCheckingResult1, - _lib._sel_dashCheckingResultWithRange_replacementString_1, - range, - replacementString?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + NSURLSessionWebSocketTask webSocketTaskWithRequest_(NSURLRequest? request) { + final _ret = _lib._objc_msgSend_1002( + _id, _lib._sel_webSocketTaskWithRequest_1, request?._id ?? ffi.nullptr); + return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); } - static NSTextCheckingResult - replacementCheckingResultWithRange_replacementString_( - SentryCocoa _lib, _NSRange range, NSString? replacementString) { - final _ret = _lib._objc_msgSend_889( - _lib._class_NSTextCheckingResult1, - _lib._sel_replacementCheckingResultWithRange_replacementString_1, - range, - replacementString?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + @override + NSURLSession init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLSession._(_ret, _lib, retain: true, release: true); } - static NSTextCheckingResult - correctionCheckingResultWithRange_replacementString_( - SentryCocoa _lib, _NSRange range, NSString? replacementString) { - final _ret = _lib._objc_msgSend_889( - _lib._class_NSTextCheckingResult1, - _lib._sel_correctionCheckingResultWithRange_replacementString_1, - range, - replacementString?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + static NSURLSession new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLSession1, _lib._sel_new1); + return NSURLSession._(_ret, _lib, retain: false, release: true); } - static NSTextCheckingResult - correctionCheckingResultWithRange_replacementString_alternativeStrings_( - SentryCocoa _lib, - _NSRange range, - NSString? replacementString, - NSArray? alternativeStrings) { - final _ret = _lib._objc_msgSend_890( - _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); + NSURLSessionDataTask dataTaskWithRequest_completionHandler_( + NSURLRequest? request, + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_1003( + _id, + _lib._sel_dataTaskWithRequest_completionHandler_1, + request?._id ?? ffi.nullptr, + completionHandler._id); + return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); } - static NSTextCheckingResult - regularExpressionCheckingResultWithRanges_count_regularExpression_( - SentryCocoa _lib, - ffi.Pointer<_NSRange> ranges, - int count, - NSRegularExpression? regularExpression) { - final _ret = _lib._objc_msgSend_891( - _lib._class_NSTextCheckingResult1, - _lib._sel_regularExpressionCheckingResultWithRanges_count_regularExpression_1, - ranges, - count, - regularExpression?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + NSURLSessionDataTask dataTaskWithURL_completionHandler_(NSURL? url, + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_1004( + _id, + _lib._sel_dataTaskWithURL_completionHandler_1, + url?._id ?? ffi.nullptr, + completionHandler._id); + return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionUploadTask uploadTaskWithRequest_fromFile_completionHandler_( + NSURLRequest? request, + NSURL? fileURL, + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_1005( + _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); + } + + NSURLSessionUploadTask uploadTaskWithRequest_fromData_completionHandler_( + NSURLRequest? request, + NSData? bodyData, + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_1006( + _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); } - static NSTextCheckingResult phoneNumberCheckingResultWithRange_phoneNumber_( - SentryCocoa _lib, _NSRange range, NSString? phoneNumber) { - final _ret = _lib._objc_msgSend_889( - _lib._class_NSTextCheckingResult1, - _lib._sel_phoneNumberCheckingResultWithRange_phoneNumber_1, - range, - phoneNumber?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + NSURLSessionUploadTask uploadTaskWithResumeData_completionHandler_( + NSData? resumeData, + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_1007( + _id, + _lib._sel_uploadTaskWithResumeData_completionHandler_1, + resumeData?._id ?? ffi.nullptr, + completionHandler._id); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); } - static NSTextCheckingResult - transitInformationCheckingResultWithRange_components_( - SentryCocoa _lib, _NSRange range, NSDictionary? components) { - final _ret = _lib._objc_msgSend_887( - _lib._class_NSTextCheckingResult1, - _lib._sel_transitInformationCheckingResultWithRange_components_1, - range, - components?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + NSURLSessionDownloadTask downloadTaskWithRequest_completionHandler_( + NSURLRequest? request, + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_1008( + _id, + _lib._sel_downloadTaskWithRequest_completionHandler_1, + request?._id ?? ffi.nullptr, + completionHandler._id); + return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } - @override - NSTextCheckingResult init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + NSURLSessionDownloadTask downloadTaskWithURL_completionHandler_(NSURL? url, + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_1009( + _id, + _lib._sel_downloadTaskWithURL_completionHandler_1, + url?._id ?? ffi.nullptr, + completionHandler._id); + return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } - static NSTextCheckingResult new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSTextCheckingResult1, _lib._sel_new1); - return NSTextCheckingResult._(_ret, _lib, retain: false, release: true); + NSURLSessionDownloadTask downloadTaskWithResumeData_completionHandler_( + NSData? resumeData, + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_1010( + _id, + _lib._sel_downloadTaskWithResumeData_completionHandler_1, + resumeData?._id ?? ffi.nullptr, + completionHandler._id); + return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } - static NSTextCheckingResult allocWithZone_( + static NSURLSession allocWithZone_( SentryCocoa _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); + _lib._class_NSURLSession1, _lib._sel_allocWithZone_1, zone); + return NSURLSession._(_ret, _lib, retain: false, release: true); } - static NSTextCheckingResult alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSTextCheckingResult1, _lib._sel_alloc1); - return NSTextCheckingResult._(_ret, _lib, retain: false, release: true); + static NSURLSession alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLSession1, _lib._sel_alloc1); + return NSURLSession._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -62361,7 +68383,7 @@ class NSTextCheckingResult extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSTextCheckingResult1, + _lib._class_NSURLSession1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -62370,24 +68392,24 @@ class NSTextCheckingResult extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSTextCheckingResult1, + _lib._objc_msgSend_15(_lib._class_NSURLSession1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSTextCheckingResult1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSURLSession1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSTextCheckingResult1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLSession1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSTextCheckingResult1, + _lib._class_NSURLSession1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -62396,7 +68418,7 @@ class NSTextCheckingResult extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSTextCheckingResult1, + _lib._class_NSURLSession1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -62404,236 +68426,407 @@ class NSTextCheckingResult extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSTextCheckingResult1, + _lib._class_NSURLSession1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSTextCheckingResult1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79( + _lib._class_NSURLSession1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSTextCheckingResult1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSURLSession1, _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, SentryCocoa lib, +class NSURLSessionConfiguration extends NSObject { + NSURLSessionConfiguration._(ffi.Pointer id, SentryCocoa 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, + /// 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 [NSRegularExpression] that wraps the given raw object pointer. - static NSRegularExpression castFromPointer( + /// Returns a [NSURLSessionConfiguration] that wraps the given raw object pointer. + static NSURLSessionConfiguration castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSRegularExpression._(other, lib, retain: retain, release: release); + return NSURLSessionConfiguration._(other, lib, + retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSRegularExpression]. + /// 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_NSRegularExpression1); + obj._lib._class_NSURLSessionConfiguration1); } - static NSRegularExpression regularExpressionWithPattern_options_error_( - SentryCocoa _lib, - NSString? pattern, - int options, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_869( - _lib._class_NSRegularExpression1, - _lib._sel_regularExpressionWithPattern_options_error_1, - pattern?._id ?? ffi.nullptr, - options, - error); - return NSRegularExpression._(_ret, _lib, retain: true, release: true); + static NSURLSessionConfiguration? getDefaultSessionConfiguration( + SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_961(_lib._class_NSURLSessionConfiguration1, + _lib._sel_defaultSessionConfiguration1); + return _ret.address == 0 + ? null + : NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); } - NSRegularExpression initWithPattern_options_error_(NSString? pattern, - int options, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_870( - _id, - _lib._sel_initWithPattern_options_error_1, - pattern?._id ?? ffi.nullptr, - options, - error); - return NSRegularExpression._(_ret, _lib, retain: true, release: true); + static NSURLSessionConfiguration? getEphemeralSessionConfiguration( + SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_961(_lib._class_NSURLSessionConfiguration1, + _lib._sel_ephemeralSessionConfiguration1); + return _ret.address == 0 + ? null + : NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); } - NSString? get pattern { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_pattern1); + static NSURLSessionConfiguration + backgroundSessionConfigurationWithIdentifier_( + SentryCocoa _lib, NSString? identifier) { + final _ret = _lib._objc_msgSend_962( + _lib._class_NSURLSessionConfiguration1, + _lib._sel_backgroundSessionConfigurationWithIdentifier_1, + identifier?._id ?? ffi.nullptr); + return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + } + + 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); } - int get options { - return _lib._objc_msgSend_871(_id, _lib._sel_options1); + int get requestCachePolicy { + return _lib._objc_msgSend_790(_id, _lib._sel_requestCachePolicy1); } - int get numberOfCaptureGroups { - return _lib._objc_msgSend_10(_id, _lib._sel_numberOfCaptureGroups1); + set requestCachePolicy(int value) { + return _lib._objc_msgSend_939( + _id, _lib._sel_setRequestCachePolicy_1, value); } - static NSString escapedPatternForString_(SentryCocoa _lib, NSString? string) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSRegularExpression1, - _lib._sel_escapedPatternForString_1, string?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + double get timeoutIntervalForRequest { + return _lib._objc_msgSend_155(_id, _lib._sel_timeoutIntervalForRequest1); } - void enumerateMatchesInString_options_range_usingBlock_( - NSString? string, - int options, - _NSRange range, - ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool block) { - _lib._objc_msgSend_872( - _id, - _lib._sel_enumerateMatchesInString_options_range_usingBlock_1, - string?._id ?? ffi.nullptr, - options, - range, - block._id); + set timeoutIntervalForRequest(double value) { + return _lib._objc_msgSend_509( + _id, _lib._sel_setTimeoutIntervalForRequest_1, value); } - NSArray matchesInString_options_range_( - NSString? string, int options, _NSRange range) { - final _ret = _lib._objc_msgSend_873( - _id, - _lib._sel_matchesInString_options_range_1, - string?._id ?? ffi.nullptr, - options, - range); - return NSArray._(_ret, _lib, retain: true, release: true); + double get timeoutIntervalForResource { + return _lib._objc_msgSend_155(_id, _lib._sel_timeoutIntervalForResource1); } - int numberOfMatchesInString_options_range_( - NSString? string, int options, _NSRange range) { - return _lib._objc_msgSend_874( - _id, - _lib._sel_numberOfMatchesInString_options_range_1, - string?._id ?? ffi.nullptr, - options, - range); + set timeoutIntervalForResource(double value) { + return _lib._objc_msgSend_509( + _id, _lib._sel_setTimeoutIntervalForResource_1, value); } - NSTextCheckingResult firstMatchInString_options_range_( - NSString? string, int options, _NSRange range) { - final _ret = _lib._objc_msgSend_875( - _id, - _lib._sel_firstMatchInString_options_range_1, - string?._id ?? ffi.nullptr, - options, - range); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + int get networkServiceType { + return _lib._objc_msgSend_791(_id, _lib._sel_networkServiceType1); } - void rangeOfFirstMatchInString_options_range_(ffi.Pointer<_NSRange> stret, - NSString? string, int options, _NSRange range) { - _lib._objc_msgSend_876( - stret, - _id, - _lib._sel_rangeOfFirstMatchInString_options_range_1, - string?._id ?? ffi.nullptr, - options, - range); + set networkServiceType(int value) { + return _lib._objc_msgSend_940( + _id, _lib._sel_setNetworkServiceType_1, value); } - NSString stringByReplacingMatchesInString_options_range_withTemplate_( - NSString? string, int options, _NSRange range, NSString? templ) { - final _ret = _lib._objc_msgSend_877( - _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); + bool get allowsCellularAccess { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsCellularAccess1); } - int replaceMatchesInString_options_range_withTemplate_( - NSMutableString? string, int options, _NSRange range, NSString? templ) { - return _lib._objc_msgSend_878( - _id, - _lib._sel_replaceMatchesInString_options_range_withTemplate_1, - string?._id ?? ffi.nullptr, - options, - range, - templ?._id ?? ffi.nullptr); + set allowsCellularAccess(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setAllowsCellularAccess_1, value); } - NSString replacementStringForResult_inString_offset_template_( - NSTextCheckingResult? result, - NSString? string, - int offset, - NSString? templ) { - final _ret = _lib._objc_msgSend_879( - _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); + bool get allowsExpensiveNetworkAccess { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsExpensiveNetworkAccess1); } - static NSString escapedTemplateForString_( - SentryCocoa _lib, NSString? string) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSRegularExpression1, - _lib._sel_escapedTemplateForString_1, string?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + set allowsExpensiveNetworkAccess(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setAllowsExpensiveNetworkAccess_1, value); + } + + bool get allowsConstrainedNetworkAccess { + return _lib._objc_msgSend_12( + _id, _lib._sel_allowsConstrainedNetworkAccess1); + } + + set allowsConstrainedNetworkAccess(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setAllowsConstrainedNetworkAccess_1, value); + } + + bool get requiresDNSSECValidation { + return _lib._objc_msgSend_12(_id, _lib._sel_requiresDNSSECValidation1); + } + + set requiresDNSSECValidation(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setRequiresDNSSECValidation_1, value); + } + + bool get waitsForConnectivity { + return _lib._objc_msgSend_12(_id, _lib._sel_waitsForConnectivity1); + } + + set waitsForConnectivity(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setWaitsForConnectivity_1, value); + } + + bool get discretionary { + return _lib._objc_msgSend_12(_id, _lib._sel_isDiscretionary1); + } + + set discretionary(bool value) { + return _lib._objc_msgSend_495(_id, _lib._sel_setDiscretionary_1, value); + } + + 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); + } + + set sharedContainerIdentifier(NSString? value) { + return _lib._objc_msgSend_512(_id, _lib._sel_setSharedContainerIdentifier_1, + value?._id ?? ffi.nullptr); + } + + bool get sessionSendsLaunchEvents { + return _lib._objc_msgSend_12(_id, _lib._sel_sessionSendsLaunchEvents1); + } + + set sessionSendsLaunchEvents(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setSessionSendsLaunchEvents_1, value); + } + + NSDictionary? get connectionProxyDictionary { + final _ret = + _lib._objc_msgSend_170(_id, _lib._sel_connectionProxyDictionary1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + set connectionProxyDictionary(NSDictionary? value) { + return _lib._objc_msgSend_171(_id, _lib._sel_setConnectionProxyDictionary_1, + value?._id ?? ffi.nullptr); + } + + int get TLSMinimumSupportedProtocol { + return _lib._objc_msgSend_963(_id, _lib._sel_TLSMinimumSupportedProtocol1); + } + + set TLSMinimumSupportedProtocol(int value) { + return _lib._objc_msgSend_964( + _id, _lib._sel_setTLSMinimumSupportedProtocol_1, value); + } + + int get TLSMaximumSupportedProtocol { + return _lib._objc_msgSend_963(_id, _lib._sel_TLSMaximumSupportedProtocol1); + } + + set TLSMaximumSupportedProtocol(int value) { + return _lib._objc_msgSend_964( + _id, _lib._sel_setTLSMaximumSupportedProtocol_1, value); + } + + int get TLSMinimumSupportedProtocolVersion { + return _lib._objc_msgSend_965( + _id, _lib._sel_TLSMinimumSupportedProtocolVersion1); + } + + set TLSMinimumSupportedProtocolVersion(int value) { + return _lib._objc_msgSend_966( + _id, _lib._sel_setTLSMinimumSupportedProtocolVersion_1, value); + } + + int get TLSMaximumSupportedProtocolVersion { + return _lib._objc_msgSend_965( + _id, _lib._sel_TLSMaximumSupportedProtocolVersion1); + } + + set TLSMaximumSupportedProtocolVersion(int value) { + return _lib._objc_msgSend_966( + _id, _lib._sel_setTLSMaximumSupportedProtocolVersion_1, value); + } + + bool get HTTPShouldUsePipelining { + return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldUsePipelining1); + } + + set HTTPShouldUsePipelining(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setHTTPShouldUsePipelining_1, value); + } + + bool get HTTPShouldSetCookies { + return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldSetCookies1); + } + + set HTTPShouldSetCookies(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setHTTPShouldSetCookies_1, value); + } + + int get HTTPCookieAcceptPolicy { + return _lib._objc_msgSend_787(_id, _lib._sel_HTTPCookieAcceptPolicy1); + } + + set HTTPCookieAcceptPolicy(int value) { + return _lib._objc_msgSend_788( + _id, _lib._sel_setHTTPCookieAcceptPolicy_1, value); + } + + NSDictionary? get HTTPAdditionalHeaders { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_HTTPAdditionalHeaders1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + set HTTPAdditionalHeaders(NSDictionary? value) { + return _lib._objc_msgSend_171( + _id, _lib._sel_setHTTPAdditionalHeaders_1, value?._id ?? ffi.nullptr); + } + + int get HTTPMaximumConnectionsPerHost { + return _lib._objc_msgSend_78(_id, _lib._sel_HTTPMaximumConnectionsPerHost1); + } + + set HTTPMaximumConnectionsPerHost(int value) { + return _lib._objc_msgSend_593( + _id, _lib._sel_setHTTPMaximumConnectionsPerHost_1, value); + } + + NSHTTPCookieStorage? get HTTPCookieStorage { + final _ret = _lib._objc_msgSend_781(_id, _lib._sel_HTTPCookieStorage1); + return _ret.address == 0 + ? null + : NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); + } + + set HTTPCookieStorage(NSHTTPCookieStorage? value) { + return _lib._objc_msgSend_967( + _id, _lib._sel_setHTTPCookieStorage_1, value?._id ?? ffi.nullptr); + } + + NSURLCredentialStorage? get URLCredentialStorage { + final _ret = _lib._objc_msgSend_925(_id, _lib._sel_URLCredentialStorage1); + return _ret.address == 0 + ? null + : NSURLCredentialStorage._(_ret, _lib, retain: true, release: true); + } + + set URLCredentialStorage(NSURLCredentialStorage? value) { + return _lib._objc_msgSend_968( + _id, _lib._sel_setURLCredentialStorage_1, value?._id ?? ffi.nullptr); + } + + NSURLCache? get URLCache { + final _ret = _lib._objc_msgSend_895(_id, _lib._sel_URLCache1); + return _ret.address == 0 + ? null + : NSURLCache._(_ret, _lib, retain: true, release: true); + } + + set URLCache(NSURLCache? value) { + return _lib._objc_msgSend_896( + _id, _lib._sel_setURLCache_1, value?._id ?? ffi.nullptr); + } + + bool get shouldUseExtendedBackgroundIdleMode { + return _lib._objc_msgSend_12( + _id, _lib._sel_shouldUseExtendedBackgroundIdleMode1); + } + + set shouldUseExtendedBackgroundIdleMode(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setShouldUseExtendedBackgroundIdleMode_1, value); + } + + NSArray? get protocolClasses { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_protocolClasses1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set protocolClasses(NSArray? value) { + return _lib._objc_msgSend_739( + _id, _lib._sel_setProtocolClasses_1, value?._id ?? ffi.nullptr); + } + + int get multipathServiceType { + return _lib._objc_msgSend_969(_id, _lib._sel_multipathServiceType1); + } + + set multipathServiceType(int value) { + return _lib._objc_msgSend_970( + _id, _lib._sel_setMultipathServiceType_1, value); + } + + bool get usesClassicLoadingMode { + return _lib._objc_msgSend_12(_id, _lib._sel_usesClassicLoadingMode1); + } + + set usesClassicLoadingMode(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setUsesClassicLoadingMode_1, value); } @override - NSRegularExpression init() { + NSURLSessionConfiguration init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSRegularExpression._(_ret, _lib, retain: true, release: true); + return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + } + + static NSURLSessionConfiguration new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionConfiguration1, _lib._sel_new1); + return NSURLSessionConfiguration._(_ret, _lib, + retain: false, release: true); } - static NSRegularExpression new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSRegularExpression1, _lib._sel_new1); - return NSRegularExpression._(_ret, _lib, retain: false, release: true); + static NSURLSessionConfiguration backgroundSessionConfiguration_( + SentryCocoa _lib, NSString? identifier) { + final _ret = _lib._objc_msgSend_962( + _lib._class_NSURLSessionConfiguration1, + _lib._sel_backgroundSessionConfiguration_1, + identifier?._id ?? ffi.nullptr); + return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); } - static NSRegularExpression allocWithZone_( + static NSURLSessionConfiguration allocWithZone_( SentryCocoa _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); + final _ret = _lib._objc_msgSend_3(_lib._class_NSURLSessionConfiguration1, + _lib._sel_allocWithZone_1, zone); + return NSURLSessionConfiguration._(_ret, _lib, + retain: false, release: true); } - static NSRegularExpression alloc(SentryCocoa _lib) { + static NSURLSessionConfiguration alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSRegularExpression1, _lib._sel_alloc1); - return NSRegularExpression._(_ret, _lib, retain: false, release: true); + _lib._class_NSURLSessionConfiguration1, _lib._sel_alloc1); + return NSURLSessionConfiguration._(_ret, _lib, + retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -62642,7 +68835,7 @@ class NSRegularExpression extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSRegularExpression1, + _lib._class_NSURLSessionConfiguration1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -62651,24 +68844,24 @@ class NSRegularExpression extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSRegularExpression1, + _lib._objc_msgSend_15(_lib._class_NSURLSessionConfiguration1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSRegularExpression1, + return _lib._objc_msgSend_12(_lib._class_NSURLSessionConfiguration1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSRegularExpression1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLSessionConfiguration1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSRegularExpression1, + _lib._class_NSURLSessionConfiguration1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -62677,7 +68870,7 @@ class NSRegularExpression extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSRegularExpression1, + _lib._class_NSURLSessionConfiguration1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -62685,98 +68878,111 @@ class NSRegularExpression extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSRegularExpression1, + _lib._class_NSURLSessionConfiguration1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSRegularExpression1, + final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionConfiguration1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSRegularExpression1, _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionConfiguration1, + _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 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; } -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; +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; } -void - _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2) { +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) { return block.ref.target .cast< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.Int32 arg1, - ffi.Pointer arg2)>>() + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() .asFunction< - void Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); + void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>()(arg0, arg1, arg2); } -final _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistry = +final _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistryIndex = - 0; +int _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureRegistryIndex = 0; ffi.Pointer - _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_registerClosure( - Function fn) { - final id = - ++_ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistry[ - id] = fn; + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_registerClosure(Function 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_NSTextCheckingResult_NSMatchingFlags_bool_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2) { - return (_ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistry[ +void _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { + return (_ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureRegistry[ block.ref.target.address] - as void Function(ffi.Pointer, int, - ffi.Pointer))(arg0, arg1, arg2); + as void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer))(arg0, arg1, arg2); } -class ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool - extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool._( +class ObjCBlock_ffiVoid_NSArray_NSArray_NSArray extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSArray_NSArray_NSArray._( ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool.fromFunctionPointer( + ObjCBlock_ffiVoid_NSArray_NSArray_NSArray.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Int32 arg1, ffi.Pointer arg2)>> + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>> ptr) : this._( lib._newBlock1( @@ -62784,19 +68990,19 @@ class ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool ffi.Void Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Int32 arg1, - ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_fnPtrTrampoline) + ffi.Pointer arg1, + ffi.Pointer arg2)>( + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool.fromFunction( + ObjCBlock_ffiVoid_NSArray_NSArray_NSArray.fromFunction( SentryCocoa lib, - void Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2) + void Function(ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) fn) : this._( lib._newBlock1( @@ -62804,192 +69010,437 @@ class ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool ffi.Void Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Int32 arg1, - ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureTrampoline) + ffi.Pointer arg1, + ffi.Pointer arg2)>( + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_registerClosure( - fn)), + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; - void call( - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { + 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.Int32 arg1, - ffi.Pointer arg2)>>() + ffi.Pointer 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 arg1, + ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); } } -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 NSURLSessionUploadTask extends NSURLSessionDataTask { + NSURLSessionUploadTask._(ffi.Pointer id, SentryCocoa 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, + retain: true, release: true); + } + + /// Returns a [NSURLSessionUploadTask] that wraps the given raw object pointer. + static NSURLSessionUploadTask castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLSessionUploadTask._(other, lib, + retain: retain, release: release); + } + + /// 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_NSURLSessionUploadTask1); + } + + @override + NSURLSessionUploadTask init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + } + + static NSURLSessionUploadTask new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionUploadTask1, _lib._sel_new1); + return NSURLSessionUploadTask._(_ret, _lib, retain: false, release: true); + } + + void cancelByProducingResumeData_( + ObjCBlock_ffiVoid_NSData completionHandler) { + _lib._objc_msgSend_977( + _id, _lib._sel_cancelByProducingResumeData_1, completionHandler._id); + } + + static NSURLSessionUploadTask allocWithZone_( + SentryCocoa _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 NSURLSessionUploadTask alloc(SentryCocoa _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_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSURLSessionUploadTask1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSURLSessionUploadTask1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_NSURLSessionUploadTask1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLSessionUploadTask1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSURLSessionUploadTask1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSURLSessionUploadTask1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSURLSessionUploadTask1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionUploadTask1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionUploadTask1, + _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } } -class NSURLCache extends NSObject { - NSURLCache._(ffi.Pointer id, SentryCocoa lib, +void _ObjCBlock_ffiVoid_NSData_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return block.ref.target + .cast< + ffi.NativeFunction arg0)>>() + .asFunction arg0)>()(arg0); +} + +final _ObjCBlock_ffiVoid_NSData_closureRegistry = {}; +int _ObjCBlock_ffiVoid_NSData_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSData_registerClosure(Function fn) { + final id = ++_ObjCBlock_ffiVoid_NSData_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSData_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSData_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return (_ObjCBlock_ffiVoid_NSData_closureRegistry[block.ref.target.address] + as void Function(ffi.Pointer))(arg0); +} + +class ObjCBlock_ffiVoid_NSData extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSData._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_NSData.fromFunctionPointer( + SentryCocoa lib, + ffi.Pointer< + ffi + .NativeFunction arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSData_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_NSData.fromFunction( + SentryCocoa lib, void Function(ffi.Pointer arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSData_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSData_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); + } +} + +class NSURLSessionDownloadTask extends NSURLSessionTask { + NSURLSessionDownloadTask._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// 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 [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 [NSURLCache] that wraps the given raw object pointer. - static NSURLCache castFromPointer( + /// Returns a [NSURLSessionDownloadTask] that wraps the given raw object pointer. + static NSURLSessionDownloadTask castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLCache._(other, lib, retain: retain, release: release); + return NSURLSessionDownloadTask._(other, lib, + retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLCache]. + /// 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_NSURLCache1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSURLSessionDownloadTask1); } - static NSURLCache? getSharedURLCache(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_892( - _lib._class_NSURLCache1, _lib._sel_sharedURLCache1); - return _ret.address == 0 - ? null - : NSURLCache._(_ret, _lib, retain: true, release: true); + void cancelByProducingResumeData_( + ObjCBlock_ffiVoid_NSData completionHandler) { + _lib._objc_msgSend_977( + _id, _lib._sel_cancelByProducingResumeData_1, completionHandler._id); } - static void setSharedURLCache(SentryCocoa _lib, NSURLCache? value) { - return _lib._objc_msgSend_893(_lib._class_NSURLCache1, - _lib._sel_setSharedURLCache_1, value?._id ?? ffi.nullptr); + @override + NSURLSessionDownloadTask init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } - NSURLCache initWithMemoryCapacity_diskCapacity_diskPath_( - int memoryCapacity, int diskCapacity, NSString? path) { - final _ret = _lib._objc_msgSend_894( - _id, - _lib._sel_initWithMemoryCapacity_diskCapacity_diskPath_1, - memoryCapacity, - diskCapacity, - path?._id ?? ffi.nullptr); - return NSURLCache._(_ret, _lib, retain: true, release: true); + static NSURLSessionDownloadTask new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionDownloadTask1, _lib._sel_new1); + return NSURLSessionDownloadTask._(_ret, _lib, retain: false, release: true); } - NSURLCache initWithMemoryCapacity_diskCapacity_directoryURL_( - int memoryCapacity, int diskCapacity, NSURL? directoryURL) { - final _ret = _lib._objc_msgSend_895( - _id, - _lib._sel_initWithMemoryCapacity_diskCapacity_directoryURL_1, - memoryCapacity, - diskCapacity, - directoryURL?._id ?? ffi.nullptr); - return NSURLCache._(_ret, _lib, retain: true, release: true); + static NSURLSessionDownloadTask allocWithZone_( + SentryCocoa _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); } - NSCachedURLResponse cachedResponseForRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_899( - _id, _lib._sel_cachedResponseForRequest_1, request?._id ?? ffi.nullptr); - return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); + static NSURLSessionDownloadTask alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionDownloadTask1, _lib._sel_alloc1); + return NSURLSessionDownloadTask._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSURLSessionDownloadTask1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSURLSessionDownloadTask1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_NSURLSessionDownloadTask1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLSessionDownloadTask1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSURLSessionDownloadTask1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSURLSessionDownloadTask1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSURLSessionDownloadTask1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - void storeCachedResponse_forRequest_( - NSCachedURLResponse? cachedResponse, NSURLRequest? request) { - _lib._objc_msgSend_900(_id, _lib._sel_storeCachedResponse_forRequest_1, - cachedResponse?._id ?? ffi.nullptr, request?._id ?? ffi.nullptr); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionDownloadTask1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - void removeCachedResponseForRequest_(NSURLRequest? request) { - _lib._objc_msgSend_901(_id, _lib._sel_removeCachedResponseForRequest_1, - request?._id ?? ffi.nullptr); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionDownloadTask1, + _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - void removeAllCachedResponses() { - _lib._objc_msgSend_1(_id, _lib._sel_removeAllCachedResponses1); - } +class NSURLSessionStreamTask extends NSURLSessionTask { + NSURLSessionStreamTask._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - void removeCachedResponsesSinceDate_(NSDate? date) { - _lib._objc_msgSend_504(_id, _lib._sel_removeCachedResponsesSinceDate_1, - date?._id ?? ffi.nullptr); + /// 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); } - int get memoryCapacity { - return _lib._objc_msgSend_10(_id, _lib._sel_memoryCapacity1); + /// Returns a [NSURLSessionStreamTask] that wraps the given raw object pointer. + static NSURLSessionStreamTask castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLSessionStreamTask._(other, lib, + retain: retain, release: release); } - set memoryCapacity(int value) { - return _lib._objc_msgSend_483(_id, _lib._sel_setMemoryCapacity_1, value); + /// 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_NSURLSessionStreamTask1); } - int get diskCapacity { - return _lib._objc_msgSend_10(_id, _lib._sel_diskCapacity1); + void readDataOfMinLength_maxLength_timeout_completionHandler_( + int minBytes, + int maxBytes, + double timeout, + ObjCBlock_ffiVoid_NSData_bool_NSError completionHandler) { + _lib._objc_msgSend_985( + _id, + _lib._sel_readDataOfMinLength_maxLength_timeout_completionHandler_1, + minBytes, + maxBytes, + timeout, + completionHandler._id); } - set diskCapacity(int value) { - return _lib._objc_msgSend_483(_id, _lib._sel_setDiskCapacity_1, value); + void writeData_timeout_completionHandler_(NSData? data, double timeout, + ObjCBlock_ffiVoid_NSError completionHandler) { + _lib._objc_msgSend_986(_id, _lib._sel_writeData_timeout_completionHandler_1, + data?._id ?? ffi.nullptr, timeout, completionHandler._id); } - int get currentMemoryUsage { - return _lib._objc_msgSend_10(_id, _lib._sel_currentMemoryUsage1); + void captureStreams() { + _lib._objc_msgSend_1(_id, _lib._sel_captureStreams1); } - int get currentDiskUsage { - return _lib._objc_msgSend_10(_id, _lib._sel_currentDiskUsage1); + void closeWrite() { + _lib._objc_msgSend_1(_id, _lib._sel_closeWrite1); } - void storeCachedResponse_forDataTask_( - NSCachedURLResponse? cachedResponse, NSURLSessionDataTask? dataTask) { - _lib._objc_msgSend_902(_id, _lib._sel_storeCachedResponse_forDataTask_1, - cachedResponse?._id ?? ffi.nullptr, dataTask?._id ?? ffi.nullptr); + void closeRead() { + _lib._objc_msgSend_1(_id, _lib._sel_closeRead1); } - void getCachedResponseForDataTask_completionHandler_( - NSURLSessionDataTask? dataTask, - ObjCBlock_ffiVoid_NSCachedURLResponse completionHandler) { - _lib._objc_msgSend_903( - _id, - _lib._sel_getCachedResponseForDataTask_completionHandler_1, - dataTask?._id ?? ffi.nullptr, - completionHandler._id); + void startSecureConnection() { + _lib._objc_msgSend_1(_id, _lib._sel_startSecureConnection1); } - void removeCachedResponseForDataTask_(NSURLSessionDataTask? dataTask) { - _lib._objc_msgSend_904(_id, _lib._sel_removeCachedResponseForDataTask_1, - dataTask?._id ?? ffi.nullptr); + void stopSecureConnection() { + _lib._objc_msgSend_1(_id, _lib._sel_stopSecureConnection1); } @override - NSURLCache init() { + NSURLSessionStreamTask init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLCache._(_ret, _lib, retain: true, release: true); + return NSURLSessionStreamTask._(_ret, _lib, retain: true, release: true); } - static NSURLCache new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLCache1, _lib._sel_new1); - return NSURLCache._(_ret, _lib, retain: false, release: true); + static NSURLSessionStreamTask new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionStreamTask1, _lib._sel_new1); + return NSURLSessionStreamTask._(_ret, _lib, retain: false, release: true); } - static NSURLCache allocWithZone_( + static NSURLSessionStreamTask allocWithZone_( SentryCocoa _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); + _lib._class_NSURLSessionStreamTask1, _lib._sel_allocWithZone_1, zone); + return NSURLSessionStreamTask._(_ret, _lib, retain: false, release: true); } - static NSURLCache alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLCache1, _lib._sel_alloc1); - return NSURLCache._(_ret, _lib, retain: false, release: true); + static NSURLSessionStreamTask alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionStreamTask1, _lib._sel_alloc1); + return NSURLSessionStreamTask._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -62998,7 +69449,7 @@ class NSURLCache extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSURLCache1, + _lib._class_NSURLSessionStreamTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -63007,24 +69458,24 @@ class NSURLCache extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLCache1, + _lib._objc_msgSend_15(_lib._class_NSURLSessionStreamTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLCache1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSURLSessionStreamTask1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLCache1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLSessionStreamTask1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLCache1, + _lib._class_NSURLSessionStreamTask1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -63033,7 +69484,7 @@ class NSURLCache extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLCache1, + _lib._class_NSURLSessionStreamTask1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -63041,119 +69492,326 @@ class NSURLCache extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSURLCache1, + _lib._class_NSURLSessionStreamTask1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSURLCache1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionStreamTask1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLCache1, _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionStreamTask1, + _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSCachedURLResponse extends NSObject { - NSCachedURLResponse._(ffi.Pointer id, SentryCocoa lib, +void _ObjCBlock_ffiVoid_NSData_bool_NSError_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 _ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSData_bool_NSError_registerClosure( + Function fn) { + final id = ++_ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSData_bool_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2) { + return (_ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistry[ + block.ref.target.address] + as void Function(ffi.Pointer, bool, + ffi.Pointer))(arg0, arg1, arg2); +} + +class ObjCBlock_ffiVoid_NSData_bool_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSData_bool_NSError._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_NSData_bool_NSError.fromFunctionPointer( + SentryCocoa 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)>( + _ObjCBlock_ffiVoid_NSData_bool_NSError_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_NSData_bool_NSError.fromFunction( + SentryCocoa 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)>( + _ObjCBlock_ffiVoid_NSData_bool_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSData_bool_NSError_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); + } +} + +class NSNetService extends NSObject { + NSNetService._(ffi.Pointer id, SentryCocoa 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, - 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 [NSCachedURLResponse] that wraps the given raw object pointer. - static NSCachedURLResponse castFromPointer( + /// Returns a [NSNetService] that wraps the given raw object pointer. + static NSNetService castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSCachedURLResponse._(other, lib, retain: retain, release: release); + return NSNetService._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSCachedURLResponse]. + /// 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_NSCachedURLResponse1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSNetService1); } - NSCachedURLResponse initWithResponse_data_( - NSURLResponse? response, NSData? data) { - final _ret = _lib._objc_msgSend_896(_id, _lib._sel_initWithResponse_data_1, - response?._id ?? ffi.nullptr, data?._id ?? ffi.nullptr); - return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); + NSNetService initWithDomain_type_name_port_( + NSString? domain, NSString? type, NSString? name, int port) { + final _ret = _lib._objc_msgSend_988( + _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); } - NSCachedURLResponse initWithResponse_data_userInfo_storagePolicy_( - NSURLResponse? response, - NSData? data, - NSDictionary? userInfo, - int storagePolicy) { - final _ret = _lib._objc_msgSend_897( + NSNetService initWithDomain_type_name_( + NSString? domain, NSString? type, NSString? name) { + final _ret = _lib._objc_msgSend_26( _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); + _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); } - NSURLResponse? get response { - final _ret = _lib._objc_msgSend_801(_id, _lib._sel_response1); + void scheduleInRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { + _lib._objc_msgSend_536(_id, _lib._sel_scheduleInRunLoop_forMode_1, + aRunLoop?._id ?? ffi.nullptr, mode._id); + } + + void removeFromRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { + _lib._objc_msgSend_536(_id, _lib._sel_removeFromRunLoop_forMode_1, + aRunLoop?._id ?? ffi.nullptr, mode._id); + } + + NSObject? get delegate { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); return _ret.address == 0 ? null - : NSURLResponse._(_ret, _lib, retain: true, release: true); + : NSObject._(_ret, _lib, retain: true, release: true); } - NSData? get data { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_data1); + set delegate(NSObject? value) { + return _lib._objc_msgSend_389( + _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_495( + _id, _lib._sel_setIncludesPeerToPeer_1, value); + } + + NSString? get name { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); return _ret.address == 0 ? null - : NSData._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - NSDictionary? get userInfo { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_userInfo1); + NSString? get type { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_type1); return _ret.address == 0 ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - int get storagePolicy { - return _lib._objc_msgSend_898(_id, _lib._sel_storagePolicy1); + 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); + } + + 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); + } + + NSArray? get addresses { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_addresses1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + int get port { + return _lib._objc_msgSend_78(_id, _lib._sel_port1); + } + + void publish() { + _lib._objc_msgSend_1(_id, _lib._sel_publish1); + } + + void publishWithOptions_(int options) { + _lib._objc_msgSend_989(_id, _lib._sel_publishWithOptions_1, options); + } + + void resolve() { + _lib._objc_msgSend_1(_id, _lib._sel_resolve1); + } + + void stop() { + _lib._objc_msgSend_1(_id, _lib._sel_stop1); + } + + static NSDictionary dictionaryFromTXTRecordData_( + SentryCocoa _lib, NSData? txtData) { + final _ret = _lib._objc_msgSend_990(_lib._class_NSNetService1, + _lib._sel_dictionaryFromTXTRecordData_1, txtData?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSData dataFromTXTRecordDictionary_( + SentryCocoa _lib, NSDictionary? txtDictionary) { + final _ret = _lib._objc_msgSend_991( + _lib._class_NSNetService1, + _lib._sel_dataFromTXTRecordDictionary_1, + txtDictionary?._id ?? ffi.nullptr); + return NSData._(_ret, _lib, retain: true, release: true); + } + + void resolveWithTimeout_(double timeout) { + _lib._objc_msgSend_508(_id, _lib._sel_resolveWithTimeout_1, timeout); + } + + bool getInputStream_outputStream_( + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + return _lib._objc_msgSend_992(_id, _lib._sel_getInputStream_outputStream_1, + inputStream, outputStream); + } + + bool setTXTRecordData_(NSData? recordData) { + return _lib._objc_msgSend_23( + _id, _lib._sel_setTXTRecordData_1, recordData?._id ?? ffi.nullptr); + } + + NSData TXTRecordData() { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_TXTRecordData1); + return NSData._(_ret, _lib, retain: true, release: true); + } + + void startMonitoring() { + _lib._objc_msgSend_1(_id, _lib._sel_startMonitoring1); + } + + void stopMonitoring() { + _lib._objc_msgSend_1(_id, _lib._sel_stopMonitoring1); } @override - NSCachedURLResponse init() { + NSNetService init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); + return NSNetService._(_ret, _lib, retain: true, release: true); } - static NSCachedURLResponse new1(SentryCocoa _lib) { + static NSNetService new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSCachedURLResponse1, _lib._sel_new1); - return NSCachedURLResponse._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSNetService1, _lib._sel_new1); + return NSNetService._(_ret, _lib, retain: false, release: true); } - static NSCachedURLResponse allocWithZone_( + static NSNetService allocWithZone_( SentryCocoa _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); + _lib._class_NSNetService1, _lib._sel_allocWithZone_1, zone); + return NSNetService._(_ret, _lib, retain: false, release: true); } - static NSCachedURLResponse alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSCachedURLResponse1, _lib._sel_alloc1); - return NSCachedURLResponse._(_ret, _lib, retain: false, release: true); + static NSNetService alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSNetService1, _lib._sel_alloc1); + return NSNetService._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -63162,7 +69820,7 @@ class NSCachedURLResponse extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSCachedURLResponse1, + _lib._class_NSNetService1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -63171,24 +69829,24 @@ class NSCachedURLResponse extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSCachedURLResponse1, + _lib._objc_msgSend_15(_lib._class_NSNetService1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSCachedURLResponse1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSNetService1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSCachedURLResponse1, _lib._sel_useStoredAccessor1); + _lib._class_NSNetService1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSCachedURLResponse1, + _lib._class_NSNetService1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -63197,7 +69855,7 @@ class NSCachedURLResponse extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSCachedURLResponse1, + _lib._class_NSNetService1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -63205,78 +69863,125 @@ class NSCachedURLResponse extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSCachedURLResponse1, + _lib._class_NSNetService1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSCachedURLResponse1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79( + _lib._class_NSNetService1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSCachedURLResponse1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSNetService1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSURLCacheStoragePolicy { - static const int NSURLCacheStorageAllowed = 0; - static const int NSURLCacheStorageAllowedInMemoryOnly = 1; - static const int NSURLCacheStorageNotAllowed = 2; +abstract class NSNetServiceOptions { + static const int NSNetServiceNoAutoRename = 1; + static const int NSNetServiceListenForConnections = 2; } -class NSURLSessionDataTask extends NSURLSessionTask { - NSURLSessionDataTask._(ffi.Pointer id, SentryCocoa lib, +class NSURLSessionWebSocketTask extends NSURLSessionTask { + NSURLSessionWebSocketTask._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSURLSessionDataTask] that points to the same underlying object as [other]. - static NSURLSessionDataTask castFrom(T other) { - return NSURLSessionDataTask._(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 [NSURLSessionDataTask] that wraps the given raw object pointer. - static NSURLSessionDataTask castFromPointer( + /// Returns a [NSURLSessionWebSocketTask] that wraps the given raw object pointer. + static NSURLSessionWebSocketTask castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLSessionDataTask._(other, lib, retain: retain, release: release); + return NSURLSessionWebSocketTask._(other, lib, + retain: retain, release: release); + } + + /// 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_NSURLSessionWebSocketTask1); + } + + void sendMessage_completionHandler_(NSURLSessionWebSocketMessage? message, + ObjCBlock_ffiVoid_NSError completionHandler) { + _lib._objc_msgSend_995(_id, _lib._sel_sendMessage_completionHandler_1, + message?._id ?? ffi.nullptr, completionHandler._id); + } + + void receiveMessageWithCompletionHandler_( + ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError + completionHandler) { + _lib._objc_msgSend_996(_id, _lib._sel_receiveMessageWithCompletionHandler_1, + completionHandler._id); + } + + void sendPingWithPongReceiveHandler_( + ObjCBlock_ffiVoid_NSError pongReceiveHandler) { + _lib._objc_msgSend_997(_id, _lib._sel_sendPingWithPongReceiveHandler_1, + pongReceiveHandler._id); + } + + void cancelWithCloseCode_reason_(int closeCode, NSData? reason) { + _lib._objc_msgSend_998(_id, _lib._sel_cancelWithCloseCode_reason_1, + closeCode, reason?._id ?? ffi.nullptr); + } + + int get maximumMessageSize { + return _lib._objc_msgSend_78(_id, _lib._sel_maximumMessageSize1); + } + + set maximumMessageSize(int value) { + return _lib._objc_msgSend_593( + _id, _lib._sel_setMaximumMessageSize_1, value); + } + + int get closeCode { + return _lib._objc_msgSend_999(_id, _lib._sel_closeCode1); } - /// 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); + 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); } @override - NSURLSessionDataTask init() { + NSURLSessionWebSocketTask init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); + return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); } - static NSURLSessionDataTask new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLSessionDataTask1, _lib._sel_new1); - return NSURLSessionDataTask._(_ret, _lib, retain: false, release: true); + static NSURLSessionWebSocketTask new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionWebSocketTask1, _lib._sel_new1); + return NSURLSessionWebSocketTask._(_ret, _lib, + retain: false, release: true); } - static NSURLSessionDataTask allocWithZone_( + static NSURLSessionWebSocketTask allocWithZone_( SentryCocoa _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); + final _ret = _lib._objc_msgSend_3(_lib._class_NSURLSessionWebSocketTask1, + _lib._sel_allocWithZone_1, zone); + return NSURLSessionWebSocketTask._(_ret, _lib, + retain: false, release: true); } - static NSURLSessionDataTask alloc(SentryCocoa _lib) { + static NSURLSessionWebSocketTask alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionDataTask1, _lib._sel_alloc1); - return NSURLSessionDataTask._(_ret, _lib, retain: false, release: true); + _lib._class_NSURLSessionWebSocketTask1, _lib._sel_alloc1); + return NSURLSessionWebSocketTask._(_ret, _lib, + retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -63285,7 +69990,7 @@ class NSURLSessionDataTask extends NSURLSessionTask { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSURLSessionDataTask1, + _lib._class_NSURLSessionWebSocketTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -63294,24 +69999,24 @@ class NSURLSessionDataTask extends NSURLSessionTask { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLSessionDataTask1, + _lib._objc_msgSend_15(_lib._class_NSURLSessionWebSocketTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionDataTask1, + return _lib._objc_msgSend_12(_lib._class_NSURLSessionWebSocketTask1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLSessionDataTask1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLSessionWebSocketTask1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionDataTask1, + _lib._class_NSURLSessionWebSocketTask1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -63320,7 +70025,7 @@ class NSURLSessionDataTask extends NSURLSessionTask { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLSessionDataTask1, + _lib._class_NSURLSessionWebSocketTask1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -63328,244 +70033,110 @@ class NSURLSessionDataTask extends NSURLSessionTask { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSURLSessionDataTask1, + _lib._class_NSURLSessionWebSocketTask1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionDataTask1, + final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionWebSocketTask1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionDataTask1, _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionWebSocketTask1, + _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -void _ObjCBlock_ffiVoid_NSCachedURLResponse_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock_ffiVoid_NSCachedURLResponse_closureRegistry = - {}; -int _ObjCBlock_ffiVoid_NSCachedURLResponse_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSCachedURLResponse_registerClosure( - Function 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) { - return (_ObjCBlock_ffiVoid_NSCachedURLResponse_closureRegistry[block - .ref.target.address] as void Function(ffi.Pointer))(arg0); -} - -class ObjCBlock_ffiVoid_NSCachedURLResponse extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSCachedURLResponse._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSCachedURLResponse.fromFunctionPointer( - SentryCocoa lib, - ffi.Pointer< - ffi - .NativeFunction arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSCachedURLResponse_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSCachedURLResponse.fromFunction( - SentryCocoa lib, void Function(ffi.Pointer arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSCachedURLResponse_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_NSCachedURLResponse_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); - } -} - -class NSURLConnection extends NSObject { - NSURLConnection._(ffi.Pointer id, SentryCocoa lib, +class NSURLSessionWebSocketMessage extends NSObject { + NSURLSessionWebSocketMessage._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSURLConnection] that points to the same underlying object as [other]. - static NSURLConnection castFrom(T other) { - return NSURLConnection._(other._id, other._lib, + /// 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); } - /// Returns a [NSURLConnection] that wraps the given raw object pointer. - static NSURLConnection castFromPointer( + /// Returns a [NSURLSessionWebSocketMessage] that wraps the given raw object pointer. + static NSURLSessionWebSocketMessage castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLConnection._(other, lib, retain: retain, release: release); + return NSURLSessionWebSocketMessage._(other, lib, + retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLConnection]. + /// 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_NSURLConnection1); + obj._lib._class_NSURLSessionWebSocketMessage1); } - NSURLConnection initWithRequest_delegate_startImmediately_( - NSURLRequest? request, NSObject delegate, bool startImmediately) { - final _ret = _lib._objc_msgSend_905( - _id, - _lib._sel_initWithRequest_delegate_startImmediately_1, - request?._id ?? ffi.nullptr, - delegate._id, - startImmediately); - return NSURLConnection._(_ret, _lib, retain: true, release: true); + NSURLSessionWebSocketMessage initWithData_(NSData? data) { + final _ret = _lib._objc_msgSend_257( + _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); + return NSURLSessionWebSocketMessage._(_ret, _lib, + retain: true, release: true); } - NSURLConnection initWithRequest_delegate_( - NSURLRequest? request, NSObject delegate) { - final _ret = _lib._objc_msgSend_906( - _id, - _lib._sel_initWithRequest_delegate_1, - request?._id ?? ffi.nullptr, - delegate._id); - return NSURLConnection._(_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, + retain: true, release: true); } - static NSURLConnection connectionWithRequest_delegate_( - SentryCocoa _lib, NSURLRequest? request, NSObject delegate) { - final _ret = _lib._objc_msgSend_907( - _lib._class_NSURLConnection1, - _lib._sel_connectionWithRequest_delegate_1, - request?._id ?? ffi.nullptr, - delegate._id); - return NSURLConnection._(_ret, _lib, retain: true, release: true); + int get type { + return _lib._objc_msgSend_994(_id, _lib._sel_type1); } - NSURLRequest? get originalRequest { - final _ret = _lib._objc_msgSend_799(_id, _lib._sel_originalRequest1); + NSData? get data { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_data1); return _ret.address == 0 ? null - : NSURLRequest._(_ret, _lib, retain: true, release: true); + : NSData._(_ret, _lib, retain: true, release: true); } - NSURLRequest? get currentRequest { - final _ret = _lib._objc_msgSend_799(_id, _lib._sel_currentRequest1); + NSString? get string { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_string1); return _ret.address == 0 ? null - : NSURLRequest._(_ret, _lib, retain: true, release: true); - } - - void start() { - _lib._objc_msgSend_1(_id, _lib._sel_start1); - } - - void cancel() { - _lib._objc_msgSend_1(_id, _lib._sel_cancel1); - } - - void scheduleInRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { - _lib._objc_msgSend_533(_id, _lib._sel_scheduleInRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode._id); - } - - void unscheduleFromRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { - _lib._objc_msgSend_533(_id, _lib._sel_unscheduleFromRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode._id); - } - - void setDelegateQueue_(NSOperationQueue? queue) { - _lib._objc_msgSend_908( - _id, _lib._sel_setDelegateQueue_1, queue?._id ?? ffi.nullptr); - } - - static bool canHandleRequest_(SentryCocoa _lib, NSURLRequest? request) { - return _lib._objc_msgSend_909(_lib._class_NSURLConnection1, - _lib._sel_canHandleRequest_1, request?._id ?? ffi.nullptr); - } - - static NSData sendSynchronousRequest_returningResponse_error_( - SentryCocoa _lib, - NSURLRequest? request, - ffi.Pointer> response, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_910( - _lib._class_NSURLConnection1, - _lib._sel_sendSynchronousRequest_returningResponse_error_1, - request?._id ?? ffi.nullptr, - response, - error); - return NSData._(_ret, _lib, retain: true, release: true); - } - - static void sendAsynchronousRequest_queue_completionHandler_( - SentryCocoa _lib, - NSURLRequest? request, - NSOperationQueue? queue, - ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError handler) { - _lib._objc_msgSend_911( - _lib._class_NSURLConnection1, - _lib._sel_sendAsynchronousRequest_queue_completionHandler_1, - request?._id ?? ffi.nullptr, - queue?._id ?? ffi.nullptr, - handler._id); + : NSString._(_ret, _lib, retain: true, release: true); } @override - NSURLConnection init() { + NSURLSessionWebSocketMessage init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLConnection._(_ret, _lib, retain: true, release: true); + return NSURLSessionWebSocketMessage._(_ret, _lib, + retain: true, release: true); } - static NSURLConnection new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLConnection1, _lib._sel_new1); - return NSURLConnection._(_ret, _lib, retain: false, release: true); + static NSURLSessionWebSocketMessage new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_new1); + return NSURLSessionWebSocketMessage._(_ret, _lib, + retain: false, release: true); } - static NSURLConnection allocWithZone_( + static NSURLSessionWebSocketMessage allocWithZone_( SentryCocoa _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); + final _ret = _lib._objc_msgSend_3(_lib._class_NSURLSessionWebSocketMessage1, + _lib._sel_allocWithZone_1, zone); + return NSURLSessionWebSocketMessage._(_ret, _lib, + retain: false, release: true); } - static NSURLConnection alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLConnection1, _lib._sel_alloc1); - return NSURLConnection._(_ret, _lib, retain: false, release: true); + static NSURLSessionWebSocketMessage alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_alloc1); + return NSURLSessionWebSocketMessage._(_ret, _lib, + retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -63574,7 +70145,7 @@ class NSURLConnection extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSURLConnection1, + _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -63583,24 +70154,24 @@ class NSURLConnection extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLConnection1, + _lib._objc_msgSend_15(_lib._class_NSURLSessionWebSocketMessage1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLConnection1, + return _lib._objc_msgSend_12(_lib._class_NSURLSessionWebSocketMessage1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLConnection1, _lib._sel_useStoredAccessor1); + return _lib._objc_msgSend_12(_lib._class_NSURLSessionWebSocketMessage1, + _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLConnection1, + _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -63609,7 +70180,7 @@ class NSURLConnection extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLConnection1, + _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -63617,26 +70188,258 @@ class NSURLConnection extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSURLConnection1, + _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSURLConnection1, + final _ret = _lib._objc_msgSend_79( + _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLConnection1, _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionWebSocketMessage1, + _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -void _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_fnPtrTrampoline( +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) { + 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 _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureRegistryIndex = + 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_registerClosure( + Function 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) { + return (_ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureRegistry[ + block.ref.target.address] + as void Function( + ffi.Pointer, ffi.Pointer))(arg0, arg1); +} + +class ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError + extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError.fromFunctionPointer( + SentryCocoa 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)>( + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError.fromFunction( + SentryCocoa 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)>( + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_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); + } +} + +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 _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_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 _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_registerClosure( + Function fn) { + final id = + ++_ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { + return (_ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureRegistry[ + block.ref.target.address] + as void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer))(arg0, arg1, arg2); +} + +class ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError.fromFunctionPointer( + SentryCocoa 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)>( + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError.fromFunction( + SentryCocoa 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)>( + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_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); + } +} + +void _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1, @@ -63655,36 +70458,36 @@ void _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_fnPtrTrampoline( ffi.Pointer arg2)>()(arg0, arg1, arg2); } -final _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureRegistry = +final _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureRegistryIndex = 0; +int _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureRegistryIndex = 0; ffi.Pointer - _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_registerClosure( + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_registerClosure( Function fn) { final id = - ++_ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureRegistry[id] = fn; + ++_ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureTrampoline( +void _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2) { - return (_ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureRegistry[ + return (_ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureRegistry[ block.ref.target.address] as void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer))(arg0, arg1, arg2); } -class ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError._( +class ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError._( ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError.fromFunctionPointer( + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< @@ -63701,14 +70504,14 @@ class ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError extends _ObjCBlockBase { ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_fnPtrTrampoline) + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError.fromFunction( + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError.fromFunction( SentryCocoa lib, void Function(ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2) @@ -63721,9 +70524,9 @@ class ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError extends _ObjCBlockBase { ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureTrampoline) + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_registerClosure( + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_registerClosure( fn)), lib); static ffi.Pointer? _dartFuncTrampoline; @@ -63746,606 +70549,320 @@ class ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError extends _ObjCBlockBase { } } -class NSURLCredential extends NSObject { - NSURLCredential._(ffi.Pointer id, SentryCocoa lib, +class NSProtocolChecker extends NSProxy { + NSProtocolChecker._(ffi.Pointer id, SentryCocoa 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 [NSProtocolChecker] that points to the same underlying object as [other]. + static NSProtocolChecker castFrom(T other) { + return NSProtocolChecker._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSURLCredential] that wraps the given raw object pointer. - static NSURLCredential castFromPointer( + /// Returns a [NSProtocolChecker] that wraps the given raw object pointer. + static NSProtocolChecker castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLCredential._(other, lib, retain: retain, release: release); + return NSProtocolChecker._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLCredential]. + /// Returns whether [obj] is an instance of [NSProtocolChecker]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLCredential1); - } - - int get persistence { - return _lib._objc_msgSend_912(_id, _lib._sel_persistence1); - } - - NSURLCredential initWithUser_password_persistence_( - NSString? user, NSString? password, int persistence) { - final _ret = _lib._objc_msgSend_913( - _id, - _lib._sel_initWithUser_password_persistence_1, - user?._id ?? ffi.nullptr, - password?._id ?? ffi.nullptr, - persistence); - return NSURLCredential._(_ret, _lib, retain: true, release: true); - } - - static NSURLCredential credentialWithUser_password_persistence_( - SentryCocoa _lib, NSString? user, NSString? password, int persistence) { - final _ret = _lib._objc_msgSend_914( - _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); + obj._lib._class_NSProtocolChecker1); } - NSString? get user { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_user1); + Protocol? get protocol { + final _ret = _lib._objc_msgSend_1011(_id, _lib._sel_protocol1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : Protocol._(_ret, _lib, retain: true, release: true); } - NSString? get password { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_password1); + NSObject? get target { + final _ret = _lib._objc_msgSend_840(_id, _lib._sel_target1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSObject._(_ret, _lib, retain: true, release: true); } - bool get hasPassword { - return _lib._objc_msgSend_12(_id, _lib._sel_hasPassword1); + static NSProtocolChecker protocolCheckerWithTarget_protocol_( + SentryCocoa _lib, NSObject? anObject, Protocol? aProtocol) { + final _ret = _lib._objc_msgSend_1012( + _lib._class_NSProtocolChecker1, + _lib._sel_protocolCheckerWithTarget_protocol_1, + anObject?._id ?? ffi.nullptr, + aProtocol?._id ?? ffi.nullptr); + return NSProtocolChecker._(_ret, _lib, retain: true, release: true); } - NSURLCredential initWithIdentity_certificates_persistence_( - ffi.Pointer<__SecIdentity> identity, - NSArray? certArray, - int persistence) { - final _ret = _lib._objc_msgSend_915( + NSProtocolChecker initWithTarget_protocol_( + NSObject? anObject, Protocol? aProtocol) { + final _ret = _lib._objc_msgSend_1012( _id, - _lib._sel_initWithIdentity_certificates_persistence_1, - identity, - certArray?._id ?? ffi.nullptr, - persistence); - return NSURLCredential._(_ret, _lib, retain: true, release: true); - } - - static NSURLCredential credentialWithIdentity_certificates_persistence_( - SentryCocoa _lib, - ffi.Pointer<__SecIdentity> identity, - NSArray? certArray, - int persistence) { - final _ret = _lib._objc_msgSend_916( - _lib._class_NSURLCredential1, - _lib._sel_credentialWithIdentity_certificates_persistence_1, - identity, - certArray?._id ?? ffi.nullptr, - persistence); - return NSURLCredential._(_ret, _lib, retain: true, release: true); - } - - ffi.Pointer<__SecIdentity> get identity { - return _lib._objc_msgSend_917(_id, _lib._sel_identity1); - } - - NSArray? get certificates { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_certificates1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSURLCredential initWithTrust_(ffi.Pointer<__SecTrust> trust) { - final _ret = _lib._objc_msgSend_918(_id, _lib._sel_initWithTrust_1, trust); - return NSURLCredential._(_ret, _lib, retain: true, release: true); - } - - static NSURLCredential credentialForTrust_( - SentryCocoa _lib, ffi.Pointer<__SecTrust> trust) { - final _ret = _lib._objc_msgSend_919( - _lib._class_NSURLCredential1, _lib._sel_credentialForTrust_1, trust); - return NSURLCredential._(_ret, _lib, retain: true, release: true); - } - - @override - NSURLCredential init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLCredential._(_ret, _lib, retain: true, release: true); - } - - static NSURLCredential new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLCredential1, _lib._sel_new1); - return NSURLCredential._(_ret, _lib, retain: false, release: true); - } - - static NSURLCredential allocWithZone_( - SentryCocoa _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); + _lib._sel_initWithTarget_protocol_1, + anObject?._id ?? ffi.nullptr, + aProtocol?._id ?? ffi.nullptr); + return NSProtocolChecker._(_ret, _lib, retain: true, release: true); } - static NSURLCredential alloc(SentryCocoa _lib) { + static NSObject alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLCredential1, _lib._sel_alloc1); - return NSURLCredential._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSURLCredential1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLCredential1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLCredential1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLCredential1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLCredential1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLCredential1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSURLCredential1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSURLCredential1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_2(_lib._class_NSProtocolChecker1, _lib._sel_alloc1); + return NSObject._(_ret, _lib, retain: false, release: true); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLCredential1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + static bool respondsToSelector_( + SentryCocoa _lib, ffi.Pointer aSelector) { + return _lib._objc_msgSend_4(_lib._class_NSProtocolChecker1, + _lib._sel_respondsToSelector_1, aSelector); } } -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 __SecIdentity extends ffi.Opaque {} - -final class __SecTrust extends ffi.Opaque {} - -class NSURLProtectionSpace extends NSObject { - NSURLProtectionSpace._(ffi.Pointer id, SentryCocoa lib, +class NSTask extends NSObject { + NSTask._(ffi.Pointer id, SentryCocoa 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, - retain: true, release: true); + /// Returns a [NSTask] that points to the same underlying object as [other]. + static NSTask castFrom(T other) { + return NSTask._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSURLProtectionSpace] that wraps the given raw object pointer. - static NSURLProtectionSpace castFromPointer( - SentryCocoa lib, ffi.Pointer other, + /// Returns a [NSTask] that wraps the given raw object pointer. + static NSTask castFromPointer(SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLProtectionSpace._(other, lib, retain: retain, release: release); + return NSTask._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLProtectionSpace]. + /// Returns whether [obj] is an instance of [NSTask]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLProtectionSpace1); - } - - NSURLProtectionSpace initWithHost_port_protocol_realm_authenticationMethod_( - NSString? host, - int port, - NSString? protocol, - NSString? realm, - NSString? authenticationMethod) { - final _ret = _lib._objc_msgSend_920( - _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); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSTask1); } - NSURLProtectionSpace initWithProxyHost_port_type_realm_authenticationMethod_( - NSString? host, - int port, - NSString? type, - NSString? realm, - NSString? authenticationMethod) { - final _ret = _lib._objc_msgSend_920( - _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); + @override + NSTask init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSTask._(_ret, _lib, retain: true, release: true); } - NSString? get realm { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_realm1); + NSURL? get executableURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_executableURL1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - bool get receivesCredentialSecurely { - return _lib._objc_msgSend_12(_id, _lib._sel_receivesCredentialSecurely1); + : NSURL._(_ret, _lib, retain: true, release: true); } - bool get isProxy { - return _lib._objc_msgSend_12(_id, _lib._sel_isProxy1); + set executableURL(NSURL? value) { + return _lib._objc_msgSend_624( + _id, _lib._sel_setExecutableURL_1, value?._id ?? ffi.nullptr); } - NSString? get host { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_host1); + NSArray? get arguments { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_arguments1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - int get port { - return _lib._objc_msgSend_78(_id, _lib._sel_port1); + : NSArray._(_ret, _lib, retain: true, release: true); } - 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); + set arguments(NSArray? value) { + return _lib._objc_msgSend_739( + _id, _lib._sel_setArguments_1, value?._id ?? ffi.nullptr); } - NSString? get protocol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_protocol1); + NSDictionary? get environment { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_environment1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSDictionary._(_ret, _lib, retain: true, release: true); } - 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); + set environment(NSDictionary? value) { + return _lib._objc_msgSend_171( + _id, _lib._sel_setEnvironment_1, value?._id ?? ffi.nullptr); } - NSArray? get distinguishedNames { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_distinguishedNames1); + NSURL? get currentDirectoryURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_currentDirectoryURL1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - ffi.Pointer<__SecTrust> get serverTrust { - return _lib._objc_msgSend_921(_id, _lib._sel_serverTrust1); - } - - @override - NSURLProtectionSpace init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLProtectionSpace._(_ret, _lib, retain: true, release: true); + : NSURL._(_ret, _lib, retain: true, release: true); } - static NSURLProtectionSpace new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLProtectionSpace1, _lib._sel_new1); - return NSURLProtectionSpace._(_ret, _lib, retain: false, release: true); + set currentDirectoryURL(NSURL? value) { + return _lib._objc_msgSend_624( + _id, _lib._sel_setCurrentDirectoryURL_1, value?._id ?? ffi.nullptr); } - static NSURLProtectionSpace allocWithZone_( - SentryCocoa _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); + NSData? get launchRequirementData { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_launchRequirementData1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - static NSURLProtectionSpace alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLProtectionSpace1, _lib._sel_alloc1); - return NSURLProtectionSpace._(_ret, _lib, retain: false, release: true); + set launchRequirementData(NSData? value) { + return _lib._objc_msgSend_942( + _id, _lib._sel_setLaunchRequirementData_1, value?._id ?? ffi.nullptr); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSURLProtectionSpace1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + NSObject get standardInput { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_standardInput1); + return NSObject._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLProtectionSpace1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + set standardInput(NSObject value) { + return _lib._objc_msgSend_389(_id, _lib._sel_setStandardInput_1, value._id); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLProtectionSpace1, - _lib._sel_accessInstanceVariablesDirectly1); + NSObject get standardOutput { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_standardOutput1); + return NSObject._(_ret, _lib, retain: true, release: true); } - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLProtectionSpace1, _lib._sel_useStoredAccessor1); + set standardOutput(NSObject value) { + return _lib._objc_msgSend_389( + _id, _lib._sel_setStandardOutput_1, value._id); } - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLProtectionSpace1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + NSObject get standardError { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_standardError1); + return NSObject._(_ret, _lib, retain: true, release: true); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLProtectionSpace1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + set standardError(NSObject value) { + return _lib._objc_msgSend_389(_id, _lib._sel_setStandardError_1, value._id); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSURLProtectionSpace1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + bool launchAndReturnError_(ffi.Pointer> error) { + return _lib._objc_msgSend_236(_id, _lib._sel_launchAndReturnError_1, error); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSURLProtectionSpace1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + void interrupt() { + _lib._objc_msgSend_1(_id, _lib._sel_interrupt1); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLProtectionSpace1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + void terminate() { + _lib._objc_msgSend_1(_id, _lib._sel_terminate1); } -} -class NSURLCredentialStorage extends NSObject { - NSURLCredentialStorage._(ffi.Pointer id, SentryCocoa 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, - retain: true, release: true); + bool suspend() { + return _lib._objc_msgSend_12(_id, _lib._sel_suspend1); } - /// Returns a [NSURLCredentialStorage] that wraps the given raw object pointer. - static NSURLCredentialStorage castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLCredentialStorage._(other, lib, - retain: retain, release: release); + bool resume() { + return _lib._objc_msgSend_12(_id, _lib._sel_resume1); } - /// 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_NSURLCredentialStorage1); + int get processIdentifier { + return _lib._objc_msgSend_219(_id, _lib._sel_processIdentifier1); } - static NSURLCredentialStorage? getSharedCredentialStorage(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_922(_lib._class_NSURLCredentialStorage1, - _lib._sel_sharedCredentialStorage1); - return _ret.address == 0 - ? null - : NSURLCredentialStorage._(_ret, _lib, retain: true, release: true); + bool get running { + return _lib._objc_msgSend_12(_id, _lib._sel_isRunning1); } - NSDictionary credentialsForProtectionSpace_(NSURLProtectionSpace? space) { - final _ret = _lib._objc_msgSend_923(_id, - _lib._sel_credentialsForProtectionSpace_1, space?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + int get terminationStatus { + return _lib._objc_msgSend_219(_id, _lib._sel_terminationStatus1); } - NSDictionary? get allCredentials { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_allCredentials1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + int get terminationReason { + return _lib._objc_msgSend_1013(_id, _lib._sel_terminationReason1); } - void setCredential_forProtectionSpace_( - NSURLCredential? credential, NSURLProtectionSpace? space) { - _lib._objc_msgSend_924(_id, _lib._sel_setCredential_forProtectionSpace_1, - credential?._id ?? ffi.nullptr, space?._id ?? ffi.nullptr); + ObjCBlock_ffiVoid_NSTask get terminationHandler { + final _ret = _lib._objc_msgSend_1014(_id, _lib._sel_terminationHandler1); + return ObjCBlock_ffiVoid_NSTask._(_ret, _lib); } - void removeCredential_forProtectionSpace_( - NSURLCredential? credential, NSURLProtectionSpace? space) { - _lib._objc_msgSend_924(_id, _lib._sel_removeCredential_forProtectionSpace_1, - credential?._id ?? ffi.nullptr, space?._id ?? ffi.nullptr); + set terminationHandler(ObjCBlock_ffiVoid_NSTask value) { + return _lib._objc_msgSend_1015( + _id, _lib._sel_setTerminationHandler_1, value._id); } - void removeCredential_forProtectionSpace_options_(NSURLCredential? credential, - NSURLProtectionSpace? space, NSDictionary? options) { - _lib._objc_msgSend_925( - _id, - _lib._sel_removeCredential_forProtectionSpace_options_1, - credential?._id ?? ffi.nullptr, - space?._id ?? ffi.nullptr, - options?._id ?? ffi.nullptr); + int get qualityOfService { + return _lib._objc_msgSend_510(_id, _lib._sel_qualityOfService1); } - NSURLCredential defaultCredentialForProtectionSpace_( - NSURLProtectionSpace? space) { - final _ret = _lib._objc_msgSend_926( - _id, - _lib._sel_defaultCredentialForProtectionSpace_1, - space?._id ?? ffi.nullptr); - return NSURLCredential._(_ret, _lib, retain: true, release: true); + set qualityOfService(int value) { + return _lib._objc_msgSend_511(_id, _lib._sel_setQualityOfService_1, value); } - void setDefaultCredential_forProtectionSpace_( - NSURLCredential? credential, NSURLProtectionSpace? space) { - _lib._objc_msgSend_924( - _id, - _lib._sel_setDefaultCredential_forProtectionSpace_1, - credential?._id ?? ffi.nullptr, - space?._id ?? ffi.nullptr); + static NSTask + launchedTaskWithExecutableURL_arguments_error_terminationHandler_( + SentryCocoa _lib, + NSURL? url, + NSArray? arguments, + ffi.Pointer> error, + ObjCBlock_ffiVoid_NSTask terminationHandler) { + final _ret = _lib._objc_msgSend_1016( + _lib._class_NSTask1, + _lib._sel_launchedTaskWithExecutableURL_arguments_error_terminationHandler_1, + url?._id ?? ffi.nullptr, + arguments?._id ?? ffi.nullptr, + error, + terminationHandler._id); + return NSTask._(_ret, _lib, retain: true, release: true); } - void getCredentialsForProtectionSpace_task_completionHandler_( - NSURLProtectionSpace? protectionSpace, - NSURLSessionTask? task, - ObjCBlock_ffiVoid_NSDictionary completionHandler) { - _lib._objc_msgSend_927( - _id, - _lib._sel_getCredentialsForProtectionSpace_task_completionHandler_1, - protectionSpace?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr, - completionHandler._id); + void waitUntilExit() { + _lib._objc_msgSend_1(_id, _lib._sel_waitUntilExit1); } - void setCredential_forProtectionSpace_task_(NSURLCredential? credential, - NSURLProtectionSpace? protectionSpace, NSURLSessionTask? task) { - _lib._objc_msgSend_928( - _id, - _lib._sel_setCredential_forProtectionSpace_task_1, - credential?._id ?? ffi.nullptr, - protectionSpace?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr); + NSString? get launchPath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_launchPath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void removeCredential_forProtectionSpace_options_task_( - NSURLCredential? credential, - NSURLProtectionSpace? protectionSpace, - NSDictionary? options, - NSURLSessionTask? task) { - _lib._objc_msgSend_929( - _id, - _lib._sel_removeCredential_forProtectionSpace_options_task_1, - credential?._id ?? ffi.nullptr, - protectionSpace?._id ?? ffi.nullptr, - options?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr); + set launchPath(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setLaunchPath_1, value?._id ?? ffi.nullptr); } - void getDefaultCredentialForProtectionSpace_task_completionHandler_( - NSURLProtectionSpace? space, - NSURLSessionTask? task, - ObjCBlock_ffiVoid_NSURLCredential completionHandler) { - _lib._objc_msgSend_930( - _id, - _lib._sel_getDefaultCredentialForProtectionSpace_task_completionHandler_1, - space?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr, - completionHandler._id); + NSString? get currentDirectoryPath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currentDirectoryPath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void setDefaultCredential_forProtectionSpace_task_( - NSURLCredential? credential, - NSURLProtectionSpace? protectionSpace, - NSURLSessionTask? task) { - _lib._objc_msgSend_928( - _id, - _lib._sel_setDefaultCredential_forProtectionSpace_task_1, - credential?._id ?? ffi.nullptr, - protectionSpace?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr); + set currentDirectoryPath(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setCurrentDirectoryPath_1, value?._id ?? ffi.nullptr); } - @override - NSURLCredentialStorage init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLCredentialStorage._(_ret, _lib, retain: true, release: true); + void launch() { + _lib._objc_msgSend_1(_id, _lib._sel_launch1); } - static NSURLCredentialStorage new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLCredentialStorage1, _lib._sel_new1); - return NSURLCredentialStorage._(_ret, _lib, retain: false, release: true); + static NSTask launchedTaskWithLaunchPath_arguments_( + SentryCocoa _lib, NSString? path, NSArray? arguments) { + final _ret = _lib._objc_msgSend_1017( + _lib._class_NSTask1, + _lib._sel_launchedTaskWithLaunchPath_arguments_1, + path?._id ?? ffi.nullptr, + arguments?._id ?? ffi.nullptr); + return NSTask._(_ret, _lib, retain: true, release: true); } - static NSURLCredentialStorage allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static NSTask new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSTask1, _lib._sel_new1); + return NSTask._(_ret, _lib, retain: false, release: true); + } + + static NSTask allocWithZone_(SentryCocoa _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); + _lib._class_NSTask1, _lib._sel_allocWithZone_1, zone); + return NSTask._(_ret, _lib, retain: false, release: true); } - static NSURLCredentialStorage alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLCredentialStorage1, _lib._sel_alloc1); - return NSURLCredentialStorage._(_ret, _lib, retain: false, release: true); + static NSTask alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSTask1, _lib._sel_alloc1); + return NSTask._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -64354,7 +70871,7 @@ class NSURLCredentialStorage extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSURLCredentialStorage1, + _lib._class_NSTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -64363,24 +70880,24 @@ class NSURLCredentialStorage extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLCredentialStorage1, + _lib._objc_msgSend_15(_lib._class_NSTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLCredentialStorage1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSTask1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLCredentialStorage1, _lib._sel_useStoredAccessor1); + _lib._class_NSTask1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLCredentialStorage1, + _lib._class_NSTask1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -64389,7 +70906,7 @@ class NSURLCredentialStorage extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLCredentialStorage1, + _lib._class_NSTask1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -64397,96 +70914,31 @@ class NSURLCredentialStorage extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSURLCredentialStorage1, + _lib._class_NSTask1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSURLCredentialStorage1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79( + _lib._class_NSTask1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLCredentialStorage1, - _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSTask1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -void _ObjCBlock_ffiVoid_NSDictionary_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock_ffiVoid_NSDictionary_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSDictionary_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSDictionary_registerClosure( - Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSDictionary_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSDictionary_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock_ffiVoid_NSDictionary_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return (_ObjCBlock_ffiVoid_NSDictionary_closureRegistry[block - .ref.target.address] as void Function(ffi.Pointer))(arg0); -} - -class ObjCBlock_ffiVoid_NSDictionary extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSDictionary._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSDictionary.fromFunctionPointer( - SentryCocoa lib, - ffi.Pointer< - ffi - .NativeFunction arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSDictionary_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSDictionary.fromFunction( - SentryCocoa lib, void Function(ffi.Pointer arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSDictionary_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_NSDictionary_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); - } +abstract class NSTaskTerminationReason { + static const int NSTaskTerminationReasonExit = 1; + static const int NSTaskTerminationReasonUncaughtSignal = 2; } -void _ObjCBlock_ffiVoid_NSURLCredential_fnPtrTrampoline( +void _ObjCBlock_ffiVoid_NSTask_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { return block.ref.target .cast< @@ -64494,28 +70946,26 @@ void _ObjCBlock_ffiVoid_NSURLCredential_fnPtrTrampoline( .asFunction arg0)>()(arg0); } -final _ObjCBlock_ffiVoid_NSURLCredential_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSURLCredential_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSURLCredential_registerClosure( - Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSURLCredential_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSURLCredential_closureRegistry[id] = fn; +final _ObjCBlock_ffiVoid_NSTask_closureRegistry = {}; +int _ObjCBlock_ffiVoid_NSTask_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSTask_registerClosure(Function fn) { + final id = ++_ObjCBlock_ffiVoid_NSTask_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSTask_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_NSURLCredential_closureTrampoline( +void _ObjCBlock_ffiVoid_NSTask_closureTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return (_ObjCBlock_ffiVoid_NSURLCredential_closureRegistry[block - .ref.target.address] as void Function(ffi.Pointer))(arg0); + return (_ObjCBlock_ffiVoid_NSTask_closureRegistry[block.ref.target.address] + as void Function(ffi.Pointer))(arg0); } -class ObjCBlock_ffiVoid_NSURLCredential extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSURLCredential._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock_ffiVoid_NSTask extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSTask._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSURLCredential.fromFunctionPointer( + ObjCBlock_ffiVoid_NSTask.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi @@ -64526,23 +70976,23 @@ class ObjCBlock_ffiVoid_NSURLCredential extends _ObjCBlockBase { _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function(ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSURLCredential_fnPtrTrampoline) + _ObjCBlock_ffiVoid_NSTask_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSURLCredential.fromFunction( + ObjCBlock_ffiVoid_NSTask.fromFunction( SentryCocoa lib, void Function(ffi.Pointer arg0) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function(ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSURLCredential_closureTrampoline) + _ObjCBlock_ffiVoid_NSTask_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSURLCredential_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSTask_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; void call(ffi.Pointer arg0) { @@ -64557,175 +71007,361 @@ class ObjCBlock_ffiVoid_NSURLCredential extends _ObjCBlockBase { } } -class NSURLProtocol extends NSObject { - NSURLProtocol._(ffi.Pointer id, SentryCocoa lib, +class NSXMLElement extends NSXMLNode { + NSXMLElement._(ffi.Pointer id, SentryCocoa 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 [NSXMLElement] that points to the same underlying object as [other]. + static NSXMLElement castFrom(T other) { + return NSXMLElement._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSURLProtocol] that wraps the given raw object pointer. - static NSURLProtocol castFromPointer( + /// Returns a [NSXMLElement] that wraps the given raw object pointer. + static NSXMLElement castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLProtocol._(other, lib, retain: retain, release: release); + return NSXMLElement._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLProtocol]. + /// Returns whether [obj] is an instance of [NSXMLElement]. 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_NSXMLElement1); } - NSURLProtocol initWithRequest_cachedResponse_client_(NSURLRequest? request, - NSCachedURLResponse? cachedResponse, NSObject? client) { - final _ret = _lib._objc_msgSend_931( + NSXMLElement initWithName_(NSString? name) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithName_1, name?._id ?? ffi.nullptr); + return NSXMLElement._(_ret, _lib, retain: true, release: true); + } + + NSXMLElement initWithName_URI_(NSString? name, NSString? URI) { + final _ret = _lib._objc_msgSend_165(_id, _lib._sel_initWithName_URI_1, + name?._id ?? ffi.nullptr, URI?._id ?? ffi.nullptr); + return NSXMLElement._(_ret, _lib, retain: true, release: true); + } + + NSXMLElement initWithName_stringValue_(NSString? name, NSString? string) { + final _ret = _lib._objc_msgSend_165( _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_initWithName_stringValue_1, + name?._id ?? ffi.nullptr, + string?._id ?? ffi.nullptr); + return NSXMLElement._(_ret, _lib, retain: true, release: true); } - NSObject? get client { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_client1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); + NSXMLElement initWithXMLString_error_( + NSString? string, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_279(_id, + _lib._sel_initWithXMLString_error_1, string?._id ?? ffi.nullptr, error); + return NSXMLElement._(_ret, _lib, retain: true, release: true); } - NSURLRequest? get request { - final _ret = _lib._objc_msgSend_799(_id, _lib._sel_request1); + @override + NSXMLElement initWithKind_options_(int kind, int options) { + final _ret = _lib._objc_msgSend_1019( + _id, _lib._sel_initWithKind_options_1, kind, options); + return NSXMLElement._(_ret, _lib, retain: true, release: true); + } + + NSArray elementsForName_(NSString? name) { + final _ret = _lib._objc_msgSend_123( + _id, _lib._sel_elementsForName_1, name?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray elementsForLocalName_URI_(NSString? localName, NSString? URI) { + final _ret = _lib._objc_msgSend_655( + _id, + _lib._sel_elementsForLocalName_URI_1, + localName?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + void addAttribute_(NSXMLNode? attribute) { + _lib._objc_msgSend_1031( + _id, _lib._sel_addAttribute_1, attribute?._id ?? ffi.nullptr); + } + + void removeAttributeForName_(NSString? name) { + _lib._objc_msgSend_192( + _id, _lib._sel_removeAttributeForName_1, name?._id ?? ffi.nullptr); + } + + NSArray? get attributes { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_attributes1); return _ret.address == 0 ? null - : NSURLRequest._(_ret, _lib, retain: true, release: true); + : NSArray._(_ret, _lib, retain: true, release: true); } - NSCachedURLResponse? get cachedResponse { - final _ret = _lib._objc_msgSend_932(_id, _lib._sel_cachedResponse1); + set attributes(NSArray? value) { + return _lib._objc_msgSend_739( + _id, _lib._sel_setAttributes_1, value?._id ?? ffi.nullptr); + } + + void setAttributesWithDictionary_(NSDictionary? attributes) { + _lib._objc_msgSend_478(_id, _lib._sel_setAttributesWithDictionary_1, + attributes?._id ?? ffi.nullptr); + } + + NSXMLNode attributeForName_(NSString? name) { + final _ret = _lib._objc_msgSend_1035( + _id, _lib._sel_attributeForName_1, name?._id ?? ffi.nullptr); + return NSXMLNode._(_ret, _lib, retain: true, release: true); + } + + NSXMLNode attributeForLocalName_URI_(NSString? localName, NSString? URI) { + final _ret = _lib._objc_msgSend_1052( + _id, + _lib._sel_attributeForLocalName_URI_1, + localName?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr); + return NSXMLNode._(_ret, _lib, retain: true, release: true); + } + + void addNamespace_(NSXMLNode? aNamespace) { + _lib._objc_msgSend_1031( + _id, _lib._sel_addNamespace_1, aNamespace?._id ?? ffi.nullptr); + } + + void removeNamespaceForPrefix_(NSString? name) { + _lib._objc_msgSend_192( + _id, _lib._sel_removeNamespaceForPrefix_1, name?._id ?? ffi.nullptr); + } + + NSArray? get namespaces { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_namespaces1); return _ret.address == 0 ? null - : NSCachedURLResponse._(_ret, _lib, retain: true, release: true); + : NSArray._(_ret, _lib, retain: true, release: true); } - static bool canInitWithRequest_(SentryCocoa _lib, NSURLRequest? request) { - return _lib._objc_msgSend_909(_lib._class_NSURLProtocol1, - _lib._sel_canInitWithRequest_1, request?._id ?? ffi.nullptr); + set namespaces(NSArray? value) { + return _lib._objc_msgSend_739( + _id, _lib._sel_setNamespaces_1, value?._id ?? ffi.nullptr); } - static NSURLRequest canonicalRequestForRequest_( - SentryCocoa _lib, NSURLRequest? request) { - final _ret = _lib._objc_msgSend_933(_lib._class_NSURLProtocol1, - _lib._sel_canonicalRequestForRequest_1, request?._id ?? ffi.nullptr); - return NSURLRequest._(_ret, _lib, retain: true, release: true); + NSXMLNode namespaceForPrefix_(NSString? name) { + final _ret = _lib._objc_msgSend_1035( + _id, _lib._sel_namespaceForPrefix_1, name?._id ?? ffi.nullptr); + return NSXMLNode._(_ret, _lib, retain: true, release: true); } - static bool requestIsCacheEquivalent_toRequest_( - SentryCocoa _lib, NSURLRequest? a, NSURLRequest? b) { - return _lib._objc_msgSend_934( - _lib._class_NSURLProtocol1, - _lib._sel_requestIsCacheEquivalent_toRequest_1, - a?._id ?? ffi.nullptr, - b?._id ?? ffi.nullptr); + NSXMLNode resolveNamespaceForName_(NSString? name) { + final _ret = _lib._objc_msgSend_1035( + _id, _lib._sel_resolveNamespaceForName_1, name?._id ?? ffi.nullptr); + return NSXMLNode._(_ret, _lib, retain: true, release: true); + } + + NSString resolvePrefixForNamespaceURI_(NSString? namespaceURI) { + final _ret = _lib._objc_msgSend_64( + _id, + _lib._sel_resolvePrefixForNamespaceURI_1, + namespaceURI?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + void insertChild_atIndex_(NSXMLNode? child, int index) { + _lib._objc_msgSend_1029( + _id, _lib._sel_insertChild_atIndex_1, child?._id ?? ffi.nullptr, index); + } + + void insertChildren_atIndex_(NSArray? children, int index) { + _lib._objc_msgSend_1030(_id, _lib._sel_insertChildren_atIndex_1, + children?._id ?? ffi.nullptr, index); + } + + void removeChildAtIndex_(int index) { + _lib._objc_msgSend_441(_id, _lib._sel_removeChildAtIndex_1, index); + } + + void setChildren_(NSArray? children) { + _lib._objc_msgSend_443( + _id, _lib._sel_setChildren_1, children?._id ?? ffi.nullptr); + } + + void addChild_(NSXMLNode? child) { + _lib._objc_msgSend_1031( + _id, _lib._sel_addChild_1, child?._id ?? ffi.nullptr); + } + + void replaceChildAtIndex_withNode_(int index, NSXMLNode? node) { + _lib._objc_msgSend_1032(_id, _lib._sel_replaceChildAtIndex_withNode_1, + index, node?._id ?? ffi.nullptr); + } + + void normalizeAdjacentTextNodesPreservingCDATA_(bool preserve) { + _lib._objc_msgSend_798( + _id, _lib._sel_normalizeAdjacentTextNodesPreservingCDATA_1, preserve); + } + + void setAttributesAsDictionary_(NSDictionary? attributes) { + _lib._objc_msgSend_478(_id, _lib._sel_setAttributesAsDictionary_1, + attributes?._id ?? ffi.nullptr); + } + + @override + NSXMLElement init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSXMLElement._(_ret, _lib, retain: true, release: true); + } + + @override + NSXMLElement initWithKind_(int kind) { + final _ret = _lib._objc_msgSend_1018(_id, _lib._sel_initWithKind_1, kind); + return NSXMLElement._(_ret, _lib, retain: true, release: true); + } + + static NSObject document(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSXMLElement1, _lib._sel_document1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject documentWithRootElement_( + SentryCocoa _lib, NSXMLElement? element) { + final _ret = _lib._objc_msgSend_1020(_lib._class_NSXMLElement1, + _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject elementWithName_(SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLElement1, + _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject elementWithName_URI_( + SentryCocoa _lib, NSString? name, NSString? URI) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLElement1, + _lib._sel_elementWithName_URI_1, + name?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - void startLoading() { - _lib._objc_msgSend_1(_id, _lib._sel_startLoading1); + static NSObject elementWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? string) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLElement1, + _lib._sel_elementWithName_stringValue_1, + name?._id ?? ffi.nullptr, + string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - void stopLoading() { - _lib._objc_msgSend_1(_id, _lib._sel_stopLoading1); + static NSObject elementWithName_children_attributes_(SentryCocoa _lib, + NSString? name, NSArray? children, NSArray? attributes) { + final _ret = _lib._objc_msgSend_1021( + _lib._class_NSXMLElement1, + _lib._sel_elementWithName_children_attributes_1, + name?._id ?? ffi.nullptr, + children?._id ?? ffi.nullptr, + attributes?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject propertyForKey_inRequest_( - SentryCocoa _lib, NSString? key, NSURLRequest? request) { - final _ret = _lib._objc_msgSend_935( - _lib._class_NSURLProtocol1, - _lib._sel_propertyForKey_inRequest_1, - key?._id ?? ffi.nullptr, - request?._id ?? ffi.nullptr); + static NSObject attributeWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLElement1, + _lib._sel_attributeWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); return NSObject._(_ret, _lib, retain: true, release: true); } - static void setProperty_forKey_inRequest_(SentryCocoa _lib, NSObject value, - NSString? key, NSMutableURLRequest? request) { - _lib._objc_msgSend_941( - _lib._class_NSURLProtocol1, - _lib._sel_setProperty_forKey_inRequest_1, - value._id, - key?._id ?? ffi.nullptr, - request?._id ?? ffi.nullptr); + static NSObject attributeWithName_URI_stringValue_( + SentryCocoa _lib, NSString? name, NSString? URI, NSString? stringValue) { + final _ret = _lib._objc_msgSend_26( + _lib._class_NSXMLElement1, + _lib._sel_attributeWithName_URI_stringValue_1, + name?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - static void removePropertyForKey_inRequest_( - SentryCocoa _lib, NSString? key, NSMutableURLRequest? request) { - _lib._objc_msgSend_942( - _lib._class_NSURLProtocol1, - _lib._sel_removePropertyForKey_inRequest_1, - key?._id ?? ffi.nullptr, - request?._id ?? ffi.nullptr); + static NSObject namespaceWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLElement1, + _lib._sel_namespaceWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - static bool registerClass_(SentryCocoa _lib, NSObject protocolClass) { - return _lib._objc_msgSend_0(_lib._class_NSURLProtocol1, - _lib._sel_registerClass_1, protocolClass._id); + static NSObject processingInstructionWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLElement1, + _lib._sel_processingInstructionWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - static void unregisterClass_(SentryCocoa _lib, NSObject protocolClass) { - _lib._objc_msgSend_15(_lib._class_NSURLProtocol1, - _lib._sel_unregisterClass_1, protocolClass._id); + static NSObject commentWithStringValue_( + SentryCocoa _lib, NSString? stringValue) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLElement1, + _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - static bool canInitWithTask_(SentryCocoa _lib, NSURLSessionTask? task) { - return _lib._objc_msgSend_943(_lib._class_NSURLProtocol1, - _lib._sel_canInitWithTask_1, task?._id ?? ffi.nullptr); + static NSObject textWithStringValue_( + SentryCocoa _lib, NSString? stringValue) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLElement1, + _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSURLProtocol initWithTask_cachedResponse_client_(NSURLSessionTask? task, - NSCachedURLResponse? cachedResponse, NSObject? client) { - final _ret = _lib._objc_msgSend_944( - _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); + static NSObject DTDNodeWithXMLString_(SentryCocoa _lib, NSString? string) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLElement1, + _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSURLSessionTask? get task { - final _ret = _lib._objc_msgSend_945(_id, _lib._sel_task1); - return _ret.address == 0 - ? null - : NSURLSessionTask._(_ret, _lib, retain: true, release: true); + static NSString localNameForName_(SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLElement1, + _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - @override - NSURLProtocol init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLProtocol._(_ret, _lib, retain: true, release: true); + static NSString prefixForName_(SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLElement1, + _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - static NSURLProtocol new1(SentryCocoa _lib) { + static NSXMLNode predefinedNamespaceForPrefix_( + SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_1035(_lib._class_NSXMLElement1, + _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); + return NSXMLNode._(_ret, _lib, retain: true, release: true); + } + + static NSXMLElement new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLProtocol1, _lib._sel_new1); - return NSURLProtocol._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSXMLElement1, _lib._sel_new1); + return NSXMLElement._(_ret, _lib, retain: false, release: true); } - static NSURLProtocol allocWithZone_( + static NSXMLElement allocWithZone_( SentryCocoa _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); + _lib._class_NSXMLElement1, _lib._sel_allocWithZone_1, zone); + return NSXMLElement._(_ret, _lib, retain: false, release: true); } - static NSURLProtocol alloc(SentryCocoa _lib) { + static NSXMLElement alloc(SentryCocoa _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_NSXMLElement1, _lib._sel_alloc1); + return NSXMLElement._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -64734,7 +71370,7 @@ class NSURLProtocol extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSURLProtocol1, + _lib._class_NSXMLElement1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -64743,24 +71379,24 @@ class NSURLProtocol extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLProtocol1, + _lib._objc_msgSend_15(_lib._class_NSXMLElement1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLProtocol1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSXMLElement1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLProtocol1, _lib._sel_useStoredAccessor1); + _lib._class_NSXMLElement1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLProtocol1, + _lib._class_NSXMLElement1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -64769,7 +71405,7 @@ class NSURLProtocol extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLProtocol1, + _lib._class_NSXMLElement1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -64777,7 +71413,7 @@ class NSURLProtocol extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSURLProtocol1, + _lib._class_NSXMLElement1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -64785,301 +71421,397 @@ class NSURLProtocol extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSURLProtocol1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSXMLElement1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLProtocol1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSXMLElement1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSMutableURLRequest extends NSURLRequest { - NSMutableURLRequest._(ffi.Pointer id, SentryCocoa lib, +class NSXMLNode extends NSObject { + NSXMLNode._(ffi.Pointer id, SentryCocoa 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, - retain: true, release: true); + /// Returns a [NSXMLNode] that points to the same underlying object as [other]. + static NSXMLNode castFrom(T other) { + return NSXMLNode._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSMutableURLRequest] that wraps the given raw object pointer. - static NSMutableURLRequest castFromPointer( + /// Returns a [NSXMLNode] that wraps the given raw object pointer. + static NSXMLNode castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSMutableURLRequest._(other, lib, retain: retain, release: release); + return NSXMLNode._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSMutableURLRequest]. + /// Returns whether [obj] is an instance of [NSXMLNode]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMutableURLRequest1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLNode1); } @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); + NSXMLNode init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSXMLNode._(_ret, _lib, retain: true, release: true); } - set URL(NSURL? value) { - return _lib._objc_msgSend_621( - _id, _lib._sel_setURL_1, value?._id ?? ffi.nullptr); + NSXMLNode initWithKind_(int kind) { + final _ret = _lib._objc_msgSend_1018(_id, _lib._sel_initWithKind_1, kind); + return NSXMLNode._(_ret, _lib, retain: true, release: true); } - @override - int get cachePolicy { - return _lib._objc_msgSend_786(_id, _lib._sel_cachePolicy1); + NSXMLNode initWithKind_options_(int kind, int options) { + final _ret = _lib._objc_msgSend_1019( + _id, _lib._sel_initWithKind_options_1, kind, options); + return NSXMLNode._(_ret, _lib, retain: true, release: true); } - set cachePolicy(int value) { - return _lib._objc_msgSend_936(_id, _lib._sel_setCachePolicy_1, value); + static NSObject document(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSXMLNode1, _lib._sel_document1); + return NSObject._(_ret, _lib, retain: true, release: true); } - @override - double get timeoutInterval { - return _lib._objc_msgSend_155(_id, _lib._sel_timeoutInterval1); + static NSObject documentWithRootElement_( + SentryCocoa _lib, NSXMLElement? element) { + final _ret = _lib._objc_msgSend_1020(_lib._class_NSXMLNode1, + _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - set timeoutInterval(double value) { - return _lib._objc_msgSend_506(_id, _lib._sel_setTimeoutInterval_1, value); + static NSObject elementWithName_(SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, + _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - @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); + static NSObject elementWithName_URI_( + SentryCocoa _lib, NSString? name, NSString? URI) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLNode1, + _lib._sel_elementWithName_URI_1, + name?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - set mainDocumentURL(NSURL? value) { - return _lib._objc_msgSend_621( - _id, _lib._sel_setMainDocumentURL_1, value?._id ?? ffi.nullptr); + static NSObject elementWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? string) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLNode1, + _lib._sel_elementWithName_stringValue_1, + name?._id ?? ffi.nullptr, + string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - @override - int get networkServiceType { - return _lib._objc_msgSend_787(_id, _lib._sel_networkServiceType1); + static NSObject elementWithName_children_attributes_(SentryCocoa _lib, + NSString? name, NSArray? children, NSArray? attributes) { + final _ret = _lib._objc_msgSend_1021( + _lib._class_NSXMLNode1, + _lib._sel_elementWithName_children_attributes_1, + name?._id ?? ffi.nullptr, + children?._id ?? ffi.nullptr, + attributes?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - set networkServiceType(int value) { - return _lib._objc_msgSend_937( - _id, _lib._sel_setNetworkServiceType_1, value); + static NSObject attributeWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLNode1, + _lib._sel_attributeWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - @override - bool get allowsCellularAccess { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsCellularAccess1); + static NSObject attributeWithName_URI_stringValue_( + SentryCocoa _lib, NSString? name, NSString? URI, NSString? stringValue) { + final _ret = _lib._objc_msgSend_26( + _lib._class_NSXMLNode1, + _lib._sel_attributeWithName_URI_stringValue_1, + name?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - set allowsCellularAccess(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setAllowsCellularAccess_1, value); + static NSObject namespaceWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLNode1, + _lib._sel_namespaceWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - @override - bool get allowsExpensiveNetworkAccess { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsExpensiveNetworkAccess1); + static NSObject processingInstructionWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLNode1, + _lib._sel_processingInstructionWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - set allowsExpensiveNetworkAccess(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setAllowsExpensiveNetworkAccess_1, value); + static NSObject commentWithStringValue_( + SentryCocoa _lib, NSString? stringValue) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, + _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - @override - bool get allowsConstrainedNetworkAccess { - return _lib._objc_msgSend_12( - _id, _lib._sel_allowsConstrainedNetworkAccess1); + static NSObject textWithStringValue_( + SentryCocoa _lib, NSString? stringValue) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, + _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - set allowsConstrainedNetworkAccess(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setAllowsConstrainedNetworkAccess_1, value); + static NSObject DTDNodeWithXMLString_(SentryCocoa _lib, NSString? string) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, + _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - @override - bool get assumesHTTP3Capable { - return _lib._objc_msgSend_12(_id, _lib._sel_assumesHTTP3Capable1); + int get kind { + return _lib._objc_msgSend_1022(_id, _lib._sel_kind1); } - set assumesHTTP3Capable(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setAssumesHTTP3Capable_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); } - @override - int get attribution { - return _lib._objc_msgSend_788(_id, _lib._sel_attribution1); + set name(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); } - set attribution(int value) { - return _lib._objc_msgSend_938(_id, _lib._sel_setAttribution_1, value); + NSObject get objectValue { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_objectValue1); + return NSObject._(_ret, _lib, retain: true, release: true); } - @override - bool get requiresDNSSECValidation { - return _lib._objc_msgSend_12(_id, _lib._sel_requiresDNSSECValidation1); + set objectValue(NSObject value) { + return _lib._objc_msgSend_389(_id, _lib._sel_setObjectValue_1, value._id); } - set requiresDNSSECValidation(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setRequiresDNSSECValidation_1, value); + NSString? get stringValue { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_stringValue1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - @override - NSString? get HTTPMethod { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_HTTPMethod1); + set stringValue(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setStringValue_1, value?._id ?? ffi.nullptr); + } + + void setStringValue_resolvingEntities_(NSString? string, bool resolve) { + _lib._objc_msgSend_1023(_id, _lib._sel_setStringValue_resolvingEntities_1, + string?._id ?? ffi.nullptr, resolve); + } + + int get index { + return _lib._objc_msgSend_10(_id, _lib._sel_index1); + } + + int get level { + return _lib._objc_msgSend_10(_id, _lib._sel_level1); + } + + NSXMLDocument? get rootDocument { + final _ret = _lib._objc_msgSend_1046(_id, _lib._sel_rootDocument1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSXMLDocument._(_ret, _lib, retain: true, release: true); } - set HTTPMethod(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setHTTPMethod_1, value?._id ?? ffi.nullptr); + NSXMLNode? get parent { + final _ret = _lib._objc_msgSend_1047(_id, _lib._sel_parent1); + return _ret.address == 0 + ? null + : NSXMLNode._(_ret, _lib, retain: true, release: true); } - @override - NSDictionary? get allHTTPHeaderFields { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_allHTTPHeaderFields1); + int get childCount { + return _lib._objc_msgSend_10(_id, _lib._sel_childCount1); + } + + NSArray? get children { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_children1); return _ret.address == 0 ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + : NSArray._(_ret, _lib, retain: true, release: true); } - set allHTTPHeaderFields(NSDictionary? value) { - return _lib._objc_msgSend_171( - _id, _lib._sel_setAllHTTPHeaderFields_1, value?._id ?? ffi.nullptr); + NSXMLNode childAtIndex_(int index) { + final _ret = _lib._objc_msgSend_1048(_id, _lib._sel_childAtIndex_1, index); + return NSXMLNode._(_ret, _lib, retain: true, release: true); } - void setValue_forHTTPHeaderField_(NSString? value, NSString? field) { - _lib._objc_msgSend_515(_id, _lib._sel_setValue_forHTTPHeaderField_1, - value?._id ?? ffi.nullptr, field?._id ?? ffi.nullptr); + NSXMLNode? get previousSibling { + final _ret = _lib._objc_msgSend_1047(_id, _lib._sel_previousSibling1); + return _ret.address == 0 + ? null + : NSXMLNode._(_ret, _lib, retain: true, release: true); } - void addValue_forHTTPHeaderField_(NSString? value, NSString? field) { - _lib._objc_msgSend_515(_id, _lib._sel_addValue_forHTTPHeaderField_1, - value?._id ?? ffi.nullptr, field?._id ?? ffi.nullptr); + NSXMLNode? get nextSibling { + final _ret = _lib._objc_msgSend_1047(_id, _lib._sel_nextSibling1); + return _ret.address == 0 + ? null + : NSXMLNode._(_ret, _lib, retain: true, release: true); } - @override - NSData? get HTTPBody { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_HTTPBody1); + NSXMLNode? get previousNode { + final _ret = _lib._objc_msgSend_1047(_id, _lib._sel_previousNode1); return _ret.address == 0 ? null - : NSData._(_ret, _lib, retain: true, release: true); + : NSXMLNode._(_ret, _lib, retain: true, release: true); } - set HTTPBody(NSData? value) { - return _lib._objc_msgSend_939( - _id, _lib._sel_setHTTPBody_1, value?._id ?? ffi.nullptr); + NSXMLNode? get nextNode { + final _ret = _lib._objc_msgSend_1047(_id, _lib._sel_nextNode1); + return _ret.address == 0 + ? null + : NSXMLNode._(_ret, _lib, retain: true, release: true); } - @override - NSInputStream? get HTTPBodyStream { - final _ret = _lib._objc_msgSend_798(_id, _lib._sel_HTTPBodyStream1); + void detach() { + _lib._objc_msgSend_1(_id, _lib._sel_detach1); + } + + NSString? get XPath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_XPath1); return _ret.address == 0 ? null - : NSInputStream._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - set HTTPBodyStream(NSInputStream? value) { - return _lib._objc_msgSend_940( - _id, _lib._sel_setHTTPBodyStream_1, value?._id ?? ffi.nullptr); + NSString? get localName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - @override - bool get HTTPShouldHandleCookies { - return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldHandleCookies1); + NSString? get prefix { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_prefix1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - set HTTPShouldHandleCookies(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setHTTPShouldHandleCookies_1, value); + NSString? get URI { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_URI1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - @override - bool get HTTPShouldUsePipelining { - return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldUsePipelining1); + set URI(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setURI_1, value?._id ?? ffi.nullptr); } - set HTTPShouldUsePipelining(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setHTTPShouldUsePipelining_1, value); + static NSString localNameForName_(SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLNode1, + _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - static NSMutableURLRequest requestWithURL_(SentryCocoa _lib, NSURL? URL) { - final _ret = _lib._objc_msgSend_241(_lib._class_NSMutableURLRequest1, - _lib._sel_requestWithURL_1, URL?._id ?? ffi.nullptr); - return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); + static NSString prefixForName_(SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLNode1, + _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - static bool getSupportsSecureCoding(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMutableURLRequest1, _lib._sel_supportsSecureCoding1); + static NSXMLNode predefinedNamespaceForPrefix_( + SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_1035(_lib._class_NSXMLNode1, + _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); + return NSXMLNode._(_ret, _lib, retain: true, release: true); } - static NSMutableURLRequest requestWithURL_cachePolicy_timeoutInterval_( - SentryCocoa _lib, NSURL? URL, int cachePolicy, double timeoutInterval) { - final _ret = _lib._objc_msgSend_785( - _lib._class_NSMutableURLRequest1, - _lib._sel_requestWithURL_cachePolicy_timeoutInterval_1, - URL?._id ?? ffi.nullptr, - cachePolicy, - timeoutInterval); - return NSMutableURLRequest._(_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); } - @override - NSMutableURLRequest initWithURL_(NSURL? URL) { - final _ret = _lib._objc_msgSend_241( - _id, _lib._sel_initWithURL_1, URL?._id ?? ffi.nullptr); - return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); + NSString? get XMLString { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_XMLString1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString XMLStringWithOptions_(int options) { + final _ret = + _lib._objc_msgSend_1049(_id, _lib._sel_XMLStringWithOptions_1, options); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString canonicalXMLStringPreservingComments_(bool comments) { + final _ret = _lib._objc_msgSend_1050( + _id, _lib._sel_canonicalXMLStringPreservingComments_1, comments); + return NSString._(_ret, _lib, retain: true, release: true); } - @override - NSMutableURLRequest initWithURL_cachePolicy_timeoutInterval_( - NSURL? URL, int cachePolicy, double timeoutInterval) { - final _ret = _lib._objc_msgSend_785( + NSArray nodesForXPath_error_( + NSString? xpath, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_416( + _id, _lib._sel_nodesForXPath_error_1, xpath?._id ?? ffi.nullptr, error); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray objectsForXQuery_constants_error_(NSString? xquery, + NSDictionary? constants, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1051( _id, - _lib._sel_initWithURL_cachePolicy_timeoutInterval_1, - URL?._id ?? ffi.nullptr, - cachePolicy, - timeoutInterval); - return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); + _lib._sel_objectsForXQuery_constants_error_1, + xquery?._id ?? ffi.nullptr, + constants?._id ?? ffi.nullptr, + error); + return NSArray._(_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); + NSArray objectsForXQuery_error_( + NSString? xquery, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_416(_id, _lib._sel_objectsForXQuery_error_1, + xquery?._id ?? ffi.nullptr, error); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSMutableURLRequest new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableURLRequest1, _lib._sel_new1); - return NSMutableURLRequest._(_ret, _lib, retain: false, release: true); + static NSXMLNode new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLNode1, _lib._sel_new1); + return NSXMLNode._(_ret, _lib, retain: false, release: true); } - static NSMutableURLRequest allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static NSXMLNode allocWithZone_(SentryCocoa _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); + _lib._class_NSXMLNode1, _lib._sel_allocWithZone_1, zone); + return NSXMLNode._(_ret, _lib, retain: false, release: true); } - static NSMutableURLRequest alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableURLRequest1, _lib._sel_alloc1); - return NSMutableURLRequest._(_ret, _lib, retain: false, release: true); + static NSXMLNode alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLNode1, _lib._sel_alloc1); + return NSXMLNode._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -65088,7 +71820,7 @@ class NSMutableURLRequest extends NSURLRequest { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSMutableURLRequest1, + _lib._class_NSXMLNode1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -65097,24 +71829,24 @@ class NSMutableURLRequest extends NSURLRequest { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSMutableURLRequest1, + _lib._objc_msgSend_15(_lib._class_NSXMLNode1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSMutableURLRequest1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSXMLNode1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSMutableURLRequest1, _lib._sel_useStoredAccessor1); + _lib._class_NSXMLNode1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableURLRequest1, + _lib._class_NSXMLNode1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -65123,7 +71855,7 @@ class NSMutableURLRequest extends NSURLRequest { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSMutableURLRequest1, + _lib._class_NSXMLNode1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -65131,187 +71863,461 @@ class NSMutableURLRequest extends NSURLRequest { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSMutableURLRequest1, + _lib._class_NSXMLNode1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSMutableURLRequest1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79( + _lib._class_NSXMLNode1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableURLRequest1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSXMLNode1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSXMLParser extends NSObject { - NSXMLParser._(ffi.Pointer id, SentryCocoa lib, +abstract class NSXMLNodeKind { + static const int NSXMLInvalidKind = 0; + static const int NSXMLDocumentKind = 1; + static const int NSXMLElementKind = 2; + static const int NSXMLAttributeKind = 3; + static const int NSXMLNamespaceKind = 4; + static const int NSXMLProcessingInstructionKind = 5; + static const int NSXMLCommentKind = 6; + static const int NSXMLTextKind = 7; + static const int NSXMLDTDKind = 8; + static const int NSXMLEntityDeclarationKind = 9; + static const int NSXMLAttributeDeclarationKind = 10; + static const int NSXMLElementDeclarationKind = 11; + static const int NSXMLNotationDeclarationKind = 12; +} + +abstract class NSXMLNodeOptions { + static const int NSXMLNodeOptionsNone = 0; + static const int NSXMLNodeIsCDATA = 1; + static const int NSXMLNodeExpandEmptyElement = 2; + static const int NSXMLNodeCompactEmptyElement = 4; + static const int NSXMLNodeUseSingleQuotes = 8; + static const int NSXMLNodeUseDoubleQuotes = 16; + static const int NSXMLNodeNeverEscapeContents = 32; + static const int NSXMLDocumentTidyHTML = 512; + static const int NSXMLDocumentTidyXML = 1024; + static const int NSXMLDocumentValidate = 8192; + static const int NSXMLNodeLoadExternalEntitiesAlways = 16384; + static const int NSXMLNodeLoadExternalEntitiesSameOriginOnly = 32768; + static const int NSXMLNodeLoadExternalEntitiesNever = 524288; + static const int NSXMLDocumentXInclude = 65536; + static const int NSXMLNodePrettyPrint = 131072; + static const int NSXMLDocumentIncludeContentTypeDeclaration = 262144; + static const int NSXMLNodePreserveNamespaceOrder = 1048576; + static const int NSXMLNodePreserveAttributeOrder = 2097152; + static const int NSXMLNodePreserveEntities = 4194304; + static const int NSXMLNodePreservePrefixes = 8388608; + static const int NSXMLNodePreserveCDATA = 16777216; + static const int NSXMLNodePreserveWhitespace = 33554432; + static const int NSXMLNodePreserveDTD = 67108864; + static const int NSXMLNodePreserveCharacterReferences = 134217728; + static const int NSXMLNodePromoteSignificantWhitespace = 268435456; + static const int NSXMLNodePreserveEmptyElements = 6; + static const int NSXMLNodePreserveQuotes = 24; + static const int NSXMLNodePreserveAll = 4293918750; +} + +class NSXMLDocument extends NSXMLNode { + NSXMLDocument._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : 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); + /// Returns a [NSXMLDocument] that points to the same underlying object as [other]. + static NSXMLDocument castFrom(T other) { + return NSXMLDocument._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSXMLParser] that wraps the given raw object pointer. - static NSXMLParser castFromPointer( + /// Returns a [NSXMLDocument] that wraps the given raw object pointer. + static NSXMLDocument castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSXMLParser._(other, lib, retain: retain, release: release); + return NSXMLDocument._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSXMLParser]. + /// Returns whether [obj] is an instance of [NSXMLDocument]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLParser1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLDocument1); } - NSXMLParser initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_241( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSXMLParser._(_ret, _lib, retain: true, release: true); + @override + NSXMLDocument init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSXMLDocument._(_ret, _lib, retain: true, release: true); } - NSXMLParser initWithData_(NSData? data) { - final _ret = _lib._objc_msgSend_257( - _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); - return NSXMLParser._(_ret, _lib, retain: true, release: true); + NSXMLDocument initWithXMLString_options_error_( + NSString? string, int mask, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1024( + _id, + _lib._sel_initWithXMLString_options_error_1, + string?._id ?? ffi.nullptr, + mask, + error); + return NSXMLDocument._(_ret, _lib, retain: true, release: true); } - NSXMLParser initWithStream_(NSInputStream? stream) { - final _ret = _lib._objc_msgSend_946( - _id, _lib._sel_initWithStream_1, stream?._id ?? ffi.nullptr); - return NSXMLParser._(_ret, _lib, retain: true, release: true); + NSXMLDocument initWithContentsOfURL_options_error_( + NSURL? url, int mask, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1025( + _id, + _lib._sel_initWithContentsOfURL_options_error_1, + url?._id ?? ffi.nullptr, + mask, + error); + return NSXMLDocument._(_ret, _lib, retain: true, release: true); } - NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + NSXMLDocument initWithData_options_error_( + NSData? data, int mask, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1026( + _id, + _lib._sel_initWithData_options_error_1, + data?._id ?? ffi.nullptr, + mask, + error); + return NSXMLDocument._(_ret, _lib, retain: true, release: true); + } + + NSXMLDocument initWithRootElement_(NSXMLElement? element) { + final _ret = _lib._objc_msgSend_1020( + _id, _lib._sel_initWithRootElement_1, element?._id ?? ffi.nullptr); + return NSXMLDocument._(_ret, _lib, retain: true, release: true); + } + + static NSObject replacementClassForClass_(SentryCocoa _lib, NSObject cls) { + final _ret = _lib._objc_msgSend_16(_lib._class_NSXMLDocument1, + _lib._sel_replacementClassForClass_1, cls._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSString? get characterEncoding { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_characterEncoding1); return _ret.address == 0 ? null - : NSObject._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - set delegate(NSObject? value) { - return _lib._objc_msgSend_387( - _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); + set characterEncoding(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setCharacterEncoding_1, value?._id ?? ffi.nullptr); } - bool get shouldProcessNamespaces { - return _lib._objc_msgSend_12(_id, _lib._sel_shouldProcessNamespaces1); + NSString? get version { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_version1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - set shouldProcessNamespaces(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setShouldProcessNamespaces_1, value); + set version(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setVersion_1, value?._id ?? ffi.nullptr); } - bool get shouldReportNamespacePrefixes { - return _lib._objc_msgSend_12(_id, _lib._sel_shouldReportNamespacePrefixes1); + bool get standalone { + return _lib._objc_msgSend_12(_id, _lib._sel_isStandalone1); } - set shouldReportNamespacePrefixes(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setShouldReportNamespacePrefixes_1, value); + set standalone(bool value) { + return _lib._objc_msgSend_495(_id, _lib._sel_setStandalone_1, value); } - int get externalEntityResolvingPolicy { - return _lib._objc_msgSend_947( - _id, _lib._sel_externalEntityResolvingPolicy1); + int get documentContentKind { + return _lib._objc_msgSend_1027(_id, _lib._sel_documentContentKind1); } - set externalEntityResolvingPolicy(int value) { - return _lib._objc_msgSend_948( - _id, _lib._sel_setExternalEntityResolvingPolicy_1, value); + set documentContentKind(int value) { + return _lib._objc_msgSend_1028( + _id, _lib._sel_setDocumentContentKind_1, value); } - NSSet? get allowedExternalEntityURLs { - final _ret = - _lib._objc_msgSend_295(_id, _lib._sel_allowedExternalEntityURLs1); + NSString? get MIMEType { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_MIMEType1); return _ret.address == 0 ? null - : NSSet._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - set allowedExternalEntityURLs(NSSet? value) { - return _lib._objc_msgSend_949(_id, _lib._sel_setAllowedExternalEntityURLs_1, - value?._id ?? ffi.nullptr); + set MIMEType(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setMIMEType_1, value?._id ?? ffi.nullptr); } - bool parse() { - return _lib._objc_msgSend_12(_id, _lib._sel_parse1); + NSXMLDTD? get DTD { + final _ret = _lib._objc_msgSend_1038(_id, _lib._sel_DTD1); + return _ret.address == 0 + ? null + : NSXMLDTD._(_ret, _lib, retain: true, release: true); } - void abortParsing() { - _lib._objc_msgSend_1(_id, _lib._sel_abortParsing1); + set DTD(NSXMLDTD? value) { + return _lib._objc_msgSend_1039( + _id, _lib._sel_setDTD_1, value?._id ?? ffi.nullptr); } - NSError? get parserError { - final _ret = _lib._objc_msgSend_298(_id, _lib._sel_parserError1); - return _ret.address == 0 - ? null - : NSError._(_ret, _lib, retain: true, release: true); + void setRootElement_(NSXMLElement? root) { + _lib._objc_msgSend_1040( + _id, _lib._sel_setRootElement_1, root?._id ?? ffi.nullptr); } - bool get shouldResolveExternalEntities { - return _lib._objc_msgSend_12(_id, _lib._sel_shouldResolveExternalEntities1); + NSXMLElement rootElement() { + final _ret = _lib._objc_msgSend_1041(_id, _lib._sel_rootElement1); + return NSXMLElement._(_ret, _lib, retain: true, release: true); } - set shouldResolveExternalEntities(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setShouldResolveExternalEntities_1, value); + void insertChild_atIndex_(NSXMLNode? child, int index) { + _lib._objc_msgSend_1029( + _id, _lib._sel_insertChild_atIndex_1, child?._id ?? ffi.nullptr, index); } - 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 insertChildren_atIndex_(NSArray? children, int index) { + _lib._objc_msgSend_1030(_id, _lib._sel_insertChildren_atIndex_1, + children?._id ?? ffi.nullptr, index); } - NSString? get systemID { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_systemID1); + void removeChildAtIndex_(int index) { + _lib._objc_msgSend_441(_id, _lib._sel_removeChildAtIndex_1, index); + } + + void setChildren_(NSArray? children) { + _lib._objc_msgSend_443( + _id, _lib._sel_setChildren_1, children?._id ?? ffi.nullptr); + } + + void addChild_(NSXMLNode? child) { + _lib._objc_msgSend_1031( + _id, _lib._sel_addChild_1, child?._id ?? ffi.nullptr); + } + + void replaceChildAtIndex_withNode_(int index, NSXMLNode? node) { + _lib._objc_msgSend_1032(_id, _lib._sel_replaceChildAtIndex_withNode_1, + index, node?._id ?? ffi.nullptr); + } + + NSData? get XMLData { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_XMLData1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSData._(_ret, _lib, retain: true, release: true); } - int get lineNumber { - return _lib._objc_msgSend_78(_id, _lib._sel_lineNumber1); + NSData XMLDataWithOptions_(int options) { + final _ret = + _lib._objc_msgSend_1042(_id, _lib._sel_XMLDataWithOptions_1, options); + return NSData._(_ret, _lib, retain: true, release: true); } - int get columnNumber { - return _lib._objc_msgSend_78(_id, _lib._sel_columnNumber1); + NSObject objectByApplyingXSLT_arguments_error_(NSData? xslt, + NSDictionary? arguments, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1043( + _id, + _lib._sel_objectByApplyingXSLT_arguments_error_1, + xslt?._id ?? ffi.nullptr, + arguments?._id ?? ffi.nullptr, + error); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject objectByApplyingXSLTString_arguments_error_(NSString? xslt, + NSDictionary? arguments, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1044( + _id, + _lib._sel_objectByApplyingXSLTString_arguments_error_1, + xslt?._id ?? ffi.nullptr, + arguments?._id ?? ffi.nullptr, + error); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject objectByApplyingXSLTAtURL_arguments_error_(NSURL? xsltURL, + NSDictionary? argument, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1045( + _id, + _lib._sel_objectByApplyingXSLTAtURL_arguments_error_1, + xsltURL?._id ?? ffi.nullptr, + argument?._id ?? ffi.nullptr, + error); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + bool validateAndReturnError_(ffi.Pointer> error) { + return _lib._objc_msgSend_236( + _id, _lib._sel_validateAndReturnError_1, error); } @override - NSXMLParser init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSXMLParser._(_ret, _lib, retain: true, release: true); + NSXMLDocument initWithKind_(int kind) { + final _ret = _lib._objc_msgSend_1018(_id, _lib._sel_initWithKind_1, kind); + return NSXMLDocument._(_ret, _lib, retain: true, release: true); } - static NSXMLParser new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLParser1, _lib._sel_new1); - return NSXMLParser._(_ret, _lib, retain: false, release: true); + @override + NSXMLDocument initWithKind_options_(int kind, int options) { + final _ret = _lib._objc_msgSend_1019( + _id, _lib._sel_initWithKind_options_1, kind, options); + return NSXMLDocument._(_ret, _lib, retain: true, release: true); } - static NSXMLParser allocWithZone_( + static NSObject document(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSXMLDocument1, _lib._sel_document1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject documentWithRootElement_( + SentryCocoa _lib, NSXMLElement? element) { + final _ret = _lib._objc_msgSend_1020(_lib._class_NSXMLDocument1, + _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject elementWithName_(SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDocument1, + _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject elementWithName_URI_( + SentryCocoa _lib, NSString? name, NSString? URI) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDocument1, + _lib._sel_elementWithName_URI_1, + name?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject elementWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? string) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDocument1, + _lib._sel_elementWithName_stringValue_1, + name?._id ?? ffi.nullptr, + string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject elementWithName_children_attributes_(SentryCocoa _lib, + NSString? name, NSArray? children, NSArray? attributes) { + final _ret = _lib._objc_msgSend_1021( + _lib._class_NSXMLDocument1, + _lib._sel_elementWithName_children_attributes_1, + name?._id ?? ffi.nullptr, + children?._id ?? ffi.nullptr, + attributes?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject attributeWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDocument1, + _lib._sel_attributeWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject attributeWithName_URI_stringValue_( + SentryCocoa _lib, NSString? name, NSString? URI, NSString? stringValue) { + final _ret = _lib._objc_msgSend_26( + _lib._class_NSXMLDocument1, + _lib._sel_attributeWithName_URI_stringValue_1, + name?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject namespaceWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDocument1, + _lib._sel_namespaceWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject processingInstructionWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDocument1, + _lib._sel_processingInstructionWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject commentWithStringValue_( + SentryCocoa _lib, NSString? stringValue) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDocument1, + _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject textWithStringValue_( + SentryCocoa _lib, NSString? stringValue) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDocument1, + _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject DTDNodeWithXMLString_(SentryCocoa _lib, NSString? string) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDocument1, + _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSString localNameForName_(SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDocument1, + _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSString prefixForName_(SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDocument1, + _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSXMLNode predefinedNamespaceForPrefix_( + SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_1035(_lib._class_NSXMLDocument1, + _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); + return NSXMLNode._(_ret, _lib, retain: true, release: true); + } + + static NSXMLDocument new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSXMLDocument1, _lib._sel_new1); + return NSXMLDocument._(_ret, _lib, retain: false, release: true); + } + + static NSXMLDocument allocWithZone_( SentryCocoa _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); + _lib._class_NSXMLDocument1, _lib._sel_allocWithZone_1, zone); + return NSXMLDocument._(_ret, _lib, retain: false, release: true); } - static NSXMLParser alloc(SentryCocoa _lib) { + static NSXMLDocument alloc(SentryCocoa _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_NSXMLDocument1, _lib._sel_alloc1); + return NSXMLDocument._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -65320,7 +72326,7 @@ class NSXMLParser extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSXMLParser1, + _lib._class_NSXMLDocument1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -65329,24 +72335,24 @@ class NSXMLParser extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSXMLParser1, + _lib._objc_msgSend_15(_lib._class_NSXMLDocument1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSXMLParser1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSXMLDocument1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSXMLParser1, _lib._sel_useStoredAccessor1); + _lib._class_NSXMLDocument1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLParser1, + _lib._class_NSXMLDocument1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -65355,7 +72361,7 @@ class NSXMLParser extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSXMLParser1, + _lib._class_NSXMLDocument1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -65363,7 +72369,7 @@ class NSXMLParser extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSXMLParser1, + _lib._class_NSXMLDocument1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -65371,302 +72377,322 @@ class NSXMLParser extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSXMLParser1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSXMLDocument1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSXMLParser1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSXMLDocument1, _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 NSXMLDocumentContentKind { + static const int NSXMLDocumentXMLKind = 0; + static const int NSXMLDocumentXHTMLKind = 1; + static const int NSXMLDocumentHTMLKind = 2; + static const int NSXMLDocumentTextKind = 3; } -class NSFileWrapper extends NSObject { - NSFileWrapper._(ffi.Pointer id, SentryCocoa lib, +class NSXMLDTD extends NSXMLNode { + NSXMLDTD._(ffi.Pointer id, SentryCocoa 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 [NSXMLDTD] that points to the same underlying object as [other]. + static NSXMLDTD castFrom(T other) { + return NSXMLDTD._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSFileWrapper] that wraps the given raw object pointer. - static NSFileWrapper castFromPointer( + /// Returns a [NSXMLDTD] that wraps the given raw object pointer. + static NSXMLDTD castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSFileWrapper._(other, lib, retain: retain, release: release); + return NSXMLDTD._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSFileWrapper]. + /// Returns whether [obj] is an instance of [NSXMLDTD]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSFileWrapper1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLDTD1); } - NSFileWrapper initWithURL_options_error_( - NSURL? url, int options, ffi.Pointer> outError) { - final _ret = _lib._objc_msgSend_950( - _id, - _lib._sel_initWithURL_options_error_1, - url?._id ?? ffi.nullptr, - options, - outError); - return NSFileWrapper._(_ret, _lib, retain: true, release: true); + @override + NSXMLDTD init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSXMLDTD._(_ret, _lib, retain: true, release: true); } - NSFileWrapper initDirectoryWithFileWrappers_( - NSDictionary? childrenByPreferredName) { - final _ret = _lib._objc_msgSend_149( - _id, - _lib._sel_initDirectoryWithFileWrappers_1, - childrenByPreferredName?._id ?? ffi.nullptr); - return NSFileWrapper._(_ret, _lib, retain: true, release: true); + @override + NSXMLDTD initWithKind_options_(int kind, int options) { + final _ret = _lib._objc_msgSend_1019( + _id, _lib._sel_initWithKind_options_1, kind, options); + return NSXMLDTD._(_ret, _lib, retain: true, release: true); } - NSFileWrapper initRegularFileWithContents_(NSData? contents) { - final _ret = _lib._objc_msgSend_257(_id, - _lib._sel_initRegularFileWithContents_1, contents?._id ?? ffi.nullptr); - return NSFileWrapper._(_ret, _lib, retain: true, release: true); + NSXMLDTD initWithContentsOfURL_options_error_( + NSURL? url, int mask, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1025( + _id, + _lib._sel_initWithContentsOfURL_options_error_1, + url?._id ?? ffi.nullptr, + mask, + error); + return NSXMLDTD._(_ret, _lib, retain: true, release: true); } - NSFileWrapper initSymbolicLinkWithDestinationURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_241( + NSXMLDTD initWithData_options_error_( + NSData? data, int mask, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1026( _id, - _lib._sel_initSymbolicLinkWithDestinationURL_1, - url?._id ?? ffi.nullptr); - return NSFileWrapper._(_ret, _lib, retain: true, release: true); + _lib._sel_initWithData_options_error_1, + data?._id ?? ffi.nullptr, + mask, + error); + return NSXMLDTD._(_ret, _lib, retain: true, release: true); } - NSFileWrapper initWithSerializedRepresentation_( - NSData? serializeRepresentation) { - final _ret = _lib._objc_msgSend_257( - _id, - _lib._sel_initWithSerializedRepresentation_1, - serializeRepresentation?._id ?? ffi.nullptr); - return NSFileWrapper._(_ret, _lib, retain: true, release: true); + 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); } - 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); + set publicID(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setPublicID_1, value?._id ?? ffi.nullptr); } - bool get directory { - return _lib._objc_msgSend_12(_id, _lib._sel_isDirectory1); + 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); } - bool get regularFile { - return _lib._objc_msgSend_12(_id, _lib._sel_isRegularFile1); + set systemID(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setSystemID_1, value?._id ?? ffi.nullptr); } - bool get symbolicLink { - return _lib._objc_msgSend_12(_id, _lib._sel_isSymbolicLink1); + void insertChild_atIndex_(NSXMLNode? child, int index) { + _lib._objc_msgSend_1029( + _id, _lib._sel_insertChild_atIndex_1, child?._id ?? ffi.nullptr, index); } - 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); + void insertChildren_atIndex_(NSArray? children, int index) { + _lib._objc_msgSend_1030(_id, _lib._sel_insertChildren_atIndex_1, + children?._id ?? ffi.nullptr, index); } - set preferredFilename(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setPreferredFilename_1, value?._id ?? ffi.nullptr); + void removeChildAtIndex_(int index) { + _lib._objc_msgSend_441(_id, _lib._sel_removeChildAtIndex_1, index); } - NSString? get filename { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_filename1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + void setChildren_(NSArray? children) { + _lib._objc_msgSend_443( + _id, _lib._sel_setChildren_1, children?._id ?? ffi.nullptr); } - set filename(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setFilename_1, value?._id ?? ffi.nullptr); + void addChild_(NSXMLNode? child) { + _lib._objc_msgSend_1031( + _id, _lib._sel_addChild_1, child?._id ?? ffi.nullptr); } - NSDictionary? get fileAttributes { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_fileAttributes1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + void replaceChildAtIndex_withNode_(int index, NSXMLNode? node) { + _lib._objc_msgSend_1032(_id, _lib._sel_replaceChildAtIndex_withNode_1, + index, node?._id ?? ffi.nullptr); } - set fileAttributes(NSDictionary? value) { - return _lib._objc_msgSend_171( - _id, _lib._sel_setFileAttributes_1, value?._id ?? ffi.nullptr); + NSXMLDTDNode entityDeclarationForName_(NSString? name) { + final _ret = _lib._objc_msgSend_1036( + _id, _lib._sel_entityDeclarationForName_1, name?._id ?? ffi.nullptr); + return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); } - bool matchesContentsOfURL_(NSURL? url) { - return _lib._objc_msgSend_244( - _id, _lib._sel_matchesContentsOfURL_1, url?._id ?? ffi.nullptr); + NSXMLDTDNode notationDeclarationForName_(NSString? name) { + final _ret = _lib._objc_msgSend_1036( + _id, _lib._sel_notationDeclarationForName_1, name?._id ?? ffi.nullptr); + return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); } - bool readFromURL_options_error_( - NSURL? url, int options, ffi.Pointer> outError) { - return _lib._objc_msgSend_951(_id, _lib._sel_readFromURL_options_error_1, - url?._id ?? ffi.nullptr, options, outError); + NSXMLDTDNode elementDeclarationForName_(NSString? name) { + final _ret = _lib._objc_msgSend_1036( + _id, _lib._sel_elementDeclarationForName_1, name?._id ?? ffi.nullptr); + return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); } - bool writeToURL_options_originalContentsURL_error_( - NSURL? url, - int options, - NSURL? originalContentsURL, - ffi.Pointer> outError) { - return _lib._objc_msgSend_952( + NSXMLDTDNode attributeDeclarationForName_elementName_( + NSString? name, NSString? elementName) { + final _ret = _lib._objc_msgSend_1037( _id, - _lib._sel_writeToURL_options_originalContentsURL_error_1, - url?._id ?? ffi.nullptr, - options, - originalContentsURL?._id ?? ffi.nullptr, - outError); + _lib._sel_attributeDeclarationForName_elementName_1, + name?._id ?? ffi.nullptr, + elementName?._id ?? ffi.nullptr); + return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); } - NSData? get serializedRepresentation { - final _ret = - _lib._objc_msgSend_39(_id, _lib._sel_serializedRepresentation1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + static NSXMLDTDNode predefinedEntityDeclarationForName_( + SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_1036( + _lib._class_NSXMLDTD1, + _lib._sel_predefinedEntityDeclarationForName_1, + name?._id ?? ffi.nullptr); + return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); } - NSString addFileWrapper_(NSFileWrapper? child) { - final _ret = _lib._objc_msgSend_953( - _id, _lib._sel_addFileWrapper_1, child?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + @override + NSXMLDTD initWithKind_(int kind) { + final _ret = _lib._objc_msgSend_1018(_id, _lib._sel_initWithKind_1, kind); + return NSXMLDTD._(_ret, _lib, retain: true, release: true); } - NSString addRegularFileWithContents_preferredFilename_( - NSData? data, NSString? fileName) { - final _ret = _lib._objc_msgSend_954( - _id, - _lib._sel_addRegularFileWithContents_preferredFilename_1, - data?._id ?? ffi.nullptr, - fileName?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static NSObject document(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSXMLDTD1, _lib._sel_document1); + return NSObject._(_ret, _lib, retain: true, release: true); } - void removeFileWrapper_(NSFileWrapper? child) { - _lib._objc_msgSend_955( - _id, _lib._sel_removeFileWrapper_1, child?._id ?? ffi.nullptr); + static NSObject documentWithRootElement_( + SentryCocoa _lib, NSXMLElement? element) { + final _ret = _lib._objc_msgSend_1020(_lib._class_NSXMLDTD1, + _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSDictionary? get fileWrappers { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_fileWrappers1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + static NSObject elementWithName_(SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTD1, + _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSString keyForFileWrapper_(NSFileWrapper? child) { - final _ret = _lib._objc_msgSend_953( - _id, _lib._sel_keyForFileWrapper_1, child?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static NSObject elementWithName_URI_( + SentryCocoa _lib, NSString? name, NSString? URI) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDTD1, + _lib._sel_elementWithName_URI_1, + name?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSData? get regularFileContents { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_regularFileContents1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + static NSObject elementWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? string) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDTD1, + _lib._sel_elementWithName_stringValue_1, + name?._id ?? ffi.nullptr, + string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSURL? get symbolicLinkDestinationURL { - final _ret = - _lib._objc_msgSend_40(_id, _lib._sel_symbolicLinkDestinationURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + static NSObject elementWithName_children_attributes_(SentryCocoa _lib, + NSString? name, NSArray? children, NSArray? attributes) { + final _ret = _lib._objc_msgSend_1021( + _lib._class_NSXMLDTD1, + _lib._sel_elementWithName_children_attributes_1, + name?._id ?? ffi.nullptr, + children?._id ?? ffi.nullptr, + attributes?._id ?? ffi.nullptr); + return NSObject._(_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); + static NSObject attributeWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDTD1, + _lib._sel_attributeWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._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); + static NSObject attributeWithName_URI_stringValue_( + SentryCocoa _lib, NSString? name, NSString? URI, NSString? stringValue) { + final _ret = _lib._objc_msgSend_26( + _lib._class_NSXMLDTD1, + _lib._sel_attributeWithName_URI_stringValue_1, + name?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); return NSObject._(_ret, _lib, retain: true, release: true); } - bool needsToBeUpdatedFromPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_needsToBeUpdatedFromPath_1, path?._id ?? ffi.nullptr); + static NSObject namespaceWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDTD1, + _lib._sel_namespaceWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - bool updateFromPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_updateFromPath_1, path?._id ?? ffi.nullptr); + static NSObject processingInstructionWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDTD1, + _lib._sel_processingInstructionWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - bool writeToFile_atomically_updateFilenames_( - NSString? path, bool atomicFlag, bool updateFilenamesFlag) { - return _lib._objc_msgSend_956( - _id, - _lib._sel_writeToFile_atomically_updateFilenames_1, - path?._id ?? ffi.nullptr, - atomicFlag, - updateFilenamesFlag); + static NSObject commentWithStringValue_( + SentryCocoa _lib, NSString? stringValue) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTD1, + _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSString addFileWithPath_(NSString? path) { - final _ret = _lib._objc_msgSend_64( - _id, _lib._sel_addFileWithPath_1, path?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static NSObject textWithStringValue_( + SentryCocoa _lib, NSString? stringValue) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTD1, + _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSString addSymbolicLinkWithDestination_preferredFilename_( - NSString? path, NSString? filename) { - final _ret = _lib._objc_msgSend_339( - _id, - _lib._sel_addSymbolicLinkWithDestination_preferredFilename_1, - path?._id ?? ffi.nullptr, - filename?._id ?? ffi.nullptr); + static NSObject DTDNodeWithXMLString_(SentryCocoa _lib, NSString? string) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTD1, + _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSString localNameForName_(SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDTD1, + _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } - NSString symbolicLinkDestination() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_symbolicLinkDestination1); + static NSString prefixForName_(SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDTD1, + _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } - @override - NSFileWrapper init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSFileWrapper._(_ret, _lib, retain: true, release: true); + static NSXMLNode predefinedNamespaceForPrefix_( + SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_1035(_lib._class_NSXMLDTD1, + _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); + return NSXMLNode._(_ret, _lib, retain: true, release: true); } - static NSFileWrapper new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSFileWrapper1, _lib._sel_new1); - return NSFileWrapper._(_ret, _lib, retain: false, release: true); + static NSXMLDTD new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLDTD1, _lib._sel_new1); + return NSXMLDTD._(_ret, _lib, retain: false, release: true); } - static NSFileWrapper allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static NSXMLDTD allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSFileWrapper1, _lib._sel_allocWithZone_1, zone); - return NSFileWrapper._(_ret, _lib, retain: false, release: true); + _lib._class_NSXMLDTD1, _lib._sel_allocWithZone_1, zone); + return NSXMLDTD._(_ret, _lib, retain: false, release: true); } - static NSFileWrapper alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSFileWrapper1, _lib._sel_alloc1); - return NSFileWrapper._(_ret, _lib, retain: false, release: true); + static NSXMLDTD alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLDTD1, _lib._sel_alloc1); + return NSXMLDTD._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -65675,7 +72701,7 @@ class NSFileWrapper extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSFileWrapper1, + _lib._class_NSXMLDTD1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -65684,24 +72710,24 @@ class NSFileWrapper extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSFileWrapper1, + _lib._objc_msgSend_15(_lib._class_NSXMLDTD1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSFileWrapper1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSXMLDTD1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSFileWrapper1, _lib._sel_useStoredAccessor1); + _lib._class_NSXMLDTD1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSFileWrapper1, + _lib._class_NSXMLDTD1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -65710,7 +72736,7 @@ class NSFileWrapper extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSFileWrapper1, + _lib._class_NSXMLDTD1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -65718,7 +72744,7 @@ class NSFileWrapper extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSFileWrapper1, + _lib._class_NSXMLDTD1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -65726,357 +72752,260 @@ class NSFileWrapper extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSFileWrapper1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSXMLDTD1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSFileWrapper1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSXMLDTD1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSFileWrapperReadingOptions { - static const int NSFileWrapperReadingImmediate = 1; - static const int NSFileWrapperReadingWithoutMapping = 2; -} - -abstract class NSFileWrapperWritingOptions { - static const int NSFileWrapperWritingAtomic = 1; - static const int NSFileWrapperWritingWithNameUpdating = 2; -} - -class NSURLSession extends NSObject { - NSURLSession._(ffi.Pointer id, SentryCocoa lib, +class NSXMLDTDNode extends NSXMLNode { + NSXMLDTDNode._(ffi.Pointer id, SentryCocoa 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 [NSXMLDTDNode] that points to the same underlying object as [other]. + static NSXMLDTDNode castFrom(T other) { + return NSXMLDTDNode._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSURLSession] that wraps the given raw object pointer. - static NSURLSession castFromPointer( + /// Returns a [NSXMLDTDNode] that wraps the given raw object pointer. + static NSXMLDTDNode castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLSession._(other, lib, retain: retain, release: release); + return NSXMLDTDNode._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLSession]. + /// Returns whether [obj] is an instance of [NSXMLDTDNode]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLSession1); - } - - static NSURLSession? getSharedSession(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_957( - _lib._class_NSURLSession1, _lib._sel_sharedSession1); - return _ret.address == 0 - ? null - : NSURLSession._(_ret, _lib, retain: true, release: true); - } - - static NSURLSession sessionWithConfiguration_( - SentryCocoa _lib, NSURLSessionConfiguration? configuration) { - final _ret = _lib._objc_msgSend_968( - _lib._class_NSURLSession1, - _lib._sel_sessionWithConfiguration_1, - configuration?._id ?? ffi.nullptr); - return NSURLSession._(_ret, _lib, retain: true, release: true); - } - - static NSURLSession sessionWithConfiguration_delegate_delegateQueue_( - SentryCocoa _lib, - NSURLSessionConfiguration? configuration, - NSObject? delegate, - NSOperationQueue? queue) { - final _ret = _lib._objc_msgSend_969( - _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); - } - - NSOperationQueue? get delegateQueue { - final _ret = _lib._objc_msgSend_838(_id, _lib._sel_delegateQueue1); - return _ret.address == 0 - ? null - : NSOperationQueue._(_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); - } - - NSURLSessionConfiguration? get configuration { - final _ret = _lib._objc_msgSend_958(_id, _lib._sel_configuration1); - return _ret.address == 0 - ? null - : NSURLSessionConfiguration._(_ret, _lib, retain: true, 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); - } - - set sessionDescription(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setSessionDescription_1, value?._id ?? ffi.nullptr); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLDTDNode1); } - void finishTasksAndInvalidate() { - _lib._objc_msgSend_1(_id, _lib._sel_finishTasksAndInvalidate1); + NSXMLDTDNode initWithXMLString_(NSString? string) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithXMLString_1, string?._id ?? ffi.nullptr); + return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); } - void invalidateAndCancel() { - _lib._objc_msgSend_1(_id, _lib._sel_invalidateAndCancel1); + @override + NSXMLDTDNode initWithKind_options_(int kind, int options) { + final _ret = _lib._objc_msgSend_1019( + _id, _lib._sel_initWithKind_options_1, kind, options); + return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); } - void resetWithCompletionHandler_(ObjCBlock_ffiVoid completionHandler) { - _lib._objc_msgSend_497( - _id, _lib._sel_resetWithCompletionHandler_1, completionHandler._id); + @override + NSXMLDTDNode init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); } - void flushWithCompletionHandler_(ObjCBlock_ffiVoid completionHandler) { - _lib._objc_msgSend_497( - _id, _lib._sel_flushWithCompletionHandler_1, completionHandler._id); + int get DTDKind { + return _lib._objc_msgSend_1033(_id, _lib._sel_DTDKind1); } - void getTasksWithCompletionHandler_( - ObjCBlock_ffiVoid_NSArray_NSArray_NSArray completionHandler) { - _lib._objc_msgSend_970( - _id, _lib._sel_getTasksWithCompletionHandler_1, completionHandler._id); + set DTDKind(int value) { + return _lib._objc_msgSend_1034(_id, _lib._sel_setDTDKind_1, value); } - void getAllTasksWithCompletionHandler_( - ObjCBlock_ffiVoid_NSArray completionHandler) { - _lib._objc_msgSend_971(_id, _lib._sel_getAllTasksWithCompletionHandler_1, - completionHandler._id); + bool get external1 { + return _lib._objc_msgSend_12(_id, _lib._sel_isExternal1); } - - NSURLSessionDataTask dataTaskWithRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_972( - _id, _lib._sel_dataTaskWithRequest_1, request?._id ?? ffi.nullptr); - return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); + + 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); } - NSURLSessionDataTask dataTaskWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_973( - _id, _lib._sel_dataTaskWithURL_1, url?._id ?? ffi.nullptr); - return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); + set publicID(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setPublicID_1, value?._id ?? ffi.nullptr); } - NSURLSessionUploadTask uploadTaskWithRequest_fromFile_( - NSURLRequest? request, NSURL? fileURL) { - final _ret = _lib._objc_msgSend_975( - _id, - _lib._sel_uploadTaskWithRequest_fromFile_1, - request?._id ?? ffi.nullptr, - fileURL?._id ?? ffi.nullptr); - return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + 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); } - NSURLSessionUploadTask uploadTaskWithRequest_fromData_( - NSURLRequest? request, NSData? bodyData) { - final _ret = _lib._objc_msgSend_976( - _id, - _lib._sel_uploadTaskWithRequest_fromData_1, - request?._id ?? ffi.nullptr, - bodyData?._id ?? ffi.nullptr); - return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + set systemID(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setSystemID_1, value?._id ?? ffi.nullptr); } - NSURLSessionUploadTask uploadTaskWithResumeData_(NSData? resumeData) { - final _ret = _lib._objc_msgSend_977(_id, - _lib._sel_uploadTaskWithResumeData_1, resumeData?._id ?? ffi.nullptr); - return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + NSString? get notationName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_notationName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSURLSessionUploadTask uploadTaskWithStreamedRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_978(_id, - _lib._sel_uploadTaskWithStreamedRequest_1, request?._id ?? ffi.nullptr); - return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + set notationName(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setNotationName_1, value?._id ?? ffi.nullptr); } - NSURLSessionDownloadTask downloadTaskWithRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_979( - _id, _lib._sel_downloadTaskWithRequest_1, request?._id ?? ffi.nullptr); - return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + @override + NSXMLDTDNode initWithKind_(int kind) { + final _ret = _lib._objc_msgSend_1018(_id, _lib._sel_initWithKind_1, kind); + return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); } - NSURLSessionDownloadTask downloadTaskWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_980( - _id, _lib._sel_downloadTaskWithURL_1, url?._id ?? ffi.nullptr); - return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + static NSObject document(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSXMLDTDNode1, _lib._sel_document1); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSURLSessionDownloadTask downloadTaskWithResumeData_(NSData? resumeData) { - final _ret = _lib._objc_msgSend_981(_id, - _lib._sel_downloadTaskWithResumeData_1, resumeData?._id ?? ffi.nullptr); - return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + static NSObject documentWithRootElement_( + SentryCocoa _lib, NSXMLElement? element) { + final _ret = _lib._objc_msgSend_1020(_lib._class_NSXMLDTDNode1, + _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSURLSessionStreamTask streamTaskWithHostName_port_( - NSString? hostname, int port) { - final _ret = _lib._objc_msgSend_984( - _id, - _lib._sel_streamTaskWithHostName_port_1, - hostname?._id ?? ffi.nullptr, - port); - return NSURLSessionStreamTask._(_ret, _lib, retain: true, release: true); + static NSObject elementWithName_(SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTDNode1, + _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSURLSessionStreamTask streamTaskWithNetService_(NSNetService? service) { - final _ret = _lib._objc_msgSend_990( - _id, _lib._sel_streamTaskWithNetService_1, service?._id ?? ffi.nullptr); - return NSURLSessionStreamTask._(_ret, _lib, retain: true, release: true); + static NSObject elementWithName_URI_( + SentryCocoa _lib, NSString? name, NSString? URI) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDTDNode1, + _lib._sel_elementWithName_URI_1, + name?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSURLSessionWebSocketTask webSocketTaskWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_997( - _id, _lib._sel_webSocketTaskWithURL_1, url?._id ?? ffi.nullptr); - return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); + static NSObject elementWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? string) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDTDNode1, + _lib._sel_elementWithName_stringValue_1, + name?._id ?? ffi.nullptr, + string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSURLSessionWebSocketTask webSocketTaskWithURL_protocols_( - NSURL? url, NSArray? protocols) { - final _ret = _lib._objc_msgSend_998( - _id, - _lib._sel_webSocketTaskWithURL_protocols_1, - url?._id ?? ffi.nullptr, - protocols?._id ?? ffi.nullptr); - return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); + static NSObject elementWithName_children_attributes_(SentryCocoa _lib, + NSString? name, NSArray? children, NSArray? attributes) { + final _ret = _lib._objc_msgSend_1021( + _lib._class_NSXMLDTDNode1, + _lib._sel_elementWithName_children_attributes_1, + name?._id ?? ffi.nullptr, + children?._id ?? ffi.nullptr, + attributes?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSURLSessionWebSocketTask webSocketTaskWithRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_999( - _id, _lib._sel_webSocketTaskWithRequest_1, request?._id ?? ffi.nullptr); - return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); + static NSObject attributeWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDTDNode1, + _lib._sel_attributeWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - @override - NSURLSession init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSession._(_ret, _lib, retain: true, release: true); + static NSObject attributeWithName_URI_stringValue_( + SentryCocoa _lib, NSString? name, NSString? URI, NSString? stringValue) { + final _ret = _lib._objc_msgSend_26( + _lib._class_NSXMLDTDNode1, + _lib._sel_attributeWithName_URI_stringValue_1, + name?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSURLSession new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLSession1, _lib._sel_new1); - return NSURLSession._(_ret, _lib, retain: false, release: true); + static NSObject namespaceWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDTDNode1, + _lib._sel_namespaceWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSURLSessionDataTask dataTaskWithRequest_completionHandler_( - NSURLRequest? request, - ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { - final _ret = _lib._objc_msgSend_1000( - _id, - _lib._sel_dataTaskWithRequest_completionHandler_1, - request?._id ?? ffi.nullptr, - completionHandler._id); - return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); + static NSObject processingInstructionWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDTDNode1, + _lib._sel_processingInstructionWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSURLSessionDataTask dataTaskWithURL_completionHandler_(NSURL? url, - ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { - final _ret = _lib._objc_msgSend_1001( - _id, - _lib._sel_dataTaskWithURL_completionHandler_1, - url?._id ?? ffi.nullptr, - completionHandler._id); - return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); + static NSObject commentWithStringValue_( + SentryCocoa _lib, NSString? stringValue) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTDNode1, + _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSURLSessionUploadTask uploadTaskWithRequest_fromFile_completionHandler_( - NSURLRequest? request, - NSURL? fileURL, - ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { - final _ret = _lib._objc_msgSend_1002( - _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); + static NSObject textWithStringValue_( + SentryCocoa _lib, NSString? stringValue) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTDNode1, + _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSURLSessionUploadTask uploadTaskWithRequest_fromData_completionHandler_( - NSURLRequest? request, - NSData? bodyData, - ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { - final _ret = _lib._objc_msgSend_1003( - _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); + static NSObject DTDNodeWithXMLString_(SentryCocoa _lib, NSString? string) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTDNode1, + _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSURLSessionUploadTask uploadTaskWithResumeData_completionHandler_( - NSData? resumeData, - ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { - final _ret = _lib._objc_msgSend_1004( - _id, - _lib._sel_uploadTaskWithResumeData_completionHandler_1, - resumeData?._id ?? ffi.nullptr, - completionHandler._id); - return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + static NSString localNameForName_(SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDTDNode1, + _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - NSURLSessionDownloadTask downloadTaskWithRequest_completionHandler_( - NSURLRequest? request, - ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError completionHandler) { - final _ret = _lib._objc_msgSend_1005( - _id, - _lib._sel_downloadTaskWithRequest_completionHandler_1, - request?._id ?? ffi.nullptr, - completionHandler._id); - return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + static NSString prefixForName_(SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDTDNode1, + _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - NSURLSessionDownloadTask downloadTaskWithURL_completionHandler_(NSURL? url, - ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError completionHandler) { - final _ret = _lib._objc_msgSend_1006( - _id, - _lib._sel_downloadTaskWithURL_completionHandler_1, - url?._id ?? ffi.nullptr, - completionHandler._id); - return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + static NSXMLNode predefinedNamespaceForPrefix_( + SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_1035(_lib._class_NSXMLDTDNode1, + _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); + return NSXMLNode._(_ret, _lib, retain: true, release: true); } - NSURLSessionDownloadTask downloadTaskWithResumeData_completionHandler_( - NSData? resumeData, - ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError completionHandler) { - final _ret = _lib._objc_msgSend_1007( - _id, - _lib._sel_downloadTaskWithResumeData_completionHandler_1, - resumeData?._id ?? ffi.nullptr, - completionHandler._id); - return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + static NSXMLDTDNode new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSXMLDTDNode1, _lib._sel_new1); + return NSXMLDTDNode._(_ret, _lib, retain: false, release: true); } - static NSURLSession allocWithZone_( + static NSXMLDTDNode allocWithZone_( SentryCocoa _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); + _lib._class_NSXMLDTDNode1, _lib._sel_allocWithZone_1, zone); + return NSXMLDTDNode._(_ret, _lib, retain: false, release: true); } - static NSURLSession alloc(SentryCocoa _lib) { + static NSXMLDTDNode alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLSession1, _lib._sel_alloc1); - return NSURLSession._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSXMLDTDNode1, _lib._sel_alloc1); + return NSXMLDTDNode._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -66085,7 +73014,7 @@ class NSURLSession extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSURLSession1, + _lib._class_NSXMLDTDNode1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -66094,24 +73023,24 @@ class NSURLSession extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLSession1, + _lib._objc_msgSend_15(_lib._class_NSXMLDTDNode1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLSession1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSXMLDTDNode1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLSession1, _lib._sel_useStoredAccessor1); + _lib._class_NSXMLDTDNode1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSession1, + _lib._class_NSXMLDTDNode1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -66120,7 +73049,7 @@ class NSURLSession extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLSession1, + _lib._class_NSXMLDTDNode1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -66128,7 +73057,7 @@ class NSURLSession extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSURLSession1, + _lib._class_NSXMLDTDNode1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -66136,390 +73065,521 @@ class NSURLSession extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSURLSession1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSXMLDTDNode1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSession1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSXMLDTDNode1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSURLSessionConfiguration extends NSObject { - NSURLSessionConfiguration._(ffi.Pointer id, SentryCocoa lib, +abstract class NSXMLDTDNodeKind { + static const int NSXMLEntityGeneralKind = 1; + static const int NSXMLEntityParsedKind = 2; + static const int NSXMLEntityUnparsedKind = 3; + static const int NSXMLEntityParameterKind = 4; + static const int NSXMLEntityPredefined = 5; + static const int NSXMLAttributeCDATAKind = 6; + static const int NSXMLAttributeIDKind = 7; + static const int NSXMLAttributeIDRefKind = 8; + static const int NSXMLAttributeIDRefsKind = 9; + static const int NSXMLAttributeEntityKind = 10; + static const int NSXMLAttributeEntitiesKind = 11; + static const int NSXMLAttributeNMTokenKind = 12; + static const int NSXMLAttributeNMTokensKind = 13; + static const int NSXMLAttributeEnumerationKind = 14; + static const int NSXMLAttributeNotationKind = 15; + static const int NSXMLElementDeclarationUndefinedKind = 16; + static const int NSXMLElementDeclarationEmptyKind = 17; + static const int NSXMLElementDeclarationAnyKind = 18; + static const int NSXMLElementDeclarationMixedKind = 19; + static const int NSXMLElementDeclarationElementKind = 20; +} + +class NSNotificationCenter extends NSObject { + NSNotificationCenter._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSURLSessionConfiguration] that points to the same underlying object as [other]. - static NSURLSessionConfiguration castFrom(T other) { - return NSURLSessionConfiguration._(other._id, other._lib, + /// Returns a [NSNotificationCenter] that points to the same underlying object as [other]. + static NSNotificationCenter castFrom(T other) { + return NSNotificationCenter._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSURLSessionConfiguration] that wraps the given raw object pointer. - static NSURLSessionConfiguration castFromPointer( + /// Returns a [NSNotificationCenter] that wraps the given raw object pointer. + static NSNotificationCenter castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLSessionConfiguration._(other, lib, - retain: retain, release: release); + return NSNotificationCenter._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLSessionConfiguration]. + /// Returns whether [obj] is an instance of [NSNotificationCenter]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLSessionConfiguration1); - } - - static NSURLSessionConfiguration? getDefaultSessionConfiguration( - SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_958(_lib._class_NSURLSessionConfiguration1, - _lib._sel_defaultSessionConfiguration1); - return _ret.address == 0 - ? null - : NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + obj._lib._class_NSNotificationCenter1); } - static NSURLSessionConfiguration? getEphemeralSessionConfiguration( - SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_958(_lib._class_NSURLSessionConfiguration1, - _lib._sel_ephemeralSessionConfiguration1); + static NSNotificationCenter? getDefaultCenter(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_1053( + _lib._class_NSNotificationCenter1, _lib._sel_defaultCenter1); return _ret.address == 0 ? null - : NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + : NSNotificationCenter._(_ret, _lib, retain: true, release: true); } - static NSURLSessionConfiguration - backgroundSessionConfigurationWithIdentifier_( - SentryCocoa _lib, NSString? identifier) { - final _ret = _lib._objc_msgSend_959( - _lib._class_NSURLSessionConfiguration1, - _lib._sel_backgroundSessionConfigurationWithIdentifier_1, - identifier?._id ?? ffi.nullptr); - return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + void addObserver_selector_name_object_(NSObject observer, + ffi.Pointer aSelector, NSString aName, NSObject anObject) { + _lib._objc_msgSend_1054(_id, _lib._sel_addObserver_selector_name_object_1, + observer._id, aSelector, aName._id, anObject._id); } - 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 postNotification_(NSNotification? notification) { + _lib._objc_msgSend_1055( + _id, _lib._sel_postNotification_1, notification?._id ?? ffi.nullptr); } - int get requestCachePolicy { - return _lib._objc_msgSend_786(_id, _lib._sel_requestCachePolicy1); + void postNotificationName_object_(NSString aName, NSObject anObject) { + _lib._objc_msgSend_494( + _id, _lib._sel_postNotificationName_object_1, aName._id, anObject._id); } - set requestCachePolicy(int value) { - return _lib._objc_msgSend_936( - _id, _lib._sel_setRequestCachePolicy_1, value); + void postNotificationName_object_userInfo_( + NSString aName, NSObject anObject, NSDictionary? aUserInfo) { + _lib._objc_msgSend_1056( + _id, + _lib._sel_postNotificationName_object_userInfo_1, + aName._id, + anObject._id, + aUserInfo?._id ?? ffi.nullptr); } - double get timeoutIntervalForRequest { - return _lib._objc_msgSend_155(_id, _lib._sel_timeoutIntervalForRequest1); + void removeObserver_(NSObject observer) { + _lib._objc_msgSend_15(_id, _lib._sel_removeObserver_1, observer._id); } - set timeoutIntervalForRequest(double value) { - return _lib._objc_msgSend_506( - _id, _lib._sel_setTimeoutIntervalForRequest_1, value); + void removeObserver_name_object_( + NSObject observer, NSString aName, NSObject anObject) { + _lib._objc_msgSend_1057(_id, _lib._sel_removeObserver_name_object_1, + observer._id, aName._id, anObject._id); } - double get timeoutIntervalForResource { - return _lib._objc_msgSend_155(_id, _lib._sel_timeoutIntervalForResource1); + NSObject addObserverForName_object_queue_usingBlock_( + NSString name, + NSObject obj, + NSOperationQueue? queue, + ObjCBlock_ffiVoid_NSNotification block) { + final _ret = _lib._objc_msgSend_1058( + _id, + _lib._sel_addObserverForName_object_queue_usingBlock_1, + name._id, + obj._id, + queue?._id ?? ffi.nullptr, + block._id); + return NSObject._(_ret, _lib, retain: true, release: true); } - set timeoutIntervalForResource(double value) { - return _lib._objc_msgSend_506( - _id, _lib._sel_setTimeoutIntervalForResource_1, value); + @override + NSNotificationCenter init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSNotificationCenter._(_ret, _lib, retain: true, release: true); } - int get networkServiceType { - return _lib._objc_msgSend_787(_id, _lib._sel_networkServiceType1); + static NSNotificationCenter new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSNotificationCenter1, _lib._sel_new1); + return NSNotificationCenter._(_ret, _lib, retain: false, release: true); } - set networkServiceType(int value) { - return _lib._objc_msgSend_937( - _id, _lib._sel_setNetworkServiceType_1, value); + static NSNotificationCenter allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSNotificationCenter1, _lib._sel_allocWithZone_1, zone); + return NSNotificationCenter._(_ret, _lib, retain: false, release: true); } - bool get allowsCellularAccess { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsCellularAccess1); + static NSNotificationCenter alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSNotificationCenter1, _lib._sel_alloc1); + return NSNotificationCenter._(_ret, _lib, retain: false, release: true); } - set allowsCellularAccess(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setAllowsCellularAccess_1, value); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSNotificationCenter1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - bool get allowsExpensiveNetworkAccess { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsExpensiveNetworkAccess1); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSNotificationCenter1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - set allowsExpensiveNetworkAccess(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setAllowsExpensiveNetworkAccess_1, value); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_NSNotificationCenter1, + _lib._sel_accessInstanceVariablesDirectly1); } - bool get allowsConstrainedNetworkAccess { + static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _id, _lib._sel_allowsConstrainedNetworkAccess1); + _lib._class_NSNotificationCenter1, _lib._sel_useStoredAccessor1); } - set allowsConstrainedNetworkAccess(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setAllowsConstrainedNetworkAccess_1, value); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSNotificationCenter1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - bool get requiresDNSSECValidation { - return _lib._objc_msgSend_12(_id, _lib._sel_requiresDNSSECValidation1); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSNotificationCenter1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - set requiresDNSSECValidation(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setRequiresDNSSECValidation_1, value); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSNotificationCenter1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - bool get waitsForConnectivity { - return _lib._objc_msgSend_12(_id, _lib._sel_waitsForConnectivity1); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSNotificationCenter1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set waitsForConnectivity(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setWaitsForConnectivity_1, value); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSNotificationCenter1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - bool get discretionary { - return _lib._objc_msgSend_12(_id, _lib._sel_isDiscretionary1); - } +void _ObjCBlock_ffiVoid_NSNotification_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return block.ref.target + .cast< + ffi.NativeFunction arg0)>>() + .asFunction arg0)>()(arg0); +} - set discretionary(bool value) { - return _lib._objc_msgSend_492(_id, _lib._sel_setDiscretionary_1, value); - } +final _ObjCBlock_ffiVoid_NSNotification_closureRegistry = {}; +int _ObjCBlock_ffiVoid_NSNotification_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSNotification_registerClosure( + Function fn) { + final id = ++_ObjCBlock_ffiVoid_NSNotification_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSNotification_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(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 _ObjCBlock_ffiVoid_NSNotification_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return (_ObjCBlock_ffiVoid_NSNotification_closureRegistry[block + .ref.target.address] as void Function(ffi.Pointer))(arg0); +} - set sharedContainerIdentifier(NSString? value) { - return _lib._objc_msgSend_509(_id, _lib._sel_setSharedContainerIdentifier_1, - value?._id ?? ffi.nullptr); +class ObjCBlock_ffiVoid_NSNotification extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSNotification._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_NSNotification.fromFunctionPointer( + SentryCocoa lib, + ffi.Pointer< + ffi + .NativeFunction arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSNotification_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_NSNotification.fromFunction( + SentryCocoa lib, void Function(ffi.Pointer arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSNotification_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSNotification_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); } +} - bool get sessionSendsLaunchEvents { - return _lib._objc_msgSend_12(_id, _lib._sel_sessionSendsLaunchEvents1); - } +class SentryBreadcrumbTracker extends NSObject { + SentryBreadcrumbTracker._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - set sessionSendsLaunchEvents(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setSessionSendsLaunchEvents_1, value); + /// Returns a [SentryBreadcrumbTracker] that points to the same underlying object as [other]. + static SentryBreadcrumbTracker castFrom(T other) { + return SentryBreadcrumbTracker._(other._id, other._lib, + retain: true, release: true); } - NSDictionary? get connectionProxyDictionary { - final _ret = - _lib._objc_msgSend_170(_id, _lib._sel_connectionProxyDictionary1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + /// Returns a [SentryBreadcrumbTracker] that wraps the given raw object pointer. + static SentryBreadcrumbTracker castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentryBreadcrumbTracker._(other, lib, + retain: retain, release: release); } - set connectionProxyDictionary(NSDictionary? value) { - return _lib._objc_msgSend_171(_id, _lib._sel_setConnectionProxyDictionary_1, - value?._id ?? ffi.nullptr); + /// Returns whether [obj] is an instance of [SentryBreadcrumbTracker]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryBreadcrumbTracker1); } - int get TLSMinimumSupportedProtocol { - return _lib._objc_msgSend_960(_id, _lib._sel_TLSMinimumSupportedProtocol1); + @override + SentryBreadcrumbTracker init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentryBreadcrumbTracker._(_ret, _lib, retain: true, release: true); } - set TLSMinimumSupportedProtocol(int value) { - return _lib._objc_msgSend_961( - _id, _lib._sel_setTLSMinimumSupportedProtocol_1, value); + static SentryBreadcrumbTracker new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryBreadcrumbTracker1, _lib._sel_new1); + return SentryBreadcrumbTracker._(_ret, _lib, retain: false, release: true); } - int get TLSMaximumSupportedProtocol { - return _lib._objc_msgSend_960(_id, _lib._sel_TLSMaximumSupportedProtocol1); + void connectivityChanged_typeDescription_( + bool connected, NSString? typeDescription) { + _lib._objc_msgSend_272(_id, _lib._sel_connectivityChanged_typeDescription_1, + connected, typeDescription?._id ?? ffi.nullptr); } - set TLSMaximumSupportedProtocol(int value) { - return _lib._objc_msgSend_961( - _id, _lib._sel_setTLSMaximumSupportedProtocol_1, value); + static SentryBreadcrumbTracker allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_SentryBreadcrumbTracker1, _lib._sel_allocWithZone_1, zone); + return SentryBreadcrumbTracker._(_ret, _lib, retain: false, release: true); } - int get TLSMinimumSupportedProtocolVersion { - return _lib._objc_msgSend_962( - _id, _lib._sel_TLSMinimumSupportedProtocolVersion1); + static SentryBreadcrumbTracker alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryBreadcrumbTracker1, _lib._sel_alloc1); + return SentryBreadcrumbTracker._(_ret, _lib, retain: false, release: true); } - set TLSMinimumSupportedProtocolVersion(int value) { - return _lib._objc_msgSend_963( - _id, _lib._sel_setTLSMinimumSupportedProtocolVersion_1, value); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_SentryBreadcrumbTracker1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - int get TLSMaximumSupportedProtocolVersion { - return _lib._objc_msgSend_962( - _id, _lib._sel_TLSMaximumSupportedProtocolVersion1); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_SentryBreadcrumbTracker1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - set TLSMaximumSupportedProtocolVersion(int value) { - return _lib._objc_msgSend_963( - _id, _lib._sel_setTLSMaximumSupportedProtocolVersion_1, value); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_SentryBreadcrumbTracker1, + _lib._sel_accessInstanceVariablesDirectly1); } - bool get HTTPShouldUsePipelining { - return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldUsePipelining1); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_SentryBreadcrumbTracker1, _lib._sel_useStoredAccessor1); } - set HTTPShouldUsePipelining(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setHTTPShouldUsePipelining_1, value); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_SentryBreadcrumbTracker1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - bool get HTTPShouldSetCookies { - return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldSetCookies1); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_SentryBreadcrumbTracker1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - set HTTPShouldSetCookies(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setHTTPShouldSetCookies_1, value); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_SentryBreadcrumbTracker1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - int get HTTPCookieAcceptPolicy { - return _lib._objc_msgSend_783(_id, _lib._sel_HTTPCookieAcceptPolicy1); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_SentryBreadcrumbTracker1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set HTTPCookieAcceptPolicy(int value) { - return _lib._objc_msgSend_784( - _id, _lib._sel_setHTTPCookieAcceptPolicy_1, value); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_SentryBreadcrumbTracker1, + _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - NSDictionary? get HTTPAdditionalHeaders { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_HTTPAdditionalHeaders1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } +class SentryCrashWrapper extends NSObject { + SentryCrashWrapper._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - set HTTPAdditionalHeaders(NSDictionary? value) { - return _lib._objc_msgSend_171( - _id, _lib._sel_setHTTPAdditionalHeaders_1, value?._id ?? ffi.nullptr); + /// Returns a [SentryCrashWrapper] that points to the same underlying object as [other]. + static SentryCrashWrapper castFrom(T other) { + return SentryCrashWrapper._(other._id, other._lib, + retain: true, release: true); } - int get HTTPMaximumConnectionsPerHost { - return _lib._objc_msgSend_78(_id, _lib._sel_HTTPMaximumConnectionsPerHost1); + /// Returns a [SentryCrashWrapper] that wraps the given raw object pointer. + static SentryCrashWrapper castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentryCrashWrapper._(other, lib, retain: retain, release: release); } - set HTTPMaximumConnectionsPerHost(int value) { - return _lib._objc_msgSend_590( - _id, _lib._sel_setHTTPMaximumConnectionsPerHost_1, value); + /// Returns whether [obj] is an instance of [SentryCrashWrapper]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryCrashWrapper1); } - NSHTTPCookieStorage? get HTTPCookieStorage { - final _ret = _lib._objc_msgSend_777(_id, _lib._sel_HTTPCookieStorage1); + NSDictionary? get systemInfo { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_systemInfo1); return _ret.address == 0 ? null - : NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); + : NSDictionary._(_ret, _lib, retain: true, release: true); } - set HTTPCookieStorage(NSHTTPCookieStorage? value) { - return _lib._objc_msgSend_964( - _id, _lib._sel_setHTTPCookieStorage_1, value?._id ?? ffi.nullptr); + SentryCrashWrapper initWithProcessInfoWrapper_bridge_( + NSObject? processInfoWrapper, SentryCrashBridge? bridge) { + final _ret = _lib._objc_msgSend_1068( + _id, + _lib._sel_initWithProcessInfoWrapper_bridge_1, + processInfoWrapper?._id ?? ffi.nullptr, + bridge?._id ?? ffi.nullptr); + return SentryCrashWrapper._(_ret, _lib, retain: true, release: true); } - NSURLCredentialStorage? get URLCredentialStorage { - final _ret = _lib._objc_msgSend_922(_id, _lib._sel_URLCredentialStorage1); - return _ret.address == 0 - ? null - : NSURLCredentialStorage._(_ret, _lib, retain: true, release: true); + @override + SentryCrashWrapper init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentryCrashWrapper._(_ret, _lib, retain: true, release: true); } - set URLCredentialStorage(NSURLCredentialStorage? value) { - return _lib._objc_msgSend_965( - _id, _lib._sel_setURLCredentialStorage_1, value?._id ?? ffi.nullptr); + static SentryCrashWrapper new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryCrashWrapper1, _lib._sel_new1); + return SentryCrashWrapper._(_ret, _lib, retain: false, release: true); } - NSURLCache? get URLCache { - final _ret = _lib._objc_msgSend_892(_id, _lib._sel_URLCache1); - return _ret.address == 0 - ? null - : NSURLCache._(_ret, _lib, retain: true, release: true); + void startBinaryImageCache() { + _lib._objc_msgSend_1(_id, _lib._sel_startBinaryImageCache1); } - set URLCache(NSURLCache? value) { - return _lib._objc_msgSend_893( - _id, _lib._sel_setURLCache_1, value?._id ?? ffi.nullptr); + void stopBinaryImageCache() { + _lib._objc_msgSend_1(_id, _lib._sel_stopBinaryImageCache1); } - bool get shouldUseExtendedBackgroundIdleMode { - return _lib._objc_msgSend_12( - _id, _lib._sel_shouldUseExtendedBackgroundIdleMode1); + bool get crashedLastLaunch { + return _lib._objc_msgSend_12(_id, _lib._sel_crashedLastLaunch1); } - set shouldUseExtendedBackgroundIdleMode(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setShouldUseExtendedBackgroundIdleMode_1, value); + double get durationFromCrashStateInitToLastCrash { + return _lib._objc_msgSend_155( + _id, _lib._sel_durationFromCrashStateInitToLastCrash1); } - NSArray? get protocolClasses { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_protocolClasses1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + double get activeDurationSinceLastCrash { + return _lib._objc_msgSend_155(_id, _lib._sel_activeDurationSinceLastCrash1); } - set protocolClasses(NSArray? value) { - return _lib._objc_msgSend_735( - _id, _lib._sel_setProtocolClasses_1, value?._id ?? ffi.nullptr); + bool get isBeingTraced { + return _lib._objc_msgSend_12(_id, _lib._sel_isBeingTraced1); } - int get multipathServiceType { - return _lib._objc_msgSend_966(_id, _lib._sel_multipathServiceType1); + bool get isSimulatorBuild { + return _lib._objc_msgSend_12(_id, _lib._sel_isSimulatorBuild1); } - set multipathServiceType(int value) { - return _lib._objc_msgSend_967( - _id, _lib._sel_setMultipathServiceType_1, value); + bool get isApplicationInForeground { + return _lib._objc_msgSend_12(_id, _lib._sel_isApplicationInForeground1); } - @override - NSURLSessionConfiguration init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + int get freeMemorySize { + return _lib._objc_msgSend_1069(_id, _lib._sel_freeMemorySize1); } - static NSURLSessionConfiguration new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionConfiguration1, _lib._sel_new1); - return NSURLSessionConfiguration._(_ret, _lib, - retain: false, release: true); + int get appMemorySize { + return _lib._objc_msgSend_1069(_id, _lib._sel_appMemorySize1); } - static NSURLSessionConfiguration backgroundSessionConfiguration_( - SentryCocoa _lib, NSString? identifier) { - final _ret = _lib._objc_msgSend_959( - _lib._class_NSURLSessionConfiguration1, - _lib._sel_backgroundSessionConfiguration_1, - identifier?._id ?? ffi.nullptr); - return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + void enrichScope_(SentryScope? scope) { + _lib._objc_msgSend_1070( + _id, _lib._sel_enrichScope_1, scope?._id ?? ffi.nullptr); } - static NSURLSessionConfiguration allocWithZone_( + static SentryCrashWrapper allocWithZone_( SentryCocoa _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); + final _ret = _lib._objc_msgSend_3( + _lib._class_SentryCrashWrapper1, _lib._sel_allocWithZone_1, zone); + return SentryCrashWrapper._(_ret, _lib, retain: false, release: true); } - static NSURLSessionConfiguration alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionConfiguration1, _lib._sel_alloc1); - return NSURLSessionConfiguration._(_ret, _lib, - retain: false, release: true); + static SentryCrashWrapper alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryCrashWrapper1, _lib._sel_alloc1); + return SentryCrashWrapper._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -66528,7 +73588,7 @@ class NSURLSessionConfiguration extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSURLSessionConfiguration1, + _lib._class_SentryCrashWrapper1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -66537,24 +73597,24 @@ class NSURLSessionConfiguration extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLSessionConfiguration1, + _lib._objc_msgSend_15(_lib._class_SentryCrashWrapper1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionConfiguration1, + return _lib._objc_msgSend_12(_lib._class_SentryCrashWrapper1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLSessionConfiguration1, _lib._sel_useStoredAccessor1); + _lib._class_SentryCrashWrapper1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionConfiguration1, + _lib._class_SentryCrashWrapper1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -66563,7 +73623,7 @@ class NSURLSessionConfiguration extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLSessionConfiguration1, + _lib._class_SentryCrashWrapper1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -66571,218 +73631,179 @@ class NSURLSessionConfiguration extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSURLSessionConfiguration1, + _lib._class_SentryCrashWrapper1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionConfiguration1, + final _ret = _lib._objc_msgSend_79(_lib._class_SentryCrashWrapper1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionConfiguration1, - _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryCrashWrapper1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -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; -} - -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; -} - -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) { - 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 _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureRegistry = - {}; -int _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureRegistryIndex = 0; -ffi.Pointer - _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_registerClosure(Function 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) { - return (_ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureRegistry[ - block.ref.target.address] - as void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2); -} - -class ObjCBlock_ffiVoid_NSArray_NSArray_NSArray extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSArray_NSArray_NSArray._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSArray_NSArray_NSArray.fromFunctionPointer( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSArray_NSArray_NSArray.fromFunction( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_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); - } -} - -class NSURLSessionUploadTask extends NSURLSessionDataTask { - NSURLSessionUploadTask._(ffi.Pointer id, SentryCocoa lib, +/// Facade that bridges the Sentry SDK layer to the SentryCrash subsystem. +/// SentryCrashBridge is the single entry point through which SentryCrash +/// accesses SDK services. It replaces direct SentryDependencyContainer +/// look-ups inside the crash reporter, keeping the dependency direction +/// one-way: Sentry → SentryCrash, never the reverse. +///

Isolation boundary

+/// This bridge is the first step toward fully isolating SentryCrash from the +/// SDK. Today the two layers still share a handful of model types (e.g. +/// SentryCrashSwift, notification-center wrappers). Future work will replace +/// those shared types with protocol abstractions so that SentryCrash can be +/// built and tested independently. +///

Exposed services

+/// | Service | Used by SentryCrash for | +/// |––––––––––––––––|———————————————————| +/// | notificationCenterWrapper | Observing app-lifecycle events (foreground, background) | +/// | dateProvider | Timestamping crash reports and session boundaries | +/// | crashReporter | Reading system info, crash state, and launch metadata | +/// | uncaughtExceptionHandler | Installing / reading the NSException handler | +/// | activeScreenSize() (UIKit) | Recording screen dimensions in device context | +///

Threading

+/// The bridge is created once during SentryCrashIntegration.install(with:) and +/// is safe to read from any thread after initialization. The +/// uncaughtExceptionHandler property may be written from the SentryCrash +/// installation path and read from the crash-time exception handler. +///

Usage

+/// The bridge is created by the integration layer and passed down: +/// \code +/// let bridge = SentryCrashBridge( +/// notificationCenterWrapper: notificationCenter, +/// dateProvider: dateProvider, +/// crashReporter: crashReporter +/// ) +/// // Passed to SentryCrashWrapper, SentryCrashIntegrationSessionHandler, +/// // and the underlying SentryCrash / SentryCrashInstallation instances. +/// +/// \endcode +class SentryCrashBridge extends NSObject { + SentryCrashBridge._(ffi.Pointer id, SentryCocoa 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 [SentryCrashBridge] that points to the same underlying object as [other]. + static SentryCrashBridge castFrom(T other) { + return SentryCrashBridge._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSURLSessionUploadTask] that wraps the given raw object pointer. - static NSURLSessionUploadTask castFromPointer( + /// Returns a [SentryCrashBridge] that wraps the given raw object pointer. + static SentryCrashBridge castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLSessionUploadTask._(other, lib, - retain: retain, release: release); + return SentryCrashBridge._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLSessionUploadTask]. + /// Returns whether [obj] is an instance of [SentryCrashBridge]. 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_SentryCrashBridge1); } - @override - NSURLSessionUploadTask init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + /// Wrapper around NSNotificationCenter used by SentryCrash to observe + /// app-lifecycle transitions (e.g. UIApplicationDidBecomeActiveNotification). + NSObject? get notificationCenterWrapper { + final _ret = + _lib._objc_msgSend_2(_id, _lib._sel_notificationCenterWrapper1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSURLSessionUploadTask new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionUploadTask1, _lib._sel_new1); - return NSURLSessionUploadTask._(_ret, _lib, retain: false, release: true); + /// Provides the current date/time. Used for timestamping crash reports and + /// computing session durations. + NSObject? get dateProvider { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_dateProvider1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - void cancelByProducingResumeData_( - ObjCBlock_ffiVoid_NSData completionHandler) { - _lib._objc_msgSend_974( - _id, _lib._sel_cancelByProducingResumeData_1, completionHandler._id); + /// The crash reporter instance that owns system info, crash state, and the + /// on-disk report store. This is the main object SentryCrash interacts with. + SentryCrashSwift? get crashReporter { + final _ret = _lib._objc_msgSend_1066(_id, _lib._sel_crashReporter1); + return _ret.address == 0 + ? null + : SentryCrashSwift._(_ret, _lib, retain: true, release: true); } - static NSURLSessionUploadTask allocWithZone_( + /// The C-convention uncaught-exception handler installed by SentryCrash. + /// This is a convenience proxy for crashReporter.uncaughtExceptionHandler. + /// The NSException monitor (SentryCrashMonitor_NSException) writes this + /// during installation so it can be restored if monitoring is later disabled. + ffi.Pointer)>> + get uncaughtExceptionHandler { + return _lib._objc_msgSend_1061(_id, _lib._sel_uncaughtExceptionHandler1); + } + + /// The C-convention uncaught-exception handler installed by SentryCrash. + /// This is a convenience proxy for crashReporter.uncaughtExceptionHandler. + /// The NSException monitor (SentryCrashMonitor_NSException) writes this + /// during installation so it can be restored if monitoring is later disabled. + set uncaughtExceptionHandler( + ffi.Pointer< + ffi.NativeFunction)>> + value) { + return _lib._objc_msgSend_1062( + _id, _lib._sel_setUncaughtExceptionHandler_1, value); + } + + /// Creates a bridge with the SDK services that SentryCrash requires. + /// \param notificationCenterWrapper Wrapper for subscribing to app-lifecycle + /// notifications. + /// + /// \param dateProvider Provider for current timestamps. + /// + /// \param crashReporter The crash reporter that manages on-disk reports and + /// system info. + SentryCrashBridge + initWithNotificationCenterWrapper_dateProvider_crashReporter_( + NSObject? notificationCenterWrapper, + NSObject? dateProvider, + SentryCrashSwift? crashReporter) { + final _ret = _lib._objc_msgSend_1067( + _id, + _lib._sel_initWithNotificationCenterWrapper_dateProvider_crashReporter_1, + notificationCenterWrapper?._id ?? ffi.nullptr, + dateProvider?._id ?? ffi.nullptr, + crashReporter?._id ?? ffi.nullptr); + return SentryCrashBridge._(_ret, _lib, retain: true, release: true); + } + + @override + SentryCrashBridge init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentryCrashBridge._(_ret, _lib, retain: true, release: true); + } + + static SentryCrashBridge new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryCrashBridge1, _lib._sel_new1); + return SentryCrashBridge._(_ret, _lib, retain: false, release: true); + } + + static SentryCrashBridge allocWithZone_( SentryCocoa _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); + _lib._class_SentryCrashBridge1, _lib._sel_allocWithZone_1, zone); + return SentryCrashBridge._(_ret, _lib, retain: false, release: true); } - static NSURLSessionUploadTask alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionUploadTask1, _lib._sel_alloc1); - return NSURLSessionUploadTask._(_ret, _lib, retain: false, release: true); + static SentryCrashBridge alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryCrashBridge1, _lib._sel_alloc1); + return SentryCrashBridge._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -66791,7 +73812,7 @@ class NSURLSessionUploadTask extends NSURLSessionDataTask { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSURLSessionUploadTask1, + _lib._class_SentryCrashBridge1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -66800,24 +73821,24 @@ class NSURLSessionUploadTask extends NSURLSessionDataTask { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLSessionUploadTask1, + _lib._objc_msgSend_15(_lib._class_SentryCrashBridge1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionUploadTask1, + return _lib._objc_msgSend_12(_lib._class_SentryCrashBridge1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLSessionUploadTask1, _lib._sel_useStoredAccessor1); + _lib._class_SentryCrashBridge1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionUploadTask1, + _lib._class_SentryCrashBridge1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -66826,7 +73847,7 @@ class NSURLSessionUploadTask extends NSURLSessionDataTask { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLSessionUploadTask1, + _lib._class_SentryCrashBridge1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -66834,148 +73855,164 @@ class NSURLSessionUploadTask extends NSURLSessionDataTask { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSURLSessionUploadTask1, + _lib._class_SentryCrashBridge1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionUploadTask1, + final _ret = _lib._objc_msgSend_79(_lib._class_SentryCrashBridge1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionUploadTask1, - _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryCrashBridge1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -void _ObjCBlock_ffiVoid_NSData_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} +class SentryCrashSwift extends NSObject { + SentryCrashSwift._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); -final _ObjCBlock_ffiVoid_NSData_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSData_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSData_registerClosure(Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSData_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSData_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + /// Returns a [SentryCrashSwift] that points to the same underlying object as [other]. + static SentryCrashSwift castFrom(T other) { + return SentryCrashSwift._(other._id, other._lib, + retain: true, release: true); + } -void _ObjCBlock_ffiVoid_NSData_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return (_ObjCBlock_ffiVoid_NSData_closureRegistry[block.ref.target.address] - as void Function(ffi.Pointer))(arg0); -} + /// Returns a [SentryCrashSwift] that wraps the given raw object pointer. + static SentryCrashSwift castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentryCrashSwift._(other, lib, retain: retain, release: release); + } -class ObjCBlock_ffiVoid_NSData extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSData._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); + /// Returns whether [obj] is an instance of [SentryCrashSwift]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryCrashSwift1); + } - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSData.fromFunctionPointer( - SentryCocoa lib, + bool get crashedLastLaunch { + return _lib._objc_msgSend_12(_id, _lib._sel_crashedLastLaunch1); + } + + double get activeDurationSinceLastCrash { + return _lib._objc_msgSend_155(_id, _lib._sel_activeDurationSinceLastCrash1); + } + + void setSink_(SentryCrashReportFilterSwift? newValue) { + _lib._objc_msgSend_1060( + _id, _lib._sel_setSink_1, newValue?._id ?? ffi.nullptr); + } + + void setupOnCrash() { + _lib._objc_msgSend_1(_id, _lib._sel_setupOnCrash1); + } + + void removeOnCrash() { + _lib._objc_msgSend_1(_id, _lib._sel_removeOnCrash1); + } + + ffi.Pointer)>> + get uncaughtExceptionHandler { + return _lib._objc_msgSend_1061(_id, _lib._sel_uncaughtExceptionHandler1); + } + + set uncaughtExceptionHandler( ffi.Pointer< - ffi - .NativeFunction arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSData_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + ffi.NativeFunction)>> + value) { + return _lib._objc_msgSend_1062( + _id, _lib._sel_setUncaughtExceptionHandler_1, value); + } - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSData.fromFunction( - SentryCocoa lib, void Function(ffi.Pointer arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSData_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_NSData_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 setBridge_(SentryCrashBridge? bridge) { + _lib._objc_msgSend_1063( + _id, _lib._sel_setBridge_1, bridge?._id ?? ffi.nullptr); } -} -class NSURLSessionDownloadTask extends NSURLSessionTask { - NSURLSessionDownloadTask._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSString? get basePath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_basePath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set basePath(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setBasePath_1, value?._id ?? ffi.nullptr); + } + + void install() { + _lib._objc_msgSend_1(_id, _lib._sel_install1); + } + + void uninstall() { + _lib._objc_msgSend_1(_id, _lib._sel_uninstall1); + } + + NSDictionary? get systemInfo { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_systemInfo1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSDictionary? get userInfo { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_userInfo1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } - /// 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); + set userInfo(NSDictionary? value) { + return _lib._objc_msgSend_171( + _id, _lib._sel_setUserInfo_1, value?._id ?? ffi.nullptr); } - /// Returns a [NSURLSessionDownloadTask] that wraps the given raw object pointer. - static NSURLSessionDownloadTask castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLSessionDownloadTask._(other, lib, - retain: retain, release: release); + void sendAllReportsWithCompletion_( + ObjCBlock_ffiVoid_NSArray_bool_NSError completion) { + _lib._objc_msgSend_1064( + _id, _lib._sel_sendAllReportsWithCompletion_1, completion._id); } - /// 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_NSURLSessionDownloadTask1); + int get monitoring { + return _lib._objc_msgSend_1065(_id, _lib._sel_monitoring1); } - void cancelByProducingResumeData_( - ObjCBlock_ffiVoid_NSData completionHandler) { - _lib._objc_msgSend_974( - _id, _lib._sel_cancelByProducingResumeData_1, completionHandler._id); + bool hasOnCrash() { + return _lib._objc_msgSend_12(_id, _lib._sel_hasOnCrash1); } @override - NSURLSessionDownloadTask init() { + SentryCrashSwift init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + return SentryCrashSwift._(_ret, _lib, retain: true, release: true); } - static NSURLSessionDownloadTask new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionDownloadTask1, _lib._sel_new1); - return NSURLSessionDownloadTask._(_ret, _lib, retain: false, release: true); + static SentryCrashSwift new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryCrashSwift1, _lib._sel_new1); + return SentryCrashSwift._(_ret, _lib, retain: false, release: true); } - static NSURLSessionDownloadTask allocWithZone_( + static SentryCrashSwift allocWithZone_( SentryCocoa _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); + _lib._class_SentryCrashSwift1, _lib._sel_allocWithZone_1, zone); + return SentryCrashSwift._(_ret, _lib, retain: false, release: true); } - static NSURLSessionDownloadTask alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionDownloadTask1, _lib._sel_alloc1); - return NSURLSessionDownloadTask._(_ret, _lib, retain: false, release: true); + static SentryCrashSwift alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryCrashSwift1, _lib._sel_alloc1); + return SentryCrashSwift._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -66984,7 +74021,7 @@ class NSURLSessionDownloadTask extends NSURLSessionTask { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSURLSessionDownloadTask1, + _lib._class_SentryCrashSwift1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -66993,24 +74030,24 @@ class NSURLSessionDownloadTask extends NSURLSessionTask { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLSessionDownloadTask1, + _lib._objc_msgSend_15(_lib._class_SentryCrashSwift1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionDownloadTask1, + return _lib._objc_msgSend_12(_lib._class_SentryCrashSwift1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLSessionDownloadTask1, _lib._sel_useStoredAccessor1); + _lib._class_SentryCrashSwift1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionDownloadTask1, + _lib._class_SentryCrashSwift1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -67019,7 +74056,7 @@ class NSURLSessionDownloadTask extends NSURLSessionTask { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLSessionDownloadTask1, + _lib._class_SentryCrashSwift1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -67027,113 +74064,86 @@ class NSURLSessionDownloadTask extends NSURLSessionTask { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSURLSessionDownloadTask1, + _lib._class_SentryCrashSwift1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionDownloadTask1, + final _ret = _lib._objc_msgSend_79(_lib._class_SentryCrashSwift1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionDownloadTask1, - _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryCrashSwift1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSURLSessionStreamTask extends NSURLSessionTask { - NSURLSessionStreamTask._(ffi.Pointer id, SentryCocoa lib, +class SentryCrashReportFilterSwift extends NSObject { + SentryCrashReportFilterSwift._(ffi.Pointer id, SentryCocoa 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, + /// Returns a [SentryCrashReportFilterSwift] that points to the same underlying object as [other]. + static SentryCrashReportFilterSwift castFrom( + T other) { + return SentryCrashReportFilterSwift._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSURLSessionStreamTask] that wraps the given raw object pointer. - static NSURLSessionStreamTask castFromPointer( + /// Returns a [SentryCrashReportFilterSwift] that wraps the given raw object pointer. + static SentryCrashReportFilterSwift castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLSessionStreamTask._(other, lib, + return SentryCrashReportFilterSwift._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLSessionStreamTask]. + /// Returns whether [obj] is an instance of [SentryCrashReportFilterSwift]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLSessionStreamTask1); - } - - void readDataOfMinLength_maxLength_timeout_completionHandler_( - int minBytes, - int maxBytes, - double timeout, - ObjCBlock_ffiVoid_NSData_bool_NSError completionHandler) { - _lib._objc_msgSend_982( - _id, - _lib._sel_readDataOfMinLength_maxLength_timeout_completionHandler_1, - minBytes, - maxBytes, - timeout, - completionHandler._id); - } - - void writeData_timeout_completionHandler_(NSData? data, double timeout, - ObjCBlock_ffiVoid_NSError completionHandler) { - _lib._objc_msgSend_983(_id, _lib._sel_writeData_timeout_completionHandler_1, - data?._id ?? ffi.nullptr, timeout, completionHandler._id); - } - - void captureStreams() { - _lib._objc_msgSend_1(_id, _lib._sel_captureStreams1); - } - - void closeWrite() { - _lib._objc_msgSend_1(_id, _lib._sel_closeWrite1); - } - - void closeRead() { - _lib._objc_msgSend_1(_id, _lib._sel_closeRead1); - } - - void startSecureConnection() { - _lib._objc_msgSend_1(_id, _lib._sel_startSecureConnection1); + obj._lib._class_SentryCrashReportFilterSwift1); } - void stopSecureConnection() { - _lib._objc_msgSend_1(_id, _lib._sel_stopSecureConnection1); + SentryCrashReportFilterSwift initWithFilterReports_( + ObjCBlock_ffiVoid_NSArray_ffiVoidNSArrayboolNSError filter) { + final _ret = _lib._objc_msgSend_1059( + _id, _lib._sel_initWithFilterReports_1, filter._id); + return SentryCrashReportFilterSwift._(_ret, _lib, + retain: true, release: true); } @override - NSURLSessionStreamTask init() { + SentryCrashReportFilterSwift init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionStreamTask._(_ret, _lib, retain: true, release: true); + return SentryCrashReportFilterSwift._(_ret, _lib, + retain: true, release: true); } - static NSURLSessionStreamTask new1(SentryCocoa _lib) { + static SentryCrashReportFilterSwift new1(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionStreamTask1, _lib._sel_new1); - return NSURLSessionStreamTask._(_ret, _lib, retain: false, release: true); + _lib._class_SentryCrashReportFilterSwift1, _lib._sel_new1); + return SentryCrashReportFilterSwift._(_ret, _lib, + retain: false, release: true); } - static NSURLSessionStreamTask allocWithZone_( + static SentryCrashReportFilterSwift allocWithZone_( SentryCocoa _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); + final _ret = _lib._objc_msgSend_3(_lib._class_SentryCrashReportFilterSwift1, + _lib._sel_allocWithZone_1, zone); + return SentryCrashReportFilterSwift._(_ret, _lib, + retain: false, release: true); } - static NSURLSessionStreamTask alloc(SentryCocoa _lib) { + static SentryCrashReportFilterSwift alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionStreamTask1, _lib._sel_alloc1); - return NSURLSessionStreamTask._(_ret, _lib, retain: false, release: true); + _lib._class_SentryCrashReportFilterSwift1, _lib._sel_alloc1); + return SentryCrashReportFilterSwift._(_ret, _lib, + retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -67142,7 +74152,7 @@ class NSURLSessionStreamTask extends NSURLSessionTask { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSURLSessionStreamTask1, + _lib._class_SentryCrashReportFilterSwift1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -67151,24 +74161,24 @@ class NSURLSessionStreamTask extends NSURLSessionTask { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLSessionStreamTask1, + _lib._objc_msgSend_15(_lib._class_SentryCrashReportFilterSwift1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionStreamTask1, + return _lib._objc_msgSend_12(_lib._class_SentryCrashReportFilterSwift1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLSessionStreamTask1, _lib._sel_useStoredAccessor1); + return _lib._objc_msgSend_12(_lib._class_SentryCrashReportFilterSwift1, + _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionStreamTask1, + _lib._class_SentryCrashReportFilterSwift1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -67177,7 +74187,7 @@ class NSURLSessionStreamTask extends NSURLSessionTask { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLSessionStreamTask1, + _lib._class_SentryCrashReportFilterSwift1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -67185,26 +74195,125 @@ class NSURLSessionStreamTask extends NSURLSessionTask { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSURLSessionStreamTask1, + _lib._class_SentryCrashReportFilterSwift1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionStreamTask1, + final _ret = _lib._objc_msgSend_79( + _lib._class_SentryCrashReportFilterSwift1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionStreamTask1, + final _ret = _lib._objc_msgSend_2(_lib._class_SentryCrashReportFilterSwift1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -void _ObjCBlock_ffiVoid_NSData_bool_NSError_fnPtrTrampoline( +void _ObjCBlock_ffiVoid_NSArray_ffiVoidNSArrayboolNSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer<_ObjCBlock> arg1) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer<_ObjCBlock> arg1)>>() + .asFunction< + void Function(ffi.Pointer arg0, + ffi.Pointer<_ObjCBlock> arg1)>()(arg0, arg1); +} + +final _ObjCBlock_ffiVoid_NSArray_ffiVoidNSArrayboolNSError_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_NSArray_ffiVoidNSArrayboolNSError_closureRegistryIndex = + 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSArray_ffiVoidNSArrayboolNSError_registerClosure( + Function fn) { + final id = + ++_ObjCBlock_ffiVoid_NSArray_ffiVoidNSArrayboolNSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSArray_ffiVoidNSArrayboolNSError_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSArray_ffiVoidNSArrayboolNSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer<_ObjCBlock> arg1) { + return (_ObjCBlock_ffiVoid_NSArray_ffiVoidNSArrayboolNSError_closureRegistry[ + block.ref.target.address] + as void Function( + ffi.Pointer, ffi.Pointer<_ObjCBlock>))(arg0, arg1); +} + +class ObjCBlock_ffiVoid_NSArray_ffiVoidNSArrayboolNSError + extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSArray_ffiVoidNSArrayboolNSError._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_NSArray_ffiVoidNSArrayboolNSError.fromFunctionPointer( + SentryCocoa lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer<_ObjCBlock> arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer<_ObjCBlock> arg1)>( + _ObjCBlock_ffiVoid_NSArray_ffiVoidNSArrayboolNSError_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_NSArray_ffiVoidNSArrayboolNSError.fromFunction( + SentryCocoa lib, + void Function(ffi.Pointer arg0, ffi.Pointer<_ObjCBlock> arg1) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer<_ObjCBlock> arg1)>( + _ObjCBlock_ffiVoid_NSArray_ffiVoidNSArrayboolNSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSArray_ffiVoidNSArrayboolNSError_registerClosure( + fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0, ffi.Pointer<_ObjCBlock> arg1) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer<_ObjCBlock> arg1)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer<_ObjCBlock> arg1)>()(_id, arg0, arg1); + } +} + +void _ObjCBlock_ffiVoid_NSArray_bool_NSError_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, bool arg1, @@ -67219,34 +74328,34 @@ void _ObjCBlock_ffiVoid_NSData_bool_NSError_fnPtrTrampoline( ffi.Pointer arg2)>()(arg0, arg1, arg2); } -final _ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistry = +final _ObjCBlock_ffiVoid_NSArray_bool_NSError_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSData_bool_NSError_registerClosure( +int _ObjCBlock_ffiVoid_NSArray_bool_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSArray_bool_NSError_registerClosure( Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistry[id] = fn; + final id = ++_ObjCBlock_ffiVoid_NSArray_bool_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSArray_bool_NSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_NSData_bool_NSError_closureTrampoline( +void _ObjCBlock_ffiVoid_NSArray_bool_NSError_closureTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return (_ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistry[ + return (_ObjCBlock_ffiVoid_NSArray_bool_NSError_closureRegistry[ block.ref.target.address] as void Function(ffi.Pointer, bool, ffi.Pointer))(arg0, arg1, arg2); } -class ObjCBlock_ffiVoid_NSData_bool_NSError extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSData_bool_NSError._( +class ObjCBlock_ffiVoid_NSArray_bool_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSArray_bool_NSError._( ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSData_bool_NSError.fromFunctionPointer( + ObjCBlock_ffiVoid_NSArray_bool_NSError.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< @@ -67261,14 +74370,14 @@ class ObjCBlock_ffiVoid_NSData_bool_NSError extends _ObjCBlockBase { ffi.Pointer arg0, ffi.Bool arg1, ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_NSData_bool_NSError_fnPtrTrampoline) + _ObjCBlock_ffiVoid_NSArray_bool_NSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSData_bool_NSError.fromFunction( + ObjCBlock_ffiVoid_NSArray_bool_NSError.fromFunction( SentryCocoa lib, void Function(ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) @@ -67281,9 +74390,9 @@ class ObjCBlock_ffiVoid_NSData_bool_NSError extends _ObjCBlockBase { ffi.Pointer arg0, ffi.Bool arg1, ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_NSData_bool_NSError_closureTrampoline) + _ObjCBlock_ffiVoid_NSArray_bool_NSError_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSData_bool_NSError_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSArray_bool_NSError_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; void call( @@ -67305,531 +74414,539 @@ class ObjCBlock_ffiVoid_NSData_bool_NSError extends _ObjCBlockBase { } } -class NSNetService extends NSObject { - NSNetService._(ffi.Pointer id, SentryCocoa lib, +class SentryScope extends _ObjCWrapper { + SentryScope._(ffi.Pointer id, SentryCocoa 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 [SentryScope] that points to the same underlying object as [other]. + static SentryScope castFrom(T other) { + return SentryScope._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSNetService] that wraps the given raw object pointer. - static NSNetService castFromPointer( + /// Returns a [SentryScope] that wraps the given raw object pointer. + static SentryScope castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSNetService._(other, lib, retain: retain, release: release); + return SentryScope._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSNetService]. + /// Returns whether [obj] is an instance of [SentryScope]. 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_SentryScope1); } +} - NSNetService initWithDomain_type_name_port_( - NSString? domain, NSString? type, NSString? name, int port) { - final _ret = _lib._objc_msgSend_985( - _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); - } +class SentryFeedback extends NSObject { + SentryFeedback._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - 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); + /// Returns a [SentryFeedback] that points to the same underlying object as [other]. + static SentryFeedback castFrom(T other) { + return SentryFeedback._(other._id, other._lib, retain: true, release: true); } - void scheduleInRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { - _lib._objc_msgSend_533(_id, _lib._sel_scheduleInRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode._id); + /// Returns a [SentryFeedback] that wraps the given raw object pointer. + static SentryFeedback castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentryFeedback._(other, lib, retain: retain, release: release); } - void removeFromRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { - _lib._objc_msgSend_533(_id, _lib._sel_removeFromRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode._id); + /// Returns whether [obj] is an instance of [SentryFeedback]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryFeedback1); } - NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + SentryId? get eventId { + final _ret = _lib._objc_msgSend_1071(_id, _lib._sel_eventId1); return _ret.address == 0 ? null - : NSObject._(_ret, _lib, retain: true, release: true); + : SentryId._(_ret, _lib, retain: true, release: true); } - set delegate(NSObject? value) { - return _lib._objc_msgSend_387( - _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); + /// \param associatedEventId The ID for an event you’d like associated with the feedback. + /// + /// \param attachments Attachment objects for any files to include with the feedback. + SentryFeedback + initWithMessage_name_email_source_associatedEventId_attachments_( + NSString? message, + NSString? name, + NSString? email, + int source, + SentryId? associatedEventId, + NSArray? attachments) { + final _ret = _lib._objc_msgSend_1072( + _id, + _lib._sel_initWithMessage_name_email_source_associatedEventId_attachments_1, + message?._id ?? ffi.nullptr, + name?._id ?? ffi.nullptr, + email?._id ?? ffi.nullptr, + source, + associatedEventId?._id ?? ffi.nullptr, + attachments?._id ?? ffi.nullptr); + return SentryFeedback._(_ret, _lib, retain: true, release: true); } - bool get includesPeerToPeer { - return _lib._objc_msgSend_12(_id, _lib._sel_includesPeerToPeer1); + @override + SentryFeedback init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentryFeedback._(_ret, _lib, retain: true, release: true); } - set includesPeerToPeer(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setIncludesPeerToPeer_1, value); + static SentryFeedback new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryFeedback1, _lib._sel_new1); + return SentryFeedback._(_ret, _lib, retain: false, 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); + NSDictionary serialize() { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_serialize1); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - 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); + /// Returns all attachments for inclusion in the feedback envelope. + NSArray attachmentsForEnvelope() { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_attachmentsForEnvelope1); + return NSArray._(_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 SentryFeedback allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_SentryFeedback1, _lib._sel_allocWithZone_1, zone); + return SentryFeedback._(_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 SentryFeedback alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryFeedback1, _lib._sel_alloc1); + return SentryFeedback._(_ret, _lib, retain: false, release: true); } - NSArray? get addresses { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_addresses1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_SentryFeedback1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - int get port { - return _lib._objc_msgSend_78(_id, _lib._sel_port1); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_SentryFeedback1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - void publish() { - _lib._objc_msgSend_1(_id, _lib._sel_publish1); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_SentryFeedback1, + _lib._sel_accessInstanceVariablesDirectly1); } - void publishWithOptions_(int options) { - _lib._objc_msgSend_986(_id, _lib._sel_publishWithOptions_1, options); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_SentryFeedback1, _lib._sel_useStoredAccessor1); } - void resolve() { - _lib._objc_msgSend_1(_id, _lib._sel_resolve1); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_SentryFeedback1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - void stop() { - _lib._objc_msgSend_1(_id, _lib._sel_stop1); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_SentryFeedback1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - static NSDictionary dictionaryFromTXTRecordData_( - SentryCocoa _lib, NSData? txtData) { - final _ret = _lib._objc_msgSend_987(_lib._class_NSNetService1, - _lib._sel_dictionaryFromTXTRecordData_1, txtData?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_SentryFeedback1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - static NSData dataFromTXTRecordDictionary_( - SentryCocoa _lib, NSDictionary? txtDictionary) { - final _ret = _lib._objc_msgSend_988( - _lib._class_NSNetService1, - _lib._sel_dataFromTXTRecordDictionary_1, - txtDictionary?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_SentryFeedback1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - void resolveWithTimeout_(double timeout) { - _lib._objc_msgSend_505(_id, _lib._sel_resolveWithTimeout_1, timeout); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryFeedback1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - bool getInputStream_outputStream_( - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - return _lib._objc_msgSend_989(_id, _lib._sel_getInputStream_outputStream_1, - inputStream, outputStream); +class SentryId extends _ObjCWrapper { + SentryId._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [SentryId] that points to the same underlying object as [other]. + static SentryId castFrom(T other) { + return SentryId._(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 [SentryId] that wraps the given raw object pointer. + static SentryId castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentryId._(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 [SentryId]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_SentryId1); } +} - void startMonitoring() { - _lib._objc_msgSend_1(_id, _lib._sel_startMonitoring1); +abstract class SentryFeedbackSource { + static const int SentryFeedbackSourceWidget = 0; + static const int SentryFeedbackSourceCustom = 1; +} + +class SentryFileManager extends NSObject { + SentryFileManager._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [SentryFileManager] that points to the same underlying object as [other]. + static SentryFileManager castFrom(T other) { + return SentryFileManager._(other._id, other._lib, + retain: true, release: true); } - void stopMonitoring() { - _lib._objc_msgSend_1(_id, _lib._sel_stopMonitoring1); + /// Returns a [SentryFileManager] that wraps the given raw object pointer. + static SentryFileManager castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentryFileManager._(other, lib, retain: retain, release: release); } - @override - NSNetService init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSNetService._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [SentryFileManager]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryFileManager1); } - static NSNetService new1(SentryCocoa _lib) { + ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong + get envelopeDeletedCallback { final _ret = - _lib._objc_msgSend_2(_lib._class_NSNetService1, _lib._sel_new1); - return NSNetService._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_1087(_id, _lib._sel_envelopeDeletedCallback1); + return ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong._(_ret, _lib); } - static NSNetService allocWithZone_( - SentryCocoa _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); + set envelopeDeletedCallback( + ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong value) { + return _lib._objc_msgSend_1088( + _id, _lib._sel_setEnvelopeDeletedCallback_1, value._id); } - static NSNetService alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSNetService1, _lib._sel_alloc1); - return NSNetService._(_ret, _lib, retain: false, release: true); + NSString? get basePath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_basePath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSNetService1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + NSString? get sentryPath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sentryPath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSNetService1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + NSString? get breadcrumbsFilePathOne { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_breadcrumbsFilePathOne1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSNetService1, _lib._sel_accessInstanceVariablesDirectly1); + NSString? get breadcrumbsFilePathTwo { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_breadcrumbsFilePathTwo1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get previousBreadcrumbsFilePathOne { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_previousBreadcrumbsFilePathOne1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get previousBreadcrumbsFilePathTwo { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_previousBreadcrumbsFilePathTwo1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + SentryFileManager initWithOptions_dateProvider_dispatchQueueWrapper_error_( + SentryOptions? options, + NSObject? dateProvider, + SentryDispatchQueueWrapper? dispatchQueueWrapper, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1121( + _id, + _lib._sel_initWithOptions_dateProvider_dispatchQueueWrapper_error_1, + options?._id ?? ffi.nullptr, + dateProvider?._id ?? ffi.nullptr, + dispatchQueueWrapper?._id ?? ffi.nullptr, + error); + return SentryFileManager._(_ret, _lib, retain: true, release: true); } - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSNetService1, _lib._sel_useStoredAccessor1); + NSString storeEnvelope_(SentryEnvelope? envelope) { + final _ret = _lib._objc_msgSend_1130( + _id, _lib._sel_storeEnvelope_1, envelope?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSNetService1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + NSString getEnvelopesPath_(NSString? filePath) { + final _ret = _lib._objc_msgSend_64( + _id, _lib._sel_getEnvelopesPath_1, filePath?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSNetService1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + NSArray getAllEnvelopes() { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_getAllEnvelopes1); + return NSArray._(_ret, _lib, retain: true, release: true); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSNetService1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + SentryFileContents getOldestEnvelope() { + final _ret = _lib._objc_msgSend_1131(_id, _lib._sel_getOldestEnvelope1); + return SentryFileContents._(_ret, _lib, retain: true, release: true); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSNetService1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + void deleteOldEnvelopeItems() { + _lib._objc_msgSend_1(_id, _lib._sel_deleteOldEnvelopeItems1); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSNetService1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + void deleteAllEnvelopes() { + _lib._objc_msgSend_1(_id, _lib._sel_deleteAllEnvelopes1); } -} -abstract class NSNetServiceOptions { - static const int NSNetServiceNoAutoRename = 1; - static const int NSNetServiceListenForConnections = 2; -} + NSURL getSentryPathAsURL() { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_getSentryPathAsURL1); + return NSURL._(_ret, _lib, retain: true, release: true); + } -class NSURLSessionWebSocketTask extends NSURLSessionTask { - NSURLSessionWebSocketTask._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + void moveState_toPreviousState_( + NSString? stateFilePath, NSString? previousStateFilePath) { + _lib._objc_msgSend_518( + _id, + _lib._sel_moveState_toPreviousState_1, + stateFilePath?._id ?? ffi.nullptr, + previousStateFilePath?._id ?? ffi.nullptr); + } - /// 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); + void storeCurrentSession_(SentrySession? session) { + _lib._objc_msgSend_1132( + _id, _lib._sel_storeCurrentSession_1, session?._id ?? ffi.nullptr); } - /// Returns a [NSURLSessionWebSocketTask] that wraps the given raw object pointer. - static NSURLSessionWebSocketTask castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLSessionWebSocketTask._(other, lib, - retain: retain, release: release); + SentrySession readCurrentSession() { + final _ret = _lib._objc_msgSend_1133(_id, _lib._sel_readCurrentSession1); + return SentrySession._(_ret, _lib, retain: true, release: true); } - /// 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_NSURLSessionWebSocketTask1); + void deleteCurrentSession() { + _lib._objc_msgSend_1(_id, _lib._sel_deleteCurrentSession1); } - void sendMessage_completionHandler_(NSURLSessionWebSocketMessage? message, - ObjCBlock_ffiVoid_NSError completionHandler) { - _lib._objc_msgSend_992(_id, _lib._sel_sendMessage_completionHandler_1, - message?._id ?? ffi.nullptr, completionHandler._id); + void storeCrashedSession_(SentrySession? session) { + _lib._objc_msgSend_1132( + _id, _lib._sel_storeCrashedSession_1, session?._id ?? ffi.nullptr); } - void receiveMessageWithCompletionHandler_( - ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError - completionHandler) { - _lib._objc_msgSend_993(_id, _lib._sel_receiveMessageWithCompletionHandler_1, - completionHandler._id); + SentrySession readCrashedSession() { + final _ret = _lib._objc_msgSend_1133(_id, _lib._sel_readCrashedSession1); + return SentrySession._(_ret, _lib, retain: true, release: true); } - void sendPingWithPongReceiveHandler_( - ObjCBlock_ffiVoid_NSError pongReceiveHandler) { - _lib._objc_msgSend_994(_id, _lib._sel_sendPingWithPongReceiveHandler_1, - pongReceiveHandler._id); + void deleteCrashedSession() { + _lib._objc_msgSend_1(_id, _lib._sel_deleteCrashedSession1); } - void cancelWithCloseCode_reason_(int closeCode, NSData? reason) { - _lib._objc_msgSend_995(_id, _lib._sel_cancelWithCloseCode_reason_1, - closeCode, reason?._id ?? ffi.nullptr); + void storeAbnormalSession_(SentrySession? session) { + _lib._objc_msgSend_1132( + _id, _lib._sel_storeAbnormalSession_1, session?._id ?? ffi.nullptr); } - int get maximumMessageSize { - return _lib._objc_msgSend_78(_id, _lib._sel_maximumMessageSize1); + SentrySession readAbnormalSession() { + final _ret = _lib._objc_msgSend_1133(_id, _lib._sel_readAbnormalSession1); + return SentrySession._(_ret, _lib, retain: true, release: true); } - set maximumMessageSize(int value) { - return _lib._objc_msgSend_590( - _id, _lib._sel_setMaximumMessageSize_1, value); + void deleteAbnormalSession() { + _lib._objc_msgSend_1(_id, _lib._sel_deleteAbnormalSession1); } - int get closeCode { - return _lib._objc_msgSend_996(_id, _lib._sel_closeCode1); + void storeTimestampLastInForeground_(NSDate? timestamp) { + _lib._objc_msgSend_507(_id, _lib._sel_storeTimestampLastInForeground_1, + timestamp?._id ?? ffi.nullptr); } - 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); + NSDate readTimestampLastInForeground() { + final _ret = + _lib._objc_msgSend_162(_id, _lib._sel_readTimestampLastInForeground1); + return NSDate._(_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); + void deleteTimestampLastInForeground() { + _lib._objc_msgSend_1(_id, _lib._sel_deleteTimestampLastInForeground1); } - static NSURLSessionWebSocketTask new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionWebSocketTask1, _lib._sel_new1); - return NSURLSessionWebSocketTask._(_ret, _lib, - retain: false, release: true); + void storeAppState_(SentryAppState? appState) { + _lib._objc_msgSend_1135( + _id, _lib._sel_storeAppState_1, appState?._id ?? ffi.nullptr); } - static NSURLSessionWebSocketTask allocWithZone_( - SentryCocoa _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); + void moveAppStateToPreviousAppState() { + _lib._objc_msgSend_1(_id, _lib._sel_moveAppStateToPreviousAppState1); } - static NSURLSessionWebSocketTask alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionWebSocketTask1, _lib._sel_alloc1); - return NSURLSessionWebSocketTask._(_ret, _lib, - retain: false, release: true); + SentryAppState readAppState() { + final _ret = _lib._objc_msgSend_1136(_id, _lib._sel_readAppState1); + return SentryAppState._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _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); + SentryAppState readPreviousAppState() { + final _ret = _lib._objc_msgSend_1136(_id, _lib._sel_readPreviousAppState1); + return SentryAppState._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLSessionWebSocketTask1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + void deleteAppState() { + _lib._objc_msgSend_1(_id, _lib._sel_deleteAppState1); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionWebSocketTask1, - _lib._sel_accessInstanceVariablesDirectly1); + void moveBreadcrumbsToPreviousBreadcrumbs() { + _lib._objc_msgSend_1(_id, _lib._sel_moveBreadcrumbsToPreviousBreadcrumbs1); } - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLSessionWebSocketTask1, _lib._sel_useStoredAccessor1); + NSArray readPreviousBreadcrumbs() { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_readPreviousBreadcrumbs1); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionWebSocketTask1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + NSNumber readTimezoneOffset() { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_readTimezoneOffset1); + return NSNumber._(_ret, _lib, retain: true, release: true); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLSessionWebSocketTask1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + void storeTimezoneOffset_(int offset) { + _lib._objc_msgSend_396(_id, _lib._sel_storeTimezoneOffset_1, offset); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSURLSessionWebSocketTask1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + void deleteTimezoneOffset() { + _lib._objc_msgSend_1(_id, _lib._sel_deleteTimezoneOffset1); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionWebSocketTask1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + void storeAppHangEvent_(NSObject event) { + _lib._objc_msgSend_15(_id, _lib._sel_storeAppHangEvent_1, event._id); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionWebSocketTask1, - _lib._sel_classForKeyedUnarchiver1); + NSObject readAppHangEvent() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_readAppHangEvent1); return NSObject._(_ret, _lib, retain: true, release: true); } -} -class NSURLSessionWebSocketMessage extends NSObject { - NSURLSessionWebSocketMessage._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + bool appHangEventExists() { + return _lib._objc_msgSend_12(_id, _lib._sel_appHangEventExists1); + } - /// 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); + void deleteAppHangEvent() { + _lib._objc_msgSend_1(_id, _lib._sel_deleteAppHangEvent1); } - /// Returns a [NSURLSessionWebSocketMessage] that wraps the given raw object pointer. - static NSURLSessionWebSocketMessage castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLSessionWebSocketMessage._(other, lib, - retain: retain, release: release); + static bool createDirectoryAtPath_error_(SentryCocoa _lib, NSString? path, + ffi.Pointer> error) { + return _lib._objc_msgSend_420( + _lib._class_SentryFileManager1, + _lib._sel_createDirectoryAtPath_error_1, + path?._id ?? ffi.nullptr, + error); } - /// 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); + void deleteAllFolders() { + _lib._objc_msgSend_1(_id, _lib._sel_deleteAllFolders1); } - NSURLSessionWebSocketMessage initWithData_(NSData? data) { - final _ret = _lib._objc_msgSend_257( - _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); - return NSURLSessionWebSocketMessage._(_ret, _lib, - retain: true, release: true); + void removeFileAtPath_(NSString? path) { + _lib._objc_msgSend_192( + _id, _lib._sel_removeFileAtPath_1, path?._id ?? ffi.nullptr); } - NSURLSessionWebSocketMessage initWithString_(NSString? string) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, string?._id ?? ffi.nullptr); - return NSURLSessionWebSocketMessage._(_ret, _lib, - retain: true, release: true); + NSArray allFilesInFolder_(NSString? path) { + final _ret = _lib._objc_msgSend_123( + _id, _lib._sel_allFilesInFolder_1, path?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - int get type { - return _lib._objc_msgSend_991(_id, _lib._sel_type1); + bool isDirectory_(NSString? path) { + return _lib._objc_msgSend_59( + _id, _lib._sel_isDirectory_1, path?._id ?? ffi.nullptr); } - 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); + NSData readDataFromPath_error_( + NSString? path, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1137(_id, + _lib._sel_readDataFromPath_error_1, path?._id ?? ffi.nullptr, error); + return 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); + bool writeData_toPath_(NSData? data, NSString? toPath) { + return _lib._objc_msgSend_1138(_id, _lib._sel_writeData_toPath_1, + data?._id ?? ffi.nullptr, toPath?._id ?? ffi.nullptr); } @override - NSURLSessionWebSocketMessage init() { + SentryFileManager init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionWebSocketMessage._(_ret, _lib, - retain: true, release: true); + return SentryFileManager._(_ret, _lib, retain: true, release: true); } - static NSURLSessionWebSocketMessage new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_new1); - return NSURLSessionWebSocketMessage._(_ret, _lib, - retain: false, release: true); + static SentryFileManager new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryFileManager1, _lib._sel_new1); + return SentryFileManager._(_ret, _lib, retain: false, release: true); } - static NSURLSessionWebSocketMessage allocWithZone_( + static SentryFileManager allocWithZone_( SentryCocoa _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); + final _ret = _lib._objc_msgSend_3( + _lib._class_SentryFileManager1, _lib._sel_allocWithZone_1, zone); + return SentryFileManager._(_ret, _lib, retain: false, release: true); } - static NSURLSessionWebSocketMessage alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_alloc1); - return NSURLSessionWebSocketMessage._(_ret, _lib, - retain: false, release: true); + static SentryFileManager alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryFileManager1, _lib._sel_alloc1); + return SentryFileManager._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -67838,7 +74955,7 @@ class NSURLSessionWebSocketMessage extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSURLSessionWebSocketMessage1, + _lib._class_SentryFileManager1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -67847,24 +74964,24 @@ class NSURLSessionWebSocketMessage extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLSessionWebSocketMessage1, + _lib._objc_msgSend_15(_lib._class_SentryFileManager1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionWebSocketMessage1, + return _lib._objc_msgSend_12(_lib._class_SentryFileManager1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionWebSocketMessage1, - _lib._sel_useStoredAccessor1); + return _lib._objc_msgSend_12( + _lib._class_SentryFileManager1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionWebSocketMessage1, + _lib._class_SentryFileManager1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -67873,7 +74990,7 @@ class NSURLSessionWebSocketMessage extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLSessionWebSocketMessage1, + _lib._class_SentryFileManager1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -67881,313 +74998,70 @@ class NSURLSessionWebSocketMessage extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSURLSessionWebSocketMessage1, + _lib._class_SentryFileManager1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSURLSessionWebSocketMessage1, + final _ret = _lib._objc_msgSend_79(_lib._class_SentryFileManager1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionWebSocketMessage1, - _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryFileManager1, _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 _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { +void _ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int 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); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, ffi.UnsignedLong arg1)>>() + .asFunction arg0, int arg1)>()( + arg0, arg1); } -final _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureRegistry = +final _ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureRegistryIndex = +int _ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong_closureRegistryIndex = 0; ffi.Pointer - _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_registerClosure( + _ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong_registerClosure( Function fn) { final id = - ++_ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureRegistry[id] = + ++_ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong_closureRegistryIndex; + _ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { - return (_ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureRegistry[ +void _ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) { + return (_ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong_closureRegistry[ block.ref.target.address] - as void Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); + as void Function(ffi.Pointer, int))(arg0, arg1); } -class ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError +class ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError.fromFunctionPointer( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError.fromFunction( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_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); - } -} - -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 _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_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 _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureRegistry = - {}; -int _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureRegistryIndex = 0; -ffi.Pointer - _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_registerClosure( - Function fn) { - final id = - ++_ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return (_ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureRegistry[ - block.ref.target.address] - as void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2); -} - -class ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError.fromFunctionPointer( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError.fromFunction( - SentryCocoa 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)>( - _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_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); - } -} - -void _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_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 _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureRegistry = - {}; -int _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureRegistryIndex = 0; -ffi.Pointer - _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_registerClosure( - Function 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) { - return (_ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureRegistry[ - block.ref.target.address] - as void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2); -} - -class ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError._( + ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong._( ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError.fromFunctionPointer( + ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>> + ffi.Pointer arg0, ffi.UnsignedLong arg1)>> ptr) : this._( lib._newBlock1( @@ -68195,367 +75069,573 @@ class ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError extends _ObjCBlockBase { ffi.Void Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_fnPtrTrampoline) + ffi.UnsignedLong arg1)>( + _ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError.fromFunction( - SentryCocoa lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) + ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong.fromFunction( + SentryCocoa 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.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureTrampoline) + ffi.UnsignedLong arg1)>( + _ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_registerClosure( + _ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong_registerClosure( fn)), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { + 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.Pointer arg1, - ffi.Pointer arg2)>>() + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.UnsignedLong arg1)>>() .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, int arg1)>()(_id, arg0, arg1); } } -class NSProtocolChecker extends NSProxy { - NSProtocolChecker._(ffi.Pointer id, SentryCocoa lib, +class SentryEnvelopeItem extends NSObject { + SentryEnvelopeItem._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSProtocolChecker] that points to the same underlying object as [other]. - static NSProtocolChecker castFrom(T other) { - return NSProtocolChecker._(other._id, other._lib, + /// Returns a [SentryEnvelopeItem] that points to the same underlying object as [other]. + static SentryEnvelopeItem castFrom(T other) { + return SentryEnvelopeItem._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSProtocolChecker] that wraps the given raw object pointer. - static NSProtocolChecker castFromPointer( + /// Returns a [SentryEnvelopeItem] that wraps the given raw object pointer. + static SentryEnvelopeItem castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSProtocolChecker._(other, lib, retain: retain, release: release); + return SentryEnvelopeItem._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSProtocolChecker]. + /// Returns whether [obj] is an instance of [SentryEnvelopeItem]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSProtocolChecker1); + obj._lib._class_SentryEnvelopeItem1); } - Protocol? get protocol { - final _ret = _lib._objc_msgSend_1008(_id, _lib._sel_protocol1); + /// The envelope payload. + NSData? get data { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_data1); return _ret.address == 0 ? null - : Protocol._(_ret, _lib, retain: true, release: true); + : NSData._(_ret, _lib, retain: true, release: true); } - NSObject? get target { - final _ret = _lib._objc_msgSend_836(_id, _lib._sel_target1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); + SentryEnvelopeItem initWithType_data_contentType_itemCount_(NSString? type, + NSData? data, NSString? contentType, NSNumber? itemCount) { + final _ret = _lib._objc_msgSend_1073( + _id, + _lib._sel_initWithType_data_contentType_itemCount_1, + type?._id ?? ffi.nullptr, + data?._id ?? ffi.nullptr, + contentType?._id ?? ffi.nullptr, + itemCount?._id ?? ffi.nullptr); + return SentryEnvelopeItem._(_ret, _lib, retain: true, release: true); } - static NSProtocolChecker protocolCheckerWithTarget_protocol_( - SentryCocoa _lib, NSObject? anObject, Protocol? aProtocol) { - final _ret = _lib._objc_msgSend_1009( - _lib._class_NSProtocolChecker1, - _lib._sel_protocolCheckerWithTarget_protocol_1, - anObject?._id ?? ffi.nullptr, - aProtocol?._id ?? ffi.nullptr); - return NSProtocolChecker._(_ret, _lib, retain: true, release: true); + SentryEnvelopeItem initWithType_data_addPlatform_( + NSString? type, NSData? data, bool addPlatform) { + final _ret = _lib._objc_msgSend_1074( + _id, + _lib._sel_initWithType_data_addPlatform_1, + type?._id ?? ffi.nullptr, + data?._id ?? ffi.nullptr, + addPlatform); + return SentryEnvelopeItem._(_ret, _lib, retain: true, release: true); } - NSProtocolChecker initWithTarget_protocol_( - NSObject? anObject, Protocol? aProtocol) { - final _ret = _lib._objc_msgSend_1009( + /// Initializes an envelope item with an event. + SentryEnvelopeItem initWithEvent_(NSObject event) { + final _ret = + _lib._objc_msgSend_16(_id, _lib._sel_initWithEvent_1, event._id); + return SentryEnvelopeItem._(_ret, _lib, retain: true, release: true); + } + + /// Initializes an envelope item with a session. + SentryEnvelopeItem initWithSession_(SentrySession? session) { + final _ret = _lib._objc_msgSend_1079( + _id, _lib._sel_initWithSession_1, session?._id ?? ffi.nullptr); + return SentryEnvelopeItem._(_ret, _lib, retain: true, release: true); + } + + /// Initializes an envelope item with an attachment. + /// @param attachment The attachment to create the envelope item from. + /// @param maxAttachmentSize The maximum allowed size for the attachment. + /// @return The envelope item or nil if the attachment is too large or cannot be processed. + SentryEnvelopeItem initWithAttachment_maxAttachmentSize_( + SentryAttachment? attachment, int maxAttachmentSize) { + final _ret = _lib._objc_msgSend_1080( _id, - _lib._sel_initWithTarget_protocol_1, - anObject?._id ?? ffi.nullptr, - aProtocol?._id ?? ffi.nullptr); - return NSProtocolChecker._(_ret, _lib, retain: true, release: true); + _lib._sel_initWithAttachment_maxAttachmentSize_1, + attachment?._id ?? ffi.nullptr, + maxAttachmentSize); + return SentryEnvelopeItem._(_ret, _lib, retain: true, release: true); } - static NSObject alloc(SentryCocoa _lib) { + /// Initializes an envelope item with a client report. + SentryEnvelopeItem initWithClientReport_(SentryClientReport? clientReport) { + final _ret = _lib._objc_msgSend_1082(_id, _lib._sel_initWithClientReport_1, + clientReport?._id ?? ffi.nullptr); + return SentryEnvelopeItem._(_ret, _lib, retain: true, release: true); + } + + /// Initializes an envelope item with replay event and recording data. + SentryEnvelopeItem initWithReplayEvent_replayRecording_video_( + SentryReplayEvent? replayEvent, + SentryReplayRecording? replayRecording, + NSURL? video) { + final _ret = _lib._objc_msgSend_1086( + _id, + _lib._sel_initWithReplayEvent_replayRecording_video_1, + replayEvent?._id ?? ffi.nullptr, + replayRecording?._id ?? ffi.nullptr, + video?._id ?? ffi.nullptr); + return SentryEnvelopeItem._(_ret, _lib, retain: true, release: true); + } + + NSString type() { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_type1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + @override + SentryEnvelopeItem init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentryEnvelopeItem._(_ret, _lib, retain: true, release: true); + } + + static SentryEnvelopeItem new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSProtocolChecker1, _lib._sel_alloc1); - return NSObject._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_SentryEnvelopeItem1, _lib._sel_new1); + return SentryEnvelopeItem._(_ret, _lib, retain: false, release: true); } - static bool respondsToSelector_( - SentryCocoa _lib, ffi.Pointer aSelector) { - return _lib._objc_msgSend_4(_lib._class_NSProtocolChecker1, - _lib._sel_respondsToSelector_1, aSelector); + static SentryEnvelopeItem allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_SentryEnvelopeItem1, _lib._sel_allocWithZone_1, zone); + return SentryEnvelopeItem._(_ret, _lib, retain: false, release: true); + } + + static SentryEnvelopeItem alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryEnvelopeItem1, _lib._sel_alloc1); + return SentryEnvelopeItem._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_SentryEnvelopeItem1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_SentryEnvelopeItem1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_SentryEnvelopeItem1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_SentryEnvelopeItem1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_SentryEnvelopeItem1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_SentryEnvelopeItem1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_SentryEnvelopeItem1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_SentryEnvelopeItem1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryEnvelopeItem1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSTask extends NSObject { - NSTask._(ffi.Pointer id, SentryCocoa lib, +/// The SDK uses SentrySession to inform Sentry about release and project associated project health. +class SentrySession extends NSObject { + SentrySession._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSTask] that points to the same underlying object as [other]. - static NSTask castFrom(T other) { - return NSTask._(other._id, other._lib, retain: true, release: true); + /// Returns a [SentrySession] that points to the same underlying object as [other]. + static SentrySession castFrom(T other) { + return SentrySession._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSTask] that wraps the given raw object pointer. - static NSTask castFromPointer(SentryCocoa lib, ffi.Pointer other, + /// Returns a [SentrySession] that wraps the given raw object pointer. + static SentrySession castFromPointer( + SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSTask._(other, lib, retain: retain, release: release); + return SentrySession._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSTask]. + /// Returns whether [obj] is an instance of [SentrySession]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSTask1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_SentrySession1); } @override - NSTask init() { + SentrySession init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSTask._(_ret, _lib, retain: true, release: true); + return SentrySession._(_ret, _lib, retain: true, release: true); } - 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); + static SentrySession new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentrySession1, _lib._sel_new1); + return SentrySession._(_ret, _lib, retain: false, release: true); } - set executableURL(NSURL? value) { - return _lib._objc_msgSend_621( - _id, _lib._sel_setExecutableURL_1, value?._id ?? ffi.nullptr); + /// Designated initializer. + SentrySession initWithReleaseName_distinctId_( + NSString? releaseName, NSString? distinctId) { + final _ret = _lib._objc_msgSend_165( + _id, + _lib._sel_initWithReleaseName_distinctId_1, + releaseName?._id ?? ffi.nullptr, + distinctId?._id ?? ffi.nullptr); + return SentrySession._(_ret, _lib, retain: true, release: true); } - NSArray? get arguments { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_arguments1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + /// Initializes @c SentrySession from a JSON object. + /// @param jsonObject The @c jsonObject containing the session. + /// @return The @c SentrySession or @c nil if @c jsonObject contains an error. + SentrySession initWithJSONObject_(NSDictionary? jsonObject) { + final _ret = _lib._objc_msgSend_149( + _id, _lib._sel_initWithJSONObject_1, jsonObject?._id ?? ffi.nullptr); + return SentrySession._(_ret, _lib, retain: true, release: true); } - set arguments(NSArray? value) { - return _lib._objc_msgSend_735( - _id, _lib._sel_setArguments_1, value?._id ?? ffi.nullptr); + void endSessionExitedWithTimestamp_(NSDate? timestamp) { + _lib._objc_msgSend_507(_id, _lib._sel_endSessionExitedWithTimestamp_1, + timestamp?._id ?? ffi.nullptr); } - NSDictionary? get environment { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_environment1); + void endSessionCrashedWithTimestamp_(NSDate? timestamp) { + _lib._objc_msgSend_507(_id, _lib._sel_endSessionCrashedWithTimestamp_1, + timestamp?._id ?? ffi.nullptr); + } + + void endSessionAbnormalWithTimestamp_(NSDate? timestamp) { + _lib._objc_msgSend_507(_id, _lib._sel_endSessionAbnormalWithTimestamp_1, + timestamp?._id ?? ffi.nullptr); + } + + void incrementErrors() { + _lib._objc_msgSend_1(_id, _lib._sel_incrementErrors1); + } + + void setFlagInit() { + _lib._objc_msgSend_1(_id, _lib._sel_setFlagInit1); + } + + NSDictionary serialize() { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_serialize1); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSObject copyWithZone_(ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3(_id, _lib._sel_copyWithZone_1, zone); + return NSObject._(_ret, _lib, retain: false, release: true); + } + + NSUUID? get sessionId { + final _ret = _lib._objc_msgSend_1078(_id, _lib._sel_sessionId1); return _ret.address == 0 ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + : NSUUID._(_ret, _lib, retain: true, release: true); } - set environment(NSDictionary? value) { - return _lib._objc_msgSend_171( - _id, _lib._sel_setEnvironment_1, value?._id ?? ffi.nullptr); + NSDate? get started { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_started1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - NSURL? get currentDirectoryURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_currentDirectoryURL1); + int get errors { + return _lib._objc_msgSend_10(_id, _lib._sel_errors1); + } + + set errors(int value) { + return _lib._objc_msgSend_486(_id, _lib._sel_setErrors_1, value); + } + + int get sequence { + return _lib._objc_msgSend_10(_id, _lib._sel_sequence1); + } + + NSString? get distinctId { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_distinctId1); return _ret.address == 0 ? null - : NSURL._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - set currentDirectoryURL(NSURL? value) { - return _lib._objc_msgSend_621( - _id, _lib._sel_setCurrentDirectoryURL_1, value?._id ?? ffi.nullptr); + NSNumber? get flagInit { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_flagInit1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } - NSData? get launchRequirementData { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_launchRequirementData1); + NSDate? get timestamp { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_timestamp1); return _ret.address == 0 ? null - : NSData._(_ret, _lib, retain: true, release: true); + : NSDate._(_ret, _lib, retain: true, release: true); } - set launchRequirementData(NSData? value) { - return _lib._objc_msgSend_939( - _id, _lib._sel_setLaunchRequirementData_1, value?._id ?? ffi.nullptr); + NSNumber? get duration { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_duration1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } - NSObject get standardInput { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_standardInput1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSString? get releaseName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_releaseName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - set standardInput(NSObject value) { - return _lib._objc_msgSend_387(_id, _lib._sel_setStandardInput_1, value._id); + NSString? get environment { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_environment1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSObject get standardOutput { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_standardOutput1); - return NSObject._(_ret, _lib, retain: true, release: true); + set environment(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setEnvironment_1, value?._id ?? ffi.nullptr); } - set standardOutput(NSObject value) { - return _lib._objc_msgSend_387( - _id, _lib._sel_setStandardOutput_1, value._id); + NSString? get abnormalMechanism { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_abnormalMechanism1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSObject get standardError { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_standardError1); - return NSObject._(_ret, _lib, retain: true, release: true); + set abnormalMechanism(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setAbnormalMechanism_1, value?._id ?? ffi.nullptr); } - set standardError(NSObject value) { - return _lib._objc_msgSend_387(_id, _lib._sel_setStandardError_1, value._id); + static SentrySession allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_SentrySession1, _lib._sel_allocWithZone_1, zone); + return SentrySession._(_ret, _lib, retain: false, release: true); } - bool launchAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_236(_id, _lib._sel_launchAndReturnError_1, error); + static SentrySession alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentrySession1, _lib._sel_alloc1); + return SentrySession._(_ret, _lib, retain: false, release: true); } - void interrupt() { - _lib._objc_msgSend_1(_id, _lib._sel_interrupt1); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_SentrySession1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - void terminate() { - _lib._objc_msgSend_1(_id, _lib._sel_terminate1); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_SentrySession1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - bool suspend() { - return _lib._objc_msgSend_12(_id, _lib._sel_suspend1); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_SentrySession1, _lib._sel_accessInstanceVariablesDirectly1); } - bool resume() { - return _lib._objc_msgSend_12(_id, _lib._sel_resume1); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_SentrySession1, _lib._sel_useStoredAccessor1); } - int get processIdentifier { - return _lib._objc_msgSend_219(_id, _lib._sel_processIdentifier1); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_SentrySession1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - bool get running { - return _lib._objc_msgSend_12(_id, _lib._sel_isRunning1); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_SentrySession1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - int get terminationStatus { - return _lib._objc_msgSend_219(_id, _lib._sel_terminationStatus1); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_SentrySession1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - int get terminationReason { - return _lib._objc_msgSend_1010(_id, _lib._sel_terminationReason1); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_SentrySession1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - ObjCBlock_ffiVoid_NSTask get terminationHandler { - final _ret = _lib._objc_msgSend_1011(_id, _lib._sel_terminationHandler1); - return ObjCBlock_ffiVoid_NSTask._(_ret, _lib); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentrySession1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - set terminationHandler(ObjCBlock_ffiVoid_NSTask value) { - return _lib._objc_msgSend_1012( - _id, _lib._sel_setTerminationHandler_1, value._id); - } +class NSUUID extends NSObject { + NSUUID._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - int get qualityOfService { - return _lib._objc_msgSend_507(_id, _lib._sel_qualityOfService1); + /// 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); } - set qualityOfService(int value) { - return _lib._objc_msgSend_508(_id, _lib._sel_setQualityOfService_1, value); + /// Returns a [NSUUID] that wraps the given raw object pointer. + static NSUUID castFromPointer(SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSUUID._(other, lib, retain: retain, release: release); } - static NSTask - launchedTaskWithExecutableURL_arguments_error_terminationHandler_( - SentryCocoa _lib, - NSURL? url, - NSArray? arguments, - ffi.Pointer> error, - ObjCBlock_ffiVoid_NSTask terminationHandler) { - final _ret = _lib._objc_msgSend_1013( - _lib._class_NSTask1, - _lib._sel_launchedTaskWithExecutableURL_arguments_error_terminationHandler_1, - url?._id ?? ffi.nullptr, - arguments?._id ?? ffi.nullptr, - error, - terminationHandler._id); - return NSTask._(_ret, _lib, retain: true, release: true); + /// 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_NSUUID1); } - void waitUntilExit() { - _lib._objc_msgSend_1(_id, _lib._sel_waitUntilExit1); + static NSUUID UUID(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSUUID1, _lib._sel_UUID1); + return NSUUID._(_ret, _lib, retain: true, release: true); } - NSString? get launchPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_launchPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + @override + NSUUID init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSUUID._(_ret, _lib, retain: true, release: true); } - set launchPath(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setLaunchPath_1, value?._id ?? ffi.nullptr); + NSUUID initWithUUIDString_(NSString? string) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithUUIDString_1, string?._id ?? ffi.nullptr); + return NSUUID._(_ret, _lib, retain: true, release: true); } - NSString? get currentDirectoryPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currentDirectoryPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSUUID initWithUUIDBytes_(ffi.Pointer bytes) { + final _ret = + _lib._objc_msgSend_1075(_id, _lib._sel_initWithUUIDBytes_1, bytes); + return NSUUID._(_ret, _lib, retain: true, release: true); } - set currentDirectoryPath(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setCurrentDirectoryPath_1, value?._id ?? ffi.nullptr); + void getUUIDBytes_(ffi.Pointer uuid) { + _lib._objc_msgSend_1076(_id, _lib._sel_getUUIDBytes_1, uuid); } - void launch() { - _lib._objc_msgSend_1(_id, _lib._sel_launch1); + int compare_(NSUUID? otherUUID) { + return _lib._objc_msgSend_1077( + _id, _lib._sel_compare_1, otherUUID?._id ?? ffi.nullptr); } - static NSTask launchedTaskWithLaunchPath_arguments_( - SentryCocoa _lib, NSString? path, NSArray? arguments) { - final _ret = _lib._objc_msgSend_1014( - _lib._class_NSTask1, - _lib._sel_launchedTaskWithLaunchPath_arguments_1, - path?._id ?? ffi.nullptr, - arguments?._id ?? ffi.nullptr); - return NSTask._(_ret, _lib, retain: true, release: true); + NSString? get UUIDString { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_UUIDString1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSTask new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSTask1, _lib._sel_new1); - return NSTask._(_ret, _lib, retain: false, release: true); + static NSUUID new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSUUID1, _lib._sel_new1); + return NSUUID._(_ret, _lib, retain: false, release: true); } - static NSTask allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static NSUUID allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSTask1, _lib._sel_allocWithZone_1, zone); - return NSTask._(_ret, _lib, retain: false, release: true); + _lib._class_NSUUID1, _lib._sel_allocWithZone_1, zone); + return NSUUID._(_ret, _lib, retain: false, release: true); } - static NSTask alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSTask1, _lib._sel_alloc1); - return NSTask._(_ret, _lib, retain: false, release: true); + static NSUUID alloc(SentryCocoa _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_( @@ -68564,7 +75644,7 @@ class NSTask extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSTask1, + _lib._class_NSUUID1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -68573,24 +75653,24 @@ class NSTask extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSTask1, + _lib._objc_msgSend_15(_lib._class_NSUUID1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSTask1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSUUID1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSTask1, _lib._sel_useStoredAccessor1); + _lib._class_NSUUID1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSTask1, + _lib._class_NSUUID1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -68599,7 +75679,7 @@ class NSTask extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSTask1, + _lib._class_NSUUID1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -68607,7 +75687,7 @@ class NSTask extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSTask1, + _lib._class_NSUUID1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -68615,446 +75695,466 @@ class NSTask extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSTask1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSUUID1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSTask1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSUUID1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSTaskTerminationReason { - static const int NSTaskTerminationReasonExit = 1; - static const int NSTaskTerminationReasonUncaughtSignal = 2; -} - -void _ObjCBlock_ffiVoid_NSTask_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock_ffiVoid_NSTask_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSTask_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSTask_registerClosure(Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSTask_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSTask_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock_ffiVoid_NSTask_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return (_ObjCBlock_ffiVoid_NSTask_closureRegistry[block.ref.target.address] - as void Function(ffi.Pointer))(arg0); -} - -class ObjCBlock_ffiVoid_NSTask extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSTask._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSTask.fromFunctionPointer( - SentryCocoa lib, - ffi.Pointer< - ffi - .NativeFunction arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSTask_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSTask.fromFunction( - SentryCocoa lib, void Function(ffi.Pointer arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSTask_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_NSTask_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); +class SentryAttachment extends _ObjCWrapper { + SentryAttachment._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [SentryAttachment] that points to the same underlying object as [other]. + static SentryAttachment castFrom(T other) { + return SentryAttachment._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [SentryAttachment] that wraps the given raw object pointer. + static SentryAttachment castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentryAttachment._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [SentryAttachment]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryAttachment1); } } -class NSXMLElement extends NSXMLNode { - NSXMLElement._(ffi.Pointer id, SentryCocoa lib, +class SentryClientReport extends NSObject { + SentryClientReport._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSXMLElement] that points to the same underlying object as [other]. - static NSXMLElement castFrom(T other) { - return NSXMLElement._(other._id, other._lib, retain: true, release: true); + /// Returns a [SentryClientReport] that points to the same underlying object as [other]. + static SentryClientReport castFrom(T other) { + return SentryClientReport._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSXMLElement] that wraps the given raw object pointer. - static NSXMLElement castFromPointer( + /// Returns a [SentryClientReport] that wraps the given raw object pointer. + static SentryClientReport castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSXMLElement._(other, lib, retain: retain, release: release); + return SentryClientReport._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSXMLElement]. + /// Returns whether [obj] is an instance of [SentryClientReport]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLElement1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryClientReport1); } - NSXMLElement initWithName_(NSString? name) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithName_1, name?._id ?? ffi.nullptr); - return NSXMLElement._(_ret, _lib, retain: true, release: true); + SentryClientReport initWithDiscardedEvents_dateProvider_( + NSArray? discardedEvents, NSObject? dateProvider) { + final _ret = _lib._objc_msgSend_1081( + _id, + _lib._sel_initWithDiscardedEvents_dateProvider_1, + discardedEvents?._id ?? ffi.nullptr, + dateProvider?._id ?? ffi.nullptr); + return SentryClientReport._(_ret, _lib, retain: true, release: true); } - NSXMLElement initWithName_URI_(NSString? name, NSString? URI) { - final _ret = _lib._objc_msgSend_165(_id, _lib._sel_initWithName_URI_1, - name?._id ?? ffi.nullptr, URI?._id ?? ffi.nullptr); - return NSXMLElement._(_ret, _lib, retain: true, release: true); + NSDictionary serialize() { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_serialize1); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - NSXMLElement initWithName_stringValue_(NSString? name, NSString? string) { - final _ret = _lib._objc_msgSend_165( - _id, - _lib._sel_initWithName_stringValue_1, - name?._id ?? ffi.nullptr, - string?._id ?? ffi.nullptr); - return NSXMLElement._(_ret, _lib, retain: true, release: true); + @override + SentryClientReport init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentryClientReport._(_ret, _lib, retain: true, release: true); } - NSXMLElement initWithXMLString_error_( - NSString? string, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_279(_id, - _lib._sel_initWithXMLString_error_1, string?._id ?? ffi.nullptr, error); - return NSXMLElement._(_ret, _lib, retain: true, release: true); + static SentryClientReport new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryClientReport1, _lib._sel_new1); + return SentryClientReport._(_ret, _lib, retain: false, release: true); } - @override - NSXMLElement initWithKind_options_(int kind, int options) { - final _ret = _lib._objc_msgSend_1016( - _id, _lib._sel_initWithKind_options_1, kind, options); - return NSXMLElement._(_ret, _lib, retain: true, release: true); + static SentryClientReport allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_SentryClientReport1, _lib._sel_allocWithZone_1, zone); + return SentryClientReport._(_ret, _lib, retain: false, release: true); } - NSArray elementsForName_(NSString? name) { - final _ret = _lib._objc_msgSend_123( - _id, _lib._sel_elementsForName_1, name?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + static SentryClientReport alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryClientReport1, _lib._sel_alloc1); + return SentryClientReport._(_ret, _lib, retain: false, release: true); } - NSArray elementsForLocalName_URI_(NSString? localName, NSString? URI) { - final _ret = _lib._objc_msgSend_652( - _id, - _lib._sel_elementsForLocalName_URI_1, - localName?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_SentryClientReport1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - void addAttribute_(NSXMLNode? attribute) { - _lib._objc_msgSend_1028( - _id, _lib._sel_addAttribute_1, attribute?._id ?? ffi.nullptr); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_SentryClientReport1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - void removeAttributeForName_(NSString? name) { - _lib._objc_msgSend_192( - _id, _lib._sel_removeAttributeForName_1, name?._id ?? ffi.nullptr); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_SentryClientReport1, + _lib._sel_accessInstanceVariablesDirectly1); } - NSArray? get attributes { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_attributes1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_SentryClientReport1, _lib._sel_useStoredAccessor1); } - set attributes(NSArray? value) { - return _lib._objc_msgSend_735( - _id, _lib._sel_setAttributes_1, value?._id ?? ffi.nullptr); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_SentryClientReport1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - void setAttributesWithDictionary_(NSDictionary? attributes) { - _lib._objc_msgSend_476(_id, _lib._sel_setAttributesWithDictionary_1, - attributes?._id ?? ffi.nullptr); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_SentryClientReport1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - NSXMLNode attributeForName_(NSString? name) { - final _ret = _lib._objc_msgSend_1032( - _id, _lib._sel_attributeForName_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_SentryClientReport1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - NSXMLNode attributeForLocalName_URI_(NSString? localName, NSString? URI) { - final _ret = _lib._objc_msgSend_1049( - _id, - _lib._sel_attributeForLocalName_URI_1, - localName?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_SentryClientReport1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - void addNamespace_(NSXMLNode? aNamespace) { - _lib._objc_msgSend_1028( - _id, _lib._sel_addNamespace_1, aNamespace?._id ?? ffi.nullptr); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryClientReport1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - void removeNamespaceForPrefix_(NSString? name) { - _lib._objc_msgSend_192( - _id, _lib._sel_removeNamespaceForPrefix_1, name?._id ?? ffi.nullptr); +class SentryReplayEvent extends _ObjCWrapper { + SentryReplayEvent._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [SentryReplayEvent] that points to the same underlying object as [other]. + static SentryReplayEvent castFrom(T other) { + return SentryReplayEvent._(other._id, other._lib, + retain: true, release: true); } - NSArray? get namespaces { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_namespaces1); + /// Returns a [SentryReplayEvent] that wraps the given raw object pointer. + static SentryReplayEvent castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentryReplayEvent._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [SentryReplayEvent]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryReplayEvent1); + } + + NSDate? get replayStartTimestamp { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_replayStartTimestamp1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSDate._(_ret, _lib, retain: true, release: true); } - set namespaces(NSArray? value) { - return _lib._objc_msgSend_735( - _id, _lib._sel_setNamespaces_1, value?._id ?? ffi.nullptr); + int get replayType { + return _lib._objc_msgSend_1083(_id, _lib._sel_replayType1); } - NSXMLNode namespaceForPrefix_(NSString? name) { - final _ret = _lib._objc_msgSend_1032( - _id, _lib._sel_namespaceForPrefix_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + /// Number of the segment in the replay. + /// This is an incremental number + int get segmentId { + return _lib._objc_msgSend_78(_id, _lib._sel_segmentId1); } - NSXMLNode resolveNamespaceForName_(NSString? name) { - final _ret = _lib._objc_msgSend_1032( - _id, _lib._sel_resolveNamespaceForName_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + /// This will be used to store the name of the screens + /// that appear during the duration of the replay segment. + NSArray? get urls { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_urls1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSString resolvePrefixForNamespaceURI_(NSString? namespaceURI) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_resolvePrefixForNamespaceURI_1, - namespaceURI?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + /// This will be used to store the name of the screens + /// that appear during the duration of the replay segment. + set urls(NSArray? value) { + return _lib._objc_msgSend_739( + _id, _lib._sel_setUrls_1, value?._id ?? ffi.nullptr); } - void insertChild_atIndex_(NSXMLNode? child, int index) { - _lib._objc_msgSend_1026( - _id, _lib._sel_insertChild_atIndex_1, child?._id ?? ffi.nullptr, index); + SentryReplayEvent initWithEventId_replayStartTimestamp_replayType_segmentId_( + SentryId? eventId, + NSDate? replayStartTimestamp, + int replayType, + int segmentId) { + final _ret = _lib._objc_msgSend_1084( + _id, + _lib._sel_initWithEventId_replayStartTimestamp_replayType_segmentId_1, + eventId?._id ?? ffi.nullptr, + replayStartTimestamp?._id ?? ffi.nullptr, + replayType, + segmentId); + return SentryReplayEvent._(_ret, _lib, retain: true, release: true); } - void insertChildren_atIndex_(NSArray? children, int index) { - _lib._objc_msgSend_1027(_id, _lib._sel_insertChildren_atIndex_1, - children?._id ?? ffi.nullptr, index); + SentryReplayEvent init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentryReplayEvent._(_ret, _lib, retain: true, release: true); } - void removeChildAtIndex_(int index) { - _lib._objc_msgSend_439(_id, _lib._sel_removeChildAtIndex_1, index); + static SentryReplayEvent new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryReplayEvent1, _lib._sel_new1); + return SentryReplayEvent._(_ret, _lib, retain: false, release: true); } - void setChildren_(NSArray? children) { - _lib._objc_msgSend_441( - _id, _lib._sel_setChildren_1, children?._id ?? ffi.nullptr); + SentryReplayEvent initWithLevel_(NSObject level) { + final _ret = + _lib._objc_msgSend_16(_id, _lib._sel_initWithLevel_1, level._id); + return SentryReplayEvent._(_ret, _lib, retain: true, release: true); } +} - void addChild_(NSXMLNode? child) { - _lib._objc_msgSend_1028( - _id, _lib._sel_addChild_1, child?._id ?? ffi.nullptr); +abstract class SentryReplayType { + static const int SentryReplayTypeSession = 0; + static const int SentryReplayTypeBuffer = 1; +} + +class SentryReplayRecording extends NSObject { + SentryReplayRecording._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [SentryReplayRecording] that points to the same underlying object as [other]. + static SentryReplayRecording castFrom(T other) { + return SentryReplayRecording._(other._id, other._lib, + retain: true, release: true); } - void replaceChildAtIndex_withNode_(int index, NSXMLNode? node) { - _lib._objc_msgSend_1029(_id, _lib._sel_replaceChildAtIndex_withNode_1, - index, node?._id ?? ffi.nullptr); + /// Returns a [SentryReplayRecording] that wraps the given raw object pointer. + static SentryReplayRecording castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentryReplayRecording._(other, lib, + retain: retain, release: release); } - void normalizeAdjacentTextNodesPreservingCDATA_(bool preserve) { - _lib._objc_msgSend_794( - _id, _lib._sel_normalizeAdjacentTextNodesPreservingCDATA_1, preserve); + /// Returns whether [obj] is an instance of [SentryReplayRecording]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryReplayRecording1); } - void setAttributesAsDictionary_(NSDictionary? attributes) { - _lib._objc_msgSend_476(_id, _lib._sel_setAttributesAsDictionary_1, - attributes?._id ?? ffi.nullptr); + SentryReplayRecording initWithSegmentId_video_extraEvents_( + int segmentId, SentryVideoInfo? video, NSArray? extraEvents) { + final _ret = _lib._objc_msgSend_1085( + _id, + _lib._sel_initWithSegmentId_video_extraEvents_1, + segmentId, + video?._id ?? ffi.nullptr, + extraEvents?._id ?? ffi.nullptr); + return SentryReplayRecording._(_ret, _lib, retain: true, release: true); } @override - NSXMLElement init() { + SentryReplayRecording init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSXMLElement._(_ret, _lib, retain: true, release: true); + return SentryReplayRecording._(_ret, _lib, retain: true, release: true); } - @override - NSXMLElement initWithKind_(int kind) { - final _ret = _lib._objc_msgSend_1015(_id, _lib._sel_initWithKind_1, kind); - return NSXMLElement._(_ret, _lib, retain: true, release: true); + static SentryReplayRecording new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryReplayRecording1, _lib._sel_new1); + return SentryReplayRecording._(_ret, _lib, retain: false, release: true); } - static NSObject document(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLElement1, _lib._sel_document1); - return NSObject._(_ret, _lib, retain: true, release: true); + static SentryReplayRecording allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_SentryReplayRecording1, _lib._sel_allocWithZone_1, zone); + return SentryReplayRecording._(_ret, _lib, retain: false, release: true); } - static NSObject documentWithRootElement_( - SentryCocoa _lib, NSXMLElement? element) { - final _ret = _lib._objc_msgSend_1017(_lib._class_NSXMLElement1, - _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static SentryReplayRecording alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryReplayRecording1, _lib._sel_alloc1); + return SentryReplayRecording._(_ret, _lib, retain: false, release: true); } - static NSObject elementWithName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLElement1, - _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_SentryReplayRecording1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - static NSObject elementWithName_URI_( - SentryCocoa _lib, NSString? name, NSString? URI) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLElement1, - _lib._sel_elementWithName_URI_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_SentryReplayRecording1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - static NSObject elementWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? string) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLElement1, - _lib._sel_elementWithName_stringValue_1, - name?._id ?? ffi.nullptr, - string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_SentryReplayRecording1, + _lib._sel_accessInstanceVariablesDirectly1); } - static NSObject elementWithName_children_attributes_(SentryCocoa _lib, - NSString? name, NSArray? children, NSArray? attributes) { - final _ret = _lib._objc_msgSend_1018( - _lib._class_NSXMLElement1, - _lib._sel_elementWithName_children_attributes_1, - name?._id ?? ffi.nullptr, - children?._id ?? ffi.nullptr, - attributes?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_SentryReplayRecording1, _lib._sel_useStoredAccessor1); } - static NSObject attributeWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLElement1, - _lib._sel_attributeWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_SentryReplayRecording1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - static NSObject attributeWithName_URI_stringValue_( - SentryCocoa _lib, NSString? name, NSString? URI, NSString? stringValue) { - final _ret = _lib._objc_msgSend_26( - _lib._class_NSXMLElement1, - _lib._sel_attributeWithName_URI_stringValue_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_SentryReplayRecording1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - static NSObject namespaceWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLElement1, - _lib._sel_namespaceWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_SentryReplayRecording1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - static NSObject processingInstructionWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLElement1, - _lib._sel_processingInstructionWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_SentryReplayRecording1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSObject commentWithStringValue_( - SentryCocoa _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLElement1, - _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryReplayRecording1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } +} - static NSObject textWithStringValue_( - SentryCocoa _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLElement1, - _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); +class SentryVideoInfo extends NSObject { + SentryVideoInfo._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [SentryVideoInfo] that points to the same underlying object as [other]. + static SentryVideoInfo castFrom(T other) { + return SentryVideoInfo._(other._id, other._lib, + retain: true, release: true); } - static NSObject DTDNodeWithXMLString_(SentryCocoa _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLElement1, - _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Returns a [SentryVideoInfo] that wraps the given raw object pointer. + static SentryVideoInfo castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentryVideoInfo._(other, lib, retain: retain, release: release); } - static NSString localNameForName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLElement1, - _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [SentryVideoInfo]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryVideoInfo1); } - static NSString prefixForName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLElement1, - _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSURL? get path { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_path1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - static NSXMLNode predefinedNamespaceForPrefix_( - SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_1032(_lib._class_NSXMLElement1, - _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + NSDate? get start { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_start1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - static NSXMLElement new1(SentryCocoa _lib) { + NSDate? get end { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_end1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); + } + + @override + SentryVideoInfo init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentryVideoInfo._(_ret, _lib, retain: true, release: true); + } + + static SentryVideoInfo new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLElement1, _lib._sel_new1); - return NSXMLElement._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_SentryVideoInfo1, _lib._sel_new1); + return SentryVideoInfo._(_ret, _lib, retain: false, release: true); } - static NSXMLElement allocWithZone_( + static SentryVideoInfo allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSXMLElement1, _lib._sel_allocWithZone_1, zone); - return NSXMLElement._(_ret, _lib, retain: false, release: true); + _lib._class_SentryVideoInfo1, _lib._sel_allocWithZone_1, zone); + return SentryVideoInfo._(_ret, _lib, retain: false, release: true); } - static NSXMLElement alloc(SentryCocoa _lib) { + static SentryVideoInfo alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLElement1, _lib._sel_alloc1); - return NSXMLElement._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_SentryVideoInfo1, _lib._sel_alloc1); + return SentryVideoInfo._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -69063,7 +76163,7 @@ class NSXMLElement extends NSXMLNode { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSXMLElement1, + _lib._class_SentryVideoInfo1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -69072,24 +76172,24 @@ class NSXMLElement extends NSXMLNode { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSXMLElement1, + _lib._objc_msgSend_15(_lib._class_SentryVideoInfo1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSXMLElement1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_SentryVideoInfo1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSXMLElement1, _lib._sel_useStoredAccessor1); + _lib._class_SentryVideoInfo1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLElement1, + _lib._class_SentryVideoInfo1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -69098,7 +76198,7 @@ class NSXMLElement extends NSXMLNode { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSXMLElement1, + _lib._class_SentryVideoInfo1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -69106,911 +76206,1520 @@ class NSXMLElement extends NSXMLNode { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSXMLElement1, + _lib._class_SentryVideoInfo1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSXMLElement1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_SentryVideoInfo1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSXMLElement1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_SentryVideoInfo1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSXMLNode extends NSObject { - NSXMLNode._(ffi.Pointer id, SentryCocoa lib, +/// Configuration options for the Sentry SDK. +class SentryOptions extends NSObject { + SentryOptions._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSXMLNode] that points to the same underlying object as [other]. - static NSXMLNode castFrom(T other) { - return NSXMLNode._(other._id, other._lib, retain: true, release: true); + /// Returns a [SentryOptions] that points to the same underlying object as [other]. + static SentryOptions castFrom(T other) { + return SentryOptions._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSXMLNode] that wraps the given raw object pointer. - static NSXMLNode castFromPointer( + /// Returns a [SentryOptions] that wraps the given raw object pointer. + static SentryOptions castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSXMLNode._(other, lib, retain: retain, release: release); + return SentryOptions._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSXMLNode]. + /// Returns whether [obj] is an instance of [SentryOptions]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLNode1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_SentryOptions1); } @override - NSXMLNode init() { + SentryOptions init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSXMLNode._(_ret, _lib, retain: true, release: true); - } - - NSXMLNode initWithKind_(int kind) { - final _ret = _lib._objc_msgSend_1015(_id, _lib._sel_initWithKind_1, kind); - return NSXMLNode._(_ret, _lib, retain: true, release: true); - } - - NSXMLNode initWithKind_options_(int kind, int options) { - final _ret = _lib._objc_msgSend_1016( - _id, _lib._sel_initWithKind_options_1, kind, options); - return NSXMLNode._(_ret, _lib, retain: true, release: true); - } - - static NSObject document(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLNode1, _lib._sel_document1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject documentWithRootElement_( - SentryCocoa _lib, NSXMLElement? element) { - final _ret = _lib._objc_msgSend_1017(_lib._class_NSXMLNode1, - _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject elementWithName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, - _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject elementWithName_URI_( - SentryCocoa _lib, NSString? name, NSString? URI) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLNode1, - _lib._sel_elementWithName_URI_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject elementWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? string) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLNode1, - _lib._sel_elementWithName_stringValue_1, - name?._id ?? ffi.nullptr, - string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject elementWithName_children_attributes_(SentryCocoa _lib, - NSString? name, NSArray? children, NSArray? attributes) { - final _ret = _lib._objc_msgSend_1018( - _lib._class_NSXMLNode1, - _lib._sel_elementWithName_children_attributes_1, - name?._id ?? ffi.nullptr, - children?._id ?? ffi.nullptr, - attributes?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject attributeWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLNode1, - _lib._sel_attributeWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject attributeWithName_URI_stringValue_( - SentryCocoa _lib, NSString? name, NSString? URI, NSString? stringValue) { - final _ret = _lib._objc_msgSend_26( - _lib._class_NSXMLNode1, - _lib._sel_attributeWithName_URI_stringValue_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + return SentryOptions._(_ret, _lib, retain: true, release: true); } - static NSObject namespaceWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLNode1, - _lib._sel_namespaceWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// The DSN tells the SDK where to send the events to. If this value is not provided, the SDK will + /// not send any events. + NSString? get dsn { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_dsn1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - - static NSObject processingInstructionWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLNode1, - _lib._sel_processingInstructionWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + + /// The DSN tells the SDK where to send the events to. If this value is not provided, the SDK will + /// not send any events. + set dsn(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setDsn_1, value?._id ?? ffi.nullptr); } - static NSObject commentWithStringValue_( - SentryCocoa _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, - _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// The parsed internal DSN. + SentryDsn? get parsedDsn { + final _ret = _lib._objc_msgSend_1089(_id, _lib._sel_parsedDsn1); + return _ret.address == 0 + ? null + : SentryDsn._(_ret, _lib, retain: true, release: true); } - static NSObject textWithStringValue_( - SentryCocoa _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, - _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// The parsed internal DSN. + set parsedDsn(SentryDsn? value) { + return _lib._objc_msgSend_1090( + _id, _lib._sel_setParsedDsn_1, value?._id ?? ffi.nullptr); } - static NSObject DTDNodeWithXMLString_(SentryCocoa _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, - _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Turns debug mode on or off. If debug is enabled SDK will attempt to print out useful debugging + /// information if something goes wrong. + /// @note Default is @c false. + bool get debug { + return _lib._objc_msgSend_12(_id, _lib._sel_debug1); } - int get kind { - return _lib._objc_msgSend_1019(_id, _lib._sel_kind1); + /// Turns debug mode on or off. If debug is enabled SDK will attempt to print out useful debugging + /// information if something goes wrong. + /// @note Default is @c false. + set debug(bool value) { + return _lib._objc_msgSend_495(_id, _lib._sel_setDebug_1, value); } - NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + /// Minimum LogLevel to be used if debug is enabled. + /// @note Default is kSentryLevelDebug. + int get diagnosticLevel { + return _lib._objc_msgSend_219(_id, _lib._sel_diagnosticLevel1); + } + + /// Minimum LogLevel to be used if debug is enabled. + /// @note Default is kSentryLevelDebug. + set diagnosticLevel(int value) { + return _lib._objc_msgSend_1091(_id, _lib._sel_setDiagnosticLevel_1, value); + } + + /// This property will be filled before the event is sent. + NSString? get releaseName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_releaseName1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - set name(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + /// This property will be filled before the event is sent. + set releaseName(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setReleaseName_1, value?._id ?? ffi.nullptr); } - NSObject get objectValue { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_objectValue1); - return NSObject._(_ret, _lib, retain: true, release: true); + /// The distribution of the application. + /// @discussion Distributions are used to disambiguate build or deployment variants of the same + /// release of an application. For example, the dist can be the build number of an Xcode build. + NSString? get dist { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_dist1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - set objectValue(NSObject value) { - return _lib._objc_msgSend_387(_id, _lib._sel_setObjectValue_1, value._id); + /// The distribution of the application. + /// @discussion Distributions are used to disambiguate build or deployment variants of the same + /// release of an application. For example, the dist can be the build number of an Xcode build. + set dist(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setDist_1, value?._id ?? ffi.nullptr); } - NSString? get stringValue { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_stringValue1); + /// The environment used for events if no environment is set on the current scope. + /// @note Default value is “production”. + NSString? get environment { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_environment1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - set stringValue(NSString? value) { + /// The environment used for events if no environment is set on the current scope. + /// @note Default value is “production”. + set environment(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setEnvironment_1, value?._id ?? ffi.nullptr); + } + + /// Specifies whether this SDK should send events to Sentry. If set to @c false events will be + /// dropped in the client and not sent to Sentry. Default is @c true. + bool get enabled { + return _lib._objc_msgSend_12(_id, _lib._sel_enabled1); + } + + /// Specifies whether this SDK should send events to Sentry. If set to @c false events will be + /// dropped in the client and not sent to Sentry. Default is @c true. + set enabled(bool value) { + return _lib._objc_msgSend_495(_id, _lib._sel_setEnabled_1, value); + } + + /// Controls the flush duration when calling SentrySDK/close. + double get shutdownTimeInterval { + return _lib._objc_msgSend_155(_id, _lib._sel_shutdownTimeInterval1); + } + + /// Controls the flush duration when calling SentrySDK/close. + set shutdownTimeInterval(double value) { return _lib._objc_msgSend_509( - _id, _lib._sel_setStringValue_1, value?._id ?? ffi.nullptr); + _id, _lib._sel_setShutdownTimeInterval_1, value); + } + + /// When enabled, the SDK sends crashes to Sentry. + /// @note Disabling this feature disables the SentryWatchdogTerminationTrackingIntegration, + /// because SentryWatchdogTerminationTrackingIntegration would falsely report every crash as watchdog + /// termination. + /// @note Default value is @c true. + /// @note Crash reporting is automatically disabled if a debugger is attached. + bool get enableCrashHandler { + return _lib._objc_msgSend_12(_id, _lib._sel_enableCrashHandler1); + } + + /// When enabled, the SDK sends crashes to Sentry. + /// @note Disabling this feature disables the SentryWatchdogTerminationTrackingIntegration, + /// because SentryWatchdogTerminationTrackingIntegration would falsely report every crash as watchdog + /// termination. + /// @note Default value is @c true. + /// @note Crash reporting is automatically disabled if a debugger is attached. + set enableCrashHandler(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setEnableCrashHandler_1, value); + } + + /// When enabled, the SDK captures uncaught NSExceptions. As this feature uses swizzling, disabling + /// enableSwizzling also disables this feature. + /// @discussion This option registers the NSApplicationCrashOnExceptions UserDefault, + /// so your macOS application crashes when an uncaught exception occurs. As the Cocoa Frameworks are + /// generally not exception-safe on macOS, we recommend this approach because the application could + /// otherwise end up in a corrupted state. + /// @warning Don’t use this in combination with SentryCrashExceptionApplication. Either enable this + /// feature or use the SentryCrashExceptionApplication. Having both enabled can lead to duplicated + /// reports. + /// @note Default value is @c false. + bool get enableUncaughtNSExceptionReporting { + return _lib._objc_msgSend_12( + _id, _lib._sel_enableUncaughtNSExceptionReporting1); } - void setStringValue_resolvingEntities_(NSString? string, bool resolve) { - _lib._objc_msgSend_1020(_id, _lib._sel_setStringValue_resolvingEntities_1, - string?._id ?? ffi.nullptr, resolve); + /// When enabled, the SDK captures uncaught NSExceptions. As this feature uses swizzling, disabling + /// enableSwizzling also disables this feature. + /// @discussion This option registers the NSApplicationCrashOnExceptions UserDefault, + /// so your macOS application crashes when an uncaught exception occurs. As the Cocoa Frameworks are + /// generally not exception-safe on macOS, we recommend this approach because the application could + /// otherwise end up in a corrupted state. + /// @warning Don’t use this in combination with SentryCrashExceptionApplication. Either enable this + /// feature or use the SentryCrashExceptionApplication. Having both enabled can lead to duplicated + /// reports. + /// @note Default value is @c false. + set enableUncaughtNSExceptionReporting(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setEnableUncaughtNSExceptionReporting_1, value); } - int get index { - return _lib._objc_msgSend_10(_id, _lib._sel_index1); + /// When enabled, the SDK reports SIGTERM signals to Sentry. + /// It’s crucial for developers to understand that the OS sends a SIGTERM to their app as a prelude + /// to a graceful shutdown, before resorting to a SIGKILL. This SIGKILL, which your app can’t catch + /// or ignore, is a direct order to terminate your app’s process immediately. Developers should be + /// aware that their app can receive a SIGTERM in various scenarios, such as CPU or disk overuse, + /// watchdog terminations, or when the OS updates your app. + /// @note The default value is @c false. + bool get enableSigtermReporting { + return _lib._objc_msgSend_12(_id, _lib._sel_enableSigtermReporting1); } - int get level { - return _lib._objc_msgSend_10(_id, _lib._sel_level1); + /// When enabled, the SDK reports SIGTERM signals to Sentry. + /// It’s crucial for developers to understand that the OS sends a SIGTERM to their app as a prelude + /// to a graceful shutdown, before resorting to a SIGKILL. This SIGKILL, which your app can’t catch + /// or ignore, is a direct order to terminate your app’s process immediately. Developers should be + /// aware that their app can receive a SIGTERM in various scenarios, such as CPU or disk overuse, + /// watchdog terminations, or when the OS updates your app. + /// @note The default value is @c false. + set enableSigtermReporting(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setEnableSigtermReporting_1, value); } - NSXMLDocument? get rootDocument { - final _ret = _lib._objc_msgSend_1043(_id, _lib._sel_rootDocument1); - return _ret.address == 0 - ? null - : NSXMLDocument._(_ret, _lib, retain: true, release: true); + /// How many breadcrumbs do you want to keep in memory? + /// @note Default is 100. + int get maxBreadcrumbs { + return _lib._objc_msgSend_10(_id, _lib._sel_maxBreadcrumbs1); } - NSXMLNode? get parent { - final _ret = _lib._objc_msgSend_1044(_id, _lib._sel_parent1); - return _ret.address == 0 - ? null - : NSXMLNode._(_ret, _lib, retain: true, release: true); + /// How many breadcrumbs do you want to keep in memory? + /// @note Default is 100. + set maxBreadcrumbs(int value) { + return _lib._objc_msgSend_486(_id, _lib._sel_setMaxBreadcrumbs_1, value); } - int get childCount { - return _lib._objc_msgSend_10(_id, _lib._sel_childCount1); + /// When enabled, the SDK adds breadcrumbs for each network request. As this feature uses swizzling, + /// disabling enableSwizzling also disables this feature. + /// @discussion If you want to enable or disable network tracking for performance monitoring, please + /// use enableNetworkTracking instead. + /// @note Default value is @c true. + bool get enableNetworkBreadcrumbs { + return _lib._objc_msgSend_12(_id, _lib._sel_enableNetworkBreadcrumbs1); } - NSArray? get children { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_children1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + /// When enabled, the SDK adds breadcrumbs for each network request. As this feature uses swizzling, + /// disabling enableSwizzling also disables this feature. + /// @discussion If you want to enable or disable network tracking for performance monitoring, please + /// use enableNetworkTracking instead. + /// @note Default value is @c true. + set enableNetworkBreadcrumbs(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setEnableNetworkBreadcrumbs_1, value); } - NSXMLNode childAtIndex_(int index) { - final _ret = _lib._objc_msgSend_1045(_id, _lib._sel_childAtIndex_1, index); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + /// The maximum number of envelopes to keep in cache. + /// @note Default is 30. + int get maxCacheItems { + return _lib._objc_msgSend_10(_id, _lib._sel_maxCacheItems1); } - NSXMLNode? get previousSibling { - final _ret = _lib._objc_msgSend_1044(_id, _lib._sel_previousSibling1); - return _ret.address == 0 - ? null - : NSXMLNode._(_ret, _lib, retain: true, release: true); + /// The maximum number of envelopes to keep in cache. + /// @note Default is 30. + set maxCacheItems(int value) { + return _lib._objc_msgSend_486(_id, _lib._sel_setMaxCacheItems_1, value); } - NSXMLNode? get nextSibling { - final _ret = _lib._objc_msgSend_1044(_id, _lib._sel_nextSibling1); - return _ret.address == 0 - ? null - : NSXMLNode._(_ret, _lib, retain: true, release: true); + /// This block can be used to modify the event before it will be serialized and sent. + int get beforeSend { + return _lib._objc_msgSend_219(_id, _lib._sel_beforeSend1); } - NSXMLNode? get previousNode { - final _ret = _lib._objc_msgSend_1044(_id, _lib._sel_previousNode1); - return _ret.address == 0 - ? null - : NSXMLNode._(_ret, _lib, retain: true, release: true); + /// This block can be used to modify the event before it will be serialized and sent. + set beforeSend(int value) { + return _lib._objc_msgSend_1091(_id, _lib._sel_setBeforeSend_1, value); } - NSXMLNode? get nextNode { - final _ret = _lib._objc_msgSend_1044(_id, _lib._sel_nextNode1); - return _ret.address == 0 - ? null - : NSXMLNode._(_ret, _lib, retain: true, release: true); + /// Use this callback to drop or modify a span before the SDK sends it to Sentry. Return nil to + /// drop the span. + int get beforeSendSpan { + return _lib._objc_msgSend_219(_id, _lib._sel_beforeSendSpan1); } - void detach() { - _lib._objc_msgSend_1(_id, _lib._sel_detach1); + /// Use this callback to drop or modify a span before the SDK sends it to Sentry. Return nil to + /// drop the span. + set beforeSendSpan(int value) { + return _lib._objc_msgSend_1091(_id, _lib._sel_setBeforeSendSpan_1, value); } - NSString? get XPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_XPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + /// When enabled, the SDK sends logs to Sentry. Logs can be captured using the SentrySDK.logger + /// API, which provides structured logging with attributes. + /// @note Default value is @c false. + bool get enableLogs { + return _lib._objc_msgSend_12(_id, _lib._sel_enableLogs1); } - NSString? get localName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + /// When enabled, the SDK sends logs to Sentry. Logs can be captured using the SentrySDK.logger + /// API, which provides structured logging with attributes. + /// @note Default value is @c false. + set enableLogs(bool value) { + return _lib._objc_msgSend_495(_id, _lib._sel_setEnableLogs_1, value); + } + + /// Use this callback to drop or modify a log before the SDK sends it to Sentry. Return nil to + /// drop the log. + ObjCBlock_SentryLog_SentryLog get beforeSendLog { + final _ret = _lib._objc_msgSend_1101(_id, _lib._sel_beforeSendLog1); + return ObjCBlock_SentryLog_SentryLog._(_ret, _lib); } - NSString? get prefix { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_prefix1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + /// Use this callback to drop or modify a log before the SDK sends it to Sentry. Return nil to + /// drop the log. + set beforeSendLog(ObjCBlock_SentryLog_SentryLog value) { + return _lib._objc_msgSend_1102( + _id, _lib._sel_setBeforeSendLog_1, value._id); } - NSString? get URI { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_URI1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + /// This block can be used to modify the breadcrumb before it will be serialized and sent. + int get beforeBreadcrumb { + return _lib._objc_msgSend_219(_id, _lib._sel_beforeBreadcrumb1); } - set URI(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setURI_1, value?._id ?? ffi.nullptr); + /// This block can be used to modify the breadcrumb before it will be serialized and sent. + set beforeBreadcrumb(int value) { + return _lib._objc_msgSend_1091(_id, _lib._sel_setBeforeBreadcrumb_1, value); } - static NSString localNameForName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLNode1, - _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + /// You can use this callback to decide if the SDK should capture a screenshot or not. Return @c true + /// if the SDK should capture a screenshot, return @c false if not. This callback doesn’t work for + /// crashes. + int get beforeCaptureScreenshot { + return _lib._objc_msgSend_219(_id, _lib._sel_beforeCaptureScreenshot1); } - static NSString prefixForName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLNode1, - _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + /// You can use this callback to decide if the SDK should capture a screenshot or not. Return @c true + /// if the SDK should capture a screenshot, return @c false if not. This callback doesn’t work for + /// crashes. + set beforeCaptureScreenshot(int value) { + return _lib._objc_msgSend_1091( + _id, _lib._sel_setBeforeCaptureScreenshot_1, value); } - static NSXMLNode predefinedNamespaceForPrefix_( - SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_1032(_lib._class_NSXMLNode1, - _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + /// You can use this callback to decide if the SDK should capture a view hierarchy or not. Return + /// @c true if the SDK should capture a view hierarchy, return @c false if not. This callback doesn’t + /// work for crashes. + int get beforeCaptureViewHierarchy { + return _lib._objc_msgSend_219(_id, _lib._sel_beforeCaptureViewHierarchy1); } - 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); + /// You can use this callback to decide if the SDK should capture a view hierarchy or not. Return + /// @c true if the SDK should capture a view hierarchy, return @c false if not. This callback doesn’t + /// work for crashes. + set beforeCaptureViewHierarchy(int value) { + return _lib._objc_msgSend_1091( + _id, _lib._sel_setBeforeCaptureViewHierarchy_1, value); } - NSString? get XMLString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_XMLString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + /// A block called shortly after the initialization of the SDK when the last program execution + /// terminated with a crash. + /// @discussion This callback is only executed once during the entire run of the program to avoid + /// multiple callbacks if there are multiple crash events to send. This can happen when the program + /// terminates with a crash before the SDK can send the crash event. You can look into beforeSend + /// if you prefer a callback for every event. + /// @warning It is not guaranteed that this is called on the main thread. + /// @note Crash reporting is automatically disabled if a debugger is attached. + int get onCrashedLastRun { + return _lib._objc_msgSend_219(_id, _lib._sel_onCrashedLastRun1); } - NSString XMLStringWithOptions_(int options) { + /// A block called shortly after the initialization of the SDK when the last program execution + /// terminated with a crash. + /// @discussion This callback is only executed once during the entire run of the program to avoid + /// multiple callbacks if there are multiple crash events to send. This can happen when the program + /// terminates with a crash before the SDK can send the crash event. You can look into beforeSend + /// if you prefer a callback for every event. + /// @warning It is not guaranteed that this is called on the main thread. + /// @note Crash reporting is automatically disabled if a debugger is attached. + set onCrashedLastRun(int value) { + return _lib._objc_msgSend_1091(_id, _lib._sel_setOnCrashedLastRun_1, value); + } + + /// A block called shortly after the initialization of the SDK when the crash status of the + /// last program execution has been determined. + /// This callback is invoked regardless of whether the app crashed or not: + ///
    + ///
  • + /// If the last run ended with a crash, status is SentryLastRunStatus/didCrash and + /// crashEvent contains the crash event. + ///
  • + ///
  • + /// If the last run did not end with a crash, status is + /// SentryLastRunStatus/didNotCrash and crashEvent is nil. + ///
  • + ///
+ /// This callback is only executed once per SentrySDK/start(configureOptions:) lifecycle. + /// warning: + /// It is not guaranteed that this is called on the main thread. + /// note: + /// Crashes that occur while a debugger is attached are not recorded. + /// In that case, the callback reports SentryLastRunStatus/didNotCrash + /// even though the app did crash. + ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt get onLastRunStatusDetermined { final _ret = - _lib._objc_msgSend_1046(_id, _lib._sel_XMLStringWithOptions_1, options); - return NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_1103(_id, _lib._sel_onLastRunStatusDetermined1); + return ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt._(_ret, _lib); + } + + /// A block called shortly after the initialization of the SDK when the crash status of the + /// last program execution has been determined. + /// This callback is invoked regardless of whether the app crashed or not: + ///
    + ///
  • + /// If the last run ended with a crash, status is SentryLastRunStatus/didCrash and + /// crashEvent contains the crash event. + ///
  • + ///
  • + /// If the last run did not end with a crash, status is + /// SentryLastRunStatus/didNotCrash and crashEvent is nil. + ///
  • + ///
+ /// This callback is only executed once per SentrySDK/start(configureOptions:) lifecycle. + /// warning: + /// It is not guaranteed that this is called on the main thread. + /// note: + /// Crashes that occur while a debugger is attached are not recorded. + /// In that case, the callback reports SentryLastRunStatus/didNotCrash + /// even though the app did crash. + set onLastRunStatusDetermined( + ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt value) { + return _lib._objc_msgSend_1104( + _id, _lib._sel_setOnLastRunStatusDetermined_1, value._id); } - NSString canonicalXMLStringPreservingComments_(bool comments) { - final _ret = _lib._objc_msgSend_1047( - _id, _lib._sel_canonicalXMLStringPreservingComments_1, comments); - return NSString._(_ret, _lib, retain: true, release: true); + /// Indicates the percentage of events being sent to Sentry. + /// @discussion Specifying 0 discards all events, 1.0 or nil sends all events, 0.01 collects 1% of + /// all events. + /// @note The value needs to be >= 0.0 and <= 1.0. When setting a value out of range the SDK sets + /// it to the default of 1.0. + /// @note The default is 1. + NSNumber? get sampleRate { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_sampleRate1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } - NSArray nodesForXPath_error_( - NSString? xpath, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_414( - _id, _lib._sel_nodesForXPath_error_1, xpath?._id ?? ffi.nullptr, error); - return NSArray._(_ret, _lib, retain: true, release: true); + /// Indicates the percentage of events being sent to Sentry. + /// @discussion Specifying 0 discards all events, 1.0 or nil sends all events, 0.01 collects 1% of + /// all events. + /// @note The value needs to be >= 0.0 and <= 1.0. When setting a value out of range the SDK sets + /// it to the default of 1.0. + /// @note The default is 1. + set sampleRate(NSNumber? value) { + return _lib._objc_msgSend_623( + _id, _lib._sel_setSampleRate_1, value?._id ?? ffi.nullptr); } - NSArray objectsForXQuery_constants_error_(NSString? xquery, - NSDictionary? constants, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_1048( - _id, - _lib._sel_objectsForXQuery_constants_error_1, - xquery?._id ?? ffi.nullptr, - constants?._id ?? ffi.nullptr, - error); - return NSArray._(_ret, _lib, retain: true, release: true); + /// Whether to enable automatic session tracking or not. + /// @note Default is @c true. + bool get enableAutoSessionTracking { + return _lib._objc_msgSend_12(_id, _lib._sel_enableAutoSessionTracking1); } - NSArray objectsForXQuery_error_( - NSString? xquery, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_414(_id, _lib._sel_objectsForXQuery_error_1, - xquery?._id ?? ffi.nullptr, error); - return NSArray._(_ret, _lib, retain: true, release: true); + /// Whether to enable automatic session tracking or not. + /// @note Default is @c true. + set enableAutoSessionTracking(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setEnableAutoSessionTracking_1, value); } - static NSXMLNode new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLNode1, _lib._sel_new1); - return NSXMLNode._(_ret, _lib, retain: false, release: true); + /// Whether to attach the top level operationName node of HTTP json requests to HTTP breadcrumbs + /// @note Default is @c false. + bool get enableGraphQLOperationTracking { + return _lib._objc_msgSend_12( + _id, _lib._sel_enableGraphQLOperationTracking1); } - static NSXMLNode allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSXMLNode1, _lib._sel_allocWithZone_1, zone); - return NSXMLNode._(_ret, _lib, retain: false, release: true); + /// Whether to attach the top level operationName node of HTTP json requests to HTTP breadcrumbs + /// @note Default is @c false. + set enableGraphQLOperationTracking(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setEnableGraphQLOperationTracking_1, value); } - static NSXMLNode alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLNode1, _lib._sel_alloc1); - return NSXMLNode._(_ret, _lib, retain: false, release: true); + /// Whether to enable Watchdog Termination tracking or not. + /// @note This feature requires the SentryCrashIntegration being enabled, otherwise it would + /// falsely report every crash as watchdog termination. + /// @note Default is @c true. + bool get enableWatchdogTerminationTracking { + return _lib._objc_msgSend_12( + _id, _lib._sel_enableWatchdogTerminationTracking1); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSXMLNode1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + /// Whether to enable Watchdog Termination tracking or not. + /// @note This feature requires the SentryCrashIntegration being enabled, otherwise it would + /// falsely report every crash as watchdog termination. + /// @note Default is @c true. + set enableWatchdogTerminationTracking(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setEnableWatchdogTerminationTracking_1, value); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSXMLNode1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + /// The interval to end a session after the App goes to the background. + /// @note The default is 30 seconds. + int get sessionTrackingIntervalMillis { + return _lib._objc_msgSend_10(_id, _lib._sel_sessionTrackingIntervalMillis1); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + /// The interval to end a session after the App goes to the background. + /// @note The default is 30 seconds. + set sessionTrackingIntervalMillis(int value) { + return _lib._objc_msgSend_486( + _id, _lib._sel_setSessionTrackingIntervalMillis_1, value); + } + + /// When enabled, stack traces are automatically attached to all messages logged. Stack traces are + /// always attached to exceptions but when this is set stack traces are also sent with messages. + /// Stack traces are only attached for the current thread. + /// @note This feature is enabled by default. + bool get attachStacktrace { + return _lib._objc_msgSend_12(_id, _lib._sel_attachStacktrace1); + } + + /// When enabled, stack traces are automatically attached to all messages logged. Stack traces are + /// always attached to exceptions but when this is set stack traces are also sent with messages. + /// Stack traces are only attached for the current thread. + /// @note This feature is enabled by default. + set attachStacktrace(bool value) { + return _lib._objc_msgSend_495(_id, _lib._sel_setAttachStacktrace_1, value); + } + + /// When enabled, all threads are attached with full stack traces to all captured events. + /// This requires suspending all threads briefly to collect their stack traces. + /// When disabled (the default), only the current thread gets a stack trace. + /// @note attachStacktrace must also be enabled for this to have any effect. + /// @note Default is false. + bool get attachAllThreads { + return _lib._objc_msgSend_12(_id, _lib._sel_attachAllThreads1); + } + + /// When enabled, all threads are attached with full stack traces to all captured events. + /// This requires suspending all threads briefly to collect their stack traces. + /// When disabled (the default), only the current thread gets a stack trace. + /// @note attachStacktrace must also be enabled for this to have any effect. + /// @note Default is false. + set attachAllThreads(bool value) { + return _lib._objc_msgSend_495(_id, _lib._sel_setAttachAllThreads_1, value); + } + + /// The maximum size for each attachment in bytes. + /// @note Default is 200 MiB (200 ✕ 1024 ✕ 1024 bytes). + /// @note Please also check the maximum attachment size of relay to make sure your attachments don’t + /// get discarded there: + /// https://docs.sentry.io/product/relay/options/ + int get maxAttachmentSize { + return _lib._objc_msgSend_10(_id, _lib._sel_maxAttachmentSize1); + } + + /// The maximum size for each attachment in bytes. + /// @note Default is 200 MiB (200 ✕ 1024 ✕ 1024 bytes). + /// @note Please also check the maximum attachment size of relay to make sure your attachments don’t + /// get discarded there: + /// https://docs.sentry.io/product/relay/options/ + set maxAttachmentSize(int value) { + return _lib._objc_msgSend_486(_id, _lib._sel_setMaxAttachmentSize_1, value); + } + + /// When enabled, the SDK sends personal identifiable along with events. + /// @note The default is @c false. + /// @discussion When the user of an event doesn’t contain an IP address, and this flag is @c true, the + /// SDK sets sdk.settings.infer_ip to auto to instruct the server to use the connection IP address as + /// the user address. Due to backward compatibility concerns, Sentry sets sdk.settings.infer_ip to + /// auto out of the box for Cocoa. If you want to stop Sentry from using the connections IP address, + /// you have to enable Prevent Storing of IP Addresses in your project settings in Sentry. + bool get sendDefaultPii { + return _lib._objc_msgSend_12(_id, _lib._sel_sendDefaultPii1); + } + + /// When enabled, the SDK sends personal identifiable along with events. + /// @note The default is @c false. + /// @discussion When the user of an event doesn’t contain an IP address, and this flag is @c true, the + /// SDK sets sdk.settings.infer_ip to auto to instruct the server to use the connection IP address as + /// the user address. Due to backward compatibility concerns, Sentry sets sdk.settings.infer_ip to + /// auto out of the box for Cocoa. If you want to stop Sentry from using the connections IP address, + /// you have to enable Prevent Storing of IP Addresses in your project settings in Sentry. + set sendDefaultPii(bool value) { + return _lib._objc_msgSend_495(_id, _lib._sel_setSendDefaultPii_1, value); + } + + /// When enabled, the SDK tracks performance for UIViewController subclasses and HTTP requests + /// automatically. It also measures the app start and slow and frozen frames. + /// @note The default is @c true. + /// @note Performance Monitoring must be enabled for this flag to take effect. See: + /// https://docs.sentry.io/platforms/apple/performance/ + bool get enableAutoPerformanceTracing { + return _lib._objc_msgSend_12(_id, _lib._sel_enableAutoPerformanceTracing1); + } + + /// When enabled, the SDK tracks performance for UIViewController subclasses and HTTP requests + /// automatically. It also measures the app start and slow and frozen frames. + /// @note The default is @c true. + /// @note Performance Monitoring must be enabled for this flag to take effect. See: + /// https://docs.sentry.io/platforms/apple/performance/ + set enableAutoPerformanceTracing(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setEnableAutoPerformanceTracing_1, value); + } + + /// WARNING: This is an experimental feature and may still have bugs. + /// When enabled, the SDK finishes the ongoing transaction bound to the scope and links them to the + /// crash event when your app crashes. The SDK skips adding profiles to increase the chance of + /// keeping the transaction. + /// @note The default is @c false. + bool get enablePersistingTracesWhenCrashing { return _lib._objc_msgSend_12( - _lib._class_NSXMLNode1, _lib._sel_accessInstanceVariablesDirectly1); + _id, _lib._sel_enablePersistingTracesWhenCrashing1); + } + + /// WARNING: This is an experimental feature and may still have bugs. + /// When enabled, the SDK finishes the ongoing transaction bound to the scope and links them to the + /// crash event when your app crashes. The SDK skips adding profiles to increase the chance of + /// keeping the transaction. + /// @note The default is @c false. + set enablePersistingTracesWhenCrashing(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setEnablePersistingTracesWhenCrashing_1, value); } - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSXMLNode1, _lib._sel_useStoredAccessor1); + /// A block that configures the initial scope when starting the SDK. + /// @discussion The block receives a suggested default scope. You can either configure and return + /// this, or create your own scope instead. + /// @note The default simply returns the passed in scope. + ObjCBlock_SentryScope_SentryScope get initialScope { + final _ret = _lib._objc_msgSend_1105(_id, _lib._sel_initialScope1); + return ObjCBlock_SentryScope_SentryScope._(_ret, _lib); } - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLNode1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + /// A block that configures the initial scope when starting the SDK. + /// @discussion The block receives a suggested default scope. You can either configure and return + /// this, or create your own scope instead. + /// @note The default simply returns the passed in scope. + set initialScope(ObjCBlock_SentryScope_SentryScope value) { + return _lib._objc_msgSend_1106(_id, _lib._sel_setInitialScope_1, value._id); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSXMLNode1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + /// When enabled, the SDK tracks performance for HTTP requests if auto performance tracking and + /// @c enableSwizzling are enabled. + /// @note The default is @c true. + /// @discussion If you want to enable or disable network breadcrumbs, please use + /// @c enableNetworkBreadcrumbs instead. + bool get enableNetworkTracking { + return _lib._objc_msgSend_12(_id, _lib._sel_enableNetworkTracking1); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSXMLNode1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + /// When enabled, the SDK tracks performance for HTTP requests if auto performance tracking and + /// @c enableSwizzling are enabled. + /// @note The default is @c true. + /// @discussion If you want to enable or disable network breadcrumbs, please use + /// @c enableNetworkBreadcrumbs instead. + set enableNetworkTracking(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setEnableNetworkTracking_1, value); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSXMLNode1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + /// When enabled, the SDK tracks performance for file IO reads and writes with NSData if auto + /// performance tracking and enableSwizzling are enabled. + /// @note The default is @c true. + bool get enableFileIOTracing { + return _lib._objc_msgSend_12(_id, _lib._sel_enableFileIOTracing1); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSXMLNode1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + /// When enabled, the SDK tracks performance for file IO reads and writes with NSData if auto + /// performance tracking and enableSwizzling are enabled. + /// @note The default is @c true. + set enableFileIOTracing(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setEnableFileIOTracing_1, value); } -} -abstract class NSXMLNodeKind { - static const int NSXMLInvalidKind = 0; - static const int NSXMLDocumentKind = 1; - static const int NSXMLElementKind = 2; - static const int NSXMLAttributeKind = 3; - static const int NSXMLNamespaceKind = 4; - static const int NSXMLProcessingInstructionKind = 5; - static const int NSXMLCommentKind = 6; - static const int NSXMLTextKind = 7; - static const int NSXMLDTDKind = 8; - static const int NSXMLEntityDeclarationKind = 9; - static const int NSXMLAttributeDeclarationKind = 10; - static const int NSXMLElementDeclarationKind = 11; - static const int NSXMLNotationDeclarationKind = 12; -} + /// When enabled, the SDK tracks performance for file IO reads and writes with NSData if auto + /// performance tracking and enableSwizzling are enabled. + /// @note The default is @c true. + bool get enableDataSwizzling { + return _lib._objc_msgSend_12(_id, _lib._sel_enableDataSwizzling1); + } -abstract class NSXMLNodeOptions { - static const int NSXMLNodeOptionsNone = 0; - static const int NSXMLNodeIsCDATA = 1; - static const int NSXMLNodeExpandEmptyElement = 2; - static const int NSXMLNodeCompactEmptyElement = 4; - static const int NSXMLNodeUseSingleQuotes = 8; - static const int NSXMLNodeUseDoubleQuotes = 16; - static const int NSXMLNodeNeverEscapeContents = 32; - static const int NSXMLDocumentTidyHTML = 512; - static const int NSXMLDocumentTidyXML = 1024; - static const int NSXMLDocumentValidate = 8192; - static const int NSXMLNodeLoadExternalEntitiesAlways = 16384; - static const int NSXMLNodeLoadExternalEntitiesSameOriginOnly = 32768; - static const int NSXMLNodeLoadExternalEntitiesNever = 524288; - static const int NSXMLDocumentXInclude = 65536; - static const int NSXMLNodePrettyPrint = 131072; - static const int NSXMLDocumentIncludeContentTypeDeclaration = 262144; - static const int NSXMLNodePreserveNamespaceOrder = 1048576; - static const int NSXMLNodePreserveAttributeOrder = 2097152; - static const int NSXMLNodePreserveEntities = 4194304; - static const int NSXMLNodePreservePrefixes = 8388608; - static const int NSXMLNodePreserveCDATA = 16777216; - static const int NSXMLNodePreserveWhitespace = 33554432; - static const int NSXMLNodePreserveDTD = 67108864; - static const int NSXMLNodePreserveCharacterReferences = 134217728; - static const int NSXMLNodePromoteSignificantWhitespace = 268435456; - static const int NSXMLNodePreserveEmptyElements = 6; - static const int NSXMLNodePreserveQuotes = 24; - static const int NSXMLNodePreserveAll = 4293918750; -} + /// When enabled, the SDK tracks performance for file IO reads and writes with NSData if auto + /// performance tracking and enableSwizzling are enabled. + /// @note The default is @c true. + set enableDataSwizzling(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setEnableDataSwizzling_1, value); + } -class NSXMLDocument extends NSXMLNode { - NSXMLDocument._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + /// When enabled, the SDK tracks performance for file IO operations with NSFileManager if auto + /// performance tracking and enableSwizzling are enabled. + /// @note The default is @c false. + bool get enableFileManagerSwizzling { + return _lib._objc_msgSend_12(_id, _lib._sel_enableFileManagerSwizzling1); + } - /// Returns a [NSXMLDocument] that points to the same underlying object as [other]. - static NSXMLDocument castFrom(T other) { - return NSXMLDocument._(other._id, other._lib, retain: true, release: true); + /// When enabled, the SDK tracks performance for file IO operations with NSFileManager if auto + /// performance tracking and enableSwizzling are enabled. + /// @note The default is @c false. + set enableFileManagerSwizzling(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setEnableFileManagerSwizzling_1, value); } - /// Returns a [NSXMLDocument] that wraps the given raw object pointer. - static NSXMLDocument castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSXMLDocument._(other, lib, retain: retain, release: release); + /// Indicates the percentage of the tracing data that is collected. + /// @discussion Specifying @c 0 or @c nil discards all trace data, @c 1.0 collects all trace data, + /// @c 0.01 collects 1% of all trace data. + /// @note The value needs to be >= 0.0 and <= 1.0. When setting a value out of range the SDK sets it + /// to the default. + /// @note The default is @c 0 . + NSNumber? get tracesSampleRate { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_tracesSampleRate1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } - /// Returns whether [obj] is an instance of [NSXMLDocument]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLDocument1); + /// Indicates the percentage of the tracing data that is collected. + /// @discussion Specifying @c 0 or @c nil discards all trace data, @c 1.0 collects all trace data, + /// @c 0.01 collects 1% of all trace data. + /// @note The value needs to be >= 0.0 and <= 1.0. When setting a value out of range the SDK sets it + /// to the default. + /// @note The default is @c 0 . + set tracesSampleRate(NSNumber? value) { + return _lib._objc_msgSend_623( + _id, _lib._sel_setTracesSampleRate_1, value?._id ?? ffi.nullptr); } - @override - NSXMLDocument init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSXMLDocument._(_ret, _lib, retain: true, release: true); + /// A callback to a user defined traces sampler function. + /// @discussion Specifying @c 0 or @c nil discards all trace data, @c 1.0 collects all trace data, + /// @c 0.01 collects 1% of all trace data. + /// @note The value needs to be >= 0.0 and <= 1.0. When setting a value out of range the SDK sets it + /// to the default of @c 0 . + int get tracesSampler { + return _lib._objc_msgSend_219(_id, _lib._sel_tracesSampler1); } - NSXMLDocument initWithXMLString_options_error_( - NSString? string, int mask, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_1021( - _id, - _lib._sel_initWithXMLString_options_error_1, - string?._id ?? ffi.nullptr, - mask, - error); - return NSXMLDocument._(_ret, _lib, retain: true, release: true); + /// A callback to a user defined traces sampler function. + /// @discussion Specifying @c 0 or @c nil discards all trace data, @c 1.0 collects all trace data, + /// @c 0.01 collects 1% of all trace data. + /// @note The value needs to be >= 0.0 and <= 1.0. When setting a value out of range the SDK sets it + /// to the default of @c 0 . + set tracesSampler(int value) { + return _lib._objc_msgSend_1091(_id, _lib._sel_setTracesSampler_1, value); } - NSXMLDocument initWithContentsOfURL_options_error_( - NSURL? url, int mask, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_1022( - _id, - _lib._sel_initWithContentsOfURL_options_error_1, - url?._id ?? ffi.nullptr, - mask, - error); - return NSXMLDocument._(_ret, _lib, retain: true, release: true); + /// If tracing is enabled or not. + /// @discussion @c true if @c tracesSampleRate is > @c 0 and <= @c 1 + /// or a @c tracesSampler is set, otherwise @c false. + bool get isTracingEnabled { + return _lib._objc_msgSend_12(_id, _lib._sel_isTracingEnabled1); } - NSXMLDocument initWithData_options_error_( - NSData? data, int mask, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_1023( - _id, - _lib._sel_initWithData_options_error_1, - data?._id ?? ffi.nullptr, - mask, - error); - return NSXMLDocument._(_ret, _lib, retain: true, release: true); + /// A list of string prefixes of framework names that belong to the app. + /// @note By default, this contains @c CFBundleExecutable to mark it as “in-app”. + NSArray? get inAppIncludes { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_inAppIncludes1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSXMLDocument initWithRootElement_(NSXMLElement? element) { - final _ret = _lib._objc_msgSend_1017( - _id, _lib._sel_initWithRootElement_1, element?._id ?? ffi.nullptr); - return NSXMLDocument._(_ret, _lib, retain: true, release: true); + /// Adds an item to the list of inAppIncludes. + /// \param inAppInclude The prefix of the framework name. + void addInAppInclude_(NSString? inAppInclude) { + _lib._objc_msgSend_192( + _id, _lib._sel_addInAppInclude_1, inAppInclude?._id ?? ffi.nullptr); } - static NSObject replacementClassForClass_(SentryCocoa _lib, NSObject cls) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSXMLDocument1, - _lib._sel_replacementClassForClass_1, cls._id); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Set as delegate on the URLSession used for all network data-transfer tasks performed by Sentry. + /// The SDK ignores this option when using urlSession. + NSObject? get urlSessionDelegate { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_urlSessionDelegate1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSString? get characterEncoding { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_characterEncoding1); + /// Set as delegate on the URLSession used for all network data-transfer tasks performed by Sentry. + /// The SDK ignores this option when using urlSession. + set urlSessionDelegate(NSObject? value) { + return _lib._objc_msgSend_389( + _id, _lib._sel_setUrlSessionDelegate_1, value?._id ?? ffi.nullptr); + } + + /// Use this property so the transport uses this URLSession with your configuration for + /// sending requests to Sentry. If not set, the SDK will create a new URLSession with + /// URLSessionConfiguration.ephemeral. + NSURLSession? get urlSession { + final _ret = _lib._objc_msgSend_960(_id, _lib._sel_urlSession1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSURLSession._(_ret, _lib, retain: true, release: true); } - set characterEncoding(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setCharacterEncoding_1, value?._id ?? ffi.nullptr); + /// Use this property so the transport uses this URLSession with your configuration for + /// sending requests to Sentry. If not set, the SDK will create a new URLSession with + /// URLSessionConfiguration.ephemeral. + set urlSession(NSURLSession? value) { + return _lib._objc_msgSend_1107( + _id, _lib._sel_setUrlSession_1, value?._id ?? ffi.nullptr); + } + + /// Whether the SDK should use swizzling or not. + /// When turned off the following features are disabled: breadcrumbs for touch events and + /// navigation with UIViewControllers, automatic instrumentation for UIViewControllers, + /// automatic instrumentation for HTTP requests, automatic instrumentation for file IO with + /// NSData, and automatically added sentry-trace header to HTTP requests for distributed tracing. + /// Default is @c true. + bool get enableSwizzling { + return _lib._objc_msgSend_12(_id, _lib._sel_enableSwizzling1); + } + + /// Whether the SDK should use swizzling or not. + /// When turned off the following features are disabled: breadcrumbs for touch events and + /// navigation with UIViewControllers, automatic instrumentation for UIViewControllers, + /// automatic instrumentation for HTTP requests, automatic instrumentation for file IO with + /// NSData, and automatically added sentry-trace header to HTTP requests for distributed tracing. + /// Default is @c true. + set enableSwizzling(bool value) { + return _lib._objc_msgSend_495(_id, _lib._sel_setEnableSwizzling_1, value); + } + + /// A set of class names to ignore for swizzling. + /// The SDK checks if a class name of a class to swizzle contains a class name of this array. + /// For example, if you add MyUIViewController to this list, the SDK excludes the following classes + /// from swizzling: YourApp.MyUIViewController, YourApp.MyUIViewControllerA, MyApp.MyUIViewController. + /// Default is an empty set. + NSSet? get swizzleClassNameExcludes { + final _ret = + _lib._objc_msgSend_297(_id, _lib._sel_swizzleClassNameExcludes1); + return _ret.address == 0 + ? null + : NSSet._(_ret, _lib, retain: true, release: true); } - NSString? get version { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_version1); + /// A set of class names to ignore for swizzling. + /// The SDK checks if a class name of a class to swizzle contains a class name of this array. + /// For example, if you add MyUIViewController to this list, the SDK excludes the following classes + /// from swizzling: YourApp.MyUIViewController, YourApp.MyUIViewControllerA, MyApp.MyUIViewController. + /// Default is an empty set. + set swizzleClassNameExcludes(NSSet? value) { + return _lib._objc_msgSend_952(_id, _lib._sel_setSwizzleClassNameExcludes_1, + value?._id ?? ffi.nullptr); + } + + /// When enabled, the SDK tracks the performance of Core Data operations. It requires enabling + /// performance monitoring. The default is @c true. + /// See: https://docs.sentry.io/platforms/apple/performance/ + bool get enableCoreDataTracing { + return _lib._objc_msgSend_12(_id, _lib._sel_enableCoreDataTracing1); + } + + /// When enabled, the SDK tracks the performance of Core Data operations. It requires enabling + /// performance monitoring. The default is @c true. + /// See: https://docs.sentry.io/platforms/apple/performance/ + set enableCoreDataTracing(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setEnableCoreDataTracing_1, value); + } + + /// Configuration for the Sentry profiler. + /// @warning: Continuous profiling is an experimental feature and may still contain bugs. + /// @warning: Profiling is automatically disabled if a thread sanitizer is attached. + ObjCBlock_ffiVoid_SentryProfileOptions get configureProfiling { + final _ret = _lib._objc_msgSend_1110(_id, _lib._sel_configureProfiling1); + return ObjCBlock_ffiVoid_SentryProfileOptions._(_ret, _lib); + } + + /// Configuration for the Sentry profiler. + /// @warning: Continuous profiling is an experimental feature and may still contain bugs. + /// @warning: Profiling is automatically disabled if a thread sanitizer is attached. + set configureProfiling(ObjCBlock_ffiVoid_SentryProfileOptions value) { + return _lib._objc_msgSend_1111( + _id, _lib._sel_setConfigureProfiling_1, value._id); + } + + SentryProfileOptions? get profiling { + final _ret = _lib._objc_msgSend_1112(_id, _lib._sel_profiling1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : SentryProfileOptions._(_ret, _lib, retain: true, release: true); } - set version(NSString? value) { + set profiling(SentryProfileOptions? value) { + return _lib._objc_msgSend_1113( + _id, _lib._sel_setProfiling_1, value?._id ?? ffi.nullptr); + } + + bool isContinuousProfilingEnabled() { + return _lib._objc_msgSend_12(_id, _lib._sel_isContinuousProfilingEnabled1); + } + + bool isProfilingCorrelatedToTraces() { + return _lib._objc_msgSend_12(_id, _lib._sel_isProfilingCorrelatedToTraces1); + } + + /// Whether to send client reports, which contain statistics about discarded events. + /// @note The default is @c true. + /// @see https://develop.sentry.dev/sdk/client-reports/ + bool get sendClientReports { + return _lib._objc_msgSend_12(_id, _lib._sel_sendClientReports1); + } + + /// Whether to send client reports, which contain statistics about discarded events. + /// @note The default is @c true. + /// @see https://develop.sentry.dev/sdk/client-reports/ + set sendClientReports(bool value) { + return _lib._objc_msgSend_495(_id, _lib._sel_setSendClientReports_1, value); + } + + /// When enabled, the SDK tracks when the application stops responding for a specific amount of + /// time defined by the @c appHangTimeoutInterval option. + /// On iOS, tvOS and visionOS, the SDK can differentiate between fully-blocking and non-fully + /// blocking app hangs. Important: this feature can’t differentiate between fully-blocking and + /// non-fully-blocking app hangs on macOS. + /// A fully-blocking app hang is when the main thread is stuck completely, and the app can’t render a + /// single frame. A non-fully-blocking app hang is when the app appears stuck to the user but can still + /// render a few frames. Fully-blocking app hangs are more actionable because the stacktrace shows the + /// exact blocking location on the main thread. As the main thread isn’t completely blocked, + /// non-fully-blocking app hangs can have a stacktrace that doesn’t highlight the exact blocking + /// location. + /// You can use @c enableReportNonFullyBlockingAppHangs to ignore non-fully-blocking app hangs. + /// @note The default is @c true. + /// @note App Hang tracking is automatically disabled if a debugger is attached. + bool get enableAppHangTracking { + return _lib._objc_msgSend_12(_id, _lib._sel_enableAppHangTracking1); + } + + /// When enabled, the SDK tracks when the application stops responding for a specific amount of + /// time defined by the @c appHangTimeoutInterval option. + /// On iOS, tvOS and visionOS, the SDK can differentiate between fully-blocking and non-fully + /// blocking app hangs. Important: this feature can’t differentiate between fully-blocking and + /// non-fully-blocking app hangs on macOS. + /// A fully-blocking app hang is when the main thread is stuck completely, and the app can’t render a + /// single frame. A non-fully-blocking app hang is when the app appears stuck to the user but can still + /// render a few frames. Fully-blocking app hangs are more actionable because the stacktrace shows the + /// exact blocking location on the main thread. As the main thread isn’t completely blocked, + /// non-fully-blocking app hangs can have a stacktrace that doesn’t highlight the exact blocking + /// location. + /// You can use @c enableReportNonFullyBlockingAppHangs to ignore non-fully-blocking app hangs. + /// @note The default is @c true. + /// @note App Hang tracking is automatically disabled if a debugger is attached. + set enableAppHangTracking(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setEnableAppHangTracking_1, value); + } + + /// The minimum amount of time an app should be unresponsive to be classified as an App Hanging. + /// @note The actual amount may be a little longer. + /// @note Avoid using values lower than 100ms, which may cause a lot of app hangs events being + /// transmitted. + /// @note The default value is 2 seconds. + double get appHangTimeoutInterval { + return _lib._objc_msgSend_155(_id, _lib._sel_appHangTimeoutInterval1); + } + + /// The minimum amount of time an app should be unresponsive to be classified as an App Hanging. + /// @note The actual amount may be a little longer. + /// @note Avoid using values lower than 100ms, which may cause a lot of app hangs events being + /// transmitted. + /// @note The default value is 2 seconds. + set appHangTimeoutInterval(double value) { return _lib._objc_msgSend_509( - _id, _lib._sel_setVersion_1, value?._id ?? ffi.nullptr); + _id, _lib._sel_setAppHangTimeoutInterval_1, value); } - bool get standalone { - return _lib._objc_msgSend_12(_id, _lib._sel_isStandalone1); + /// When enabled, the SDK adds breadcrumbs for various system events. + /// @note Default value is @c true. + bool get enableAutoBreadcrumbTracking { + return _lib._objc_msgSend_12(_id, _lib._sel_enableAutoBreadcrumbTracking1); } - set standalone(bool value) { - return _lib._objc_msgSend_492(_id, _lib._sel_setStandalone_1, value); + /// When enabled, the SDK adds breadcrumbs for various system events. + /// @note Default value is @c true. + set enableAutoBreadcrumbTracking(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setEnableAutoBreadcrumbTracking_1, value); } - int get documentContentKind { - return _lib._objc_msgSend_1024(_id, _lib._sel_documentContentKind1); + /// When enabled, the SDK propagates the W3C Trace Context HTTP header traceparent on outgoing HTTP + /// requests. + /// @discussion This is useful when the receiving services only support OTel/W3C propagation. The + /// traceparent header is only sent when this option is @c true and the request matches @c + /// tracePropagationTargets. + /// @note Default value is @c false. + bool get enablePropagateTraceparent { + return _lib._objc_msgSend_12(_id, _lib._sel_enablePropagateTraceparent1); } - set documentContentKind(int value) { - return _lib._objc_msgSend_1025( - _id, _lib._sel_setDocumentContentKind_1, value); + /// When enabled, the SDK propagates the W3C Trace Context HTTP header traceparent on outgoing HTTP + /// requests. + /// @discussion This is useful when the receiving services only support OTel/W3C propagation. The + /// traceparent header is only sent when this option is @c true and the request matches @c + /// tracePropagationTargets. + /// @note Default value is @c false. + set enablePropagateTraceparent(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setEnablePropagateTraceparent_1, value); } - NSString? get MIMEType { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_MIMEType1); + /// An array of hosts or regexes that determines if outgoing HTTP requests will get + /// extra @c trace_id and @c baggage headers added. + /// @discussion This array can contain instances of @c NSString which should match the URL (using + /// @c contains ), and instances of @c NSRegularExpression, which will be used to check the whole + /// URL. + /// @note The default value adds the header to all outgoing requests. + /// @see https://docs.sentry.io/platforms/apple/configuration/options/#trace-propagation-targets + NSArray? get tracePropagationTargets { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_tracePropagationTargets1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSArray._(_ret, _lib, retain: true, release: true); } - set MIMEType(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setMIMEType_1, value?._id ?? ffi.nullptr); + /// An array of hosts or regexes that determines if outgoing HTTP requests will get + /// extra @c trace_id and @c baggage headers added. + /// @discussion This array can contain instances of @c NSString which should match the URL (using + /// @c contains ), and instances of @c NSRegularExpression, which will be used to check the whole + /// URL. + /// @note The default value adds the header to all outgoing requests. + /// @see https://docs.sentry.io/platforms/apple/configuration/options/#trace-propagation-targets + set tracePropagationTargets(NSArray? value) { + return _lib._objc_msgSend_739( + _id, _lib._sel_setTracePropagationTargets_1, value?._id ?? ffi.nullptr); } - NSXMLDTD? get DTD { - final _ret = _lib._objc_msgSend_1035(_id, _lib._sel_DTD1); + /// When enabled, the SDK captures HTTP Client errors. + /// @note This feature requires @c enableSwizzling enabled as well. + /// @note Default value is @c true. + bool get enableCaptureFailedRequests { + return _lib._objc_msgSend_12(_id, _lib._sel_enableCaptureFailedRequests1); + } + + /// When enabled, the SDK captures HTTP Client errors. + /// @note This feature requires @c enableSwizzling enabled as well. + /// @note Default value is @c true. + set enableCaptureFailedRequests(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setEnableCaptureFailedRequests_1, value); + } + + /// The SDK will only capture HTTP Client errors if the HTTP Response status code is within the + /// defined range. + /// @note Defaults to 500 - 599. + /// SentryHttpStatusCodeRange *defaultHttpStatusCodeRange = + NSArray? get failedRequestStatusCodes { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_failedRequestStatusCodes1); return _ret.address == 0 ? null - : NSXMLDTD._(_ret, _lib, retain: true, release: true); + : NSArray._(_ret, _lib, retain: true, release: true); } - set DTD(NSXMLDTD? value) { - return _lib._objc_msgSend_1036( - _id, _lib._sel_setDTD_1, value?._id ?? ffi.nullptr); + /// The SDK will only capture HTTP Client errors if the HTTP Response status code is within the + /// defined range. + /// @note Defaults to 500 - 599. + /// SentryHttpStatusCodeRange *defaultHttpStatusCodeRange = + set failedRequestStatusCodes(NSArray? value) { + return _lib._objc_msgSend_739(_id, _lib._sel_setFailedRequestStatusCodes_1, + value?._id ?? ffi.nullptr); } - void setRootElement_(NSXMLElement? root) { - _lib._objc_msgSend_1037( - _id, _lib._sel_setRootElement_1, root?._id ?? ffi.nullptr); + /// An array of hosts or regexes that determines if HTTP Client errors will be automatically + /// captured. + /// @discussion This array can contain instances of @c NSString which should match the URL (using + /// @c contains ), and instances of @c NSRegularExpression, which will be used to check the whole + /// URL. + /// @note The default value automatically captures HTTP Client errors of all outgoing requests. + NSArray? get failedRequestTargets { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_failedRequestTargets1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSXMLElement rootElement() { - final _ret = _lib._objc_msgSend_1038(_id, _lib._sel_rootElement1); - return NSXMLElement._(_ret, _lib, retain: true, release: true); + /// An array of hosts or regexes that determines if HTTP Client errors will be automatically + /// captured. + /// @discussion This array can contain instances of @c NSString which should match the URL (using + /// @c contains ), and instances of @c NSRegularExpression, which will be used to check the whole + /// URL. + /// @note The default value automatically captures HTTP Client errors of all outgoing requests. + set failedRequestTargets(NSArray? value) { + return _lib._objc_msgSend_739( + _id, _lib._sel_setFailedRequestTargets_1, value?._id ?? ffi.nullptr); + } + + /// Use this feature to enable the Sentry MetricKit integration. + /// @brief When enabled, the SDK sends @c MXDiskWriteExceptionDiagnostic, @c MXCPUExceptionDiagnostic + /// and + /// @c MXHangDiagnostic to Sentry. The SDK supports this feature from iOS 15 and later and macOS 12 + /// and later because, on these versions, @c MetricKit delivers diagnostic reports immediately, which + /// allows the Sentry SDK to apply the current data from the scope. + /// @note This feature is disabled by default. + bool get enableMetricKit { + return _lib._objc_msgSend_12(_id, _lib._sel_enableMetricKit1); + } + + /// Use this feature to enable the Sentry MetricKit integration. + /// @brief When enabled, the SDK sends @c MXDiskWriteExceptionDiagnostic, @c MXCPUExceptionDiagnostic + /// and + /// @c MXHangDiagnostic to Sentry. The SDK supports this feature from iOS 15 and later and macOS 12 + /// and later because, on these versions, @c MetricKit delivers diagnostic reports immediately, which + /// allows the Sentry SDK to apply the current data from the scope. + /// @note This feature is disabled by default. + set enableMetricKit(bool value) { + return _lib._objc_msgSend_495(_id, _lib._sel_setEnableMetricKit_1, value); + } + + /// When enabled, the SDK adds the raw MXDiagnosticPayloads as an attachment to the converted + /// SentryEvent. You need to enable @c enableMetricKit for this flag to work. + /// @note Default value is @c false. + bool get enableMetricKitRawPayload { + return _lib._objc_msgSend_12(_id, _lib._sel_enableMetricKitRawPayload1); + } + + /// When enabled, the SDK adds the raw MXDiagnosticPayloads as an attachment to the converted + /// SentryEvent. You need to enable @c enableMetricKit for this flag to work. + /// @note Default value is @c false. + set enableMetricKitRawPayload(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setEnableMetricKitRawPayload_1, value); + } + + /// @warning This is an experimental feature and may still have bugs. + /// @brief By enabling this, every UIViewController tracing transaction will wait + /// for a call to @c SentrySDK.reportFullyDisplayed(). + /// @discussion Use this in conjunction with @c enableUIViewControllerTracing. + /// If @c SentrySDK.reportFullyDisplayed() is not called, the transaction will finish + /// automatically after 30 seconds and the Time to full display Span will be + /// finished with @c DeadlineExceeded status. + /// @note Default value is false. + bool get enableTimeToFullDisplayTracing { + return _lib._objc_msgSend_12( + _id, _lib._sel_enableTimeToFullDisplayTracing1); } - void insertChild_atIndex_(NSXMLNode? child, int index) { - _lib._objc_msgSend_1026( - _id, _lib._sel_insertChild_atIndex_1, child?._id ?? ffi.nullptr, index); + /// @warning This is an experimental feature and may still have bugs. + /// @brief By enabling this, every UIViewController tracing transaction will wait + /// for a call to @c SentrySDK.reportFullyDisplayed(). + /// @discussion Use this in conjunction with @c enableUIViewControllerTracing. + /// If @c SentrySDK.reportFullyDisplayed() is not called, the transaction will finish + /// automatically after 30 seconds and the Time to full display Span will be + /// finished with @c DeadlineExceeded status. + /// @note Default value is false. + set enableTimeToFullDisplayTracing(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setEnableTimeToFullDisplayTracing_1, value); } - void insertChildren_atIndex_(NSArray? children, int index) { - _lib._objc_msgSend_1027(_id, _lib._sel_insertChildren_atIndex_1, - children?._id ?? ffi.nullptr, index); + /// This feature is only available from Xcode 13 and from macOS 12.0, iOS 15.0, tvOS 15.0, + /// watchOS 8.0. + /// @warning This is an experimental feature and may still have bugs. + /// @brief Stitches the call to Swift Async functions in one consecutive stack trace. + /// @note Default value is @c false. + bool get swiftAsyncStacktraces { + return _lib._objc_msgSend_12(_id, _lib._sel_swiftAsyncStacktraces1); } - void removeChildAtIndex_(int index) { - _lib._objc_msgSend_439(_id, _lib._sel_removeChildAtIndex_1, index); + /// This feature is only available from Xcode 13 and from macOS 12.0, iOS 15.0, tvOS 15.0, + /// watchOS 8.0. + /// @warning This is an experimental feature and may still have bugs. + /// @brief Stitches the call to Swift Async functions in one consecutive stack trace. + /// @note Default value is @c false. + set swiftAsyncStacktraces(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setSwiftAsyncStacktraces_1, value); } - void setChildren_(NSArray? children) { - _lib._objc_msgSend_441( - _id, _lib._sel_setChildren_1, children?._id ?? ffi.nullptr); + /// The path to store SDK data, like events, transactions, profiles, raw crash data, etc. We + /// recommend only changing this when the default, e.g., in security environments, can’t be accessed. + /// @note The default is NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, true). + NSString? get cacheDirectoryPath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_cacheDirectoryPath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void addChild_(NSXMLNode? child) { - _lib._objc_msgSend_1028( - _id, _lib._sel_addChild_1, child?._id ?? ffi.nullptr); + /// The path to store SDK data, like events, transactions, profiles, raw crash data, etc. We + /// recommend only changing this when the default, e.g., in security environments, can’t be accessed. + /// @note The default is NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, true). + set cacheDirectoryPath(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setCacheDirectoryPath_1, value?._id ?? ffi.nullptr); } - void replaceChildAtIndex_withNode_(int index, NSXMLNode? node) { - _lib._objc_msgSend_1029(_id, _lib._sel_replaceChildAtIndex_withNode_1, - index, node?._id ?? ffi.nullptr); + /// Whether to enable Spotlight for local development. For more information see + /// https://spotlightjs.com/. + /// @note Only set this option to @c true while developing, not in production! + bool get enableSpotlight { + return _lib._objc_msgSend_12(_id, _lib._sel_enableSpotlight1); } - NSData? get XMLData { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_XMLData1); + /// Whether to enable Spotlight for local development. For more information see + /// https://spotlightjs.com/. + /// @note Only set this option to @c true while developing, not in production! + set enableSpotlight(bool value) { + return _lib._objc_msgSend_495(_id, _lib._sel_setEnableSpotlight_1, value); + } + + /// The Spotlight URL. Defaults to http://localhost:8969/stream. For more information see + /// https://spotlightjs.com/ + NSString? get spotlightUrl { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_spotlightUrl1); return _ret.address == 0 ? null - : NSData._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - NSData XMLDataWithOptions_(int options) { - final _ret = - _lib._objc_msgSend_1039(_id, _lib._sel_XMLDataWithOptions_1, options); - return NSData._(_ret, _lib, retain: true, release: true); + /// The Spotlight URL. Defaults to http://localhost:8969/stream. For more information see + /// https://spotlightjs.com/ + set spotlightUrl(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setSpotlightUrl_1, value?._id ?? ffi.nullptr); } - NSObject objectByApplyingXSLT_arguments_error_(NSData? xslt, - NSDictionary? arguments, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_1040( - _id, - _lib._sel_objectByApplyingXSLT_arguments_error_1, - xslt?._id ?? ffi.nullptr, - arguments?._id ?? ffi.nullptr, - error); - return NSObject._(_ret, _lib, retain: true, release: true); + /// If set to true, the SDK will only continue a trace if the organization ID of the incoming + /// trace found in the baggage header matches the organization ID of the current Sentry client. + /// The client’s organization ID is extracted from the DSN or can be set with the orgId option. + /// If the organization IDs do not match, the SDK will start a new trace instead of continuing + /// the incoming one. This is useful to prevent traces of unknown third-party services from being + /// continued in your application. + /// @note Default value is @c false. + bool get strictTraceContinuation { + return _lib._objc_msgSend_12(_id, _lib._sel_strictTraceContinuation1); } - NSObject objectByApplyingXSLTString_arguments_error_(NSString? xslt, - NSDictionary? arguments, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_1041( - _id, - _lib._sel_objectByApplyingXSLTString_arguments_error_1, - xslt?._id ?? ffi.nullptr, - arguments?._id ?? ffi.nullptr, - error); - return NSObject._(_ret, _lib, retain: true, release: true); + /// If set to true, the SDK will only continue a trace if the organization ID of the incoming + /// trace found in the baggage header matches the organization ID of the current Sentry client. + /// The client’s organization ID is extracted from the DSN or can be set with the orgId option. + /// If the organization IDs do not match, the SDK will start a new trace instead of continuing + /// the incoming one. This is useful to prevent traces of unknown third-party services from being + /// continued in your application. + /// @note Default value is @c false. + set strictTraceContinuation(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setStrictTraceContinuation_1, value); } - NSObject objectByApplyingXSLTAtURL_arguments_error_(NSURL? xsltURL, - NSDictionary? argument, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_1042( - _id, - _lib._sel_objectByApplyingXSLTAtURL_arguments_error_1, - xsltURL?._id ?? ffi.nullptr, - argument?._id ?? ffi.nullptr, - error); - return NSObject._(_ret, _lib, retain: true, release: true); + /// The organization ID for your Sentry project. + /// The SDK will try to extract the organization ID from the DSN. If it cannot be found, or if + /// you need to override it, you can provide the ID with this option. The organization ID is used + /// for trace propagation and for features like strictTraceContinuation. + NSString? get orgId { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_orgId1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - bool validateAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_236( - _id, _lib._sel_validateAndReturnError_1, error); + /// The organization ID for your Sentry project. + /// The SDK will try to extract the organization ID from the DSN. If it cannot be found, or if + /// you need to override it, you can provide the ID with this option. The organization ID is used + /// for trace propagation and for features like strictTraceContinuation. + set orgId(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setOrgId_1, value?._id ?? ffi.nullptr); } - @override - NSXMLDocument initWithKind_(int kind) { - final _ret = _lib._objc_msgSend_1015(_id, _lib._sel_initWithKind_1, kind); - return NSXMLDocument._(_ret, _lib, retain: true, release: true); + /// Returns the effective organization ID, preferring the explicit orgId option over the + /// DSN-extracted value. + NSString? get effectiveOrgId { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_effectiveOrgId1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - @override - NSXMLDocument initWithKind_options_(int kind, int options) { - final _ret = _lib._objc_msgSend_1016( - _id, _lib._sel_initWithKind_options_1, kind, options); - return NSXMLDocument._(_ret, _lib, retain: true, release: true); + /// Options for experimental features that are subject to change. + SentryExperimentalOptions? get experimental { + final _ret = _lib._objc_msgSend_1114(_id, _lib._sel_experimental1); + return _ret.address == 0 + ? null + : SentryExperimentalOptions._(_ret, _lib, retain: true, release: true); } - static NSObject document(SentryCocoa _lib) { + /// Options for experimental features that are subject to change. + set experimental(SentryExperimentalOptions? value) { + return _lib._objc_msgSend_1115( + _id, _lib._sel_setExperimental_1, value?._id ?? ffi.nullptr); + } + + static bool isValidSampleRate_(SentryCocoa _lib, NSNumber? rate) { + return _lib._objc_msgSend_223(_lib._class_SentryOptions1, + _lib._sel_isValidSampleRate_1, rate?._id ?? ffi.nullptr); + } + + static NSString? getDefaultEnvironment(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_20( + _lib._class_SentryOptions1, _lib._sel_defaultEnvironment1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + static SentryOptions new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLDocument1, _lib._sel_document1); - return NSObject._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_2(_lib._class_SentryOptions1, _lib._sel_new1); + return SentryOptions._(_ret, _lib, retain: false, release: true); + } + + static SentryOptions allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_SentryOptions1, _lib._sel_allocWithZone_1, zone); + return SentryOptions._(_ret, _lib, retain: false, release: true); + } + + static SentryOptions alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryOptions1, _lib._sel_alloc1); + return SentryOptions._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_SentryOptions1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_SentryOptions1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - static NSObject documentWithRootElement_( - SentryCocoa _lib, NSXMLElement? element) { - final _ret = _lib._objc_msgSend_1017(_lib._class_NSXMLDocument1, - _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_SentryOptions1, _lib._sel_accessInstanceVariablesDirectly1); } - static NSObject elementWithName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDocument1, - _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_SentryOptions1, _lib._sel_useStoredAccessor1); } - static NSObject elementWithName_URI_( - SentryCocoa _lib, NSString? name, NSString? URI) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDocument1, - _lib._sel_elementWithName_URI_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_SentryOptions1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - static NSObject elementWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? string) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDocument1, - _lib._sel_elementWithName_stringValue_1, - name?._id ?? ffi.nullptr, - string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_SentryOptions1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - static NSObject elementWithName_children_attributes_(SentryCocoa _lib, - NSString? name, NSArray? children, NSArray? attributes) { - final _ret = _lib._objc_msgSend_1018( - _lib._class_NSXMLDocument1, - _lib._sel_elementWithName_children_attributes_1, - name?._id ?? ffi.nullptr, - children?._id ?? ffi.nullptr, - attributes?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_SentryOptions1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - static NSObject attributeWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDocument1, - _lib._sel_attributeWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_SentryOptions1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSObject attributeWithName_URI_stringValue_( - SentryCocoa _lib, NSString? name, NSString? URI, NSString? stringValue) { - final _ret = _lib._objc_msgSend_26( - _lib._class_NSXMLDocument1, - _lib._sel_attributeWithName_URI_stringValue_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryOptions1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } +} - static NSObject namespaceWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDocument1, - _lib._sel_namespaceWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); +/// Represents a Sentry Data Source Name (DSN) which identifies a Sentry project. +class SentryDsn extends NSObject { + SentryDsn._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [SentryDsn] that points to the same underlying object as [other]. + static SentryDsn castFrom(T other) { + return SentryDsn._(other._id, other._lib, retain: true, release: true); } - static NSObject processingInstructionWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDocument1, - _lib._sel_processingInstructionWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Returns a [SentryDsn] that wraps the given raw object pointer. + static SentryDsn castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentryDsn._(other, lib, retain: retain, release: release); } - static NSObject commentWithStringValue_( - SentryCocoa _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDocument1, - _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [SentryDsn]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_SentryDsn1); } - static NSObject textWithStringValue_( - SentryCocoa _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDocument1, - _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// The parsed URL from the DSN string. + 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); } - static NSObject DTDNodeWithXMLString_(SentryCocoa _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDocument1, - _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Initializes a SentryDsn from a DSN string. + /// \param dsnString The DSN string to parse. + /// + /// \param error An optional error pointer that will be set if the DSN is invalid. + /// + /// + /// returns: + /// A new SentryDsn instance, or nil if the DSN string is invalid. + SentryDsn initWithString_didFailWithError_( + NSString? dsnString, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_279( + _id, + _lib._sel_initWithString_didFailWithError_1, + dsnString?._id ?? ffi.nullptr, + error); + return SentryDsn._(_ret, _lib, retain: true, release: true); } - static NSString localNameForName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDocument1, - _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); + /// Generates a SHA1 hash of the DSN URL. + /// note: + /// This is internal SDK API, not for public use. + /// + /// returns: + /// A hexadecimal string representation of the hash. + NSString getHash() { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_getHash1); return NSString._(_ret, _lib, retain: true, release: true); } - static NSString prefixForName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDocument1, - _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + /// Returns the envelope endpoint URL for this DSN. + /// + /// returns: + /// The envelope endpoint URL. + NSURL getEnvelopeEndpoint() { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_getEnvelopeEndpoint1); + return NSURL._(_ret, _lib, retain: true, release: true); } - static NSXMLNode predefinedNamespaceForPrefix_( - SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_1032(_lib._class_NSXMLDocument1, - _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + /// Extracts the organization ID from the DSN host. + /// For example, given a DSN with host o123.ingest.sentry.io, this returns "123". + /// Returns nil if the host does not match the expected pattern. + NSString? get orgId { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_orgId1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSXMLDocument new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLDocument1, _lib._sel_new1); - return NSXMLDocument._(_ret, _lib, retain: false, release: true); + @override + SentryDsn init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentryDsn._(_ret, _lib, retain: true, release: true); } - static NSXMLDocument allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static SentryDsn new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_SentryDsn1, _lib._sel_new1); + return SentryDsn._(_ret, _lib, retain: false, release: true); + } + + static SentryDsn allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSXMLDocument1, _lib._sel_allocWithZone_1, zone); - return NSXMLDocument._(_ret, _lib, retain: false, release: true); + _lib._class_SentryDsn1, _lib._sel_allocWithZone_1, zone); + return SentryDsn._(_ret, _lib, retain: false, release: true); } - static NSXMLDocument alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLDocument1, _lib._sel_alloc1); - return NSXMLDocument._(_ret, _lib, retain: false, release: true); + static SentryDsn alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_SentryDsn1, _lib._sel_alloc1); + return SentryDsn._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -70019,7 +77728,7 @@ class NSXMLDocument extends NSXMLNode { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSXMLDocument1, + _lib._class_SentryDsn1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -70028,24 +77737,24 @@ class NSXMLDocument extends NSXMLNode { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSXMLDocument1, + _lib._objc_msgSend_15(_lib._class_SentryDsn1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSXMLDocument1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_SentryDsn1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSXMLDocument1, _lib._sel_useStoredAccessor1); + _lib._class_SentryDsn1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLDocument1, + _lib._class_SentryDsn1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -70054,7 +77763,7 @@ class NSXMLDocument extends NSXMLNode { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSXMLDocument1, + _lib._class_SentryDsn1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -70062,7 +77771,7 @@ class NSXMLDocument extends NSXMLNode { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSXMLDocument1, + _lib._class_SentryDsn1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -70070,322 +77779,561 @@ class NSXMLDocument extends NSXMLNode { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSXMLDocument1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_SentryDsn1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSXMLDocument1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_SentryDsn1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSXMLDocumentContentKind { - static const int NSXMLDocumentXMLKind = 0; - static const int NSXMLDocumentXHTMLKind = 1; - static const int NSXMLDocumentHTMLKind = 2; - static const int NSXMLDocumentTextKind = 3; +ffi.Pointer _ObjCBlock_SentryLog_SentryLog_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0)>>() + .asFunction< + ffi.Pointer Function( + ffi.Pointer arg0)>()(arg0); } -class NSXMLDTD extends NSXMLNode { - NSXMLDTD._(ffi.Pointer id, SentryCocoa lib, +final _ObjCBlock_SentryLog_SentryLog_closureRegistry = {}; +int _ObjCBlock_SentryLog_SentryLog_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_SentryLog_SentryLog_registerClosure( + Function fn) { + final id = ++_ObjCBlock_SentryLog_SentryLog_closureRegistryIndex; + _ObjCBlock_SentryLog_SentryLog_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +ffi.Pointer _ObjCBlock_SentryLog_SentryLog_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return (_ObjCBlock_SentryLog_SentryLog_closureRegistry[ + block.ref.target.address] + as ffi.Pointer Function(ffi.Pointer))(arg0); +} + +class ObjCBlock_SentryLog_SentryLog extends _ObjCBlockBase { + ObjCBlock_SentryLog_SentryLog._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_SentryLog_SentryLog.fromFunctionPointer( + SentryCocoa lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_SentryLog_SentryLog_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_SentryLog_SentryLog.fromFunction(SentryCocoa lib, + ffi.Pointer Function(ffi.Pointer arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_SentryLog_SentryLog_closureTrampoline) + .cast(), + _ObjCBlock_SentryLog_SentryLog_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + ffi.Pointer call(ffi.Pointer arg0) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>()(_id, arg0); + } +} + +/// A structured log entry that captures log data with associated attribute metadata. +/// Use the options.beforeSendLog callback to modify or filter log data. +class SentryLog extends NSObject { + SentryLog._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSXMLDTD] that points to the same underlying object as [other]. - static NSXMLDTD castFrom(T other) { - return NSXMLDTD._(other._id, other._lib, retain: true, release: true); + /// Returns a [SentryLog] that points to the same underlying object as [other]. + static SentryLog castFrom(T other) { + return SentryLog._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSXMLDTD] that wraps the given raw object pointer. - static NSXMLDTD castFromPointer( + /// Returns a [SentryLog] that wraps the given raw object pointer. + static SentryLog castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSXMLDTD._(other, lib, retain: retain, release: release); + return SentryLog._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSXMLDTD]. + /// Returns whether [obj] is an instance of [SentryLog]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLDTD1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_SentryLog1); } - @override - NSXMLDTD init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSXMLDTD._(_ret, _lib, retain: true, release: true); + /// The timestamp when the log event occurred + NSDate? get timestamp { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_timestamp1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - @override - NSXMLDTD initWithKind_options_(int kind, int options) { - final _ret = _lib._objc_msgSend_1016( - _id, _lib._sel_initWithKind_options_1, kind, options); - return NSXMLDTD._(_ret, _lib, retain: true, release: true); + /// The timestamp when the log event occurred + set timestamp(NSDate? value) { + return _lib._objc_msgSend_528( + _id, _lib._sel_setTimestamp_1, value?._id ?? ffi.nullptr); } - NSXMLDTD initWithContentsOfURL_options_error_( - NSURL? url, int mask, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_1022( - _id, - _lib._sel_initWithContentsOfURL_options_error_1, - url?._id ?? ffi.nullptr, - mask, - error); - return NSXMLDTD._(_ret, _lib, retain: true, release: true); + /// The trace ID to associate this log with distributed tracing. This will be set to a valid non-empty value during processing. + SentryId? get traceId { + final _ret = _lib._objc_msgSend_1071(_id, _lib._sel_traceId1); + return _ret.address == 0 + ? null + : SentryId._(_ret, _lib, retain: true, release: true); } - NSXMLDTD initWithData_options_error_( - NSData? data, int mask, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_1023( - _id, - _lib._sel_initWithData_options_error_1, - data?._id ?? ffi.nullptr, - mask, - error); - return NSXMLDTD._(_ret, _lib, retain: true, release: true); + /// The trace ID to associate this log with distributed tracing. This will be set to a valid non-empty value during processing. + set traceId(SentryId? value) { + return _lib._objc_msgSend_1092( + _id, _lib._sel_setTraceId_1, value?._id ?? ffi.nullptr); } - NSString? get publicID { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_publicID1); + /// The span ID of the span that was active when the log was collected. + SentrySpanId? get spanId { + final _ret = _lib._objc_msgSend_1093(_id, _lib._sel_spanId1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : SentrySpanId._(_ret, _lib, retain: true, release: true); } - set publicID(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setPublicID_1, value?._id ?? ffi.nullptr); + /// The span ID of the span that was active when the log was collected. + set spanId(SentrySpanId? value) { + return _lib._objc_msgSend_1094( + _id, _lib._sel_setSpanId_1, value?._id ?? ffi.nullptr); } - NSString? get systemID { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_systemID1); + /// The severity level of the log entry + int get level { + return _lib._objc_msgSend_1095(_id, _lib._sel_level1); + } + + /// The severity level of the log entry + set level(int value) { + return _lib._objc_msgSend_1096(_id, _lib._sel_setLevel_1, value); + } + + /// The main log message content + NSString? get body { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_body1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - set systemID(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setSystemID_1, value?._id ?? ffi.nullptr); + /// The main log message content + set body(NSString? value) { + return _lib._objc_msgSend_512( + _id, _lib._sel_setBody_1, value?._id ?? ffi.nullptr); } - void insertChild_atIndex_(NSXMLNode? child, int index) { - _lib._objc_msgSend_1026( - _id, _lib._sel_insertChild_atIndex_1, child?._id ?? ffi.nullptr, index); + /// A dictionary of structured attributes added to the log entry + NSDictionary? get attributes { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_attributes1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - void insertChildren_atIndex_(NSArray? children, int index) { - _lib._objc_msgSend_1027(_id, _lib._sel_insertChildren_atIndex_1, - children?._id ?? ffi.nullptr, index); + /// A dictionary of structured attributes added to the log entry + set attributes(NSDictionary? value) { + return _lib._objc_msgSend_171( + _id, _lib._sel_setAttributes_1, value?._id ?? ffi.nullptr); } - void removeChildAtIndex_(int index) { - _lib._objc_msgSend_439(_id, _lib._sel_removeChildAtIndex_1, index); + /// Numeric representation of the severity level (Int) + NSNumber? get severityNumber { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_severityNumber1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } - void setChildren_(NSArray? children) { - _lib._objc_msgSend_441( - _id, _lib._sel_setChildren_1, children?._id ?? ffi.nullptr); + /// Numeric representation of the severity level (Int) + set severityNumber(NSNumber? value) { + return _lib._objc_msgSend_623( + _id, _lib._sel_setSeverityNumber_1, value?._id ?? ffi.nullptr); } - void addChild_(NSXMLNode? child) { - _lib._objc_msgSend_1028( - _id, _lib._sel_addChild_1, child?._id ?? ffi.nullptr); + /// Creates a log entry with the specified level and message. + /// \param level The severity level of the log entry + /// + /// \param body The main log message content + SentryLog initWithLevel_body_(int level, NSString? body) { + final _ret = _lib._objc_msgSend_1097( + _id, _lib._sel_initWithLevel_body_1, level, body?._id ?? ffi.nullptr); + return SentryLog._(_ret, _lib, retain: true, release: true); } - void replaceChildAtIndex_withNode_(int index, NSXMLNode? node) { - _lib._objc_msgSend_1029(_id, _lib._sel_replaceChildAtIndex_withNode_1, - index, node?._id ?? ffi.nullptr); + /// Creates a log entry with the specified level, message, and attributes. + /// \param level The severity level of the log entry + /// + /// \param body The main log message content + /// + /// \param attributes A dictionary of structured attributes to add to the log entry + SentryLog initWithLevel_body_attributes_( + int level, NSString? body, NSDictionary? attributes) { + final _ret = _lib._objc_msgSend_1098( + _id, + _lib._sel_initWithLevel_body_attributes_1, + level, + body?._id ?? ffi.nullptr, + attributes?._id ?? ffi.nullptr); + return SentryLog._(_ret, _lib, retain: true, release: true); } - NSXMLDTDNode entityDeclarationForName_(NSString? name) { - final _ret = _lib._objc_msgSend_1033( - _id, _lib._sel_entityDeclarationForName_1, name?._id ?? ffi.nullptr); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + /// Adds or updates an attribute in the log entry. + /// \param attribute The attribute value to add + /// + /// \param key The key for the attribute + void setAttribute_forKey_(SentryAttribute? attribute, NSString? key) { + _lib._objc_msgSend_1100(_id, _lib._sel_setAttribute_forKey_1, + attribute?._id ?? ffi.nullptr, key?._id ?? ffi.nullptr); } - NSXMLDTDNode notationDeclarationForName_(NSString? name) { - final _ret = _lib._objc_msgSend_1033( - _id, _lib._sel_notationDeclarationForName_1, name?._id ?? ffi.nullptr); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + @override + SentryLog init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentryLog._(_ret, _lib, retain: true, release: true); } - NSXMLDTDNode elementDeclarationForName_(NSString? name) { - final _ret = _lib._objc_msgSend_1033( - _id, _lib._sel_elementDeclarationForName_1, name?._id ?? ffi.nullptr); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + static SentryLog new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_SentryLog1, _lib._sel_new1); + return SentryLog._(_ret, _lib, retain: false, release: true); } - NSXMLDTDNode attributeDeclarationForName_elementName_( - NSString? name, NSString? elementName) { - final _ret = _lib._objc_msgSend_1034( - _id, - _lib._sel_attributeDeclarationForName_elementName_1, - name?._id ?? ffi.nullptr, - elementName?._id ?? ffi.nullptr); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + static SentryLog allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_SentryLog1, _lib._sel_allocWithZone_1, zone); + return SentryLog._(_ret, _lib, retain: false, release: true); } - static NSXMLDTDNode predefinedEntityDeclarationForName_( - SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_1033( - _lib._class_NSXMLDTD1, - _lib._sel_predefinedEntityDeclarationForName_1, - name?._id ?? ffi.nullptr); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + static SentryLog alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_SentryLog1, _lib._sel_alloc1); + return SentryLog._(_ret, _lib, retain: false, release: true); } - @override - NSXMLDTD initWithKind_(int kind) { - final _ret = _lib._objc_msgSend_1015(_id, _lib._sel_initWithKind_1, kind); - return NSXMLDTD._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_SentryLog1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - static NSObject document(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLDTD1, _lib._sel_document1); - return NSObject._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_SentryLog1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - static NSObject documentWithRootElement_( - SentryCocoa _lib, NSXMLElement? element) { - final _ret = _lib._objc_msgSend_1017(_lib._class_NSXMLDTD1, - _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_SentryLog1, _lib._sel_accessInstanceVariablesDirectly1); } - static NSObject elementWithName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTD1, - _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_SentryLog1, _lib._sel_useStoredAccessor1); } - static NSObject elementWithName_URI_( - SentryCocoa _lib, NSString? name, NSString? URI) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDTD1, - _lib._sel_elementWithName_URI_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_SentryLog1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - static NSObject elementWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? string) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDTD1, - _lib._sel_elementWithName_stringValue_1, - name?._id ?? ffi.nullptr, - string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_SentryLog1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - static NSObject elementWithName_children_attributes_(SentryCocoa _lib, - NSString? name, NSArray? children, NSArray? attributes) { - final _ret = _lib._objc_msgSend_1018( - _lib._class_NSXMLDTD1, - _lib._sel_elementWithName_children_attributes_1, - name?._id ?? ffi.nullptr, - children?._id ?? ffi.nullptr, - attributes?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_SentryLog1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - static NSObject attributeWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDTD1, - _lib._sel_attributeWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_SentryLog1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSObject attributeWithName_URI_stringValue_( - SentryCocoa _lib, NSString? name, NSString? URI, NSString? stringValue) { - final _ret = _lib._objc_msgSend_26( - _lib._class_NSXMLDTD1, - _lib._sel_attributeWithName_URI_stringValue_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryLog1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } +} - static NSObject namespaceWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDTD1, - _lib._sel_namespaceWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); +class SentrySpanId extends _ObjCWrapper { + SentrySpanId._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [SentrySpanId] that points to the same underlying object as [other]. + static SentrySpanId castFrom(T other) { + return SentrySpanId._(other._id, other._lib, retain: true, release: true); } - static NSObject processingInstructionWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDTD1, - _lib._sel_processingInstructionWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Returns a [SentrySpanId] that wraps the given raw object pointer. + static SentrySpanId castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentrySpanId._(other, lib, retain: retain, release: release); } - static NSObject commentWithStringValue_( - SentryCocoa _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTD1, - _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [SentrySpanId]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_SentrySpanId1); } +} - static NSObject textWithStringValue_( - SentryCocoa _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTD1, - _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); +/// Represents the severity level of a structured log entry. +/// Log levels are ordered by severity from least (trace) to most severe (fatal). +/// Each level corresponds to a numeric severity value following the OpenTelemetry specification. +abstract class SentryLogLevel { + /// Trace level for very detailed diagnostic information. + static const int SentryLogLevelTrace = 0; + + /// Debug level for diagnostic information useful during development. + static const int SentryLogLevelDebug = 1; + + /// Info level for general informational messages. + static const int SentryLogLevelInfo = 2; + + /// Warn level for potentially harmful situations. + static const int SentryLogLevelWarn = 3; + + /// Error level for error events that might still allow the application to continue running. + static const int SentryLogLevelError = 4; + + /// Fatal level for severe error events that will presumably lead the application to abort. + static const int SentryLogLevelFatal = 5; +} + +/// A typed attribute that can be attached to structured item entries used by Logs & Metrics +/// Attribute provides a type-safe way to store structured data alongside item messages. +/// Supports String, Bool, Int, and Double types. +/// This class exists primarily for Objective-C compatibility, inheriting from NSObject and +/// using @objcMembers to ensure it can be used from Objective-C code. For Swift code, prefer +/// using the SentryAttributeValue protocol instead, which provides a more idiomatic Swift API +/// and allows you to pass native Swift types (String, Bool, Int, Double, Float, and their arrays) +/// directly without wrapping them in a class instance. This Objective-C-compatible class will be +/// removed in a future major version release. +class SentryAttribute extends NSObject { + SentryAttribute._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [SentryAttribute] that points to the same underlying object as [other]. + static SentryAttribute castFrom(T other) { + return SentryAttribute._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [SentryAttribute] that wraps the given raw object pointer. + static SentryAttribute castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentryAttribute._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [SentryAttribute]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryAttribute1); + } + + /// The type identifier for this attribute + /// Can be any of the following: + ///
    + ///
  • + /// string + ///
  • + ///
  • + /// boolean + ///
  • + ///
  • + /// integer + ///
  • + ///
  • + /// double + ///
  • + ///
  • + /// string[] + ///
  • + ///
  • + /// boolean[] + ///
  • + ///
  • + /// integer[] + ///
  • + ///
  • + /// double[] + ///
  • + ///
+ 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); + } + + /// The actual value stored in this attribute + NSObject get value { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_value1); return NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject DTDNodeWithXMLString_(SentryCocoa _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTD1, - _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Creates a string attribute with the specified value. + /// \param value The string value to store in the attribute. + SentryAttribute initWithString_(NSString? value) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithString_1, value?._id ?? ffi.nullptr); + return SentryAttribute._(_ret, _lib, retain: true, release: true); + } + + /// Creates a boolean attribute with the specified value. + /// \param value The boolean value to store in the attribute. + SentryAttribute initWithBoolean_(bool value) { + final _ret = + _lib._objc_msgSend_484(_id, _lib._sel_initWithBoolean_1, value); + return SentryAttribute._(_ret, _lib, retain: true, release: true); + } + + /// Creates an integer attribute with the specified value. + /// \param value The integer value to store in the attribute. + SentryAttribute initWithInteger_(int value) { + final _ret = + _lib._objc_msgSend_189(_id, _lib._sel_initWithInteger_1, value); + return SentryAttribute._(_ret, _lib, retain: true, release: true); + } + + /// Creates a double attribute with the specified value. + /// \param value The double value to store in the attribute. + SentryAttribute initWithDouble_(double value) { + final _ret = _lib._objc_msgSend_156(_id, _lib._sel_initWithDouble_1, value); + return SentryAttribute._(_ret, _lib, retain: true, release: true); + } + + /// Creates a double attribute from a float value + /// \param value The float value to store in the attribute. + SentryAttribute initWithFloat_(double value) { + final _ret = _lib._objc_msgSend_1099(_id, _lib._sel_initWithFloat_1, value); + return SentryAttribute._(_ret, _lib, retain: true, release: true); + } + + /// Creates a string array attribute with the specified values. + /// \param values The array of string values to store in the attribute. + SentryAttribute initWithStringArray_(NSArray? values) { + final _ret = _lib._objc_msgSend_67( + _id, _lib._sel_initWithStringArray_1, values?._id ?? ffi.nullptr); + return SentryAttribute._(_ret, _lib, retain: true, release: true); + } + + /// Creates a boolean array attribute with the specified values. + /// \param values The array of boolean values to store in the attribute. + SentryAttribute initWithBooleanArray_(NSArray? values) { + final _ret = _lib._objc_msgSend_67( + _id, _lib._sel_initWithBooleanArray_1, values?._id ?? ffi.nullptr); + return SentryAttribute._(_ret, _lib, retain: true, release: true); } - static NSString localNameForName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDTD1, - _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + /// Creates an integer array attribute with the specified values. + /// \param values The array of integer values to store in the attribute. + SentryAttribute initWithIntegerArray_(NSArray? values) { + final _ret = _lib._objc_msgSend_67( + _id, _lib._sel_initWithIntegerArray_1, values?._id ?? ffi.nullptr); + return SentryAttribute._(_ret, _lib, retain: true, release: true); } - static NSString prefixForName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDTD1, - _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + /// Creates a double array attribute with the specified values. + /// \param values The array of double values to store in the attribute. + SentryAttribute initWithDoubleArray_(NSArray? values) { + final _ret = _lib._objc_msgSend_67( + _id, _lib._sel_initWithDoubleArray_1, values?._id ?? ffi.nullptr); + return SentryAttribute._(_ret, _lib, retain: true, release: true); } - static NSXMLNode predefinedNamespaceForPrefix_( - SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_1032(_lib._class_NSXMLDTD1, - _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + /// Creates a double attribute from a float value + /// \param values The array of float values to store in the attribute. + SentryAttribute initWithFloatArray_(NSArray? values) { + final _ret = _lib._objc_msgSend_67( + _id, _lib._sel_initWithFloatArray_1, values?._id ?? ffi.nullptr); + return SentryAttribute._(_ret, _lib, retain: true, release: true); } - static NSXMLDTD new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLDTD1, _lib._sel_new1); - return NSXMLDTD._(_ret, _lib, retain: false, release: true); + @override + SentryAttribute init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentryAttribute._(_ret, _lib, retain: true, release: true); } - static NSXMLDTD allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static SentryAttribute new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryAttribute1, _lib._sel_new1); + return SentryAttribute._(_ret, _lib, retain: false, release: true); + } + + static SentryAttribute allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSXMLDTD1, _lib._sel_allocWithZone_1, zone); - return NSXMLDTD._(_ret, _lib, retain: false, release: true); + _lib._class_SentryAttribute1, _lib._sel_allocWithZone_1, zone); + return SentryAttribute._(_ret, _lib, retain: false, release: true); } - static NSXMLDTD alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLDTD1, _lib._sel_alloc1); - return NSXMLDTD._(_ret, _lib, retain: false, release: true); + static SentryAttribute alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryAttribute1, _lib._sel_alloc1); + return SentryAttribute._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -70394,7 +78342,7 @@ class NSXMLDTD extends NSXMLNode { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSXMLDTD1, + _lib._class_SentryAttribute1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -70403,24 +78351,24 @@ class NSXMLDTD extends NSXMLNode { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSXMLDTD1, + _lib._objc_msgSend_15(_lib._class_SentryAttribute1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSXMLDTD1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_SentryAttribute1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSXMLDTD1, _lib._sel_useStoredAccessor1); + _lib._class_SentryAttribute1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLDTD1, + _lib._class_SentryAttribute1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -70429,7 +78377,7 @@ class NSXMLDTD extends NSXMLNode { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSXMLDTD1, + _lib._class_SentryAttribute1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -70437,268 +78385,439 @@ class NSXMLDTD extends NSXMLNode { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSXMLDTD1, + _lib._class_SentryAttribute1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSXMLDTD1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_SentryAttribute1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSXMLDTD1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_SentryAttribute1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSXMLDTDNode extends NSXMLNode { - NSXMLDTDNode._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSXMLDTDNode] that points to the same underlying object as [other]. - static NSXMLDTDNode castFrom(T other) { - return NSXMLDTDNode._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSXMLDTDNode] that wraps the given raw object pointer. - static NSXMLDTDNode castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSXMLDTDNode._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSXMLDTDNode]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLDTDNode1); - } +void _ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Int32 arg0, ffi.Pointer arg1)>>() + .asFunction< + void Function(int arg0, ffi.Pointer arg1)>()(arg0, arg1); +} - NSXMLDTDNode initWithXMLString_(NSString? string) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithXMLString_1, string?._id ?? ffi.nullptr); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); - } +final _ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt_registerClosure(Function fn) { + final id = + ++_ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt_closureRegistryIndex; + _ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - @override - NSXMLDTDNode initWithKind_options_(int kind, int options) { - final _ret = _lib._objc_msgSend_1016( - _id, _lib._sel_initWithKind_options_1, kind, options); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); - } +void _ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { + return (_ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt_closureRegistry[block + .ref + .target + .address] as void Function(int, ffi.Pointer))(arg0, arg1); +} - @override - NSXMLDTDNode init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); - } +class ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt extends _ObjCBlockBase { + ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); - int get DTDKind { - return _lib._objc_msgSend_1030(_id, _lib._sel_DTDKind1); - } + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt.fromFunctionPointer( + SentryCocoa lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Int32 arg0, ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Int32 arg0, ffi.Pointer arg1)>( + _ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - set DTDKind(int value) { - return _lib._objc_msgSend_1031(_id, _lib._sel_setDTDKind_1, value); + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt.fromFunction( + SentryCocoa lib, void Function(int arg0, ffi.Pointer arg1) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Int32 arg0, ffi.Pointer arg1)>( + _ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt_registerClosure( + fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(int arg0, ffi.Pointer arg1) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, ffi.Int32 arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock> block, int arg0, + ffi.Pointer arg1)>()(_id, arg0, arg1); } +} - bool get external1 { - return _lib._objc_msgSend_12(_id, _lib._sel_isExternal1); - } +/// Represents the crash status of the last program execution. +/// Use SentrySDK/lastRunStatus to check if the previous app execution +/// terminated with a crash. Before the SDK is fully initialized, the status +/// is unknown because the crash reporter hasn’t loaded its state yet. +/// note: +/// This enum replaces the crashedLastRun boolean property, which +/// could not distinguish between “did not crash” and “not yet known.” +abstract class SentryLastRunStatus { + /// The SDK hasn’t determined the crash status yet. + /// This is the value returned before SentrySDK/start(configureOptions:) + /// finishes initializing the crash reporter. + static const int SentryLastRunStatusUnknown = 0; + + /// The last program execution did not end with a crash. + static const int SentryLastRunStatusDidNotCrash = 1; + + /// The last program execution ended with a crash. + static const int SentryLastRunStatusDidCrash = 2; +} - 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); - } +ffi.Pointer _ObjCBlock_SentryScope_SentryScope_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0)>>() + .asFunction< + ffi.Pointer Function( + ffi.Pointer arg0)>()(arg0); +} - set publicID(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setPublicID_1, value?._id ?? ffi.nullptr); - } +final _ObjCBlock_SentryScope_SentryScope_closureRegistry = {}; +int _ObjCBlock_SentryScope_SentryScope_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_SentryScope_SentryScope_registerClosure( + Function fn) { + final id = ++_ObjCBlock_SentryScope_SentryScope_closureRegistryIndex; + _ObjCBlock_SentryScope_SentryScope_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(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); - } +ffi.Pointer _ObjCBlock_SentryScope_SentryScope_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return (_ObjCBlock_SentryScope_SentryScope_closureRegistry[ + block.ref.target.address] + as ffi.Pointer Function(ffi.Pointer))(arg0); +} - set systemID(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setSystemID_1, value?._id ?? ffi.nullptr); - } +class ObjCBlock_SentryScope_SentryScope extends _ObjCBlockBase { + ObjCBlock_SentryScope_SentryScope._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); - NSString? get notationName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_notationName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a C function pointer. + ObjCBlock_SentryScope_SentryScope.fromFunctionPointer( + SentryCocoa lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_SentryScope_SentryScope_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - set notationName(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setNotationName_1, value?._id ?? ffi.nullptr); + /// Creates a block from a Dart function. + ObjCBlock_SentryScope_SentryScope.fromFunction(SentryCocoa lib, + ffi.Pointer Function(ffi.Pointer arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_SentryScope_SentryScope_closureTrampoline) + .cast(), + _ObjCBlock_SentryScope_SentryScope_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + ffi.Pointer call(ffi.Pointer arg0) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>()(_id, arg0); } +} - @override - NSXMLDTDNode initWithKind_(int kind) { - final _ret = _lib._objc_msgSend_1015(_id, _lib._sel_initWithKind_1, kind); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); - } +void _ObjCBlock_ffiVoid_SentryProfileOptions_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return block.ref.target + .cast< + ffi.NativeFunction arg0)>>() + .asFunction arg0)>()(arg0); +} - static NSObject document(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLDTDNode1, _lib._sel_document1); - return NSObject._(_ret, _lib, retain: true, release: true); - } +final _ObjCBlock_ffiVoid_SentryProfileOptions_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_SentryProfileOptions_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_SentryProfileOptions_registerClosure( + Function fn) { + final id = ++_ObjCBlock_ffiVoid_SentryProfileOptions_closureRegistryIndex; + _ObjCBlock_ffiVoid_SentryProfileOptions_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - static NSObject documentWithRootElement_( - SentryCocoa _lib, NSXMLElement? element) { - final _ret = _lib._objc_msgSend_1017(_lib._class_NSXMLDTDNode1, - _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } +void _ObjCBlock_ffiVoid_SentryProfileOptions_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return (_ObjCBlock_ffiVoid_SentryProfileOptions_closureRegistry[block + .ref.target.address] as void Function(ffi.Pointer))(arg0); +} - static NSObject elementWithName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTDNode1, - _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } +class ObjCBlock_ffiVoid_SentryProfileOptions extends _ObjCBlockBase { + ObjCBlock_ffiVoid_SentryProfileOptions._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); - static NSObject elementWithName_URI_( - SentryCocoa _lib, NSString? name, NSString? URI) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDTDNode1, - _lib._sel_elementWithName_URI_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_SentryProfileOptions.fromFunctionPointer( + SentryCocoa lib, + ffi.Pointer< + ffi + .NativeFunction arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_SentryProfileOptions_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - static NSObject elementWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? string) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDTDNode1, - _lib._sel_elementWithName_stringValue_1, - name?._id ?? ffi.nullptr, - string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_SentryProfileOptions.fromFunction( + SentryCocoa lib, void Function(ffi.Pointer arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_SentryProfileOptions_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_SentryProfileOptions_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); } +} - static NSObject elementWithName_children_attributes_(SentryCocoa _lib, - NSString? name, NSArray? children, NSArray? attributes) { - final _ret = _lib._objc_msgSend_1018( - _lib._class_NSXMLDTDNode1, - _lib._sel_elementWithName_children_attributes_1, - name?._id ?? ffi.nullptr, - children?._id ?? ffi.nullptr, - attributes?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } +/// An object containing configuration for the Sentry profiler. +/// warning: +/// Continuous profiling is an experimental feature and may still contain bugs. +/// note: +/// If either SentryOptions.profilesSampleRate or SentryOptions.profilesSampler are +/// set to a non-nil value such that transaction-based profiling is being used, these settings +/// will have no effect, nor will SentrySDK.startProfiler() or SentrySDK.stopProfiler(). +/// note: +/// Profiling is automatically disabled if a thread sanitizer is attached. +class SentryProfileOptions extends NSObject { + SentryProfileOptions._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - static NSObject attributeWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDTDNode1, - _lib._sel_attributeWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Returns a [SentryProfileOptions] that points to the same underlying object as [other]. + static SentryProfileOptions castFrom(T other) { + return SentryProfileOptions._(other._id, other._lib, + retain: true, release: true); } - static NSObject attributeWithName_URI_stringValue_( - SentryCocoa _lib, NSString? name, NSString? URI, NSString? stringValue) { - final _ret = _lib._objc_msgSend_26( - _lib._class_NSXMLDTDNode1, - _lib._sel_attributeWithName_URI_stringValue_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Returns a [SentryProfileOptions] that wraps the given raw object pointer. + static SentryProfileOptions castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentryProfileOptions._(other, lib, retain: retain, release: release); } - static NSObject namespaceWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDTDNode1, - _lib._sel_namespaceWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [SentryProfileOptions]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryProfileOptions1); } - static NSObject processingInstructionWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDTDNode1, - _lib._sel_processingInstructionWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// The mode to use for starting and stopping the profiler, either manually or automatically. + /// warning: + /// Continuous profiling is an experimental feature and may still contain bugs. + /// note: + /// Default: SentryProfileLifecycleManual. + /// note: + /// If either SentryOptions.profilesSampleRate or SentryOptions.profilesSampler are + /// set to a non-nil value such that transaction-based profiling is being used, then setting + /// this property has no effect. + /// note: + /// Profiling is automatically disabled if a thread sanitizer is attached. + int get lifecycle { + return _lib._objc_msgSend_1108(_id, _lib._sel_lifecycle1); } - static NSObject commentWithStringValue_( - SentryCocoa _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTDNode1, - _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// The mode to use for starting and stopping the profiler, either manually or automatically. + /// warning: + /// Continuous profiling is an experimental feature and may still contain bugs. + /// note: + /// Default: SentryProfileLifecycleManual. + /// note: + /// If either SentryOptions.profilesSampleRate or SentryOptions.profilesSampler are + /// set to a non-nil value such that transaction-based profiling is being used, then setting + /// this property has no effect. + /// note: + /// Profiling is automatically disabled if a thread sanitizer is attached. + set lifecycle(int value) { + return _lib._objc_msgSend_1109(_id, _lib._sel_setLifecycle_1, value); } - static NSObject textWithStringValue_( - SentryCocoa _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTDNode1, - _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// The % of user sessions in which to enable profiling. + /// warning: + /// Continuous profiling is an experimental feature and may still contain bugs. + /// note: + /// The decision whether or not to sample profiles is computed using this sample rate + /// when the SDK is started, and applies to any requests to start the profiler–regardless of + /// lifecycle– until the app resigns its active status. It is then reevaluated on subsequent + /// foreground events. The duration of time that a sample decision prevails between + /// launch/foreground and background is referred to as a profile session. + /// note: + /// Backgrounding and foregrounding the app starts a new user session and sampling is + /// re-evaluated. If there is no active trace when the app is backgrounded, profiling stops + /// before the app backgrounds. If there is an active trace and profiling is in-flight when the + /// app is foregrounded again, the same profiling session should continue until the last root + /// span in that trace finishes — this means that the re-evaluated sample rate does not actually + /// take effect until the profiler is started again. + /// note: + /// Profiling is automatically disabled if a thread sanitizer is attached. + double get sessionSampleRate { + return _lib._objc_msgSend_221(_id, _lib._sel_sessionSampleRate1); } - static NSObject DTDNodeWithXMLString_(SentryCocoa _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTDNode1, - _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// The % of user sessions in which to enable profiling. + /// warning: + /// Continuous profiling is an experimental feature and may still contain bugs. + /// note: + /// The decision whether or not to sample profiles is computed using this sample rate + /// when the SDK is started, and applies to any requests to start the profiler–regardless of + /// lifecycle– until the app resigns its active status. It is then reevaluated on subsequent + /// foreground events. The duration of time that a sample decision prevails between + /// launch/foreground and background is referred to as a profile session. + /// note: + /// Backgrounding and foregrounding the app starts a new user session and sampling is + /// re-evaluated. If there is no active trace when the app is backgrounded, profiling stops + /// before the app backgrounds. If there is an active trace and profiling is in-flight when the + /// app is foregrounded again, the same profiling session should continue until the last root + /// span in that trace finishes — this means that the re-evaluated sample rate does not actually + /// take effect until the profiler is started again. + /// note: + /// Profiling is automatically disabled if a thread sanitizer is attached. + set sessionSampleRate(double value) { + return _lib._objc_msgSend_807(_id, _lib._sel_setSessionSampleRate_1, value); } - static NSString localNameForName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDTDNode1, - _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + /// Start the profiler as early as possible during the app lifecycle to capture more activity + /// during your app’s launch. + /// warning: + /// Continuous profiling is an experimental feature and may still contain bugs. + /// note: + /// sessionSampleRate is evaluated on the previous launch and only takes effect when + /// app start profiling activates on the next launch. + /// note: + /// If lifecycle is manual, profiling is started automatically on startup, but you + /// must manually call SentrySDK.stopProfiler() whenever you app startup to be complete. If + /// lifecycle is trace, profiling is started automatically on startup, and will + /// automatically be stopped when the root span that is associated with app startup ends. + /// note: + /// Profiling is automatically disabled if a thread sanitizer is attached. + bool get profileAppStarts { + return _lib._objc_msgSend_12(_id, _lib._sel_profileAppStarts1); } - static NSString prefixForName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDTDNode1, - _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + /// Start the profiler as early as possible during the app lifecycle to capture more activity + /// during your app’s launch. + /// warning: + /// Continuous profiling is an experimental feature and may still contain bugs. + /// note: + /// sessionSampleRate is evaluated on the previous launch and only takes effect when + /// app start profiling activates on the next launch. + /// note: + /// If lifecycle is manual, profiling is started automatically on startup, but you + /// must manually call SentrySDK.stopProfiler() whenever you app startup to be complete. If + /// lifecycle is trace, profiling is started automatically on startup, and will + /// automatically be stopped when the root span that is associated with app startup ends. + /// note: + /// Profiling is automatically disabled if a thread sanitizer is attached. + set profileAppStarts(bool value) { + return _lib._objc_msgSend_495(_id, _lib._sel_setProfileAppStarts_1, value); } - static NSXMLNode predefinedNamespaceForPrefix_( - SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_1032(_lib._class_NSXMLDTDNode1, - _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + @override + SentryProfileOptions init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentryProfileOptions._(_ret, _lib, retain: true, release: true); } - static NSXMLDTDNode new1(SentryCocoa _lib) { + static SentryProfileOptions new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLDTDNode1, _lib._sel_new1); - return NSXMLDTDNode._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_SentryProfileOptions1, _lib._sel_new1); + return SentryProfileOptions._(_ret, _lib, retain: false, release: true); } - static NSXMLDTDNode allocWithZone_( + static SentryProfileOptions allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSXMLDTDNode1, _lib._sel_allocWithZone_1, zone); - return NSXMLDTDNode._(_ret, _lib, retain: false, release: true); + _lib._class_SentryProfileOptions1, _lib._sel_allocWithZone_1, zone); + return SentryProfileOptions._(_ret, _lib, retain: false, release: true); } - static NSXMLDTDNode alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLDTDNode1, _lib._sel_alloc1); - return NSXMLDTDNode._(_ret, _lib, retain: false, release: true); + static SentryProfileOptions alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryProfileOptions1, _lib._sel_alloc1); + return SentryProfileOptions._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -70707,7 +78826,7 @@ class NSXMLDTDNode extends NSXMLNode { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSXMLDTDNode1, + _lib._class_SentryProfileOptions1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -70716,24 +78835,24 @@ class NSXMLDTDNode extends NSXMLNode { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSXMLDTDNode1, + _lib._objc_msgSend_15(_lib._class_SentryProfileOptions1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSXMLDTDNode1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_SentryProfileOptions1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSXMLDTDNode1, _lib._sel_useStoredAccessor1); + _lib._class_SentryProfileOptions1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLDTDNode1, + _lib._class_SentryProfileOptions1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -70742,7 +78861,7 @@ class NSXMLDTDNode extends NSXMLNode { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSXMLDTDNode1, + _lib._class_SentryProfileOptions1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -70750,310 +78869,408 @@ class NSXMLDTDNode extends NSXMLNode { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSXMLDTDNode1, + _lib._class_SentryProfileOptions1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSXMLDTDNode1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_SentryProfileOptions1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSXMLDTDNode1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_SentryProfileOptions1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSXMLDTDNodeKind { - static const int NSXMLEntityGeneralKind = 1; - static const int NSXMLEntityParsedKind = 2; - static const int NSXMLEntityUnparsedKind = 3; - static const int NSXMLEntityParameterKind = 4; - static const int NSXMLEntityPredefined = 5; - static const int NSXMLAttributeCDATAKind = 6; - static const int NSXMLAttributeIDKind = 7; - static const int NSXMLAttributeIDRefKind = 8; - static const int NSXMLAttributeIDRefsKind = 9; - static const int NSXMLAttributeEntityKind = 10; - static const int NSXMLAttributeEntitiesKind = 11; - static const int NSXMLAttributeNMTokenKind = 12; - static const int NSXMLAttributeNMTokensKind = 13; - static const int NSXMLAttributeEnumerationKind = 14; - static const int NSXMLAttributeNotationKind = 15; - static const int NSXMLElementDeclarationUndefinedKind = 16; - static const int NSXMLElementDeclarationEmptyKind = 17; - static const int NSXMLElementDeclarationAnyKind = 18; - static const int NSXMLElementDeclarationMixedKind = 19; - static const int NSXMLElementDeclarationElementKind = 20; +/// Different modes for starting and stopping the profiler. +abstract class SentryProfileLifecycle { + /// Profiling is controlled manually, and is independent of transactions & spans. Developers + /// must useSentrySDK.startProfiler() and SentrySDK.stopProfiler() to manage the profile + /// session. If the session is sampled, SentrySDK.startProfiler() will always start + /// profiling. + /// warning: + /// Continuous profiling is an experimental feature and may still contain bugs. + /// note: + /// Profiling is automatically disabled if a thread sanitizer is attached. + static const int SentryProfileLifecycleManual = 0; + + /// Profiling is automatically started when there is at least 1 active root span, and + /// automatically stopped when there are 0 root spans. + /// warning: + /// Continuous profiling is an experimental feature and may still contain bugs. + /// note: + /// This mode only works if tracing is enabled. + /// note: + /// Profiling respects both SentryProfileOptions.profileSessionSampleRate and + /// the existing sampling configuration for tracing + /// (SentryOptions.tracesSampleRate/SentryOptions.tracesSampler). Sampling will be + /// re-evaluated on a per root span basis. + /// note: + /// If there are multiple overlapping root spans, where some are sampled and some or + /// not, profiling will continue until the end of the last sampled root span. Profiling data + /// will not be linked with spans that are not sampled. + /// note: + /// When the last root span finishes, the profiler will continue running until the + /// end of the current timed interval. If a new root span starts before this interval + /// completes, the profiler will instead continue running until the next root span stops, at + /// which time it will attempt to stop again in the same way. + /// note: + /// Profiling is automatically disabled if a thread sanitizer is attached. + static const int SentryProfileLifecycleTrace = 1; } -/// @warning This class is reserved for hybrid SDKs. Methods may be changed, renamed or removed -/// without notice. If you want to use one of these methods here please open up an issue and let us -/// know. -/// @note The name of this class is supposed to be a bit weird and ugly. The name starts with private -/// on purpose so users don't see it in code completion when typing Sentry. We also add only at the -/// end to make it more obvious you shouldn't use it. -class PrivateSentrySDKOnly extends NSObject { - PrivateSentrySDKOnly._(ffi.Pointer id, SentryCocoa lib, +/// Options for experimental features that are subject to change or may be removed in future versions. +class SentryExperimentalOptions extends NSObject { + SentryExperimentalOptions._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [PrivateSentrySDKOnly] that points to the same underlying object as [other]. - static PrivateSentrySDKOnly castFrom(T other) { - return PrivateSentrySDKOnly._(other._id, other._lib, + /// Returns a [SentryExperimentalOptions] that points to the same underlying object as [other]. + static SentryExperimentalOptions castFrom(T other) { + return SentryExperimentalOptions._(other._id, other._lib, retain: true, release: true); } - /// Returns a [PrivateSentrySDKOnly] that wraps the given raw object pointer. - static PrivateSentrySDKOnly castFromPointer( + /// Returns a [SentryExperimentalOptions] that wraps the given raw object pointer. + static SentryExperimentalOptions castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return PrivateSentrySDKOnly._(other, lib, retain: retain, release: release); + return SentryExperimentalOptions._(other, lib, + retain: retain, release: release); } - /// Returns whether [obj] is an instance of [PrivateSentrySDKOnly]. + /// Returns whether [obj] is an instance of [SentryExperimentalOptions]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_PrivateSentrySDKOnly1); + obj._lib._class_SentryExperimentalOptions1); + } + + /// A more reliable way to report unhandled C++ exceptions. + /// This approach hooks into all instances of the __cxa_throw function, which provides a more comprehensive and consistent exception handling across an app’s runtime, regardless of the number of C++ modules or how they’re linked. It helps in obtaining accurate stack traces. + /// note: + /// The mechanism of hooking into __cxa_throw could cause issues with symbolication on iOS due to caching of symbol references. + /// experiment: + /// This is an experimental feature and is therefore disabled by default. We’ll enable it by default in a future major release. + bool get enableUnhandledCPPExceptionsV2 { + return _lib._objc_msgSend_12( + _id, _lib._sel_enableUnhandledCPPExceptionsV21); + } + + /// A more reliable way to report unhandled C++ exceptions. + /// This approach hooks into all instances of the __cxa_throw function, which provides a more comprehensive and consistent exception handling across an app’s runtime, regardless of the number of C++ modules or how they’re linked. It helps in obtaining accurate stack traces. + /// note: + /// The mechanism of hooking into __cxa_throw could cause issues with symbolication on iOS due to caching of symbol references. + /// experiment: + /// This is an experimental feature and is therefore disabled by default. We’ll enable it by default in a future major release. + set enableUnhandledCPPExceptionsV2(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setEnableUnhandledCPPExceptionsV2_1, value); + } + + /// Forces enabling of session replay in unreliable environments. + /// Due to internal changes with the release of Liquid Glass on iOS 26.0, the masking of text and images can not be reliably guaranteed. + /// Therefore the SDK uses a defensive programming approach to disable the session replay integration by default, unless the environment is detected as reliable. + /// Indicators for reliable environments include: + /// important: + /// This flag allows to re-enable the session replay integration on iOS 26.0 and later, but please be aware that text and images may not be masked as expected. + /// note: + /// See GitHub issues #6389 for more information. + ///
    + ///
  • + /// Running on an older version of iOS that doesn’t have Liquid Glass (iOS 18 or earlier) + ///
  • + ///
  • + /// UIDesignRequiresCompatibility is explicitly set to YES in Info.plist + ///
  • + ///
  • + /// The app was built with Xcode < 26.0 (DTXcode < 2600) + ///
  • + ///
+ bool get enableSessionReplayInUnreliableEnvironment { + return _lib._objc_msgSend_12( + _id, _lib._sel_enableSessionReplayInUnreliableEnvironment1); } - /// For storing an envelope synchronously to disk. - static void storeEnvelope_(SentryCocoa _lib, SentryEnvelope? envelope) { - _lib._objc_msgSend_1050(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_storeEnvelope_1, envelope?._id ?? ffi.nullptr); + /// Forces enabling of session replay in unreliable environments. + /// Due to internal changes with the release of Liquid Glass on iOS 26.0, the masking of text and images can not be reliably guaranteed. + /// Therefore the SDK uses a defensive programming approach to disable the session replay integration by default, unless the environment is detected as reliable. + /// Indicators for reliable environments include: + /// important: + /// This flag allows to re-enable the session replay integration on iOS 26.0 and later, but please be aware that text and images may not be masked as expected. + /// note: + /// See GitHub issues #6389 for more information. + ///
    + ///
  • + /// Running on an older version of iOS that doesn’t have Liquid Glass (iOS 18 or earlier) + ///
  • + ///
  • + /// UIDesignRequiresCompatibility is explicitly set to YES in Info.plist + ///
  • + ///
  • + /// The app was built with Xcode < 26.0 (DTXcode < 2600) + ///
  • + ///
+ set enableSessionReplayInUnreliableEnvironment(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setEnableSessionReplayInUnreliableEnvironment_1, value); } - static void captureEnvelope_(SentryCocoa _lib, SentryEnvelope? envelope) { - _lib._objc_msgSend_1050(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_captureEnvelope_1, envelope?._id ?? ffi.nullptr); + /// When enabled, the SDK sends metrics to Sentry. Metrics can be captured using the SentrySDK.metrics + /// API, which allows you to send, view and query counters, gauges and measurements. + /// @note Default value is @c true. + bool get enableMetrics { + return _lib._objc_msgSend_12(_id, _lib._sel_enableMetrics1); } - /// Create an envelope from @c NSData. Needed for example by Flutter. - static SentryEnvelope envelopeWithData_(SentryCocoa _lib, NSData? data) { - final _ret = _lib._objc_msgSend_1051(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_envelopeWithData_1, data?._id ?? ffi.nullptr); - return SentryEnvelope._(_ret, _lib, retain: true, release: true); + /// When enabled, the SDK sends metrics to Sentry. Metrics can be captured using the SentrySDK.metrics + /// API, which allows you to send, view and query counters, gauges and measurements. + /// @note Default value is @c true. + set enableMetrics(bool value) { + return _lib._objc_msgSend_495(_id, _lib._sel_setEnableMetrics_1, value); + } + + /// When enabled, the SDK uses a more efficient mechanism for detecting watchdog terminations. + bool get enableWatchdogTerminationsV2 { + return _lib._objc_msgSend_12(_id, _lib._sel_enableWatchdogTerminationsV21); + } + + /// When enabled, the SDK uses a more efficient mechanism for detecting watchdog terminations. + set enableWatchdogTerminationsV2(bool value) { + return _lib._objc_msgSend_495( + _id, _lib._sel_setEnableWatchdogTerminationsV2_1, value); + } + + void validateOptions_(NSDictionary? options) { + _lib._objc_msgSend_478( + _id, _lib._sel_validateOptions_1, options?._id ?? ffi.nullptr); + } + + @override + SentryExperimentalOptions init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentryExperimentalOptions._(_ret, _lib, retain: true, release: true); + } + + static SentryExperimentalOptions new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryExperimentalOptions1, _lib._sel_new1); + return SentryExperimentalOptions._(_ret, _lib, + retain: false, release: true); + } + + static SentryExperimentalOptions allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3(_lib._class_SentryExperimentalOptions1, + _lib._sel_allocWithZone_1, zone); + return SentryExperimentalOptions._(_ret, _lib, + retain: false, release: true); + } + + static SentryExperimentalOptions alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryExperimentalOptions1, _lib._sel_alloc1); + return SentryExperimentalOptions._(_ret, _lib, + retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_SentryExperimentalOptions1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_SentryExperimentalOptions1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_SentryExperimentalOptions1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_SentryExperimentalOptions1, _lib._sel_useStoredAccessor1); } - /// Returns the current list of debug images. Be aware that the @c SentryDebugMeta is actually - /// describing a debug image. - /// @warning This assumes a crash has occurred and attempts to read the crash information from each - /// image's data segment, which may not be present or be invalid if a crash has not actually - /// occurred. To avoid this, use the new @c +[getDebugImagesCrashed:] instead. - static NSArray getDebugImages(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_PrivateSentrySDKOnly1, _lib._sel_getDebugImages1); - return NSArray._(_ret, _lib, retain: true, release: true); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_SentryExperimentalOptions1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - /// Returns the current list of debug images. Be aware that the @c SentryDebugMeta is actually - /// describing a debug image. - /// @param isCrash @c YES if we're collecting binary images for a crash report, @c NO if we're - /// gathering them for other backtrace information, like a performance transaction. If this is for a - /// crash, each image's data section crash info is also included. - static NSArray getDebugImagesCrashed_(SentryCocoa _lib, bool isCrash) { - final _ret = _lib._objc_msgSend_1052(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_getDebugImagesCrashed_1, isCrash); - return NSArray._(_ret, _lib, retain: true, release: true); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_SentryExperimentalOptions1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - /// Override SDK information. - static void setSdkName_andVersionString_( - SentryCocoa _lib, NSString? sdkName, NSString? versionString) { - _lib._objc_msgSend_515( - _lib._class_PrivateSentrySDKOnly1, - _lib._sel_setSdkName_andVersionString_1, - sdkName?._id ?? ffi.nullptr, - versionString?._id ?? ffi.nullptr); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_SentryExperimentalOptions1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - /// Override SDK information. - static void setSdkName_(SentryCocoa _lib, NSString? sdkName) { - _lib._objc_msgSend_192(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_setSdkName_1, sdkName?._id ?? ffi.nullptr); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_SentryExperimentalOptions1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - /// Retrieves the SDK name - static NSString getSdkName(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_20( - _lib._class_PrivateSentrySDKOnly1, _lib._sel_getSdkName1); - return NSString._(_ret, _lib, retain: true, release: true); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_SentryExperimentalOptions1, + _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - /// Retrieves the SDK version string - static NSString getSdkVersionString(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_20( - _lib._class_PrivateSentrySDKOnly1, _lib._sel_getSdkVersionString1); - return NSString._(_ret, _lib, retain: true, release: true); - } +class SentryDispatchQueueWrapper extends NSObject { + SentryDispatchQueueWrapper._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - /// Add a package to the SDK packages - static void addSdkPackage_version_( - SentryCocoa _lib, NSString? name, NSString? version) { - _lib._objc_msgSend_515( - _lib._class_PrivateSentrySDKOnly1, - _lib._sel_addSdkPackage_version_1, - name?._id ?? ffi.nullptr, - version?._id ?? ffi.nullptr); + /// Returns a [SentryDispatchQueueWrapper] that points to the same underlying object as [other]. + static SentryDispatchQueueWrapper castFrom(T other) { + return SentryDispatchQueueWrapper._(other._id, other._lib, + retain: true, release: true); } - /// Retrieves extra context - static NSDictionary getExtraContext(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_170( - _lib._class_PrivateSentrySDKOnly1, _lib._sel_getExtraContext1); - return NSDictionary._(_ret, _lib, retain: true, release: true); + /// Returns a [SentryDispatchQueueWrapper] that wraps the given raw object pointer. + static SentryDispatchQueueWrapper castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentryDispatchQueueWrapper._(other, lib, + retain: retain, release: release); } - /// Allows Hybrids SDKs to thread-safe set the current trace. - static void setTrace_spanId_( - SentryCocoa _lib, SentryId? traceId, SentrySpanId? spanId) { - _lib._objc_msgSend_1053( - _lib._class_PrivateSentrySDKOnly1, - _lib._sel_setTrace_spanId_1, - traceId?._id ?? ffi.nullptr, - spanId?._id ?? ffi.nullptr); + /// Returns whether [obj] is an instance of [SentryDispatchQueueWrapper]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryDispatchQueueWrapper1); } - /// Start a profiler session associated with the given @c SentryId. - /// @return The system time when the profiler session started. - static int startProfilerForTrace_(SentryCocoa _lib, SentryId1? traceId) { - return _lib._objc_msgSend_1054(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_startProfilerForTrace_1, traceId?._id ?? ffi.nullptr); + @override + SentryDispatchQueueWrapper init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentryDispatchQueueWrapper._(_ret, _lib, + retain: true, release: true); } - /// Collect a profiler session data associated with the given @c SentryId. - /// This also discards the profiler. - static NSMutableDictionary collectProfileBetween_and_forTrace_( - SentryCocoa _lib, - int startSystemTime, - int endSystemTime, - SentryId? traceId) { - final _ret = _lib._objc_msgSend_1055( - _lib._class_PrivateSentrySDKOnly1, - _lib._sel_collectProfileBetween_and_forTrace_1, - startSystemTime, - endSystemTime, - traceId?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + SentryDispatchQueueWrapper initWithName_(ffi.Pointer name) { + final _ret = _lib._objc_msgSend_349(_id, _lib._sel_initWithName_1, name); + return SentryDispatchQueueWrapper._(_ret, _lib, + retain: true, release: true); } - /// Discard profiler session data associated with the given @c SentryId. - /// This only needs to be called in case you haven't collected the profile (and don't intend to). - static void discardProfilerForTrace_(SentryCocoa _lib, SentryId? traceId) { - _lib._objc_msgSend_1056(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_discardProfilerForTrace_1, traceId?._id ?? ffi.nullptr); + SentryDispatchQueueWrapper initWithName_relativePriority_( + ffi.Pointer name, int relativePriority) { + final _ret = _lib._objc_msgSend_1116( + _id, _lib._sel_initWithName_relativePriority_1, name, relativePriority); + return SentryDispatchQueueWrapper._(_ret, _lib, + retain: true, release: true); } - static ObjCBlock_ffiVoid_SentryAppStartMeasurement - getOnAppStartMeasurementAvailable(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_1057(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_onAppStartMeasurementAvailable1); - return ObjCBlock_ffiVoid_SentryAppStartMeasurement._(_ret, _lib); + SentryDispatchQueueWrapper initWithName_attributes_( + ffi.Pointer name, NSObject attributes) { + final _ret = _lib._objc_msgSend_1117( + _id, _lib._sel_initWithName_attributes_1, name, attributes._id); + return SentryDispatchQueueWrapper._(_ret, _lib, + retain: true, release: true); } - static void setOnAppStartMeasurementAvailable( - SentryCocoa _lib, ObjCBlock_ffiVoid_SentryAppStartMeasurement value) { - return _lib._objc_msgSend_1058(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_setOnAppStartMeasurementAvailable_1, value._id); + SentryDispatchQueueWrapper initWithHighPriority_(ffi.Pointer name) { + final _ret = + _lib._objc_msgSend_349(_id, _lib._sel_initWithHighPriority_1, name); + return SentryDispatchQueueWrapper._(_ret, _lib, + retain: true, release: true); } - static SentryAppStartMeasurement? getAppStartMeasurement(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_1059( - _lib._class_PrivateSentrySDKOnly1, _lib._sel_appStartMeasurement1); - return _ret.address == 0 - ? null - : SentryAppStartMeasurement._(_ret, _lib, retain: true, release: true); + NSObject get queue { + final _ret = _lib._objc_msgSend_840(_id, _lib._sel_queue1); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSString? getInstallationID(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_20( - _lib._class_PrivateSentrySDKOnly1, _lib._sel_installationID1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + void dispatchAsyncWithBlock_(ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_500(_id, _lib._sel_dispatchAsyncWithBlock_1, block._id); } - static SentryOptions? getOptions(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_1060( - _lib._class_PrivateSentrySDKOnly1, _lib._sel_options1); - return _ret.address == 0 - ? null - : SentryOptions._(_ret, _lib, retain: true, release: true); + void dispatchAsyncOnMainQueueIfNotMainThread_(ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_500( + _id, _lib._sel_dispatchAsyncOnMainQueueIfNotMainThread_1, block._id); } - /// If enabled, the SDK won't send the app start measurement with the first transaction. Instead, if - /// @c enableAutoPerformanceTracing is enabled, the SDK measures the app start and then calls - /// @c onAppStartMeasurementAvailable. Furthermore, the SDK doesn't set all values for the app start - /// measurement because the HybridSDKs initialize the Cocoa SDK too late to receive all - /// notifications. Instead, the SDK sets the @c appStartDuration to @c 0 and the - /// @c didFinishLaunchingTimestamp to @c timeIntervalSinceReferenceDate. - /// @note Default is @c NO. - static bool getAppStartMeasurementHybridSDKMode(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_appStartMeasurementHybridSDKMode1); + void dispatchSyncOnMainQueue_(ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_500(_id, _lib._sel_dispatchSyncOnMainQueue_1, block._id); } - /// If enabled, the SDK won't send the app start measurement with the first transaction. Instead, if - /// @c enableAutoPerformanceTracing is enabled, the SDK measures the app start and then calls - /// @c onAppStartMeasurementAvailable. Furthermore, the SDK doesn't set all values for the app start - /// measurement because the HybridSDKs initialize the Cocoa SDK too late to receive all - /// notifications. Instead, the SDK sets the @c appStartDuration to @c 0 and the - /// @c didFinishLaunchingTimestamp to @c timeIntervalSinceReferenceDate. - /// @note Default is @c NO. - static void setAppStartMeasurementHybridSDKMode( - SentryCocoa _lib, bool value) { - return _lib._objc_msgSend_492(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_setAppStartMeasurementHybridSDKMode_1, value); + void dispatchSyncOnMainQueue_timeout_( + ObjCBlock_ffiVoid block, double timeout) { + _lib._objc_msgSend_1118( + _id, _lib._sel_dispatchSyncOnMainQueue_timeout_1, block._id, timeout); } - static NSDictionary appStartMeasurementWithSpans(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_170(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_appStartMeasurementWithSpans1); - return NSDictionary._(_ret, _lib, retain: true, release: true); + void dispatchAfter_block_(double interval, ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_1119( + _id, _lib._sel_dispatchAfter_block_1, interval, block._id); } - static SentryUser userWithDictionary_( - SentryCocoa _lib, NSDictionary? dictionary) { - final _ret = _lib._objc_msgSend_1061(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_userWithDictionary_1, dictionary?._id ?? ffi.nullptr); - return SentryUser._(_ret, _lib, retain: true, release: true); + void dispatchOnce_block_( + ffi.Pointer predicate, ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_1120( + _id, _lib._sel_dispatchOnce_block_1, predicate, block._id); } - static SentryBreadcrumb breadcrumbWithDictionary_( - SentryCocoa _lib, NSDictionary? dictionary) { - final _ret = _lib._objc_msgSend_1062(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_breadcrumbWithDictionary_1, dictionary?._id ?? ffi.nullptr); - return SentryBreadcrumb._(_ret, _lib, retain: true, release: true); + bool get shouldDispatchCancel { + return _lib._objc_msgSend_12(_id, _lib._sel_shouldDispatchCancel1); } - @override - PrivateSentrySDKOnly init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return PrivateSentrySDKOnly._(_ret, _lib, retain: true, release: true); + bool get shouldCreateDispatchBlock { + return _lib._objc_msgSend_12(_id, _lib._sel_shouldCreateDispatchBlock1); } - static PrivateSentrySDKOnly new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_PrivateSentrySDKOnly1, _lib._sel_new1); - return PrivateSentrySDKOnly._(_ret, _lib, retain: false, release: true); + static SentryDispatchQueueWrapper new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryDispatchQueueWrapper1, _lib._sel_new1); + return SentryDispatchQueueWrapper._(_ret, _lib, + retain: false, release: true); } - static PrivateSentrySDKOnly allocWithZone_( + static SentryDispatchQueueWrapper allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_PrivateSentrySDKOnly1, _lib._sel_allocWithZone_1, zone); - return PrivateSentrySDKOnly._(_ret, _lib, retain: false, release: true); + final _ret = _lib._objc_msgSend_3(_lib._class_SentryDispatchQueueWrapper1, + _lib._sel_allocWithZone_1, zone); + return SentryDispatchQueueWrapper._(_ret, _lib, + retain: false, release: true); } - static PrivateSentrySDKOnly alloc(SentryCocoa _lib) { + static SentryDispatchQueueWrapper alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_PrivateSentrySDKOnly1, _lib._sel_alloc1); - return PrivateSentrySDKOnly._(_ret, _lib, retain: false, release: true); + _lib._class_SentryDispatchQueueWrapper1, _lib._sel_alloc1); + return SentryDispatchQueueWrapper._(_ret, _lib, + retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -71062,7 +79279,7 @@ class PrivateSentrySDKOnly extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_PrivateSentrySDKOnly1, + _lib._class_SentryDispatchQueueWrapper1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -71071,24 +79288,24 @@ class PrivateSentrySDKOnly extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_PrivateSentrySDKOnly1, + _lib._objc_msgSend_15(_lib._class_SentryDispatchQueueWrapper1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_PrivateSentrySDKOnly1, + return _lib._objc_msgSend_12(_lib._class_SentryDispatchQueueWrapper1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_PrivateSentrySDKOnly1, _lib._sel_useStoredAccessor1); + _lib._class_SentryDispatchQueueWrapper1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_PrivateSentrySDKOnly1, + _lib._class_SentryDispatchQueueWrapper1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -71097,7 +79314,7 @@ class PrivateSentrySDKOnly extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_PrivateSentrySDKOnly1, + _lib._class_SentryDispatchQueueWrapper1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -71105,26 +79322,26 @@ class PrivateSentrySDKOnly extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_PrivateSentrySDKOnly1, + _lib._class_SentryDispatchQueueWrapper1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_PrivateSentrySDKOnly1, + final _ret = _lib._objc_msgSend_79(_lib._class_SentryDispatchQueueWrapper1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_PrivateSentrySDKOnly1, _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2(_lib._class_SentryDispatchQueueWrapper1, + _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class SentryEnvelope extends _ObjCWrapper { +class SentryEnvelope extends NSObject { SentryEnvelope._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); @@ -71146,382 +79363,257 @@ class SentryEnvelope extends _ObjCWrapper { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_SentryEnvelope1); } -} - -class SentryId extends _ObjCWrapper { - SentryId._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - /// Returns a [SentryId] that points to the same underlying object as [other]. - static SentryId castFrom(T other) { - return SentryId._(other._id, other._lib, retain: true, release: true); + SentryEnvelope initWithId_singleItem_( + SentryId? id, SentryEnvelopeItem? item) { + final _ret = _lib._objc_msgSend_1122(_id, _lib._sel_initWithId_singleItem_1, + id?._id ?? ffi.nullptr, item?._id ?? ffi.nullptr); + return SentryEnvelope._(_ret, _lib, retain: true, release: true); } - /// Returns a [SentryId] that wraps the given raw object pointer. - static SentryId castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return SentryId._(other, lib, retain: retain, release: release); + SentryEnvelope initWithHeader_singleItem_( + SentryEnvelopeHeader? header, SentryEnvelopeItem? item) { + final _ret = _lib._objc_msgSend_1126( + _id, + _lib._sel_initWithHeader_singleItem_1, + header?._id ?? ffi.nullptr, + item?._id ?? ffi.nullptr); + return SentryEnvelope._(_ret, _lib, retain: true, release: true); } - /// Returns whether [obj] is an instance of [SentryId]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_SentryId2); + SentryEnvelope initWithId_items_(SentryId? id, NSArray? items) { + final _ret = _lib._objc_msgSend_1127(_id, _lib._sel_initWithId_items_1, + id?._id ?? ffi.nullptr, items?._id ?? ffi.nullptr); + return SentryEnvelope._(_ret, _lib, retain: true, release: true); } -} - -class SentrySpanId extends _ObjCWrapper { - SentrySpanId._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - /// Returns a [SentrySpanId] that points to the same underlying object as [other]. - static SentrySpanId castFrom(T other) { - return SentrySpanId._(other._id, other._lib, retain: true, release: true); + SentryEnvelope initWithHeader_items_( + SentryEnvelopeHeader? header, NSArray? items) { + final _ret = _lib._objc_msgSend_1128(_id, _lib._sel_initWithHeader_items_1, + header?._id ?? ffi.nullptr, items?._id ?? ffi.nullptr); + return SentryEnvelope._(_ret, _lib, retain: true, release: true); } - /// Returns a [SentrySpanId] that wraps the given raw object pointer. - static SentrySpanId castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return SentrySpanId._(other, lib, retain: retain, release: release); + SentryEnvelopeHeader? get header { + final _ret = _lib._objc_msgSend_1129(_id, _lib._sel_header1); + return _ret.address == 0 + ? null + : SentryEnvelopeHeader._(_ret, _lib, retain: true, release: true); } - /// Returns whether [obj] is an instance of [SentrySpanId]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_SentrySpanId1); + NSArray? get items { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_items1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } -} - -void _ObjCBlock_ffiVoid_SentryAppStartMeasurement_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock_ffiVoid_SentryAppStartMeasurement_closureRegistry = - {}; -int _ObjCBlock_ffiVoid_SentryAppStartMeasurement_closureRegistryIndex = 0; -ffi.Pointer - _ObjCBlock_ffiVoid_SentryAppStartMeasurement_registerClosure(Function fn) { - final id = - ++_ObjCBlock_ffiVoid_SentryAppStartMeasurement_closureRegistryIndex; - _ObjCBlock_ffiVoid_SentryAppStartMeasurement_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock_ffiVoid_SentryAppStartMeasurement_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return (_ObjCBlock_ffiVoid_SentryAppStartMeasurement_closureRegistry[block - .ref.target.address] as void Function(ffi.Pointer))(arg0); -} - -class ObjCBlock_ffiVoid_SentryAppStartMeasurement extends _ObjCBlockBase { - ObjCBlock_ffiVoid_SentryAppStartMeasurement._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_SentryAppStartMeasurement.fromFunctionPointer( - SentryCocoa lib, - ffi.Pointer< - ffi - .NativeFunction arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_SentryAppStartMeasurement_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_SentryAppStartMeasurement.fromFunction( - SentryCocoa lib, void Function(ffi.Pointer arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_SentryAppStartMeasurement_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_SentryAppStartMeasurement_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); + @override + SentryEnvelope init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentryEnvelope._(_ret, _lib, retain: true, release: true); } -} - -class SentryAppStartMeasurement extends _ObjCWrapper { - SentryAppStartMeasurement._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - /// Returns a [SentryAppStartMeasurement] that points to the same underlying object as [other]. - static SentryAppStartMeasurement castFrom(T other) { - return SentryAppStartMeasurement._(other._id, other._lib, - retain: true, release: true); + static SentryEnvelope new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryEnvelope1, _lib._sel_new1); + return SentryEnvelope._(_ret, _lib, retain: false, release: true); } - /// Returns a [SentryAppStartMeasurement] that wraps the given raw object pointer. - static SentryAppStartMeasurement castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return SentryAppStartMeasurement._(other, lib, - retain: retain, release: release); + static SentryEnvelope allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_SentryEnvelope1, _lib._sel_allocWithZone_1, zone); + return SentryEnvelope._(_ret, _lib, retain: false, release: true); } - /// Returns whether [obj] is an instance of [SentryAppStartMeasurement]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_SentryAppStartMeasurement1); + static SentryEnvelope alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryEnvelope1, _lib._sel_alloc1); + return SentryEnvelope._(_ret, _lib, retain: false, release: true); } -} - -class SentryOptions extends _ObjCWrapper { - SentryOptions._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - /// Returns a [SentryOptions] that points to the same underlying object as [other]. - static SentryOptions castFrom(T other) { - return SentryOptions._(other._id, other._lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_SentryEnvelope1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - /// Returns a [SentryOptions] that wraps the given raw object pointer. - static SentryOptions castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return SentryOptions._(other, lib, retain: retain, release: release); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_SentryEnvelope1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - /// Returns whether [obj] is an instance of [SentryOptions]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_SentryOptions1); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_SentryEnvelope1, + _lib._sel_accessInstanceVariablesDirectly1); } -} - -class SentryUser extends _ObjCWrapper { - SentryUser._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - /// Returns a [SentryUser] that points to the same underlying object as [other]. - static SentryUser castFrom(T other) { - return SentryUser._(other._id, other._lib, retain: true, release: true); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_SentryEnvelope1, _lib._sel_useStoredAccessor1); } - /// Returns a [SentryUser] that wraps the given raw object pointer. - static SentryUser castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return SentryUser._(other, lib, retain: retain, release: release); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_SentryEnvelope1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - /// Returns whether [obj] is an instance of [SentryUser]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_SentryUser1); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_SentryEnvelope1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } -} - -class SentryBreadcrumb extends _ObjCWrapper { - SentryBreadcrumb._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - /// Returns a [SentryBreadcrumb] that points to the same underlying object as [other]. - static SentryBreadcrumb castFrom(T other) { - return SentryBreadcrumb._(other._id, other._lib, - retain: true, release: true); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_SentryEnvelope1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - /// Returns a [SentryBreadcrumb] that wraps the given raw object pointer. - static SentryBreadcrumb castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return SentryBreadcrumb._(other, lib, retain: retain, release: release); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_SentryEnvelope1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - /// Returns whether [obj] is an instance of [SentryBreadcrumb]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_SentryBreadcrumb1); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryEnvelope1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } } -class SentryFeedback extends NSObject { - SentryFeedback._(ffi.Pointer id, SentryCocoa lib, +class SentryEnvelopeHeader extends NSObject { + SentryEnvelopeHeader._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [SentryFeedback] that points to the same underlying object as [other]. - static SentryFeedback castFrom(T other) { - return SentryFeedback._(other._id, other._lib, retain: true, release: true); + /// Returns a [SentryEnvelopeHeader] that points to the same underlying object as [other]. + static SentryEnvelopeHeader castFrom(T other) { + return SentryEnvelopeHeader._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [SentryFeedback] that wraps the given raw object pointer. - static SentryFeedback castFromPointer( + /// Returns a [SentryEnvelopeHeader] that wraps the given raw object pointer. + static SentryEnvelopeHeader castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return SentryFeedback._(other, lib, retain: retain, release: release); + return SentryEnvelopeHeader._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [SentryFeedback]. + /// Returns whether [obj] is an instance of [SentryEnvelopeHeader]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_SentryFeedback1); - } - - 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); + obj._lib._class_SentryEnvelopeHeader1); } - set name(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + /// Initializes a @c SentryEnvelopeHeader object with the specified @c eventId and @c traceContext. + /// @param eventId The identifier of the event. Can be @c nil if no event in the envelope or + /// attachment related to event. + /// @param traceContext Current trace state. + SentryEnvelopeHeader initWithId_traceContext_( + SentryId? eventId, SentryTraceContext? traceContext) { + final _ret = _lib._objc_msgSend_1123( + _id, + _lib._sel_initWithId_traceContext_1, + eventId?._id ?? ffi.nullptr, + traceContext?._id ?? ffi.nullptr); + return SentryEnvelopeHeader._(_ret, _lib, retain: true, release: true); } - NSString? get email { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_email1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + SentryEnvelopeHeader initWithId_sdkInfo_( + SentryId? eventId, NSDictionary? sdkInfo) { + final _ret = _lib._objc_msgSend_1124(_id, _lib._sel_initWithId_sdkInfo_1, + eventId?._id ?? ffi.nullptr, sdkInfo?._id ?? ffi.nullptr); + return SentryEnvelopeHeader._(_ret, _lib, retain: true, release: true); } - set email(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setEmail_1, value?._id ?? ffi.nullptr); + static SentryEnvelopeHeader empty(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryEnvelopeHeader1, _lib._sel_empty1); + return SentryEnvelopeHeader._(_ret, _lib, retain: true, release: true); } - NSString? get message { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_message1); + /// The event identifier, if available. + /// An event id exist if the envelope contains an event of items within it are related. i.e + /// Attachments + SentryId? get eventId { + final _ret = _lib._objc_msgSend_1071(_id, _lib._sel_eventId1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set message(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setMessage_1, value?._id ?? ffi.nullptr); - } - - int get source { - return _lib._objc_msgSend_1063(_id, _lib._sel_source1); - } - - set source(int value) { - return _lib._objc_msgSend_1064(_id, _lib._sel_setSource_1, value); + : SentryId._(_ret, _lib, retain: true, release: true); } - SentryId1? get eventId { - final _ret = _lib._objc_msgSend_1065(_id, _lib._sel_eventId1); + SentryTraceContext? get traceContext { + final _ret = _lib._objc_msgSend_1125(_id, _lib._sel_traceContext1); return _ret.address == 0 ? null - : SentryId1._(_ret, _lib, retain: true, release: true); + : SentryTraceContext._(_ret, _lib, retain: true, release: true); } - /// The event id that this feedback is associated with, like a crash report. - SentryId1? get associatedEventId { - final _ret = _lib._objc_msgSend_1065(_id, _lib._sel_associatedEventId1); + /// The timestamp when the event was sent from the SDK as string in RFC 3339 format. Used + /// for clock drift correction of the event timestamp. The time zone must be UTC. + /// The timestamp should be generated as close as possible to the transmision of the event, + /// so that the delay between sending the envelope and receiving it on the server-side is + /// minimized. + NSDate? get sentAt { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_sentAt1); return _ret.address == 0 ? null - : SentryId1._(_ret, _lib, retain: true, release: true); - } - - /// The event id that this feedback is associated with, like a crash report. - set associatedEventId(SentryId1? value) { - return _lib._objc_msgSend_1070( - _id, _lib._sel_setAssociatedEventId_1, value?._id ?? ffi.nullptr); + : NSDate._(_ret, _lib, retain: true, release: true); } - /// \param associatedEventId The ID for an event you’d like associated with the feedback. - /// - /// \param attachments Data objects for any attachments. Currently the web UI only supports showing one attached image, like for a screenshot. - SentryFeedback - initWithMessage_name_email_source_associatedEventId_attachments_( - NSString? message, - NSString? name, - NSString? email, - int source, - SentryId1? associatedEventId, - NSArray? attachments) { - final _ret = _lib._objc_msgSend_1071( - _id, - _lib._sel_initWithMessage_name_email_source_associatedEventId_attachments_1, - message?._id ?? ffi.nullptr, - name?._id ?? ffi.nullptr, - email?._id ?? ffi.nullptr, - source, - associatedEventId?._id ?? ffi.nullptr, - attachments?._id ?? ffi.nullptr); - return SentryFeedback._(_ret, _lib, retain: true, release: true); + /// The timestamp when the event was sent from the SDK as string in RFC 3339 format. Used + /// for clock drift correction of the event timestamp. The time zone must be UTC. + /// The timestamp should be generated as close as possible to the transmision of the event, + /// so that the delay between sending the envelope and receiving it on the server-side is + /// minimized. + set sentAt(NSDate? value) { + return _lib._objc_msgSend_528( + _id, _lib._sel_setSentAt_1, value?._id ?? ffi.nullptr); } @override - SentryFeedback init() { + SentryEnvelopeHeader init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return SentryFeedback._(_ret, _lib, retain: true, release: true); + return SentryEnvelopeHeader._(_ret, _lib, retain: true, release: true); } - static SentryFeedback new1(SentryCocoa _lib) { + static SentryEnvelopeHeader new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_SentryFeedback1, _lib._sel_new1); - return SentryFeedback._(_ret, _lib, retain: false, release: true); - } - - NSDictionary serialize() { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_serialize1); - return NSDictionary._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_2(_lib._class_SentryEnvelopeHeader1, _lib._sel_new1); + return SentryEnvelopeHeader._(_ret, _lib, retain: false, release: true); } - /// note: - /// This dictionary is to pass to the block SentryUserFeedbackConfiguration.onSubmitSuccess, describing the contents submitted. This is different from the serialized form of the feedback for envelope transmission, because there are some internal details in that serialization that are irrelevant to the consumer and are not available at the time onSubmitSuccess is called. - NSDictionary dataDictionary() { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_dataDictionary1); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - /// note: - /// Currently there is only a single attachment possible, for the screenshot, of which there can be only one. - NSArray attachmentsForEnvelope() { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_attachmentsForEnvelope1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static SentryFeedback allocWithZone_( + static SentryEnvelopeHeader allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_SentryFeedback1, _lib._sel_allocWithZone_1, zone); - return SentryFeedback._(_ret, _lib, retain: false, release: true); + _lib._class_SentryEnvelopeHeader1, _lib._sel_allocWithZone_1, zone); + return SentryEnvelopeHeader._(_ret, _lib, retain: false, release: true); } - static SentryFeedback alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_SentryFeedback1, _lib._sel_alloc1); - return SentryFeedback._(_ret, _lib, retain: false, release: true); + static SentryEnvelopeHeader alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryEnvelopeHeader1, _lib._sel_alloc1); + return SentryEnvelopeHeader._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -71530,7 +79622,7 @@ class SentryFeedback extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_SentryFeedback1, + _lib._class_SentryEnvelopeHeader1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -71539,24 +79631,24 @@ class SentryFeedback extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_SentryFeedback1, + _lib._objc_msgSend_15(_lib._class_SentryEnvelopeHeader1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_SentryFeedback1, + return _lib._objc_msgSend_12(_lib._class_SentryEnvelopeHeader1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_SentryFeedback1, _lib._sel_useStoredAccessor1); + _lib._class_SentryEnvelopeHeader1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_SentryFeedback1, + _lib._class_SentryEnvelopeHeader1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -71565,7 +79657,7 @@ class SentryFeedback extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_SentryFeedback1, + _lib._class_SentryEnvelopeHeader1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -71573,123 +79665,117 @@ class SentryFeedback extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_SentryFeedback1, + _lib._class_SentryEnvelopeHeader1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_SentryFeedback1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_SentryEnvelopeHeader1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_SentryFeedback1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_SentryEnvelopeHeader1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class SentryFeedbackSource { - static const int SentryFeedbackSourceWidget = 0; - static const int SentryFeedbackSourceCustom = 1; -} - -class SentryId1 extends NSObject { - SentryId1._(ffi.Pointer id, SentryCocoa lib, +class SentryTraceContext extends _ObjCWrapper { + SentryTraceContext._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [SentryId1] that points to the same underlying object as [other]. - static SentryId1 castFrom(T other) { - return SentryId1._(other._id, other._lib, retain: true, release: true); + /// Returns a [SentryTraceContext] that points to the same underlying object as [other]. + static SentryTraceContext castFrom(T other) { + return SentryTraceContext._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [SentryId1] that wraps the given raw object pointer. - static SentryId1 castFromPointer( + /// Returns a [SentryTraceContext] that wraps the given raw object pointer. + static SentryTraceContext castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return SentryId1._(other, lib, retain: retain, release: release); + return SentryTraceContext._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [SentryId1]. + /// Returns whether [obj] is an instance of [SentryTraceContext]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_SentryId11); - } - - static SentryId1? getEmpty(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_1065(_lib._class_SentryId11, _lib._sel_empty1); - return _ret.address == 0 - ? null - : SentryId1._(_ret, _lib, retain: true, release: true); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryTraceContext1); } +} - /// Returns a 32 lowercase character hexadecimal string description of the @c SentryId, such as - /// “12c2d058d58442709aa2eca08bf20986”. - NSString? get sentryIdString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sentryIdString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } +class SentryFileContents extends NSObject { + SentryFileContents._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - /// Creates a @c SentryId with a random UUID. - @override - SentryId1 init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return SentryId1._(_ret, _lib, retain: true, release: true); + /// Returns a [SentryFileContents] that points to the same underlying object as [other]. + static SentryFileContents castFrom(T other) { + return SentryFileContents._(other._id, other._lib, + retain: true, release: true); } - /// Creates a SentryId with the given UUID. - SentryId1 initWithUuid_(NSUUID? uuid) { - final _ret = _lib._objc_msgSend_1069( - _id, _lib._sel_initWithUuid_1, uuid?._id ?? ffi.nullptr); - return SentryId1._(_ret, _lib, retain: true, release: true); + /// Returns a [SentryFileContents] that wraps the given raw object pointer. + static SentryFileContents castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentryFileContents._(other, lib, retain: retain, release: release); } - /// Creates a @c SentryId from a 32 character hexadecimal string without dashes such as - /// “12c2d058d58442709aa2eca08bf20986” or a 36 character hexadecimal string such as such as - /// “12c2d058-d584-4270-9aa2-eca08bf20986”. - /// @return SentryId.empty for invalid strings. - SentryId1 initWithUUIDString_(NSString? uuidString) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithUUIDString_1, uuidString?._id ?? ffi.nullptr); - return SentryId1._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [SentryFileContents]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryFileContents1); } - bool isEqual_(NSObject object) { - return _lib._objc_msgSend_0(_id, _lib._sel_isEqual_1, object._id); + NSString? get path { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_path1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); + NSData? get contents { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_contents1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSData._(_ret, _lib, retain: true, release: true); } - int get hash { - return _lib._objc_msgSend_10(_id, _lib._sel_hash1); + SentryFileContents initWithPath_contents_(NSString? path, NSData? contents) { + final _ret = _lib._objc_msgSend_188(_id, _lib._sel_initWithPath_contents_1, + path?._id ?? ffi.nullptr, contents?._id ?? ffi.nullptr); + return SentryFileContents._(_ret, _lib, retain: true, release: true); + } + + @override + SentryFileContents init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentryFileContents._(_ret, _lib, retain: true, release: true); } - static SentryId1 new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_SentryId11, _lib._sel_new1); - return SentryId1._(_ret, _lib, retain: false, release: true); + static SentryFileContents new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryFileContents1, _lib._sel_new1); + return SentryFileContents._(_ret, _lib, retain: false, release: true); } - static SentryId1 allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static SentryFileContents allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_SentryId11, _lib._sel_allocWithZone_1, zone); - return SentryId1._(_ret, _lib, retain: false, release: true); + _lib._class_SentryFileContents1, _lib._sel_allocWithZone_1, zone); + return SentryFileContents._(_ret, _lib, retain: false, release: true); } - static SentryId1 alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_SentryId11, _lib._sel_alloc1); - return SentryId1._(_ret, _lib, retain: false, release: true); + static SentryFileContents alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryFileContents1, _lib._sel_alloc1); + return SentryFileContents._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -71698,7 +79784,7 @@ class SentryId1 extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_SentryId11, + _lib._class_SentryFileContents1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -71707,24 +79793,24 @@ class SentryId1 extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_SentryId11, + _lib._objc_msgSend_15(_lib._class_SentryFileContents1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_SentryId11, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_SentryFileContents1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_SentryId11, _lib._sel_useStoredAccessor1); + _lib._class_SentryFileContents1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_SentryId11, + _lib._class_SentryFileContents1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -71733,7 +79819,7 @@ class SentryId1 extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_SentryId11, + _lib._class_SentryFileContents1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -71741,100 +79827,172 @@ class SentryId1 extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_SentryId11, + _lib._class_SentryFileContents1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_SentryId11, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_SentryFileContents1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_SentryId11, _lib._sel_classForKeyedUnarchiver1); + _lib._class_SentryFileContents1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSUUID extends NSObject { - NSUUID._(ffi.Pointer id, SentryCocoa lib, +class SentryAppState extends NSObject { + SentryAppState._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// 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 [SentryAppState] that points to the same underlying object as [other]. + static SentryAppState castFrom(T other) { + return SentryAppState._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSUUID] that wraps the given raw object pointer. - static NSUUID castFromPointer(SentryCocoa lib, ffi.Pointer other, + /// Returns a [SentryAppState] that wraps the given raw object pointer. + static SentryAppState castFromPointer( + SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSUUID._(other, lib, retain: retain, release: release); + return SentryAppState._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSUUID]. + /// Returns whether [obj] is an instance of [SentryAppState]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSUUID1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryAppState1); } - static NSUUID UUID(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSUUID1, _lib._sel_UUID1); - return NSUUID._(_ret, _lib, retain: true, release: true); + NSString? get releaseName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_releaseName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - @override - NSUUID init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSUUID._(_ret, _lib, retain: true, release: true); + NSString? get osVersion { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_osVersion1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSUUID initWithUUIDString_(NSString? string) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithUUIDString_1, string?._id ?? ffi.nullptr); - return NSUUID._(_ret, _lib, retain: true, release: true); + NSString? get vendorId { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_vendorId1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSUUID initWithUUIDBytes_(ffi.Pointer bytes) { - final _ret = - _lib._objc_msgSend_1066(_id, _lib._sel_initWithUUIDBytes_1, bytes); - return NSUUID._(_ret, _lib, retain: true, release: true); + bool get isDebugging { + return _lib._objc_msgSend_12(_id, _lib._sel_isDebugging1); } - void getUUIDBytes_(ffi.Pointer uuid) { - _lib._objc_msgSend_1067(_id, _lib._sel_getUUIDBytes_1, uuid); + /// The boot time of the system rounded down to seconds. As the precision of the serialization is + /// only milliseconds and a precision of seconds is enough we round down to seconds. With this we + /// avoid getting different dates before and after serialization. + /// warning: + /// We must not send this information off device because Apple forbids that. + /// We are allowed send the amount of time that has elapsed between events that occurred within the + /// app though. For more information see + /// https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api#4278394. + NSDate? get systemBootTimestamp { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_systemBootTimestamp1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - int compare_(NSUUID? otherUUID) { - return _lib._objc_msgSend_1068( - _id, _lib._sel_compare_1, otherUUID?._id ?? ffi.nullptr); + bool get isActive { + return _lib._objc_msgSend_12(_id, _lib._sel_isActive1); } - NSString? get UUIDString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_UUIDString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + set isActive(bool value) { + return _lib._objc_msgSend_495(_id, _lib._sel_setIsActive_1, value); } - static NSUUID new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSUUID1, _lib._sel_new1); - return NSUUID._(_ret, _lib, retain: false, release: true); + bool get wasTerminated { + return _lib._objc_msgSend_12(_id, _lib._sel_wasTerminated1); } - static NSUUID allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + set wasTerminated(bool value) { + return _lib._objc_msgSend_495(_id, _lib._sel_setWasTerminated_1, value); + } + + bool get isANROngoing { + return _lib._objc_msgSend_12(_id, _lib._sel_isANROngoing1); + } + + set isANROngoing(bool value) { + return _lib._objc_msgSend_495(_id, _lib._sel_setIsANROngoing_1, value); + } + + bool get isSDKRunning { + return _lib._objc_msgSend_12(_id, _lib._sel_isSDKRunning1); + } + + set isSDKRunning(bool value) { + return _lib._objc_msgSend_495(_id, _lib._sel_setIsSDKRunning_1, value); + } + + SentryAppState + initWithReleaseName_osVersion_vendorId_isDebugging_systemBootTimestamp_( + NSString? releaseName, + NSString? osVersion, + NSString? vendorId, + bool isDebugging, + NSDate? systemBootTimestamp) { + final _ret = _lib._objc_msgSend_1134( + _id, + _lib._sel_initWithReleaseName_osVersion_vendorId_isDebugging_systemBootTimestamp_1, + releaseName?._id ?? ffi.nullptr, + osVersion?._id ?? ffi.nullptr, + vendorId?._id ?? ffi.nullptr, + isDebugging, + systemBootTimestamp?._id ?? ffi.nullptr); + return SentryAppState._(_ret, _lib, retain: true, release: true); + } + + SentryAppState initWithJSONObject_(NSDictionary? jsonObject) { + final _ret = _lib._objc_msgSend_149( + _id, _lib._sel_initWithJSONObject_1, jsonObject?._id ?? ffi.nullptr); + return SentryAppState._(_ret, _lib, retain: true, release: true); + } + + NSDictionary serialize() { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_serialize1); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + @override + SentryAppState init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentryAppState._(_ret, _lib, retain: true, release: true); + } + + static SentryAppState new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryAppState1, _lib._sel_new1); + return SentryAppState._(_ret, _lib, retain: false, release: true); + } + + static SentryAppState allocWithZone_( + SentryCocoa _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); + _lib._class_SentryAppState1, _lib._sel_allocWithZone_1, zone); + return SentryAppState._(_ret, _lib, retain: false, release: true); } - static NSUUID alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSUUID1, _lib._sel_alloc1); - return NSUUID._(_ret, _lib, retain: false, release: true); + static SentryAppState alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryAppState1, _lib._sel_alloc1); + return SentryAppState._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -71843,7 +80001,7 @@ class NSUUID extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSUUID1, + _lib._class_SentryAppState1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -71852,24 +80010,24 @@ class NSUUID extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSUUID1, + _lib._objc_msgSend_15(_lib._class_SentryAppState1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSUUID1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_SentryAppState1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSUUID1, _lib._sel_useStoredAccessor1); + _lib._class_SentryAppState1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSUUID1, + _lib._class_SentryAppState1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -71878,7 +80036,7 @@ class NSUUID extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSUUID1, + _lib._class_SentryAppState1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -71886,7 +80044,7 @@ class NSUUID extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSUUID1, + _lib._class_SentryAppState1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -71894,13 +80052,13 @@ class NSUUID extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSUUID1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_SentryAppState1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSUUID1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_SentryAppState1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } }