@@ -30118,6 +30118,11 @@ class SentryCocoa {
30118
30118
ffi.Pointer<ObjCObject> Function(ffi.Pointer<ObjCObject>,
30119
30119
ffi.Pointer<ObjCSel>, ffi.Pointer<ObjCObject>)>();
30120
30120
30121
+ late final _class_SentryFeedback1 = _getClass1("SentryFeedback");
30122
+ late final _sel_email1 = _registerName1("email");
30123
+ late final _sel_setEmail_1 = _registerName1("setEmail:");
30124
+ late final _sel_message1 = _registerName1("message");
30125
+ late final _sel_setMessage_1 = _registerName1("setMessage:");
30121
30126
late final _class_SentryId11 = _getClass1("Sentry.SentryId");
30122
30127
late final _sel_empty1 = _registerName1("empty");
30123
30128
ffi.Pointer<ObjCObject> _objc_msgSend_1062(
@@ -30227,6 +30232,15 @@ class SentryCocoa {
30227
30232
ffi.Pointer<ObjCObject>)>();
30228
30233
30229
30234
late final _sel_isEqual_1 = _registerName1("isEqual:");
30235
+ late final _sel_eventId1 = _registerName1("eventId");
30236
+ late final _sel_screenshot1 = _registerName1("screenshot");
30237
+ late final _sel_setScreenshot_1 = _registerName1("setScreenshot:");
30238
+ late final _sel_associatedEventId1 = _registerName1("associatedEventId");
30239
+ late final _sel_setAssociatedEventId_1 =
30240
+ _registerName1("setAssociatedEventId:");
30241
+ late final _sel_serialize1 = _registerName1("serialize");
30242
+ late final _sel_dataDictionary1 = _registerName1("dataDictionary");
30243
+ late final _sel_attachments1 = _registerName1("attachments");
30230
30244
}
30231
30245
30232
30246
class _ObjCWrapper implements ffi.Finalizable {
@@ -71190,6 +71204,212 @@ class SentryBreadcrumb extends _ObjCWrapper {
71190
71204
}
71191
71205
}
71192
71206
71207
+ class SentryFeedback extends NSObject {
71208
+ SentryFeedback._(ffi.Pointer<ObjCObject> id, SentryCocoa lib,
71209
+ {bool retain = false, bool release = false})
71210
+ : super._(id, lib, retain: retain, release: release);
71211
+
71212
+ /// Returns a [SentryFeedback] that points to the same underlying object as [other].
71213
+ static SentryFeedback castFrom<T extends _ObjCWrapper>(T other) {
71214
+ return SentryFeedback._(other._id, other._lib, retain: true, release: true);
71215
+ }
71216
+
71217
+ /// Returns a [SentryFeedback] that wraps the given raw object pointer.
71218
+ static SentryFeedback castFromPointer(
71219
+ SentryCocoa lib, ffi.Pointer<ObjCObject> other,
71220
+ {bool retain = false, bool release = false}) {
71221
+ return SentryFeedback._(other, lib, retain: retain, release: release);
71222
+ }
71223
+
71224
+ /// Returns whether [obj] is an instance of [SentryFeedback].
71225
+ static bool isInstance(_ObjCWrapper obj) {
71226
+ return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1,
71227
+ obj._lib._class_SentryFeedback1);
71228
+ }
71229
+
71230
+ NSString? get name {
71231
+ final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1);
71232
+ return _ret.address == 0
71233
+ ? null
71234
+ : NSString._(_ret, _lib, retain: true, release: true);
71235
+ }
71236
+
71237
+ set name(NSString? value) {
71238
+ return _lib._objc_msgSend_509(
71239
+ _id, _lib._sel_setName_1, value?._id ?? ffi.nullptr);
71240
+ }
71241
+
71242
+ NSString? get email {
71243
+ final _ret = _lib._objc_msgSend_20(_id, _lib._sel_email1);
71244
+ return _ret.address == 0
71245
+ ? null
71246
+ : NSString._(_ret, _lib, retain: true, release: true);
71247
+ }
71248
+
71249
+ set email(NSString? value) {
71250
+ return _lib._objc_msgSend_509(
71251
+ _id, _lib._sel_setEmail_1, value?._id ?? ffi.nullptr);
71252
+ }
71253
+
71254
+ NSString? get message {
71255
+ final _ret = _lib._objc_msgSend_20(_id, _lib._sel_message1);
71256
+ return _ret.address == 0
71257
+ ? null
71258
+ : NSString._(_ret, _lib, retain: true, release: true);
71259
+ }
71260
+
71261
+ set message(NSString? value) {
71262
+ return _lib._objc_msgSend_509(
71263
+ _id, _lib._sel_setMessage_1, value?._id ?? ffi.nullptr);
71264
+ }
71265
+
71266
+ SentryId1? get eventId {
71267
+ final _ret = _lib._objc_msgSend_1062(_id, _lib._sel_eventId1);
71268
+ return _ret.address == 0
71269
+ ? null
71270
+ : SentryId1._(_ret, _lib, retain: true, release: true);
71271
+ }
71272
+
71273
+ /// PNG data for the screenshot image
71274
+ NSData? get screenshot {
71275
+ final _ret = _lib._objc_msgSend_39(_id, _lib._sel_screenshot1);
71276
+ return _ret.address == 0
71277
+ ? null
71278
+ : NSData._(_ret, _lib, retain: true, release: true);
71279
+ }
71280
+
71281
+ /// PNG data for the screenshot image
71282
+ set screenshot(NSData? value) {
71283
+ return _lib._objc_msgSend_939(
71284
+ _id, _lib._sel_setScreenshot_1, value?._id ?? ffi.nullptr);
71285
+ }
71286
+
71287
+ /// The event id that this feedback is associated with, like a crash report.
71288
+ NSString? get associatedEventId {
71289
+ final _ret = _lib._objc_msgSend_20(_id, _lib._sel_associatedEventId1);
71290
+ return _ret.address == 0
71291
+ ? null
71292
+ : NSString._(_ret, _lib, retain: true, release: true);
71293
+ }
71294
+
71295
+ /// The event id that this feedback is associated with, like a crash report.
71296
+ set associatedEventId(NSString? value) {
71297
+ return _lib._objc_msgSend_509(
71298
+ _id, _lib._sel_setAssociatedEventId_1, value?._id ?? ffi.nullptr);
71299
+ }
71300
+
71301
+ @override
71302
+ SentryFeedback init() {
71303
+ final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1);
71304
+ return SentryFeedback._(_ret, _lib, retain: true, release: true);
71305
+ }
71306
+
71307
+ static SentryFeedback new1(SentryCocoa _lib) {
71308
+ final _ret =
71309
+ _lib._objc_msgSend_2(_lib._class_SentryFeedback1, _lib._sel_new1);
71310
+ return SentryFeedback._(_ret, _lib, retain: false, release: true);
71311
+ }
71312
+
71313
+ NSDictionary serialize() {
71314
+ final _ret = _lib._objc_msgSend_170(_id, _lib._sel_serialize1);
71315
+ return NSDictionary._(_ret, _lib, retain: true, release: true);
71316
+ }
71317
+
71318
+ /// note:
71319
+ /// This dictionary is to pass to the block <code>SentryUserFeedbackConfiguration.onSubmitSuccess</code>, 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 <code>onSubmitSuccess</code> is called.
71320
+ NSDictionary dataDictionary() {
71321
+ final _ret = _lib._objc_msgSend_170(_id, _lib._sel_dataDictionary1);
71322
+ return NSDictionary._(_ret, _lib, retain: true, release: true);
71323
+ }
71324
+
71325
+ /// note:
71326
+ /// Currently there is only a single attachment possible, for the screenshot, of which there can be only one.
71327
+ NSArray attachments() {
71328
+ final _ret = _lib._objc_msgSend_79(_id, _lib._sel_attachments1);
71329
+ return NSArray._(_ret, _lib, retain: true, release: true);
71330
+ }
71331
+
71332
+ static SentryFeedback allocWithZone_(
71333
+ SentryCocoa _lib, ffi.Pointer<_NSZone> zone) {
71334
+ final _ret = _lib._objc_msgSend_3(
71335
+ _lib._class_SentryFeedback1, _lib._sel_allocWithZone_1, zone);
71336
+ return SentryFeedback._(_ret, _lib, retain: false, release: true);
71337
+ }
71338
+
71339
+ static SentryFeedback alloc(SentryCocoa _lib) {
71340
+ final _ret =
71341
+ _lib._objc_msgSend_2(_lib._class_SentryFeedback1, _lib._sel_alloc1);
71342
+ return SentryFeedback._(_ret, _lib, retain: false, release: true);
71343
+ }
71344
+
71345
+ static void cancelPreviousPerformRequestsWithTarget_selector_object_(
71346
+ SentryCocoa _lib,
71347
+ NSObject aTarget,
71348
+ ffi.Pointer<ObjCSel> aSelector,
71349
+ NSObject anArgument) {
71350
+ _lib._objc_msgSend_14(
71351
+ _lib._class_SentryFeedback1,
71352
+ _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1,
71353
+ aTarget._id,
71354
+ aSelector,
71355
+ anArgument._id);
71356
+ }
71357
+
71358
+ static void cancelPreviousPerformRequestsWithTarget_(
71359
+ SentryCocoa _lib, NSObject aTarget) {
71360
+ _lib._objc_msgSend_15(_lib._class_SentryFeedback1,
71361
+ _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id);
71362
+ }
71363
+
71364
+ static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) {
71365
+ return _lib._objc_msgSend_12(_lib._class_SentryFeedback1,
71366
+ _lib._sel_accessInstanceVariablesDirectly1);
71367
+ }
71368
+
71369
+ static bool useStoredAccessor(SentryCocoa _lib) {
71370
+ return _lib._objc_msgSend_12(
71371
+ _lib._class_SentryFeedback1, _lib._sel_useStoredAccessor1);
71372
+ }
71373
+
71374
+ static NSSet keyPathsForValuesAffectingValueForKey_(
71375
+ SentryCocoa _lib, NSString? key) {
71376
+ final _ret = _lib._objc_msgSend_58(
71377
+ _lib._class_SentryFeedback1,
71378
+ _lib._sel_keyPathsForValuesAffectingValueForKey_1,
71379
+ key?._id ?? ffi.nullptr);
71380
+ return NSSet._(_ret, _lib, retain: true, release: true);
71381
+ }
71382
+
71383
+ static bool automaticallyNotifiesObserversForKey_(
71384
+ SentryCocoa _lib, NSString? key) {
71385
+ return _lib._objc_msgSend_59(
71386
+ _lib._class_SentryFeedback1,
71387
+ _lib._sel_automaticallyNotifiesObserversForKey_1,
71388
+ key?._id ?? ffi.nullptr);
71389
+ }
71390
+
71391
+ static void setKeys_triggerChangeNotificationsForDependentKey_(
71392
+ SentryCocoa _lib, NSArray? keys, NSString? dependentKey) {
71393
+ _lib._objc_msgSend_82(
71394
+ _lib._class_SentryFeedback1,
71395
+ _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1,
71396
+ keys?._id ?? ffi.nullptr,
71397
+ dependentKey?._id ?? ffi.nullptr);
71398
+ }
71399
+
71400
+ static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) {
71401
+ final _ret = _lib._objc_msgSend_79(
71402
+ _lib._class_SentryFeedback1, _lib._sel_classFallbacksForKeyedArchiver1);
71403
+ return NSArray._(_ret, _lib, retain: true, release: true);
71404
+ }
71405
+
71406
+ static NSObject classForKeyedUnarchiver(SentryCocoa _lib) {
71407
+ final _ret = _lib._objc_msgSend_2(
71408
+ _lib._class_SentryFeedback1, _lib._sel_classForKeyedUnarchiver1);
71409
+ return NSObject._(_ret, _lib, retain: true, release: true);
71410
+ }
71411
+ }
71412
+
71193
71413
class SentryId1 extends NSObject {
71194
71414
SentryId1._(ffi.Pointer<ObjCObject> id, SentryCocoa lib,
71195
71415
{bool retain = false, bool release = false})
0 commit comments